@konnectio/core 4.1.2 → 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 (61) hide show
  1. package/dist/{ActionField-RCouJ4bL.js → ActionField-C1dgcOKP.js} +11 -11
  2. package/dist/ActionField-C1dgcOKP.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DMCMhOc1.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-mLoIG3Dr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js} +336 -339
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-a1ndpS4g.js.br +0 -0
  7. package/dist/{CheckoutWindow-CIVRhVLH.js → CheckoutWindow-BgqyyJoW.js} +194 -199
  8. package/dist/CheckoutWindow-BgqyyJoW.js.br +0 -0
  9. package/dist/{ErrorMessage-CRkFYH0N.js → ErrorMessage-BzDrnE0F.js} +4 -4
  10. package/dist/ErrorMessage-BzDrnE0F.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DuzDq1td.js → EventAvailabilityForm-Cw5NkQXM.js} +10 -10
  12. package/dist/EventAvailabilityForm-Cw5NkQXM.js.br +0 -0
  13. package/dist/{Field-B89fBG1z.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-DHYObk1q.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-eQJ88XWq.js +10617 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-eQJ88XWq.js.br +0 -0
  18. package/dist/{TermsOfService-B3RWtSMr.js → TermsOfService-BM9pIxg1.js} +5 -5
  19. package/dist/_-C47qU_gt.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CPp11Oc1.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 +57 -57
  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-ovHKnHZ1.js → giftCard-pa0AL3wA.js} +26 -26
  36. package/dist/giftCard-pa0AL3wA.js.br +0 -0
  37. package/dist/hotel.js +26 -29
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-DEok8Hbz.js → masonry.plugin-p-oq4FQ9.js} +336 -319
  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 +7 -7
  48. package/dist/ActionField-RCouJ4bL.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DMCMhOc1.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js.br +0 -0
  51. package/dist/CheckoutWindow-CIVRhVLH.js.br +0 -0
  52. package/dist/ErrorMessage-CRkFYH0N.js.br +0 -0
  53. package/dist/EventAvailabilityForm-DuzDq1td.js.br +0 -0
  54. package/dist/Field-B89fBG1z.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js +0 -19391
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js.br +0 -0
  57. package/dist/_-CS3eNenD.js +0 -5
  58. package/dist/giftCard-ovHKnHZ1.js.br +0 -0
  59. package/dist/masonry.plugin-DEok8Hbz.js.br +0 -0
  60. package/dist/mitt-Dh_4vPVI.js.br +0 -0
  61. 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 Z, a as l, b as $, w as m, v as X, i as e, e as t, j as v, f as p, n as Ze, 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 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 K, 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-DpqEmfGX.js";
3
- import { G as Dt } from "./style-CXMzdeVK.js";
4
- import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-CPp11Oc1.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-DEok8Hbz.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-mLoIG3Dr.js";
7
- import { C as It, P as Rt, a as Mt } from "./CheckoutWindow-CIVRhVLH.js";
8
- import { E as Ut } from "./EventAvailabilityForm-DuzDq1td.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.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);
@@ -80,7 +80,7 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
80
80
  getTemplateAvailability: s,
81
81
  getEventAvailability: O,
82
82
  isEventListingLoading: h
