@konnectio/core 4.1.8 → 4.1.9

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 (60) hide show
  1. package/dist/{ActionField-Dk-DXAwr.js → ActionField-BuKxbqV7.js} +9 -9
  2. package/dist/ActionField-BuKxbqV7.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DYRL3P88.js → AvailabilitySkeleton-BlvXi0xW.js} +95 -95
  4. package/dist/AvailabilitySkeleton-BlvXi0xW.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-nsT92tpR.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BTNcOGLh.js} +438 -440
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BTNcOGLh.js.br +0 -0
  7. package/dist/{CheckoutWindow-C6ZIbVCh.js → CheckoutWindow-DwhpIiYi.js} +54 -54
  8. package/dist/CheckoutWindow-DwhpIiYi.js.br +0 -0
  9. package/dist/{ErrorMessage-B1KkvQPj.js → ErrorMessage-CFzuw9j3.js} +3 -3
  10. package/dist/ErrorMessage-CFzuw9j3.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CG8qrEj0.js → EventAvailabilityForm-ZZU_N5wA.js} +10 -10
  12. package/dist/EventAvailabilityForm-ZZU_N5wA.js.br +0 -0
  13. package/dist/{Field-CWGwwLaj.js → Field-oNxIsCLM.js} +11 -11
  14. package/dist/Field-oNxIsCLM.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-Uqwv8Dsu.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnsnaJRD.js} +5 -5
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-D9nK6TDz.js → SelectField.vue_vue_type_style_index_0_lang-DtzW1W2I.js} +2181 -2199
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DtzW1W2I.js.br +0 -0
  18. package/dist/{TermsOfService-DzFprATa.js → TermsOfService-DXELOUBd.js} +9 -9
  19. package/dist/_-C8wP6TJP.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-Blibp75Y.js → _.vue_vue_type_style_index_0_lang-C5yEglNb.js} +4 -4
  21. package/dist/availability.js +16 -16
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +8 -8
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.br +0 -0
  27. package/dist/deep-link.js +5 -5
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +98 -98
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +17 -17
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +19 -19
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-Bly36GyN.js → giftCard-CG-DSH3E.js} +3 -3
  36. package/dist/giftCard-CG-DSH3E.js.br +0 -0
  37. package/dist/hotel.js +331 -331
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-BH-453dy.js → masonry.plugin-BiWgaSkR.js} +490 -502
  40. package/dist/masonry.plugin-BiWgaSkR.js.br +0 -0
  41. package/dist/{mitt-tv_9an17.js → mitt-BysJOgFD.js} +1782 -1795
  42. package/dist/mitt-BysJOgFD.js.br +0 -0
  43. package/dist/polyfill.js +1 -1
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/{style-9BJALyEF.js → style-CFj6q1kW.js} +51 -51
  46. package/dist/style-CFj6q1kW.js.br +0 -0
  47. package/package.json +13 -13
  48. package/dist/ActionField-Dk-DXAwr.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DYRL3P88.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-nsT92tpR.js.br +0 -0
  51. package/dist/CheckoutWindow-C6ZIbVCh.js.br +0 -0
  52. package/dist/ErrorMessage-B1KkvQPj.js.br +0 -0
  53. package/dist/EventAvailabilityForm-CG8qrEj0.js.br +0 -0
  54. package/dist/Field-CWGwwLaj.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-D9nK6TDz.js.br +0 -0
  56. package/dist/_-DpUIPKVA.js +0 -5
  57. package/dist/giftCard-Bly36GyN.js.br +0 -0
  58. package/dist/masonry.plugin-BH-453dy.js.br +0 -0
  59. package/dist/mitt-tv_9an17.js.br +0 -0
  60. package/dist/style-9BJALyEF.js.br +0 -0
