@konnectio/core 4.0.113 → 4.0.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/{ActionField-DpnZ6Hk4.js → ActionField-08VsieGs.js} +2 -2
  2. package/dist/ActionField-08VsieGs.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-B3PCn7Zh.js → AvailabilitySkeleton-C7kmnbxU.js} +5 -5
  4. package/dist/AvailabilitySkeleton-C7kmnbxU.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-YevEWa5s.js +8753 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-YevEWa5s.js.br +0 -0
  7. package/dist/{CheckoutWindow-CBZATVS3.js → CheckoutWindow-DuSC80tQ.js} +3 -3
  8. package/dist/CheckoutWindow-DuSC80tQ.js.br +0 -0
  9. package/dist/{ErrorMessage-Cj4EWsnp.js → ErrorMessage-D61B0LEz.js} +2 -2
  10. package/dist/ErrorMessage-D61B0LEz.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-C6U8tDPb.js → EventAvailabilityForm-BiusQ7Yb.js} +3 -3
  12. package/dist/EventAvailabilityForm-BiusQ7Yb.js.br +0 -0
  13. package/dist/{Field-Cf0vZgQw.js → Field-B2uBsmSm.js} +4 -4
  14. package/dist/Field-B2uBsmSm.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DGiTZSqt.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C5twlBFH.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js → SelectField.vue_vue_type_style_index_0_lang-Cqg28KF3.js} +5 -4
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-Cqg28KF3.js.br +0 -0
  18. package/dist/{TermsOfService-Bn5BDOpR.js → TermsOfService-DmS8LMR6.js} +3 -3
  19. package/dist/_-D9EwK3oU.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CZyXOF9b.js → _.vue_vue_type_style_index_0_lang-2aqqAxsc.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/event.js +422 -498
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +7 -7
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +8 -8
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/{giftCard-B4ksqI17.js → giftCard-WTvZ2TZv.js} +2 -2
  32. package/dist/giftCard-WTvZ2TZv.js.br +0 -0
  33. package/dist/hotel.js +405 -404
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-DGcnQT2t.js → masonry.plugin-CBJo1QMz.js} +9 -9
  36. package/dist/masonry.plugin-CBJo1QMz.js.br +0 -0
  37. package/dist/polyfill.js +3655 -3432
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/package.json +17 -17
  42. package/dist/ActionField-DpnZ6Hk4.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-B3PCn7Zh.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.js +0 -9062
  45. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.js.br +0 -0
  46. package/dist/CheckoutWindow-CBZATVS3.js.br +0 -0
  47. package/dist/ErrorMessage-Cj4EWsnp.js.br +0 -0
  48. package/dist/EventAvailabilityForm-C6U8tDPb.js.br +0 -0
  49. package/dist/Field-Cf0vZgQw.js.br +0 -0
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-D_cPiRYS.js.br +0 -0
  51. package/dist/_-BdJkK4Nl.js +0 -5
  52. package/dist/giftCard-B4ksqI17.js.br +0 -0
  53. package/dist/masonry.plugin-DGcnQT2t.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-D_cPiRYS.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-Cqg28KF3.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-DGcnQT2t.js";
