@konnectio/core 4.1.3 → 4.1.4

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-CRqgWSz1.js → ActionField-C1dgcOKP.js} +3 -3
  2. package/dist/ActionField-C1dgcOKP.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DVrVFhw4.js → AvailabilitySkeleton-Bazs9H4o.js} +110 -110
  4. package/dist/AvailabilitySkeleton-Bazs9H4o.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js} +336 -336
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js.br +0 -0
  7. package/dist/{CheckoutWindow-DrZnthDH.js → CheckoutWindow-BgqyyJoW.js} +185 -185
  8. package/dist/CheckoutWindow-BgqyyJoW.js.br +0 -0
  9. package/dist/{ErrorMessage-b0lY3zUM.js → ErrorMessage-BzDrnE0F.js} +4 -4
  10. package/dist/ErrorMessage-BzDrnE0F.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BPkfZcYX.js → EventAvailabilityForm-Cw5NkQXM.js} +10 -10
  12. package/dist/EventAvailabilityForm-Cw5NkQXM.js.br +0 -0
  13. package/dist/{Field-DnS91ODQ.js → Field-BLzufPEA.js} +4 -4
  14. package/dist/Field-BLzufPEA.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DF8uAZlm.js} +3 -3
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js → SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js} +2936 -2621
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js.br +0 -0
  18. package/dist/{TermsOfService-B2ELKRPq.js → TermsOfService-BM9pIxg1.js} +4 -4
  19. package/dist/_-C47qU_gt.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DKkrP6vk.js → _.vue_vue_type_style_index_0_lang-alJEghYY.js} +3 -3
  21. package/dist/availability.js +16 -16
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +14 -14
  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 +13 -13
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +55 -55
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +24 -24
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +56 -56
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-BsWa3VEY.js → giftCard-pa0AL3wA.js} +26 -26
  36. package/dist/giftCard-pa0AL3wA.js.br +0 -0
  37. package/dist/hotel.js +15 -15
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-By72FzQ9.js → masonry.plugin-p-oq4FQ9.js} +301 -301
  40. package/dist/masonry.plugin-p-oq4FQ9.js.br +0 -0
  41. package/dist/{mitt-Dh_4vPVI.js → mitt-CFrRmK9k.js} +30 -30
  42. package/dist/mitt-CFrRmK9k.js.br +0 -0
  43. package/dist/polyfill.js +1 -1
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/{style-CXMzdeVK.js → style-CLWqMWeG.js} +59 -59
  46. package/dist/style-CLWqMWeG.js.br +0 -0
  47. package/package.json +2 -1
  48. package/dist/ActionField-CRqgWSz1.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DVrVFhw4.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js.br +0 -0
  51. package/dist/CheckoutWindow-DrZnthDH.js.br +0 -0
  52. package/dist/ErrorMessage-b0lY3zUM.js.br +0 -0
  53. package/dist/EventAvailabilityForm-BPkfZcYX.js.br +0 -0
  54. package/dist/Field-DnS91ODQ.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js.br +0 -0
  56. package/dist/_-DkNAaEsV.js +0 -5
  57. package/dist/giftCard-BsWa3VEY.js.br +0 -0
  58. package/dist/masonry.plugin-By72FzQ9.js.br +0 -0
  59. package/dist/mitt-Dh_4vPVI.js.br +0 -0
  60. package/dist/style-CXMzdeVK.js.br +0 -0