package/dist/core.css.br CHANGED
Binary file
package/dist/deep-link.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as c, r as o, o as l, a as d, g as u, e as r, t as h, q as i, k as m, l as f, m as v, p as k, _ } from "./mitt-tv_9an17.js";
1
+ import { d as c, r as o, o as l, h as d, b as u, e as r, q as i, t as h, k as m, _ as f, l as v, m as k, p as _ } from "./mitt-BysJOgFD.js";
2
2
  const A = ["href"], p = /* @__PURE__ */ c({
3
3
  name: "KonnectioDeepLink",
4
4
  __name: "DeepLink",
@@ -14,7 +14,7 @@ const A = ["href"], p = /* @__PURE__ */ c({
14
14
  return l(() => {
15
15
  const t = new URL(e.baseurl || location.href);
16
16
  e.adults && t.searchParams.append("adults", e.adults), e.children && t.searchParams.append("children", e.children), n.value = t.href;
17
- }), (t, w) => (d(), u("div", {
17
+ }), (t, w) => (u(), d("div", {
18
18
  ref_key: "test",
19
19
  ref: s
20
20
  }, [
@@ -25,7 +25,7 @@ const A = ["href"], p = /* @__PURE__ */ c({
25
25
  ], 8, A)
26
26
  ], 512));
27
27
  }
28
- }), b = m(), C = _, E = C();
28
+ }), b = m(), C = f, E = C();
29
29
  class L extends HTMLElement {
30
30
  vueApp;
31
31
  constructor() {
@@ -35,8 +35,8 @@ class L extends HTMLElement {
35
35
  this.vueApp.unmount();
36
36
  }
37
37
  connectedCallback() {
38
- const s = f(p, this.attributes);
39
- this.vueApp = v(p, s), this.vueApp.provide("emitter", E), this.vueApp.use(k), this.vueApp.use(b);
38
+ const s = v(p, this.attributes);
39
+ this.vueApp = k(p, s), this.vueApp.provide("emitter", E), this.vueApp.use(_), this.vueApp.use(b);
40
40
  const e = document.createElement("div");
41
41
  this.vueApp.mount(e), this.appendChild(e.children[0]);
42
42
  }
Binary file
package/dist/event.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d as Q, u as ae, s as W, c as Z, r as Se, a as l, b as w, w as c, q as X, i as e, e as t, j as p, f as m, n as xe, g as d, t as a, o as et, h as tt, v as de, x as nt, y as at, F as R, z as j, A as U, S as ot, k as lt, l as st, m as it, p as rt, _ as ut } from "./mitt-tv_9an17.js";
2
- import { a as Ee, f as x, g as ue, l as dt, s as z, d as ce, B as ct, _ as ee, h as me, I as ne, i as mt, u as $e, j as pt, k as vt, m as bt, n as we, o as K, p as ft, q as Ve, T as re, O as gt, C as kt, r as yt, t as ht, v as Dt } from "./SelectField.vue_vue_type_style_index_0_lang-D9nK6TDz.js";
3
- import { G as Pt } from "./style-9BJALyEF.js";
4
- import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-Blibp75Y.js";
5
- import { B as $t, _ as wt, R as Et, L as Ae, S as Ot, M as Vt, C as Nt, T as Tt, V as Bt, a as Lt } from "./masonry.plugin-BH-453dy.js";
6
- import { e as Ct, c as Ft, n as St, g as Ne, m as Te, a as Be, b as Le, d as At, f as Ce, _ as It } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-nsT92tpR.js";
7
- import { C as Rt, P as Mt, a as Ut } from "./CheckoutWindow-C6ZIbVCh.js";
8
- import { E as zt } from "./EventAvailabilityForm-CG8qrEj0.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-Uqwv8Dsu.js";
1
+ import { d as Q, u as ae, s as W, c as Z, r as Se, a as $, b as l, g as e, w as c, q as X, e as t, i as p, f as m, n as xe, h as d, t as a, o as et, j as tt, v as de, x as nt, y as U, z as at, A as j, F as I, S as ot, k as lt, _ as st, l as it, m as rt, p as ut } from "./mitt-BysJOgFD.js";
2
+ import { a as Ee, f as x, B as dt, g as ue, l as ct, s as z, e as ce, _ as ee, h as me, I as ne, i as mt, u as $e, j as pt, k as vt, m as bt, n as K, o as we, T as re, O as ft, p as gt, q as Ve, C as kt, r as yt, t as ht, v as Dt } from "./SelectField.vue_vue_type_style_index_0_lang-DtzW1W2I.js";
3
+ import { G as Pt } from "./style-CFj6q1kW.js";
4
+ import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-C5yEglNb.js";
5
+ import { B as $t, _ as wt, R as Et, L as Ae, S as Ot, M as Vt, T as Nt, C as Tt, V as Bt, a as Lt } from "./masonry.plugin-BiWgaSkR.js";
6
+ import { g as Ct, e as Ft, c as St, n as At, a as Ne, m as Te, b as Be, d as Le, f as Ce, _ as It } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BTNcOGLh.js";
7
+ import { C as Rt, P as Mt, a as Ut } from "./CheckoutWindow-DwhpIiYi.js";
8
+ import { E as zt } from "./EventAvailabilityForm-ZZU_N5wA.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnsnaJRD.js";
10
10
  function Gt(y) {
11
11
  return (o) => {
12
12
  const h = (y ? Math[y] : Math.trunc)(o);
@@ -14,35 +14,35 @@ function Gt(y) {
14
14
  };
15
15
  }
16
16
  function qt(y, o, n) {
17
- const h = At(), v = n?.locale ?? h.locale ?? Ct, i = Ft(y, o);
17
+ const h = Ct(), v = n?.locale ?? h.locale ?? Ft, i = St(y, o);
18
18
  if (isNaN(i))
19
19
  throw new RangeError("Invalid time value");
20
20
  const g = Object.assign({}, n, {
21
21
  addSuffix: n?.addSuffix,
22
22
  comparison: i
23
- }), [O, k] = St(
23
+ }), [O, k] = At(
24
24
  n?.in,
25
25
  ...i > 0 ? [o, y] : [y, o]
26
- ), s = Gt(n?.roundingMethod ?? "round"), V = k.getTime() - O.getTime(), D = V / Ce, L = Ne(k) - Ne(O), b = (V - L) / Ce, A = n?.unit;
27
- let P;
28
- if (A ? P = A : D < 1 ? P = "second" : D < 60 ? P = "minute" : D < Te ? P = "hour" : b < Be ? P = "day" : b < Le ? P = "month" : P = "year", P === "second") {
29
- const _ = s(V / 1e3);
30
- return v.formatDistance("xSeconds", _, g);
31
- } else if (P === "minute") {
32
- const _ = s(D);
33
- return v.formatDistance("xMinutes", _, g);
34
- } else if (P === "hour") {
35
- const _ = s(D / 60);
36
- return v.formatDistance("xHours", _, g);
37
- } else if (P === "day") {
38
- const _ = s(b / Te);
39
- return v.formatDistance("xDays", _, g);
40
- } else if (P === "month") {
41
- const _ = s(b / Be);
42
- return _ === 12 && A !== "month" ? v.formatDistance("xYears", 1, g) : v.formatDistance("xMonths", _, g);
26
+ ), s = Gt("round"), V = k.getTime() - O.getTime(), D = V / Ce, L = Ne(k) - Ne(O), b = (V - L) / Ce, R = n?.unit;
27
+ let w;
28
+ if (D < 1 ? w = "second" : D < 60 ? w = "minute" : D < Te ? w = "hour" : b < Be ? w = "day" : b < Le ? w = "month" : w = "year", w === "second") {
29
+ const P = s(V / 1e3);
30
+ return v.formatDistance("xSeconds", P, g);
31
+ } else if (w === "minute") {
32
+ const P = s(D);
33
+ return v.formatDistance("xMinutes", P, g);
34
+ } else if (w === "hour") {
35
+ const P = s(D / 60);
36
+ return v.formatDistance("xHours", P, g);
37
+ } else if (w === "day") {
38
+ const P = s(b / Te);
39
+ return v.formatDistance("xDays", P, g);
40
+ } else if (w === "month") {
41
+ const P = s(b / Be);
42
+ return P === 12 && R !== "month" ? v.formatDistance("xYears", 1, g) : v.formatDistance("xMonths", P, g);
43
43
  } else {
44
- const _ = s(b / Le);
45
- return v.formatDistance("xYears", _, g);
44
+ const P = s(b / Le);
45
+ return v.formatDistance("xYears", P, g);
46
46
  }
47
47
  }
48
48
  const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__ */ Q({
@@ -80,7 +80,7 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
80
80
  getTemplateAvailability: s,
81
81
  getEventAvailability: V,
82
82
  isEventListingLoading: D
83
- } = x(), L = Z(() => n.maxGuests || n.maxOnlineReservationLimit || v.value || 1 / 0), b = Se(0), A = Z(() => D(n.listingId)), P = () => {
83
+ } = x(), L = Z(() => n.maxGuests || n.maxOnlineReservationLimit || v.value || 1 / 0), b = Se(0), R = Z(() => D(n.listingId)), w = () => {
84
84
  if (!n.useNumberOfProductsForPersons && (b.value === 0 || isNaN(b.value))) {
85
85
  h({
86
86
  type: "error",
@@ -89,7 +89,7 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
89
89
  return;
90
90
  }
91
91
  g.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : b.value, s(n.callback);
92
- }, _ = () => {
92
+ }, P = () => {
93
93
  if (!n.useNumberOfProductsForPersons && (b.value === 0 || isNaN(b.value))) {
94
94
  h({
95
95
  type: "error",
@@ -99,7 +99,7 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
99
99
  }
100
100
  g.value = n.listingId, k.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : b.value, V(n.callback);
101
101
  };
102
- return (f, F) => (l(), w($t, {
102
+ return (f, F) => (l(), $($t, {
103
103
  type: "event",
104
104
  "listing-id": f.listingId,
105
105
  gallery: f.gallery,
@@ -107,7 +107,7 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
107
107
  description: f.description,
108
108
  "prices-from": f.fromPrice,
109
109
  "to-date": f.toDate,
110
- layout: e(ct).Event,
110
+ layout: e(dt).Event,
111
111
  "disable-deep-link": f.disableDeepLink
112
112
  }, {
113
113
  description: c(() => [
@@ -121,15 +121,15 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
121
121
  { "no-selectable-people": f.useNumberOfProductsForPersons }
122
122
  ])
123
123
  }, [
124
- f.useNumberOfProductsForPersons ? p("", !0) : (l(), w(ue, {
124
+ f.useNumberOfProductsForPersons ? p("", !0) : (l(), $(ue, {
125
125
  key: 0,
126
126
  modelValue: b.value,
127
- "onUpdate:modelValue": F[0] || (F[0] = (I) => b.value = I),
127
+ "onUpdate:modelValue": F[0] || (F[0] = (A) => b.value = A),
128
128
  label: e(o)("event.numberOfGuests"),
129
129
  icon: "users",
130
130
  "icon-type": "fas",
131
131
  "icon-placement": "label",
132
- description: L.value <= 20 ? `${e(o)("general.availableFor")}: 1 - ${L.value} ${e(dt)(e(o)("general.guests"))}` : void 0,
132
+ description: L.value <= 20 ? `${e(o)("general.availableFor")}: 1 - ${L.value} ${e(ct)(e(o)("general.guests"))}` : void 0,
133
133
  "min-value": 0,
134
134
  "max-value": L.value
135
135
  }, null, 8, ["modelValue", "label", "description", "max-value"])),
@@ -137,10 +137,10 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
137
137
  m(ce, {
138
138
  label: f.soldOut ? e(o)("event.soldOut") : e(o)("event.bookNowButton"),
139
139
  disabled: f.soldOut,
140
- "is-loading": A.value,
140
+ "is-loading": R.value,
141
141
  "full-width": "",
142
142
  "sub-label": e(z)(e(O)),
143
- onClickEvent: F[1] || (F[1] = (I) => f.type === "event" ? _() : P())
143
+ onClickEvent: F[1] || (F[1] = (A) => f.type === "event" ? P() : w())
144
144
  }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
145
145
  ])
146
146
  ], 2)
@@ -183,7 +183,7 @@ const Wt = {
183
183
  new Date(2e3, 0, 1, 0, 0, 0)
184
184
  );
185
185
  });
186
- return (i, g) => (l(), w(Ie, {
186
+ return (i, g) => (l(), $(Ie, {
187
187
  "listing-id": i.listingId,
188
188
  name: i.name,
189
189
  description: i.description,
@@ -198,7 +198,7 @@ const Wt = {
198
198
  callback: i.callback
199
199
  }, {
200
200
  description: c(() => [
201
- i.description ? (l(), w(wt, {
201
+ i.description ? (l(), $(wt, {
202
202
  key: 0,
203
203
  text: i.description
204
204
  }, null, 8, ["text"])) : p("", !0),
@@ -261,10 +261,10 @@ const Wt = {
261
261
  type: "error"
262
262
  });
263
263
  }
264
- const O = Z(() => vt(i.fromDate, i.toDate) <= 1), k = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !bt(i.days).includes(s)));
264
+ const O = Z(() => pt(i.fromDate, i.toDate) <= 1), k = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(i.days).includes(s)));
265
265
  return et(() => {
266
266
  O.value && (v.value = new Date(i.fromDate));
267
- }), (s, V) => (l(), w(Re, {
267
+ }), (s, V) => (l(), $(Re, {
268
268
  name: s.name,
269
269
  description: s.description,
270
270
  "from-date": s.fromDate,
@@ -313,7 +313,7 @@ const Wt = {
313
313
  t("u", null, a(e(z)(s.fromDate)), 1)
314
314
  ])) : (l(), d("span", en, [
315
315
  de("*" + a(e(o)("event.canBeBooked")) + " ", 1),
316
- t("u", null, a(e(pt)(s.days)), 1)
316
+ t("u", null, a(e(bt)(s.days)), 1)
317
317
  ]))
318
318
  ])
319
319
  ])
@@ -338,7 +338,7 @@ const Wt = {
338
338
  callback: {}
339
339
  },
340
340
  setup(y) {
341
- return (o, n) => (l(), w(Ie, {
341
+ return (o, n) => (l(), $(Ie, {
342
342
  "listing-id": o.listingId,
343
343
  gallery: o.images,
344
344
  name: o.name,
@@ -372,23 +372,23 @@ const Wt = {
372
372
  fromDate: D,
373
373
  tableBasePrice: L,
374
374
  getTemplateData: b,
375
- basePrice: A,
376
- totalPrice: P,
377
- weekendFee: _,
375
+ basePrice: R,
376
+ totalPrice: w,
377
+ weekendFee: P,
378
378
  roomUpgrade: f,
379
379
  discountCode: F,
380
- totalSelectedProducts: I
380
+ totalSelectedProducts: A
381
381
  } = W(x()), { totalAddonPrice: pe, validateDiscountCode: ve } = x(), { currency: oe, hideEventLength: be } = W(me());
382
- return (M, le) => (l(), w(Et, {
382
+ return (M, le) => (l(), $(Et, {
383
383
  "discount-code": e(F),
384
384
  "onUpdate:discountCode": le[0] || (le[0] = (J) => U(F) ? F.value = J : null),
385
385
  "validate-discount-code": e(ve),
386
386
  "show-gift-card": M.showGiftCard,
387
387
  "show-terms-notice": M.showTermsNotice,
388
388
  "is-sidebar-loading": !e(h),
389
- "base-price": e(A),
390
- "total-price": e(P),
391
- "weekend-fee": e(_),
389
+ "base-price": e(R),
390
+ "total-price": e(w),
391
+ "weekend-fee": e(P),
392
392
  "room-upgrade": e(f),
393
393
  notice: e(o)("event.reservationNotice"),
394
394
  "prev-callback": M.prevCallback
@@ -405,11 +405,11 @@ const Wt = {
405
405
  t("span", null, a(e(o)("event.numberOfGuests")), 1),
406
406
  t("b", null, a(e(i)), 1)
407
407
  ])) : p("", !0),
408
- !e(k) && e(I) > 0 ? (l(), d("li", sn, [
408
+ !e(k) && e(A) > 0 ? (l(), d("li", sn, [
409
409
  t("span", null, a(e(o)("event.numberOfProducts")), 1),
410
- t("b", null, a(e(I)), 1)
410
+ t("b", null, a(e(A)), 1)
411
411
  ])) : p("", !0),
412
- e(k) ? (l(), d(R, { key: 3 }, [
412
+ e(k) ? (l(), d(I, { key: 3 }, [
413
413
  t("li", null, [
414
414
  t("span", null, a(e(o)("booking.reservation.arrival")), 1),
415
415
  t("b", null, a(e(z)(e(D))), 1)
@@ -441,7 +441,7 @@ const Wt = {
441
441
  t("span", null, a(e(o)("booking.availability.basePrice")), 1),
442
442
  t("b", null, a(e(K)(e(L), e(oe))), 1)
443
443
  ])) : p("", !0),
444
- e(b) ? (l(!0), d(R, { key: 1 }, j(e(b), ({ roomGroupId: J }, se) => (l(), d("li", { key: J }, [
444
+ e(b) ? (l(!0), d(I, { key: 1 }, j(e(b), ({ roomGroupId: J }, se) => (l(), d("li", { key: J }, [
445
445
  t("span", null, a(e(o)("booking.reservation.addons")) + " - " + a(e(o)("booking.reservation.room")) + " #" + a(se + 1), 1),
446
446
  t("b", null, a(e(K)(e(pe)(J, se), e(oe))), 1)
447
447
  ]))), 128)) : p("", !0)
@@ -457,7 +457,7 @@ const Wt = {
457
457
  ]))
458
458
  ]),
459
459
  "mobile-summary": c(() => [
460
- !e(k) && e(I) > 0 ? (l(), d("span", pn, a(e(o)("event.numberOfProducts")) + ": " + a(e(I)), 1)) : p("", !0)
460
+ !e(k) && e(A) > 0 ? (l(), d("span", pn, a(e(o)("event.numberOfProducts")) + ": " + a(e(A)), 1)) : p("", !0)
461
461
  ]),
462
462
  _: 2
463
463
  }, [
@@ -518,12 +518,12 @@ const Wt = {
518
518
  arrivalTime: D,
519
519
  hasEvents: L,
520
520
  hasTemplates: b,
521
- getEvents: A,
522
- getTemplates: P,
523
- getEventData: _,
521
+ getEvents: R,
522
+ getTemplates: w,
523
+ getEventData: P,
524
524
  getTemplateData: f,
525
525
  getEventTableData: F,
526
- hasProducts: I,
526
+ hasProducts: A,
527
527
  eventRateType: pe,
528
528
  areListingsAvailable: ve,
529
529
  isAvailabilityDataAvailable: oe,
@@ -568,25 +568,25 @@ const Wt = {
568
568
  icon: "calendar-check"
569
569
  }
570
570
  ]), Je = Z(() => {
571
- const $ = [];
571
+ const _ = [];
572
572
  return F.value && F.value.forEach((u) => {
573
- $.find((B) => B.value === u.time) || $.push({
573
+ _.find((B) => B.value === u.time) || _.push({
574
574
  label: we(u.time),
575
575
  value: u.time
576
576
  });
577
- }), $;
577
+ }), _;
578
578
  });
579
579
  function Ke() {
580
580
  Ze(o.resetDate === "yes");
581
581
  }
582
582
  function Xe() {
583
- const $ = yt("history", {
583
+ const _ = yt("history", {
584
584
  removeNullishValues: !0
585
- }), u = parseInt($.rid), B = $.d, N = parseInt($.eid);
585
+ }), u = parseInt(_.rid), B = _.d, N = parseInt(_.eid);
586
586
  if (B)
587
587
  if (ht(B)) {
588
588
  const r = new Date(B), C = r.setHours(12, 0, 0, 0), S = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
589
- C >= S ? (Ue.value = r, $.d = void 0) : ge({
589
+ C >= S ? (Ue.value = r, _.d = void 0) : ge({
590
590
  message: n("alert.error.invalidDateRange"),
591
591
  type: "error"
592
592
  });
@@ -595,18 +595,18 @@ const Wt = {
595
595
  message: n("alert.error.wrongDateFormat"),
596
596
  type: "error"
597
597
  });
598
- isNaN(u) || (Ge(u) ? ze.value = u : ($.rid = void 0, ge({
598
+ isNaN(u) || (Ge(u) ? ze.value = u : (_.rid = void 0, ge({
599
599
  message: n("alert.error.hotelIdNotFound"),
600
600
  type: "error"
601
601
  }))), isNaN(N) || Me(N), He();
602
602
  }
603
- return ($, u) => (l(), w(kt, { styling: $.styling }, {
603
+ return (_, u) => (l(), $(kt, { styling: _.styling }, {
604
604
  default: c(() => [
605
- (l(), w(ot, { onResolve: Xe }, {
605
+ (l(), $(ot, { onResolve: Xe }, {
606
606
  default: c(() => [
607
607
  m(_t, {
608
608
  id: "konnectio-event-module",
609
- "access-token": $.accessToken,
609
+ "access-token": _.accessToken,
610
610
  callback: e(qe)
611
611
  }, {
612
612
  default: c(() => [
@@ -619,12 +619,12 @@ const Wt = {
619
619
  sidebar: c(() => [
620
620
  m(zt, {
621
621
  redirection: !1,
622
- "selected-location": Number($.selectedLocation)
622
+ "selected-location": Number(_.selectedLocation)
623
623
  }, null, 8, ["selected-location"])
624
624
  ]),
625
625
  form: c(() => [
626
626
  e(be) && e(ve) ? (l(), d("div", hn, [
627
- e(A).length > 0 && e(fe).length > 0 ? (l(), d("h2", Dn, [
627
+ e(R).length > 0 && e(fe).length > 0 ? (l(), d("h2", Dn, [
628
628
  m(ne, {
629
629
  icon: "calendar-clock",
630
630
  type: "fal",
@@ -633,7 +633,7 @@ const Wt = {
633
633
  t("span", null, a(e(n)("event.availableNow")), 1)
634
634
  ])) : p("", !0),
635
635
  t("ul", Pn, [
636
- e(L) && $.onlyShow !== "templates" ? (l(!0), d(R, { key: 0 }, j(e(A), ({
636
+ e(L) && _.onlyShow !== "templates" ? (l(!0), d(I, { key: 0 }, j(e(R), ({
637
637
  id: N,
638
638
  days: r,
639
639
  name: C,
@@ -650,7 +650,7 @@ const Wt = {
650
650
  maxPaxPerReservation: he,
651
651
  useNumberOfProductsForPersons: De,
652
652
  maxTicketsLimit: Pe
653
- }) => (l(), w(Re, {
653
+ }) => (l(), $(Re, {
654
654
  key: N,
655
655
  type: "event",
656
656
  "listing-id": N,
@@ -669,7 +669,7 @@ const Wt = {
669
669
  "use-number-of-products-for-persons": De,
670
670
  callback: B
671
671
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "callback"]))), 128)) : p("", !0),
672
- e(b) && $.onlyShow !== "events" ? (l(!0), d(R, { key: 1 }, j(e(P), ({
672
+ e(b) && _.onlyShow !== "events" ? (l(!0), d(I, { key: 1 }, j(e(w), ({
673
673
  id: N,
674
674
  name: r,
675
675
  fromDate: C,
@@ -679,7 +679,7 @@ const Wt = {
679
679
  description: G,
680
680
  imageUrl: q,
681
681
  images: H
682
- }) => (l(), w(an, {
682
+ }) => (l(), $(an, {
683
683
  key: N,
684
684
  "listing-id": N,
685
685
  name: r,
@@ -693,7 +693,7 @@ const Wt = {
693
693
  callback: B
694
694
  }, null, 8, ["listing-id", "name", "image", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : p("", !0)
695
695
  ]),
696
- e(fe).length > 0 && $.onlyShow !== "templates" ? (l(), d(R, { key: 1 }, [
696
+ e(fe).length > 0 && _.onlyShow !== "templates" ? (l(), d(I, { key: 1 }, [
697
697
  t("h2", _n, [
698
698
  m(ne, {
699
699
  icon: "calendar-circle-exclamation",
@@ -703,7 +703,7 @@ const Wt = {
703
703
  t("span", null, a(e(n)("event.availableLater")), 1)
704
704
  ]),
705
705
  t("ul", $n, [
706
- (l(!0), d(R, null, j(e(fe), ({
706
+ (l(!0), d(I, null, j(e(fe), ({
707
707
  id: N,
708
708
  days: r,
709
709
  name: C,
@@ -720,7 +720,7 @@ const Wt = {
720
720
  maxPaxPerReservation: he,
721
721
  useNumberOfProductsForPersons: De,
722
722
  maxTicketsLimit: Pe
723
- }) => (l(), w(nn, {
723
+ }) => (l(), $(nn, {
724
724
  key: N,
725
725
  type: "event",
726
726
  "listing-id": N,
@@ -741,18 +741,18 @@ const Wt = {
741
741
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "callback"]))), 128))
742
742
  ])
743
743
  ], 64)) : p("", !0),
744
- !e(L) && !e(b) || !e(L) && $.onlyShow === "events" || !e(b) && $.onlyShow === "templates" ? (l(), d("div", {
744
+ !e(L) && !e(b) || !e(L) && _.onlyShow === "events" || !e(b) && _.onlyShow === "templates" ? (l(), d("div", {
745
745
  key: 2,
746
746
  class: "konnectio-panel",
747
747
  innerHTML: e(n)("event.nothingAvailable")
748
748
  }, null, 8, wn)) : p("", !0)
749
- ])) : (l(), w(Ae, { key: 1 }))
749
+ ])) : (l(), $(Ae, { key: 1 }))
750
750
  ]),
751
751
  _: 2
752
752
  }, 1024)
753
753
  ]),
754
754
  addons: c(({ next: B, prev: N }) => [
755
- e(oe) ? (l(), w(_e, {
755
+ e(oe) ? (l(), $(_e, {
756
756
  key: 0,
757
757
  "prev-callback": () => e(Oe)(N)
758
758
  }, {
@@ -762,7 +762,7 @@ const Wt = {
762
762
  t("span", null, a(e(n)("event.selectProducts")), 1)
763
763
  ]),
764
764
  e(f) && e(f).length > 0 ? (l(), d("ul", On, [
765
- (l(!0), d(R, null, j(e(f), ({
765
+ (l(!0), d(I, null, j(e(f), ({
766
766
  roomGroupId: r,
767
767
  addons: C,
768
768
  adultPerRoom: S
@@ -790,7 +790,7 @@ const Wt = {
790
790
  ])
791
791
  ]),
792
792
  t("tbody", null, [
793
- (l(!0), d(R, null, j(C, ({
793
+ (l(!0), d(I, null, j(C, ({
794
794
  id: T,
795
795
  cardinality: G,
796
796
  name: q,
@@ -800,16 +800,16 @@ const Wt = {
800
800
  t("td", null, [
801
801
  t("b", null, a(q), 1),
802
802
  u[9] || (u[9] = t("br", null, null, -1)),
803
- t("span", null, a(e(K)(H, e(ie))) + " " + a(e(ft)(te)), 1)
803
+ t("span", null, a(e(K)(H, e(ie))) + " " + a(e(gt)(te)), 1)
804
804
  ]),
805
805
  t("td", Tn, [
806
- G === 3 ? (l(), w(ue, {
806
+ G === 3 ? (l(), $(ue, {
807
807
  key: 0,
808
808
  modelValue: e(h)[`${r}.${T}.${E}`],
809
809
  "onUpdate:modelValue": (Y) => e(h)[`${r}.${T}.${E}`] = Y,
810
810
  small: !0,
811
811
  "min-value": 0
812
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), w(Rt, {
812
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), $(Ut, {
813
813
  key: 1,
814
814
  modelValue: e(h)[`${r}.${T}.${E}`],
815
815
  "onUpdate:modelValue": (Y) => e(h)[`${r}.${T}.${E}`] = Y,
@@ -835,9 +835,9 @@ const Wt = {
835
835
  ])
836
836
  ]))), 128))
837
837
  ])) : p("", !0),
838
- e(I) ? (l(), d("table", Cn, [
838
+ e(A) ? (l(), d("table", Cn, [
839
839
  t("tbody", null, [
840
- (l(!0), d(R, null, j(e(_).products, ({ id: r, name: C, price: S, description: E }) => (l(), d("tr", { key: r }, [
840
+ (l(!0), d(I, null, j(e(P).products, ({ id: r, name: C, price: S, description: E }) => (l(), d("tr", { key: r }, [
841
841
  t("td", Fn, [
842
842
  t("b", null, [
843
843
  t("span", null, a(e(Ve)(C)), 1)
@@ -908,7 +908,7 @@ const Wt = {
908
908
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
909
909
  required: ""
910
910
  }, null, 8, ["modelValue", "label", "placeholder"]),
911
- e(J) ? (l(), w(Nt, {
911
+ e(J) ? (l(), $(Tt, {
912
912
  key: 0,
913
913
  modelValue: e(D),
914
914
  "onUpdate:modelValue": u[3] || (u[3] = (r) => U(D) ? D.value = r : null),
@@ -917,7 +917,7 @@ const Wt = {
917
917
  checkboxes: Je.value,
918
918
  required: ""
919
919
  }, null, 8, ["modelValue", "label", "checkboxes"])) : p("", !0),
920
- e(pe) === e(gt).FullDayEvent ? (l(), w(ue, {
920
+ e(pe) === e(ft).FullDayEvent ? (l(), $(ue, {
921
921
  key: 1,
922
922
  modelValue: e(i),
923
923
  "onUpdate:modelValue": u[4] || (u[4] = (r) => U(i) ? i.value = r : null),
@@ -956,10 +956,10 @@ const Wt = {
956
956
  }, 1032, ["prev-callback"])
957
957
  ]),
958
958
  payment: c(() => [
959
- m(Ut)
959
+ m(Rt)
960
960
  ]),
961
961
  confirmation: c(() => [
962
- m(Tt, {
962
+ m(Nt, {
963
963
  message: e(n)("event.confirmationMessage")
964
964
  }, null, 8, ["message"])
965
965
  ]),
@@ -978,7 +978,7 @@ const Wt = {
978
978
  _: 1
979
979
  }, 8, ["styling"]));
980
980
  }
981
- }), Fe = /* @__PURE__ */ ee(Rn, [["__scopeId", "data-v-5fed527b"]]), Mn = lt(), Un = ut, zn = Un();
981
+ }), Fe = /* @__PURE__ */ ee(Rn, [["__scopeId", "data-v-5fed527b"]]), Mn = lt(), Un = st, zn = Un();
982
982
  class Gn extends HTMLElement {
983
983
  vueApp;
984
984
  constructor() {
@@ -988,8 +988,8 @@ class Gn extends HTMLElement {
988
988
  this.vueApp.unmount();
989
989
  }
990
990
  connectedCallback() {
991
- const o = st(Fe, this.attributes);
992
- this.vueApp = it(Fe, o), this.vueApp.provide("emitter", zn), this.vueApp.use(rt), this.vueApp.use(Mn), this.vueApp.use(Bt), this.vueApp.use(Pt), this.vueApp.use(Lt), this.vueApp.use(Dt, { bootstrap: !0 });
991
+ const o = it(Fe, this.attributes);
992
+ this.vueApp = rt(Fe, o), this.vueApp.provide("emitter", zn), this.vueApp.use(ut), this.vueApp.use(Mn), this.vueApp.use(Bt), this.vueApp.use(Pt), this.vueApp.use(Lt), this.vueApp.use(Dt, { bootstrap: !0 });
993
993
  const n = document.createElement("div");
994
994
  this.vueApp.mount(n), this.appendChild(n.children[0]);
995
995
  }
package/dist/event.js.br CHANGED
Binary file
@@ -1,13 +1,13 @@
1
- import { d as A, a as s, g as v, e as t, f as a, c as T, u as $, s as k, b as m, w as p, S as B, i as e, t as i, A as b, j as I, h as D, k as N, l as U, m as F, p as H, _ as R } from "./mitt-tv_9an17.js";
2
- import { _ as x, y as C, h as j, I as h, o as O, s as W, C as q } from "./SelectField.vue_vue_type_style_index_0_lang-D9nK6TDz.js";
3
- import { u as z } from "./giftCard-Bly36GyN.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-Blibp75Y.js";
5
- import { A as K } from "./ActionField-Dk-DXAwr.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-Uqwv8Dsu.js";
7
- import { F as y } from "./Field-CWGwwLaj.js";
8
- import { E as Q } from "./ErrorMessage-B1KkvQPj.js";
9
- import { G as Y } from "./style-9BJALyEF.js";
10
- const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ A({
1
+ import { d as x, h as v, b as s, e as t, f as a, c as T, u as $, s as k, a as m, w as p, S as B, g as e, j as I, i as D, t as i, y as b, k as N, _ as U, l as F, m as H, p as R } from "./mitt-BysJOgFD.js";
2
+ import { _ as A, y as C, h as j, I as h, n as O, s as W, C as q } from "./SelectField.vue_vue_type_style_index_0_lang-DtzW1W2I.js";
3
+ import { u as z } from "./giftCard-CG-DSH3E.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-C5yEglNb.js";
5
+ import { A as K } from "./ActionField-BuKxbqV7.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnsnaJRD.js";
7
+ import { F as y } from "./Field-oNxIsCLM.js";
8
+ import { E as Q } from "./ErrorMessage-CFzuw9j3.js";
9
+ import { G as Y } from "./style-CFj6q1kW.js";
10
+ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ x({
11
11
  __name: "GiftCardValidationSkeleton",
12
12
  setup(u) {
13
13
  return (d, l) => (s(), v("div", Z, [
@@ -24,11 +24,11 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
24
24
  ])
25
25
  ]));
26
26
  }
27
- }), ot = /* @__PURE__ */ x(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
27
+ }), ot = /* @__PURE__ */ A(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
28
28
  key: 0,
29
29
  id: "konnectio-gift-card-validation-resume",
30
30
  class: "konnectio-panel"
31
- }, lt = /* @__PURE__ */ A({
31
+ }, lt = /* @__PURE__ */ x({
32
32
  name: "GiftCardValidationLayout",
33
33
  __name: "GiftCardValidation",
34
34
  props: {
@@ -63,7 +63,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
63
63
  })) : (s(), v("form", {
64
64
  key: 0,
65
65
  id: "konnectio-gift-card-validation-module",
66
- onSubmit: n[3] || (n[3] = D((r) => e(_)(), ["prevent"]))
66
+ onSubmit: n[3] || (n[3] = I((r) => e(_)(), ["prevent"]))
67
67
  }, [
68
68
  t("h4", null, [
69
69
  t("span", null, i(e(o)("giftCardValidation.title")), 1)
@@ -124,7 +124,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
124
124
  ])
125
125
  ])
126
126
  ])
127
- ])) : I("", !0)
127
+ ])) : D("", !0)
128
128
  ], 32))
129
129
  ]),
130
130
  _: 1
@@ -139,7 +139,7 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
139
139
  _: 1
140
140
  }, 8, ["styling"]));
141
141
  }
142
- }), V = /* @__PURE__ */ x(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R, ct = dt();
142
+ }), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = U, ct = dt();
143
143
  class pt extends HTMLElement {
144
144
  vueApp;
145
145
  constructor() {
@@ -149,8 +149,8 @@ class pt extends HTMLElement {
149
149
  this.vueApp.unmount();
150
150
  }
151
151
  connectedCallback() {
152
- const d = U(V, this.attributes);
153
- this.vueApp = F(V, d), this.vueApp.provide("emitter", ct), this.vueApp.use(rt), this.vueApp.use(H), this.vueApp.use(Y);
152
+ const d = F(V, this.attributes);
153
+ this.vueApp = H(V, d), this.vueApp.provide("emitter", ct), this.vueApp.use(rt), this.vueApp.use(R), this.vueApp.use(Y);
154
154
  const l = document.createElement("div");
155
155
  this.vueApp.mount(l), this.appendChild(l.children[0]);
156
156
  }
Binary file