@konnectio/core 4.0.68 → 4.0.69

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