@konnectio/core 4.0.82 → 4.0.84

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