@konnectio/core 4.0.67 → 4.0.69

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