@konnectio/core 4.0.57 → 4.0.59
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.
- package/dist/{ActionField-BsgBhqwb.js → ActionField-GHsNRSZm.js} +3 -3
- package/dist/ActionField-GHsNRSZm.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BCiyhi6I.js → AvailabilitySkeleton-CyvafyOT.js} +6 -6
- package/dist/AvailabilitySkeleton-CyvafyOT.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js} +4 -4
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js.br +0 -0
- package/dist/{CheckoutWindow-COyV5n05.js → CheckoutWindow-BqJ6ZsZD.js} +4 -4
- package/dist/CheckoutWindow-BqJ6ZsZD.js.br +0 -0
- package/dist/{ErrorMessage-Bqmjetwk.js → ErrorMessage-144-POu6.js} +3 -3
- package/dist/ErrorMessage-144-POu6.js.br +0 -0
- package/dist/{EventAvailabilityForm-CnfdAPBG.js → EventAvailabilityForm-CJff-76Z.js} +5 -5
- package/dist/EventAvailabilityForm-CJff-76Z.js.br +0 -0
- package/dist/{Field-8j4srvwh.js → Field-BrI8toPe.js} +3 -3
- package/dist/Field-BrI8toPe.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js} +11 -10
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js.br +0 -0
- package/dist/{TermsOfService-DzB0damA.js → TermsOfService-DLQtIpLt.js} +5 -5
- package/dist/TermsOfService-DLQtIpLt.js.br +0 -0
- package/dist/{_-BtSFcDLj.js → _-CHRCWC6p.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-zf2i08XL.js → _.vue_vue_type_style_index_0_lang-BUoCnNZd.js} +4 -4
- package/dist/_.vue_vue_type_style_index_0_lang-BUoCnNZd.js.br +0 -0
- package/dist/{_commonjsHelpers-DzP9V0uJ.js → _commonjsHelpers-CYyxJoRf.js} +2 -2
- package/dist/{_sentry-release-injection-file-fvkcFI33.js → _sentry-release-injection-file-CkMeg-D2.js} +3 -3
- package/dist/_sentry-release-injection-file-CkMeg-D2.js.br +0 -0
- package/dist/availability.js +74 -71
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +31 -31
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +91 -91
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-DtBMjMxF.js +126 -0
- package/dist/giftCard-DtBMjMxF.js.br +0 -0
- package/dist/hotel.js +94 -94
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-BX1LxkhS.js → masonry.plugin-Ch8U9Epf.js} +416 -411
- package/dist/masonry.plugin-Ch8U9Epf.js.br +0 -0
- package/dist/{mitt-l8QPdH4v.js → mitt-Cbb-9RWx.js} +2 -2
- package/dist/mitt-Cbb-9RWx.js.br +0 -0
- package/dist/polyfill.js +17221 -14681
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +10 -10
- package/dist/ActionField-BsgBhqwb.js.br +0 -0
- package/dist/AvailabilitySkeleton-BCiyhi6I.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-D-gqVQco.js.br +0 -0
- package/dist/CheckoutWindow-COyV5n05.js.br +0 -0
- package/dist/ErrorMessage-Bqmjetwk.js.br +0 -0
- package/dist/EventAvailabilityForm-CnfdAPBG.js.br +0 -0
- package/dist/Field-8j4srvwh.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DzRjaA5x.js.br +0 -0
- package/dist/TermsOfService-DzB0damA.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-zf2i08XL.js.br +0 -0
- package/dist/_sentry-release-injection-file-fvkcFI33.js.br +0 -0
- package/dist/giftCard-DbcQz3eJ.js +0 -134
- package/dist/giftCard-DbcQz3eJ.js.br +0 -0
- package/dist/masonry.plugin-BX1LxkhS.js.br +0 -0
- package/dist/mitt-l8QPdH4v.js.br +0 -0
- package/dist/tracing-z3gaNes7.js +0 -2537
- package/dist/tracing-z3gaNes7.js.br +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { r as H, a as J, d as E, G as s, t as S, S as w, v as M, o as O, w as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
|
|
2
|
+
import { d as Q, s as X, a as k } from "./mitt-Cbb-9RWx.js";
|
|
3
|
+
import { r as t, c as a } from "./_sentry-release-injection-file-CkMeg-D2.js";
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
|
|
7
|
+
c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "22467707-9aba-4bc6-b566-9af8d4101364", i._sentryDebugIdIdentifier = "sentry-dbid-22467707-9aba-4bc6-b566-9af8d4101364");
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
})();
|
|
11
|
+
const ae = Q("giftCard", () => {
|
|
12
|
+
const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = X(E()), T = E(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: w.string }), p = S("konnectio_email", "", void 0, { serializer: w.string }), g = S("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
|
|
13
|
+
base64: "",
|
|
14
|
+
type: "",
|
|
15
|
+
name: ""
|
|
16
|
+
}), R = t(void 0), y = t(0), d = t(!1), h = t(0), _ = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), b = a(() => {
|
|
17
|
+
const e = {
|
|
18
|
+
1: {
|
|
19
|
+
label: k.t("giftCard.hotelType"),
|
|
20
|
+
data: []
|
|
21
|
+
},
|
|
22
|
+
2: {
|
|
23
|
+
label: k.t("giftCard.restaurantType"),
|
|
24
|
+
data: []
|
|
25
|
+
}
|
|
26
|
+
}, l = P.value.hotels[0].places;
|
|
27
|
+
return l && l.forEach((n) => {
|
|
28
|
+
e[n.placeType].data.push(n);
|
|
29
|
+
}), Object.fromEntries(
|
|
30
|
+
Object.entries(e).filter(([, n]) => n.data.length > 0)
|
|
31
|
+
);
|
|
32
|
+
}), z = a(() => h.value !== 0), r = a(() => {
|
|
33
|
+
let e;
|
|
34
|
+
if (z.value)
|
|
35
|
+
e = b.value[h.value].data[0];
|
|
36
|
+
else if (y.value !== 0) {
|
|
37
|
+
const l = R.value, n = b.value[y.value].data;
|
|
38
|
+
n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
|
|
39
|
+
String(A.id) === String(l) && (e = A);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), q = a(() => !(o.value === s.InitialState && d.value)), N = a(() => !!(o.value === s.WaitingForResponse && d.value));
|
|
44
|
+
async function $() {
|
|
45
|
+
try {
|
|
46
|
+
const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
|
|
47
|
+
params: {
|
|
48
|
+
language: O()
|
|
49
|
+
},
|
|
50
|
+
headers: {
|
|
51
|
+
Authorization: v.value,
|
|
52
|
+
Accept: "application/json"
|
|
53
|
+
}
|
|
54
|
+
})).data;
|
|
55
|
+
e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
|
|
56
|
+
} catch {
|
|
57
|
+
c({
|
|
58
|
+
message: k.t("alert.error.couldntFetchMetadata"),
|
|
59
|
+
type: "warning"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async function B() {
|
|
64
|
+
o.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
65
|
+
termsOfserviceURL: window.location.origin,
|
|
66
|
+
checkoutUrl: window.location.origin,
|
|
67
|
+
currencyID: x.value,
|
|
68
|
+
language: O(),
|
|
69
|
+
amount: m.value,
|
|
70
|
+
quantity: F.value,
|
|
71
|
+
freeText: D.value,
|
|
72
|
+
showPrice: C.value,
|
|
73
|
+
contactName: f.value,
|
|
74
|
+
contactEmail: p.value,
|
|
75
|
+
contactPhone: g.value,
|
|
76
|
+
imageBase64: K(u.value.base64),
|
|
77
|
+
imageName: u.value.name,
|
|
78
|
+
imageFormat: u.value.type,
|
|
79
|
+
placeType: r.value ? r.value.placeType : void 0,
|
|
80
|
+
placeID: r.value ? r.value.id : void 0
|
|
81
|
+
}, {
|
|
82
|
+
headers: {
|
|
83
|
+
Authorization: v.value,
|
|
84
|
+
Accept: "application/json"
|
|
85
|
+
}
|
|
86
|
+
}).then((e) => {
|
|
87
|
+
o.value = s.ReadyToPay, d.value = !1, i({
|
|
88
|
+
callback: () => console.log("Callback!"),
|
|
89
|
+
response: e.data
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function V(e) {
|
|
94
|
+
e && (h.value = e);
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
selectedPlace: r,
|
|
98
|
+
moduleState: o,
|
|
99
|
+
name: f,
|
|
100
|
+
email: p,
|
|
101
|
+
phone: g,
|
|
102
|
+
value: m,
|
|
103
|
+
remark: D,
|
|
104
|
+
showValue: C,
|
|
105
|
+
quantity: F,
|
|
106
|
+
media: u,
|
|
107
|
+
placeId: R,
|
|
108
|
+
placeType: y,
|
|
109
|
+
showFormPage: U,
|
|
110
|
+
showPaymentPage: W,
|
|
111
|
+
showConfirmationPage: j,
|
|
112
|
+
places: b,
|
|
113
|
+
hasFilledForm: L,
|
|
114
|
+
hasForcedPlaceType: z,
|
|
115
|
+
isWaitingForResponse: N,
|
|
116
|
+
isMetadataAvailable: q,
|
|
117
|
+
termsOfService: G,
|
|
118
|
+
fetchMetadata: $,
|
|
119
|
+
orderGiftCard: B,
|
|
120
|
+
initialize: V
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
ae as u
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=giftCard-DtBMjMxF.js.map
|
|
Binary file
|
package/dist/hotel.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { d as Q, r as ne, a as u, b as A, w as $, l as qe, u as t, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as M, x as Ye, v as N, h as Ae, c as G, p as
|
|
2
|
-
import { u as le, s as Z, T as io, c as so, i as ro, m as co } from "./mitt-
|
|
3
|
-
import { d as Ve, x as me, u as _e, I as K, s as ce, y as Ze, l as dt, z as re, h as oe, _ as ue, n as Be, A as Vt, b as Qe, c as de, e as Tt, B as $t, D as ct, T as se, p as uo, F as po, a as mo, C as fo, i as ut, j as ho, k as pt, m as vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
4
|
-
import { R as yo, B as Ee, L as go, S as
|
|
5
|
-
import { A as Co, H as wo } from "./AvailabilitySkeleton-
|
|
6
|
-
import { S as Po } from "./TermsOfService-
|
|
7
|
-
import { C as Se, B as Ao, P as Do, a as Ho } from "./CheckoutWindow-
|
|
8
|
-
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
1
|
+
import { d as Q, r as ne, a as u, b as A, w as $, l as qe, u as t, g as f, e as a, t as v, A as We, B as Ke, f as g, i as _, s as F, F as M, x as Ye, v as N, h as Ae, c as G, p as kt, j as _t, o as tt, z as De, n as He, S as to, C as oo, D as no, E as lo, k as ao } from "./_sentry-release-injection-file-CkMeg-D2.js";
|
|
2
|
+
import { u as le, s as Z, T as io, c as so, i as ro, m as co } from "./mitt-Cbb-9RWx.js";
|
|
3
|
+
import { d as Ve, x as me, u as _e, I as K, s as ce, y as Ze, l as dt, z as re, h as oe, _ as ue, n as Be, A as Vt, b as Qe, c as de, e as Tt, B as $t, D as ct, T as se, p as uo, F as po, a as mo, C as fo, i as ut, j as ho, k as pt, m as vo } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js";
|
|
4
|
+
import { R as yo, B as Ee, L as go, S as bo, M as ko, a as ze, C as _o, T as Vo, V as To, G as $o } from "./masonry.plugin-Ch8U9Epf.js";
|
|
5
|
+
import { A as Co, H as wo } from "./AvailabilitySkeleton-CyvafyOT.js";
|
|
6
|
+
import { S as Po } from "./TermsOfService-DLQtIpLt.js";
|
|
7
|
+
import { C as Se, B as Ao, P as Do, a as Ho } from "./CheckoutWindow-BqJ6ZsZD.js";
|
|
8
|
+
import { _ as Ct } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js";
|
|
9
9
|
(function() {
|
|
10
10
|
try {
|
|
11
11
|
var l = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
12
|
-
n && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[n] = "
|
|
12
|
+
n && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[n] = "bd36c7b2-6624-49f4-a3d6-c30f57634223", l._sentryDebugIdIdentifier = "sentry-dbid-bd36c7b2-6624-49f4-a3d6-c30f57634223");
|
|
13
13
|
} catch {
|
|
14
14
|
}
|
|
15
15
|
})();
|
|
@@ -38,7 +38,7 @@ const Mo = { key: 0 }, Lo = { key: 1 }, Uo = { key: 0 }, Ro = { class: "konnecti
|
|
|
38
38
|
areListingsLoading: C,
|
|
39
39
|
getSelectedPackageRoom: I,
|
|
40
40
|
selectedPackage: B,
|
|
41
|
-
discountVouchers:
|
|
41
|
+
discountVouchers: b,
|
|
42
42
|
currentArrivalDate: w,
|
|
43
43
|
currentDepartureDate: H,
|
|
44
44
|
datesMismatch: O,
|
|
@@ -114,7 +114,7 @@ const Mo = { key: 0 }, Lo = { key: 1 }, Uo = { key: 0 }, Ro = { class: "konnecti
|
|
|
114
114
|
a("span", null, v(t(n)("booking.reservation.nights")), 1),
|
|
115
115
|
a("b", null, v(t(Ze)(t(w), t(H))) + " " + v(t(dt)(t(Ze)(t(w), t(H)) === 1 ? t(n)("booking.reservation.night") : t(n)("booking.reservation.nights"))), 1)
|
|
116
116
|
]),
|
|
117
|
-
t(
|
|
117
|
+
t(b) ? (u(!0), f(M, { key: 1 }, F(t(b), (U) => (u(), f("li", {
|
|
118
118
|
key: U.id
|
|
119
119
|
}, [
|
|
120
120
|
a("span", null, v(`${t(n)("general.discountCode")} (${U.value})`), 1),
|
|
@@ -130,7 +130,7 @@ const Mo = { key: 0 }, Lo = { key: 1 }, Uo = { key: 0 }, Ro = { class: "konnecti
|
|
|
130
130
|
a("h6", null, [
|
|
131
131
|
a("span", null, v(ge), 1)
|
|
132
132
|
]),
|
|
133
|
-
(u(!0), f(M, null, F(Re, ($e,
|
|
133
|
+
(u(!0), f(M, null, F(Re, ($e, be) => (u(), f("div", { key: be }, [
|
|
134
134
|
(u(!0), f(M, null, F($e.rooms, (ae, Ne) => (u(), f("ul", { key: Ne }, [
|
|
135
135
|
a("li", null, [
|
|
136
136
|
a("span", null, [
|
|
@@ -237,7 +237,7 @@ const Mo = { key: 0 }, Lo = { key: 1 }, Uo = { key: 0 }, Ro = { class: "konnecti
|
|
|
237
237
|
_: 3
|
|
238
238
|
}, 8, ["discount-code", "validate-discount-code", "total-price", "show-gift-card", "show-terms-notice", "is-sidebar-loading", "notice"]));
|
|
239
239
|
}
|
|
240
|
-
}), xe = /* @__PURE__ */ ue(No, [["__scopeId", "data-v-61664f48"]]), Fo = (l) => (
|
|
240
|
+
}), xe = /* @__PURE__ */ ue(No, [["__scopeId", "data-v-61664f48"]]), Fo = (l) => (kt("data-v-69fe83d8"), l = l(), _t(), l), Oo = { class: "konnectio-room-config-option" }, jo = { key: 0 }, Go = { class: "konnectio-selected-room-config" }, qo = { class: "konnectio-selected-room-config-people" }, Wo = { key: 0 }, Ko = { class: "konnectio-selected-room-config-price" }, zo = /* @__PURE__ */ Fo(() => /* @__PURE__ */ a("span", null, null, -1)), xo = /* @__PURE__ */ Q({
|
|
241
241
|
__name: "RoomConfigField",
|
|
242
242
|
props: {
|
|
243
243
|
modelValue: {},
|
|
@@ -320,17 +320,17 @@ const en = /* @__PURE__ */ Q({
|
|
|
320
320
|
},
|
|
321
321
|
setup(l) {
|
|
322
322
|
const { t: n } = le(), o = l, e = ne([]);
|
|
323
|
-
function i(
|
|
324
|
-
e.value[
|
|
323
|
+
function i(b) {
|
|
324
|
+
e.value[b].config.push({
|
|
325
325
|
id: NaN,
|
|
326
326
|
units: 0,
|
|
327
327
|
addons: []
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
const s = G(() => o.room.rates.map((
|
|
331
|
-
label:
|
|
332
|
-
value:
|
|
333
|
-
}))), { hideAvailableRoomAmount: m } = Z(Ve()), { roomSelect: p } = Z(me()), { addToCart: c, removeFromCart: r } = Vt(), d = (
|
|
330
|
+
const s = G(() => o.room.rates.map((b) => ({
|
|
331
|
+
label: b.name,
|
|
332
|
+
value: b.id
|
|
333
|
+
}))), { hideAvailableRoomAmount: m } = Z(Ve()), { roomSelect: p } = Z(me()), { addToCart: c, removeFromCart: r } = Vt(), d = (b, w) => o.room.rates.find((H) => H.id === b)?.occupantRates.find((H) => H.index === w), h = G(() => o.room.rates.every((b) => b.isBreakfastIncluded === !0)), V = (b, w) => d(b, w) ? d(b, w)?.rooms : null, P = (b) => o.room.rates.length > 0 ? o.room.rates.find((w) => w.id === b)?.occupantRates.map((w) => ({
|
|
334
334
|
value: w.index,
|
|
335
335
|
price: w.totalPrice,
|
|
336
336
|
adults: w.adultsCount,
|
|
@@ -358,8 +358,8 @@ const en = /* @__PURE__ */ Q({
|
|
|
358
358
|
I();
|
|
359
359
|
});
|
|
360
360
|
const B = G(() => JSON.parse(JSON.stringify(e.value)));
|
|
361
|
-
return De(B, (
|
|
362
|
-
w.length > 0 &&
|
|
361
|
+
return De(B, (b, w) => {
|
|
362
|
+
w.length > 0 && b.forEach((H, O) => {
|
|
363
363
|
H.config.forEach((j, x) => {
|
|
364
364
|
const R = j.units, J = w[O].config[x].units;
|
|
365
365
|
R !== J && (R > J ? (e.value[O].config[x].addons.push({}), c({
|
|
@@ -375,15 +375,15 @@ const en = /* @__PURE__ */ Q({
|
|
|
375
375
|
});
|
|
376
376
|
}, { deep: !0 }), De(e, () => {
|
|
377
377
|
p.value[o.room.id] = e.value;
|
|
378
|
-
}, { deep: !0 }), (
|
|
378
|
+
}, { deep: !0 }), (b, w) => (u(), A(Ee, {
|
|
379
379
|
type: "hotel",
|
|
380
|
-
"listing-id":
|
|
381
|
-
gallery:
|
|
382
|
-
name:
|
|
383
|
-
description:
|
|
384
|
-
layout:
|
|
385
|
-
facilities:
|
|
386
|
-
"prices-from":
|
|
380
|
+
"listing-id": b.room.id,
|
|
381
|
+
gallery: b.room.images,
|
|
382
|
+
name: b.room.title,
|
|
383
|
+
description: b.room.description,
|
|
384
|
+
layout: b.layout,
|
|
385
|
+
facilities: b.room.facilities,
|
|
386
|
+
"prices-from": b.room.pricesFrom,
|
|
387
387
|
"includes-breakfast": h.value
|
|
388
388
|
}, {
|
|
389
389
|
action: $(() => [
|
|
@@ -402,7 +402,7 @@ const en = /* @__PURE__ */ Q({
|
|
|
402
402
|
searchable: !1
|
|
403
403
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "placeholder", "options"])) : _("", !0),
|
|
404
404
|
H.id ? (u(), f("div", Zo, [
|
|
405
|
-
(u(!0), f(M, null, F(
|
|
405
|
+
(u(!0), f(M, null, F(b.room.rates, ({
|
|
406
406
|
id: j,
|
|
407
407
|
maximumOccupants: x
|
|
408
408
|
}) => (u(), f("div", {
|
|
@@ -479,14 +479,14 @@ const en = /* @__PURE__ */ Q({
|
|
|
479
479
|
title: C,
|
|
480
480
|
description: I,
|
|
481
481
|
images: B,
|
|
482
|
-
facilities:
|
|
482
|
+
facilities: b,
|
|
483
483
|
extraPrice: w
|
|
484
484
|
}) => (u(), A(Ee, {
|
|
485
485
|
key: P,
|
|
486
486
|
"listing-id": P,
|
|
487
487
|
name: C,
|
|
488
488
|
description: I,
|
|
489
|
-
facilities:
|
|
489
|
+
facilities: b,
|
|
490
490
|
gallery: B,
|
|
491
491
|
"includes-breakfast": !1,
|
|
492
492
|
"hide-info-button": !0
|
|
@@ -860,20 +860,20 @@ const en = /* @__PURE__ */ Q({
|
|
|
860
860
|
_: 1
|
|
861
861
|
}, 8, ["label", "id", "required", "readonly", "limit"]));
|
|
862
862
|
}
|
|
863
|
-
}), yn = /* @__PURE__ */ ue(vn, [["__scopeId", "data-v-78b0b319"]]), gn = { class: "hotel-skeleton" },
|
|
863
|
+
}), yn = /* @__PURE__ */ ue(vn, [["__scopeId", "data-v-78b0b319"]]), gn = { class: "hotel-skeleton" }, bn = { class: "hotel-skeleton-content" }, kn = { class: "hotel-skeleton-sidebar" }, _n = /* @__PURE__ */ Q({
|
|
864
864
|
__name: "HotelSkeleton",
|
|
865
865
|
setup(l) {
|
|
866
866
|
return (n, o) => (u(), f("div", gn, [
|
|
867
|
-
a("div",
|
|
867
|
+
a("div", bn, [
|
|
868
868
|
g(Co, { hotel: "" }),
|
|
869
869
|
g(go)
|
|
870
870
|
]),
|
|
871
|
-
a("div",
|
|
872
|
-
g(
|
|
871
|
+
a("div", kn, [
|
|
872
|
+
g(bo)
|
|
873
873
|
])
|
|
874
874
|
]));
|
|
875
875
|
}
|
|
876
|
-
}), Vn = /* @__PURE__ */ ue(_n, [["__scopeId", "data-v-1bb21da4"]]), Tn = (l) => (
|
|
876
|
+
}), Vn = /* @__PURE__ */ ue(_n, [["__scopeId", "data-v-1bb21da4"]]), Tn = (l) => (kt("data-v-2713d0ba"), l = l(), _t(), l), $n = { id: "booking-availability-container" }, Cn = { id: "booking-availability-controls" };
|
|
877
877
|
const wn = { key: 1 }, Pn = { key: 0 }, An = {
|
|
878
878
|
key: 0,
|
|
879
879
|
id: "booking-availability-packages"
|
|
@@ -920,7 +920,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
920
920
|
styling: {}
|
|
921
921
|
},
|
|
922
922
|
setup(l) {
|
|
923
|
-
const n = oo(() => import("./_-
|
|
923
|
+
const n = oo(() => import("./_-CHRCWC6p.js")), o = l, { t: e } = le(), {
|
|
924
924
|
templateID: i,
|
|
925
925
|
templateAddons: s,
|
|
926
926
|
countries: m,
|
|
@@ -934,7 +934,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
934
934
|
nameTitle: C,
|
|
935
935
|
email: I,
|
|
936
936
|
phone: B,
|
|
937
|
-
firmName:
|
|
937
|
+
firmName: b,
|
|
938
938
|
postal: w,
|
|
939
939
|
city: H,
|
|
940
940
|
address: O,
|
|
@@ -958,7 +958,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
958
958
|
arrivalDate: U,
|
|
959
959
|
departureDate: ge
|
|
960
960
|
} = Z(_e()), { isValidHotelId: Re, updateDates: $e } = _e(), {
|
|
961
|
-
currency:
|
|
961
|
+
currency: be,
|
|
962
962
|
arrivalEarliest: ae,
|
|
963
963
|
arrivalLatest: Ne,
|
|
964
964
|
departureEarliest: nt,
|
|
@@ -1008,7 +1008,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1008
1008
|
icon: "calendar-check"
|
|
1009
1009
|
}
|
|
1010
1010
|
], Kt = G(() => {
|
|
1011
|
-
const
|
|
1011
|
+
const k = [
|
|
1012
1012
|
{
|
|
1013
1013
|
label: e("booking.reservation.business"),
|
|
1014
1014
|
value: "Business"
|
|
@@ -1018,16 +1018,16 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1018
1018
|
value: "Pleasure"
|
|
1019
1019
|
}
|
|
1020
1020
|
];
|
|
1021
|
-
return Lt.value ||
|
|
1021
|
+
return Lt.value || k.push({
|
|
1022
1022
|
label: e("booking.reservation.bleasure"),
|
|
1023
1023
|
value: "Bleasure"
|
|
1024
|
-
}),
|
|
1024
|
+
}), k;
|
|
1025
1025
|
}), zt = G(() => {
|
|
1026
|
-
const
|
|
1026
|
+
const k = L.value.roomGroups.slice();
|
|
1027
1027
|
function T(q, D) {
|
|
1028
1028
|
return qt.value === !0 ? q.pricesFrom > D.pricesFrom ? -1 : 1 : q.pricesFrom > D.pricesFrom ? 1 : -1;
|
|
1029
1029
|
}
|
|
1030
|
-
return
|
|
1030
|
+
return k.sort(T);
|
|
1031
1031
|
}), xt = G(() => [[
|
|
1032
1032
|
parseInt(ae.value.split(":")[0]),
|
|
1033
1033
|
parseInt(Ne.value.split(":")[0])
|
|
@@ -1035,26 +1035,26 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1035
1035
|
parseInt(nt.value.split(":")[0]),
|
|
1036
1036
|
parseInt(St.value.split(":")[0])
|
|
1037
1037
|
]]);
|
|
1038
|
-
function rt(
|
|
1039
|
-
o.hideAddons === "yes" || pe.value ?
|
|
1038
|
+
function rt(k) {
|
|
1039
|
+
o.hideAddons === "yes" || pe.value ? k(2) : k(), Ot();
|
|
1040
1040
|
}
|
|
1041
|
-
async function Yt(
|
|
1042
|
-
await jt(
|
|
1041
|
+
async function Yt(k) {
|
|
1042
|
+
await jt(k);
|
|
1043
1043
|
}
|
|
1044
|
-
function Zt(
|
|
1045
|
-
It.value && Nt(), o.hideAddons === "yes" || pe.value ?
|
|
1044
|
+
function Zt(k) {
|
|
1045
|
+
It.value && Nt(), o.hideAddons === "yes" || pe.value ? k(2) : k();
|
|
1046
1046
|
}
|
|
1047
1047
|
function Qt() {
|
|
1048
|
-
const
|
|
1048
|
+
const k = ho("hash-params", {
|
|
1049
1049
|
removeNullishValues: !0
|
|
1050
|
-
}), T = parseInt(
|
|
1051
|
-
if (isNaN(T) || (T > lt.value ? ye.value = lt.value : ye.value = T,
|
|
1050
|
+
}), T = parseInt(k.a), q = parseInt(k.c), D = parseInt(k.hid), y = parseInt(k.n), W = k.ci, E = k.co, S = k.id;
|
|
1051
|
+
if (isNaN(T) || (T > lt.value ? ye.value = lt.value : ye.value = T, k.a = void 0), isNaN(q) || (q > at.value ? ee.value = at.value : ee.value = q, k.c = void 0), isNaN(y) || y > 0 && (k.n = void 0), isNaN(D) || (Re(D) ? (z.value = D, k.hid = void 0) : je({
|
|
1052
1052
|
message: e("alert.error.hotelIdNotFound"),
|
|
1053
1053
|
type: "error"
|
|
1054
1054
|
})), W && E)
|
|
1055
1055
|
if (pt(W) && pt(E)) {
|
|
1056
1056
|
const Y = new Date(W), fe = new Date(E);
|
|
1057
|
-
Y <= fe ? (U.value = Y, ge.value = fe,
|
|
1057
|
+
Y <= fe ? (U.value = Y, ge.value = fe, k.ci = void 0, k.co = void 0) : je({
|
|
1058
1058
|
message: e("alert.error.invalidDateRange"),
|
|
1059
1059
|
type: "error"
|
|
1060
1060
|
});
|
|
@@ -1066,18 +1066,18 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1066
1066
|
let te = null;
|
|
1067
1067
|
S && (te = S), it(te);
|
|
1068
1068
|
}
|
|
1069
|
-
return (
|
|
1069
|
+
return (k, T) => (u(), A(fo, { styling: k.styling }, {
|
|
1070
1070
|
default: $(() => [
|
|
1071
1071
|
(u(), A(to, { onResolve: Qt }, {
|
|
1072
1072
|
default: $(() => [
|
|
1073
1073
|
g(t(n), {
|
|
1074
1074
|
id: "konnectio-hotel-module",
|
|
1075
|
-
"access-token":
|
|
1075
|
+
"access-token": k.accessToken,
|
|
1076
1076
|
callback: t(Gt)
|
|
1077
1077
|
}, {
|
|
1078
1078
|
default: $(() => [
|
|
1079
|
-
g(
|
|
1080
|
-
layout:
|
|
1079
|
+
g(ko, {
|
|
1080
|
+
layout: k.headerLayout,
|
|
1081
1081
|
steps: Wt,
|
|
1082
1082
|
onReset: t(Ft)
|
|
1083
1083
|
}, {
|
|
@@ -1088,14 +1088,14 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1088
1088
|
a("div", Cn, [
|
|
1089
1089
|
g(wo, {
|
|
1090
1090
|
booking: !0,
|
|
1091
|
-
"selected-location": Number(
|
|
1091
|
+
"selected-location": Number(k.selectedLocation)
|
|
1092
1092
|
}, null, 8, ["selected-location"])
|
|
1093
1093
|
]),
|
|
1094
1094
|
_("", !0),
|
|
1095
1095
|
!t(p) && t(he) ? (u(), f("div", wn, [
|
|
1096
1096
|
t(L).roomGroups.length > 0 || t(L).templates.length > 0 || t(L).specialTemplates.length > 0 ? (u(), f("div", Pn, [
|
|
1097
|
-
t(L).templates.length > 0 &&
|
|
1098
|
-
|
|
1097
|
+
t(L).templates.length > 0 && k.onlyShow !== "rooms" ? (u(), f("div", An, [
|
|
1098
|
+
k.onlyShow !== "packages" ? (u(), f("h2", Dn, [
|
|
1099
1099
|
g(K, {
|
|
1100
1100
|
icon: "box",
|
|
1101
1101
|
type: "fal",
|
|
@@ -1120,12 +1120,12 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1120
1120
|
weekendFee: te,
|
|
1121
1121
|
"room-groups": W,
|
|
1122
1122
|
callback: q,
|
|
1123
|
-
"hide-addons":
|
|
1123
|
+
"hide-addons": k.hideAddons
|
|
1124
1124
|
}, null, 8, ["id", "description", "name", "image", "weekendFee", "room-groups", "callback", "hide-addons"]))), 128))
|
|
1125
1125
|
])
|
|
1126
1126
|
])) : _("", !0),
|
|
1127
|
-
t(L).roomGroups.length > 0 &&
|
|
1128
|
-
t(L).templates.length > 0 &&
|
|
1127
|
+
t(L).roomGroups.length > 0 && k.onlyShow !== "packages" ? (u(), f("div", Sn, [
|
|
1128
|
+
t(L).templates.length > 0 && k.onlyShow !== "rooms" ? (u(), f("h2", In, [
|
|
1129
1129
|
g(K, {
|
|
1130
1130
|
icon: "house",
|
|
1131
1131
|
type: "fal",
|
|
@@ -1140,7 +1140,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1140
1140
|
}, null, 8, ["room"]))), 128))
|
|
1141
1141
|
])
|
|
1142
1142
|
])) : _("", !0),
|
|
1143
|
-
t(L).specialTemplates.length > 0 &&
|
|
1143
|
+
t(L).specialTemplates.length > 0 && k.onlyShow !== "rooms" ? (u(), f("div", En, [
|
|
1144
1144
|
a("h2", Mn, [
|
|
1145
1145
|
g(K, {
|
|
1146
1146
|
icon: "sparkles",
|
|
@@ -1173,7 +1173,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1173
1173
|
}, null, 8, ["id", "description", "name", "image", "fromDate", "toDate", "weekendFee", "room-groups", "callback"]))), 128))
|
|
1174
1174
|
])
|
|
1175
1175
|
])) : _("", !0),
|
|
1176
|
-
(t(L).templates.length === 0 &&
|
|
1176
|
+
(t(L).templates.length === 0 && k.onlyShow !== "rooms" || t(L).roomGroups.length === 0 && k.onlyShow !== "packages") && (k.onlyShow === "rooms" || k.onlyShow === "packages") ? (u(), f("div", Un, [
|
|
1177
1177
|
a("span", null, v(t(e)("booking.availability.nothingAvailable")), 1)
|
|
1178
1178
|
])) : _("", !0)
|
|
1179
1179
|
])) : t(L).nextAvailableDates.length === 0 ? (u(), f("div", Rn, [
|
|
@@ -1202,7 +1202,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1202
1202
|
type: "fal",
|
|
1203
1203
|
color: "header"
|
|
1204
1204
|
}),
|
|
1205
|
-
a("span", null, v(t(e)("booking.availability.pricesFrom")) + ": " + v(t(oe)(D.priceStartFrom, t(
|
|
1205
|
+
a("span", null, v(t(e)("booking.availability.pricesFrom")) + ": " + v(t(oe)(D.priceStartFrom, t(be))), 1)
|
|
1206
1206
|
])
|
|
1207
1207
|
]),
|
|
1208
1208
|
g(de, {
|
|
@@ -1229,7 +1229,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1229
1229
|
onClickEvent: T[1] || (T[1] = (D) => t(it)())
|
|
1230
1230
|
}, null, 8, ["label", "is-loading"])) : (u(), A(de, {
|
|
1231
1231
|
key: 1,
|
|
1232
|
-
label: t(pe) ||
|
|
1232
|
+
label: t(pe) || k.hideAddons === "yes" ? t(e)("booking.availability.nextButton") : t(e)("general.chooseAddons"),
|
|
1233
1233
|
disabled: !t(Me),
|
|
1234
1234
|
"full-width": "",
|
|
1235
1235
|
onClickEvent: (D) => Zt(q)
|
|
@@ -1289,27 +1289,27 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1289
1289
|
(u(!0), f(M, null, F(t(st)(y.addons, S.childrenCount), ({
|
|
1290
1290
|
quantityStrategy: Y,
|
|
1291
1291
|
maximumNumber: fe,
|
|
1292
|
-
id:
|
|
1292
|
+
id: ke,
|
|
1293
1293
|
name: Xt,
|
|
1294
1294
|
price: eo
|
|
1295
|
-
}) => (u(), f("tr", { key:
|
|
1295
|
+
}) => (u(), f("tr", { key: ke }, [
|
|
1296
1296
|
a("td", xn, [
|
|
1297
1297
|
a("b", null, v(t(re)(Xt)), 1),
|
|
1298
|
-
a("span", null, v(t(oe)(eo, t(
|
|
1298
|
+
a("span", null, v(t(oe)(eo, t(be))) + " " + v(t(ut)(Y)), 1)
|
|
1299
1299
|
]),
|
|
1300
1300
|
a("td", Jn, [
|
|
1301
1301
|
t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx] ? (u(), f(M, { key: 0 }, [
|
|
1302
1302
|
Y === 1 || Y === 12 ? (u(), A(Qe, {
|
|
1303
1303
|
key: 0,
|
|
1304
|
-
modelValue: t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][
|
|
1305
|
-
"onUpdate:modelValue": (Ge) => t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][
|
|
1304
|
+
modelValue: t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ke],
|
|
1305
|
+
"onUpdate:modelValue": (Ge) => t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ke] = Ge,
|
|
1306
1306
|
small: !0,
|
|
1307
1307
|
"min-value": 0,
|
|
1308
1308
|
"max-value": fe || 1 / 0
|
|
1309
1309
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max-value"])) : (u(), A(Se, {
|
|
1310
1310
|
key: 1,
|
|
1311
|
-
modelValue: t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][
|
|
1312
|
-
"onUpdate:modelValue": (Ge) => t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][
|
|
1311
|
+
modelValue: t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ke],
|
|
1312
|
+
"onUpdate:modelValue": (Ge) => t(J)[y.roomGroupID][E].config[S.configIdx].addons[S.roomIdx][ke] = Ge,
|
|
1313
1313
|
numeric: !0
|
|
1314
1314
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
1315
1315
|
], 64)) : _("", !0)
|
|
@@ -1344,7 +1344,7 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1344
1344
|
}) => (u(), f("tr", { key: E }, [
|
|
1345
1345
|
a("td", Xn, [
|
|
1346
1346
|
a("b", null, v(t(re)(S)), 1),
|
|
1347
|
-
a("span", null, v(t(oe)(te, t(
|
|
1347
|
+
a("span", null, v(t(oe)(te, t(be))) + " " + v(t(ut)(y)), 1)
|
|
1348
1348
|
]),
|
|
1349
1349
|
a("td", el, [
|
|
1350
1350
|
y === 1 || y === 12 ? (u(), A(Qe, {
|
|
@@ -1445,8 +1445,8 @@ const Qn = /* @__PURE__ */ Tn(() => /* @__PURE__ */ a("th", { class: "konnectio-
|
|
|
1445
1445
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1446
1446
|
t(Ut) ? _("", !0) : (u(), A(se, {
|
|
1447
1447
|
key: 1,
|
|
1448
|
-
modelValue: t(
|
|
1449
|
-
"onUpdate:modelValue": T[7] || (T[7] = (y) => N(
|
|
1448
|
+
modelValue: t(b),
|
|
1449
|
+
"onUpdate:modelValue": T[7] || (T[7] = (y) => N(b) ? b.value = y : null),
|
|
1450
1450
|
type: "text",
|
|
1451
1451
|
name: "firm",
|
|
1452
1452
|
autocomplete: "firm",
|
|
@@ -1759,7 +1759,7 @@ function Dt(l, n) {
|
|
|
1759
1759
|
function ht(l, n) {
|
|
1760
1760
|
return l == null ? n || null : typeof l == "function" ? l(n) : l;
|
|
1761
1761
|
}
|
|
1762
|
-
async function
|
|
1762
|
+
async function bl(l, n, o) {
|
|
1763
1763
|
const e = {
|
|
1764
1764
|
tag: l,
|
|
1765
1765
|
props: await Ht(
|
|
@@ -1774,14 +1774,14 @@ async function kl(l, n, o) {
|
|
|
1774
1774
|
typeof s < "u" && ((!["innerHTML", "textContent", "children"].includes(i) || hl.includes(e.tag)) && (e[i === "children" ? "innerHTML" : i] = s), delete e.props[i]);
|
|
1775
1775
|
}), e.props.body && (e.tagPosition = "bodyClose", delete e.props.body), e.tag === "script" && typeof e.innerHTML == "object" && (e.innerHTML = JSON.stringify(e.innerHTML), e.props.type = e.props.type || "application/json"), Array.isArray(e.props.content) ? e.props.content.map((i) => ({ ...e, props: { ...e.props, content: i } })) : e;
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function kl(l, n) {
|
|
1778
1778
|
const o = l === "class" ? " " : ";";
|
|
1779
|
-
return typeof n == "object" && !Array.isArray(n) && (n = Object.entries(n).filter(([, e]) => e).map(([e, i]) => l === "style" ? `${e}:${i}` : e)), (Array.isArray(n) ? n.join(o) : n)?.split(o).filter((e) => e.trim()).filter(Boolean).join(o);
|
|
1779
|
+
return typeof n == "object" && !Array.isArray(n) && (n = Object.entries(n).filter(([, e]) => e).map(([e, i]) => l === "style" ? `${e}:${i}` : e)), String(Array.isArray(n) ? n.join(o) : n)?.split(o).filter((e) => e.trim()).filter(Boolean).join(o);
|
|
1780
1780
|
}
|
|
1781
1781
|
async function Ht(l, n) {
|
|
1782
1782
|
for (const o of Object.keys(l)) {
|
|
1783
1783
|
if (["class", "style"].includes(o)) {
|
|
1784
|
-
l[o] =
|
|
1784
|
+
l[o] = kl(o, l[o]);
|
|
1785
1785
|
continue;
|
|
1786
1786
|
}
|
|
1787
1787
|
if (l[o] instanceof Promise && (l[o] = await l[o]), !n && !At.includes(o)) {
|
|
@@ -1796,7 +1796,7 @@ async function Vl(l) {
|
|
|
1796
1796
|
const n = [];
|
|
1797
1797
|
return Object.entries(l.resolvedInput).filter(([o, e]) => typeof e < "u" && vl.includes(o)).forEach(([o, e]) => {
|
|
1798
1798
|
const i = fl(e);
|
|
1799
|
-
n.push(...i.map((s) =>
|
|
1799
|
+
n.push(...i.map((s) => bl(o, s, l)).flat());
|
|
1800
1800
|
}), (await Promise.all(n)).flat().filter(Boolean).map((o, e) => (o._e = l._i, l.mode && (o._m = l.mode), o._p = (l._i << _l) + e, o));
|
|
1801
1801
|
}
|
|
1802
1802
|
const vt = {
|
|
@@ -1855,12 +1855,12 @@ async function $l(l, n = {}) {
|
|
|
1855
1855
|
const C = {
|
|
1856
1856
|
tag: P.tagName.toLowerCase(),
|
|
1857
1857
|
props: await Ht(
|
|
1858
|
-
P.getAttributeNames().reduce((
|
|
1858
|
+
P.getAttributeNames().reduce((b, w) => ({ ...b, [w]: P.getAttribute(w) }), {})
|
|
1859
1859
|
),
|
|
1860
1860
|
innerHTML: P.innerHTML
|
|
1861
1861
|
};
|
|
1862
1862
|
let I = 1, B = Dt(C);
|
|
1863
|
-
for (; B && V.find((
|
|
1863
|
+
for (; B && V.find((b) => b._d === B); )
|
|
1864
1864
|
B = `${B}:${I++}`;
|
|
1865
1865
|
C._d = B || void 0, V.push(C), s.elMap[P.getAttribute("data-hid") || ft(C)] = P;
|
|
1866
1866
|
}
|
|
@@ -1883,12 +1883,12 @@ async function $l(l, n = {}) {
|
|
|
1883
1883
|
Object.entries(V.props).forEach(([C, I]) => {
|
|
1884
1884
|
const B = `attr:${C}`;
|
|
1885
1885
|
if (C === "class")
|
|
1886
|
-
for (const
|
|
1887
|
-
P && m(d, `${B}:${
|
|
1886
|
+
for (const b of (I || "").split(" ").filter(Boolean))
|
|
1887
|
+
P && m(d, `${B}:${b}`, () => h.classList.remove(b)), !h.classList.contains(b) && h.classList.add(b);
|
|
1888
1888
|
else if (C === "style")
|
|
1889
|
-
for (const
|
|
1890
|
-
const [w, ...H] =
|
|
1891
|
-
m(d, `${B}:${
|
|
1889
|
+
for (const b of (I || "").split(";").filter(Boolean)) {
|
|
1890
|
+
const [w, ...H] = b.split(":").map((O) => O.trim());
|
|
1891
|
+
m(d, `${B}:${w}`, () => {
|
|
1892
1892
|
h.style.removeProperty(w);
|
|
1893
1893
|
}), h.style.setProperty(w, H.join(":"));
|
|
1894
1894
|
}
|
|
@@ -2084,7 +2084,7 @@ function Nl(l = {}) {
|
|
|
2084
2084
|
const n = Fl(l);
|
|
2085
2085
|
return n.use(/* @__PURE__ */ wl()), n;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function bt(l, n) {
|
|
2088
2088
|
return !l || l === "server" && n || l === "client" && !n;
|
|
2089
2089
|
}
|
|
2090
2090
|
function Fl(l = {}) {
|
|
@@ -2104,7 +2104,7 @@ function Fl(l = {}) {
|
|
|
2104
2104
|
},
|
|
2105
2105
|
use(c) {
|
|
2106
2106
|
const r = typeof c == "function" ? c(p) : c;
|
|
2107
|
-
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r),
|
|
2107
|
+
(!r.key || !m.some((d) => d.key === r.key)) && (m.push(r), bt(r.mode, o) && n.addHooks(r.hooks || {}));
|
|
2108
2108
|
},
|
|
2109
2109
|
push(c, r) {
|
|
2110
2110
|
delete r?.head;
|
|
@@ -2113,7 +2113,7 @@ function Fl(l = {}) {
|
|
|
2113
2113
|
input: c,
|
|
2114
2114
|
...r
|
|
2115
2115
|
};
|
|
2116
|
-
return
|
|
2116
|
+
return bt(d.mode, o) && (s.push(d), e()), {
|
|
2117
2117
|
dispose() {
|
|
2118
2118
|
s = s.filter((h) => h._i !== d._i), n.callHook("entries:updated", p), e();
|
|
2119
2119
|
},
|
package/dist/hotel.js.br
CHANGED
|
Binary file
|