@konnectio/core 4.0.69 → 4.0.71

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