5
- import { A as Oo, H as Fo } from "./AvailabilitySkeleton-B3PCn7Zh.js";
6
- import { S as qo } from "./TermsOfService-Bn5BDOpR.js";
7
- import { C as et, B as Go, P as jo, a as xo } from "./CheckoutWindow-CBZATVS3.js";
8
- import { _ as Pt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dyh0N7sN.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-CBJo1QMz.js";
5
+ import { A as Oo, H as Fo } from "./AvailabilitySkeleton-C7kmnbxU.js";
6
+ import { S as qo } from "./TermsOfService-DmS8LMR6.js";
7
+ import { C as et, B as Go, P as jo, a as xo } from "./CheckoutWindow-DuSC80tQ.js";
8
+ import { _ as Pt } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-YevEWa5s.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(l) {
20
+ setup(n) {
21
21
  const { t } = se(), {
22
- disableNewsletterSignup: n,
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: u,
31
- totalPrice: c,
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(c),
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(u)) && e(p).length > 0 ? (d(!0), h(E, { key: 0 }, F(e(p), ({
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(n) ? _("", !0) : (d(), h("div", en, [
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(l, { emit: t }) {
282
- const { t: n } = se(), { currency: o } = X(fe()), a = t, i = l;
283
- function r(u) {
284
- a("update:modelValue", u);
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: (u) => r(u)
288
+ set: (c) => r(c)
289
289
  });
290
- return (u, c) => (d(), H(Le, {
290
+ return (c, u) => (d(), H(Le, {
291
291
  modelValue: p.value,
292
- "onUpdate:modelValue": c[0] || (c[0] = (y) => p.value = y),
293
- label: u.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: u.options,
299
- readonly: u.readonly,
300
- required: u.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(n)("general.adult") : e(n)("general.adults")}`), 1)
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(n)("general.child") : e(n)("general.children")}`), 1)
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
- c[1] || (c[1] = s("span", null, null, -1)),
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(l) {
353
- const { t } = se(), n = l, o = ie([]);
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(() => n.room.rates.map((T) => ({
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: u } = X(he()), { addToCart: c, removeFromCart: y } = wt(), m = (T, S) => n.room.rates.find((D) => D.id === T)?.occupantRates.find((D) => D.index === S), g = K(() => n.room.rates.every((T) => T.isBreakfastIncluded === !0)), w = (T, S) => m(T, S) ? m(T, S)?.rooms : null, P = (T) => n.room.rates.length > 0 ? n.room.rates.find((S) => S.id === T)?.occupantRates.map((S) => ({
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(() => n.room.rates.length > 1);
370
+ })) || [] : [], $ = K(() => l.room.rates.length > 1);
371
371
  function M(T, S) {
372
- o.value[T].config[0].id = n.room.rates.find((D) => D.id === S.value)?.occupantRateIndex || NaN;
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: n.room.bestRateMatch || void 0,
376
+ id: l.room.bestRateMatch || void 0,
377
377
  config: [{
378
- id: n.room.bestRateMatch && !isNaN(n.room.bestRateMatch) ? n.room.rates.find((T) => T.id === n.room.bestRateMatch)?.occupantRateIndex : NaN,
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: n.room.rates[0].occupantRateIndex || NaN,
385
+ id: l.room.rates[0].occupantRateIndex || NaN,
386
386
  units: 0,
387
387
  addons: []
388
388
  }]
389
389
  }) : o.value.push({
390
- id: n.room.rates[0].id,
390
+ id: l.room.rates[0].id,
391
391
  config: [{
392
- id: n.room.rates[0].occupantRateIndex || NaN,
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({}), c({
407
- id: n.room.id,
408
- name: n.room.title,
409
- value: n.room.rates[z].rackRate
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: n.room.id,
412
- name: n.room.title,
413
- value: n.room.rates[z].rackRate
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
- u.value[n.room.id] = o.value;
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(l) {
503
- const { t } = se(), { templateID: n, roomGroupID: o, selectionHasNoAddons: a } = X(he()), { currency: i } = X(fe()), { clearRoomSelection: r } = he(), p = l, u = ie(!0), c = K(() => {
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 u.value === !0 ? g.extraPrice > w.extraPrice ? -1 : 1 : g.extraPrice > w.extraPrice ? 1 : -1;
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 (n.value = p.templateId, o.value = m, r(), p.hideAddons === !1 && a.value == !1) {
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(c.value, ({
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(l) {
571
- const { t } = se(), n = l, o = K(() => n.roomGroups.reduce(
572
- (u, c) => u < c.extraPrice ? u : c.extraPrice,
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 (n.image)
575
+ if (l.image)
576
576
  return [{
577
- large: n.image.url,
578
- medium: n.image.url,
579
- thumb: n.image.url,
580
- url: n.image.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(u) {
587
- n.callback(u), i.value = !1;
586
+ function p(c) {
587
+ l.callback(c), i.value = !1;
588
588
  }
589
- return (u, c) => (d(), H(Ee, {
589
+ return (c, u) => (d(), H(Ee, {
590
590
  type: "template",
591
- "listing-id": u.id,
592
- name: u.name,
593
- description: u.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": c[0] || (c[0] = (y) => i.value = y),
613
- title: u.name,
614
- "template-id": u.id,
615
- "room-groups": u.roomGroups,
616
- "hide-addons": u.hideAddons,
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(l) {
636
- const { t } = se(), { updateDates: n } = $e(), { display: o } = $t(), a = l, i = ie([]), r = K(() => Ce(a.fromDate, a.toDate) === 1), p = K(() => [{
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 u() {
643
- i.value.length > 0 ? n(i.value[0], i.value[1]) : o({
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
- }), (c, y) => (d(), H(Ee, {
650
+ }), (u, y) => (d(), H(Ee, {
651
651
  type: "template",
652
- "listing-id": c.id,
653
- name: c.name,
654
- description: c.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": c.toDate,
660
- "from-date": c.fromDate
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(c.fromDate),
673
- "min-date": new Date(c.fromDate),
674
- "max-date": new Date(c.toDate),
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(u, ["prevent"])
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(l, { emit: t }) {
707
- const n = t, o = l;
706
+ setup(n, { emit: t }) {
707
+ const l = t, o = n;
708
708
  function a(r) {
709
- n("update:modelValue", r);
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] = (u) => i.value = u),
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(l, { emit: t }) {
743
- const { t: n } = se(), o = t, a = l;
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, u) => (d(), H(Le, {
751
+ return (p, c) => (d(), H(Le, {
752
752
  modelValue: r.value,
753
- "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
753
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
754
754
  label: p.label,
755
- placeholder: e(n)("booking.reservation.countryPlaceholder"),
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: c }) => [
761
+ option: C(({ data: u }) => [
762
762
  s("i", {
763
- class: Be(["konnectio-flag-icon", c.iso])
763
+ class: Be(["konnectio-flag-icon", u.iso])
764
764
  }, null, 2),
765
- s("span", null, f(c.name), 1)
765
+ s("span", null, f(u.name), 1)
766
766
  ]),
767
- "selected-option": C(({ data: c }) => [
767
+ "selected-option": C(({ data: u }) => [
768
768
  s("div", Pn, [
769
769
  s("i", {
770
- class: Be(["konnectio-flag-icon", c.iso])
770
+ class: Be(["konnectio-flag-icon", u.iso])
771
771
  }, null, 2),
772
- s("span", null, f(c.name), 1)
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(l, { emit: t }) {
800
- const n = l, o = t, a = n.id || mt(), i = ie(""), r = ie(2);
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, (c) => {
805
- o("update:title", c);
804
+ Me(r, (u) => {
805
+ o("update:title", u);
806
806
  });
807
- const { t: u } = se();
807
+ const { t: c } = se();
808
808
  return at(() => {
809
- n.modelValue && (i.value = n.modelValue), n.title && (r.value = n.title);
810
- }), (c, y) => (d(), H($o, {
811
- label: c.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: c.required,
813
+ required: u.required,
814
814
  type: "konnectio-name-field",
815
- readonly: c.readonly,
816
- limit: c.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": c.excludeTitle }
822
+ { "no-title": u.excludeTitle }
823
823
  ])
824
824
  }, [
825
- c.excludeTitle ? _("", !0) : (d(), H(Le, {
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: c.icon,
831
- "icon-color": c.iconColor,
832
- "icon-type": c.iconType,
830
+ icon: u.icon,
831
+ "icon-color": u.iconColor,
832
+ "icon-type": u.iconType,
833
833
  options: [
834
834
  {
835
- label: e(u)("booking.reservation.noNameTitle"),
835
+ label: e(c)("booking.reservation.noNameTitle"),
836
836
  value: 1
837
837
  },
838
838
  {
839
- label: e(u)("booking.reservation.nameTitleMr"),
839
+ label: e(c)("booking.reservation.nameTitleMr"),
840
840
  value: 2
841
841
  },
842
842
  {
843
- label: e(u)("booking.reservation.nameTitleMs"),
843
+ label: e(c)("booking.reservation.nameTitleMs"),
844
844
  value: 3
845
845
  },
846
846
  {
847
- label: e(u)("booking.reservation.nameTitleMrs"),
847
+ label: e(c)("booking.reservation.nameTitleMrs"),
848
848
  value: 4
849
849
  },
850
850
  {
851
- label: e(u)("booking.reservation.nameTitleDr"),
851
+ label: e(c)("booking.reservation.nameTitleDr"),
852
852
  value: 5
853
853
  }
854
854
  ],
855
- readonly: c.readonly,
855
+ readonly: u.readonly,
856
856
  "hide-button": "",
857
- "input-style": c.inputStyle,
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: c.excludeTitle ? c.icon : void 0,
868
- "icon-color": c.iconColor,
869
- "icon-type": c.iconType,
870
- placeholder: c.placeholder,
871
- required: c.required,
872
- readonly: c.readonly,
873
- limit: c.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": c.inputStyle
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(l) {
885
- return (t, n) => (d(), h("div", Nn, [
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(l) {
951
- const t = go(() => import("./_-BdJkK4Nl.js")), n = l, { t: o } = se(), {
950
+ setup(n) {
951
+ const t = go(() => import("./_-D9EwK3oU.js")), l = n, { t: o } = se(), {
952
952
  currentLocation: a,
953
953
  templateID: i,
954
954
  templateAddons: r,
955
955
  countries: p,
956
- areListingsLoading: u,
957
- isPaymentLoading: c,
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 n.sortBy === "price" ? k.sort(V) : k;
1071
- }), xe = K(() => n.hideAddons === "yes" || Te.value && n.hideAddons === "packages" || !Te.value && n.hideAddons === "rooms");
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), n.disableDefaultLocation === "yes" && ee === !1 ? (we.value = void 0, a.value = void 0) : ct(de);
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(u) && e(be) ? (d(), h("div", Un, [
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(u) ? (d(), h("div", nl, [
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(u),
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(c),
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(l) {
1651
+ function Ie(n) {
1652
1652
  let t = 9;
1653
- for (let n = 0; n < l.length; )
1654
- t = Math.imul(t ^ l.charCodeAt(n++), 9 ** 9);
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(l) {
1658
- if (l._h)
1659
- return l._h;
1660
- if (l._d)
1661
- return Ie(l._d);
1662
- let t = `${l.tag}:${l.textContent || l.innerHTML || ""}:`;
1663
- for (const n in l.props)
1664
- t += `${n}:${String(l.props[n])},`;
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(l, t) {
1668
- return l instanceof Promise ? l.then(t) : t(l);
1667
+ function $l(n, t) {
1668
+ return n instanceof Promise ? n.then(t) : t(n);
1669
1669
  }
1670
- function ot(l, t, n, o) {
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 } : { [l === "script" || l === "noscript" || l === "style" ? "innerHTML" : "textContent"]: t },
1675
- l === "templateParams" || l === "titleTemplate"
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(l, t, n, r));
1678
+ return a.then((r) => ot(n, t, l, r));
1679
1679
  const i = {
1680
- tag: l,
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] : n[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(l, t) {
1690
- const n = l === "class" ? " " : ";";
1691
- return t && typeof t == "object" && !Array.isArray(t) && (t = Object.entries(t).filter(([, o]) => o).map(([o, a]) => l === "style" ? `${o}:${a}` : o)), String(Array.isArray(t) ? t.join(n) : t)?.split(n).filter((o) => !!o.trim()).join(n);
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(l, t, n, o) {
1694
- for (let a = o; a < n.length; a += 1) {
1695
- const i = n[a];
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
- l[i] = Pl(i, l[i]);
1697
+ n[i] = Pl(i, n[i]);
1698
1698
  continue;
1699
1699
  }
1700
- if (l[i] instanceof Promise)
1701
- return l[i].then((r) => (l[i] = r, St(l, t, n, a)));
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(l[i]), p = i.startsWith("data-");
1704
- r === "true" || r === "" ? l[i] = p ? "true" : !0 : l[i] || (p && r === "false" ? l[i] = "false" : delete l[i]);
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(l, t = !1) {
1709
- const n = St(l, t, Object.keys(l), 0);
1710
- return n instanceof Promise ? n.then(() => l) : l;
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(l, t, n) {
1714
- for (let o = n; o < t.length; o += 1) {
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(l, t, o)));
1718
- Array.isArray(a) ? l.push(...a) : l.push(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(l) {
1722
- const t = [], n = l.resolvedInput;
1723
- for (const a in n) {
1724
- if (!Object.prototype.hasOwnProperty.call(n, a))
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 = n[a];
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, l));
1730
+ t.push(ot(a, r, n));
1731
1731
  continue;
1732
1732
  }
1733
- t.push(ot(a, i, l));
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 = l._i, l.mode && (a._m = l.mode), a._p = (l._i << Al) + i, a)));
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(l) {
1752
- const t = l.tagPriority;
1751
+ function Re(n) {
1752
+ const t = n.tagPriority;
1753
1753
  if (typeof t == "number")
1754
1754
  return t;
1755
- let n = 100;
1756
- return l.tag === "meta" ? l.props["http-equiv"] === "content-security-policy" ? n = -30 : l.props.charset ? n = -20 : l.props.name === "viewport" && (n = -15) : l.tag === "link" && l.props.rel === "preconnect" ? n = 20 : l.tag in kt && (n = kt[l.tag]), t && t in bt ? n + bt[t] : n;
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(l) {
1760
- const { props: t, tag: n } = l;
1761
- if (wl.has(n))
1762
- return n;
1763
- if (n === "link" && t.rel === "canonical")
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 `${n}:id:${t.id}`;
1768
+ return `${l}:id:${t.id}`;
1769
1769
  for (const o of Hl)
1770
1770
  if (t[o] !== void 0)
1771
- return `${n}:${o}:${t[o]}`;
1771
+ return `${l}:${o}:${t[o]}`;
1772
1772
  return !1;
1773
1773
  }
1774
1774
  const ue = "%separator";
1775
- function Nl(l, t) {
1776
- let n;
1775
+ function Nl(n, t, l = !1) {
1776
+ let o;
1777
1777
  if (t === "s" || t === "pageTitle")
1778
- n = l.pageTitle;
1778
+ o = n.pageTitle;
1779
1779
  else if (t.includes(".")) {
1780
- const o = t.indexOf(".");
1781
- n = l[t.substring(0, o)]?.[t.substring(o + 1)];
1780
+ const a = t.indexOf(".");
1781
+ o = n[t.substring(0, a)]?.[t.substring(a + 1)];
1782
1782
  } else
1783
- n = l[t];
1784
- return n !== void 0 ? (n || "").replace(/"/g, '\\"') : void 0;
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(l, t, n) {
1788
- if (typeof l != "string" || !l.includes("%"))
1789
- return l;
1790
- let o = l;
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
- o = decodeURI(l);
1793
+ a = decodeURI(n);
1793
1794
  } catch {
1794
1795
  }
1795
- const a = o.match(/%\w+(?:\.\w+)?/g);
1796
- if (!a)
1797
- return l;
1798
- const i = l.includes(ue);
1799
- return l = l.replace(/%\w+(?:\.\w+)?/g, (r) => {
1800
- if (r === ue || !a.includes(r))
1801
- return r;
1802
- const p = Nl(t, r.slice(1));
1803
- return p !== void 0 ? p : r;
1804
- }).trim(), i && (l.endsWith(ue) && (l = l.slice(0, -ue.length)), l.startsWith(ue) && (l = l.slice(ue.length)), l = l.replace(Ml, n).trim()), l;
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(l, t) {
1807
- return l == null ? t || null : typeof l == "function" ? l(t) : l;
1807
+ function _t(n, t) {
1808
+ return n == null ? t || null : typeof n == "function" ? n(t) : n;
1808
1809
  }
1809
- async function Bl(l, t = {}) {
1810
- const n = t.document || l.resolvedOptions.document;
1811
- if (!n || !l.dirty)
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 l.hooks.callHook("dom:beforeRender", o), !!o.shouldRender)
1815
- return l._domUpdatePromise || (l._domUpdatePromise = new Promise(async (a) => {
1816
- const i = (await l.resolveTags()).map((m) => ({
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 = l._dom;
1822
+ let r = n._dom;
1822
1823
  if (!r) {
1823
1824
  r = {
1824
- elMap: { htmlAttrs: n.documentElement, bodyAttrs: n.body }
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 = n[g]?.children;
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 u({ id: m, $el: g, tag: w }) {
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" ? n.defaultView : g).addEventListener(
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 c = [], y = {
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
- n.title = g.textContent;
1895
+ l.title = g.textContent;
1895
1896
  continue;
1896
1897
  }
1897
- m.$el = m.$el || r.elMap[P], m.$el ? u(m) : Ne.has(g.tag) && c.push(m);
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 c) {
1901
+ for (const m of u) {
1901
1902
  const g = m.tag.tagPosition || "head";
1902
- m.$el = n.createElement(m.tag.tag), u(m), y[g] = y[g] || n.createDocumentFragment(), y[g].appendChild(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 l.hooks.callHook("dom:renderTag", m, n, p);
1906
- y.head && n.head.appendChild(y.head), y.bodyOpen && n.body.insertBefore(y.bodyOpen, n.body.firstChild), y.bodyClose && n.body.appendChild(y.bodyClose);
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
- l._dom = r, await l.hooks.callHook("dom:rendered", { renders: i }), a();
1910
+ n._dom = r, await n.hooks.callHook("dom:rendered", { renders: i }), a();
1910
1911
  }).finally(() => {
1911
- l._domUpdatePromise = void 0, l.dirty = !1;
1912
- })), l._domUpdatePromise;
1912
+ n._domUpdatePromise = void 0, n.dirty = !1;
1913
+ })), n._domUpdatePromise;
1913
1914
  }
1914
- function Il(l, t = {}) {
1915
- const n = t.delayFn || ((o) => setTimeout(o, 10));
1916
- return l._domDebouncedUpdatePromise = l._domDebouncedUpdatePromise || new Promise((o) => n(() => Bl(l, t).then(() => {
1917
- delete l._domDebouncedUpdatePromise, o();
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(l) {
1922
+ function Rl(n) {
1922
1923
  return (t) => {
1923
- const n = t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML || !1;
1924
- return n && t.push(JSON.parse(n)), {
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, l);
1929
+ Il(o, n);
1929
1930
  }
1930
1931
  }
1931
1932
  };
1932
1933
  };
1933
1934
  }
1934
- function nt(l, t = {}, n) {
1935
- for (const o in l) {
1936
- const a = l[o], i = n ? `${n}:${o}` : o;
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: (l) => l() }, El = () => Ll, Mt = typeof console.createTask < "u" ? console.createTask : El;
1942
- function Ul(l, t) {
1943
- const n = t.shift(), o = Mt(n);
1944
- return l.reduce(
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(l, t) {
1950
- const n = t.shift(), o = Mt(n);
1951
- return Promise.all(l.map((a) => o.run(() => a(...t))));
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(l, t) {
1954
- for (const n of [...l])
1955
- n(t);
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, n, o = {}) {
1962
- if (!t || typeof n != "function")
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 (!n.name)
1974
+ if (!l.name)
1974
1975
  try {
1975
- Object.defineProperty(n, "name", {
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(n), () => {
1982
- n && (this.removeHook(t, n), n = void 0);
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, n) {
1986
- let o, a = (...i) => (typeof o == "function" && o(), o = void 0, a = void 0, n(...i));
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, n) {
1990
+ removeHook(t, l) {
1990
1991
  if (this._hooks[t]) {
1991
- const o = this._hooks[t].indexOf(n);
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, n) {
1996
- this._deprecatedHooks[t] = typeof n == "string" ? { to: n } : n;
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 n in t)
2005
- this.deprecateHook(n, t[n]);
2005
+ for (const l in t)
2006
+ this.deprecateHook(l, t[l]);
2006
2007
  }
2007
2008
  addHooks(t) {
2008
- const n = nt(t), o = Object.keys(n).map(
2009
- (a) => this.hook(a, n[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 n = nt(t);
2018
- for (const o in n)
2019
- this.removeHook(o, n[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, ...n) {
2026
- return n.unshift(t), this.callHookWith(Ul, t, ...n);
2026
+ callHook(t, ...l) {
2027
+ return l.unshift(t), this.callHookWith(Ul, t, ...l);
2027
2028
  }
2028
- callHookParallel(t, ...n) {
2029
- return n.unshift(t), this.callHookWith(Ol, t, ...n);
2029
+ callHookParallel(t, ...l) {
2030
+ return l.unshift(t), this.callHookWith(Ol, t, ...l);
2030
2031
  }
2031
- callHookWith(t, n, ...o) {
2032
- const a = this._before || this._after ? { name: n, args: o, context: {} } : void 0;
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
- n in this._hooks ? [...this._hooks[n]] : [],
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 n = this._before.indexOf(t);
2046
- n !== -1 && this._before.splice(n, 1);
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 n = this._after.indexOf(t);
2054
- n !== -1 && this._after.splice(n, 1);
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: l }) => {
2065
- l.props.hid && (l.key = l.props.hid, delete l.props.hid), l.props.vmid && (l.key = l.props.vmid, delete l.props.vmid), l.props.key && (l.key = l.props.key, delete l.props.key);
2066
- const t = Nt(l);
2067
- t && !t.startsWith("meta:og:") && !t.startsWith("meta:twitter:") && delete l.key;
2068
- const n = t || (l.key ? `${l.tag}:${l.key}` : !1);
2069
- n && (l._d = n);
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": (l) => {
2072
+ "tags:resolve": (n) => {
2072
2073
  const t = /* @__PURE__ */ Object.create(null);
2073
- for (const o of l.tags) {
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 u = i.props;
2079
- u.style && o.props.style && (u.style[u.style.length - 1] !== ";" && (u.style += ";"), o.props.style = `${u.style} ${o.props.style}`), u.class && o.props.class ? o.props.class = `${u.class} ${o.props.class}` : u.class && (o.props.class = u.class), t[a].props = {
2080
- ...u,
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 n = [];
2097
+ const l = [];
2097
2098
  for (const o in t) {
2098
2099
  const a = t[o], i = a._duped;
2099
- n.push(a), i && (delete a._duped, n.push(...i));
2100
+ l.push(a), i && (delete a._duped, l.push(...i));
2100
2101
  }
2101
- l.tags = n, l.tags = l.tags.filter((o) => !(o.tag === "meta" && (o.props.name || o.props.property) && !o.props.content));
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 = (l) => ({
2105
+ }, xl = /* @__PURE__ */ new Set(["script", "link", "bodyAttrs"]), Wl = (n) => ({
2105
2106
  hooks: {
2106
2107
  "tags:resolve": (t) => {
2107
- for (const n of t.tags) {
2108
- if (!xl.has(n.tag))
2108
+ for (const l of t.tags) {
2109
+ if (!xl.has(l.tag))
2109
2110
  continue;
2110
- const o = n.props;
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" && (l.ssr && gt.has(a) ? o[a] = `this.dataset.${a}fired = true` : delete o[a], n._eventHandlers = n._eventHandlers || {}, n._eventHandlers[a] = i);
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
- l.ssr && n._eventHandlers && (n.props.src || n.props.href) && (n.key = n.key || Ie(n.props.src || n.props.href));
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: n }) => {
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) && n._eventHandlers?.[i]?.call(t, new Event(i.substring(2)));
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: l }) => {
2134
- l.key && Kl.has(l.tag) && (l.props["data-hid"] = l._h = Ie(l.key));
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": (l) => {
2141
+ "tags:beforeResolve": (n) => {
2141
2142
  const t = {};
2142
- let n = !1;
2143
- for (const o of l.tags)
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, n = !0);
2145
- n && l.tags.push({
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": (l) => {
2155
- for (const t of l.tags)
2155
+ "tags:resolve": (n) => {
2156
+ for (const t of n.tags)
2156
2157
  if (typeof t.tagPriority == "string")
2157
- for (const { prefix: n, offset: o } of Dl) {
2158
- if (!t.tagPriority.startsWith(n))
2158
+ for (const { prefix: l, offset: o } of Dl) {
2159
+ if (!t.tagPriority.startsWith(l))
2159
2160
  continue;
2160
- const a = t.tagPriority.substring(n.length), i = l.tags.find((r) => r._d === a)?._p;
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
- l.tags.sort((t, n) => {
2167
- const o = Re(t), a = Re(n);
2168
- return o < a ? -1 : o > a ? 1 : t._p - n._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 = (l) => ({
2177
+ }, Xl = ["innerHTML", "textContent"], Zl = (n) => ({
2177
2178
  hooks: {
2178
2179
  "tags:resolve": (t) => {
2179
- const { tags: n } = t;
2180
+ const { tags: l } = t;
2180
2181
  let o;
2181
- for (let r = 0; r < n.length; r += 1)
2182
- n[r].tag === "templateParams" && (o = t.tags.splice(r, 1)[0].props, r -= 1);
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 || n.find((r) => r.tag === "title")?.textContent || "",
2187
+ a.pageTitle || l.find((r) => r.tag === "title")?.textContent || "",
2187
2188
  a,
2188
2189
  i
2189
2190
  );
2190
- for (const r of n) {
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 u of Xl)
2198
- typeof r[u] == "string" && (r[u] = He(r[u], a, i));
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
- l._templateParams = a, l._separator = i;
2201
+ n._templateParams = a, n._separator = i;
2201
2202
  },
2202
2203
  "tags:afterResolve": ({ tags: t }) => {
2203
- let n;
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 && (n = a);
2207
+ a.tag === "title" && a.processTemplateParams !== !1 && (l = a);
2207
2208
  }
2208
- n?.textContent && (n.textContent = He(n.textContent, l._templateParams, l._separator));
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": (l) => {
2214
- const { tags: t } = l;
2215
- let n, o;
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" ? n = i : i.tag === "titleTemplate" && (o = i);
2219
+ i.tag === "title" ? l = i : i.tag === "titleTemplate" && (o = i);
2219
2220
  }
2220
- if (o && n) {
2221
+ if (o && l) {
2221
2222
  const a = _t(
2222
2223
  o.textContent,
2223
- n.textContent
2224
+ l.textContent
2224
2225
  );
2225
- a !== null ? n.textContent = a || n.textContent : l.tags.splice(l.tags.indexOf(n), 1);
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 && l.tags.splice(l.tags.indexOf(o), 1);
2233
+ o && n.tags.splice(n.tags.indexOf(o), 1);
2233
2234
  }
2234
2235
  }
2235
2236
  }, ta = {
2236
2237
  hooks: {
2237
- "tags:afterResolve": (l) => {
2238
- for (const t of l.tags)
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(l = {}) {
2245
- const t = na(l);
2245
+ function oa(n = {}) {
2246
+ const t = na(n);
2246
2247
  return t.use(/* @__PURE__ */ Rl()), t;
2247
2248
  }
2248
- function Tt(l, t) {
2249
- return !l || l === "server" && t || l === "client" && !t;
2249
+ function Tt(n, t) {
2250
+ return !n || n === "server" && t || n === "client" && !t;
2250
2251
  }
2251
- function na(l = {}) {
2252
+ function na(n = {}) {
2252
2253
  const t = ql();
2253
- t.addHooks(l.hooks || {}), l.document = l.document || (Cl ? document : void 0);
2254
- const n = !l.document, o = () => {
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: l,
2262
+ resolvedOptions: n,
2262
2263
  hooks: t,
2263
2264
  headEntries() {
2264
2265
  return i;
2265
2266
  },
2266
- use(u) {
2267
- const c = typeof u == "function" ? u(p) : u;
2268
- (!c.key || !r.some((y) => y.key === c.key)) && (r.push(c), Tt(c.mode, n) && t.addHooks(c.hooks || {}));
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(u, c) {
2271
- delete c?.head;
2271
+ push(c, u) {
2272
+ delete u?.head;
2272
2273
  const y = {
2273
2274
  _i: a++,
2274
- input: u,
2275
- ...c
2275
+ input: c,
2276
+ ...u
2276
2277
  };
2277
- return Tt(y.mode, n) && (i.push(y), o()), {
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 u = { tags: [], entries: [...i] };
2291
- await t.callHook("entries:resolve", u);
2292
- for (const c of u.entries) {
2293
- const y = c.resolvedInput || c.input;
2294
- if (c.resolvedInput = await (c.transform ? c.transform(y) : y), c.resolvedInput)
2295
- for (const m of await Sl(c)) {
2296
- const g = { tag: m, entry: c, resolvedOptions: p.resolvedOptions };
2297
- await t.callHook("tag:normalise", g), u.tags.push(g.tag);
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", u), await t.callHook("tags:resolve", u), await t.callHook("tags:afterResolve", u), u.tags;
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: n
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
- ...l?.plugins || []
2314
- ].forEach((u) => p.use(u)), p.hooks.callHook("init", p), p;
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(l) {
2318
- return typeof l == "function" ? l() : e(l);
2318
+ function aa(n) {
2319
+ return typeof n == "function" ? n() : e(n);
2319
2320
  }
2320
- function lt(l) {
2321
- if (l instanceof Promise || l instanceof Date || l instanceof RegExp)
2322
- return l;
2323
- const t = aa(l);
2324
- if (!l || !t)
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((n) => lt(n));
2328
+ return t.map((l) => lt(l));
2328
2329
  if (typeof t == "object") {
2329
- const n = {};
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
- n[o] = e(t[o]);
2334
+ l[o] = e(t[o]);
2334
2335
  continue;
2335
2336
  }
2336
- n[o] = lt(t[o]);
2337
+ l[o] = lt(t[o]);
2337
2338
  }
2338
- return n;
2339
+ return l;
2339
2340
  }
2340
2341
  return t;
2341
2342
  }
2342
2343
  const ia = {
2343
2344
  hooks: {
2344
- "entries:resolve": (l) => {
2345
- for (const t of l.entries)
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(l) {
2351
+ function ra(n) {
2351
2352
  return {
2352
- install(n) {
2353
- la && (n.config.globalProperties.$unhead = l, n.config.globalProperties.$head = l, n.provide(sa, l));
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(l = {}) {
2358
- l.domDelayFn = l.domDelayFn || ((n) => ko(() => setTimeout(() => n(), 0)));
2359
- const t = /* @__PURE__ */ oa(l);
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 n = document.createElement("div");
2375
- this.vueApp.mount(n), this.appendChild(n.children[0]);
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);