@konnectio/core 4.0.67 → 4.0.68

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