@konnectio/core 4.0.63 → 4.0.65

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 (76) hide show
  1. package/dist/{ActionField-3MggPKk9.js → ActionField-D5c9yQMq.js} +36 -28
  2. package/dist/ActionField-D5c9yQMq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BfyLbK2o.js +299 -0
  4. package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js} +934 -924
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
  7. package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-B74NMuGr.js} +174 -166
  8. package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
  9. package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-CWR5rjTx.js} +24 -16
  10. package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
  11. package/dist/EventAvailabilityForm-lFAnwVMX.js +125 -0
  12. package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
  13. package/dist/Field-C4DyN4XC.js +58 -0
  14. package/dist/Field-C4DyN4XC.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js +18813 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
  17. package/dist/TermsOfService-Bx4b2VxT.js +44 -0
  18. package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
  19. package/dist/_-DmU4JLX1.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
  22. package/dist/_commonjsHelpers-BbdZelfp.js +25 -0
  23. package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-tJBg8sGS.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
  26. package/dist/availability.js +65 -55
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +29 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +260 -252
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +64 -56
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +137 -129
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/giftCard-SDJGsDep.js +134 -0
  37. package/dist/giftCard-SDJGsDep.js.br +0 -0
  38. package/dist/hotel.js +939 -920
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-BhK5XQta.js} +860 -852
  41. package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
  42. package/dist/{mitt-DnPlcQNp.js → mitt-CGFh35r5.js} +505 -497
  43. package/dist/mitt-CGFh35r5.js.br +0 -0
  44. package/dist/polyfill.js +6471 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-2RYcVxT9.js → style-BQlIFUN3.js} +418 -403
  47. package/dist/style-BQlIFUN3.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/dist/{_commonjsHelpers-DEK47QeC.js → tracing-B1Jp160Y.js} +597 -544
  51. package/dist/tracing-B1Jp160Y.js.br +0 -0
  52. package/package.json +16 -16
  53. package/dist/ActionField-3MggPKk9.js.br +0 -0
  54. package/dist/AvailabilitySkeleton-DSgC6hn3.js +0 -293
  55. package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
  56. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
  57. package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
  58. package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
  59. package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
  60. package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
  61. package/dist/Field-DGi_AnA6.js +0 -50
  62. package/dist/Field-DGi_AnA6.js.br +0 -0
  63. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js +0 -18734
  64. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
  65. package/dist/TermsOfService-LDUTInOo.js +0 -36
  66. package/dist/TermsOfService-LDUTInOo.js.br +0 -0
  67. package/dist/_-CBEOFztf.js +0 -12
  68. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
  69. package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
  70. package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
  71. package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
  72. package/dist/giftCard-DLrIdehA.js +0 -126
  73. package/dist/giftCard-DLrIdehA.js.br +0 -0
  74. package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
  75. package/dist/mitt-DnPlcQNp.js.br +0 -0
  76. package/dist/style-2RYcVxT9.js.br +0 -0
package/dist/hotel.js CHANGED
@@ -1,42 +1,50 @@
1
- import { d as Q, r as le, a as u, b as A, w as $, l as qe, u as o, g as h, e as a, t as v, A as We, B as Ke, f as g, i as _, s as O, F as R, x as Ye, v as F, h as De, c as G, p as kt, j as _t, o as tt, z as Se, n as He, S as eo, C as to, D as oo, E as lo, k as no } from "./_sentry-release-injection-file-DEszgcWK.js";
2
- import { u as ne, s as Z, T as ao, c as io, i as so, m as ro } from "./mitt-DnPlcQNp.js";
3
- import { e as Te, y as fe, u as Ve, I as x, s as ue, z as Ze, l as dt, j as de, h as oe, _ as pe, o as Ee, A as Vt, b as Qe, d as ce, B as Tt, D as ct, T as re, q as co, F as uo, a as po, C as mo, i as ut, k as fo, m as pt, c as ho, n as vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js";
4
- import { G as yo } from "./style-2RYcVxT9.js";
5
- import { A as go, H as bo } from "./AvailabilitySkeleton-DSgC6hn3.js";
6
- import { R as ko, B as Me, L as _o, S as Vo, M as To, a as xe, C as Co, T as $o, V as wo } from "./masonry.plugin-GGoTX7a7.js";
7
- import { S as Ao } from "./TermsOfService-LDUTInOo.js";
8
- import { C as Ie, B as Po, P as Do, a as So } from "./CheckoutWindow-DolJgk40.js";
9
- import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js";
1
+ import { d as ee, r as le, a as c, b as A, w as C, l as xe, u as t, g as f, e as a, t as h, A as ze, B as Je, f as g, i as _, s as U, F as M, x as Xe, v as R, h as Be, c as O, p as Vt, j as Tt, o as nt, z as Ee, n as Ne, S as ao, C as io, D as so, E as ro, k as uo } from "./_sentry-release-injection-file-tJBg8sGS.js";
2
+ import { u as ae, s as X, T as co, c as po, i as mo, m as fo } from "./mitt-CGFh35r5.js";
3
+ import { c as ho, G as vo } from "./style-BQlIFUN3.js";
4
+ import { d as Te, x as fe, u as Ve, I as z, s as pe, y as et, l as ct, i as ue, g as oe, _ as me, n as Re, z as wt, b as tt, c as ce, B as Ct, A as pt, T as de, p as yo, D as go, a as bo, C as ko, h as mt, j as _o, k as ft, m as Vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js";
5
+ import { A as To, H as wo } from "./AvailabilitySkeleton-BfyLbK2o.js";
6
+ import { R as Co, B as Ue, L as $o, S as Ao, M as Po, a as Ye, C as Do, T as So, V as Ho } from "./masonry.plugin-BhK5XQta.js";
7
+ import { S as Io } from "./TermsOfService-Bx4b2VxT.js";
8
+ import { C as Le, B as Bo, P as Eo, a as No } from "./CheckoutWindow-B74NMuGr.js";
9
+ import { _ as $t } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js";
10
10
  (function() {
11
11
  try {
12
12
  var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
13
- l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "b8878766-f370-4724-a550-42ec40f5f65f", n._sentryDebugIdIdentifier = "sentry-dbid-b8878766-f370-4724-a550-42ec40f5f65f");
13
+ l && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[l] = "600fa9b6-b795-4a42-a6a9-89fb819c0f8d", n._sentryDebugIdIdentifier = "sentry-dbid-600fa9b6-b795-4a42-a6a9-89fb819c0f8d");
14
14
  } catch {
15
15
  }
16
16
  })();