83
- } = x(), _ = Fe(0), N = Z(() => h(n.listingId)), F = () => {
83
+ } = x(), _ = Fe(0), N = X(() => h(n.listingId)), F = () => {
84
84
  if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
85
85
  y({
86
86
  type: "error",
@@ -111,12 +111,12 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
111
111
  "disable-deep-link": r.disableDeepLink
112
112
  }, {
113
113
  description: m(() => [
114
- X(r.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
114
+ K(r.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
115
115
  ]),
116
116
  action: m(() => [
117
- X(r.$slots, "action", {}, () => [
117
+ K(r.$slots, "action", {}, () => [
118
118
  t("div", {
119
- class: Ze([
119
+ class: Xe([
120
120
  "konnectio-event-listing-action",
121
121
  { "no-selectable-people": r.useNumberOfProductsForPersons }
122
122
  ])
@@ -153,7 +153,7 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
153
153
  const jt = {
154
154
  key: 1,
155
155
  class: "konnectio-pill-button"
156
- }, Wt = { class: "konnectio-pill-button" }, Qt = /* @__PURE__ */ W({
156
+ }, Wt = { class: "konnectio-pill-button" }, Zt = /* @__PURE__ */ W({
157
157
  __name: "Event",
158
158
  props: {
159
159
  name: {},
@@ -176,7 +176,7 @@ const jt = {
176
176
  callback: {}
177
177
  },
178
178
  setup(k) {
179
- const o = k, { t: n } = ae(), { hideEventLength: y } = j(me()), b = Z(() => {
179
+ const o = k, { t: n } = ae(), { hideEventLength: y } = j(me()), b = X(() => {
180
180
  const i = o.length.split(":");
181
181
  return zt(
182
182
  new Date(2e3, 0, 1, Number(i[0]), Number(i[1]), 0),
@@ -227,12 +227,12 @@ const jt = {
227
227
  ])
228
228
  ]),
229
229
  action: m(() => [
230
- X(i.$slots, "action", {}, void 0, !0)
230
+ K(i.$slots, "action", {}, void 0, !0)
231
231
  ]),
232
232
  _: 3
233
233
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "callback"]));
234
234
  }
235
- }), Ie = /* @__PURE__ */ ee(Qt, [["__scopeId", "data-v-222c7986"]]), Jt = { class: "konnectio-special-offer-availability" }, Kt = { class: "konnectio-special-offer-availability-button" }, Xt = { class: "konnectio-warning-notice" }, Zt = { key: 0 }, xt = { key: 1 }, en = /* @__PURE__ */ W({
235
+ }), Ie = /* @__PURE__ */ ee(Zt, [["__scopeId", "data-v-2def8bd2"]]), Qt = { class: "konnectio-special-offer-availability" }, Jt = { class: "konnectio-special-offer-availability-button" }, Kt = { class: "konnectio-warning-notice" }, Xt = { key: 0 }, xt = { key: 1 }, en = /* @__PURE__ */ W({
236
236
  __name: "NextEvent",
237
237
  props: {
238
238
  name: {},
@@ -261,7 +261,7 @@ const jt = {
261
261
  type: "error"
262
262
  });
263
263
  }
264
- const E = Z(() => pt(i.fromDate, i.toDate) <= 1), g = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(i.days).includes(s)));
264
+ const E = X(() => pt(i.fromDate, i.toDate) <= 1), g = X(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(i.days).includes(s)));
265
265
  return xe(() => {
266
266
  E.value && (b.value = new Date(i.fromDate));
267
267
  }), (s, O) => (l(), $(Ie, {
@@ -286,7 +286,7 @@ const jt = {
286
286
  }, {
287
287
  action: m(() => [
288
288
  t("div", null, [
289
- t("div", Jt, [
289
+ t("div", Qt, [
290
290
  p(At, {
291
291
  modelValue: b.value,
292
292
  "onUpdate:modelValue": O[0] || (O[0] = (h) => b.value = h),
@@ -295,20 +295,20 @@ const jt = {
295
295
  "icon-type": "fas",
296
296
  "icon-placement": "label",
297
297
  readonly: E.value,
298
- "start-date": new Date(s.fromDate),
299
- "min-date": new Date(s.fromDate),
298
+ "start-date": s.fromDate !== "0001-01-01T00:00:00Z" ? new Date(s.fromDate) : new Date(s.toDate),
299
+ "min-date": s.fromDate !== "0001-01-01T00:00:00Z" ? new Date(s.fromDate) : new Date(s.toDate),
300
300
  "max-date": new Date(s.toDate),
301
301
  "disabled-week-days": g.value
302
302
  }, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
303
- t("div", Kt, [
303
+ t("div", Jt, [
304
304
  p(ce, {
305
305
  label: e(o)("availability.buttonLabel"),
306
306
  onClick: et(f, ["prevent"])
307
307
  }, null, 8, ["label"])
308
308
  ])
309
309
  ]),
310
- t("div", Xt, [
311
- E.value ? (l(), c("span", Zt, [
310
+ t("div", Kt, [
311
+ E.value ? (l(), c("span", Xt, [
312
312
  de("*" + a(e(o)("event.canBeBooked")) + " ", 1),
313
313
  t("u", null, a(e(U)(s.fromDate)), 1)
314
314
  ])) : (l(), c("span", xt, [
@@ -321,7 +321,7 @@ const jt = {
321
321
  _: 1
322
322
  }, 8, ["name", "description", "from-date", "to-date", "length", "time-from", "time-to", "gallery", "days", "listing-id", "table-group-id", "max-online-reservation-limit", "minimum-person-count", "use-number-of-products-for-persons", "tracking-enabled", "sold-out", "callback"]));
323
323
  }
324
- }), tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-cd5e3d60"]]), nn = /* @__PURE__ */ W({
324
+ }), tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-bdda47c1"]]), nn = /* @__PURE__ */ W({
325
325
  __name: "Template",
326
326
  props: {
327
327
  name: {},
@@ -377,11 +377,11 @@ const jt = {
377
377
  weekendFee: r,
378
378
  roomUpgrade: S,
379
379
  discountCode: A,
380
- totalSelectedProducts: Q
380
+ totalSelectedProducts: Z
381
381
  } = j(x()), { totalAddonPrice: pe, validateDiscountCode: ve } = x(), { currency: oe, hideEventLength: be } = j(me());
382
382
  return (R, le) => (l(), $(wt, {
383
383
  "discount-code": e(A),
384
- "onUpdate:discountCode": le[0] || (le[0] = (J) => M(A) ? A.value = J : null),
384
+ "onUpdate:discountCode": le[0] || (le[0] = (Q) => M(A) ? A.value = Q : null),
385
385
  "validate-discount-code": e(ve),
386
386
  "show-gift-card": R.showGiftCard,
387
387
  "show-terms-notice": R.showTermsNotice,
@@ -394,7 +394,7 @@ const jt = {
394
394
  "prev-callback": R.prevCallback
395
395
  }, nt({
396
396
  form: m(() => [
397
- X(R.$slots, "form", {}, void 0, !0)
397
+ K(R.$slots, "form", {}, void 0, !0)
398
398
  ]),
399
399
  "reservation-summary": m(() => [
400
400
  e(g) ? v("", !0) : (l(), c("li", an, [
@@ -405,9 +405,9 @@ const jt = {
405
405
  t("span", null, a(e(o)("event.numberOfGuests")), 1),
406
406
  t("b", null, a(e(i)), 1)
407
407
  ])) : v("", !0),
408
- !e(g) && e(Q) > 0 ? (l(), c("li", ln, [
408
+ !e(g) && e(Z) > 0 ? (l(), c("li", ln, [
409
409
  t("span", null, a(e(o)("event.numberOfProducts")), 1),
410
- t("b", null, a(e(Q)), 1)
410
+ t("b", null, a(e(Z)), 1)
411
411
  ])) : v("", !0),
412
412
  e(g) ? (l(), c(I, { key: 3 }, [
413
413
  t("li", null, [
@@ -439,15 +439,15 @@ const jt = {
439
439
  "price-summary": m(() => [
440
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(K)(e(_), e(oe))), 1)
442
+ t("b", null, a(e(J)(e(_), e(oe))), 1)
443
443
  ])) : v("", !0),
444
- e(N) ? (l(!0), c(I, { key: 1 }, Y(e(N), ({ roomGroupId: J }, se) => (l(), c("li", { key: J }, [
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),
446
- t("b", null, a(e(K)(e(pe)(J, se), e(oe))), 1)
446
+ t("b", null, a(e(J)(e(pe)(Q, se), e(oe))), 1)
447
447
  ]))), 128)) : v("", !0)
448
448
  ]),
449
449
  navigation: m(() => [
450
- X(R.$slots, "navigation", {}, void 0, !0)
450
+ K(R.$slots, "navigation", {}, void 0, !0)
451
451
  ]),
452
452
  "mobile-under-price": m(() => [
453
453
  e(g) ? (l(), c("div", dn, [
@@ -457,14 +457,14 @@ const jt = {
457
457
  ]))
458
458
  ]),
459
459
  "mobile-summary": m(() => [
460
- !e(g) && e(Q) > 0 ? (l(), c("span", mn, a(e(o)("event.numberOfProducts")) + ": " + a(e(Q)), 1)) : v("", !0)
460
+ !e(g) && e(Z) > 0 ? (l(), c("span", mn, a(e(o)("event.numberOfProducts")) + ": " + a(e(Z)), 1)) : v("", !0)
461
461
  ]),
462
462
  _: 2
463
463
  }, [
464
464
  e(n).sidebar ? {
465
465
  name: "sidebar",
466
466
  fn: m(() => [
467
- X(R.$slots, "sidebar", {}, void 0, !0)
467
+ K(R.$slots, "sidebar", {}, void 0, !0)
468
468
  ]),
469
469
  key: "0"
470
470
  } : void 0
@@ -523,14 +523,14 @@ const jt = {
523
523
  getEventData: r,
524
524
  getTemplateData: S,
525
525
  getEventTableData: A,
526
- hasProducts: Q,
526
+ hasProducts: Z,
527
527
  eventRateType: pe,
528
528
  areListingsAvailable: ve,
529
529
  isAvailabilityDataAvailable: oe,
530
530
  hasListingData: be,
531
531
  isPaymentLoading: R,
532
532
  isReservationFormFilled: le,
533
- requiresArrivalTime: J,
533
+ requiresArrivalTime: Q,
534
534
  hasSelectedRequiredProducts: se,
535
535
  getUnavailableEvents: fe
536
536
  } = j(x()), { currency: ie } = j(me()), { setActiveIdFilter: Re } = me(), { eventDate: Me, eventLocation: Ue } = j($e()), { isValidRestaurantId: Ge } = $e(), {
@@ -541,7 +541,7 @@ const jt = {
541
541
  totalAddonPrice: je,
542
542
  reset: We,
543
543
  goBack: Ee
544
- } = x(), { display: ge } = we(), Qe = Z(() => [
544
+ } = x(), { display: ge } = we(), Ze = X(() => [
545
545
  {
546
546
  id: "availability",
547
547
  label: n("booking.availability.title"),
@@ -567,7 +567,7 @@ const jt = {
567
567
  label: n("booking.confirmation.title"),
568
568
  icon: "calendar-check"
569
569
  }
570
- ]), Je = Z(() => {
570
+ ]), Qe = X(() => {
571
571
  const P = [];
572
572
  return A.value && A.value.forEach((d) => {
573
573
  P.find((B) => B.value === d.time) || P.push({
@@ -576,10 +576,10 @@ const jt = {
576
576
  });
577
577
  }), P;
578
578
  });
579
- function Ke() {
579
+ function Je() {
580
580
  We(o.resetDate === "yes");
581
581
  }
582
- function Xe() {
582
+ function Ke() {
583
583
  const P = kt("history", {
584
584
  removeNullishValues: !0
585
585
  }), d = parseInt(P.rid), B = P.d, V = parseInt(P.eid);
@@ -602,7 +602,7 @@ const jt = {
602
602
  }
603
603
  return (P, d) => (l(), $(gt, { styling: P.styling }, {
604
604
  default: m(() => [
605
- (l(), $(at, { onResolve: Xe }, {
605
+ (l(), $(at, { onResolve: Ke }, {
606
606
  default: m(() => [
607
607
  p(Pt, {
608
608
  id: "konnectio-event-module",
@@ -611,8 +611,8 @@ const jt = {
611
611
  }, {
612
612
  default: m(() => [
613
613
  p(Ot, {
614
- steps: Qe.value,
615
- onReset: Ke
614
+ steps: Ze.value,
615
+ onReset: Je
616
616
  }, {
617
617
  availability: m(({ next: B }) => [
618
618
  p(Pe, null, {
@@ -798,7 +798,7 @@ const jt = {
798
798
  t("td", null, [
799
799
  t("b", null, a(z), 1),
800
800
  d[9] || (d[9] = t("br", null, null, -1)),
801
- t("span", null, a(e(K)(q, e(ie))) + " " + a(e(bt)(te)), 1)
801
+ t("span", null, a(e(J)(q, e(ie))) + " " + a(e(bt)(te)), 1)
802
802
  ]),
803
803
  t("td", Nn, [
804
804
  G === 3 ? (l(), $(ue, {
@@ -815,7 +815,7 @@ const jt = {
815
815
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
816
816
  ]),
817
817
  t("td", Tn, [
818
- t("span", null, a(e(K)(e(Ye)(T, u, w), 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(K)(e(je)(u, w), e(ie))), 1)
828
+ t("span", null, a(e(J)(e(je)(u, w), e(ie))), 1)
829
829
  ])
830
830
  ])
831
831
  ])
@@ -833,7 +833,7 @@ const jt = {
833
833
  ])
834
834
  ]))), 128))
835
835
  ])) : v("", !0),
836
- e(Q) ? (l(), c("table", Ln, [
836
+ e(Z) ? (l(), c("table", Ln, [
837
837
  t("tbody", null, [
838
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, [
@@ -841,7 +841,7 @@ const jt = {
841
841
  t("span", null, a(e(Oe)(L)), 1)
842
842
  ]),
843
843
  w && w !== L ? (l(), c("span", Fn, a(e(Oe)(w)), 1)) : v("", !0),
844
- t("u", null, a(e(K)(C, e(ie))), 1)
844
+ t("u", null, a(e(J)(C, e(ie))), 1)
845
845
  ]),
846
846
  t("td", Sn, [
847
847
  p(ue, {
@@ -906,13 +906,13 @@ const jt = {
906
906
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
907
907
  required: ""
908
908
  }, null, 8, ["modelValue", "label", "placeholder"]),
909
- e(J) ? (l(), $(Vt, {
909
+ e(Q) ? (l(), $(Vt, {
910
910
  key: 0,
911
911
  modelValue: e(h),
912
912
  "onUpdate:modelValue": d[3] || (d[3] = (u) => M(h) ? h.value = u : null),
913
913
  label: e(n)("event.selectArrivalTime"),
914
914
  name: "eventTimeTable",
915
- checkboxes: Je.value,
915
+ checkboxes: Qe.value,
916
916
  required: ""
917
917
  }, null, 8, ["modelValue", "label", "checkboxes"])) : v("", !0),
918
918
  e(pe) === e(ft).FullDayEvent ? (l(), $(ue, {
@@ -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-DpqEmfGX.js";
3
- import { u as z } from "./giftCard-ovHKnHZ1.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-CPp11Oc1.js";
5
- import { A as K } from "./ActionField-RCouJ4bL.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js";
7
- import { F as y } from "./Field-B89fBG1z.js";
8
- import { E as Q } from "./ErrorMessage-CRkFYH0N.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