@konnectio/core 4.0.112 → 4.0.114
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-DI-ULm-r.js → ActionField-BVSpHeoR.js} +2 -2
- package/dist/ActionField-BVSpHeoR.js.br +0 -0
- package/dist/{AvailabilitySkeleton-Csh8QvFZ.js → AvailabilitySkeleton--jFFtmy6.js} +5 -5
- package/dist/AvailabilitySkeleton--jFFtmy6.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-D9SBqWhY.js +8753 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-D9SBqWhY.js.br +0 -0
- package/dist/{CheckoutWindow-BFskX4U1.js → CheckoutWindow-CYZ4mSP9.js} +4 -3
- package/dist/CheckoutWindow-CYZ4mSP9.js.br +0 -0
- package/dist/{ErrorMessage-mG19dj2Y.js → ErrorMessage-B_Nib6xY.js} +2 -2
- package/dist/ErrorMessage-B_Nib6xY.js.br +0 -0
- package/dist/{EventAvailabilityForm-CmjbkSat.js → EventAvailabilityForm-B0jnoFr6.js} +3 -3
- package/dist/EventAvailabilityForm-B0jnoFr6.js.br +0 -0
- package/dist/{Field-ChVeeJd5.js → Field-BGCLjjKK.js} +4 -4
- package/dist/Field-BGCLjjKK.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CMX2Ln2H.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CkiUU8Ab.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-D00K1N6y.js → SelectField.vue_vue_type_style_index_0_lang-CKZAx_Wg.js} +5 -4
- package/dist/SelectField.vue_vue_type_style_index_0_lang-CKZAx_Wg.js.br +0 -0
- package/dist/{TermsOfService-TupcHiBZ.js → TermsOfService-C5LJyrwS.js} +3 -3
- package/dist/_-Cp56btIY.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-C_bebiDH.js → _.vue_vue_type_style_index_0_lang-D4RoVNFh.js} +2 -2
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/event.js +437 -507
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-CLuzEQsh.js → giftCard-DSUOT3m1.js} +2 -2
- package/dist/giftCard-DSUOT3m1.js.br +0 -0
- package/dist/hotel.js +405 -404
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-3hI9OVJR.js → masonry.plugin-BkkycOIw.js} +8 -8
- package/dist/masonry.plugin-BkkycOIw.js.br +0 -0
- package/dist/polyfill.js +3655 -3432
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +15 -15
- package/dist/ActionField-DI-ULm-r.js.br +0 -0
- package/dist/AvailabilitySkeleton-Csh8QvFZ.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js +0 -9062
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-B8esbsyA.js.br +0 -0
- package/dist/CheckoutWindow-BFskX4U1.js.br +0 -0
- package/dist/ErrorMessage-mG19dj2Y.js.br +0 -0
- package/dist/EventAvailabilityForm-CmjbkSat.js.br +0 -0
- package/dist/Field-ChVeeJd5.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-D00K1N6y.js.br +0 -0
- package/dist/_-DZP0EO5k.js +0 -5
- package/dist/giftCard-CLuzEQsh.js.br +0 -0
- package/dist/masonry.plugin-3hI9OVJR.js.br +0 -0
package/dist/hotel.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { d as Z, u as se, s as X, r as ie, a as d, b as H, y as fo, i as e, w as C, g as h, e as s, t as f, G as De, H as We, f as v, j as _, z as F, F as E, v as Ke, B as Xe, A as U, h as Vt, D as ho, K as vo, c as K, o as at, E as Me, n as Be, S as yo, L as go, M as ko, N as bo, k as _o, l as To, m as Vo, p as wo, q as Co } from "./mitt-CTfj-lXy.js";
|
|
2
|
-
import { g as fe, b as he, u as $e, I as x, s as te, z as Ce, l as Je, m as ae, j as oe, _ as me, c as Le, A as wt, f as Ze, d as pe, B as Ct, a as $t, D as mt, T as ce, r as $o, E as Po, C as Ao, k as ft, n as So, o as ht, p as Do } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { g as fe, b as he, u as $e, I as x, s as te, z as Ce, l as Je, m as ae, j as oe, _ as me, c as Le, A as wt, f as Ze, d as pe, B as Ct, a as $t, D as mt, T as ce, r as $o, E as Po, C as Ao, k as ft, n as So, o as ht, p as Do } from "./SelectField.vue_vue_type_style_index_0_lang-CKZAx_Wg.js";
|
|
3
3
|
import { G as Ho } from "./style-BSDdyhMN.js";
|
|
4
|
-
import { R as No, B as Ee, L as Mo, S as Bo, M as Io, b as ze, C as Ro, T as Lo, V as Eo, a as Uo } from "./masonry.plugin-
|
|
5
|
-
import { A as Oo, H as Fo } from "./AvailabilitySkeleton
|
|
6
|
-
import { S as qo } from "./TermsOfService-
|
|
7
|
-
import { C as et, B as Go, P as jo, a as xo } from "./CheckoutWindow-
|
|
8
|
-
import { _ as Pt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-
|
|
4
|
+
import { R as No, B as Ee, L as Mo, S as Bo, M as Io, b as ze, C as Ro, T as Lo, V as Eo, a as Uo } from "./masonry.plugin-BkkycOIw.js";
|
|
5
|
+
import { A as Oo, H as Fo } from "./AvailabilitySkeleton--jFFtmy6.js";
|
|
6
|
+
import { S as qo } from "./TermsOfService-C5LJyrwS.js";
|
|
7
|
+
import { C as et, B as Go, P as jo, a as xo } from "./CheckoutWindow-CYZ4mSP9.js";
|
|
8
|
+
import { _ as Pt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-D9SBqWhY.js";
|
|
9
9
|
const Wo = { key: 0 }, Ko = { class: "konnectio-hotel-reservation-warning" }, Jo = { class: "konnectio-hotel-reservation-warning" }, zo = { class: "konnectio-hotel-reservation-warning" };
|
|
10
10
|
const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnectio-reservation-actions" }, en = {
|
|
11
11
|
key: 0,
|
|
@@ -17,9 +17,9 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
17
17
|
showTermsNotice: { type: Boolean, default: !1 },
|
|
18
18
|
prevCallback: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
20
|
+
setup(n) {
|
|
21
21
|
const { t } = se(), {
|
|
22
|
-
disableNewsletterSignup:
|
|
22
|
+
disableNewsletterSignup: l,
|
|
23
23
|
currency: o
|
|
24
24
|
} = X(fe()), {
|
|
25
25
|
hasArrivalDepartureInputs: a
|
|
@@ -27,8 +27,8 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
27
27
|
arrivalTime: i,
|
|
28
28
|
departureTime: r,
|
|
29
29
|
roomDisplay: p,
|
|
30
|
-
templateID:
|
|
31
|
-
totalPrice:
|
|
30
|
+
templateID: c,
|
|
31
|
+
totalPrice: u,
|
|
32
32
|
areListingsLoading: y,
|
|
33
33
|
getSelectedPackageRoom: m,
|
|
34
34
|
selectedPackage: g,
|
|
@@ -59,7 +59,7 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
59
59
|
"discount-code": e(D),
|
|
60
60
|
"onUpdate:discountCode": j[4] || (j[4] = (O) => U(D) ? D.value = O : null),
|
|
61
61
|
"validate-discount-code": e(Ue),
|
|
62
|
-
"total-price": e(
|
|
62
|
+
"total-price": e(u),
|
|
63
63
|
"weekend-fee": e(ke),
|
|
64
64
|
"show-gift-card": Q.showGiftCard,
|
|
65
65
|
"show-terms-notice": Q.showTermsNotice,
|
|
@@ -71,7 +71,7 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
71
71
|
Ke(Q.$slots, "form", {}, void 0, !0)
|
|
72
72
|
]),
|
|
73
73
|
"price-summary": C(() => [
|
|
74
|
-
isNaN(e(
|
|
74
|
+
isNaN(e(c)) && e(p).length > 0 ? (d(!0), h(E, { key: 0 }, F(e(p), ({
|
|
75
75
|
roomGroupID: O,
|
|
76
76
|
title: it,
|
|
77
77
|
variants: Ve
|
|
@@ -138,7 +138,7 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
138
138
|
]),
|
|
139
139
|
actions: C(() => [
|
|
140
140
|
s("ul", Zo, [
|
|
141
|
-
e(
|
|
141
|
+
e(l) ? _("", !0) : (d(), h("div", en, [
|
|
142
142
|
v(et, {
|
|
143
143
|
modelValue: e(T),
|
|
144
144
|
"onUpdate:modelValue": j[0] || (j[0] = (O) => U(T) ? T.value = O : null),
|
|
@@ -278,26 +278,26 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
278
278
|
label: {}
|
|
279
279
|
},
|
|
280
280
|
emits: ["update:modelValue"],
|
|
281
|
-
setup(
|
|
282
|
-
const { t:
|
|
283
|
-
function r(
|
|
284
|
-
a("update:modelValue",
|
|
281
|
+
setup(n, { emit: t }) {
|
|
282
|
+
const { t: l } = se(), { currency: o } = X(fe()), a = t, i = n;
|
|
283
|
+
function r(c) {
|
|
284
|
+
a("update:modelValue", c);
|
|
285
285
|
}
|
|
286
286
|
const p = K({
|
|
287
287
|
get: () => i.modelValue,
|
|
288
|
-
set: (
|
|
288
|
+
set: (c) => r(c)
|
|
289
289
|
});
|
|
290
|
-
return (
|
|
290
|
+
return (c, u) => (d(), H(Le, {
|
|
291
291
|
modelValue: p.value,
|
|
292
|
-
"onUpdate:modelValue":
|
|
293
|
-
label:
|
|
292
|
+
"onUpdate:modelValue": u[0] || (u[0] = (y) => p.value = y),
|
|
293
|
+
label: c.label,
|
|
294
294
|
placeholder: "Select guest configuration",
|
|
295
295
|
labelKey: "label",
|
|
296
296
|
valueKey: "value",
|
|
297
297
|
"icon-placement": "label",
|
|
298
|
-
options:
|
|
299
|
-
readonly:
|
|
300
|
-
required:
|
|
298
|
+
options: c.options,
|
|
299
|
+
readonly: c.readonly,
|
|
300
|
+
required: c.required,
|
|
301
301
|
searchable: !1
|
|
302
302
|
}, {
|
|
303
303
|
option: C(({ data: y }) => [
|
|
@@ -326,15 +326,15 @@ const Yo = { key: 0 }, Qo = { key: 1 }, Xo = { key: 0 }, Zo = { class: "konnecti
|
|
|
326
326
|
s("div", sn, [
|
|
327
327
|
s("div", null, [
|
|
328
328
|
_("", !0),
|
|
329
|
-
s("span", null, f(`${y.adults} ${y.adults === 1 ? e(
|
|
329
|
+
s("span", null, f(`${y.adults} ${y.adults === 1 ? e(l)("general.adult") : e(l)("general.adults")}`), 1)
|
|
330
330
|
]),
|
|
331
331
|
y.children > 0 ? (d(), h("div", rn, [
|
|
332
332
|
_("", !0),
|
|
333
|
-
s("span", null, f(`& ${y.children} ${y.children === 1 ? e(
|
|
333
|
+
s("span", null, f(`& ${y.children} ${y.children === 1 ? e(l)("general.child") : e(l)("general.children")}`), 1)
|
|
334
334
|
])) : _("", !0)
|
|
335
335
|
]),
|
|
336
336
|
s("div", dn, [
|
|
337
|
-
|
|
337
|
+
u[1] || (u[1] = s("span", null, null, -1)),
|
|
338
338
|
Xe(" " + f(`(${e(oe)(y.price, e(o))})`), 1)
|
|
339
339
|
])
|
|
340
340
|
])
|
|
@@ -349,8 +349,8 @@ const vn = /* @__PURE__ */ Z({
|
|
|
349
349
|
room: {},
|
|
350
350
|
layout: {}
|
|
351
351
|
},
|
|
352
|
-
setup(
|
|
353
|
-
const { t } = se(),
|
|
352
|
+
setup(n) {
|
|
353
|
+
const { t } = se(), l = n, o = ie([]);
|
|
354
354
|
function a(T) {
|
|
355
355
|
o.value[T].config.push({
|
|
356
356
|
id: NaN,
|
|
@@ -358,38 +358,38 @@ const vn = /* @__PURE__ */ Z({
|
|
|
358
358
|
addons: []
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
const i = K(() =>
|
|
361
|
+
const i = K(() => l.room.rates.map((T) => ({
|
|
362
362
|
label: T.name,
|
|
363
363
|
value: T.id
|
|
364
|
-
}))), { hideAvailableRoomAmount: r, autoSelectRateId: p } = X(fe()), { roomSelect:
|
|
364
|
+
}))), { hideAvailableRoomAmount: r, autoSelectRateId: p } = X(fe()), { roomSelect: c } = X(he()), { addToCart: u, removeFromCart: y } = wt(), m = (T, S) => l.room.rates.find((D) => D.id === T)?.occupantRates.find((D) => D.index === S), g = K(() => l.room.rates.every((T) => T.isBreakfastIncluded === !0)), w = (T, S) => m(T, S) ? m(T, S)?.rooms : null, P = (T) => l.room.rates.length > 0 ? l.room.rates.find((S) => S.id === T)?.occupantRates.map((S) => ({
|
|
365
365
|
value: S.index,
|
|
366
366
|
price: S.totalPrice,
|
|
367
367
|
adults: S.adultsCount,
|
|
368
368
|
children: S.childrenCount,
|
|
369
369
|
hasBreakfast: S.hasBreakfast
|
|
370
|
-
})) || [] : [], $ = K(() =>
|
|
370
|
+
})) || [] : [], $ = K(() => l.room.rates.length > 1);
|
|
371
371
|
function M(T, S) {
|
|
372
|
-
o.value[T].config[0].id =
|
|
372
|
+
o.value[T].config[0].id = l.room.rates.find((D) => D.id === S.value)?.occupantRateIndex || NaN;
|
|
373
373
|
}
|
|
374
374
|
function R() {
|
|
375
375
|
$.value ? p.value ? o.value.push({
|
|
376
|
-
id:
|
|
376
|
+
id: l.room.bestRateMatch || void 0,
|
|
377
377
|
config: [{
|
|
378
|
-
id:
|
|
378
|
+
id: l.room.bestRateMatch && !isNaN(l.room.bestRateMatch) ? l.room.rates.find((T) => T.id === l.room.bestRateMatch)?.occupantRateIndex : NaN,
|
|
379
379
|
units: 0,
|
|
380
380
|
addons: []
|
|
381
381
|
}]
|
|
382
382
|
}) : o.value.push({
|
|
383
383
|
id: void 0,
|
|
384
384
|
config: [{
|
|
385
|
-
id:
|
|
385
|
+
id: l.room.rates[0].occupantRateIndex || NaN,
|
|
386
386
|
units: 0,
|
|
387
387
|
addons: []
|
|
388
388
|
}]
|
|
389
389
|
}) : o.value.push({
|
|
390
|
-
id:
|
|
390
|
+
id: l.room.rates[0].id,
|
|
391
391
|
config: [{
|
|
392
|
-
id:
|
|
392
|
+
id: l.room.rates[0].occupantRateIndex || NaN,
|
|
393
393
|
units: 0,
|
|
394
394
|
addons: []
|
|
395
395
|
}]
|
|
@@ -403,19 +403,19 @@ const vn = /* @__PURE__ */ Z({
|
|
|
403
403
|
S.length > 0 && T.forEach((D, z) => {
|
|
404
404
|
D.config.forEach((L, Y) => {
|
|
405
405
|
const q = L.units, ne = S[z].config[Y].units;
|
|
406
|
-
q !== ne && (q > ne ? (o.value[z].config[Y].addons.push({}),
|
|
407
|
-
id:
|
|
408
|
-
name:
|
|
409
|
-
value:
|
|
406
|
+
q !== ne && (q > ne ? (o.value[z].config[Y].addons.push({}), u({
|
|
407
|
+
id: l.room.id,
|
|
408
|
+
name: l.room.title,
|
|
409
|
+
value: l.room.rates[z].rackRate
|
|
410
410
|
})) : (o.value[z].config[Y].addons.pop(), y({
|
|
411
|
-
id:
|
|
412
|
-
name:
|
|
413
|
-
value:
|
|
411
|
+
id: l.room.id,
|
|
412
|
+
name: l.room.title,
|
|
413
|
+
value: l.room.rates[z].rackRate
|
|
414
414
|
})));
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
417
|
}, { deep: !0 }), Me(o, () => {
|
|
418
|
-
|
|
418
|
+
c.value[l.room.id] = o.value;
|
|
419
419
|
}, { deep: !0 }), (T, S) => (d(), H(Ee, {
|
|
420
420
|
type: "hotel",
|
|
421
421
|
"listing-id": T.room.id,
|
|
@@ -499,15 +499,15 @@ const vn = /* @__PURE__ */ Z({
|
|
|
499
499
|
hideAddons: { type: Boolean },
|
|
500
500
|
callback: { type: Function }
|
|
501
501
|
},
|
|
502
|
-
setup(
|
|
503
|
-
const { t } = se(), { templateID:
|
|
502
|
+
setup(n) {
|
|
503
|
+
const { t } = se(), { templateID: l, roomGroupID: o, selectionHasNoAddons: a } = X(he()), { currency: i } = X(fe()), { clearRoomSelection: r } = he(), p = n, c = ie(!0), u = K(() => {
|
|
504
504
|
function m(g, w) {
|
|
505
|
-
return
|
|
505
|
+
return c.value === !0 ? g.extraPrice > w.extraPrice ? -1 : 1 : g.extraPrice > w.extraPrice ? 1 : -1;
|
|
506
506
|
}
|
|
507
507
|
return p.roomGroups?.slice().sort(m);
|
|
508
508
|
});
|
|
509
509
|
function y(m) {
|
|
510
|
-
if (
|
|
510
|
+
if (l.value = p.templateId, o.value = m, r(), p.hideAddons === !1 && a.value == !1) {
|
|
511
511
|
p.callback(1);
|
|
512
512
|
return;
|
|
513
513
|
}
|
|
@@ -520,7 +520,7 @@ const vn = /* @__PURE__ */ Z({
|
|
|
520
520
|
default: C(() => [
|
|
521
521
|
s("div", gn, [
|
|
522
522
|
s("div", kn, [
|
|
523
|
-
(d(!0), h(E, null, F(
|
|
523
|
+
(d(!0), h(E, null, F(u.value, ({
|
|
524
524
|
id: w,
|
|
525
525
|
title: P,
|
|
526
526
|
description: $,
|
|
@@ -567,30 +567,30 @@ const vn = /* @__PURE__ */ Z({
|
|
|
567
567
|
hideAddons: { type: Boolean },
|
|
568
568
|
callback: { type: Function }
|
|
569
569
|
},
|
|
570
|
-
setup(
|
|
571
|
-
const { t } = se(),
|
|
572
|
-
(
|
|
570
|
+
setup(n) {
|
|
571
|
+
const { t } = se(), l = n, o = K(() => l.roomGroups.reduce(
|
|
572
|
+
(c, u) => c < u.extraPrice ? c : u.extraPrice,
|
|
573
573
|
1 / 0
|
|
574
574
|
)), a = K(() => {
|
|
575
|
-
if (
|
|
575
|
+
if (l.image)
|
|
576
576
|
return [{
|
|
577
|
-
large:
|
|
578
|
-
medium:
|
|
579
|
-
thumb:
|
|
580
|
-
url:
|
|
577
|
+
large: l.image.url,
|
|
578
|
+
medium: l.image.url,
|
|
579
|
+
thumb: l.image.url,
|
|
580
|
+
url: l.image.url
|
|
581
581
|
}];
|
|
582
582
|
}), i = ie(!1);
|
|
583
583
|
function r() {
|
|
584
584
|
i.value = !0;
|
|
585
585
|
}
|
|
586
|
-
function p(
|
|
587
|
-
|
|
586
|
+
function p(c) {
|
|
587
|
+
l.callback(c), i.value = !1;
|
|
588
588
|
}
|
|
589
|
-
return (
|
|
589
|
+
return (c, u) => (d(), H(Ee, {
|
|
590
590
|
type: "template",
|
|
591
|
-
"listing-id":
|
|
592
|
-
name:
|
|
593
|
-
description:
|
|
591
|
+
"listing-id": c.id,
|
|
592
|
+
name: c.name,
|
|
593
|
+
description: c.description,
|
|
594
594
|
gallery: a.value,
|
|
595
595
|
layout: e(Ct).Template,
|
|
596
596
|
"includes-breakfast": !1,
|
|
@@ -609,11 +609,11 @@ const vn = /* @__PURE__ */ Z({
|
|
|
609
609
|
default: C(() => [
|
|
610
610
|
v(_n, {
|
|
611
611
|
modelValue: i.value,
|
|
612
|
-
"onUpdate:modelValue":
|
|
613
|
-
title:
|
|
614
|
-
"template-id":
|
|
615
|
-
"room-groups":
|
|
616
|
-
"hide-addons":
|
|
612
|
+
"onUpdate:modelValue": u[0] || (u[0] = (y) => i.value = y),
|
|
613
|
+
title: c.name,
|
|
614
|
+
"template-id": c.id,
|
|
615
|
+
"room-groups": c.roomGroups,
|
|
616
|
+
"hide-addons": c.hideAddons,
|
|
617
617
|
callback: p
|
|
618
618
|
}, null, 8, ["modelValue", "title", "template-id", "room-groups", "hide-addons"])
|
|
619
619
|
]),
|
|
@@ -632,32 +632,32 @@ const vn = /* @__PURE__ */ Z({
|
|
|
632
632
|
image: {},
|
|
633
633
|
roomGroups: {}
|
|
634
634
|
},
|
|
635
|
-
setup(
|
|
636
|
-
const { t } = se(), { updateDates:
|
|
635
|
+
setup(n) {
|
|
636
|
+
const { t } = se(), { updateDates: l } = $e(), { display: o } = $t(), a = n, i = ie([]), r = K(() => Ce(a.fromDate, a.toDate) === 1), p = K(() => [{
|
|
637
637
|
large: a.image.url,
|
|
638
638
|
medium: a.image.url,
|
|
639
639
|
thumb: a.image.url,
|
|
640
640
|
url: a.image.url
|
|
641
641
|
}]);
|
|
642
|
-
function
|
|
643
|
-
i.value.length > 0 ?
|
|
642
|
+
function c() {
|
|
643
|
+
i.value.length > 0 ? l(i.value[0], i.value[1]) : o({
|
|
644
644
|
message: t("alert.error.selectDates"),
|
|
645
645
|
type: "error"
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
648
|
return at(() => {
|
|
649
649
|
r.value && (i.value = [new Date(a.fromDate), new Date(a.toDate)]);
|
|
650
|
-
}), (
|
|
650
|
+
}), (u, y) => (d(), H(Ee, {
|
|
651
651
|
type: "template",
|
|
652
|
-
"listing-id":
|
|
653
|
-
name:
|
|
654
|
-
description:
|
|
652
|
+
"listing-id": u.id,
|
|
653
|
+
name: u.name,
|
|
654
|
+
description: u.description,
|
|
655
655
|
gallery: p.value,
|
|
656
656
|
layout: e(Ct).Template,
|
|
657
657
|
"includes-breakfast": !1,
|
|
658
658
|
"hide-info-button": !1,
|
|
659
|
-
"to-date":
|
|
660
|
-
"from-date":
|
|
659
|
+
"to-date": u.toDate,
|
|
660
|
+
"from-date": u.fromDate
|
|
661
661
|
}, {
|
|
662
662
|
action: C(() => [
|
|
663
663
|
s("div", wn, [
|
|
@@ -669,16 +669,16 @@ const vn = /* @__PURE__ */ Z({
|
|
|
669
669
|
"icon-type": "fas",
|
|
670
670
|
"icon-placement": "label",
|
|
671
671
|
"min-range": 1,
|
|
672
|
-
"start-date": new Date(
|
|
673
|
-
"min-date": new Date(
|
|
674
|
-
"max-date": new Date(
|
|
672
|
+
"start-date": new Date(u.fromDate),
|
|
673
|
+
"min-date": new Date(u.fromDate),
|
|
674
|
+
"max-date": new Date(u.toDate),
|
|
675
675
|
readonly: r.value,
|
|
676
676
|
range: ""
|
|
677
677
|
}, null, 8, ["modelValue", "label", "placeholder", "start-date", "min-date", "max-date", "readonly"]),
|
|
678
678
|
s("div", Cn, [
|
|
679
679
|
v(pe, {
|
|
680
680
|
label: e(t)("availability.buttonLabel"),
|
|
681
|
-
onClick: Vt(
|
|
681
|
+
onClick: Vt(c, ["prevent"])
|
|
682
682
|
}, null, 8, ["label"])
|
|
683
683
|
])
|
|
684
684
|
])
|
|
@@ -703,17 +703,17 @@ const vn = /* @__PURE__ */ Z({
|
|
|
703
703
|
maxTime: {}
|
|
704
704
|
},
|
|
705
705
|
emits: ["update:modelValue"],
|
|
706
|
-
setup(
|
|
707
|
-
const
|
|
706
|
+
setup(n, { emit: t }) {
|
|
707
|
+
const l = t, o = n;
|
|
708
708
|
function a(r) {
|
|
709
|
-
|
|
709
|
+
l("update:modelValue", r);
|
|
710
710
|
}
|
|
711
711
|
const i = ie(o.modelValue);
|
|
712
712
|
return Me(i, (r) => {
|
|
713
713
|
a(r);
|
|
714
714
|
}), (r, p) => (d(), H(Pt, {
|
|
715
715
|
modelValue: i.value,
|
|
716
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
716
|
+
"onUpdate:modelValue": p[0] || (p[0] = (c) => i.value = c),
|
|
717
717
|
type: "time",
|
|
718
718
|
label: r.label,
|
|
719
719
|
id: r.id,
|
|
@@ -739,8 +739,8 @@ const vn = /* @__PURE__ */ Z({
|
|
|
739
739
|
placeholder: {}
|
|
740
740
|
},
|
|
741
741
|
emits: ["update:modelValue"],
|
|
742
|
-
setup(
|
|
743
|
-
const { t:
|
|
742
|
+
setup(n, { emit: t }) {
|
|
743
|
+
const { t: l } = se(), o = t, a = n;
|
|
744
744
|
function i(p) {
|
|
745
745
|
o("update:modelValue", p);
|
|
746
746
|
}
|
|
@@ -748,28 +748,28 @@ const vn = /* @__PURE__ */ Z({
|
|
|
748
748
|
get: () => a.modelValue,
|
|
749
749
|
set: (p) => i(p)
|
|
750
750
|
});
|
|
751
|
-
return (p,
|
|
751
|
+
return (p, c) => (d(), H(Le, {
|
|
752
752
|
modelValue: r.value,
|
|
753
|
-
"onUpdate:modelValue":
|
|
753
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
|
754
754
|
label: p.label,
|
|
755
|
-
placeholder: e(
|
|
755
|
+
placeholder: e(l)("booking.reservation.countryPlaceholder"),
|
|
756
756
|
labelKey: "name",
|
|
757
757
|
valueKey: "id",
|
|
758
758
|
options: p.options,
|
|
759
759
|
required: p.required
|
|
760
760
|
}, {
|
|
761
|
-
option: C(({ data:
|
|
761
|
+
option: C(({ data: u }) => [
|
|
762
762
|
s("i", {
|
|
763
|
-
class: Be(["konnectio-flag-icon",
|
|
763
|
+
class: Be(["konnectio-flag-icon", u.iso])
|
|
764
764
|
}, null, 2),
|
|
765
|
-
s("span", null, f(
|
|
765
|
+
s("span", null, f(u.name), 1)
|
|
766
766
|
]),
|
|
767
|
-
"selected-option": C(({ data:
|
|
767
|
+
"selected-option": C(({ data: u }) => [
|
|
768
768
|
s("div", Pn, [
|
|
769
769
|
s("i", {
|
|
770
|
-
class: Be(["konnectio-flag-icon",
|
|
770
|
+
class: Be(["konnectio-flag-icon", u.iso])
|
|
771
771
|
}, null, 2),
|
|
772
|
-
s("span", null, f(
|
|
772
|
+
s("span", null, f(u.name), 1)
|
|
773
773
|
])
|
|
774
774
|
]),
|
|
775
775
|
_: 1
|
|
@@ -796,65 +796,65 @@ const vn = /* @__PURE__ */ Z({
|
|
|
796
796
|
excludeTitle: { type: Boolean, default: !1 }
|
|
797
797
|
},
|
|
798
798
|
emits: ["update:modelValue", "update:title"],
|
|
799
|
-
setup(
|
|
800
|
-
const
|
|
799
|
+
setup(n, { emit: t }) {
|
|
800
|
+
const l = n, o = t, a = l.id || mt(), i = ie(""), r = ie(2);
|
|
801
801
|
function p() {
|
|
802
802
|
o("update:modelValue", i.value);
|
|
803
803
|
}
|
|
804
|
-
Me(r, (
|
|
805
|
-
o("update:title",
|
|
804
|
+
Me(r, (u) => {
|
|
805
|
+
o("update:title", u);
|
|
806
806
|
});
|
|
807
|
-
const { t:
|
|
807
|
+
const { t: c } = se();
|
|
808
808
|
return at(() => {
|
|
809
|
-
|
|
810
|
-
}), (
|
|
811
|
-
label:
|
|
809
|
+
l.modelValue && (i.value = l.modelValue), l.title && (r.value = l.title);
|
|
810
|
+
}), (u, y) => (d(), H($o, {
|
|
811
|
+
label: u.label,
|
|
812
812
|
id: e(a),
|
|
813
|
-
required:
|
|
813
|
+
required: u.required,
|
|
814
814
|
type: "konnectio-name-field",
|
|
815
|
-
readonly:
|
|
816
|
-
limit:
|
|
815
|
+
readonly: u.readonly,
|
|
816
|
+
limit: u.limit
|
|
817
817
|
}, {
|
|
818
818
|
default: C(() => [
|
|
819
819
|
s("div", {
|
|
820
820
|
class: Be([
|
|
821
821
|
"konnectio-name-input",
|
|
822
|
-
{ "no-title":
|
|
822
|
+
{ "no-title": u.excludeTitle }
|
|
823
823
|
])
|
|
824
824
|
}, [
|
|
825
|
-
|
|
825
|
+
u.excludeTitle ? _("", !0) : (d(), H(Le, {
|
|
826
826
|
key: 0,
|
|
827
827
|
modelValue: r.value,
|
|
828
828
|
"onUpdate:modelValue": y[0] || (y[0] = (m) => r.value = m),
|
|
829
829
|
id: e(mt)(),
|
|
830
|
-
icon:
|
|
831
|
-
"icon-color":
|
|
832
|
-
"icon-type":
|
|
830
|
+
icon: u.icon,
|
|
831
|
+
"icon-color": u.iconColor,
|
|
832
|
+
"icon-type": u.iconType,
|
|
833
833
|
options: [
|
|
834
834
|
{
|
|
835
|
-
label: e(
|
|
835
|
+
label: e(c)("booking.reservation.noNameTitle"),
|
|
836
836
|
value: 1
|
|
837
837
|
},
|
|
838
838
|
{
|
|
839
|
-
label: e(
|
|
839
|
+
label: e(c)("booking.reservation.nameTitleMr"),
|
|
840
840
|
value: 2
|
|
841
841
|
},
|
|
842
842
|
{
|
|
843
|
-
label: e(
|
|
843
|
+
label: e(c)("booking.reservation.nameTitleMs"),
|
|
844
844
|
value: 3
|
|
845
845
|
},
|
|
846
846
|
{
|
|
847
|
-
label: e(
|
|
847
|
+
label: e(c)("booking.reservation.nameTitleMrs"),
|
|
848
848
|
value: 4
|
|
849
849
|
},
|
|
850
850
|
{
|
|
851
|
-
label: e(
|
|
851
|
+
label: e(c)("booking.reservation.nameTitleDr"),
|
|
852
852
|
value: 5
|
|
853
853
|
}
|
|
854
854
|
],
|
|
855
|
-
readonly:
|
|
855
|
+
readonly: u.readonly,
|
|
856
856
|
"hide-button": "",
|
|
857
|
-
"input-style":
|
|
857
|
+
"input-style": u.inputStyle,
|
|
858
858
|
searchable: !1
|
|
859
859
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "options", "readonly", "input-style"])),
|
|
860
860
|
v(ce, {
|
|
@@ -864,15 +864,15 @@ const vn = /* @__PURE__ */ Z({
|
|
|
864
864
|
name: "name",
|
|
865
865
|
autocomplete: "name",
|
|
866
866
|
id: e(a),
|
|
867
|
-
icon:
|
|
868
|
-
"icon-color":
|
|
869
|
-
"icon-type":
|
|
870
|
-
placeholder:
|
|
871
|
-
required:
|
|
872
|
-
readonly:
|
|
873
|
-
limit:
|
|
867
|
+
icon: u.excludeTitle ? u.icon : void 0,
|
|
868
|
+
"icon-color": u.iconColor,
|
|
869
|
+
"icon-type": u.iconType,
|
|
870
|
+
placeholder: u.placeholder,
|
|
871
|
+
required: u.required,
|
|
872
|
+
readonly: u.readonly,
|
|
873
|
+
limit: u.limit,
|
|
874
874
|
onInput: y[2] || (y[2] = (m) => p()),
|
|
875
|
-
"input-style":
|
|
875
|
+
"input-style": u.inputStyle
|
|
876
876
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "placeholder", "required", "readonly", "limit", "input-style"])
|
|
877
877
|
], 2)
|
|
878
878
|
]),
|
|
@@ -881,8 +881,8 @@ const vn = /* @__PURE__ */ Z({
|
|
|
881
881
|
}
|
|
882
882
|
}), Hn = /* @__PURE__ */ me(Dn, [["__scopeId", "data-v-e288c8ae"]]), Nn = { class: "hotel-skeleton" }, Mn = { class: "hotel-skeleton-content" }, Bn = { class: "hotel-skeleton-sidebar" }, In = /* @__PURE__ */ Z({
|
|
883
883
|
__name: "HotelSkeleton",
|
|
884
|
-
setup(
|
|
885
|
-
return (t,
|
|
884
|
+
setup(n) {
|
|
885
|
+
return (t, l) => (d(), h("div", Nn, [
|
|
886
886
|
s("div", Mn, [
|
|
887
887
|
v(Oo, { hotel: "" }),
|
|
888
888
|
v(Mo)
|
|
@@ -947,14 +947,14 @@ const _l = /* @__PURE__ */ Z({
|
|
|
947
947
|
sortBy: { default: "default" },
|
|
948
948
|
styling: {}
|
|
949
949
|
},
|
|
950
|
-
setup(
|
|
951
|
-
const t = go(() => import("./_-
|
|
950
|
+
setup(n) {
|
|
951
|
+
const t = go(() => import("./_-Cp56btIY.js")), l = n, { t: o } = se(), {
|
|
952
952
|
currentLocation: a,
|
|
953
953
|
templateID: i,
|
|
954
954
|
templateAddons: r,
|
|
955
955
|
countries: p,
|
|
956
|
-
areListingsLoading:
|
|
957
|
-
isPaymentLoading:
|
|
956
|
+
areListingsLoading: c,
|
|
957
|
+
isPaymentLoading: u,
|
|
958
958
|
isReservationFormFilled: y,
|
|
959
959
|
travelingFor: m,
|
|
960
960
|
arrivalTime: g,
|
|
@@ -1067,8 +1067,8 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1067
1067
|
function V(J, A) {
|
|
1068
1068
|
return oo.value === !0 ? J.pricesFrom > A.pricesFrom ? -1 : 1 : J.pricesFrom > A.pricesFrom ? 1 : -1;
|
|
1069
1069
|
}
|
|
1070
|
-
return
|
|
1071
|
-
}), xe = K(() =>
|
|
1070
|
+
return l.sortBy === "price" ? k.sort(V) : k;
|
|
1071
|
+
}), xe = K(() => l.hideAddons === "yes" || Te.value && l.hideAddons === "packages" || !Te.value && l.hideAddons === "rooms");
|
|
1072
1072
|
function pt(k) {
|
|
1073
1073
|
xe.value || ke.value ? k(2) : k(), Xt();
|
|
1074
1074
|
}
|
|
@@ -1110,7 +1110,7 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1110
1110
|
type: "error"
|
|
1111
1111
|
});
|
|
1112
1112
|
let de = null;
|
|
1113
|
-
I && (de = I),
|
|
1113
|
+
I && (de = I), l.disableDefaultLocation === "yes" && ee === !1 ? (we.value = void 0, a.value = void 0) : ct(de);
|
|
1114
1114
|
}
|
|
1115
1115
|
return (k, V) => (d(), H(Ao, { styling: k.styling }, {
|
|
1116
1116
|
default: C(() => [
|
|
@@ -1139,7 +1139,7 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1139
1139
|
}, null, 8, ["selected-location", "disable-default-location"])
|
|
1140
1140
|
]),
|
|
1141
1141
|
_("", !0),
|
|
1142
|
-
!e(
|
|
1142
|
+
!e(c) && e(be) ? (d(), h("div", Un, [
|
|
1143
1143
|
e(G).roomGroups.length > 0 || e(G).templates.length > 0 || e(G).specialTemplates.length > 0 ? (d(), h("div", On, [
|
|
1144
1144
|
e(G).templates.length > 0 && k.onlyShow !== "rooms" ? (d(), h("div", Fn, [
|
|
1145
1145
|
k.onlyShow !== "packages" ? (d(), h("h2", qn, [
|
|
@@ -1266,7 +1266,7 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1266
1266
|
]))), 128))
|
|
1267
1267
|
])
|
|
1268
1268
|
]))
|
|
1269
|
-
])) : isNaN(e(a)) && !e(
|
|
1269
|
+
])) : isNaN(e(a)) && !e(c) ? (d(), h("div", nl, [
|
|
1270
1270
|
s("span", null, f(e(o)("alert.info.selectHotelToStart")), 1)
|
|
1271
1271
|
])) : (d(), h("div", ll, [
|
|
1272
1272
|
v(ze),
|
|
@@ -1279,7 +1279,7 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1279
1279
|
e(Oe) ? (d(), H(pe, {
|
|
1280
1280
|
key: 0,
|
|
1281
1281
|
label: isNaN(e(a)) ? e(o)("availability.buttonLabel") : e(o)("general.searchAgain"),
|
|
1282
|
-
"is-loading": e(
|
|
1282
|
+
"is-loading": e(c),
|
|
1283
1283
|
"full-width": "",
|
|
1284
1284
|
onClickEvent: V[1] || (V[1] = (A) => so())
|
|
1285
1285
|
}, null, 8, ["label", "is-loading"])) : (d(), H(pe, {
|
|
@@ -1595,7 +1595,7 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1595
1595
|
v(pe, {
|
|
1596
1596
|
label: e(Ft) ? e(o)("booking.reservation.nextButton") : e(o)("general.confirmReservation"),
|
|
1597
1597
|
disabled: !e(y),
|
|
1598
|
-
"is-loading": e(
|
|
1598
|
+
"is-loading": e(u),
|
|
1599
1599
|
"full-width": "",
|
|
1600
1600
|
onClickEvent: (b) => io(J, B)
|
|
1601
1601
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
@@ -1648,95 +1648,95 @@ const _l = /* @__PURE__ */ Z({
|
|
|
1648
1648
|
"script",
|
|
1649
1649
|
"noscript"
|
|
1650
1650
|
]), wl = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]), At = /* @__PURE__ */ new Set(["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"]), Cl = typeof window < "u";
|
|
1651
|
-
function Ie(
|
|
1651
|
+
function Ie(n) {
|
|
1652
1652
|
let t = 9;
|
|
1653
|
-
for (let
|
|
1654
|
-
t = Math.imul(t ^
|
|
1653
|
+
for (let l = 0; l < n.length; )
|
|
1654
|
+
t = Math.imul(t ^ n.charCodeAt(l++), 9 ** 9);
|
|
1655
1655
|
return ((t ^ t >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
1656
1656
|
}
|
|
1657
|
-
function tt(
|
|
1658
|
-
if (
|
|
1659
|
-
return
|
|
1660
|
-
if (
|
|
1661
|
-
return Ie(
|
|
1662
|
-
let t = `${
|
|
1663
|
-
for (const
|
|
1664
|
-
t += `${
|
|
1657
|
+
function tt(n) {
|
|
1658
|
+
if (n._h)
|
|
1659
|
+
return n._h;
|
|
1660
|
+
if (n._d)
|
|
1661
|
+
return Ie(n._d);
|
|
1662
|
+
let t = `${n.tag}:${n.textContent || n.innerHTML || ""}:`;
|
|
1663
|
+
for (const l in n.props)
|
|
1664
|
+
t += `${l}:${String(n.props[l])},`;
|
|
1665
1665
|
return Ie(t);
|
|
1666
1666
|
}
|
|
1667
|
-
function $l(
|
|
1668
|
-
return
|
|
1667
|
+
function $l(n, t) {
|
|
1668
|
+
return n instanceof Promise ? n.then(t) : t(n);
|
|
1669
1669
|
}
|
|
1670
|
-
function ot(
|
|
1670
|
+
function ot(n, t, l, o) {
|
|
1671
1671
|
const a = o || Dt(
|
|
1672
1672
|
// explicitly check for an object
|
|
1673
1673
|
// @ts-expect-error untyped
|
|
1674
|
-
typeof t == "object" && typeof t != "function" && !(t instanceof Promise) ? { ...t } : { [
|
|
1675
|
-
|
|
1674
|
+
typeof t == "object" && typeof t != "function" && !(t instanceof Promise) ? { ...t } : { [n === "script" || n === "noscript" || n === "style" ? "innerHTML" : "textContent"]: t },
|
|
1675
|
+
n === "templateParams" || n === "titleTemplate"
|
|
1676
1676
|
);
|
|
1677
1677
|
if (a instanceof Promise)
|
|
1678
|
-
return a.then((r) => ot(
|
|
1678
|
+
return a.then((r) => ot(n, t, l, r));
|
|
1679
1679
|
const i = {
|
|
1680
|
-
tag:
|
|
1680
|
+
tag: n,
|
|
1681
1681
|
props: a
|
|
1682
1682
|
};
|
|
1683
1683
|
for (const r of At) {
|
|
1684
|
-
const p = i.props[r] !== void 0 ? i.props[r] :
|
|
1684
|
+
const p = i.props[r] !== void 0 ? i.props[r] : l[r];
|
|
1685
1685
|
p !== void 0 && ((!(r === "innerHTML" || r === "textContent" || r === "children") || Tl.has(i.tag)) && (i[r === "children" ? "innerHTML" : r] = p), delete i.props[r]);
|
|
1686
1686
|
}
|
|
1687
1687
|
return i.props.body && (i.tagPosition = "bodyClose", delete i.props.body), i.tag === "script" && typeof i.innerHTML == "object" && (i.innerHTML = JSON.stringify(i.innerHTML), i.props.type = i.props.type || "application/json"), Array.isArray(i.props.content) ? i.props.content.map((r) => ({ ...i, props: { ...i.props, content: r } })) : i;
|
|
1688
1688
|
}
|
|
1689
|
-
function Pl(
|
|
1690
|
-
const
|
|
1691
|
-
return t && typeof t == "object" && !Array.isArray(t) && (t = Object.entries(t).filter(([, o]) => o).map(([o, a]) =>
|
|
1689
|
+
function Pl(n, t) {
|
|
1690
|
+
const l = n === "class" ? " " : ";";
|
|
1691
|
+
return t && typeof t == "object" && !Array.isArray(t) && (t = Object.entries(t).filter(([, o]) => o).map(([o, a]) => n === "style" ? `${o}:${a}` : o)), String(Array.isArray(t) ? t.join(l) : t)?.split(l).filter((o) => !!o.trim()).join(l);
|
|
1692
1692
|
}
|
|
1693
|
-
function St(
|
|
1694
|
-
for (let a = o; a <
|
|
1695
|
-
const i =
|
|
1693
|
+
function St(n, t, l, o) {
|
|
1694
|
+
for (let a = o; a < l.length; a += 1) {
|
|
1695
|
+
const i = l[a];
|
|
1696
1696
|
if (i === "class" || i === "style") {
|
|
1697
|
-
|
|
1697
|
+
n[i] = Pl(i, n[i]);
|
|
1698
1698
|
continue;
|
|
1699
1699
|
}
|
|
1700
|
-
if (
|
|
1701
|
-
return
|
|
1700
|
+
if (n[i] instanceof Promise)
|
|
1701
|
+
return n[i].then((r) => (n[i] = r, St(n, t, l, a)));
|
|
1702
1702
|
if (!t && !At.has(i)) {
|
|
1703
|
-
const r = String(
|
|
1704
|
-
r === "true" || r === "" ?
|
|
1703
|
+
const r = String(n[i]), p = i.startsWith("data-");
|
|
1704
|
+
r === "true" || r === "" ? n[i] = p ? "true" : !0 : n[i] || (p && r === "false" ? n[i] = "false" : delete n[i]);
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
function Dt(
|
|
1709
|
-
const
|
|
1710
|
-
return
|
|
1708
|
+
function Dt(n, t = !1) {
|
|
1709
|
+
const l = St(n, t, Object.keys(n), 0);
|
|
1710
|
+
return l instanceof Promise ? l.then(() => n) : n;
|
|
1711
1711
|
}
|
|
1712
1712
|
const Al = 10;
|
|
1713
|
-
function Ht(
|
|
1714
|
-
for (let o =
|
|
1713
|
+
function Ht(n, t, l) {
|
|
1714
|
+
for (let o = l; o < t.length; o += 1) {
|
|
1715
1715
|
const a = t[o];
|
|
1716
1716
|
if (a instanceof Promise)
|
|
1717
|
-
return a.then((i) => (t[o] = i, Ht(
|
|
1718
|
-
Array.isArray(a) ?
|
|
1717
|
+
return a.then((i) => (t[o] = i, Ht(n, t, o)));
|
|
1718
|
+
Array.isArray(a) ? n.push(...a) : n.push(a);
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
|
-
function Sl(
|
|
1722
|
-
const t = [],
|
|
1723
|
-
for (const a in
|
|
1724
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
1721
|
+
function Sl(n) {
|
|
1722
|
+
const t = [], l = n.resolvedInput;
|
|
1723
|
+
for (const a in l) {
|
|
1724
|
+
if (!Object.prototype.hasOwnProperty.call(l, a))
|
|
1725
1725
|
continue;
|
|
1726
|
-
const i =
|
|
1726
|
+
const i = l[a];
|
|
1727
1727
|
if (!(i === void 0 || !Vl.has(a))) {
|
|
1728
1728
|
if (Array.isArray(i)) {
|
|
1729
1729
|
for (const r of i)
|
|
1730
|
-
t.push(ot(a, r,
|
|
1730
|
+
t.push(ot(a, r, n));
|
|
1731
1731
|
continue;
|
|
1732
1732
|
}
|
|
1733
|
-
t.push(ot(a, i,
|
|
1733
|
+
t.push(ot(a, i, n));
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
1736
|
if (t.length === 0)
|
|
1737
1737
|
return [];
|
|
1738
1738
|
const o = [];
|
|
1739
|
-
return $l(Ht(o, t, 0), () => o.map((a, i) => (a._e =
|
|
1739
|
+
return $l(Ht(o, t, 0), () => o.map((a, i) => (a._e = n._i, n.mode && (a._m = n.mode), a._p = (n._i << Al) + i, a)));
|
|
1740
1740
|
}
|
|
1741
1741
|
const gt = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress", "onloadstart"]), kt = {
|
|
1742
1742
|
// tags
|
|
@@ -1748,84 +1748,85 @@ const gt = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress"
|
|
|
1748
1748
|
high: -10,
|
|
1749
1749
|
low: 20
|
|
1750
1750
|
};
|
|
1751
|
-
function Re(
|
|
1752
|
-
const t =
|
|
1751
|
+
function Re(n) {
|
|
1752
|
+
const t = n.tagPriority;
|
|
1753
1753
|
if (typeof t == "number")
|
|
1754
1754
|
return t;
|
|
1755
|
-
let
|
|
1756
|
-
return
|
|
1755
|
+
let l = 100;
|
|
1756
|
+
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 kt && (l = kt[n.tag]), t && t in bt ? l + bt[t] : l;
|
|
1757
1757
|
}
|
|
1758
1758
|
const Dl = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }], Hl = ["name", "property", "http-equiv"];
|
|
1759
|
-
function Nt(
|
|
1760
|
-
const { props: t, tag:
|
|
1761
|
-
if (wl.has(
|
|
1762
|
-
return
|
|
1763
|
-
if (
|
|
1759
|
+
function Nt(n) {
|
|
1760
|
+
const { props: t, tag: l } = n;
|
|
1761
|
+
if (wl.has(l))
|
|
1762
|
+
return l;
|
|
1763
|
+
if (l === "link" && t.rel === "canonical")
|
|
1764
1764
|
return "canonical";
|
|
1765
1765
|
if (t.charset)
|
|
1766
1766
|
return "charset";
|
|
1767
1767
|
if (t.id)
|
|
1768
|
-
return `${
|
|
1768
|
+
return `${l}:id:${t.id}`;
|
|
1769
1769
|
for (const o of Hl)
|
|
1770
1770
|
if (t[o] !== void 0)
|
|
1771
|
-
return `${
|
|
1771
|
+
return `${l}:${o}:${t[o]}`;
|
|
1772
1772
|
return !1;
|
|
1773
1773
|
}
|
|
1774
1774
|
const ue = "%separator";
|
|
1775
|
-
function Nl(
|
|
1776
|
-
let
|
|
1775
|
+
function Nl(n, t, l = !1) {
|
|
1776
|
+
let o;
|
|
1777
1777
|
if (t === "s" || t === "pageTitle")
|
|
1778
|
-
|
|
1778
|
+
o = n.pageTitle;
|
|
1779
1779
|
else if (t.includes(".")) {
|
|
1780
|
-
const
|
|
1781
|
-
|
|
1780
|
+
const a = t.indexOf(".");
|
|
1781
|
+
o = n[t.substring(0, a)]?.[t.substring(a + 1)];
|
|
1782
1782
|
} else
|
|
1783
|
-
|
|
1784
|
-
|
|
1783
|
+
o = n[t];
|
|
1784
|
+
if (o !== void 0)
|
|
1785
|
+
return l ? (o || "").replace(/"/g, '\\"') : o || "";
|
|
1785
1786
|
}
|
|
1786
1787
|
const Ml = new RegExp(`${ue}(?:\\s*${ue})*`, "g");
|
|
1787
|
-
function He(
|
|
1788
|
-
if (typeof
|
|
1789
|
-
return
|
|
1790
|
-
let
|
|
1788
|
+
function He(n, t, l, o = !1) {
|
|
1789
|
+
if (typeof n != "string" || !n.includes("%"))
|
|
1790
|
+
return n;
|
|
1791
|
+
let a = n;
|
|
1791
1792
|
try {
|
|
1792
|
-
|
|
1793
|
+
a = decodeURI(n);
|
|
1793
1794
|
} catch {
|
|
1794
1795
|
}
|
|
1795
|
-
const
|
|
1796
|
-
if (!
|
|
1797
|
-
return
|
|
1798
|
-
const
|
|
1799
|
-
return
|
|
1800
|
-
if (
|
|
1801
|
-
return
|
|
1802
|
-
const
|
|
1803
|
-
return
|
|
1804
|
-
}).trim(),
|
|
1796
|
+
const i = a.match(/%\w+(?:\.\w+)?/g);
|
|
1797
|
+
if (!i)
|
|
1798
|
+
return n;
|
|
1799
|
+
const r = n.includes(ue);
|
|
1800
|
+
return n = n.replace(/%\w+(?:\.\w+)?/g, (p) => {
|
|
1801
|
+
if (p === ue || !i.includes(p))
|
|
1802
|
+
return p;
|
|
1803
|
+
const c = Nl(t, p.slice(1), o);
|
|
1804
|
+
return c !== void 0 ? c : p;
|
|
1805
|
+
}).trim(), r && (n.endsWith(ue) && (n = n.slice(0, -ue.length)), n.startsWith(ue) && (n = n.slice(ue.length)), n = n.replace(Ml, l).trim()), n;
|
|
1805
1806
|
}
|
|
1806
|
-
function _t(
|
|
1807
|
-
return
|
|
1807
|
+
function _t(n, t) {
|
|
1808
|
+
return n == null ? t || null : typeof n == "function" ? n(t) : n;
|
|
1808
1809
|
}
|
|
1809
|
-
async function Bl(
|
|
1810
|
-
const
|
|
1811
|
-
if (!
|
|
1810
|
+
async function Bl(n, t = {}) {
|
|
1811
|
+
const l = t.document || n.resolvedOptions.document;
|
|
1812
|
+
if (!l || !n.dirty)
|
|
1812
1813
|
return;
|
|
1813
1814
|
const o = { shouldRender: !0, tags: [] };
|
|
1814
|
-
if (await
|
|
1815
|
-
return
|
|
1816
|
-
const i = (await
|
|
1815
|
+
if (await n.hooks.callHook("dom:beforeRender", o), !!o.shouldRender)
|
|
1816
|
+
return n._domUpdatePromise || (n._domUpdatePromise = new Promise(async (a) => {
|
|
1817
|
+
const i = (await n.resolveTags()).map((m) => ({
|
|
1817
1818
|
tag: m,
|
|
1818
1819
|
id: Ne.has(m.tag) ? tt(m) : m.tag,
|
|
1819
1820
|
shouldRender: !0
|
|
1820
1821
|
}));
|
|
1821
|
-
let r =
|
|
1822
|
+
let r = n._dom;
|
|
1822
1823
|
if (!r) {
|
|
1823
1824
|
r = {
|
|
1824
|
-
elMap: { htmlAttrs:
|
|
1825
|
+
elMap: { htmlAttrs: l.documentElement, bodyAttrs: l.body }
|
|
1825
1826
|
};
|
|
1826
1827
|
const m = /* @__PURE__ */ new Set();
|
|
1827
1828
|
for (const g of ["body", "head"]) {
|
|
1828
|
-
const w =
|
|
1829
|
+
const w = l[g]?.children;
|
|
1829
1830
|
for (const P of w) {
|
|
1830
1831
|
const $ = P.tagName.toLowerCase();
|
|
1831
1832
|
if (!Ne.has($))
|
|
@@ -1849,13 +1850,13 @@ async function Bl(l, t = {}) {
|
|
|
1849
1850
|
const P = `${m}:${g}`;
|
|
1850
1851
|
r.sideEffects[P] = w, delete r.pendingSideEffects[P];
|
|
1851
1852
|
}
|
|
1852
|
-
function
|
|
1853
|
+
function c({ id: m, $el: g, tag: w }) {
|
|
1853
1854
|
const P = w.tag.endsWith("Attrs");
|
|
1854
1855
|
if (r.elMap[m] = g, P || (w.textContent && w.textContent !== g.textContent && (g.textContent = w.textContent), w.innerHTML && w.innerHTML !== g.innerHTML && (g.innerHTML = w.innerHTML), p(m, "el", () => {
|
|
1855
1856
|
r.elMap[m]?.remove(), delete r.elMap[m];
|
|
1856
1857
|
})), w._eventHandlers)
|
|
1857
1858
|
for (const $ in w._eventHandlers)
|
|
1858
|
-
Object.prototype.hasOwnProperty.call(w._eventHandlers, $) && g.getAttribute(`data-${$}`) !== "" && ((w.tag === "bodyAttrs" ?
|
|
1859
|
+
Object.prototype.hasOwnProperty.call(w._eventHandlers, $) && g.getAttribute(`data-${$}`) !== "" && ((w.tag === "bodyAttrs" ? l.defaultView : g).addEventListener(
|
|
1859
1860
|
// onload -> load
|
|
1860
1861
|
$.substring(2),
|
|
1861
1862
|
w._eventHandlers[$].bind(g)
|
|
@@ -1882,7 +1883,7 @@ async function Bl(l, t = {}) {
|
|
|
1882
1883
|
g.getAttribute($) !== M && g.setAttribute($, M === !0 ? "" : String(M)), P && p(m, R, () => g.removeAttribute($));
|
|
1883
1884
|
}
|
|
1884
1885
|
}
|
|
1885
|
-
const
|
|
1886
|
+
const u = [], y = {
|
|
1886
1887
|
bodyClose: void 0,
|
|
1887
1888
|
bodyOpen: void 0,
|
|
1888
1889
|
head: void 0
|
|
@@ -1891,75 +1892,75 @@ async function Bl(l, t = {}) {
|
|
|
1891
1892
|
const { tag: g, shouldRender: w, id: P } = m;
|
|
1892
1893
|
if (w) {
|
|
1893
1894
|
if (g.tag === "title") {
|
|
1894
|
-
|
|
1895
|
+
l.title = g.textContent;
|
|
1895
1896
|
continue;
|
|
1896
1897
|
}
|
|
1897
|
-
m.$el = m.$el || r.elMap[P], m.$el ?
|
|
1898
|
+
m.$el = m.$el || r.elMap[P], m.$el ? c(m) : Ne.has(g.tag) && u.push(m);
|
|
1898
1899
|
}
|
|
1899
1900
|
}
|
|
1900
|
-
for (const m of
|
|
1901
|
+
for (const m of u) {
|
|
1901
1902
|
const g = m.tag.tagPosition || "head";
|
|
1902
|
-
m.$el =
|
|
1903
|
+
m.$el = l.createElement(m.tag.tag), c(m), y[g] = y[g] || l.createDocumentFragment(), y[g].appendChild(m.$el);
|
|
1903
1904
|
}
|
|
1904
1905
|
for (const m of i)
|
|
1905
|
-
await
|
|
1906
|
-
y.head &&
|
|
1906
|
+
await n.hooks.callHook("dom:renderTag", m, l, p);
|
|
1907
|
+
y.head && l.head.appendChild(y.head), y.bodyOpen && l.body.insertBefore(y.bodyOpen, l.body.firstChild), y.bodyClose && l.body.appendChild(y.bodyClose);
|
|
1907
1908
|
for (const m in r.pendingSideEffects)
|
|
1908
1909
|
r.pendingSideEffects[m]();
|
|
1909
|
-
|
|
1910
|
+
n._dom = r, await n.hooks.callHook("dom:rendered", { renders: i }), a();
|
|
1910
1911
|
}).finally(() => {
|
|
1911
|
-
|
|
1912
|
-
})),
|
|
1912
|
+
n._domUpdatePromise = void 0, n.dirty = !1;
|
|
1913
|
+
})), n._domUpdatePromise;
|
|
1913
1914
|
}
|
|
1914
|
-
function Il(
|
|
1915
|
-
const
|
|
1916
|
-
return
|
|
1917
|
-
delete
|
|
1915
|
+
function Il(n, t = {}) {
|
|
1916
|
+
const l = t.delayFn || ((o) => setTimeout(o, 10));
|
|
1917
|
+
return n._domDebouncedUpdatePromise = n._domDebouncedUpdatePromise || new Promise((o) => l(() => Bl(n, t).then(() => {
|
|
1918
|
+
delete n._domDebouncedUpdatePromise, o();
|
|
1918
1919
|
})));
|
|
1919
1920
|
}
|
|
1920
1921
|
// @__NO_SIDE_EFFECTS__
|
|
1921
|
-
function Rl(
|
|
1922
|
+
function Rl(n) {
|
|
1922
1923
|
return (t) => {
|
|
1923
|
-
const
|
|
1924
|
-
return
|
|
1924
|
+
const l = t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
|
|
1925
|
+
return l && t.push(JSON.parse(l)), {
|
|
1925
1926
|
mode: "client",
|
|
1926
1927
|
hooks: {
|
|
1927
1928
|
"entries:updated": (o) => {
|
|
1928
|
-
Il(o,
|
|
1929
|
+
Il(o, n);
|
|
1929
1930
|
}
|
|
1930
1931
|
}
|
|
1931
1932
|
};
|
|
1932
1933
|
};
|
|
1933
1934
|
}
|
|
1934
|
-
function nt(
|
|
1935
|
-
for (const o in
|
|
1936
|
-
const a =
|
|
1935
|
+
function nt(n, t = {}, l) {
|
|
1936
|
+
for (const o in n) {
|
|
1937
|
+
const a = n[o], i = l ? `${l}:${o}` : o;
|
|
1937
1938
|
typeof a == "object" && a !== null ? nt(a, t, i) : typeof a == "function" && (t[i] = a);
|
|
1938
1939
|
}
|
|
1939
1940
|
return t;
|
|
1940
1941
|
}
|
|
1941
|
-
const Ll = { run: (
|
|
1942
|
-
function Ul(
|
|
1943
|
-
const
|
|
1944
|
-
return
|
|
1942
|
+
const Ll = { run: (n) => n() }, El = () => Ll, Mt = typeof console.createTask < "u" ? console.createTask : El;
|
|
1943
|
+
function Ul(n, t) {
|
|
1944
|
+
const l = t.shift(), o = Mt(l);
|
|
1945
|
+
return n.reduce(
|
|
1945
1946
|
(a, i) => a.then(() => o.run(() => i(...t))),
|
|
1946
1947
|
Promise.resolve()
|
|
1947
1948
|
);
|
|
1948
1949
|
}
|
|
1949
|
-
function Ol(
|
|
1950
|
-
const
|
|
1951
|
-
return Promise.all(
|
|
1950
|
+
function Ol(n, t) {
|
|
1951
|
+
const l = t.shift(), o = Mt(l);
|
|
1952
|
+
return Promise.all(n.map((a) => o.run(() => a(...t))));
|
|
1952
1953
|
}
|
|
1953
|
-
function Qe(
|
|
1954
|
-
for (const
|
|
1955
|
-
|
|
1954
|
+
function Qe(n, t) {
|
|
1955
|
+
for (const l of [...n])
|
|
1956
|
+
l(t);
|
|
1956
1957
|
}
|
|
1957
1958
|
class Fl {
|
|
1958
1959
|
constructor() {
|
|
1959
1960
|
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);
|
|
1960
1961
|
}
|
|
1961
|
-
hook(t,
|
|
1962
|
-
if (!t || typeof
|
|
1962
|
+
hook(t, l, o = {}) {
|
|
1963
|
+
if (!t || typeof l != "function")
|
|
1963
1964
|
return () => {
|
|
1964
1965
|
};
|
|
1965
1966
|
const a = t;
|
|
@@ -1970,30 +1971,30 @@ class Fl {
|
|
|
1970
1971
|
let r = i.message;
|
|
1971
1972
|
r || (r = `${a} hook has been deprecated` + (i.to ? `, please use ${i.to}` : "")), this._deprecatedMessages || (this._deprecatedMessages = /* @__PURE__ */ new Set()), this._deprecatedMessages.has(r) || (console.warn(r), this._deprecatedMessages.add(r));
|
|
1972
1973
|
}
|
|
1973
|
-
if (!
|
|
1974
|
+
if (!l.name)
|
|
1974
1975
|
try {
|
|
1975
|
-
Object.defineProperty(
|
|
1976
|
+
Object.defineProperty(l, "name", {
|
|
1976
1977
|
get: () => "_" + t.replace(/\W+/g, "_") + "_hook_cb",
|
|
1977
1978
|
configurable: !0
|
|
1978
1979
|
});
|
|
1979
1980
|
} catch {
|
|
1980
1981
|
}
|
|
1981
|
-
return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(
|
|
1982
|
-
|
|
1982
|
+
return this._hooks[t] = this._hooks[t] || [], this._hooks[t].push(l), () => {
|
|
1983
|
+
l && (this.removeHook(t, l), l = void 0);
|
|
1983
1984
|
};
|
|
1984
1985
|
}
|
|
1985
|
-
hookOnce(t,
|
|
1986
|
-
let o, a = (...i) => (typeof o == "function" && o(), o = void 0, a = void 0,
|
|
1986
|
+
hookOnce(t, l) {
|
|
1987
|
+
let o, a = (...i) => (typeof o == "function" && o(), o = void 0, a = void 0, l(...i));
|
|
1987
1988
|
return o = this.hook(t, a), o;
|
|
1988
1989
|
}
|
|
1989
|
-
removeHook(t,
|
|
1990
|
+
removeHook(t, l) {
|
|
1990
1991
|
if (this._hooks[t]) {
|
|
1991
|
-
const o = this._hooks[t].indexOf(
|
|
1992
|
+
const o = this._hooks[t].indexOf(l);
|
|
1992
1993
|
o !== -1 && this._hooks[t].splice(o, 1), this._hooks[t].length === 0 && delete this._hooks[t];
|
|
1993
1994
|
}
|
|
1994
1995
|
}
|
|
1995
|
-
deprecateHook(t,
|
|
1996
|
-
this._deprecatedHooks[t] = typeof
|
|
1996
|
+
deprecateHook(t, l) {
|
|
1997
|
+
this._deprecatedHooks[t] = typeof l == "string" ? { to: l } : l;
|
|
1997
1998
|
const o = this._hooks[t] || [];
|
|
1998
1999
|
delete this._hooks[t];
|
|
1999
2000
|
for (const a of o)
|
|
@@ -2001,12 +2002,12 @@ class Fl {
|
|
|
2001
2002
|
}
|
|
2002
2003
|
deprecateHooks(t) {
|
|
2003
2004
|
Object.assign(this._deprecatedHooks, t);
|
|
2004
|
-
for (const
|
|
2005
|
-
this.deprecateHook(
|
|
2005
|
+
for (const l in t)
|
|
2006
|
+
this.deprecateHook(l, t[l]);
|
|
2006
2007
|
}
|
|
2007
2008
|
addHooks(t) {
|
|
2008
|
-
const
|
|
2009
|
-
(a) => this.hook(a,
|
|
2009
|
+
const l = nt(t), o = Object.keys(l).map(
|
|
2010
|
+
(a) => this.hook(a, l[a])
|
|
2010
2011
|
);
|
|
2011
2012
|
return () => {
|
|
2012
2013
|
for (const a of o.splice(0, o.length))
|
|
@@ -2014,25 +2015,25 @@ class Fl {
|
|
|
2014
2015
|
};
|
|
2015
2016
|
}
|
|
2016
2017
|
removeHooks(t) {
|
|
2017
|
-
const
|
|
2018
|
-
for (const o in
|
|
2019
|
-
this.removeHook(o,
|
|
2018
|
+
const l = nt(t);
|
|
2019
|
+
for (const o in l)
|
|
2020
|
+
this.removeHook(o, l[o]);
|
|
2020
2021
|
}
|
|
2021
2022
|
removeAllHooks() {
|
|
2022
2023
|
for (const t in this._hooks)
|
|
2023
2024
|
delete this._hooks[t];
|
|
2024
2025
|
}
|
|
2025
|
-
callHook(t, ...
|
|
2026
|
-
return
|
|
2026
|
+
callHook(t, ...l) {
|
|
2027
|
+
return l.unshift(t), this.callHookWith(Ul, t, ...l);
|
|
2027
2028
|
}
|
|
2028
|
-
callHookParallel(t, ...
|
|
2029
|
-
return
|
|
2029
|
+
callHookParallel(t, ...l) {
|
|
2030
|
+
return l.unshift(t), this.callHookWith(Ol, t, ...l);
|
|
2030
2031
|
}
|
|
2031
|
-
callHookWith(t,
|
|
2032
|
-
const a = this._before || this._after ? { name:
|
|
2032
|
+
callHookWith(t, l, ...o) {
|
|
2033
|
+
const a = this._before || this._after ? { name: l, args: o, context: {} } : void 0;
|
|
2033
2034
|
this._before && Qe(this._before, a);
|
|
2034
2035
|
const i = t(
|
|
2035
|
-
|
|
2036
|
+
l in this._hooks ? [...this._hooks[l]] : [],
|
|
2036
2037
|
o
|
|
2037
2038
|
);
|
|
2038
2039
|
return i instanceof Promise ? i.finally(() => {
|
|
@@ -2042,16 +2043,16 @@ class Fl {
|
|
|
2042
2043
|
beforeEach(t) {
|
|
2043
2044
|
return this._before = this._before || [], this._before.push(t), () => {
|
|
2044
2045
|
if (this._before !== void 0) {
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2046
|
+
const l = this._before.indexOf(t);
|
|
2047
|
+
l !== -1 && this._before.splice(l, 1);
|
|
2047
2048
|
}
|
|
2048
2049
|
};
|
|
2049
2050
|
}
|
|
2050
2051
|
afterEach(t) {
|
|
2051
2052
|
return this._after = this._after || [], this._after.push(t), () => {
|
|
2052
2053
|
if (this._after !== void 0) {
|
|
2053
|
-
const
|
|
2054
|
-
|
|
2054
|
+
const l = this._after.indexOf(t);
|
|
2055
|
+
l !== -1 && this._after.splice(l, 1);
|
|
2055
2056
|
}
|
|
2056
2057
|
};
|
|
2057
2058
|
}
|
|
@@ -2061,23 +2062,23 @@ function ql() {
|
|
|
2061
2062
|
}
|
|
2062
2063
|
const Gl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), jl = {
|
|
2063
2064
|
hooks: {
|
|
2064
|
-
"tag:normalise": ({ tag:
|
|
2065
|
-
|
|
2066
|
-
const t = Nt(
|
|
2067
|
-
t && !t.startsWith("meta:og:") && !t.startsWith("meta:twitter:") && delete
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2065
|
+
"tag:normalise": ({ tag: n }) => {
|
|
2066
|
+
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);
|
|
2067
|
+
const t = Nt(n);
|
|
2068
|
+
t && !t.startsWith("meta:og:") && !t.startsWith("meta:twitter:") && delete n.key;
|
|
2069
|
+
const l = t || (n.key ? `${n.tag}:${n.key}` : !1);
|
|
2070
|
+
l && (n._d = l);
|
|
2070
2071
|
},
|
|
2071
|
-
"tags:resolve": (
|
|
2072
|
+
"tags:resolve": (n) => {
|
|
2072
2073
|
const t = /* @__PURE__ */ Object.create(null);
|
|
2073
|
-
for (const o of
|
|
2074
|
+
for (const o of n.tags) {
|
|
2074
2075
|
const a = (o.key ? `${o.tag}:${o.key}` : o._d) || tt(o), i = t[a];
|
|
2075
2076
|
if (i) {
|
|
2076
2077
|
let p = o?.tagDuplicateStrategy;
|
|
2077
2078
|
if (!p && Gl.has(o.tag) && (p = "merge"), p === "merge") {
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2080
|
-
...
|
|
2079
|
+
const c = i.props;
|
|
2080
|
+
c.style && o.props.style && (c.style[c.style.length - 1] !== ";" && (c.style += ";"), o.props.style = `${c.style} ${o.props.style}`), c.class && o.props.class ? o.props.class = `${c.class} ${o.props.class}` : c.class && (o.props.class = c.class), t[a].props = {
|
|
2081
|
+
...c,
|
|
2081
2082
|
...o.props
|
|
2082
2083
|
};
|
|
2083
2084
|
continue;
|
|
@@ -2093,56 +2094,56 @@ const Gl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
2093
2094
|
}
|
|
2094
2095
|
t[a] = o;
|
|
2095
2096
|
}
|
|
2096
|
-
const
|
|
2097
|
+
const l = [];
|
|
2097
2098
|
for (const o in t) {
|
|
2098
2099
|
const a = t[o], i = a._duped;
|
|
2099
|
-
|
|
2100
|
+
l.push(a), i && (delete a._duped, l.push(...i));
|
|
2100
2101
|
}
|
|
2101
|
-
|
|
2102
|
+
n.tags = l, n.tags = n.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
|
|
2102
2103
|
}
|
|
2103
2104
|
}
|
|
2104
|
-
}, xl = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), Wl = (
|
|
2105
|
+
}, xl = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), Wl = (n) => ({
|
|
2105
2106
|
hooks: {
|
|
2106
2107
|
"tags:resolve": (t) => {
|
|
2107
|
-
for (const
|
|
2108
|
-
if (!xl.has(
|
|
2108
|
+
for (const l of t.tags) {
|
|
2109
|
+
if (!xl.has(l.tag))
|
|
2109
2110
|
continue;
|
|
2110
|
-
const o =
|
|
2111
|
+
const o = l.props;
|
|
2111
2112
|
for (const a in o) {
|
|
2112
2113
|
if (a[0] !== "o" || a[1] !== "n" || !Object.prototype.hasOwnProperty.call(o, a))
|
|
2113
2114
|
continue;
|
|
2114
2115
|
const i = o[a];
|
|
2115
|
-
typeof i == "function" && (
|
|
2116
|
+
typeof i == "function" && (n.ssr && gt.has(a) ? o[a] = `this.dataset.${a}fired = true` : delete o[a], l._eventHandlers = l._eventHandlers || {}, l._eventHandlers[a] = i);
|
|
2116
2117
|
}
|
|
2117
|
-
|
|
2118
|
+
n.ssr && l._eventHandlers && (l.props.src || l.props.href) && (l.key = l.key || Ie(l.props.src || l.props.href));
|
|
2118
2119
|
}
|
|
2119
2120
|
},
|
|
2120
|
-
"dom:renderTag": ({ $el: t, tag:
|
|
2121
|
+
"dom:renderTag": ({ $el: t, tag: l }) => {
|
|
2121
2122
|
const o = t?.dataset;
|
|
2122
2123
|
if (o)
|
|
2123
2124
|
for (const a in o) {
|
|
2124
2125
|
if (!a.endsWith("fired"))
|
|
2125
2126
|
continue;
|
|
2126
2127
|
const i = a.slice(0, -5);
|
|
2127
|
-
gt.has(i) &&
|
|
2128
|
+
gt.has(i) && l._eventHandlers?.[i]?.call(t, new Event(i.substring(2)));
|
|
2128
2129
|
}
|
|
2129
2130
|
}
|
|
2130
2131
|
}
|
|
2131
2132
|
}), Kl = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), Jl = {
|
|
2132
2133
|
hooks: {
|
|
2133
|
-
"tag:normalise": ({ tag:
|
|
2134
|
-
|
|
2134
|
+
"tag:normalise": ({ tag: n }) => {
|
|
2135
|
+
n.key && Kl.has(n.tag) && (n.props["data-hid"] = n._h = Ie(n.key));
|
|
2135
2136
|
}
|
|
2136
2137
|
}
|
|
2137
2138
|
}, zl = {
|
|
2138
2139
|
mode: "server",
|
|
2139
2140
|
hooks: {
|
|
2140
|
-
"tags:beforeResolve": (
|
|
2141
|
+
"tags:beforeResolve": (n) => {
|
|
2141
2142
|
const t = {};
|
|
2142
|
-
let
|
|
2143
|
-
for (const o of
|
|
2144
|
-
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,
|
|
2145
|
-
|
|
2143
|
+
let l = !1;
|
|
2144
|
+
for (const o of n.tags)
|
|
2145
|
+
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);
|
|
2146
|
+
l && n.tags.push({
|
|
2146
2147
|
tag: "script",
|
|
2147
2148
|
innerHTML: JSON.stringify(t),
|
|
2148
2149
|
props: { id: "unhead:payload", type: "application/json" }
|
|
@@ -2151,21 +2152,21 @@ const Gl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
2151
2152
|
}
|
|
2152
2153
|
}, Yl = {
|
|
2153
2154
|
hooks: {
|
|
2154
|
-
"tags:resolve": (
|
|
2155
|
-
for (const t of
|
|
2155
|
+
"tags:resolve": (n) => {
|
|
2156
|
+
for (const t of n.tags)
|
|
2156
2157
|
if (typeof t.tagPriority == "string")
|
|
2157
|
-
for (const { prefix:
|
|
2158
|
-
if (!t.tagPriority.startsWith(
|
|
2158
|
+
for (const { prefix: l, offset: o } of Dl) {
|
|
2159
|
+
if (!t.tagPriority.startsWith(l))
|
|
2159
2160
|
continue;
|
|
2160
|
-
const a = t.tagPriority.substring(
|
|
2161
|
+
const a = t.tagPriority.substring(l.length), i = n.tags.find((r) => r._d === a)?._p;
|
|
2161
2162
|
if (i !== void 0) {
|
|
2162
2163
|
t._p = i + o;
|
|
2163
2164
|
break;
|
|
2164
2165
|
}
|
|
2165
2166
|
}
|
|
2166
|
-
|
|
2167
|
-
const o = Re(t), a = Re(
|
|
2168
|
-
return o < a ? -1 : o > a ? 1 : t._p -
|
|
2167
|
+
n.tags.sort((t, l) => {
|
|
2168
|
+
const o = Re(t), a = Re(l);
|
|
2169
|
+
return o < a ? -1 : o > a ? 1 : t._p - l._p;
|
|
2169
2170
|
});
|
|
2170
2171
|
}
|
|
2171
2172
|
}
|
|
@@ -2173,108 +2174,108 @@ const Gl = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"])
|
|
|
2173
2174
|
meta: "content",
|
|
2174
2175
|
link: "href",
|
|
2175
2176
|
htmlAttrs: "lang"
|
|
2176
|
-
}, Xl = ["innerHTML", "textContent"], Zl = (
|
|
2177
|
+
}, Xl = ["innerHTML", "textContent"], Zl = (n) => ({
|
|
2177
2178
|
hooks: {
|
|
2178
2179
|
"tags:resolve": (t) => {
|
|
2179
|
-
const { tags:
|
|
2180
|
+
const { tags: l } = t;
|
|
2180
2181
|
let o;
|
|
2181
|
-
for (let r = 0; r <
|
|
2182
|
-
|
|
2182
|
+
for (let r = 0; r < l.length; r += 1)
|
|
2183
|
+
l[r].tag === "templateParams" && (o = t.tags.splice(r, 1)[0].props, r -= 1);
|
|
2183
2184
|
const a = o || {}, i = a.separator || "|";
|
|
2184
2185
|
delete a.separator, a.pageTitle = He(
|
|
2185
2186
|
// find templateParams
|
|
2186
|
-
a.pageTitle ||
|
|
2187
|
+
a.pageTitle || l.find((r) => r.tag === "title")?.textContent || "",
|
|
2187
2188
|
a,
|
|
2188
2189
|
i
|
|
2189
2190
|
);
|
|
2190
|
-
for (const r of
|
|
2191
|
+
for (const r of l) {
|
|
2191
2192
|
if (r.processTemplateParams === !1)
|
|
2192
2193
|
continue;
|
|
2193
2194
|
const p = Ql[r.tag];
|
|
2194
2195
|
if (p && typeof r.props[p] == "string")
|
|
2195
2196
|
r.props[p] = He(r.props[p], a, i);
|
|
2196
2197
|
else if (r.processTemplateParams || r.tag === "titleTemplate" || r.tag === "title")
|
|
2197
|
-
for (const
|
|
2198
|
-
typeof r[
|
|
2198
|
+
for (const c of Xl)
|
|
2199
|
+
typeof r[c] == "string" && (r[c] = He(r[c], a, i, r.tag === "script" && r.props.type.endsWith("json")));
|
|
2199
2200
|
}
|
|
2200
|
-
|
|
2201
|
+
n._templateParams = a, n._separator = i;
|
|
2201
2202
|
},
|
|
2202
2203
|
"tags:afterResolve": ({ tags: t }) => {
|
|
2203
|
-
let
|
|
2204
|
+
let l;
|
|
2204
2205
|
for (let o = 0; o < t.length; o += 1) {
|
|
2205
2206
|
const a = t[o];
|
|
2206
|
-
a.tag === "title" && a.processTemplateParams !== !1 && (
|
|
2207
|
+
a.tag === "title" && a.processTemplateParams !== !1 && (l = a);
|
|
2207
2208
|
}
|
|
2208
|
-
|
|
2209
|
+
l?.textContent && (l.textContent = He(l.textContent, n._templateParams, n._separator));
|
|
2209
2210
|
}
|
|
2210
2211
|
}
|
|
2211
2212
|
}), ea = {
|
|
2212
2213
|
hooks: {
|
|
2213
|
-
"tags:resolve": (
|
|
2214
|
-
const { tags: t } =
|
|
2215
|
-
let
|
|
2214
|
+
"tags:resolve": (n) => {
|
|
2215
|
+
const { tags: t } = n;
|
|
2216
|
+
let l, o;
|
|
2216
2217
|
for (let a = 0; a < t.length; a += 1) {
|
|
2217
2218
|
const i = t[a];
|
|
2218
|
-
i.tag === "title" ?
|
|
2219
|
+
i.tag === "title" ? l = i : i.tag === "titleTemplate" && (o = i);
|
|
2219
2220
|
}
|
|
2220
|
-
if (o &&
|
|
2221
|
+
if (o && l) {
|
|
2221
2222
|
const a = _t(
|
|
2222
2223
|
o.textContent,
|
|
2223
|
-
|
|
2224
|
+
l.textContent
|
|
2224
2225
|
);
|
|
2225
|
-
a !== null ?
|
|
2226
|
+
a !== null ? l.textContent = a || l.textContent : n.tags.splice(n.tags.indexOf(l), 1);
|
|
2226
2227
|
} else if (o) {
|
|
2227
2228
|
const a = _t(
|
|
2228
2229
|
o.textContent
|
|
2229
2230
|
);
|
|
2230
2231
|
a !== null && (o.textContent = a, o.tag = "title", o = void 0);
|
|
2231
2232
|
}
|
|
2232
|
-
o &&
|
|
2233
|
+
o && n.tags.splice(n.tags.indexOf(o), 1);
|
|
2233
2234
|
}
|
|
2234
2235
|
}
|
|
2235
2236
|
}, ta = {
|
|
2236
2237
|
hooks: {
|
|
2237
|
-
"tags:afterResolve": (
|
|
2238
|
-
for (const t of
|
|
2238
|
+
"tags:afterResolve": (n) => {
|
|
2239
|
+
for (const t of n.tags)
|
|
2239
2240
|
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}`));
|
|
2240
2241
|
}
|
|
2241
2242
|
}
|
|
2242
2243
|
};
|
|
2243
2244
|
// @__NO_SIDE_EFFECTS__
|
|
2244
|
-
function oa(
|
|
2245
|
-
const t = na(
|
|
2245
|
+
function oa(n = {}) {
|
|
2246
|
+
const t = na(n);
|
|
2246
2247
|
return t.use(/* @__PURE__ */ Rl()), t;
|
|
2247
2248
|
}
|
|
2248
|
-
function Tt(
|
|
2249
|
-
return !
|
|
2249
|
+
function Tt(n, t) {
|
|
2250
|
+
return !n || n === "server" && t || n === "client" && !t;
|
|
2250
2251
|
}
|
|
2251
|
-
function na(
|
|
2252
|
+
function na(n = {}) {
|
|
2252
2253
|
const t = ql();
|
|
2253
|
-
t.addHooks(
|
|
2254
|
-
const
|
|
2254
|
+
t.addHooks(n.hooks || {}), n.document = n.document || (Cl ? document : void 0);
|
|
2255
|
+
const l = !n.document, o = () => {
|
|
2255
2256
|
p.dirty = !0, t.callHook("entries:updated", p);
|
|
2256
2257
|
};
|
|
2257
2258
|
let a = 0, i = [];
|
|
2258
2259
|
const r = [], p = {
|
|
2259
2260
|
plugins: r,
|
|
2260
2261
|
dirty: !1,
|
|
2261
|
-
resolvedOptions:
|
|
2262
|
+
resolvedOptions: n,
|
|
2262
2263
|
hooks: t,
|
|
2263
2264
|
headEntries() {
|
|
2264
2265
|
return i;
|
|
2265
2266
|
},
|
|
2266
|
-
use(
|
|
2267
|
-
const
|
|
2268
|
-
(!
|
|
2267
|
+
use(c) {
|
|
2268
|
+
const u = typeof c == "function" ? c(p) : c;
|
|
2269
|
+
(!u.key || !r.some((y) => y.key === u.key)) && (r.push(u), Tt(u.mode, l) && t.addHooks(u.hooks || {}));
|
|
2269
2270
|
},
|
|
2270
|
-
push(
|
|
2271
|
-
delete
|
|
2271
|
+
push(c, u) {
|
|
2272
|
+
delete u?.head;
|
|
2272
2273
|
const y = {
|
|
2273
2274
|
_i: a++,
|
|
2274
|
-
input:
|
|
2275
|
-
...
|
|
2275
|
+
input: c,
|
|
2276
|
+
...u
|
|
2276
2277
|
};
|
|
2277
|
-
return Tt(y.mode,
|
|
2278
|
+
return Tt(y.mode, l) && (i.push(y), o()), {
|
|
2278
2279
|
dispose() {
|
|
2279
2280
|
i = i.filter((m) => m._i !== y._i), o();
|
|
2280
2281
|
},
|
|
@@ -2287,19 +2288,19 @@ function na(l = {}) {
|
|
|
2287
2288
|
};
|
|
2288
2289
|
},
|
|
2289
2290
|
async resolveTags() {
|
|
2290
|
-
const
|
|
2291
|
-
await t.callHook("entries:resolve",
|
|
2292
|
-
for (const
|
|
2293
|
-
const y =
|
|
2294
|
-
if (
|
|
2295
|
-
for (const m of await Sl(
|
|
2296
|
-
const g = { tag: m, entry:
|
|
2297
|
-
await t.callHook("tag:normalise", g),
|
|
2291
|
+
const c = { tags: [], entries: [...i] };
|
|
2292
|
+
await t.callHook("entries:resolve", c);
|
|
2293
|
+
for (const u of c.entries) {
|
|
2294
|
+
const y = u.resolvedInput || u.input;
|
|
2295
|
+
if (u.resolvedInput = await (u.transform ? u.transform(y) : y), u.resolvedInput)
|
|
2296
|
+
for (const m of await Sl(u)) {
|
|
2297
|
+
const g = { tag: m, entry: u, resolvedOptions: p.resolvedOptions };
|
|
2298
|
+
await t.callHook("tag:normalise", g), c.tags.push(g.tag);
|
|
2298
2299
|
}
|
|
2299
2300
|
}
|
|
2300
|
-
return await t.callHook("tags:beforeResolve",
|
|
2301
|
+
return await t.callHook("tags:beforeResolve", c), await t.callHook("tags:resolve", c), await t.callHook("tags:afterResolve", c), c.tags;
|
|
2301
2302
|
},
|
|
2302
|
-
ssr:
|
|
2303
|
+
ssr: l
|
|
2303
2304
|
};
|
|
2304
2305
|
return [
|
|
2305
2306
|
jl,
|
|
@@ -2310,53 +2311,53 @@ function na(l = {}) {
|
|
|
2310
2311
|
Zl,
|
|
2311
2312
|
ea,
|
|
2312
2313
|
ta,
|
|
2313
|
-
...
|
|
2314
|
-
].forEach((
|
|
2314
|
+
...n?.plugins || []
|
|
2315
|
+
].forEach((c) => p.use(c)), p.hooks.callHook("init", p), p;
|
|
2315
2316
|
}
|
|
2316
2317
|
const la = bo[0] === "3";
|
|
2317
|
-
function aa(
|
|
2318
|
-
return typeof
|
|
2318
|
+
function aa(n) {
|
|
2319
|
+
return typeof n == "function" ? n() : e(n);
|
|
2319
2320
|
}
|
|
2320
|
-
function lt(
|
|
2321
|
-
if (
|
|
2322
|
-
return
|
|
2323
|
-
const t = aa(
|
|
2324
|
-
if (!
|
|
2321
|
+
function lt(n) {
|
|
2322
|
+
if (n instanceof Promise || n instanceof Date || n instanceof RegExp)
|
|
2323
|
+
return n;
|
|
2324
|
+
const t = aa(n);
|
|
2325
|
+
if (!n || !t)
|
|
2325
2326
|
return t;
|
|
2326
2327
|
if (Array.isArray(t))
|
|
2327
|
-
return t.map((
|
|
2328
|
+
return t.map((l) => lt(l));
|
|
2328
2329
|
if (typeof t == "object") {
|
|
2329
|
-
const
|
|
2330
|
+
const l = {};
|
|
2330
2331
|
for (const o in t)
|
|
2331
2332
|
if (Object.prototype.hasOwnProperty.call(t, o)) {
|
|
2332
2333
|
if (o === "titleTemplate" || o[0] === "o" && o[1] === "n") {
|
|
2333
|
-
|
|
2334
|
+
l[o] = e(t[o]);
|
|
2334
2335
|
continue;
|
|
2335
2336
|
}
|
|
2336
|
-
|
|
2337
|
+
l[o] = lt(t[o]);
|
|
2337
2338
|
}
|
|
2338
|
-
return
|
|
2339
|
+
return l;
|
|
2339
2340
|
}
|
|
2340
2341
|
return t;
|
|
2341
2342
|
}
|
|
2342
2343
|
const ia = {
|
|
2343
2344
|
hooks: {
|
|
2344
|
-
"entries:resolve": (
|
|
2345
|
-
for (const t of
|
|
2345
|
+
"entries:resolve": (n) => {
|
|
2346
|
+
for (const t of n.entries)
|
|
2346
2347
|
t.resolvedInput = lt(t.input);
|
|
2347
2348
|
}
|
|
2348
2349
|
}
|
|
2349
2350
|
}, sa = "usehead";
|
|
2350
|
-
function ra(
|
|
2351
|
+
function ra(n) {
|
|
2351
2352
|
return {
|
|
2352
|
-
install(
|
|
2353
|
-
la && (
|
|
2353
|
+
install(l) {
|
|
2354
|
+
la && (l.config.globalProperties.$unhead = n, l.config.globalProperties.$head = n, l.provide(sa, n));
|
|
2354
2355
|
}
|
|
2355
2356
|
}.install;
|
|
2356
2357
|
}
|
|
2357
|
-
function da(
|
|
2358
|
-
|
|
2359
|
-
const t = /* @__PURE__ */ oa(
|
|
2358
|
+
function da(n = {}) {
|
|
2359
|
+
n.domDelayFn = n.domDelayFn || ((l) => ko(() => setTimeout(() => l(), 0)));
|
|
2360
|
+
const t = /* @__PURE__ */ oa(n);
|
|
2360
2361
|
return t.use(ia), t.install = ra(t), t;
|
|
2361
2362
|
}
|
|
2362
2363
|
const ca = _o(), ua = da(), pa = Co();
|
|
@@ -2371,8 +2372,8 @@ class ma extends HTMLElement {
|
|
|
2371
2372
|
connectedCallback() {
|
|
2372
2373
|
const t = To(yt, this.attributes);
|
|
2373
2374
|
this.vueApp = Vo(yt, t), this.vueApp.provide("emitter", pa), this.vueApp.use(ua), this.vueApp.use(ca), this.vueApp.use(Eo), this.vueApp.use(wo), this.vueApp.use(Uo), this.vueApp.use(Ho), this.vueApp.use(Do, { bootstrap: !0 });
|
|
2374
|
-
const
|
|
2375
|
-
this.vueApp.mount(
|
|
2375
|
+
const l = document.createElement("div");
|
|
2376
|
+
this.vueApp.mount(l), this.appendChild(l.children[0]);
|
|
2376
2377
|
}
|
|
2377
2378
|
}
|
|
2378
2379
|
window.customElements.define("konnectio-hotel", ma);
|