17
- const Ho = { key: 0 }, Io = { class: "konnectio-hotel-reservation-warning" }, Bo = { class: "konnectio-hotel-reservation-warning" }, Eo = { class: "konnectio-hotel-reservation-warning" };
18
- const Mo = { key: 0 }, Ro = { key: 1 }, No = { key: 0 }, Uo = { class: "konnectio-reservation-actions" }, Lo = /* @__PURE__ */ Q({
17
+ {
18
+ var De = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
19
+ De._sentryModuleMetadata = De._sentryModuleMetadata || {}, De._sentryModuleMetadata[new Error().stack] = Object.assign(
20
+ {},
21
+ De._sentryModuleMetadata[new Error().stack],
22
+ { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
23
+ );
24
+ }
25
+ const Lo = { key: 0 }, Mo = { class: "konnectio-hotel-reservation-warning" }, Ro = { class: "konnectio-hotel-reservation-warning" }, Uo = { class: "konnectio-hotel-reservation-warning" };
26
+ const Fo = { key: 0 }, Oo = { key: 1 }, jo = { key: 0 }, qo = { class: "konnectio-reservation-actions" }, Go = /* @__PURE__ */ ee({
19
27
  __name: "HotelReservationForm",
20
28
  props: {
21
29
  showGiftCard: { type: Boolean, default: !1 },
22
30
  showTermsNotice: { type: Boolean, default: !1 }
23
31
  },
24
32
  setup(n) {
25
- const { t: l } = ne(), {
26
- hideArrivalDepartureInputs: t,
33
+ const { t: l } = ae(), {
34
+ hideArrivalDepartureInputs: o,
27
35
  disableArrivalUserSelection: e,
28
36
  disableDepartureUserSelection: i,
29
37
  arrivalDefault: s,
30
38
  departureDefault: m,
31
39
  disableNewsletterSignup: p,
32
- currency: c
33
- } = Z(Te()), {
40
+ currency: u
41
+ } = X(Te()), {
34
42
  arrivalTime: r,
35
43
  departureTime: d,
36
- roomDisplay: f,
44
+ roomDisplay: v,
37
45
  templateID: V,
38
- totalPrice: w,
39
- areListingsLoading: C,
46
+ totalPrice: $,
47
+ areListingsLoading: w,
40
48
  getSelectedPackageRoom: H,
41
49
  selectedPackage: E,
42
50
  discountVouchers: B,
@@ -45,178 +53,178 @@ const Mo = { key: 0 }, Ro = { key: 1 }, No = { key: 0 }, Uo = { class: "konnecti
45
53
  datesMismatch: I,
46
54
  currentLocation: J,
47
55
  locationMismatch: j,
48
- newsMails: q,
49
- termsOfService: L,
50
- discountCode: X,
51
- hasTermOfService: ae,
52
- acceptTerms: N,
53
- totalTemplateAddonPrice: me
54
- } = Z(fe()), { hasHotelLocations: ve } = Z(Ve()), { removeRoom: Ce, validateDiscountCode: Re } = fe(), { getHotelLocationName: Ne } = Ve(), ye = le(!1);
55
- function ge(ee) {
56
- return ee.reduce((U, { totalPrice: be }) => U + be, 0);
56
+ newsMails: W,
57
+ termsOfService: q,
58
+ discountCode: Y,
59
+ hasTermOfService: Z,
60
+ acceptTerms: ye,
61
+ totalTemplateAddonPrice: we
62
+ } = X(fe()), { hasHotelLocations: F } = X(Ve()), { removeRoom: ge, validateDiscountCode: be } = fe(), { getHotelLocationName: ke } = Ve(), _e = le(!1);
63
+ function Ce(ne) {
64
+ return ne.reduce((N, { totalPrice: he }) => N + he, 0);
57
65
  }
58
- return (ee, z) => (u(), A(ko, {
59
- "discount-code": o(X),
60
- "onUpdate:discountCode": z[4] || (z[4] = (U) => F(X) ? X.value = U : null),
61
- "validate-discount-code": o(Re),
62
- "total-price": o(w),
63
- "show-gift-card": ee.showGiftCard,
64
- "show-terms-notice": ee.showTermsNotice,
65
- "is-sidebar-loading": o(C),
66
- notice: o(l)("hotel.reservationNotice")
66
+ return (ne, K) => (c(), A(Co, {
67
+ "discount-code": t(Y),
68
+ "onUpdate:discountCode": K[4] || (K[4] = (N) => R(Y) ? Y.value = N : null),
69
+ "validate-discount-code": t(be),
70
+ "total-price": t($),
71
+ "show-gift-card": ne.showGiftCard,
72
+ "show-terms-notice": ne.showTermsNotice,
73
+ "is-sidebar-loading": t(w),
74
+ notice: t(l)("hotel.reservationNotice")
67
75
  }, {
68
- form: $(() => [
69
- qe(ee.$slots, "form", {}, void 0, !0)
76
+ form: C(() => [
77
+ xe(ne.$slots, "form", {}, void 0, !0)
70
78
  ]),
71
- "reservation-summary": $(() => [
72
- o(ve) ? (u(), h("li", Ho, [
73
- a("span", null, v(o(l)("general.location")), 1),
79
+ "reservation-summary": C(() => [
80
+ t(F) && !isNaN(t(J)) ? (c(), f("li", Lo, [
81
+ a("span", null, h(t(l)("general.location")), 1),
74
82
  a("b", null, [
75
- a("span", null, v(o(Ne)(o(J))), 1),
76
- We(a("span", Io, [
77
- g(x, {
83
+ a("span", null, h(t(ke)(t(J))), 1),
84
+ ze(a("span", Mo, [
85
+ g(z, {
78
86
  icon: "exclamation-triangle",
79
87
  type: "fas"
80
88
  })
81
89
  ], 512), [
82
- [Ke, o(j)]
90
+ [Je, t(j)]
83
91
  ])
84
92
  ])
85
93
  ])) : _("", !0),
86
94
  a("li", null, [
87
- a("span", null, v(o(l)("booking.reservation.arrival")), 1),
95
+ a("span", null, h(t(l)("booking.reservation.arrival")), 1),
88
96
  a("b", null, [
89
- a("span", null, v(o(t) ? o(ue)(o(k)) : `${o(ue)(o(k))}, ${o(e) ? o(s) : o(r)}`), 1),
90
- We(a("span", Bo, [
91
- g(x, {
97
+ a("span", null, h(t(o) ? t(pe)(t(k)) : `${t(pe)(t(k))}, ${t(e) ? t(s) : t(r)}`), 1),
98
+ ze(a("span", Ro, [
99
+ g(z, {
92
100
  icon: "exclamation-triangle",
93
101
  type: "fas"
94
102
  })
95
103
  ], 512), [
96
- [Ke, o(I)]
104
+ [Je, t(I)]
97
105
  ])
98
106
  ])
99
107
  ]),
100
108
  a("li", null, [
101
- a("span", null, v(o(l)("booking.reservation.departure")), 1),
109
+ a("span", null, h(t(l)("booking.reservation.departure")), 1),
102
110
  a("b", null, [
103
- a("span", null, v(o(t) ? o(ue)(o(D)) : `${o(ue)(o(D))}, ${o(i) ? o(m) : o(d)}`), 1),
104
- We(a("span", Eo, [
105
- g(x, {
111
+ a("span", null, h(t(o) ? t(pe)(t(D)) : `${t(pe)(t(D))}, ${t(i) ? t(m) : t(d)}`), 1),
112
+ ze(a("span", Uo, [
113
+ g(z, {
106
114
  icon: "exclamation-triangle",
107
115
  type: "fas"
108
116
  })
109
117
  ], 512), [
110
- [Ke, o(I)]
118
+ [Je, t(I)]
111
119
  ])
112
120
  ])
113
121
  ]),
114
122
  a("li", null, [
115
- a("span", null, v(o(l)("booking.reservation.nights")), 1),
116
- a("b", null, v(o(Ze)(o(k), o(D))) + " " + v(o(dt)(o(Ze)(o(k), o(D)) === 1 ? o(l)("booking.reservation.night") : o(l)("booking.reservation.nights"))), 1)
123
+ a("span", null, h(t(l)("booking.reservation.nights")), 1),
124
+ a("b", null, h(t(et)(t(k), t(D))) + " " + h(t(ct)(t(et)(t(k), t(D)) === 1 ? t(l)("booking.reservation.night") : t(l)("booking.reservation.nights"))), 1)
117
125
  ]),
118
- o(B) ? (u(!0), h(R, { key: 1 }, O(o(B), (U) => (u(), h("li", {
119
- key: U.id
126
+ t(B) ? (c(!0), f(M, { key: 1 }, U(t(B), (N) => (c(), f("li", {
127
+ key: N.id
120
128
  }, [
121
- a("span", null, v(`${o(l)("general.discountCode")} (${U.value})`), 1),
122
- a("b", null, v(U.key), 1)
129
+ a("span", null, h(`${t(l)("general.discountCode")} (${N.value})`), 1),
130
+ a("b", null, h(N.key), 1)
123
131
  ]))), 128)) : _("", !0)
124
132
  ]),
125
- "price-summary": $(() => [
126
- isNaN(o(V)) && o(f).length > 0 ? (u(!0), h(R, { key: 0 }, O(o(f), ({
127
- roomGroupID: U,
128
- title: be,
129
- variants: Ue
130
- }) => (u(), h("div", { key: U }, [
133
+ "price-summary": C(() => [
134
+ isNaN(t(V)) && t(v).length > 0 ? (c(!0), f(M, { key: 0 }, U(t(v), ({
135
+ roomGroupID: N,
136
+ title: he,
137
+ variants: $e
138
+ }) => (c(), f("div", { key: N }, [
131
139
  a("h6", null, [
132
- a("span", null, v(be), 1)
140
+ a("span", null, h(he), 1)
133
141
  ]),
134
- (u(!0), h(R, null, O(Ue, ($e, ke) => (u(), h("div", { key: ke }, [
135
- (u(!0), h(R, null, O($e.rooms, (ie, Le) => (u(), h("ul", { key: Le }, [
142
+ (c(!0), f(M, null, U($e, (Ae, Fe) => (c(), f("div", { key: Fe }, [
143
+ (c(!0), f(M, null, U(Ae.rooms, (ie, Oe) => (c(), f("ul", { key: Oe }, [
136
144
  a("li", null, [
137
145
  a("span", null, [
138
146
  a("span", null, [
139
- Ye(v(o(de)($e.name)) + " ( ", 1),
140
- g(x, {
147
+ Xe(h(t(ue)(Ae.name)) + " ( ", 1),
148
+ g(z, {
141
149
  icon: "male",
142
150
  type: "fas",
143
151
  color: "font"
144
152
  }),
145
- a("span", null, v(ie.adultsCount), 1),
146
- ie.childrenCount > 0 ? (u(), h(R, { key: 0 }, [
147
- g(x, {
153
+ a("span", null, h(ie.adultsCount), 1),
154
+ ie.childrenCount > 0 ? (c(), f(M, { key: 0 }, [
155
+ g(z, {
148
156
  icon: "child",
149
157
  type: "fas",
150
158
  color: "font"
151
159
  }),
152
- a("span", null, v(ie.childrenCount), 1)
160
+ a("span", null, h(ie.childrenCount), 1)
153
161
  ], 64)) : _("", !0),
154
- Ye(") ")
162
+ Xe(") ")
155
163
  ])
156
164
  ]),
157
165
  a("b", null, [
158
- a("span", null, v(o(oe)(ie.totalPrice, o(c))), 1),
166
+ a("span", null, h(t(oe)(ie.totalPrice, t(u))), 1),
159
167
  _("", !0)
160
168
  ])
161
169
  ]),
162
- ge(ie.roomAddons) > 0 ? (u(), h("li", Mo, [
163
- a("span", null, v(o(l)("general.addons")), 1),
164
- a("b", null, v(o(oe)(ge(ie.roomAddons), o(c))), 1)
170
+ Ce(ie.roomAddons) > 0 ? (c(), f("li", Fo, [
171
+ a("span", null, h(t(l)("general.addons")), 1),
172
+ a("b", null, h(t(oe)(Ce(ie.roomAddons), t(u))), 1)
165
173
  ])) : _("", !0)
166
174
  ]))), 128))
167
175
  ]))), 128))
168
176
  ]))), 128)) : _("", !0),
169
- o(H) && o(E) ? (u(), h("div", Ro, [
177
+ t(H) && t(E) ? (c(), f("div", Oo, [
170
178
  a("h6", null, [
171
- a("span", null, v(o(de)(o(E).name)), 1)
179
+ a("span", null, h(t(ue)(t(E).name)), 1)
172
180
  ]),
173
181
  a("div", null, [
174
182
  a("ul", null, [
175
183
  a("li", null, [
176
184
  a("span", null, [
177
- a("span", null, v(o(de)(o(H).title)), 1)
185
+ a("span", null, h(t(ue)(t(H).title)), 1)
178
186
  ]),
179
187
  a("b", null, [
180
- a("span", null, v(o(oe)(o(H).extraPrice, o(c))), 1)
188
+ a("span", null, h(t(oe)(t(H).extraPrice, t(u))), 1)
181
189
  ])
182
190
  ]),
183
- o(me) ? (u(), h("li", No, [
184
- a("span", null, v(o(l)("general.addons")), 1),
185
- a("b", null, v(o(oe)(o(me), o(c))), 1)
191
+ t(we) ? (c(), f("li", jo, [
192
+ a("span", null, h(t(l)("general.addons")), 1),
193
+ a("b", null, h(t(oe)(t(we), t(u))), 1)
186
194
  ])) : _("", !0)
187
195
  ])
188
196
  ])
189
197
  ])) : _("", !0)
190
198
  ]),
191
- actions: $(() => [
192
- a("ul", Uo, [
193
- o(p) ? _("", !0) : (u(), A(Ie, {
199
+ actions: C(() => [
200
+ a("ul", qo, [
201
+ t(p) ? _("", !0) : (c(), A(Le, {
194
202
  key: 0,
195
- modelValue: o(q),
196
- "onUpdate:modelValue": z[0] || (z[0] = (U) => F(q) ? q.value = U : null),
203
+ modelValue: t(W),
204
+ "onUpdate:modelValue": K[0] || (K[0] = (N) => R(W) ? W.value = N : null),
197
205
  type: "checkbox",
198
206
  name: "newsletter",
199
- label: o(l)("booking.reservation.newsletterSignUp")
207
+ label: t(l)("booking.reservation.newsletterSignUp")
200
208
  }, null, 8, ["modelValue", "label"])),
201
- o(ae) ? (u(), A(Ie, {
209
+ t(Z) ? (c(), A(Le, {
202
210
  key: 1,
203
- modelValue: o(N),
204
- "onUpdate:modelValue": z[2] || (z[2] = (U) => F(N) ? N.value = U : null),
211
+ modelValue: t(ye),
212
+ "onUpdate:modelValue": K[2] || (K[2] = (N) => R(ye) ? ye.value = N : null),
205
213
  type: "checkbox",
206
214
  name: "terms"
207
215
  }, {
208
- default: $(() => [
209
- g(o(ao), {
216
+ default: C(() => [
217
+ g(t(co), {
210
218
  keypath: "general.termsAndConditionsCheckbox",
211
219
  tag: "span",
212
220
  scope: "global"
213
221
  }, {
214
- terms: $(() => [
222
+ terms: C(() => [
215
223
  a("a", {
216
224
  class: "konnectio-accept-terms-link",
217
- onClick: z[1] || (z[1] = De((U) => ye.value = !0, ["prevent"]))
225
+ onClick: K[1] || (K[1] = Be((N) => _e.value = !0, ["prevent"]))
218
226
  }, [
219
- a("span", null, v(o(dt)(o(l)("general.termsAndConditions"))), 1)
227
+ a("span", null, h(t(ct)(t(l)("general.termsAndConditions"))), 1)
220
228
  ])
221
229
  ]),
222
230
  _: 1
@@ -224,21 +232,21 @@ const Mo = { key: 0 }, Ro = { key: 1 }, No = { key: 0 }, Uo = { class: "konnecti
224
232
  ]),
225
233
  _: 1
226
234
  }, 8, ["modelValue"])) : _("", !0),
227
- qe(ee.$slots, "actions", {}, void 0, !0),
228
- g(Ao, {
229
- modelValue: ye.value,
230
- "onUpdate:modelValue": z[3] || (z[3] = (U) => ye.value = U),
231
- description: o(L)
235
+ xe(ne.$slots, "actions", {}, void 0, !0),
236
+ g(Io, {
237
+ modelValue: _e.value,
238
+ "onUpdate:modelValue": K[3] || (K[3] = (N) => _e.value = N),
239
+ description: t(q)
232
240
  }, null, 8, ["modelValue", "description"])
233
241
  ])
234
242
  ]),
235
- navigation: $(() => [
236
- qe(ee.$slots, "navigation", {}, void 0, !0)
243
+ navigation: C(() => [
244
+ xe(ne.$slots, "navigation", {}, void 0, !0)
237
245
  ]),
238
246
  _: 3
239
247
  }, 8, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
240
248
  }
241
- }), ze = /* @__PURE__ */ pe(Lo, [["__scopeId", "data-v-61664f48"]]), Fo = (n) => (kt("data-v-69fe83d8"), n = n(), _t(), n), Oo = { class: "konnectio-room-config-option" }, jo = { key: 0 }, Go = { class: "konnectio-selected-room-config" }, qo = { class: "konnectio-selected-room-config-people" }, Wo = { key: 0 }, Ko = { class: "konnectio-selected-room-config-price" }, xo = /* @__PURE__ */ Fo(() => /* @__PURE__ */ a("span", null, null, -1)), zo = /* @__PURE__ */ Q({
249
+ }), Ze = /* @__PURE__ */ me(Go, [["__scopeId", "data-v-e86da615"]]), Wo = (n) => (Vt("data-v-69fe83d8"), n = n(), Tt(), n), Ko = { class: "konnectio-room-config-option" }, xo = { key: 0 }, zo = { class: "konnectio-selected-room-config" }, Jo = { class: "konnectio-selected-room-config-people" }, Yo = { key: 0 }, Zo = { class: "konnectio-selected-room-config-price" }, Qo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ a("span", null, null, -1)), Xo = /* @__PURE__ */ ee({
242
250
  __name: "RoomConfigField",
243
251
  props: {
244
252
  modelValue: {},
@@ -249,78 +257,78 @@ const Mo = { key: 0 }, Ro = { key: 1 }, No = { key: 0 }, Uo = { class: "konnecti
249
257
  },
250
258
  emits: ["update:modelValue"],
251
259
  setup(n, { emit: l }) {
252
- const { t } = ne(), { currency: e } = Z(Te()), i = l, s = n;
253
- function m(c) {
254
- i("update:modelValue", c);
260
+ const { t: o } = ae(), { currency: e } = X(Te()), i = l, s = n;
261
+ function m(u) {
262
+ i("update:modelValue", u);
255
263
  }
256
- const p = G({
264
+ const p = O({
257
265
  get: () => s.modelValue,
258
- set: (c) => m(c)
266
+ set: (u) => m(u)
259
267
  });
260
- return (c, r) => (u(), A(Ee, {
268
+ return (u, r) => (c(), A(Re, {
261
269
  modelValue: p.value,
262
270
  "onUpdate:modelValue": r[0] || (r[0] = (d) => p.value = d),
263
- label: c.label,
271
+ label: u.label,
264
272
  placeholder: "Select guest configuration",
265
273
  labelKey: "label",
266
274
  valueKey: "value",
267
275
  "icon-placement": "label",
268
- options: c.options,
269
- readonly: c.readonly,
270
- required: c.required,
276
+ options: u.options,
277
+ readonly: u.readonly,
278
+ required: u.required,
271
279
  searchable: !1
272
280
  }, {
273
- option: $(({ data: d }) => [
274
- a("span", Oo, [
281
+ option: C(({ data: d }) => [
282
+ a("span", Ko, [
275
283
  a("div", null, [
276
- g(x, {
284
+ g(z, {
277
285
  icon: "male",
278
286
  type: "fas",
279
287
  color: "font"
280
288
  }),
281
- a("span", null, v(`${d.adults}`), 1),
282
- d.children > 0 ? (u(), h("span", jo, [
283
- g(x, {
289
+ a("span", null, h(`${d.adults}`), 1),
290
+ d.children > 0 ? (c(), f("span", xo, [
291
+ g(z, {
284
292
  icon: "child",
285
293
  type: "fas",
286
294
  color: "font"
287
295
  }),
288
- a("span", null, v(`${d.children}`), 1)
296
+ a("span", null, h(`${d.children}`), 1)
289
297
  ])) : _("", !0)
290
298
  ]),
291
- a("span", null, v(`(${o(oe)(d.price, o(e))})`), 1)
299
+ a("span", null, h(`(${t(oe)(d.price, t(e))})`), 1)
292
300
  ])
293
301
  ]),
294
- "selected-option": $(({ data: d }) => [
295
- a("div", Go, [
296
- a("div", qo, [
302
+ "selected-option": C(({ data: d }) => [
303
+ a("div", zo, [
304
+ a("div", Jo, [
297
305
  a("div", null, [
298
306
  _("", !0),
299
- a("span", null, v(`${d.adults} ${d.adults === 1 ? o(t)("general.adult") : o(t)("general.adults")}`), 1)
307
+ a("span", null, h(`${d.adults} ${d.adults === 1 ? t(o)("general.adult") : t(o)("general.adults")}`), 1)
300
308
  ]),
301
- d.children > 0 ? (u(), h("div", Wo, [
309
+ d.children > 0 ? (c(), f("div", Yo, [
302
310
  _("", !0),
303
- a("span", null, v(`& ${d.children} ${d.children === 1 ? o(t)("general.child") : o(t)("general.children")}`), 1)
311
+ a("span", null, h(`& ${d.children} ${d.children === 1 ? t(o)("general.child") : t(o)("general.children")}`), 1)
304
312
  ])) : _("", !0)
305
313
  ]),
306
- a("div", Ko, [
307
- xo,
308
- Ye(" " + v(`(${o(oe)(d.price, o(e))})`), 1)
314
+ a("div", Zo, [
315
+ Qo,
316
+ Xe(" " + h(`(${t(oe)(d.price, t(e))})`), 1)
309
317
  ])
310
318
  ])
311
319
  ]),
312
320
  _: 1
313
321
  }, 8, ["modelValue", "label", "options", "readonly", "required"]));
314
322
  }
315
- }), Jo = /* @__PURE__ */ pe(zo, [["__scopeId", "data-v-69fe83d8"]]), Yo = { class: "konnectio-availability-listing-selection" }, Zo = { key: 1 }, Qo = { class: "konnectio-listing-config-body" }, Xo = { class: "konnectio-listing-units-body" };
316
- const el = /* @__PURE__ */ Q({
323
+ }), el = /* @__PURE__ */ me(Xo, [["__scopeId", "data-v-69fe83d8"]]), tl = { class: "konnectio-availability-listing-selection" }, ol = { key: 1 }, ll = { class: "konnectio-listing-config-body" }, nl = { class: "konnectio-listing-units-body" };
324
+ const al = /* @__PURE__ */ ee({
317
325
  __name: "Hotel",
318
326
  props: {
319
327
  room: {},
320
328
  layout: {}
321
329
  },
322
330
  setup(n) {
323
- const { t: l } = ne(), t = n, e = le([]);
331
+ const { t: l } = ae(), o = n, e = le([]);
324
332
  function i(k) {
325
333
  e.value[k].config.push({
326
334
  id: NaN,
@@ -328,62 +336,62 @@ const el = /* @__PURE__ */ Q({
328
336
  addons: []
329
337
  });
330
338
  }
331
- const s = G(() => t.room.rates.map((k) => ({
339
+ const s = O(() => o.room.rates.map((k) => ({
332
340
  label: k.name,
333
341
  value: k.id
334
- }))), { hideAvailableRoomAmount: m, autoSelectRateId: p } = Z(Te()), { roomSelect: c } = Z(fe()), { addToCart: r, removeFromCart: d } = Vt(), f = (k, D) => t.room.rates.find((I) => I.id === k)?.occupantRates.find((I) => I.index === D), V = G(() => t.room.rates.every((k) => k.isBreakfastIncluded === !0)), w = (k, D) => f(k, D) ? f(k, D)?.rooms : null, C = (k) => t.room.rates.length > 0 ? t.room.rates.find((D) => D.id === k)?.occupantRates.map((D) => ({
342
+ }))), { hideAvailableRoomAmount: m, autoSelectRateId: p } = X(Te()), { roomSelect: u } = X(fe()), { addToCart: r, removeFromCart: d } = wt(), v = (k, D) => o.room.rates.find((I) => I.id === k)?.occupantRates.find((I) => I.index === D), V = O(() => o.room.rates.every((k) => k.isBreakfastIncluded === !0)), $ = (k, D) => v(k, D) ? v(k, D)?.rooms : null, w = (k) => o.room.rates.length > 0 ? o.room.rates.find((D) => D.id === k)?.occupantRates.map((D) => ({
335
343
  value: D.index,
336
344
  price: D.totalPrice,
337
345
  adults: D.adultsCount,
338
346
  children: D.childrenCount,
339
347
  hasBreakfast: D.hasBreakfast
340
- })) || [] : [], H = G(() => t.room.rates.length > 1);
348
+ })) || [] : [], H = O(() => o.room.rates.length > 1);
341
349
  function E() {
342
350
  H.value ? p.value ? e.value.push({
343
- id: t.room.bestRateMatch || void 0,
351
+ id: o.room.bestRateMatch || void 0,
344
352
  config: [{
345
- id: t.room.rates[0].occupantRateIndex || NaN,
353
+ id: o.room.rates[0].occupantRateIndex || NaN,
346
354
  units: 0,
347
355
  addons: []
348
356
  }]
349
357
  }) : e.value.push({
350
358
  id: void 0,
351
359
  config: [{
352
- id: t.room.rates[0].occupantRateIndex || NaN,
360
+ id: o.room.rates[0].occupantRateIndex || NaN,
353
361
  units: 0,
354
362
  addons: []
355
363
  }]
356
364
  }) : e.value.push({
357
- id: t.room.rates[0].id,
365
+ id: o.room.rates[0].id,
358
366
  config: [{
359
- id: t.room.rates[0].occupantRateIndex || NaN,
367
+ id: o.room.rates[0].occupantRateIndex || NaN,
360
368
  units: 0,
361
369
  addons: []
362
370
  }]
363
371
  });
364
372
  }
365
- tt(() => {
373
+ nt(() => {
366
374
  E();
367
375
  });
368
- const B = G(() => JSON.parse(JSON.stringify(e.value)));
369
- return Se(B, (k, D) => {
376
+ const B = O(() => JSON.parse(JSON.stringify(e.value)));
377
+ return Ee(B, (k, D) => {
370
378
  D.length > 0 && k.forEach((I, J) => {
371
- I.config.forEach((j, q) => {
372
- const L = j.units, X = D[J].config[q].units;
373
- L !== X && (L > X ? (e.value[J].config[q].addons.push({}), r({
374
- id: t.room.id,
375
- name: t.room.title,
376
- value: t.room.rates[J].rackRate
377
- })) : (e.value[J].config[q].addons.pop(), d({
378
- id: t.room.id,
379
- name: t.room.title,
380
- value: t.room.rates[J].rackRate
379
+ I.config.forEach((j, W) => {
380
+ const q = j.units, Y = D[J].config[W].units;
381
+ q !== Y && (q > Y ? (e.value[J].config[W].addons.push({}), r({
382
+ id: o.room.id,
383
+ name: o.room.title,
384
+ value: o.room.rates[J].rackRate
385
+ })) : (e.value[J].config[W].addons.pop(), d({
386
+ id: o.room.id,
387
+ name: o.room.title,
388
+ value: o.room.rates[J].rackRate
381
389
  })));
382
390
  });
383
391
  });
384
- }, { deep: !0 }), Se(e, () => {
385
- c.value[t.room.id] = e.value;
386
- }, { deep: !0 }), (k, D) => (u(), A(Me, {
392
+ }, { deep: !0 }), Ee(e, () => {
393
+ u.value[o.room.id] = e.value;
394
+ }, { deep: !0 }), (k, D) => (c(), A(Ue, {
387
395
  type: "hotel",
388
396
  "listing-id": k.room.id,
389
397
  gallery: k.room.images,
@@ -394,56 +402,56 @@ const el = /* @__PURE__ */ Q({
394
402
  "prices-from": k.room.pricesFrom,
395
403
  "includes-breakfast": V.value
396
404
  }, {
397
- action: $(() => [
398
- a("div", Yo, [
399
- (u(!0), h(R, null, O(e.value, (I, J) => (u(), h("div", {
405
+ action: C(() => [
406
+ a("div", tl, [
407
+ (c(!0), f(M, null, U(e.value, (I, J) => (c(), f("div", {
400
408
  key: I.id,
401
409
  class: "konnectio-hotel-room"
402
410
  }, [
403
- H.value ? (u(), A(Ee, {
411
+ H.value ? (c(), A(Re, {
404
412
  key: 0,
405
413
  modelValue: I.id,
406
414
  "onUpdate:modelValue": (j) => I.id = j,
407
- label: o(l)("hotel.roomVariant"),
408
- placeholder: o(l)("hotel.chooseARoomVariant"),
415
+ label: t(l)("hotel.roomVariant"),
416
+ placeholder: t(l)("hotel.chooseARoomVariant"),
409
417
  options: s.value,
410
418
  searchable: !1
411
419
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
412
- I.id ? (u(), h("div", Zo, [
413
- (u(!0), h(R, null, O(k.room.rates, ({
420
+ I.id ? (c(), f("div", ol, [
421
+ (c(!0), f(M, null, U(k.room.rates, ({
414
422
  id: j,
415
- maximumOccupants: q
416
- }) => (u(), h("div", {
423
+ maximumOccupants: W
424
+ }) => (c(), f("div", {
417
425
  key: j,
418
426
  class: "konnectio-listing-action-selective-i"
419
427
  }, [
420
- I.id === j ? (u(!0), h(R, { key: 0 }, O(I.config, (L, X) => (u(), h("div", {
421
- key: X,
428
+ I.id === j ? (c(!0), f(M, { key: 0 }, U(I.config, (q, Y) => (c(), f("div", {
429
+ key: Y,
422
430
  class: "konnectio-listing-action-selective"
423
431
  }, [
424
- a("ul", Qo, [
425
- g(Jo, {
426
- modelValue: L.id,
427
- "onUpdate:modelValue": (ae) => L.id = ae,
432
+ a("ul", ll, [
433
+ g(el, {
434
+ modelValue: q.id,
435
+ "onUpdate:modelValue": (Z) => q.id = Z,
428
436
  icon: "male",
429
437
  "icon-type": "fas",
430
- label: o(l)("general.guests"),
431
- description: q === 0 ? void 0 : `${o(l)("general.maximumGuests")}: ${q}`,
432
- options: C(j),
433
- readonly: !(C(j).length > 1)
438
+ label: t(l)("general.guests"),
439
+ description: W === 0 ? void 0 : `${t(l)("general.maximumGuests")}: ${W}`,
440
+ options: w(j),
441
+ readonly: !(w(j).length > 1)
434
442
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "description", "options", "readonly"])
435
443
  ]),
436
- a("ul", Xo, [
437
- g(Qe, {
438
- modelValue: L.units,
439
- "onUpdate:modelValue": (ae) => L.units = ae,
440
- description: o(m) ? void 0 : `${o(l)("booking.availability.availableUnits")}: ${w(I.id, L.id)}`,
444
+ a("ul", nl, [
445
+ g(tt, {
446
+ modelValue: q.units,
447
+ "onUpdate:modelValue": (Z) => q.units = Z,
448
+ description: t(m) ? void 0 : `${t(l)("booking.availability.availableUnits")}: ${$(I.id, q.id)}`,
441
449
  icon: "house",
442
450
  "icon-type": "fas",
443
451
  "icon-placement": "label",
444
- label: o(l)("booking.availability.units"),
452
+ label: t(l)("booking.availability.units"),
445
453
  minValue: 0,
446
- "max-value": w(j, L.id) || 1 / 0
454
+ "max-value": $(j, q.id) || 1 / 0
447
455
  }, null, 8, ["modelValue", "onUpdate:modelValue", "description", "label", "max-value"])
448
456
  ]),
449
457
  _("", !0)
@@ -456,54 +464,54 @@ const el = /* @__PURE__ */ Q({
456
464
  _: 1
457
465
  }, 8, ["listing-id", "gallery", "name", "description", "layout", "facilities", "prices-from", "includes-breakfast"]));
458
466
  }
459
- }), tl = /* @__PURE__ */ pe(el, [["__scopeId", "data-v-ad7bdd2a"]]), ol = { class: "konnectio-template-side-panel" }, ll = { class: "konnectio-template-side-panel-listings" }, nl = /* @__PURE__ */ Q({
467
+ }), il = /* @__PURE__ */ me(al, [["__scopeId", "data-v-bac82644"]]), sl = { class: "konnectio-template-side-panel" }, rl = { class: "konnectio-template-side-panel-listings" }, dl = /* @__PURE__ */ ee({
460
468
  __name: "Template",
461
469
  props: {
462
470
  title: {},
463
471
  templateId: {},
464
472
  roomGroups: {},
465
- hideAddons: {},
473
+ hideAddons: { type: Boolean },
466
474
  callback: { type: Function }
467
475
  },
468
476
  setup(n) {
469
- const { t: l } = ne(), { templateID: t, roomGroupID: e, selectionHasNoAddons: i } = Z(fe()), { currency: s } = Z(Te()), { clearRoomSelection: m } = fe(), p = n, c = le(!0), r = G(() => {
470
- function f(V, w) {
471
- return c.value === !0 ? V.extraPrice > w.extraPrice ? -1 : 1 : V.extraPrice > w.extraPrice ? 1 : -1;
477
+ const { t: l } = ae(), { templateID: o, roomGroupID: e, selectionHasNoAddons: i } = X(fe()), { currency: s } = X(Te()), { clearRoomSelection: m } = fe(), p = n, u = le(!0), r = O(() => {
478
+ function v(V, $) {
479
+ return u.value === !0 ? V.extraPrice > $.extraPrice ? -1 : 1 : V.extraPrice > $.extraPrice ? 1 : -1;
472
480
  }
473
- return p.roomGroups?.slice().sort(f);
481
+ return p.roomGroups?.slice().sort(v);
474
482
  });
475
- function d(f) {
476
- t.value = p.templateId, e.value = f, m(), p.hideAddons === "yes" || i.value ? p.callback(2) : p.callback(1);
483
+ function d(v) {
484
+ o.value = p.templateId, e.value = v, m(), p.hideAddons === !0 || i.value ? p.callback(2) : p.callback(1);
477
485
  }
478
- return (f, V) => (u(), A(Po, {
479
- title: f.title,
480
- subtitle: o(l)("booking.availability.selectATemplateRoom")
486
+ return (v, V) => (c(), A(Bo, {
487
+ title: v.title,
488
+ subtitle: t(l)("booking.availability.selectATemplateRoom")
481
489
  }, {
482
- default: $(() => [
483
- a("div", ol, [
484
- a("div", ll, [
485
- (u(!0), h(R, null, O(r.value, ({
486
- id: w,
487
- title: C,
490
+ default: C(() => [
491
+ a("div", sl, [
492
+ a("div", rl, [
493
+ (c(!0), f(M, null, U(r.value, ({
494
+ id: $,
495
+ title: w,
488
496
  description: H,
489
497
  images: E,
490
498
  facilities: B,
491
499
  extraPrice: k
492
- }) => (u(), A(Me, {
493
- key: w,
494
- "listing-id": w,
495
- name: C,
500
+ }) => (c(), A(Ue, {
501
+ key: $,
502
+ "listing-id": $,
503
+ name: w,
496
504
  description: H,
497
505
  facilities: B,
498
506
  gallery: E,
499
507
  "includes-breakfast": !1,
500
508
  "hide-info-button": !0
501
509
  }, {
502
- action: $(() => [
510
+ action: C(() => [
503
511
  a("div", null, [
504
512
  g(ce, {
505
- onClickEvent: (D) => d(w),
506
- label: `${o(l)("booking.availability.selectThisRoom")} (${o(oe)(k, o(s))})`,
513
+ onClickEvent: (D) => d($),
514
+ label: `${t(l)("booking.availability.selectThisRoom")} (${t(oe)(k, t(s))})`,
507
515
  "full-width": ""
508
516
  }, null, 8, ["onClickEvent", "label"])
509
517
  ])
@@ -516,7 +524,7 @@ const el = /* @__PURE__ */ Q({
516
524
  _: 1
517
525
  }, 8, ["title", "subtitle"]));
518
526
  }
519
- }), $t = /* @__PURE__ */ pe(nl, [["__scopeId", "data-v-35a96ba4"]]), al = { class: "konnectio-template-select-package" }, il = /* @__PURE__ */ Q({
527
+ }), At = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-7424de30"]]), ul = { class: "konnectio-template-select-package" }, cl = /* @__PURE__ */ ee({
520
528
  __name: "Template",
521
529
  props: {
522
530
  id: {},
@@ -525,63 +533,63 @@ const el = /* @__PURE__ */ Q({
525
533
  name: {},
526
534
  image: {},
527
535
  roomGroups: {},
528
- hideAddons: {},
536
+ hideAddons: { type: Boolean },
529
537
  callback: { type: Function }
530
538
  },
531
539
  setup(n) {
532
- const { t: l } = ne(), t = n, e = G(() => t.roomGroups.reduce(
533
- (c, r) => c < r.extraPrice ? c : r.extraPrice,
540
+ const { t: l } = ae(), o = n, e = O(() => o.roomGroups.reduce(
541
+ (u, r) => u < r.extraPrice ? u : r.extraPrice,
534
542
  1 / 0
535
- )), i = G(() => {
536
- if (t.image)
543
+ )), i = O(() => {
544
+ if (o.image)
537
545
  return [{
538
- large: t.image.url,
539
- medium: t.image.url,
540
- thumb: t.image.url,
541
- url: t.image.url
546
+ large: o.image.url,
547
+ medium: o.image.url,
548
+ thumb: o.image.url,
549
+ url: o.image.url
542
550
  }];
543
551
  }), s = le(!1);
544
552
  function m() {
545
553
  s.value = !0;
546
554
  }
547
- function p(c) {
548
- t.callback(c), s.value = !1;
555
+ function p(u) {
556
+ o.callback(u), s.value = !1;
549
557
  }
550
- return (c, r) => (u(), A(Me, {
558
+ return (u, r) => (c(), A(Ue, {
551
559
  type: "template",
552
- "listing-id": c.id,
553
- name: c.name,
554
- description: c.description,
560
+ "listing-id": u.id,
561
+ name: u.name,
562
+ description: u.description,
555
563
  gallery: i.value,
556
- layout: o(Tt).Template,
564
+ layout: t(Ct).Template,
557
565
  "includes-breakfast": !1,
558
566
  "hide-info-button": !1,
559
567
  "prices-from": e.value
560
568
  }, {
561
- action: $(() => [
562
- a("div", al, [
569
+ action: C(() => [
570
+ a("div", ul, [
563
571
  g(ce, {
564
572
  onClickEvent: m,
565
- label: o(l)("booking.availability.selectPackage"),
573
+ label: t(l)("booking.availability.selectPackage"),
566
574
  "full-width": ""
567
575
  }, null, 8, ["label"])
568
576
  ])
569
577
  ]),
570
- default: $(() => [
571
- g($t, {
578
+ default: C(() => [
579
+ g(At, {
572
580
  modelValue: s.value,
573
581
  "onUpdate:modelValue": r[0] || (r[0] = (d) => s.value = d),
574
- title: c.name,
575
- "template-id": c.id,
576
- "room-groups": c.roomGroups,
577
- "hide-addons": c.hideAddons,
582
+ title: u.name,
583
+ "template-id": u.id,
584
+ "room-groups": u.roomGroups,
585
+ "hide-addons": u.hideAddons,
578
586
  callback: p
579
587
  }, null, 8, ["modelValue", "title", "template-id", "room-groups", "hide-addons"])
580
588
  ]),
581
589
  _: 1
582
590
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
583
591
  }
584
- }), sl = { class: "konnectio-special-offer-availability" }, rl = { class: "konnectio-special-offer-availability-button" }, dl = /* @__PURE__ */ Q({
592
+ }), pl = { class: "konnectio-special-offer-availability" }, ml = { class: "konnectio-special-offer-availability-button" }, fl = /* @__PURE__ */ ee({
585
593
  __name: "SpecialOffer",
586
594
  props: {
587
595
  id: {},
@@ -595,39 +603,39 @@ const el = /* @__PURE__ */ Q({
595
603
  callback: { type: Function }
596
604
  },
597
605
  setup(n) {
598
- const { t: l } = ne(), { updateDates: t } = Ve(), e = n, i = le([]), s = G(() => Ze(e.fromDate, e.toDate) === 1), m = G(() => [{
606
+ const { t: l } = ae(), { updateDates: o } = Ve(), e = n, i = le([]), s = O(() => et(e.fromDate, e.toDate) === 1), m = O(() => [{
599
607
  large: e.image.url,
600
608
  medium: e.image.url,
601
609
  thumb: e.image.url,
602
610
  url: e.image.url
603
611
  }]), p = le(!1);
604
- function c(d) {
612
+ function u(d) {
605
613
  e.callback(d), p.value = !1;
606
614
  }
607
615
  function r() {
608
- t(i.value[0], i.value[1]);
616
+ o(i.value[0], i.value[1]);
609
617
  }
610
- return tt(() => {
618
+ return nt(() => {
611
619
  s.value && (i.value = [new Date(e.fromDate), new Date(e.toDate)]);
612
- }), (d, f) => (u(), A(Me, {
620
+ }), (d, v) => (c(), A(Ue, {
613
621
  type: "template",
614
622
  "listing-id": d.id,
615
623
  name: d.name,
616
624
  description: d.description,
617
625
  gallery: m.value,
618
- layout: o(Tt).Template,
626
+ layout: t(Ct).Template,
619
627
  "includes-breakfast": !1,
620
628
  "hide-info-button": !1,
621
629
  "to-date": d.toDate,
622
630
  "from-date": d.fromDate
623
631
  }, {
624
- action: $(() => [
625
- a("div", sl, [
626
- g(Ct, {
632
+ action: C(() => [
633
+ a("div", pl, [
634
+ g($t, {
627
635
  modelValue: i.value,
628
- "onUpdate:modelValue": f[0] || (f[0] = (V) => i.value = V),
629
- label: o(l)("availability.checkInOut"),
630
- placeholder: o(l)("booking.availability.selectDates"),
636
+ "onUpdate:modelValue": v[0] || (v[0] = (V) => i.value = V),
637
+ label: t(l)("availability.checkInOut"),
638
+ placeholder: t(l)("booking.availability.selectDates"),
631
639
  "icon-type": "fas",
632
640
  "icon-placement": "label",
633
641
  "min-range": 1,
@@ -637,28 +645,28 @@ const el = /* @__PURE__ */ Q({
637
645
  readonly: s.value,
638
646
  range: ""
639
647
  }, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
640
- a("div", rl, [
648
+ a("div", ml, [
641
649
  g(ce, {
642
- label: o(l)("availability.buttonLabel"),
643
- onClick: De(r, ["prevent"])
650
+ label: t(l)("availability.buttonLabel"),
651
+ onClick: Be(r, ["prevent"])
644
652
  }, null, 8, ["label"])
645
653
  ])
646
654
  ])
647
655
  ]),
648
- default: $(() => [
649
- g($t, {
656
+ default: C(() => [
657
+ g(At, {
650
658
  modelValue: p.value,
651
- "onUpdate:modelValue": f[1] || (f[1] = (V) => p.value = V),
659
+ "onUpdate:modelValue": v[1] || (v[1] = (V) => p.value = V),
652
660
  title: d.name,
653
661
  "template-id": d.id,
654
662
  roomGroups: d.roomGroups,
655
- callback: c
663
+ callback: u
656
664
  }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
657
665
  ]),
658
666
  _: 1
659
667
  }, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date"]));
660
668
  }
661
- }), mt = /* @__PURE__ */ Q({
669
+ }), ht = /* @__PURE__ */ ee({
662
670
  __name: "TimeField",
663
671
  props: {
664
672
  modelValue: {},
@@ -683,16 +691,16 @@ const el = /* @__PURE__ */ Q({
683
691
  },
684
692
  emits: ["update:modelValue"],
685
693
  setup(n, { emit: l }) {
686
- const t = l, e = n;
694
+ const o = l, e = n;
687
695
  function i(m) {
688
- t("update:modelValue", m);
696
+ o("update:modelValue", m);
689
697
  }
690
698
  const s = le(e.modelValue);
691
- return Se(s, (m) => {
699
+ return Ee(s, (m) => {
692
700
  i(m);
693
- }), (m, p) => (u(), A(Ct, {
701
+ }), (m, p) => (c(), A($t, {
694
702
  modelValue: s.value,
695
- "onUpdate:modelValue": p[0] || (p[0] = (c) => s.value = c),
703
+ "onUpdate:modelValue": p[0] || (p[0] = (u) => s.value = u),
696
704
  type: "time",
697
705
  label: m.label,
698
706
  id: m.id,
@@ -705,7 +713,7 @@ const el = /* @__PURE__ */ Q({
705
713
  readonly: m.readonly
706
714
  }, null, 8, ["modelValue", "label", "id", "name", "icon", "icon-type", "icon-color", "required", "readonly"]));
707
715
  }
708
- }), cl = { style: { display: "flex", "align-items": "baseline" } }, ul = /* @__PURE__ */ Q({
716
+ }), hl = { style: { display: "flex", "align-items": "baseline" } }, vl = /* @__PURE__ */ ee({
709
717
  __name: "CountryField",
710
718
  props: {
711
719
  modelValue: {},
@@ -717,42 +725,42 @@ const el = /* @__PURE__ */ Q({
717
725
  },
718
726
  emits: ["update:modelValue"],
719
727
  setup(n, { emit: l }) {
720
- const { t } = ne(), e = l, i = n;
728
+ const { t: o } = ae(), e = l, i = n;
721
729
  function s(p) {
722
730
  e("update:modelValue", p);
723
731
  }
724
- const m = G({
732
+ const m = O({
725
733
  get: () => i.modelValue,
726
734
  set: (p) => s(p)
727
735
  });
728
- return (p, c) => (u(), A(Ee, {
736
+ return (p, u) => (c(), A(Re, {
729
737
  modelValue: m.value,
730
- "onUpdate:modelValue": c[0] || (c[0] = (r) => m.value = r),
738
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => m.value = r),
731
739
  label: p.label,
732
- placeholder: o(t)("booking.reservation.countryPlaceholder"),
740
+ placeholder: t(o)("booking.reservation.countryPlaceholder"),
733
741
  labelKey: "name",
734
742
  valueKey: "id",
735
743
  options: p.options,
736
744
  required: p.required
737
745
  }, {
738
- option: $(({ data: r }) => [
746
+ option: C(({ data: r }) => [
739
747
  a("i", {
740
- class: He(["konnectio-flag-icon", r.iso])
748
+ class: Ne(["konnectio-flag-icon", r.iso])
741
749
  }, null, 2),
742
- a("span", null, v(r.name), 1)
750
+ a("span", null, h(r.name), 1)
743
751
  ]),
744
- "selected-option": $(({ data: r }) => [
745
- a("div", cl, [
752
+ "selected-option": C(({ data: r }) => [
753
+ a("div", hl, [
746
754
  a("i", {
747
- class: He(["konnectio-flag-icon", r.iso])
755
+ class: Ne(["konnectio-flag-icon", r.iso])
748
756
  }, null, 2),
749
- a("span", null, v(r.name), 1)
757
+ a("span", null, h(r.name), 1)
750
758
  ])
751
759
  ]),
752
760
  _: 1
753
761
  }, 8, ["modelValue", "label", "placeholder", "options", "required"]));
754
762
  }
755
- }), pl = /* @__PURE__ */ pe(ul, [["__scopeId", "data-v-1462612d"]]), ml = /* @__PURE__ */ Q({
763
+ }), yl = /* @__PURE__ */ me(vl, [["__scopeId", "data-v-1462612d"]]), gl = /* @__PURE__ */ ee({
756
764
  __name: "NameField",
757
765
  props: {
758
766
  modelValue: {},
@@ -774,58 +782,58 @@ const el = /* @__PURE__ */ Q({
774
782
  },
775
783
  emits: ["update:modelValue", "update:title"],
776
784
  setup(n, { emit: l }) {
777
- const t = n, e = l, i = t.id || ct(), s = le(""), m = le(2);
785
+ const o = n, e = l, i = o.id || pt(), s = le(""), m = le(2);
778
786
  function p() {
779
787
  e("update:modelValue", s.value);
780
788
  }
781
- Se(m, (r) => {
789
+ Ee(m, (r) => {
782
790
  e("update:title", r);
783
791
  });
784
- const { t: c } = ne();
785
- return tt(() => {
786
- t.modelValue && (s.value = t.modelValue), t.title && (m.value = t.title);
787
- }), (r, d) => (u(), A(co, {
792
+ const { t: u } = ae();
793
+ return nt(() => {
794
+ o.modelValue && (s.value = o.modelValue), o.title && (m.value = o.title);
795
+ }), (r, d) => (c(), A(yo, {
788
796
  label: r.label,
789
- id: o(i),
797
+ id: t(i),
790
798
  required: r.required,
791
799
  type: "fresh-booking-name-field",
792
800
  readonly: r.readonly,
793
801
  limit: r.limit
794
802
  }, {
795
- default: $(() => [
803
+ default: C(() => [
796
804
  a("div", {
797
- class: He([
805
+ class: Ne([
798
806
  "fresh-booking-name-input",
799
807
  { "no-title": r.excludeTitle }
800
808
  ])
801
809
  }, [
802
- r.excludeTitle ? _("", !0) : (u(), A(Ee, {
810
+ r.excludeTitle ? _("", !0) : (c(), A(Re, {
803
811
  key: 0,
804
812
  modelValue: m.value,
805
- "onUpdate:modelValue": d[0] || (d[0] = (f) => m.value = f),
806
- id: o(ct)(),
813
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => m.value = v),
814
+ id: t(pt)(),
807
815
  icon: r.icon,
808
816
  "icon-color": r.iconColor,
809
817
  "icon-type": r.iconType,
810
818
  options: [
811
819
  {
812
- label: o(c)("booking.reservation.noNameTitle"),
820
+ label: t(u)("booking.reservation.noNameTitle"),
813
821
  value: 1
814
822
  },
815
823
  {
816
- label: o(c)("booking.reservation.nameTitleMr"),
824
+ label: t(u)("booking.reservation.nameTitleMr"),
817
825
  value: 2
818
826
  },
819
827
  {
820
- label: o(c)("booking.reservation.nameTitleMs"),
828
+ label: t(u)("booking.reservation.nameTitleMs"),
821
829
  value: 3
822
830
  },
823
831
  {
824
- label: o(c)("booking.reservation.nameTitleMrs"),
832
+ label: t(u)("booking.reservation.nameTitleMrs"),
825
833
  value: 4
826
834
  },
827
835
  {
828
- label: o(c)("booking.reservation.nameTitleDr"),
836
+ label: t(u)("booking.reservation.nameTitleDr"),
829
837
  value: 5
830
838
  }
831
839
  ],
@@ -834,13 +842,13 @@ const el = /* @__PURE__ */ Q({
834
842
  "input-style": r.inputStyle,
835
843
  searchable: !1
836
844
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
837
- g(re, {
845
+ g(de, {
838
846
  modelValue: s.value,
839
- "onUpdate:modelValue": d[1] || (d[1] = (f) => s.value = f),
847
+ "onUpdate:modelValue": d[1] || (d[1] = (v) => s.value = v),
840
848
  type: "text",
841
849
  name: "name",
842
850
  autocomplete: "name",
843
- id: o(i),
851
+ id: t(i),
844
852
  icon: r.excludeTitle ? r.icon : void 0,
845
853
  "icon-color": r.iconColor,
846
854
  "icon-type": r.iconType,
@@ -848,7 +856,7 @@ const el = /* @__PURE__ */ Q({
848
856
  required: r.required,
849
857
  readonly: r.readonly,
850
858
  limit: r.limit,
851
- onInput: d[2] || (d[2] = (f) => p()),
859
+ onInput: d[2] || (d[2] = (v) => p()),
852
860
  "input-style": r.inputStyle
853
861
  }, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
854
862
  ], 2)
@@ -856,128 +864,135 @@ const el = /* @__PURE__ */ Q({
856
864
  _: 1
857
865
  }, 8, ["label", "id", "required", "readonly", "limit"]));
858
866
  }
859
- }), fl = /* @__PURE__ */ pe(ml, [["__scopeId", "data-v-78b0b319"]]), hl = { class: "hotel-skeleton" }, vl = { class: "hotel-skeleton-content" }, yl = { class: "hotel-skeleton-sidebar" }, gl = /* @__PURE__ */ Q({
867
+ }), bl = /* @__PURE__ */ me(gl, [["__scopeId", "data-v-78b0b319"]]), kl = { class: "hotel-skeleton" }, _l = { class: "hotel-skeleton-content" }, Vl = { class: "hotel-skeleton-sidebar" }, Tl = /* @__PURE__ */ ee({
860
868
  __name: "HotelSkeleton",
861
869
  setup(n) {
862
- return (l, t) => (u(), h("div", hl, [
863
- a("div", vl, [
864
- g(go, { hotel: "" }),
865
- g(_o)
870
+ return (l, o) => (c(), f("div", kl, [
871
+ a("div", _l, [
872
+ g(To, { hotel: "" }),
873
+ g($o)
866
874
  ]),
867
- a("div", yl, [
868
- g(Vo)
875
+ a("div", Vl, [
876
+ g(Ao)
869
877
  ])
870
878
  ]));
871
879
  }
872
- }), bl = /* @__PURE__ */ pe(gl, [["__scopeId", "data-v-1bb21da4"]]), kl = (n) => (kt("data-v-652c2f0e"), n = n(), _t(), n), _l = { id: "booking-availability-container" }, Vl = { id: "booking-availability-controls" };
873
- const Tl = { key: 1 }, Cl = { key: 0 }, $l = {
880
+ }), wl = /* @__PURE__ */ me(Tl, [["__scopeId", "data-v-1bb21da4"]]), Cl = (n) => (Vt("data-v-be167e1f"), n = n(), Tt(), n), $l = { id: "booking-availability-container" }, Al = { id: "booking-availability-controls" };
881
+ const Pl = { key: 1 }, Dl = { key: 0 }, Sl = {
874
882
  key: 0,
875
883
  id: "booking-availability-packages"
876
- }, wl = {
884
+ }, Hl = {
877
885
  key: 0,
878
886
  class: "konnectio-hotel-availability-title"
879
- }, Al = { id: "booking-availability-packages-wrapper" }, Pl = { key: 1 }, Dl = {
887
+ }, Il = { id: "booking-availability-packages-wrapper" }, Bl = { key: 1 }, El = {
880
888
  key: 0,
881
889
  class: "konnectio-hotel-availability-title"
882
- }, Sl = { id: "konnectio-listings" }, Hl = {
890
+ }, Nl = { id: "konnectio-listings" }, Ll = {
883
891
  key: 2,
884
892
  id: "booking-availability-packages"
885
- }, Il = { class: "konnectio-hotel-availability-title" }, Bl = { id: "booking-availability-packages-wrapper" }, El = {
893
+ }, Ml = { class: "konnectio-hotel-availability-title" }, Rl = { id: "booking-availability-packages-wrapper" }, Ul = {
886
894
  key: 3,
887
895
  id: "booking-availability-no-listings",
888
896
  class: "konnectio-panel"
889
- }, Ml = {
897
+ }, Fl = {
890
898
  key: 1,
891
899
  id: "booking-availability-no-listings"
892
- }, Rl = {
900
+ }, Ol = {
893
901
  key: 2,
894
902
  id: "reservation-availability-next-dates"
895
- }, Nl = { class: "konnectio-hotel-availability-title" }, Ul = { class: "reservation-special-offers-grid" }, Ll = ["title"];
896
- const Fl = {
903
+ }, jl = { class: "konnectio-hotel-availability-title" }, ql = { class: "reservation-special-offers-grid" }, Gl = ["title"];
904
+ const Wl = {
897
905
  key: 2,
906
+ class: "konnectio-panel"
907
+ }, Kl = {
908
+ key: 3,
898
909
  class: "konnectio-listing-loading"
899
- }, Ol = { class: "konnectio-panel" }, jl = {
910
+ }, xl = { class: "konnectio-panel" }, zl = {
900
911
  key: 0,
901
912
  id: "konnectio-hotel-addons"
902
913
  };
903
- const Gl = { class: "konnectio-event-addons-price" }, ql = { key: 1 }, Wl = { class: "konnectio-table-addons-information" }, Kl = { class: "konnectio-table-addons-option" }, xl = {
914
+ const Jl = { class: "konnectio-event-addons-price" }, Yl = { key: 1 }, Zl = { class: "konnectio-table-addons-information" }, Ql = { class: "konnectio-table-addons-option" }, Xl = {
904
915
  key: 1,
905
916
  id: "konnectio-hotel-addons"
906
- }, zl = { class: "konnectio-table with-lines" };
907
- const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), Yl = { class: "konnectio-table-addons-information" }, Zl = { class: "konnectio-table-addons-option" }, Ql = ["onClick"], Xl = { class: "konnectio-panel" }, en = { key: 0 }, tn = { key: 1 }, on = { class: "konnectio-split-inputs" }, ln = ["onClick"], nn = /* @__PURE__ */ Q({
917
+ }, en = { class: "konnectio-table with-lines" };
918
+ const tn = /* @__PURE__ */ Cl(() => /* @__PURE__ */ a("th", { class: "konnectio-event-addons-price" }, null, -1)), on = { class: "konnectio-table-addons-information" }, ln = { class: "konnectio-table-addons-option" }, nn = ["onClick"], an = { class: "konnectio-panel" }, sn = { key: 0 }, rn = { key: 1 }, dn = { class: "konnectio-split-inputs" }, un = ["onClick"], cn = /* @__PURE__ */ ee({
908
919
  name: "HotelLayout",
909
920
  __name: "Hotel",
910
921
  props: {
911
922
  accessToken: {},
912
- headerLayout: { default: uo.Minimal },
923
+ headerLayout: { default: go.Minimal },
913
924
  onlyShow: { default: "everything" },
914
925
  hideAddons: { default: "no" },
926
+ disableDefaultLocation: { default: "no" },
915
927
  selectedLocation: {},
916
928
  styling: {}
917
929
  },
918
930
  setup(n) {
919
- const l = to(() => import("./_-CBEOFztf.js")), t = n, { t: e } = ne(), {
920
- templateID: i,
921
- templateAddons: s,
922
- countries: m,
923
- areListingsLoading: p,
924
- isPaymentLoading: c,
925
- isReservationFormFilled: r,
926
- travelingFor: d,
927
- arrivalTime: f,
928
- departureTime: V,
929
- name: w,
930
- nameTitle: C,
931
- email: H,
932
- phone: E,
933
- firmName: B,
934
- postal: k,
935
- city: D,
936
- address: I,
937
- country: J,
938
- remark: j,
939
- allergies: q,
940
- roomSelect: L,
941
- roomDisplay: X,
942
- hasValidRoomSelection: ae,
943
- availabilityData: N,
944
- selectionHasNoAddons: me,
945
- isAvailabilityDataAvailable: ve,
946
- getSelectedPackageRoom: Ce,
947
- selectedPackage: Re,
948
- isSearchOutdated: Ne,
949
- currentChildren: ye
950
- } = Z(fe()), {
951
- adults: ge,
952
- children: ee,
953
- location: z,
954
- arrivalDate: U,
955
- departureDate: be
956
- } = Z(Ve()), { isValidHotelId: Ue, updateDates: $e } = Ve(), {
957
- currency: ke,
958
- arrivalEarliest: ie,
959
- arrivalLatest: Le,
960
- departureEarliest: lt,
961
- departureLatest: St,
962
- enableTracking: Ht,
963
- hideArrivalDepartureInputs: It,
964
- disableArrivalUserSelection: Fe,
965
- disableNamePrefix: Bt,
966
- disableDepartureUserSelection: Oe,
967
- disableTravelingFor: Et,
968
- disableTravelingForBleasure: Mt,
969
- disableCompanyField: Rt,
970
- hasPaymentGateway: Nt,
971
- maxAdultAmount: nt,
972
- maxChildAmount: at
973
- } = Z(Te()), { beginCheckout: Ut } = Vt(), { display: je } = po(), {
974
- resetTemplate: Lt,
975
- resetDiscountVoucher: Ft,
976
- createReservation: Ot,
977
- fetchMetadata: jt,
978
- fetchAvailabilityData: it,
979
- filterAddons: st
980
- } = fe(), Gt = le(!0), qt = [
931
+ const l = io(() => import("./_-DmU4JLX1.js")), o = n, { t: e } = ae(), {
932
+ currentLocation: i,
933
+ hasSearched: s,
934
+ templateID: m,
935
+ templateAddons: p,
936
+ countries: u,
937
+ areListingsLoading: r,
938
+ isPaymentLoading: d,
939
+ isReservationFormFilled: v,
940
+ travelingFor: V,
941
+ arrivalTime: $,
942
+ departureTime: w,
943
+ name: H,
944
+ nameTitle: E,
945
+ email: B,
946
+ phone: k,
947
+ firmName: D,
948
+ postal: I,
949
+ city: J,
950
+ address: j,
951
+ country: W,
952
+ remark: q,
953
+ allergies: Y,
954
+ roomSelect: Z,
955
+ roomDisplay: ye,
956
+ hasValidRoomSelection: we,
957
+ availabilityData: F,
958
+ selectionHasNoAddons: ge,
959
+ isAvailabilityDataAvailable: be,
960
+ getSelectedPackageRoom: ke,
961
+ selectedPackage: _e,
962
+ isSearchOutdated: Ce,
963
+ currentChildren: ne,
964
+ isTemplateReservation: K
965
+ } = X(fe()), {
966
+ adults: N,
967
+ children: he,
968
+ location: $e,
969
+ arrivalDate: Ae,
970
+ departureDate: Fe
971
+ } = X(Ve()), { isValidHotelId: ie, updateDates: Oe } = Ve(), {
972
+ currency: Pe,
973
+ arrivalEarliest: It,
974
+ arrivalLatest: Bt,
975
+ departureEarliest: Et,
976
+ departureLatest: Nt,
977
+ enableTracking: Lt,
978
+ hideArrivalDepartureInputs: Mt,
979
+ disableArrivalUserSelection: je,
980
+ disableNamePrefix: Rt,
981
+ disableDepartureUserSelection: qe,
982
+ disableTravelingFor: Ut,
983
+ disableTravelingForBleasure: Ft,
984
+ disableCompanyField: Ot,
985
+ hasPaymentGateway: jt,
986
+ maxAdultAmount: it,
987
+ maxChildAmount: st
988
+ } = X(Te()), { beginCheckout: qt } = wt(), { display: Ge } = bo(), {
989
+ resetTemplate: Gt,
990
+ resetDiscountVoucher: Wt,
991
+ createReservation: Kt,
992
+ fetchMetadata: xt,
993
+ fetchAvailabilityData: rt,
994
+ filterAddons: dt
995
+ } = fe(), zt = le(!0), Jt = [
981
996
  {
982
997
  id: "availability",
983
998
  label: e("booking.availability.title"),
@@ -987,7 +1002,7 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
987
1002
  id: "addons",
988
1003
  label: e("booking.reservation.title"),
989
1004
  icon: "concierge-bell",
990
- hidden: me.value
1005
+ hidden: ge.value
991
1006
  },
992
1007
  {
993
1008
  id: "reservation",
@@ -1003,7 +1018,7 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1003
1018
  label: e("booking.confirmation.title"),
1004
1019
  icon: "calendar-check"
1005
1020
  }
1006
- ], Wt = G(() => {
1021
+ ], Yt = O(() => {
1007
1022
  const b = [
1008
1023
  {
1009
1024
  label: e("booking.reservation.business"),
@@ -1014,298 +1029,302 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1014
1029
  value: "Pleasure"
1015
1030
  }
1016
1031
  ];
1017
- return Mt.value || b.push({
1032
+ return Ft.value || b.push({
1018
1033
  label: e("booking.reservation.bleasure"),
1019
1034
  value: "Bleasure"
1020
1035
  }), b;
1021
- }), Kt = G(() => {
1022
- const b = N.value.roomGroups.slice();
1023
- function T(W, P) {
1024
- return Gt.value === !0 ? W.pricesFrom > P.pricesFrom ? -1 : 1 : W.pricesFrom > P.pricesFrom ? 1 : -1;
1036
+ }), Zt = O(() => {
1037
+ const b = F.value.roomGroups.slice();
1038
+ function T(x, P) {
1039
+ return zt.value === !0 ? x.pricesFrom > P.pricesFrom ? -1 : 1 : x.pricesFrom > P.pricesFrom ? 1 : -1;
1025
1040
  }
1026
1041
  return b.sort(T);
1027
- }), xt = G(() => [[
1028
- parseInt(ie.value.split(":")[0]),
1029
- parseInt(Le.value.split(":")[0])
1030
- ]]), zt = G(() => [[
1031
- parseInt(lt.value.split(":")[0]),
1032
- parseInt(St.value.split(":")[0])
1033
- ]]);
1034
- function rt(b) {
1035
- t.hideAddons === "yes" || me.value ? b(2) : b(), Ft();
1042
+ }), Qt = O(() => [[
1043
+ parseInt(It.value.split(":")[0]),
1044
+ parseInt(Bt.value.split(":")[0])
1045
+ ]]), Xt = O(() => [[
1046
+ parseInt(Et.value.split(":")[0]),
1047
+ parseInt(Nt.value.split(":")[0])
1048
+ ]]), We = O(() => o.hideAddons === "yes" || K.value && o.hideAddons === "packages" || !K.value && o.hideAddons === "rooms");
1049
+ function ut(b) {
1050
+ We.value || ge.value ? b(2) : b(), Wt();
1036
1051
  }
1037
- async function Jt(b) {
1038
- await Ot(b);
1052
+ async function eo(b) {
1053
+ await Kt(b);
1039
1054
  }
1040
- function Yt(b) {
1041
- Ht.value && Ut(), t.hideAddons === "yes" || me.value ? b(2) : b();
1055
+ function to(b) {
1056
+ Lt.value && qt(), We.value || ge.value ? b(2) : b();
1042
1057
  }
1043
- function Zt() {
1044
- const b = fo("hash-params", {
1058
+ function oo() {
1059
+ const b = _o("hash-params", {
1045
1060
  removeNullishValues: !0
1046
- }), T = parseInt(b.a), W = parseInt(b.c), P = parseInt(b.hid), y = parseInt(b.n), K = b.ci, M = b.co, S = b.id;
1047
- if (isNaN(T) || (T > nt.value ? ge.value = nt.value : ge.value = T, b.a = void 0), isNaN(W) || (W > at.value ? ee.value = at.value : ee.value = W, b.c = void 0), isNaN(y) || y > 0 && (b.n = void 0), isNaN(P) || (Ue(P) ? z.value = P : je({
1061
+ }), T = parseInt(b.a), x = parseInt(b.c), P = parseInt(b.hid), y = parseInt(b.n), G = b.ci, L = b.co, S = b.id;
1062
+ let te = !1;
1063
+ if (isNaN(T) || (T > it.value ? N.value = it.value : N.value = T, b.a = void 0), isNaN(x) || (x > st.value ? he.value = st.value : he.value = x, b.c = void 0), isNaN(y) || y > 0 && (b.n = void 0), isNaN(P) || (ie(P) ? ($e.value = P, te = !0) : Ge({
1048
1064
  message: e("alert.error.hotelIdNotFound"),
1049
1065
  type: "error"
1050
- })), K && M)
1051
- if (pt(K) && pt(M)) {
1052
- const Y = new Date(K), he = new Date(M);
1053
- Y <= he ? (U.value = Y, be.value = he, b.ci = void 0, b.co = void 0) : je({
1066
+ })), G && L)
1067
+ if (ft(G) && ft(L)) {
1068
+ const ve = new Date(G), se = new Date(L);
1069
+ ve <= se ? (Ae.value = ve, Fe.value = se) : (b.ci = void 0, b.co = void 0, Ge({
1054
1070
  message: e("alert.error.invalidDateRange"),
1055
1071
  type: "error"
1056
- });
1072
+ }));
1057
1073
  } else
1058
- je({
1074
+ Ge({
1059
1075
  message: e("alert.error.wrongDateFormat"),
1060
1076
  type: "error"
1061
1077
  });
1062
- let te = null;
1063
- S && (te = S), it(te);
1078
+ let Q = null;
1079
+ S && (Q = S), o.disableDefaultLocation === "yes" && te === !1 ? ($e.value = void 0, i.value = void 0) : rt(Q);
1064
1080
  }
1065
- return (b, T) => (u(), A(mo, { styling: b.styling }, {
1066
- default: $(() => [
1067
- (u(), A(eo, { onResolve: Zt }, {
1068
- default: $(() => [
1069
- g(o(l), {
1081
+ return (b, T) => (c(), A(ko, { styling: b.styling }, {
1082
+ default: C(() => [
1083
+ (c(), A(ao, { onResolve: oo }, {
1084
+ default: C(() => [
1085
+ g(t(l), {
1070
1086
  id: "konnectio-hotel-module",
1071
1087
  "access-token": b.accessToken,
1072
- callback: o(jt)
1088
+ callback: t(xt)
1073
1089
  }, {
1074
- default: $(() => [
1075
- g(To, {
1090
+ default: C(() => [
1091
+ g(Po, {
1076
1092
  layout: b.headerLayout,
1077
- steps: qt,
1078
- onReset: o(Lt)
1093
+ steps: Jt,
1094
+ onReset: t(Gt)
1079
1095
  }, {
1080
- availability: $(({ next: W }) => [
1081
- g(ze, null, {
1082
- form: $(() => [
1083
- a("div", _l, [
1084
- a("div", Vl, [
1085
- g(bo, {
1096
+ availability: C(({ next: x }) => [
1097
+ g(Ze, null, {
1098
+ form: C(() => [
1099
+ a("div", $l, [
1100
+ a("div", Al, [
1101
+ g(wo, {
1086
1102
  booking: !0,
1087
- "selected-location": Number(b.selectedLocation)
1088
- }, null, 8, ["selected-location"])
1103
+ "selected-location": Number(b.selectedLocation),
1104
+ "disable-default-location": b.disableDefaultLocation === "yes"
1105
+ }, null, 8, ["selected-location", "disable-default-location"])
1089
1106
  ]),
1090
1107
  _("", !0),
1091
- !o(p) && o(ve) ? (u(), h("div", Tl, [
1092
- o(N).roomGroups.length > 0 || o(N).templates.length > 0 || o(N).specialTemplates.length > 0 ? (u(), h("div", Cl, [
1093
- o(N).templates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("div", $l, [
1094
- b.onlyShow !== "packages" ? (u(), h("h2", wl, [
1095
- g(x, {
1108
+ !t(r) && t(be) ? (c(), f("div", Pl, [
1109
+ t(F).roomGroups.length > 0 || t(F).templates.length > 0 || t(F).specialTemplates.length > 0 ? (c(), f("div", Dl, [
1110
+ t(F).templates.length > 0 && b.onlyShow !== "rooms" ? (c(), f("div", Sl, [
1111
+ b.onlyShow !== "packages" ? (c(), f("h2", Hl, [
1112
+ g(z, {
1096
1113
  icon: "box",
1097
1114
  type: "fal",
1098
1115
  color: "header"
1099
1116
  }),
1100
- a("span", null, v(o(e)("booking.availability.packagesTitle")), 1)
1117
+ a("span", null, h(t(e)("booking.availability.packagesTitle")), 1)
1101
1118
  ])) : _("", !0),
1102
- a("ul", Al, [
1103
- (u(!0), h(R, null, O(o(N).templates, ({
1119
+ a("ul", Il, [
1120
+ (c(!0), f(M, null, U(t(F).templates, ({
1104
1121
  id: P,
1105
1122
  name: y,
1106
- templateRoomGroups: K,
1107
- image: M,
1123
+ templateRoomGroups: G,
1124
+ image: L,
1108
1125
  description: S,
1109
1126
  weekendFee: te
1110
- }) => (u(), A(il, {
1127
+ }) => (c(), A(cl, {
1111
1128
  key: P,
1112
1129
  id: P,
1113
1130
  description: S,
1114
1131
  name: y,
1115
- image: M,
1132
+ image: L,
1116
1133
  weekendFee: te,
1117
- "room-groups": K,
1118
- callback: W,
1119
- "hide-addons": b.hideAddons
1134
+ "room-groups": G,
1135
+ callback: x,
1136
+ "hide-addons": b.hideAddons === "yes" || b.hideAddons === "packages"
1120
1137
  }, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
1121
1138
  ])
1122
1139
  ])) : _("", !0),
1123
- o(N).roomGroups.length > 0 && b.onlyShow !== "packages" ? (u(), h("div", Pl, [
1124
- o(N).templates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("h2", Dl, [
1125
- g(x, {
1140
+ t(F).roomGroups.length > 0 && b.onlyShow !== "packages" ? (c(), f("div", Bl, [
1141
+ t(F).templates.length > 0 && b.onlyShow !== "rooms" ? (c(), f("h2", El, [
1142
+ g(z, {
1126
1143
  icon: "house",
1127
1144
  type: "fal",
1128
1145
  color: "header"
1129
1146
  }),
1130
- a("span", null, v(o(e)("booking.availability.roomsTitle")), 1)
1147
+ a("span", null, h(t(e)("booking.availability.roomsTitle")), 1)
1131
1148
  ])) : _("", !0),
1132
- a("ul", Sl, [
1133
- (u(!0), h(R, null, O(Kt.value, (P, y) => (u(), A(tl, {
1149
+ a("ul", Nl, [
1150
+ (c(!0), f(M, null, U(Zt.value, (P, y) => (c(), A(il, {
1134
1151
  room: P,
1135
1152
  key: y
1136
1153
  }, null, 8, ["room"]))), 128))
1137
1154
  ])
1138
1155
  ])) : _("", !0),
1139
- o(N).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (u(), h("div", Hl, [
1140
- a("h2", Il, [
1141
- g(x, {
1156
+ t(F).specialTemplates.length > 0 && b.onlyShow !== "rooms" ? (c(), f("div", Ll, [
1157
+ a("h2", Ml, [
1158
+ g(z, {
1142
1159
  icon: "sparkles",
1143
1160
  type: "fal",
1144
1161
  color: "header"
1145
1162
  }),
1146
- a("span", null, v(o(e)("hotel.specialOffers")), 1)
1163
+ a("span", null, h(t(e)("hotel.specialOffers")), 1)
1147
1164
  ]),
1148
- a("ul", Bl, [
1149
- (u(!0), h(R, null, O(o(N).specialTemplates, ({
1165
+ a("ul", Rl, [
1166
+ (c(!0), f(M, null, U(t(F).specialTemplates, ({
1150
1167
  id: P,
1151
1168
  name: y,
1152
- templateRoomGroups: K,
1153
- image: M,
1169
+ templateRoomGroups: G,
1170
+ image: L,
1154
1171
  description: S,
1155
1172
  weekendFee: te,
1156
- fromDate: Y,
1157
- toDate: he
1158
- }) => (u(), A(dl, {
1173
+ fromDate: Q,
1174
+ toDate: ve
1175
+ }) => (c(), A(fl, {
1159
1176
  key: P,
1160
1177
  id: P,
1161
1178
  description: S,
1162
1179
  name: y,
1163
- image: M,
1164
- fromDate: Y,
1165
- toDate: he,
1180
+ image: L,
1181
+ fromDate: Q,
1182
+ toDate: ve,
1166
1183
  weekendFee: te,
1167
- "room-groups": K,
1168
- callback: W
1184
+ "room-groups": G,
1185
+ callback: x
1169
1186
  }, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
1170
1187
  ])
1171
1188
  ])) : _("", !0),
1172
- (o(N).templates.length === 0 && b.onlyShow !== "rooms" || o(N).roomGroups.length === 0 && b.onlyShow !== "packages") && (b.onlyShow === "rooms" || b.onlyShow === "packages") ? (u(), h("div", El, [
1173
- a("span", null, v(o(e)("booking.availability.nothingAvailable")), 1)
1189
+ (t(F).templates.length === 0 && b.onlyShow !== "rooms" || t(F).roomGroups.length === 0 && b.onlyShow !== "packages") && (b.onlyShow === "rooms" || b.onlyShow === "packages") ? (c(), f("div", Ul, [
1190
+ a("span", null, h(t(e)("booking.availability.nothingAvailable")), 1)
1174
1191
  ])) : _("", !0)
1175
- ])) : o(N).nextAvailableDates.length === 0 ? (u(), h("div", Ml, [
1176
- a("span", null, v(o(e)("booking.availability.nothingAvailable")), 1)
1177
- ])) : (u(), h("div", Rl, [
1178
- a("h2", Nl, [
1179
- g(x, {
1192
+ ])) : t(F).nextAvailableDates.length === 0 ? (c(), f("div", Fl, [
1193
+ a("span", null, h(t(e)("booking.availability.nothingAvailable")), 1)
1194
+ ])) : (c(), f("div", Ol, [
1195
+ a("h2", jl, [
1196
+ g(z, {
1180
1197
  icon: "calendar-circle-exclamation",
1181
1198
  type: "fal",
1182
1199
  color: "header"
1183
1200
  }),
1184
- a("span", null, v(o(e)("booking.availability.nextAvailableDates")), 1)
1201
+ a("span", null, h(t(e)("booking.availability.nextAvailableDates")), 1)
1185
1202
  ]),
1186
- a("ul", Ul, [
1187
- (u(!0), h(R, null, O(o(N).nextAvailableDates, (P, y) => (u(), h("li", { key: y }, [
1203
+ a("ul", ql, [
1204
+ (c(!0), f(M, null, U(t(F).nextAvailableDates, (P, y) => (c(), f("li", { key: y }, [
1188
1205
  a("h3", {
1189
- title: `${o(ue)(P.fromDate)} - ${o(ue)(P.toDate)}`
1206
+ title: `${t(pe)(P.fromDate)} - ${t(pe)(P.toDate)}`
1190
1207
  }, [
1191
- a("span", null, v(`${o(ue)(P.fromDate)} - ${o(ue)(P.toDate)}`), 1)
1192
- ], 8, Ll),
1208
+ a("span", null, h(`${t(pe)(P.fromDate)} - ${t(pe)(P.toDate)}`), 1)
1209
+ ], 8, Gl),
1193
1210
  a("ul", null, [
1194
1211
  _("", !0),
1195
1212
  a("li", null, [
1196
- g(x, {
1213
+ g(z, {
1197
1214
  icon: "money-bill",
1198
1215
  type: "fal",
1199
1216
  color: "header"
1200
1217
  }),
1201
- a("span", null, v(o(e)("booking.availability.pricesFrom")) + ": " + v(o(oe)(P.priceStartFrom, o(ke))), 1)
1218
+ a("span", null, h(t(e)("booking.availability.pricesFrom")) + ": " + h(t(oe)(P.priceStartFrom, t(Pe))), 1)
1202
1219
  ])
1203
1220
  ]),
1204
1221
  g(ce, {
1205
- label: o(e)("booking.availability.selectDates"),
1222
+ label: t(e)("booking.availability.selectDates"),
1206
1223
  "full-width": "",
1207
- onClickEvent: (K) => o($e)(new Date(P.fromDate), new Date(P.toDate))
1224
+ onClickEvent: (G) => t(Oe)(new Date(P.fromDate), new Date(P.toDate))
1208
1225
  }, null, 8, ["label", "onClickEvent"])
1209
1226
  ]))), 128))
1210
1227
  ])
1211
1228
  ]))
1212
- ])) : (u(), h("div", Fl, [
1213
- g(xe),
1214
- g(xe),
1215
- g(xe)
1229
+ ])) : isNaN(t(i)) && !t(r) ? (c(), f("div", Wl, [
1230
+ a("span", null, h(t(e)("alert.info.selectHotelToStart")), 1)
1231
+ ])) : (c(), f("div", Kl, [
1232
+ g(Ye),
1233
+ g(Ye),
1234
+ g(Ye)
1216
1235
  ]))
1217
1236
  ])
1218
1237
  ]),
1219
- navigation: $(() => [
1220
- o(Ne) ? (u(), A(ce, {
1238
+ navigation: C(() => [
1239
+ t(Ce) ? (c(), A(ce, {
1221
1240
  key: 0,
1222
- label: o(e)("general.searchAgain"),
1223
- "is-loading": o(p),
1241
+ label: isNaN(t(i)) ? t(e)("availability.buttonLabel") : t(e)("general.searchAgain"),
1242
+ "is-loading": t(r),
1224
1243
  "full-width": "",
1225
- onClickEvent: T[1] || (T[1] = (P) => o(it)())
1226
- }, null, 8, ["label", "is-loading"])) : (u(), A(ce, {
1244
+ onClickEvent: T[1] || (T[1] = (P) => t(rt)())
1245
+ }, null, 8, ["label", "is-loading"])) : (c(), A(ce, {
1227
1246
  key: 1,
1228
- label: o(me) || b.hideAddons === "yes" ? o(e)("booking.availability.nextButton") : o(e)("general.chooseAddons"),
1229
- disabled: !o(ae),
1247
+ label: t(ge) || We.value ? t(e)("booking.availability.nextButton") : t(e)("general.chooseAddons"),
1248
+ disabled: !t(we),
1230
1249
  "full-width": "",
1231
- onClickEvent: (P) => Yt(W)
1250
+ onClickEvent: (P) => to(x)
1232
1251
  }, null, 8, ["label", "disabled", "onClickEvent"]))
1233
1252
  ]),
1234
1253
  _: 2
1235
1254
  }, 1024)
1236
1255
  ]),
1237
- addons: $(({ next: W, prev: P }) => [
1238
- o(ve) ? (u(), A(ze, { key: 0 }, {
1239
- form: $(() => [
1240
- a("form", Ol, [
1256
+ addons: C(({ next: x, prev: P }) => [
1257
+ t(be) ? (c(), A(Ze, { key: 0 }, {
1258
+ form: C(() => [
1259
+ a("form", xl, [
1241
1260
  a("h2", null, [
1242
- a("span", null, v(o(e)("booking.reservation.addons")), 1)
1261
+ a("span", null, h(t(e)("booking.reservation.addons")), 1)
1243
1262
  ]),
1244
1263
  a("div", null, [
1245
- isNaN(o(i)) ? (u(), h("div", jl, [
1246
- (u(!0), h(R, null, O(o(X), (y) => (u(), h("ul", {
1264
+ isNaN(t(m)) ? (c(), f("div", zl, [
1265
+ (c(!0), f(M, null, U(t(ye), (y) => (c(), f("ul", {
1247
1266
  key: y.roomGroupID
1248
1267
  }, [
1249
- (u(!0), h(R, null, O(y.variants, (K, M) => (u(), h("li", {
1250
- key: K.ratePlanID
1268
+ (c(!0), f(M, null, U(y.variants, (G, L) => (c(), f("li", {
1269
+ key: G.ratePlanID
1251
1270
  }, [
1252
1271
  a("h4", null, [
1253
- a("span", null, v(o(de)(y.title)), 1)
1272
+ a("span", null, h(t(ue)(y.title)), 1)
1254
1273
  ]),
1255
- (u(!0), h(R, null, O(K.rooms, (S, te) => (u(), h("table", {
1274
+ (c(!0), f(M, null, U(G.rooms, (S, te) => (c(), f("table", {
1256
1275
  key: te,
1257
1276
  class: "konnectio-table with-lines"
1258
1277
  }, [
1259
1278
  a("thead", null, [
1260
1279
  a("tr", null, [
1261
1280
  a("th", null, [
1262
- a("span", null, v(o(de)(K.name)), 1)
1281
+ a("span", null, h(t(ue)(G.name)), 1)
1263
1282
  ]),
1264
1283
  _("", !0),
1265
- a("th", Gl, [
1284
+ a("th", Jl, [
1266
1285
  a("b", null, [
1267
- g(x, {
1286
+ g(z, {
1268
1287
  icon: "male",
1269
1288
  type: "fas",
1270
1289
  color: "font"
1271
1290
  }),
1272
- a("span", null, v(S.adultsCount), 1),
1273
- S.childrenCount > 0 ? (u(), A(x, {
1291
+ a("span", null, h(S.adultsCount), 1),
1292
+ S.childrenCount > 0 ? (c(), A(z, {
1274
1293
  key: 0,
1275
1294
  icon: "child",
1276
1295
  type: "fas",
1277
1296
  color: "font"
1278
1297
  })) : _("", !0),
1279
- S.childrenCount > 0 ? (u(), h("span", ql, v(S.childrenCount), 1)) : _("", !0)
1298
+ S.childrenCount > 0 ? (c(), f("span", Yl, h(S.childrenCount), 1)) : _("", !0)
1280
1299
  ])
1281
1300
  ])
1282
1301
  ])
1283
1302
  ]),
1284
1303
  a("tbody", null, [
1285
- (u(!0), h(R, null, O(o(st)(y.addons, S.childrenCount), ({
1286
- quantityStrategy: Y,
1287
- maximumNumber: he,
1288
- id: _e,
1289
- name: Qt,
1290
- price: Xt
1291
- }) => (u(), h("tr", { key: _e }, [
1292
- a("td", Wl, [
1293
- a("b", null, v(o(de)(Qt)), 1),
1294
- a("span", null, v(o(oe)(Xt, o(ke))) + " " + v(o(ut)(Y)), 1)
1304
+ (c(!0), f(M, null, U(t(dt)(G.addons, S.childrenCount), ({
1305
+ quantityStrategy: Q,
1306
+ maximumNumber: ve,
1307
+ id: se,
1308
+ name: lo,
1309
+ price: no
1310
+ }) => (c(), f("tr", { key: se }, [
1311
+ a("td", Zl, [
1312
+ a("b", null, h(t(ue)(lo)), 1),
1313
+ a("span", null, h(t(oe)(no, t(Pe))) + " " + h(t(mt)(Q)), 1)
1295
1314
  ]),
1296
- a("td", Kl, [
1297
- o(L)[y.roomGroupID][M].config[S.configIdx].addons[S.roomIdx] ? (u(), h(R, { key: 0 }, [
1298
- Y === 1 || Y === 12 ? (u(), A(Qe, {
1315
+ a("td", Ql, [
1316
+ t(Z)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx] ? (c(), f(M, { key: 0 }, [
1317
+ Q === 1 || Q === 12 ? (c(), A(tt, {
1299
1318
  key: 0,
1300
- modelValue: o(L)[y.roomGroupID][M].config[S.configIdx].addons[S.roomIdx][_e],
1301
- "onUpdate:modelValue": (Ge) => o(L)[y.roomGroupID][M].config[S.configIdx].addons[S.roomIdx][_e] = Ge,
1319
+ modelValue: t(Z)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se],
1320
+ "onUpdate:modelValue": (Ke) => t(Z)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se] = Ke,
1302
1321
  small: !0,
1303
1322
  "min-value": 0,
1304
- "max-value": he || 1 / 0
1305
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Ie, {
1323
+ "max-value": ve || 1 / 0
1324
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), A(Le, {
1306
1325
  key: 1,
1307
- modelValue: o(L)[y.roomGroupID][M].config[S.configIdx].addons[S.roomIdx][_e],
1308
- "onUpdate:modelValue": (Ge) => o(L)[y.roomGroupID][M].config[S.configIdx].addons[S.roomIdx][_e] = Ge,
1326
+ modelValue: t(Z)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se],
1327
+ "onUpdate:modelValue": (Ke) => t(Z)[y.roomGroupID][L].config[S.configIdx].addons[S.roomIdx][se] = Ke,
1309
1328
  numeric: !0
1310
1329
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1311
1330
  ], 64)) : _("", !0)
@@ -1315,45 +1334,45 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1315
1334
  ]))), 128))
1316
1335
  ]))), 128))
1317
1336
  ]))), 128))
1318
- ])) : o(Ce) ? (u(), h("div", xl, [
1337
+ ])) : t(ke) ? (c(), f("div", Xl, [
1319
1338
  a("div", null, [
1320
1339
  a("h4", null, [
1321
- a("span", null, v(o(Re).name), 1)
1340
+ a("span", null, h(t(_e).name), 1)
1322
1341
  ]),
1323
- a("table", zl, [
1342
+ a("table", en, [
1324
1343
  a("thead", null, [
1325
1344
  a("tr", null, [
1326
1345
  a("th", null, [
1327
- a("span", null, v(o(de)(o(Ce).title)), 1)
1346
+ a("span", null, h(t(ue)(t(ke).title)), 1)
1328
1347
  ]),
1329
1348
  _("", !0),
1330
- Jl
1349
+ tn
1331
1350
  ])
1332
1351
  ]),
1333
1352
  a("tbody", null, [
1334
- (u(!0), h(R, null, O(o(st)(o(Ce).addons, o(ye)), ({
1353
+ (c(!0), f(M, null, U(t(dt)(t(ke).addons, t(ne)), ({
1335
1354
  quantityStrategy: y,
1336
- maximumNumber: K,
1337
- id: M,
1355
+ maximumNumber: G,
1356
+ id: L,
1338
1357
  name: S,
1339
1358
  price: te
1340
- }) => (u(), h("tr", { key: M }, [
1341
- a("td", Yl, [
1342
- a("b", null, v(o(de)(S)), 1),
1343
- a("span", null, v(o(oe)(te, o(ke))) + " " + v(o(ut)(y)), 1)
1359
+ }) => (c(), f("tr", { key: L }, [
1360
+ a("td", on, [
1361
+ a("b", null, h(t(ue)(S)), 1),
1362
+ a("span", null, h(t(oe)(te, t(Pe))) + " " + h(t(mt)(y)), 1)
1344
1363
  ]),
1345
- a("td", Zl, [
1346
- y === 1 || y === 12 ? (u(), A(Qe, {
1364
+ a("td", ln, [
1365
+ y === 1 || y === 12 ? (c(), A(tt, {
1347
1366
  key: 0,
1348
- modelValue: o(s)[M],
1349
- "onUpdate:modelValue": (Y) => o(s)[M] = Y,
1367
+ modelValue: t(p)[L],
1368
+ "onUpdate:modelValue": (Q) => t(p)[L] = Q,
1350
1369
  small: !0,
1351
1370
  "min-value": 0,
1352
- "max-value": K || 1 / 0
1353
- }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Ie, {
1371
+ "max-value": G || 1 / 0
1372
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (c(), A(Le, {
1354
1373
  key: 1,
1355
- modelValue: o(s)[M],
1356
- "onUpdate:modelValue": (Y) => o(s)[M] = Y,
1374
+ modelValue: t(p)[L],
1375
+ "onUpdate:modelValue": (Q) => t(p)[L] = Q,
1357
1376
  numeric: !0
1358
1377
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
1359
1378
  ])
@@ -1365,198 +1384,198 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1365
1384
  ])
1366
1385
  ])
1367
1386
  ]),
1368
- navigation: $(() => [
1387
+ navigation: C(() => [
1369
1388
  g(ce, {
1370
- label: o(e)("general.startReservation"),
1389
+ label: t(e)("general.startReservation"),
1371
1390
  "full-width": "",
1372
- onClickEvent: W
1391
+ onClickEvent: x
1373
1392
  }, null, 8, ["label", "onClickEvent"]),
1374
1393
  a("button", {
1375
1394
  class: "konnectio-abort-reservation link",
1376
- onClick: De((y) => rt(P), ["prevent"])
1395
+ onClick: Be((y) => ut(P), ["prevent"])
1377
1396
  }, [
1378
- a("span", null, v(o(e)("general.goAStepBack")), 1)
1379
- ], 8, Ql)
1397
+ a("span", null, h(t(e)("general.goAStepBack")), 1)
1398
+ ], 8, nn)
1380
1399
  ]),
1381
1400
  _: 2
1382
1401
  }, 1024)) : _("", !0)
1383
1402
  ]),
1384
- reservation: $(({ next: W, prev: P }) => [
1385
- o(ve) ? (u(), A(ze, {
1403
+ reservation: C(({ next: x, prev: P }) => [
1404
+ t(be) ? (c(), A(Ze, {
1386
1405
  key: 0,
1387
1406
  "show-terms-notice": !0,
1388
1407
  "show-gift-card": !0
1389
1408
  }, {
1390
- form: $(() => [
1391
- a("form", Xl, [
1409
+ form: C(() => [
1410
+ a("form", an, [
1392
1411
  a("h2", null, [
1393
- a("span", null, v(o(e)("booking.reservation.detailsTitle")), 1)
1412
+ a("span", null, h(t(e)("booking.reservation.detailsTitle")), 1)
1394
1413
  ]),
1395
- !o(It) && !(o(Fe) && o(Oe)) ? (u(), h("ul", {
1414
+ !t(Mt) && !(t(je) && t(qe)) ? (c(), f("ul", {
1396
1415
  key: 0,
1397
- class: He({ "konnectio-split-inputs": !o(Fe) && !o(Oe) })
1416
+ class: Ne({ "konnectio-split-inputs": !t(je) && !t(qe) })
1398
1417
  }, [
1399
- o(Fe) ? _("", !0) : (u(), h("li", en, [
1400
- g(mt, {
1401
- modelValue: o(f),
1402
- "onUpdate:modelValue": T[2] || (T[2] = (y) => F(f) ? f.value = y : null),
1403
- label: o(e)("booking.reservation.arrivalTime"),
1418
+ t(je) ? _("", !0) : (c(), f("li", sn, [
1419
+ g(ht, {
1420
+ modelValue: t($),
1421
+ "onUpdate:modelValue": T[2] || (T[2] = (y) => R($) ? $.value = y : null),
1422
+ label: t(e)("booking.reservation.arrivalTime"),
1404
1423
  icon: "hourglass-start",
1405
- "hour-range": xt.value,
1424
+ "hour-range": Qt.value,
1406
1425
  required: ""
1407
1426
  }, null, 8, ["modelValue", "label", "hour-range"])
1408
1427
  ])),
1409
- o(Oe) ? _("", !0) : (u(), h("li", tn, [
1410
- g(mt, {
1411
- modelValue: o(V),
1412
- "onUpdate:modelValue": T[3] || (T[3] = (y) => F(V) ? V.value = y : null),
1413
- label: o(e)("booking.reservation.departureTime"),
1428
+ t(qe) ? _("", !0) : (c(), f("li", rn, [
1429
+ g(ht, {
1430
+ modelValue: t(w),
1431
+ "onUpdate:modelValue": T[3] || (T[3] = (y) => R(w) ? w.value = y : null),
1432
+ label: t(e)("booking.reservation.departureTime"),
1414
1433
  icon: "hourglass-end",
1415
- "hour-range": zt.value,
1434
+ "hour-range": Xt.value,
1416
1435
  required: ""
1417
1436
  }, null, 8, ["modelValue", "label", "hour-range"])
1418
1437
  ]))
1419
1438
  ], 2)) : _("", !0),
1420
- g(fl, {
1421
- modelValue: o(w),
1422
- "onUpdate:modelValue": T[4] || (T[4] = (y) => F(w) ? w.value = y : null),
1423
- title: o(C),
1424
- "onUpdate:title": T[5] || (T[5] = (y) => F(C) ? C.value = y : null),
1425
- "exclude-title": o(Bt),
1426
- label: o(e)("booking.reservation.name"),
1439
+ g(bl, {
1440
+ modelValue: t(H),
1441
+ "onUpdate:modelValue": T[4] || (T[4] = (y) => R(H) ? H.value = y : null),
1442
+ title: t(E),
1443
+ "onUpdate:title": T[5] || (T[5] = (y) => R(E) ? E.value = y : null),
1444
+ "exclude-title": t(Rt),
1445
+ label: t(e)("booking.reservation.name"),
1427
1446
  icon: "user-alt",
1428
- placeholder: o(e)("booking.reservation.namePlaceholder"),
1447
+ placeholder: t(e)("booking.reservation.namePlaceholder"),
1429
1448
  required: ""
1430
1449
  }, null, 8, ["modelValue", "title", "exclude-title", "label", "placeholder"]),
1431
- g(re, {
1432
- modelValue: o(H),
1433
- "onUpdate:modelValue": T[6] || (T[6] = (y) => F(H) ? H.value = y : null),
1450
+ g(de, {
1451
+ modelValue: t(B),
1452
+ "onUpdate:modelValue": T[6] || (T[6] = (y) => R(B) ? B.value = y : null),
1434
1453
  type: "email",
1435
1454
  name: "email",
1436
1455
  autocomplete: "email",
1437
- label: o(e)("booking.reservation.email"),
1456
+ label: t(e)("booking.reservation.email"),
1438
1457
  icon: "at",
1439
- placeholder: o(e)("booking.reservation.emailPlaceholder"),
1458
+ placeholder: t(e)("booking.reservation.emailPlaceholder"),
1440
1459
  required: ""
1441
1460
  }, null, 8, ["modelValue", "label", "placeholder"]),
1442
- o(Rt) ? _("", !0) : (u(), A(re, {
1461
+ t(Ot) ? _("", !0) : (c(), A(de, {
1443
1462
  key: 1,
1444
- modelValue: o(B),
1445
- "onUpdate:modelValue": T[7] || (T[7] = (y) => F(B) ? B.value = y : null),
1463
+ modelValue: t(D),
1464
+ "onUpdate:modelValue": T[7] || (T[7] = (y) => R(D) ? D.value = y : null),
1446
1465
  type: "text",
1447
1466
  name: "firm",
1448
1467
  autocomplete: "firm",
1449
- label: `${o(e)("booking.reservation.companyName")} (${o(e)("booking.reservation.optional")})`,
1468
+ label: `${t(e)("booking.reservation.companyName")} (${t(e)("booking.reservation.optional")})`,
1450
1469
  icon: "id-card",
1451
- placeholder: o(e)("booking.reservation.companyNamePlaceholder")
1470
+ placeholder: t(e)("booking.reservation.companyNamePlaceholder")
1452
1471
  }, null, 8, ["modelValue", "label", "placeholder"])),
1453
- g(Do, {
1454
- modelValue: o(E),
1455
- "onUpdate:modelValue": T[8] || (T[8] = (y) => F(E) ? E.value = y : null),
1472
+ g(Eo, {
1473
+ modelValue: t(k),
1474
+ "onUpdate:modelValue": T[8] || (T[8] = (y) => R(k) ? k.value = y : null),
1456
1475
  icon: "phone-office",
1457
- label: o(e)("booking.reservation.phone"),
1458
- placeholder: o(e)("booking.reservation.phonePlaceholder"),
1476
+ label: t(e)("booking.reservation.phone"),
1477
+ placeholder: t(e)("booking.reservation.phonePlaceholder"),
1459
1478
  required: ""
1460
1479
  }, null, 8, ["modelValue", "label", "placeholder"]),
1461
- g(pl, {
1462
- modelValue: o(J),
1463
- "onUpdate:modelValue": T[9] || (T[9] = (y) => F(J) ? J.value = y : null),
1464
- label: o(e)("booking.reservation.country"),
1465
- placeholder: o(e)("booking.reservation.countryPlaceholder"),
1466
- options: o(m),
1480
+ g(yl, {
1481
+ modelValue: t(W),
1482
+ "onUpdate:modelValue": T[9] || (T[9] = (y) => R(W) ? W.value = y : null),
1483
+ label: t(e)("booking.reservation.country"),
1484
+ placeholder: t(e)("booking.reservation.countryPlaceholder"),
1485
+ options: t(u),
1467
1486
  required: ""
1468
1487
  }, null, 8, ["modelValue", "label", "placeholder", "options"]),
1469
- g(re, {
1470
- modelValue: o(I),
1471
- "onUpdate:modelValue": T[10] || (T[10] = (y) => F(I) ? I.value = y : null),
1488
+ g(de, {
1489
+ modelValue: t(j),
1490
+ "onUpdate:modelValue": T[10] || (T[10] = (y) => R(j) ? j.value = y : null),
1472
1491
  type: "textarea",
1473
1492
  name: "address",
1474
1493
  autocomplete: "street-address",
1475
- label: o(e)("booking.reservation.streetAddress"),
1494
+ label: t(e)("booking.reservation.streetAddress"),
1476
1495
  icon: "map-marked",
1477
- placeholder: o(e)("booking.reservation.streetAddressPlaceholder"),
1496
+ placeholder: t(e)("booking.reservation.streetAddressPlaceholder"),
1478
1497
  required: ""
1479
1498
  }, null, 8, ["modelValue", "label", "placeholder"]),
1480
- a("ul", on, [
1499
+ a("ul", dn, [
1481
1500
  a("li", null, [
1482
- g(re, {
1483
- modelValue: o(k),
1484
- "onUpdate:modelValue": T[11] || (T[11] = (y) => F(k) ? k.value = y : null),
1501
+ g(de, {
1502
+ modelValue: t(I),
1503
+ "onUpdate:modelValue": T[11] || (T[11] = (y) => R(I) ? I.value = y : null),
1485
1504
  type: "text",
1486
1505
  name: "postal",
1487
1506
  autocomplete: "postal-code",
1488
- label: o(e)("booking.reservation.postal"),
1507
+ label: t(e)("booking.reservation.postal"),
1489
1508
  icon: "mailbox",
1490
- placeholder: o(e)("booking.reservation.postalPlaceholder"),
1509
+ placeholder: t(e)("booking.reservation.postalPlaceholder"),
1491
1510
  required: ""
1492
1511
  }, null, 8, ["modelValue", "label", "placeholder"])
1493
1512
  ]),
1494
1513
  a("li", null, [
1495
- g(re, {
1496
- modelValue: o(D),
1497
- "onUpdate:modelValue": T[12] || (T[12] = (y) => F(D) ? D.value = y : null),
1514
+ g(de, {
1515
+ modelValue: t(J),
1516
+ "onUpdate:modelValue": T[12] || (T[12] = (y) => R(J) ? J.value = y : null),
1498
1517
  type: "text",
1499
1518
  name: "city",
1500
1519
  autocomplete: "address-level2",
1501
- label: o(e)("booking.reservation.city"),
1520
+ label: t(e)("booking.reservation.city"),
1502
1521
  icon: "city",
1503
- placeholder: o(e)("booking.reservation.cityPlaceholder"),
1522
+ placeholder: t(e)("booking.reservation.cityPlaceholder"),
1504
1523
  required: ""
1505
1524
  }, null, 8, ["modelValue", "label", "placeholder"])
1506
1525
  ])
1507
1526
  ]),
1508
- g(re, {
1509
- modelValue: o(j),
1510
- "onUpdate:modelValue": T[13] || (T[13] = (y) => F(j) ? j.value = y : null),
1527
+ g(de, {
1528
+ modelValue: t(q),
1529
+ "onUpdate:modelValue": T[13] || (T[13] = (y) => R(q) ? q.value = y : null),
1511
1530
  type: "textarea",
1512
- label: `${o(e)("booking.reservation.remark")} (${o(e)("booking.reservation.optional")})`,
1531
+ label: `${t(e)("booking.reservation.remark")} (${t(e)("booking.reservation.optional")})`,
1513
1532
  icon: "info-circle",
1514
- placeholder: o(e)("booking.reservation.remarkPlaceholder")
1533
+ placeholder: t(e)("booking.reservation.remarkPlaceholder")
1515
1534
  }, null, 8, ["modelValue", "label", "placeholder"]),
1516
- g(re, {
1517
- modelValue: o(q),
1518
- "onUpdate:modelValue": T[14] || (T[14] = (y) => F(q) ? q.value = y : null),
1535
+ g(de, {
1536
+ modelValue: t(Y),
1537
+ "onUpdate:modelValue": T[14] || (T[14] = (y) => R(Y) ? Y.value = y : null),
1519
1538
  type: "textarea",
1520
- label: `${o(e)("booking.reservation.allergies")} (${o(e)("booking.reservation.optional")})`,
1539
+ label: `${t(e)("booking.reservation.allergies")} (${t(e)("booking.reservation.optional")})`,
1521
1540
  icon: "allergies",
1522
- placeholder: o(e)("booking.reservation.allergiesPlaceholder")
1541
+ placeholder: t(e)("booking.reservation.allergiesPlaceholder")
1523
1542
  }, null, 8, ["modelValue", "label", "placeholder"]),
1524
- o(Et) ? _("", !0) : (u(), A(Co, {
1543
+ t(Ut) ? _("", !0) : (c(), A(Do, {
1525
1544
  key: 2,
1526
- modelValue: o(d),
1527
- "onUpdate:modelValue": T[15] || (T[15] = (y) => F(d) ? d.value = y : null),
1528
- label: `${o(e)("booking.reservation.purposeOfStay")} (${o(e)("booking.reservation.optional")})`,
1545
+ modelValue: t(V),
1546
+ "onUpdate:modelValue": T[15] || (T[15] = (y) => R(V) ? V.value = y : null),
1547
+ label: `${t(e)("booking.reservation.purposeOfStay")} (${t(e)("booking.reservation.optional")})`,
1529
1548
  name: "travelingFor",
1530
- checkboxes: Wt.value
1549
+ checkboxes: Yt.value
1531
1550
  }, null, 8, ["modelValue", "label", "checkboxes"]))
1532
1551
  ])
1533
1552
  ]),
1534
- navigation: $(() => [
1553
+ navigation: C(() => [
1535
1554
  a("div", null, [
1536
1555
  g(ce, {
1537
- label: o(Nt) ? o(e)("booking.reservation.nextButton") : o(e)("general.confirmReservation"),
1538
- disabled: !o(r),
1539
- "is-loading": o(c),
1556
+ label: t(jt) ? t(e)("booking.reservation.nextButton") : t(e)("general.confirmReservation"),
1557
+ disabled: !t(v),
1558
+ "is-loading": t(d),
1540
1559
  "full-width": "",
1541
- onClickEvent: (y) => Jt(W)
1560
+ onClickEvent: (y) => eo(x)
1542
1561
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
1543
1562
  a("button", {
1544
1563
  class: "konnectio-abort-reservation link",
1545
- onClick: De((y) => rt(P), ["prevent"])
1564
+ onClick: Be((y) => ut(P), ["prevent"])
1546
1565
  }, [
1547
- a("span", null, v(o(e)("general.goAStepBack")), 1)
1548
- ], 8, ln)
1566
+ a("span", null, h(t(e)("general.goAStepBack")), 1)
1567
+ ], 8, un)
1549
1568
  ])
1550
1569
  ]),
1551
1570
  _: 2
1552
1571
  }, 1024)) : _("", !0)
1553
1572
  ]),
1554
- payment: $(() => [
1555
- g(So)
1573
+ payment: C(() => [
1574
+ g(No)
1556
1575
  ]),
1557
- confirmation: $(() => [
1558
- g($o, {
1559
- message: o(e)("booking.confirmation.thankYou")
1576
+ confirmation: C(() => [
1577
+ g(So, {
1578
+ message: t(e)("booking.confirmation.thankYou")
1560
1579
  }, null, 8, ["message"])
1561
1580
  ]),
1562
1581
  _: 1
@@ -1565,8 +1584,8 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1565
1584
  _: 1
1566
1585
  }, 8, ["access-token", "callback"])
1567
1586
  ]),
1568
- fallback: $(() => [
1569
- g(bl)
1587
+ fallback: C(() => [
1588
+ g(wl)
1570
1589
  ]),
1571
1590
  _: 1
1572
1591
  }))
@@ -1574,36 +1593,36 @@ const Jl = /* @__PURE__ */ kl(() => /* @__PURE__ */ a("th", { class: "konnectio-
1574
1593
  _: 1
1575
1594
  }, 8, ["styling"]));
1576
1595
  }
1577
- }), we = /* @__PURE__ */ pe(nn, [["__scopeId", "data-v-652c2f0e"]]);
1578
- function Xe(n, l = {}, t) {
1596
+ }), Se = /* @__PURE__ */ me(cn, [["__scopeId", "data-v-be167e1f"]]);
1597
+ function ot(n, l = {}, o) {
1579
1598
  for (const e in n) {
1580
- const i = n[e], s = t ? `${t}:${e}` : e;
1581
- typeof i == "object" && i !== null ? Xe(i, l, s) : typeof i == "function" && (l[s] = i);
1599
+ const i = n[e], s = o ? `${o}:${e}` : e;
1600
+ typeof i == "object" && i !== null ? ot(i, l, s) : typeof i == "function" && (l[s] = i);
1582
1601
  }
1583
1602
  return l;
1584
1603
  }
1585
- const an = { run: (n) => n() }, sn = () => an, wt = typeof console.createTask < "u" ? console.createTask : sn;
1586
- function rn(n, l) {
1587
- const t = l.shift(), e = wt(t);
1604
+ const pn = { run: (n) => n() }, mn = () => pn, Pt = typeof console.createTask < "u" ? console.createTask : mn;
1605
+ function fn(n, l) {
1606
+ const o = l.shift(), e = Pt(o);
1588
1607
  return n.reduce(
1589
1608
  (i, s) => i.then(() => e.run(() => s(...l))),
1590
1609
  Promise.resolve()
1591
1610
  );
1592
1611
  }
1593
- function dn(n, l) {
1594
- const t = l.shift(), e = wt(t);
1612
+ function hn(n, l) {
1613
+ const o = l.shift(), e = Pt(o);
1595
1614
  return Promise.all(n.map((i) => e.run(() => i(...l))));
1596
1615
  }
1597
- function Je(n, l) {
1598
- for (const t of [...n])
1599
- t(l);
1616
+ function Qe(n, l) {
1617
+ for (const o of [...n])
1618
+ o(l);
1600
1619
  }
1601
- class cn {
1620
+ class vn {
1602
1621
  constructor() {
1603
1622
  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);
1604
1623
  }
1605
- hook(l, t, e = {}) {
1606
- if (!l || typeof t != "function")
1624
+ hook(l, o, e = {}) {
1625
+ if (!l || typeof o != "function")
1607
1626
  return () => {
1608
1627
  };
1609
1628
  const i = l;
@@ -1614,30 +1633,30 @@ class cn {
1614
1633
  let m = s.message;
1615
1634
  m || (m = `${i} hook has been deprecated` + (s.to ? `, please use ${s.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(m) || (console.warn(m), this._deprecatedMessages.add(m));
1616
1635
  }
1617
- if (!t.name)
1636
+ if (!o.name)
1618
1637
  try {
1619
- Object.defineProperty(t, "name", {
1638
+ Object.defineProperty(o, "name", {
1620
1639
  get: () => "_" + l.replace(/\W+/g, "_") + "_hook_cb",
1621
1640
  configurable: !0
1622
1641
  });
1623
1642
  } catch {
1624
1643
  }
1625
- return this._hooks[l] = this._hooks[l] || [], this._hooks[l].push(t), () => {
1626
- t && (this.removeHook(l, t), t = void 0);
1644
+ return this._hooks[l] = this._hooks[l] || [], this._hooks[l].push(o), () => {
1645
+ o && (this.removeHook(l, o), o = void 0);
1627
1646
  };
1628
1647
  }
1629
- hookOnce(l, t) {
1630
- let e, i = (...s) => (typeof e == "function" && e(), e = void 0, i = void 0, t(...s));
1648
+ hookOnce(l, o) {
1649
+ let e, i = (...s) => (typeof e == "function" && e(), e = void 0, i = void 0, o(...s));
1631
1650
  return e = this.hook(l, i), e;
1632
1651
  }
1633
- removeHook(l, t) {
1652
+ removeHook(l, o) {
1634
1653
  if (this._hooks[l]) {
1635
- const e = this._hooks[l].indexOf(t);
1654
+ const e = this._hooks[l].indexOf(o);
1636
1655
  e !== -1 && this._hooks[l].splice(e, 1), this._hooks[l].length === 0 && delete this._hooks[l];
1637
1656
  }
1638
1657
  }
1639
- deprecateHook(l, t) {
1640
- this._deprecatedHooks[l] = typeof t == "string" ? { to: t } : t;
1658
+ deprecateHook(l, o) {
1659
+ this._deprecatedHooks[l] = typeof o == "string" ? { to: o } : o;
1641
1660
  const e = this._hooks[l] || [];
1642
1661
  delete this._hooks[l];
1643
1662
  for (const i of e)
@@ -1645,12 +1664,12 @@ class cn {
1645
1664
  }
1646
1665
  deprecateHooks(l) {
1647
1666
  Object.assign(this._deprecatedHooks, l);
1648
- for (const t in l)
1649
- this.deprecateHook(t, l[t]);
1667
+ for (const o in l)
1668
+ this.deprecateHook(o, l[o]);
1650
1669
  }
1651
1670
  addHooks(l) {
1652
- const t = Xe(l), e = Object.keys(t).map(
1653
- (i) => this.hook(i, t[i])
1671
+ const o = ot(l), e = Object.keys(o).map(
1672
+ (i) => this.hook(i, o[i])
1654
1673
  );
1655
1674
  return () => {
1656
1675
  for (const i of e.splice(0, e.length))
@@ -1658,62 +1677,62 @@ class cn {
1658
1677
  };
1659
1678
  }
1660
1679
  removeHooks(l) {
1661
- const t = Xe(l);
1662
- for (const e in t)
1663
- this.removeHook(e, t[e]);
1680
+ const o = ot(l);
1681
+ for (const e in o)
1682
+ this.removeHook(e, o[e]);
1664
1683
  }
1665
1684
  removeAllHooks() {
1666
1685
  for (const l in this._hooks)
1667
1686
  delete this._hooks[l];
1668
1687
  }
1669
- callHook(l, ...t) {
1670
- return t.unshift(l), this.callHookWith(rn, l, ...t);
1688
+ callHook(l, ...o) {
1689
+ return o.unshift(l), this.callHookWith(fn, l, ...o);
1671
1690
  }
1672
- callHookParallel(l, ...t) {
1673
- return t.unshift(l), this.callHookWith(dn, l, ...t);
1691
+ callHookParallel(l, ...o) {
1692
+ return o.unshift(l), this.callHookWith(hn, l, ...o);
1674
1693
  }
1675
- callHookWith(l, t, ...e) {
1676
- const i = this._before || this._after ? { name: t, args: e, context: {} } : void 0;
1677
- this._before && Je(this._before, i);
1694
+ callHookWith(l, o, ...e) {
1695
+ const i = this._before || this._after ? { name: o, args: e, context: {} } : void 0;
1696
+ this._before && Qe(this._before, i);
1678
1697
  const s = l(
1679
- t in this._hooks ? [...this._hooks[t]] : [],
1698
+ o in this._hooks ? [...this._hooks[o]] : [],
1680
1699
  e
1681
1700
  );
1682
1701
  return s instanceof Promise ? s.finally(() => {
1683
- this._after && i && Je(this._after, i);
1684
- }) : (this._after && i && Je(this._after, i), s);
1702
+ this._after && i && Qe(this._after, i);
1703
+ }) : (this._after && i && Qe(this._after, i), s);
1685
1704
  }
1686
1705
  beforeEach(l) {
1687
1706
  return this._before = this._before || [], this._before.push(l), () => {
1688
1707
  if (this._before !== void 0) {
1689
- const t = this._before.indexOf(l);
1690
- t !== -1 && this._before.splice(t, 1);
1708
+ const o = this._before.indexOf(l);
1709
+ o !== -1 && this._before.splice(o, 1);
1691
1710
  }
1692
1711
  };
1693
1712
  }
1694
1713
  afterEach(l) {
1695
1714
  return this._after = this._after || [], this._after.push(l), () => {
1696
1715
  if (this._after !== void 0) {
1697
- const t = this._after.indexOf(l);
1698
- t !== -1 && this._after.splice(t, 1);
1716
+ const o = this._after.indexOf(l);
1717
+ o !== -1 && this._after.splice(o, 1);
1699
1718
  }
1700
1719
  };
1701
1720
  }
1702
1721
  }
1703
- function un() {
1704
- return new cn();
1722
+ function yn() {
1723
+ return new vn();
1705
1724
  }
1706
- function pn(n) {
1725
+ function gn(n) {
1707
1726
  return Array.isArray(n) ? n : [n];
1708
1727
  }
1709
- const mn = ["title", "titleTemplate", "script", "style", "noscript"], Ae = [
1728
+ const bn = ["title", "titleTemplate", "script", "style", "noscript"], He = [
1710
1729
  "base",
1711
1730
  "meta",
1712
1731
  "link",
1713
1732
  "style",
1714
1733
  "script",
1715
1734
  "noscript"
1716
- ], fn = [
1735
+ ], kn = [
1717
1736
  "title",
1718
1737
  "titleTemplate",
1719
1738
  "templateParams",
@@ -1725,98 +1744,98 @@ const mn = ["title", "titleTemplate", "script", "style", "noscript"], Ae = [
1725
1744
  "style",
1726
1745
  "script",
1727
1746
  "noscript"
1728
- ], hn = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], At = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], vn = typeof window < "u";
1729
- function ot(n) {
1747
+ ], _n = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"], Dt = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"], Vn = typeof window < "u";
1748
+ function at(n) {
1730
1749
  let l = 9;
1731
- for (let t = 0; t < n.length; )
1732
- l = Math.imul(l ^ n.charCodeAt(t++), 9 ** 9);
1750
+ for (let o = 0; o < n.length; )
1751
+ l = Math.imul(l ^ n.charCodeAt(o++), 9 ** 9);
1733
1752
  return ((l ^ l >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
1734
1753
  }
1735
- function ft(n) {
1736
- return n._h || ot(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, t]) => `${l}:${String(t)}`).join(",")}`);
1754
+ function vt(n) {
1755
+ return n._h || at(n._d ? n._d : `${n.tag}:${n.textContent || n.innerHTML || ""}:${Object.entries(n.props).map(([l, o]) => `${l}:${String(o)}`).join(",")}`);
1737
1756
  }
1738
- function Pt(n, l) {
1739
- const { props: t, tag: e } = n;
1740
- if (hn.includes(e))
1757
+ function St(n, l) {
1758
+ const { props: o, tag: e } = n;
1759
+ if (_n.includes(e))
1741
1760
  return e;
1742
- if (e === "link" && t.rel === "canonical")
1761
+ if (e === "link" && o.rel === "canonical")
1743
1762
  return "canonical";
1744
- if (t.charset)
1763
+ if (o.charset)
1745
1764
  return "charset";
1746
1765
  const i = ["id"];
1747
1766
  e === "meta" && i.push("name", "property", "http-equiv");
1748
1767
  for (const s of i)
1749
- if (typeof t[s] < "u") {
1750
- const m = String(t[s]);
1768
+ if (typeof o[s] < "u") {
1769
+ const m = String(o[s]);
1751
1770
  return l && !l(m) ? !1 : `${e}:${s}:${m}`;
1752
1771
  }
1753
1772
  return !1;
1754
1773
  }
1755
- function ht(n, l) {
1774
+ function yt(n, l) {
1756
1775
  return n == null ? l || null : typeof n == "function" ? n(l) : n;
1757
1776
  }
1758
- async function yn(n, l, t) {
1777
+ async function Tn(n, l, o) {
1759
1778
  const e = {
1760
1779
  tag: n,
1761
- props: await Dt(
1780
+ props: await Ht(
1762
1781
  // explicitly check for an object
1763
1782
  // @ts-expect-error untyped
1764
1783
  typeof l == "object" && typeof l != "function" && !(l instanceof Promise) ? { ...l } : { [["script", "noscript", "style"].includes(n) ? "innerHTML" : "textContent"]: l },
1765
1784
  ["templateParams", "titleTemplate"].includes(n)
1766
1785
  )
1767
1786
  };
1768
- return At.forEach((i) => {
1769
- const s = typeof e.props[i] < "u" ? e.props[i] : t[i];
1770
- typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || mn.includes(e.tag)) && (e[i === "children" ? "innerHTML" : i] = s), delete e.props[i]);
1787
+ return Dt.forEach((i) => {
1788
+ const s = typeof e.props[i] < "u" ? e.props[i] : o[i];
1789
+ typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || bn.includes(e.tag)) && (e[i === "children" ? "innerHTML" : i] = s), delete e.props[i]);
1771
1790
  }), e.props.body && (e.tagPosition = "bodyClose", delete e.props.body), e.tag === "script" && typeof e.innerHTML == "object" && (e.innerHTML = JSON.stringify(e.innerHTML), e.props.type = e.props.type || "application/json"), Array.isArray(e.props.content) ? e.props.content.map((i) => ({ ...e, props: { ...e.props, content: i } })) : e;
1772
1791
  }
1773
- function gn(n, l) {
1774
- const t = n === "class" ? " " : ";";
1775
- return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([, e]) => e).map(([e, i]) => n === "style" ? `${e}:${i}` : e)), String(Array.isArray(l) ? l.join(t) : l)?.split(t).filter((e) => e.trim()).filter(Boolean).join(t);
1792
+ function wn(n, l) {
1793
+ const o = n === "class" ? " " : ";";
1794
+ return typeof l == "object" && !Array.isArray(l) && (l = Object.entries(l).filter(([, e]) => e).map(([e, i]) => n === "style" ? `${e}:${i}` : e)), String(Array.isArray(l) ? l.join(o) : l)?.split(o).filter((e) => e.trim()).filter(Boolean).join(o);
1776
1795
  }
1777
- async function Dt(n, l) {
1778
- for (const t of Object.keys(n)) {
1779
- if (["class", "style"].includes(t)) {
1780
- n[t] = gn(t, n[t]);
1796
+ async function Ht(n, l) {
1797
+ for (const o of Object.keys(n)) {
1798
+ if (["class", "style"].includes(o)) {
1799
+ n[o] = wn(o, n[o]);
1781
1800
  continue;
1782
1801
  }
1783
- if (n[t] instanceof Promise && (n[t] = await n[t]), !l && !At.includes(t)) {
1784
- const e = String(n[t]), i = t.startsWith("data-");
1785
- e === "true" || e === "" ? n[t] = i ? "true" : !0 : n[t] || (i && e === "false" ? n[t] = "false" : delete n[t]);
1802
+ if (n[o] instanceof Promise && (n[o] = await n[o]), !l && !Dt.includes(o)) {
1803
+ const e = String(n[o]), i = o.startsWith("data-");
1804
+ e === "true" || e === "" ? n[o] = i ? "true" : !0 : n[o] || (i && e === "false" ? n[o] = "false" : delete n[o]);
1786
1805
  }
1787
1806
  }
1788
1807
  return n;
1789
1808
  }
1790
- const bn = 10;
1791
- async function kn(n) {
1809
+ const Cn = 10;
1810
+ async function $n(n) {
1792
1811
  const l = [];
1793
- return Object.entries(n.resolvedInput).filter(([t, e]) => typeof e < "u" && fn.includes(t)).forEach(([t, e]) => {
1794
- const i = pn(e);
1795
- l.push(...i.map((s) => yn(t, s, n)).flat());
1796
- }), (await Promise.all(l)).flat().filter(Boolean).map((t, e) => (t._e = n._i, n.mode && (t._m = n.mode), t._p = (n._i << bn) + e, t));
1812
+ return Object.entries(n.resolvedInput).filter(([o, e]) => typeof e < "u" && kn.includes(o)).forEach(([o, e]) => {
1813
+ const i = gn(e);
1814
+ l.push(...i.map((s) => Tn(o, s, n)).flat());
1815
+ }), (await Promise.all(l)).flat().filter(Boolean).map((o, e) => (o._e = n._i, n.mode && (o._m = n.mode), o._p = (n._i << Cn) + e, o));
1797
1816
  }
1798
- const vt = {
1817
+ const gt = {
1799
1818
  // tags
1800
1819
  base: -10,
1801
1820
  title: 10
1802
- }, yt = {
1821
+ }, bt = {
1803
1822
  // relative scores to their default values
1804
1823
  critical: -80,
1805
1824
  high: -10,
1806
1825
  low: 20
1807
1826
  };
1808
- function Be(n) {
1827
+ function Me(n) {
1809
1828
  let l = 100;
1810
- const t = n.tagPriority;
1811
- return typeof t == "number" ? t : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in vt && (l = vt[n.tag]), typeof t == "string" && t in yt ? l + yt[t] : l);
1829
+ const o = n.tagPriority;
1830
+ return typeof o == "number" ? o : (n.tag === "meta" ? (n.props["http-equiv"] === "content-security-policy" && (l = -30), n.props.charset && (l = -20), n.props.name === "viewport" && (l = -15)) : n.tag === "link" && n.props.rel === "preconnect" ? l = 20 : n.tag in gt && (l = gt[n.tag]), typeof o == "string" && o in bt ? l + bt[o] : l);
1812
1831
  }
1813
- const _n = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], gt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], se = "%separator";
1814
- function Pe(n, l, t) {
1832
+ const An = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], kt = ["onload", "onerror", "onabort", "onprogress", "onloadstart"], re = "%separator";
1833
+ function Ie(n, l, o) {
1815
1834
  if (typeof n != "string" || !n.includes("%"))
1816
1835
  return n;
1817
1836
  function e(m) {
1818
1837
  let p;
1819
- return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((c, r) => c && c[r] || void 0, l) : p = l[m], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
1838
+ return ["s", "pageTitle"].includes(m) ? p = l.pageTitle : m.includes(".") ? p = m.split(".").reduce((u, r) => u && u[r] || void 0, l) : p = l[m], typeof p < "u" ? (p || "").replace(/"/g, '\\"') : !1;
1820
1839
  }
1821
1840
  let i = n;
1822
1841
  try {
@@ -1825,124 +1844,124 @@ function Pe(n, l, t) {
1825
1844
  }
1826
1845
  return (i.match(/%(\w+\.+\w+)|%(\w+)/g) || []).sort().reverse().forEach((m) => {
1827
1846
  const p = e(m.slice(1));
1828
- typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (c, r) => `${p}${r}`).trim());
1829
- }), n.includes(se) && (n.endsWith(se) && (n = n.slice(0, -se.length).trim()), n.startsWith(se) && (n = n.slice(se.length).trim()), n = n.replace(new RegExp(`\\${se}\\s*\\${se}`, "g"), se), n = Pe(n, { separator: t }, t)), n;
1847
+ typeof p == "string" && (n = n.replace(new RegExp(`\\${m}(\\W|$)`, "g"), (u, r) => `${p}${r}`).trim());
1848
+ }), n.includes(re) && (n.endsWith(re) && (n = n.slice(0, -re.length).trim()), n.startsWith(re) && (n = n.slice(re.length).trim()), n = n.replace(new RegExp(`\\${re}\\s*\\${re}`, "g"), re), n = Ie(n, { separator: o }, o)), n;
1830
1849
  }
1831
- async function Vn(n, l = {}) {
1832
- const t = l.document || n.resolvedOptions.document;
1833
- if (!t || !n.dirty)
1850
+ async function Pn(n, l = {}) {
1851
+ const o = l.document || n.resolvedOptions.document;
1852
+ if (!o || !n.dirty)
1834
1853
  return;
1835
1854
  const e = { shouldRender: !0, tags: [] };
1836
1855
  if (await n.hooks.callHook("dom:beforeRender", e), !e.shouldRender)
1837
1856
  return;
1838
1857
  const i = (await n.resolveTags()).map((d) => ({
1839
1858
  tag: d,
1840
- id: Ae.includes(d.tag) ? ft(d) : d.tag,
1859
+ id: He.includes(d.tag) ? vt(d) : d.tag,
1841
1860
  shouldRender: !0
1842
1861
  }));
1843
1862
  let s = n._dom;
1844
1863
  if (!s) {
1845
1864
  s = {
1846
- elMap: { htmlAttrs: t.documentElement, bodyAttrs: t.body }
1865
+ elMap: { htmlAttrs: o.documentElement, bodyAttrs: o.body }
1847
1866
  };
1848
1867
  for (const d of ["body", "head"]) {
1849
- const f = t[d]?.children, V = [];
1850
- for (const w of [...f].filter((C) => Ae.includes(C.tagName.toLowerCase()))) {
1851
- const C = {
1852
- tag: w.tagName.toLowerCase(),
1853
- props: await Dt(
1854
- w.getAttributeNames().reduce((B, k) => ({ ...B, [k]: w.getAttribute(k) }), {})
1868
+ const v = o[d]?.children, V = [];
1869
+ for (const $ of [...v].filter((w) => He.includes(w.tagName.toLowerCase()))) {
1870
+ const w = {
1871
+ tag: $.tagName.toLowerCase(),
1872
+ props: await Ht(
1873
+ $.getAttributeNames().reduce((B, k) => ({ ...B, [k]: $.getAttribute(k) }), {})
1855
1874
  ),
1856
- innerHTML: w.innerHTML
1875
+ innerHTML: $.innerHTML
1857
1876
  };
1858
- let H = 1, E = Pt(C);
1877
+ let H = 1, E = St(w);
1859
1878
  for (; E && V.find((B) => B._d === E); )
1860
1879
  E = `${E}:${H++}`;
1861
- C._d = E || void 0, V.push(C), s.elMap[w.getAttribute("data-hid") || ft(C)] = w;
1880
+ w._d = E || void 0, V.push(w), s.elMap[$.getAttribute("data-hid") || vt(w)] = $;
1862
1881
  }
1863
1882
  }
1864
1883
  }
1865
1884
  s.pendingSideEffects = { ...s.sideEffects || {} }, s.sideEffects = {};
1866
- function m(d, f, V) {
1867
- const w = `${d}:${f}`;
1868
- s.sideEffects[w] = V, delete s.pendingSideEffects[w];
1885
+ function m(d, v, V) {
1886
+ const $ = `${d}:${v}`;
1887
+ s.sideEffects[$] = V, delete s.pendingSideEffects[$];
1869
1888
  }
1870
- function p({ id: d, $el: f, tag: V }) {
1871
- const w = V.tag.endsWith("Attrs");
1872
- s.elMap[d] = f, w || (["textContent", "innerHTML"].forEach((C) => {
1873
- V[C] && V[C] !== f[C] && (f[C] = V[C]);
1889
+ function p({ id: d, $el: v, tag: V }) {
1890
+ const $ = V.tag.endsWith("Attrs");
1891
+ s.elMap[d] = v, $ || (["textContent", "innerHTML"].forEach((w) => {
1892
+ V[w] && V[w] !== v[w] && (v[w] = V[w]);
1874
1893
  }), m(d, "el", () => {
1875
1894
  s.elMap[d]?.remove(), delete s.elMap[d];
1876
1895
  }));
1877
- for (const [C, H] of Object.entries(V._eventHandlers || {}))
1878
- f.getAttribute(`data-${C}`) !== "" && ((V.tag === "bodyAttrs" ? t.defaultView : f).addEventListener(C.replace("on", ""), H.bind(f)), f.setAttribute(`data-${C}`, ""));
1879
- Object.entries(V.props).forEach(([C, H]) => {
1880
- const E = `attr:${C}`;
1881
- if (C === "class")
1896
+ for (const [w, H] of Object.entries(V._eventHandlers || {}))
1897
+ v.getAttribute(`data-${w}`) !== "" && ((V.tag === "bodyAttrs" ? o.defaultView : v).addEventListener(w.replace("on", ""), H.bind(v)), v.setAttribute(`data-${w}`, ""));
1898
+ Object.entries(V.props).forEach(([w, H]) => {
1899
+ const E = `attr:${w}`;
1900
+ if (w === "class")
1882
1901
  for (const B of (H || "").split(" ").filter(Boolean))
1883
- w && m(d, `${E}:${B}`, () => f.classList.remove(B)), !f.classList.contains(B) && f.classList.add(B);
1884
- else if (C === "style")
1902
+ $ && m(d, `${E}:${B}`, () => v.classList.remove(B)), !v.classList.contains(B) && v.classList.add(B);
1903
+ else if (w === "style")
1885
1904
  for (const B of (H || "").split(";").filter(Boolean)) {
1886
1905
  const [k, ...D] = B.split(":").map((I) => I.trim());
1887
1906
  m(d, `${E}:${k}`, () => {
1888
- f.style.removeProperty(k);
1889
- }), f.style.setProperty(k, D.join(":"));
1907
+ v.style.removeProperty(k);
1908
+ }), v.style.setProperty(k, D.join(":"));
1890
1909
  }
1891
1910
  else
1892
- f.getAttribute(C) !== H && f.setAttribute(C, H === !0 ? "" : String(H)), w && m(d, E, () => f.removeAttribute(C));
1911
+ v.getAttribute(w) !== H && v.setAttribute(w, H === !0 ? "" : String(H)), $ && m(d, E, () => v.removeAttribute(w));
1893
1912
  });
1894
1913
  }
1895
- const c = [], r = {
1914
+ const u = [], r = {
1896
1915
  bodyClose: void 0,
1897
1916
  bodyOpen: void 0,
1898
1917
  head: void 0
1899
1918
  };
1900
1919
  for (const d of i) {
1901
- const { tag: f, shouldRender: V, id: w } = d;
1920
+ const { tag: v, shouldRender: V, id: $ } = d;
1902
1921
  if (V) {
1903
- if (f.tag === "title") {
1904
- t.title = f.textContent;
1922
+ if (v.tag === "title") {
1923
+ o.title = v.textContent;
1905
1924
  continue;
1906
1925
  }
1907
- d.$el = d.$el || s.elMap[w], d.$el ? p(d) : Ae.includes(f.tag) && c.push(d);
1926
+ d.$el = d.$el || s.elMap[$], d.$el ? p(d) : He.includes(v.tag) && u.push(d);
1908
1927
  }
1909
1928
  }
1910
- for (const d of c) {
1911
- const f = d.tag.tagPosition || "head";
1912
- d.$el = t.createElement(d.tag.tag), p(d), r[f] = r[f] || t.createDocumentFragment(), r[f].appendChild(d.$el);
1929
+ for (const d of u) {
1930
+ const v = d.tag.tagPosition || "head";
1931
+ d.$el = o.createElement(d.tag.tag), p(d), r[v] = r[v] || o.createDocumentFragment(), r[v].appendChild(d.$el);
1913
1932
  }
1914
1933
  for (const d of i)
1915
- await n.hooks.callHook("dom:renderTag", d, t, m);
1916
- r.head && t.head.appendChild(r.head), r.bodyOpen && t.body.insertBefore(r.bodyOpen, t.body.firstChild), r.bodyClose && t.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((d) => d()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
1934
+ await n.hooks.callHook("dom:renderTag", d, o, m);
1935
+ r.head && o.head.appendChild(r.head), r.bodyOpen && o.body.insertBefore(r.bodyOpen, o.body.firstChild), r.bodyClose && o.body.appendChild(r.bodyClose), Object.values(s.pendingSideEffects).forEach((d) => d()), n._dom = s, n.dirty = !1, await n.hooks.callHook("dom:rendered", { renders: i });
1917
1936
  }
1918
- async function Tn(n, l = {}) {
1919
- const t = l.delayFn || ((e) => setTimeout(e, 10));
1920
- return n._domUpdatePromise = n._domUpdatePromise || new Promise((e) => t(async () => {
1921
- await Vn(n, l), delete n._domUpdatePromise, e();
1937
+ async function Dn(n, l = {}) {
1938
+ const o = l.delayFn || ((e) => setTimeout(e, 10));
1939
+ return n._domUpdatePromise = n._domUpdatePromise || new Promise((e) => o(async () => {
1940
+ await Pn(n, l), delete n._domUpdatePromise, e();
1922
1941
  }));
1923
1942
  }
1924
1943
  // @__NO_SIDE_EFFECTS__
1925
- function Cn(n) {
1944
+ function Sn(n) {
1926
1945
  return (l) => {
1927
- const t = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
1928
- return t && l.push(JSON.parse(t)), {
1946
+ const o = l.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
1947
+ return o && l.push(JSON.parse(o)), {
1929
1948
  mode: "client",
1930
1949
  hooks: {
1931
1950
  "entries:updated": function(e) {
1932
- Tn(e, n);
1951
+ Dn(e, n);
1933
1952
  }
1934
1953
  }
1935
1954
  };
1936
1955
  };
1937
1956
  }
1938
- const $n = ["templateParams", "htmlAttrs", "bodyAttrs"], wn = {
1957
+ const Hn = ["templateParams", "htmlAttrs", "bodyAttrs"], In = {
1939
1958
  hooks: {
1940
1959
  "tag:normalise": function({ tag: n }) {
1941
1960
  ["hid", "vmid", "key"].forEach((e) => {
1942
1961
  n.props[e] && (n.key = n.props[e], delete n.props[e]);
1943
1962
  });
1944
- const t = Pt(n) || (n.key ? `${n.tag}:${n.key}` : !1);
1945
- t && (n._d = t);
1963
+ const o = St(n) || (n.key ? `${n.tag}:${n.key}` : !1);
1964
+ o && (n._d = o);
1946
1965
  },
1947
1966
  "tags:resolve": function(n) {
1948
1967
  const l = {};
@@ -1950,42 +1969,42 @@ const $n = ["templateParams", "htmlAttrs", "bodyAttrs"], wn = {
1950
1969
  const i = (e.key ? `${e.tag}:${e.key}` : e._d) || e._p, s = l[i];
1951
1970
  if (s) {
1952
1971
  let p = e?.tagDuplicateStrategy;
1953
- if (!p && $n.includes(e.tag) && (p = "merge"), p === "merge") {
1954
- const c = s.props;
1972
+ if (!p && Hn.includes(e.tag) && (p = "merge"), p === "merge") {
1973
+ const u = s.props;
1955
1974
  ["class", "style"].forEach((r) => {
1956
- c[r] && (e.props[r] ? (r === "style" && !c[r].endsWith(";") && (c[r] += ";"), e.props[r] = `${c[r]} ${e.props[r]}`) : e.props[r] = c[r]);
1975
+ u[r] && (e.props[r] ? (r === "style" && !u[r].endsWith(";") && (u[r] += ";"), e.props[r] = `${u[r]} ${e.props[r]}`) : e.props[r] = u[r]);
1957
1976
  }), l[i].props = {
1958
- ...c,
1977
+ ...u,
1959
1978
  ...e.props
1960
1979
  };
1961
1980
  return;
1962
1981
  } else if (e._e === s._e) {
1963
1982
  s._duped = s._duped || [], e._d = `${s._d}:${s._duped.length + 1}`, s._duped.push(e);
1964
1983
  return;
1965
- } else if (Be(e) > Be(s))
1984
+ } else if (Me(e) > Me(s))
1966
1985
  return;
1967
1986
  }
1968
1987
  const m = Object.keys(e.props).length + (e.innerHTML ? 1 : 0) + (e.textContent ? 1 : 0);
1969
- if (Ae.includes(e.tag) && m === 0) {
1988
+ if (He.includes(e.tag) && m === 0) {
1970
1989
  delete l[i];
1971
1990
  return;
1972
1991
  }
1973
1992
  l[i] = e;
1974
1993
  });
1975
- const t = [];
1994
+ const o = [];
1976
1995
  Object.values(l).forEach((e) => {
1977
1996
  const i = e._duped;
1978
- delete e._duped, t.push(e), i && t.push(...i);
1979
- }), n.tags = t, n.tags = n.tags.filter((e) => !(e.tag === "meta" && (e.props.name || e.props.property) && !e.props.content));
1997
+ delete e._duped, o.push(e), i && o.push(...i);
1998
+ }), n.tags = o, n.tags = n.tags.filter((e) => !(e.tag === "meta" && (e.props.name || e.props.property) && !e.props.content));
1980
1999
  }
1981
2000
  }
1982
- }, An = {
2001
+ }, Bn = {
1983
2002
  mode: "server",
1984
2003
  hooks: {
1985
2004
  "tags:resolve": function(n) {
1986
2005
  const l = {};
1987
- n.tags.filter((t) => ["titleTemplate", "templateParams", "title"].includes(t.tag) && t._m === "server").forEach((t) => {
1988
- l[t.tag] = t.tag.startsWith("title") ? t.textContent : t.props;
2006
+ n.tags.filter((o) => ["titleTemplate", "templateParams", "title"].includes(o.tag) && o._m === "server").forEach((o) => {
2007
+ l[o.tag] = o.tag.startsWith("title") ? o.textContent : o.props;
1989
2008
  }), Object.keys(l).length && n.tags.push({
1990
2009
  tag: "script",
1991
2010
  innerHTML: JSON.stringify(l),
@@ -1993,81 +2012,81 @@ const $n = ["templateParams", "htmlAttrs", "bodyAttrs"], wn = {
1993
2012
  });
1994
2013
  }
1995
2014
  }
1996
- }, Pn = ["script", "link", "bodyAttrs"], Dn = (n) => ({
2015
+ }, En = ["script", "link", "bodyAttrs"], Nn = (n) => ({
1997
2016
  hooks: {
1998
2017
  "tags:resolve": function(l) {
1999
- for (const t of l.tags.filter((e) => Pn.includes(e.tag)))
2000
- Object.entries(t.props).forEach(([e, i]) => {
2001
- e.startsWith("on") && typeof i == "function" && (n.ssr && gt.includes(e) ? t.props[e] = `this.dataset.${e}fired = true` : delete t.props[e], t._eventHandlers = t._eventHandlers || {}, t._eventHandlers[e] = i);
2002
- }), n.ssr && t._eventHandlers && (t.props.src || t.props.href) && (t.key = t.key || ot(t.props.src || t.props.href));
2018
+ for (const o of l.tags.filter((e) => En.includes(e.tag)))
2019
+ Object.entries(o.props).forEach(([e, i]) => {
2020
+ e.startsWith("on") && typeof i == "function" && (n.ssr && kt.includes(e) ? o.props[e] = `this.dataset.${e}fired = true` : delete o.props[e], o._eventHandlers = o._eventHandlers || {}, o._eventHandlers[e] = i);
2021
+ }), n.ssr && o._eventHandlers && (o.props.src || o.props.href) && (o.key = o.key || at(o.props.src || o.props.href));
2003
2022
  },
2004
- "dom:renderTag": function({ $el: l, tag: t }) {
2005
- for (const e of Object.keys(l?.dataset || {}).filter((i) => gt.some((s) => `${s}fired` === i))) {
2023
+ "dom:renderTag": function({ $el: l, tag: o }) {
2024
+ for (const e of Object.keys(l?.dataset || {}).filter((i) => kt.some((s) => `${s}fired` === i))) {
2006
2025
  const i = e.replace("fired", "");
2007
- t._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
2026
+ o._eventHandlers?.[i]?.call(l, new Event(i.replace("on", "")));
2008
2027
  }
2009
2028
  }
2010
2029
  }
2011
- }), Sn = ["link", "style", "script", "noscript"], Hn = {
2030
+ }), Ln = ["link", "style", "script", "noscript"], Mn = {
2012
2031
  hooks: {
2013
2032
  "tag:normalise": ({ tag: n }) => {
2014
- n.key && Sn.includes(n.tag) && (n.props["data-hid"] = n._h = ot(n.key));
2033
+ n.key && Ln.includes(n.tag) && (n.props["data-hid"] = n._h = at(n.key));
2015
2034
  }
2016
2035
  }
2017
- }, In = {
2036
+ }, Rn = {
2018
2037
  hooks: {
2019
2038
  "tags:resolve": (n) => {
2020
- const l = (t) => n.tags.find((e) => e._d === t)?._p;
2021
- for (const { prefix: t, offset: e } of _n)
2022
- for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(t))) {
2039
+ const l = (o) => n.tags.find((e) => e._d === o)?._p;
2040
+ for (const { prefix: o, offset: e } of An)
2041
+ for (const i of n.tags.filter((s) => typeof s.tagPriority == "string" && s.tagPriority.startsWith(o))) {
2023
2042
  const s = l(
2024
- i.tagPriority.replace(t, "")
2043
+ i.tagPriority.replace(o, "")
2025
2044
  );
2026
2045
  typeof s < "u" && (i._p = s + e);
2027
2046
  }
2028
- n.tags.sort((t, e) => t._p - e._p).sort((t, e) => Be(t) - Be(e));
2047
+ n.tags.sort((o, e) => o._p - e._p).sort((o, e) => Me(o) - Me(e));
2029
2048
  }
2030
2049
  }
2031
- }, Bn = {
2050
+ }, Un = {
2032
2051
  meta: "content",
2033
2052
  link: "href",
2034
2053
  htmlAttrs: "lang"
2035
- }, En = (n) => ({
2054
+ }, Fn = (n) => ({
2036
2055
  hooks: {
2037
2056
  "tags:resolve": (l) => {
2038
- const { tags: t } = l, e = t.find((p) => p.tag === "title")?.textContent, i = t.findIndex((p) => p.tag === "templateParams"), s = i !== -1 ? t[i].props : {}, m = s.separator || "|";
2039
- delete s.separator, s.pageTitle = Pe(s.pageTitle || e || "", s, m);
2040
- for (const p of t.filter((c) => c.processTemplateParams !== !1)) {
2041
- const c = Bn[p.tag];
2042
- c && typeof p.props[c] == "string" ? p.props[c] = Pe(p.props[c], s, m) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((r) => {
2043
- typeof p[r] == "string" && (p[r] = Pe(p[r], s, m));
2057
+ const { tags: o } = l, e = o.find((p) => p.tag === "title")?.textContent, i = o.findIndex((p) => p.tag === "templateParams"), s = i !== -1 ? o[i].props : {}, m = s.separator || "|";
2058
+ delete s.separator, s.pageTitle = Ie(s.pageTitle || e || "", s, m);
2059
+ for (const p of o.filter((u) => u.processTemplateParams !== !1)) {
2060
+ const u = Un[p.tag];
2061
+ u && typeof p.props[u] == "string" ? p.props[u] = Ie(p.props[u], s, m) : (p.processTemplateParams === !0 || ["titleTemplate", "title"].includes(p.tag)) && ["innerHTML", "textContent"].forEach((r) => {
2062
+ typeof p[r] == "string" && (p[r] = Ie(p[r], s, m));
2044
2063
  });
2045
2064
  }
2046
- n._templateParams = s, n._separator = m, l.tags = t.filter((p) => p.tag !== "templateParams");
2065
+ n._templateParams = s, n._separator = m, l.tags = o.filter((p) => p.tag !== "templateParams");
2047
2066
  }
2048
2067
  }
2049
- }), Mn = {
2068
+ }), On = {
2050
2069
  hooks: {
2051
2070
  "tags:resolve": (n) => {
2052
2071
  const { tags: l } = n;
2053
- let t = l.findIndex((i) => i.tag === "titleTemplate");
2072
+ let o = l.findIndex((i) => i.tag === "titleTemplate");
2054
2073
  const e = l.findIndex((i) => i.tag === "title");
2055
- if (e !== -1 && t !== -1) {
2056
- const i = ht(
2057
- l[t].textContent,
2074
+ if (e !== -1 && o !== -1) {
2075
+ const i = yt(
2076
+ l[o].textContent,
2058
2077
  l[e].textContent
2059
2078
  );
2060
2079
  i !== null ? l[e].textContent = i || l[e].textContent : delete l[e];
2061
- } else if (t !== -1) {
2062
- const i = ht(
2063
- l[t].textContent
2080
+ } else if (o !== -1) {
2081
+ const i = yt(
2082
+ l[o].textContent
2064
2083
  );
2065
- i !== null && (l[t].textContent = i, l[t].tag = "title", t = -1);
2084
+ i !== null && (l[o].textContent = i, l[o].tag = "title", o = -1);
2066
2085
  }
2067
- t !== -1 && delete l[t], n.tags = l.filter(Boolean);
2086
+ o !== -1 && delete l[o], n.tags = l.filter(Boolean);
2068
2087
  }
2069
2088
  }
2070
- }, Rn = {
2089
+ }, jn = {
2071
2090
  hooks: {
2072
2091
  "tags:afterResolve": function(n) {
2073
2092
  for (const l of n.tags)
@@ -2076,17 +2095,17 @@ const $n = ["templateParams", "htmlAttrs", "bodyAttrs"], wn = {
2076
2095
  }
2077
2096
  };
2078
2097
  // @__NO_SIDE_EFFECTS__
2079
- function Nn(n = {}) {
2080
- const l = Un(n);
2081
- return l.use(/* @__PURE__ */ Cn()), l;
2098
+ function qn(n = {}) {
2099
+ const l = Gn(n);
2100
+ return l.use(/* @__PURE__ */ Sn()), l;
2082
2101
  }
2083
- function bt(n, l) {
2102
+ function _t(n, l) {
2084
2103
  return !n || n === "server" && l || n === "client" && !l;
2085
2104
  }
2086
- function Un(n = {}) {
2087
- const l = un();
2088
- l.addHooks(n.hooks || {}), n.document = n.document || (vn ? document : void 0);
2089
- const t = !n.document, e = () => {
2105
+ function Gn(n = {}) {
2106
+ const l = yn();
2107
+ l.addHooks(n.hooks || {}), n.document = n.document || (Vn ? document : void 0);
2108
+ const o = !n.document, e = () => {
2090
2109
  p.dirty = !0, l.callHook("entries:updated", p);
2091
2110
  };
2092
2111
  let i = 0, s = [];
@@ -2098,88 +2117,88 @@ function Un(n = {}) {
2098
2117
  headEntries() {
2099
2118
  return s;
2100
2119
  },
2101
- use(c) {
2102
- const r = typeof c == "function" ? c(p) : c;
2103
- (!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), bt(r.mode, t) && l.addHooks(r.hooks || {}));
2120
+ use(u) {
2121
+ const r = typeof u == "function" ? u(p) : u;
2122
+ (!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), _t(r.mode, o) && l.addHooks(r.hooks || {}));
2104
2123
  },
2105
- push(c, r) {
2124
+ push(u, r) {
2106
2125
  delete r?.head;
2107
2126
  const d = {
2108
2127
  _i: i++,
2109
- input: c,
2128
+ input: u,
2110
2129
  ...r
2111
2130
  };
2112
- return bt(d.mode, t) && (s.push(d), e()), {
2131
+ return _t(d.mode, o) && (s.push(d), e()), {
2113
2132
  dispose() {
2114
- s = s.filter((f) => f._i !== d._i), l.callHook("entries:updated", p), e();
2133
+ s = s.filter((v) => v._i !== d._i), l.callHook("entries:updated", p), e();
2115
2134
  },
2116
2135
  // a patch is the same as creating a new entry, just a nice DX
2117
- patch(f) {
2118
- s = s.map((V) => (V._i === d._i && (V.input = d.input = f), V)), e();
2136
+ patch(v) {
2137
+ s = s.map((V) => (V._i === d._i && (V.input = d.input = v), V)), e();
2119
2138
  }
2120
2139
  };
2121
2140
  },
2122
2141
  async resolveTags() {
2123
- const c = { tags: [], entries: [...s] };
2124
- await l.callHook("entries:resolve", c);
2125
- for (const r of c.entries) {
2142
+ const u = { tags: [], entries: [...s] };
2143
+ await l.callHook("entries:resolve", u);
2144
+ for (const r of u.entries) {
2126
2145
  const d = r.resolvedInput || r.input;
2127
2146
  if (r.resolvedInput = await (r.transform ? r.transform(d) : d), r.resolvedInput)
2128
- for (const f of await kn(r)) {
2129
- const V = { tag: f, entry: r, resolvedOptions: p.resolvedOptions };
2130
- await l.callHook("tag:normalise", V), c.tags.push(V.tag);
2147
+ for (const v of await $n(r)) {
2148
+ const V = { tag: v, entry: r, resolvedOptions: p.resolvedOptions };
2149
+ await l.callHook("tag:normalise", V), u.tags.push(V.tag);
2131
2150
  }
2132
2151
  }
2133
- return await l.callHook("tags:beforeResolve", c), await l.callHook("tags:resolve", c), await l.callHook("tags:afterResolve", c), c.tags;
2152
+ return await l.callHook("tags:beforeResolve", u), await l.callHook("tags:resolve", u), await l.callHook("tags:afterResolve", u), u.tags;
2134
2153
  },
2135
- ssr: t
2154
+ ssr: o
2136
2155
  };
2137
2156
  return [
2138
- wn,
2139
- An,
2140
- Dn,
2141
- Hn,
2142
2157
  In,
2143
- En,
2158
+ Bn,
2159
+ Nn,
2144
2160
  Mn,
2145
2161
  Rn,
2162
+ Fn,
2163
+ On,
2164
+ jn,
2146
2165
  ...n?.plugins || []
2147
- ].forEach((c) => p.use(c)), p.hooks.callHook("init", p), p;
2166
+ ].forEach((u) => p.use(u)), p.hooks.callHook("init", p), p;
2148
2167
  }
2149
- const Ln = lo.startsWith("3");
2150
- function Fn(n) {
2151
- return typeof n == "function" ? n() : o(n);
2168
+ const Wn = ro.startsWith("3");
2169
+ function Kn(n) {
2170
+ return typeof n == "function" ? n() : t(n);
2152
2171
  }
2153
- function et(n, l = "") {
2172
+ function lt(n, l = "") {
2154
2173
  if (n instanceof Promise)
2155
2174
  return n;
2156
- const t = Fn(n);
2157
- return !n || !t ? t : Array.isArray(t) ? t.map((e) => et(e, l)) : typeof t == "object" ? Object.fromEntries(
2158
- Object.entries(t).map(([e, i]) => e === "titleTemplate" || e.startsWith("on") ? [e, o(i)] : [e, et(i, e)])
2159
- ) : t;
2175
+ const o = Kn(n);
2176
+ return !n || !o ? o : Array.isArray(o) ? o.map((e) => lt(e, l)) : typeof o == "object" ? Object.fromEntries(
2177
+ Object.entries(o).map(([e, i]) => e === "titleTemplate" || e.startsWith("on") ? [e, t(i)] : [e, lt(i, e)])
2178
+ ) : o;
2160
2179
  }
2161
- const On = {
2180
+ const xn = {
2162
2181
  hooks: {
2163
2182
  "entries:resolve": function(n) {
2164
2183
  for (const l of n.entries)
2165
- l.resolvedInput = et(l.input);
2184
+ l.resolvedInput = lt(l.input);
2166
2185
  }
2167
2186
  }
2168
- }, jn = "usehead";
2169
- function Gn(n) {
2187
+ }, zn = "usehead";
2188
+ function Jn(n) {
2170
2189
  return {
2171
- install(t) {
2172
- Ln && (t.config.globalProperties.$unhead = n, t.config.globalProperties.$head = n, t.provide(jn, n));
2190
+ install(o) {
2191
+ Wn && (o.config.globalProperties.$unhead = n, o.config.globalProperties.$head = n, o.provide(zn, n));
2173
2192
  }
2174
2193
  }.install;
2175
2194
  }
2176
- function qn(n = {}) {
2177
- n.domDelayFn = n.domDelayFn || ((t) => oo(() => setTimeout(() => t(), 0)));
2178
- const l = /* @__PURE__ */ Nn(n);
2179
- return l.use(On), l.install = Gn(l), l;
2195
+ function Yn(n = {}) {
2196
+ n.domDelayFn = n.domDelayFn || ((o) => so(() => setTimeout(() => o(), 0)));
2197
+ const l = /* @__PURE__ */ qn(n);
2198
+ return l.use(xn), l.install = Jn(l), l;
2180
2199
  }
2181
- const Wn = io(), Kn = qn(), xn = ro();
2182
- class zn extends HTMLElement {
2200
+ const Zn = po(), Qn = Yn(), Xn = fo();
2201
+ class ea extends HTMLElement {
2183
2202
  vueApp;
2184
2203
  constructor() {
2185
2204
  super();
@@ -2188,26 +2207,26 @@ class zn extends HTMLElement {
2188
2207
  this.vueApp.unmount();
2189
2208
  }
2190
2209
  connectedCallback() {
2191
- const l = typeof we == "function" ? we.options : we;
2192
- let t = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
2193
- const e = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (r, d) => (d ? "-" : "") + r.toLowerCase()), i = (c) => c.replace(/-./g, (r) => r[1].toUpperCase()), s = {};
2194
- t = t.map(e);
2210
+ const l = typeof Se == "function" ? Se.options : Se;
2211
+ let o = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
2212
+ const e = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (r, d) => (d ? "-" : "") + r.toLowerCase()), i = (u) => u.replace(/-./g, (r) => r[1].toUpperCase()), s = {};
2213
+ o = o.map(e);
2195
2214
  const m = {};
2196
- for (const c of this.attributes) {
2197
- const d = c.name.split(".");
2198
- d.length > 1 && (m[d[0]] || (m[d[0]] = {}), m[d[0]][i(d[1])] = c.value);
2215
+ for (const u of this.attributes) {
2216
+ const d = u.name.split(".");
2217
+ d.length > 1 && (m[d[0]] || (m[d[0]] = {}), m[d[0]][i(d[1])] = u.value);
2199
2218
  }
2200
- for (const c of t) {
2201
- let r = this.attributes.getNamedItem(c)?.value;
2202
- m.hasOwnProperty(c) && (r = m[c]), s[c] = r;
2219
+ for (const u of o) {
2220
+ let r = this.attributes.getNamedItem(u)?.value;
2221
+ m.hasOwnProperty(u) && (r = m[u]), s[u] = r;
2203
2222
  }
2204
- this.vueApp = no(we, s), ho(this.vueApp), this.vueApp.provide("emitter", xn), this.vueApp.use(Kn), this.vueApp.use(Wn), this.vueApp.use(wo), this.vueApp.use(so), this.vueApp.use(yo), this.vueApp.use(vo, { bootstrap: !0 });
2223
+ this.vueApp = uo(Se, s), ho(this.vueApp), this.vueApp.provide("emitter", Xn), this.vueApp.use(Qn), this.vueApp.use(Zn), this.vueApp.use(Ho), this.vueApp.use(mo), this.vueApp.use(vo), this.vueApp.use(Vo, { bootstrap: !0 });
2205
2224
  const p = document.createElement("div");
2206
2225
  this.vueApp.mount(p), this.appendChild(p.children[0]);
2207
2226
  }
2208
2227
  }
2209
- window.customElements.define("konnectio-hotel", zn);
2228
+ window.customElements.define("konnectio-hotel", ea);
2210
2229
  export {
2211
- zn as default
2230
+ ea as default
2212
2231
  };
2213
2232
  //# sourceMappingURL=hotel.js.map