package/dist/core.css.br CHANGED
Binary file
package/dist/deep-link.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as l, r as o, o as c, a as d, g as u, e as r, t as h, v as p, k as m, l as f, m as v, p as k, q as A } from "./mitt-Dh_4vPVI.js";
2
- const _ = ["href"], i = /* @__PURE__ */ l({
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-CFrRmK9k.js";
2
+ const A = ["href"], p = /* @__PURE__ */ c({
3
3
  name: "KonnectioDeepLink",
4
4
  __name: "DeepLink",
5
5
  props: {
@@ -11,22 +11,22 @@ const _ = ["href"], i = /* @__PURE__ */ l({
11
11
  },
12
12
  setup(a) {
13
13
  const s = o(null), e = a, n = o();
14
- return c(() => {
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, L) => (d(), u("div", {
17
+ }), (t, w) => (d(), u("div", {
18
18
  ref_key: "test",
19
19
  ref: s
20
20
  }, [
21
21
  r("a", { href: n.value }, [
22
22
  r("span", null, h(n.value), 1),
23
- p(t.$slots, "content"),
24
- p(t.$slots, "default")
25
- ], 8, _)
23
+ i(t.$slots, "content"),
24
+ i(t.$slots, "default")
25
+ ], 8, A)
26
26
  ], 512));
27
27
  }
28
- }), b = m(), C = A();
29
- class E extends HTMLElement {
28
+ }), b = m(), C = _, E = C();
29
+ class L extends HTMLElement {
30
30
  vueApp;
31
31
  constructor() {
32
32
  super();
@@ -35,14 +35,14 @@ class E extends HTMLElement {
35
35
  this.vueApp.unmount();
36
36
  }
37
37
  connectedCallback() {
38
- const s = f(i, this.attributes);
39
- this.vueApp = v(i, s), this.vueApp.provide("emitter", C), this.vueApp.use(k), this.vueApp.use(b);
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);
40
40
  const e = document.createElement("div");
41
41
  this.vueApp.mount(e), this.appendChild(e.children[0]);
42
42
  }
43
43
  }
44
- window.customElements.define("konnectio-deep-link", E);
44
+ window.customElements.define("konnectio-deep-link", L);
45
45
  export {
46
- E as default
46
+ L as default
47
47
  };
48
48
  //# sourceMappingURL=deep-link.js.map
Binary file
package/dist/event.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d as W, u as ae, s as j, r as Fe, c as X, a as l, b as $, w as m, v as K, i as e, e as t, j as v, f as p, n as Xe, g as c, t as a, o as xe, h as et, x as de, y as tt, z as nt, F as I, A as Y, B as M, S as at, k as ot, l as lt, m as st, p as it, q as rt } from "./mitt-Dh_4vPVI.js";
2
- import { a as _e, f as x, g as ue, l as ut, s as U, d as ce, B as dt, _ as ee, h as me, I as ne, i as ct, u as $e, j as mt, k as pt, m as vt, n as we, o as J, p as bt, q as Oe, T as re, O as ft, C as gt, r as kt, t as yt, v as ht } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
- import { G as Dt } from "./style-CXMzdeVK.js";
4
- import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
5
- import { B as $t, _ as wt, R as _t, L as Se, S as Et, M as Ot, C as Vt, T as Nt, V as Tt, a as Bt } from "./masonry.plugin-By72FzQ9.js";
6
- import { e as Lt, c as Ct, n as Ft, g as Ve, m as Ne, a as Te, b as Be, d as St, f as Le, _ as At } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js";
7
- import { C as It, P as Rt, a as Mt } from "./CheckoutWindow-DrZnthDH.js";
8
- import { E as Ut } from "./EventAvailabilityForm-BPkfZcYX.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
1
+ import { d as W, u as ae, s as j, r as Fe, c as X, a as l, b as $, w as m, q as K, i as e, e as t, j as v, f as p, n as Xe, g as c, t as a, o as xe, h as et, v as de, x as tt, y as nt, F as I, z as Y, A as M, S as at, k as ot, l as lt, m as st, p as it, _ as rt } from "./mitt-CFrRmK9k.js";
2
+ import { a as we, f as x, g as ue, l as ut, s as U, d as ce, B as dt, _ as ee, h as me, I as ne, i as ct, u as $e, j as mt, k as pt, m as vt, n as _e, o as J, p as bt, q as Oe, T as re, O as ft, C as gt, r as kt, t as yt, v as ht } from "./SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js";
3
+ import { G as Dt } from "./style-CLWqMWeG.js";
4
+ import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-alJEghYY.js";
5
+ import { B as $t, _ as _t, R as wt, L as Se, S as Et, M as Ot, C as Vt, T as Nt, V as Tt, a as Bt } from "./masonry.plugin-p-oq4FQ9.js";
6
+ import { e as Lt, c as Ct, n as Ft, g as Ve, m as Ne, a as Te, b as Be, d as St, f as Le, _ as At } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js";
7
+ import { C as It, P as Rt, a as Mt } from "./CheckoutWindow-BgqyyJoW.js";
8
+ import { E as Ut } from "./EventAvailabilityForm-Cw5NkQXM.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DF8uAZlm.js";
10
10
  function Gt(k) {
11
11
  return (o) => {
12
12
  const y = (k ? Math[k] : Math.trunc)(o);
@@ -23,7 +23,7 @@ function zt(k, o, n) {
23
23
  }), [E, g] = Ft(
24
24
  n?.in,
25
25
  ...i > 0 ? [o, k] : [k, o]
26
- ), s = Gt(n?.roundingMethod ?? "round"), O = g.getTime() - E.getTime(), h = O / Le, w = Ve(g) - Ve(E), N = (O - w) / Le, F = n?.unit;
26
+ ), s = Gt(n?.roundingMethod ?? "round"), O = g.getTime() - E.getTime(), h = O / Le, _ = Ve(g) - Ve(E), N = (O - _) / Le, F = n?.unit;
27
27
  let D;
28
28
  if (F ? D = F : h < 1 ? D = "second" : h < 60 ? D = "minute" : h < Ne ? D = "hour" : N < Te ? D = "day" : N < Be ? D = "month" : D = "year", D === "second") {
29
29
  const r = s(O / 1e3);
@@ -70,7 +70,7 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
70
70
  callback: {}
71
71
  },
72
72
  setup(k) {
73
- const { t: o } = ae(), n = k, { display: y } = _e(), {
73
+ const { t: o } = ae(), n = k, { display: y } = we(), {
74
74
  maxNumberOfPeople: b,
75
75
  numberOfPeople: i,
76
76
  eventId: f,
@@ -80,24 +80,24 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
80
80
  getTemplateAvailability: s,
81
81
  getEventAvailability: O,
82
82
  isEventListingLoading: h
83
- } = x(), w = Fe(0), N = X(() => h(n.listingId)), F = () => {
84
- if (!n.useNumberOfProductsForPersons && (w.value === 0 || isNaN(w.value))) {
83
+ } = x(), _ = Fe(0), N = X(() => h(n.listingId)), F = () => {
84
+ if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
85
85
  y({
86
86
  type: "error",
87
87
  message: o("alert.error.selectPeople")
88
88
  });
89
89
  return;
90
90
  }
91
- f.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : w.value, s(n.callback);
91
+ f.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, s(n.callback);
92
92
  }, D = () => {
93
- if (!n.useNumberOfProductsForPersons && (w.value === 0 || isNaN(w.value))) {
93
+ if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
94
94
  y({
95
95
  type: "error",
96
96
  message: o("alert.error.selectPeople")
97
97
  });
98
98
  return;
99
99
  }
100
- f.value = n.listingId, g.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : w.value, O(n.callback);
100
+ f.value = n.listingId, g.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, O(n.callback);
101
101
  };
102
102
  return (r, S) => (l(), $($t, {
103
103
  type: "event",
@@ -123,8 +123,8 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
123
123
  }, [
124
124
  r.useNumberOfProductsForPersons ? v("", !0) : (l(), $(ue, {
125
125
  key: 0,
126
- modelValue: w.value,
127
- "onUpdate:modelValue": S[0] || (S[0] = (A) => w.value = A),
126
+ modelValue: _.value,
127
+ "onUpdate:modelValue": S[0] || (S[0] = (A) => _.value = A),
128
128
  label: e(o)("event.numberOfGuests"),
129
129
  icon: "users",
130
130
  "icon-type": "fas",
@@ -198,7 +198,7 @@ const jt = {
198
198
  callback: i.callback
199
199
  }, {
200
200
  description: m(() => [
201
- i.description ? (l(), $(wt, {
201
+ i.description ? (l(), $(_t, {
202
202
  key: 0,
203
203
  text: i.description
204
204
  }, null, 8, ["text"])) : v("", !0),
@@ -254,7 +254,7 @@ const jt = {
254
254
  callback: { type: Function }
255
255
  },
256
256
  setup(k) {
257
- const { t: o } = ae(), { updateEventDate: n } = $e(), { display: y } = _e(), b = Fe(), i = k;
257
+ const { t: o } = ae(), { updateEventDate: n } = $e(), { display: y } = we(), b = Fe(), i = k;
258
258
  function f() {
259
259
  b.value ? n(b.value) : y({
260
260
  message: o("alert.error.selectDate"),
@@ -370,7 +370,7 @@ const jt = {
370
370
  currentEventDate: s,
371
371
  length: O,
372
372
  fromDate: h,
373
- tableBasePrice: w,
373
+ tableBasePrice: _,
374
374
  getTemplateData: N,
375
375
  basePrice: F,
376
376
  totalPrice: D,
@@ -379,7 +379,7 @@ const jt = {
379
379
  discountCode: A,
380
380
  totalSelectedProducts: Z
381
381
  } = j(x()), { totalAddonPrice: pe, validateDiscountCode: ve } = x(), { currency: oe, hideEventLength: be } = j(me());
382
- return (R, le) => (l(), $(_t, {
382
+ return (R, le) => (l(), $(wt, {
383
383
  "discount-code": e(A),
384
384
  "onUpdate:discountCode": le[0] || (le[0] = (Q) => M(A) ? A.value = Q : null),
385
385
  "validate-discount-code": e(ve),
@@ -429,17 +429,17 @@ const jt = {
429
429
  ], 64)) : v("", !0),
430
430
  !e(g) && e(b) ? (l(), c("li", sn, [
431
431
  t("span", null, a(e(o)("event.startOfEvent")), 1),
432
- t("b", null, a(e(we)(e(b))), 1)
432
+ t("b", null, a(e(_e)(e(b))), 1)
433
433
  ])) : v("", !0),
434
434
  !e(g) && e(O) && !e(be) ? (l(), c("li", rn, [
435
435
  t("span", null, a(e(o)("event.lengthOfEvent")), 1),
436
- t("b", null, a(e(we)(e(O))), 1)
436
+ t("b", null, a(e(_e)(e(O))), 1)
437
437
  ])) : v("", !0)
438
438
  ]),
439
439
  "price-summary": m(() => [
440
- !e(g) && e(w) > 0 ? (l(), c("li", un, [
440
+ !e(g) && e(_) > 0 ? (l(), c("li", un, [
441
441
  t("span", null, a(e(o)("booking.availability.basePrice")), 1),
442
- t("b", null, a(e(J)(e(w), e(oe))), 1)
442
+ t("b", null, a(e(J)(e(_), e(oe))), 1)
443
443
  ])) : v("", !0),
444
444
  e(N) ? (l(!0), c(I, { key: 1 }, Y(e(N), ({ roomGroupId: Q }, se) => (l(), c("li", { key: Q }, [
445
445
  t("span", null, a(e(o)("booking.reservation.addons")) + " - " + a(e(o)("booking.reservation.room")) + " #" + a(se + 1), 1),
@@ -489,7 +489,7 @@ const jt = {
489
489
  }, hn = {
490
490
  key: 0,
491
491
  class: "konnectio-hotel-availability-title"
492
- }, Dn = { class: "konnectio-event-listings" }, Pn = { class: "konnectio-hotel-availability-title" }, $n = { class: "konnectio-event-listings" }, wn = ["innerHTML"], _n = { class: "konnectio-panel" }, En = {
492
+ }, Dn = { class: "konnectio-event-listings" }, Pn = { class: "konnectio-hotel-availability-title" }, $n = { class: "konnectio-event-listings" }, _n = ["innerHTML"], wn = { class: "konnectio-panel" }, En = {
493
493
  key: 0,
494
494
  id: "konnectio-event-addons"
495
495
  }, On = { class: "konnectio-table with-lines" }, Vn = { class: "konnectio-event-addons-price" }, Nn = { class: "konnectio-event-addons-input" }, Tn = { class: "konnectio-event-addons-price" }, Bn = { class: "konnectio-event-addons-price" }, Ln = {
@@ -516,7 +516,7 @@ const jt = {
516
516
  remark: s,
517
517
  allergies: O,
518
518
  arrivalTime: h,
519
- hasEvents: w,
519
+ hasEvents: _,
520
520
  hasTemplates: N,
521
521
  getEvents: F,
522
522
  getTemplates: D,
@@ -541,7 +541,7 @@ const jt = {
541
541
  totalAddonPrice: je,
542
542
  reset: We,
543
543
  goBack: Ee
544
- } = x(), { display: ge } = _e(), Ze = X(() => [
544
+ } = x(), { display: ge } = we(), Ze = X(() => [
545
545
  {
546
546
  id: "availability",
547
547
  label: n("booking.availability.title"),
@@ -571,7 +571,7 @@ const jt = {
571
571
  const P = [];
572
572
  return A.value && A.value.forEach((d) => {
573
573
  P.find((B) => B.value === d.time) || P.push({
574
- label: we(d.time),
574
+ label: _e(d.time),
575
575
  value: d.time
576
576
  });
577
577
  }), P;
@@ -633,12 +633,12 @@ const jt = {
633
633
  t("span", null, a(e(n)("event.availableNow")), 1)
634
634
  ])) : v("", !0),
635
635
  t("ul", Dn, [
636
- e(w) && P.onlyShow !== "templates" ? (l(!0), c(I, { key: 0 }, Y(e(F), ({
636
+ e(_) && P.onlyShow !== "templates" ? (l(!0), c(I, { key: 0 }, Y(e(F), ({
637
637
  id: V,
638
638
  days: u,
639
639
  name: L,
640
640
  timeFrom: C,
641
- timeTo: _,
641
+ timeTo: w,
642
642
  fromDate: T,
643
643
  toDate: G,
644
644
  tableGroupId: z,
@@ -663,7 +663,7 @@ const jt = {
663
663
  "to-date": G,
664
664
  "max-online-reservation-limit": he || ye,
665
665
  "time-from": C,
666
- "time-to": _,
666
+ "time-to": w,
667
667
  "sold-out": te,
668
668
  "use-number-of-products-for-persons": De,
669
669
  callback: B
@@ -673,7 +673,7 @@ const jt = {
673
673
  name: u,
674
674
  fromDate: L,
675
675
  toDate: C,
676
- minimumPersonCount: _,
676
+ minimumPersonCount: w,
677
677
  fromPrice: T,
678
678
  description: G,
679
679
  imageUrl: z,
@@ -687,7 +687,7 @@ const jt = {
687
687
  description: G,
688
688
  "from-date": L,
689
689
  "to-date": C,
690
- "minimum-person-count": _,
690
+ "minimum-person-count": w,
691
691
  fromPrice: T,
692
692
  callback: B
693
693
  }, null, 8, ["listing-id", "name", "image", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : v("", !0)
@@ -707,7 +707,7 @@ const jt = {
707
707
  days: u,
708
708
  name: L,
709
709
  timeFrom: C,
710
- timeTo: _,
710
+ timeTo: w,
711
711
  fromDate: T,
712
712
  toDate: G,
713
713
  tableGroupId: z,
@@ -732,18 +732,18 @@ const jt = {
732
732
  "to-date": G,
733
733
  "max-online-reservation-limit": he || ye,
734
734
  "time-from": C,
735
- "time-to": _,
735
+ "time-to": w,
736
736
  "sold-out": te,
737
737
  "use-number-of-products-for-persons": De,
738
738
  callback: B
739
739
  }, 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))
740
740
  ])
741
741
  ], 64)) : v("", !0),
742
- !e(w) && !e(N) || !e(w) && P.onlyShow === "events" || !e(N) && P.onlyShow === "templates" ? (l(), c("div", {
742
+ !e(_) && !e(N) || !e(_) && P.onlyShow === "events" || !e(N) && P.onlyShow === "templates" ? (l(), c("div", {
743
743
  key: 2,
744
744
  class: "konnectio-panel",
745
745
  innerHTML: e(n)("event.nothingAvailable")
746
- }, null, 8, wn)) : v("", !0)
746
+ }, null, 8, _n)) : v("", !0)
747
747
  ])) : (l(), $(Se, { key: 1 }))
748
748
  ]),
749
749
  _: 2
@@ -755,7 +755,7 @@ const jt = {
755
755
  "prev-callback": () => e(Ee)(V)
756
756
  }, {
757
757
  form: m(() => [
758
- t("form", _n, [
758
+ t("form", wn, [
759
759
  t("h2", null, [
760
760
  t("span", null, a(e(n)("event.selectProducts")), 1)
761
761
  ]),
@@ -764,9 +764,9 @@ const jt = {
764
764
  roomGroupId: u,
765
765
  addons: L,
766
766
  adultPerRoom: C
767
- }, _) => (l(), c("li", { key: u }, [
767
+ }, w) => (l(), c("li", { key: u }, [
768
768
  t("h5", null, [
769
- t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(_ + 1), 1),
769
+ t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(w + 1), 1),
770
770
  d[7] || (d[7] = de(" (")),
771
771
  p(ne, {
772
772
  icon: "male",
@@ -803,19 +803,19 @@ const jt = {
803
803
  t("td", Nn, [
804
804
  G === 3 ? (l(), $(ue, {
805
805
  key: 0,
806
- modelValue: e(y)[`${u}.${T}.${_}`],
807
- "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${_}`] = H,
806
+ modelValue: e(y)[`${u}.${T}.${w}`],
807
+ "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${w}`] = H,
808
808
  small: !0,
809
809
  "min-value": 0
810
810
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), $(It, {
811
811
  key: 1,
812
- modelValue: e(y)[`${u}.${T}.${_}`],
813
- "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${_}`] = H,
812
+ modelValue: e(y)[`${u}.${T}.${w}`],
813
+ "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${w}`] = H,
814
814
  numeric: !0
815
815
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
816
816
  ]),
817
817
  t("td", Tn, [
818
- t("span", null, a(e(J)(e(Ye)(T, u, _), e(ie))), 1)
818
+ t("span", null, a(e(J)(e(Ye)(T, u, w), e(ie))), 1)
819
819
  ])
820
820
  ]))), 128))
821
821
  ]),
@@ -825,7 +825,7 @@ const jt = {
825
825
  d[11] || (d[11] = t("td", null, null, -1)),
826
826
  t("td", Bn, [
827
827
  t("u", null, [
828
- t("span", null, a(e(J)(e(je)(u, _), e(ie))), 1)
828
+ t("span", null, a(e(J)(e(je)(u, w), e(ie))), 1)
829
829
  ])
830
830
  ])
831
831
  ])
@@ -835,12 +835,12 @@ const jt = {
835
835
  ])) : v("", !0),
836
836
  e(Z) ? (l(), c("table", Ln, [
837
837
  t("tbody", null, [
838
- (l(!0), c(I, null, Y(e(r).products, ({ id: u, name: L, price: C, description: _ }) => (l(), c("tr", { key: u }, [
838
+ (l(!0), c(I, null, Y(e(r).products, ({ id: u, name: L, price: C, description: w }) => (l(), c("tr", { key: u }, [
839
839
  t("td", Cn, [
840
840
  t("b", null, [
841
841
  t("span", null, a(e(Oe)(L)), 1)
842
842
  ]),
843
- _ && _ !== L ? (l(), c("span", Fn, a(e(Oe)(_)), 1)) : v("", !0),
843
+ w && w !== L ? (l(), c("span", Fn, a(e(Oe)(w)), 1)) : v("", !0),
844
844
  t("u", null, a(e(J)(C, e(ie))), 1)
845
845
  ]),
846
846
  t("td", Sn, [
@@ -976,8 +976,8 @@ const jt = {
976
976
  _: 1
977
977
  }, 8, ["styling"]));
978
978
  }
979
- }), Ce = /* @__PURE__ */ ee(In, [["__scopeId", "data-v-206f5d07"]]), Rn = ot(), Mn = rt();
980
- class Un extends HTMLElement {
979
+ }), Ce = /* @__PURE__ */ ee(In, [["__scopeId", "data-v-206f5d07"]]), Rn = ot(), Mn = rt, Un = Mn();
980
+ class Gn extends HTMLElement {
981
981
  vueApp;
982
982
  constructor() {
983
983
  super();
@@ -987,13 +987,13 @@ class Un extends HTMLElement {
987
987
  }
988
988
  connectedCallback() {
989
989
  const o = lt(Ce, this.attributes);
990
- this.vueApp = st(Ce, o), this.vueApp.provide("emitter", Mn), this.vueApp.use(it), this.vueApp.use(Rn), this.vueApp.use(Tt), this.vueApp.use(Dt), this.vueApp.use(Bt), this.vueApp.use(ht, { bootstrap: !0 });
990
+ this.vueApp = st(Ce, o), this.vueApp.provide("emitter", Un), this.vueApp.use(it), this.vueApp.use(Rn), this.vueApp.use(Tt), this.vueApp.use(Dt), this.vueApp.use(Bt), this.vueApp.use(ht, { bootstrap: !0 });
991
991
  const n = document.createElement("div");
992
992
  this.vueApp.mount(n), this.appendChild(n.children[0]);
993
993
  }
994
994
  }
995
- window.customElements.define("konnectio-event", Un);
995
+ window.customElements.define("konnectio-event", Gn);
996
996
  export {
997
- Un as default
997
+ Gn as default
998
998
  };
999
999
  //# sourceMappingURL=event.js.map
package/dist/event.js.br CHANGED
Binary file
@@ -1,13 +1,13 @@
1
- import { d as x, a as s, g as v, e as t, f as a, c as P, u as T, s as k, b as m, w as p, S as $, i as e, t as i, B as b, j as I, h as D, k as N, l as U, m as F, p as H, q as R } from "./mitt-Dh_4vPVI.js";
2
- import { _ as A, y as C, h as j, I as h, o as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
- import { u as z } from "./giftCard-BsWa3VEY.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
5
- import { A as K } from "./ActionField-CRqgWSz1.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
7
- import { F as y } from "./Field-DnS91ODQ.js";
8
- import { E as Q } from "./ErrorMessage-b0lY3zUM.js";
9
- import { G as Y } from "./style-CXMzdeVK.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({
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-CFrRmK9k.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-eQJ88XWq.js";
3
+ import { u as z } from "./giftCard-pa0AL3wA.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-alJEghYY.js";
5
+ import { A as K } from "./ActionField-C1dgcOKP.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DF8uAZlm.js";
7
+ import { F as y } from "./Field-BLzufPEA.js";
8
+ import { E as Q } from "./ErrorMessage-BzDrnE0F.js";
9
+ import { G as Y } from "./style-CLWqMWeG.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({
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__ */ A(nt, [["__scopeId", "data-v-b1601b74"]]), it = ["innerHTML"], st = {
27
+ }), ot = /* @__PURE__ */ x(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__ */ x({
31
+ }, lt = /* @__PURE__ */ A({
32
32
  name: "GiftCardValidationLayout",
33
33
  __name: "GiftCardValidation",
34
34
  props: {
@@ -36,10 +36,10 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
36
36
  styling: {}
37
37
  },
38
38
  setup(u) {
39
- const d = u, l = P(() => ({
39
+ const d = u, l = T(() => ({
40
40
  panelMaxWidth: "800px",
41
41
  ...d.styling
42
- })), { t: o } = T(), {
42
+ })), { t: o } = $(), {
43
43
  voucher: f,
44
44
  isValid: G,
45
45
  amount: E,
@@ -47,12 +47,12 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
47
47
  productName: w,
48
48
  isLoading: c
49
49
  } = k(C()), { currency: L, hasError: M } = k(j()), { fetchMetadata: X } = z(), { apply: _ } = C();
50
- return (B, n) => (s(), m(W, { styling: l.value }, {
50
+ return (P, n) => (s(), m(q, { styling: l.value }, {
51
51
  default: p(() => [
52
- (s(), m($, null, {
52
+ (s(), m(B, null, {
53
53
  default: p(() => [
54
54
  a(J, {
55
- "access-token": B.accessToken,
55
+ "access-token": P.accessToken,
56
56
  callback: e(X)
57
57
  }, {
58
58
  default: p(() => [
@@ -117,10 +117,10 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
117
117
  t("span", null, i(e(w)), 1)
118
118
  ]),
119
119
  t("td", null, [
120
- t("span", null, i(e(q)(e(E), e(L))), 1)
120
+ t("span", null, i(e(O)(e(E), e(L))), 1)
121
121
  ]),
122
122
  t("td", null, [
123
- t("span", null, i(e(O)(e(S))), 1)
123
+ t("span", null, i(e(W)(e(S))), 1)
124
124
  ])
125
125
  ])
126
126
  ])
@@ -139,8 +139,8 @@ const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-v
139
139
  _: 1
140
140
  }, 8, ["styling"]));
141
141
  }
142
- }), V = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R();
143
- class ct extends HTMLElement {
142
+ }), V = /* @__PURE__ */ x(lt, [["__scopeId", "data-v-ca768ef6"]]), rt = N(), dt = R, ct = dt();
143
+ class pt extends HTMLElement {
144
144
  vueApp;
145
145
  constructor() {
146
146
  super();
@@ -150,13 +150,13 @@ class ct extends HTMLElement {
150
150
  }
151
151
  connectedCallback() {
152
152
  const d = U(V, this.attributes);
153
- this.vueApp = F(V, d), this.vueApp.provide("emitter", dt), this.vueApp.use(rt), this.vueApp.use(H), this.vueApp.use(Y);
153
+ this.vueApp = F(V, d), this.vueApp.provide("emitter", ct), this.vueApp.use(rt), this.vueApp.use(H), this.vueApp.use(Y);
154
154
  const l = document.createElement("div");
155
155
  this.vueApp.mount(l), this.appendChild(l.children[0]);
156
156
  }
157
157
  }
158
- window.customElements.define("konnectio-gift-card-validation", ct);
158
+ window.customElements.define("konnectio-gift-card-validation", pt);
159
159
  export {
160
- ct as default
160
+ pt as default
161
161
  };
162
162
  //# sourceMappingURL=gift-card-validation.js.map
Binary file