@konnectio/core 4.1.10 → 4.1.11

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 (54) hide show
  1. package/dist/{ActionField-YcUnxCh1.js → ActionField-OJ0B_Rvq.js} +2 -2
  2. package/dist/ActionField-OJ0B_Rvq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-C6bsNxOH.js +320 -0
  4. package/dist/AvailabilitySkeleton-C6bsNxOH.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BOrZv7ED.js} +2 -2
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BOrZv7ED.js.br +0 -0
  7. package/dist/{CheckoutWindow-ET8OmnqK.js → CheckoutWindow-C7Sez05a.js} +2 -2
  8. package/dist/CheckoutWindow-C7Sez05a.js.br +0 -0
  9. package/dist/{ErrorMessage-CwQY7g9Q.js → ErrorMessage-BJIYUPxq.js} +2 -2
  10. package/dist/ErrorMessage-BJIYUPxq.js.br +0 -0
  11. package/dist/EventAvailabilityForm-BPl-K4R7.js +119 -0
  12. package/dist/EventAvailabilityForm-BPl-K4R7.js.br +0 -0
  13. package/dist/{Field-BdH4Sloj.js → Field-DrXN88nH.js} +3 -3
  14. package/dist/Field-DrXN88nH.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DJkXxXXq.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-yLLdxGIS.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js → SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js} +130 -130
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js.br +0 -0
  18. package/dist/{TermsOfService-B4Xq6arX.js → TermsOfService-OiLRXZF3.js} +3 -3
  19. package/dist/_-WO7vPQFH.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DCY7vATB.js → _.vue_vue_type_style_index_0_lang-Q0efa7Bu.js} +2 -2
  21. package/dist/availability.js +37 -33
  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/core.css +1 -1
  26. package/dist/core.css.br +0 -0
  27. package/dist/event.js +104 -102
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +7 -7
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +8 -8
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-vJLJWCwZ.js → giftCard-5wAI4XEl.js} +2 -2
  34. package/dist/giftCard-5wAI4XEl.js.br +0 -0
  35. package/dist/hotel.js +374 -373
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-CglHU-ya.js → masonry.plugin-D19pwBpH.js} +5 -5
  38. package/dist/masonry.plugin-D19pwBpH.js.br +0 -0
  39. package/dist/polyfill.js +1 -1
  40. package/dist/polyfill.js.br +0 -0
  41. package/package.json +4 -4
  42. package/dist/ActionField-YcUnxCh1.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-CtypN7ad.js +0 -319
  44. package/dist/AvailabilitySkeleton-CtypN7ad.js.br +0 -0
  45. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js.br +0 -0
  46. package/dist/CheckoutWindow-ET8OmnqK.js.br +0 -0
  47. package/dist/ErrorMessage-CwQY7g9Q.js.br +0 -0
  48. package/dist/EventAvailabilityForm--R2UEx3o.js +0 -118
  49. package/dist/EventAvailabilityForm--R2UEx3o.js.br +0 -0
  50. package/dist/Field-BdH4Sloj.js.br +0 -0
  51. package/dist/SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js.br +0 -0
  52. package/dist/_-kF09E1Yd.js +0 -5
  53. package/dist/giftCard-vJLJWCwZ.js.br +0 -0
  54. package/dist/masonry.plugin-CglHU-ya.js.br +0 -0
package/dist/core.css.br CHANGED
Binary file
package/dist/event.js CHANGED
@@ -1,20 +1,20 @@
1
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-CsniNK66.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-vHXV3ehV.js";
3
3
  import { G as Pt } from "./style-CFj6q1kW.js";
4
- import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-DCY7vATB.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-CglHU-ya.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-DFi1PQJG.js";
7
- import { C as Rt, P as Mt, a as Ut } from "./CheckoutWindow-ET8OmnqK.js";
8
- import { E as zt } from "./EventAvailabilityForm--R2UEx3o.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DJkXxXXq.js";
10
- function Gt(y) {
4
+ import { _ as _t } from "./_.vue_vue_type_style_index_0_lang-Q0efa7Bu.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 Lt, a as Bt } from "./masonry.plugin-D19pwBpH.js";
6
+ import { g as Ct, e as Ft, c as St, n as At, a as Ne, m as Te, b as Le, d as Be, f as Ce, _ as It } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BOrZv7ED.js";
7
+ import { C as Rt, P as Mt, a as Ut } from "./CheckoutWindow-C7Sez05a.js";
8
+ import { E as zt } from "./EventAvailabilityForm-BPl-K4R7.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-yLLdxGIS.js";
10
+ function Gt(h) {
11
11
  return (o) => {
12
- const h = (y ? Math[y] : Math.trunc)(o);
13
- return h === 0 ? 0 : h;
12
+ const D = (h ? Math[h] : Math.trunc)(o);
13
+ return D === 0 ? 0 : D;
14
14
  };
15
15
  }
16
- function qt(y, o, n) {
17
- const h = Ct(), v = n?.locale ?? h.locale ?? Ft, i = St(y, o);
16
+ function qt(h, o, n) {
17
+ const D = Ct(), v = n?.locale ?? D.locale ?? Ft, i = St(h, o);
18
18
  if (isNaN(i))
19
19
  throw new RangeError("Invalid time value");
20
20
  const g = Object.assign({}, n, {
@@ -22,27 +22,27 @@ function qt(y, o, n) {
22
22
  comparison: i
23
23
  }), [O, k] = At(
24
24
  n?.in,
25
- ...i > 0 ? [o, y] : [y, o]
26
- ), s = Gt("round"), V = k.getTime() - O.getTime(), D = V / Ce, L = Ne(k) - Ne(O), b = (V - L) / Ce, R = n?.unit;
25
+ ...i > 0 ? [o, h] : [h, o]
26
+ ), s = Gt("round"), V = k.getTime() - O.getTime(), P = V / Ce, B = Ne(k) - Ne(O), b = (V - B) / Ce, R = n?.unit;
27
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);
28
+ if (P < 1 ? w = "second" : P < 60 ? w = "minute" : P < Te ? w = "hour" : b < Le ? w = "day" : b < Be ? w = "month" : w = "year", w === "second") {
29
+ const _ = s(V / 1e3);
30
+ return v.formatDistance("xSeconds", _, g);
31
31
  } else if (w === "minute") {
32
- const P = s(D);
33
- return v.formatDistance("xMinutes", P, g);
32
+ const _ = s(P);
33
+ return v.formatDistance("xMinutes", _, g);
34
34
  } else if (w === "hour") {
35
- const P = s(D / 60);
36
- return v.formatDistance("xHours", P, g);
35
+ const _ = s(P / 60);
36
+ return v.formatDistance("xHours", _, g);
37
37
  } else if (w === "day") {
38
- const P = s(b / Te);
39
- return v.formatDistance("xDays", P, g);
38
+ const _ = s(b / Te);
39
+ return v.formatDistance("xDays", _, g);
40
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);
41
+ const _ = s(b / Le);
42
+ return _ === 12 && R !== "month" ? v.formatDistance("xYears", 1, g) : v.formatDistance("xMonths", _, g);
43
43
  } else {
44
- const P = s(b / Le);
45
- return v.formatDistance("xYears", P, g);
44
+ const _ = s(b / Be);
45
+ return v.formatDistance("xYears", _, g);
46
46
  }
47
47
  }
48
48
  const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__ */ Q({
@@ -69,8 +69,8 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
69
69
  disableDeepLink: { type: Boolean, default: !1 },
70
70
  callback: {}
71
71
  },
72
- setup(y) {
73
- const { t: o } = ae(), n = y, { display: h } = Ee(), {
72
+ setup(h) {
73
+ const { t: o } = ae(), n = h, { display: D } = Ee(), {
74
74
  maxNumberOfPeople: v,
75
75
  numberOfPeople: i,
76
76
  eventId: g,
@@ -79,19 +79,19 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
79
79
  } = W(x()), {
80
80
  getTemplateAvailability: s,
81
81
  getEventAvailability: V,
82
- isEventListingLoading: D
83
- } = x(), L = Z(() => n.maxGuests || n.maxOnlineReservationLimit || v.value || 1 / 0), b = Se(0), R = Z(() => D(n.listingId)), w = () => {
82
+ isEventListingLoading: P
83
+ } = x(), B = Z(() => n.maxGuests || n.maxOnlineReservationLimit || v.value || 1 / 0), b = Se(0), R = Z(() => P(n.listingId)), w = () => {
84
84
  if (!n.useNumberOfProductsForPersons && (b.value === 0 || isNaN(b.value))) {
85
- h({
85
+ D({
86
86
  type: "error",
87
87
  message: o("alert.error.selectPeople")
88
88
  });
89
89
  return;
90
90
  }
91
91
  g.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : b.value, s(n.callback);
92
- }, P = () => {
92
+ }, _ = () => {
93
93
  if (!n.useNumberOfProductsForPersons && (b.value === 0 || isNaN(b.value))) {
94
- h({
94
+ D({
95
95
  type: "error",
96
96
  message: o("alert.error.selectPeople")
97
97
  });
@@ -129,9 +129,9 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
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(ct)(e(o)("general.guests"))}` : void 0,
132
+ description: B.value <= 20 ? `${e(o)("general.availableFor")}: 1 - ${B.value} ${e(ct)(e(o)("general.guests"))}` : void 0,
133
133
  "min-value": 0,
134
- "max-value": L.value
134
+ "max-value": B.value
135
135
  }, null, 8, ["modelValue", "label", "description", "max-value"])),
136
136
  t("div", Ht, [
137
137
  m(ce, {
@@ -140,7 +140,7 @@ const Ht = { class: "konnectio-event-listing-action-button" }, Yt = /* @__PURE__
140
140
  "is-loading": R.value,
141
141
  "full-width": "",
142
142
  "sub-label": e(z)(e(O)),
143
- onClickEvent: F[1] || (F[1] = (A) => f.type === "event" ? P() : w())
143
+ onClickEvent: F[1] || (F[1] = (A) => f.type === "event" ? _() : w())
144
144
  }, null, 8, ["label", "disabled", "is-loading", "sub-label"])
145
145
  ])
146
146
  ], 2)
@@ -175,8 +175,8 @@ const Wt = {
175
175
  trackingEnabled: { type: Boolean },
176
176
  callback: {}
177
177
  },
178
- setup(y) {
179
- const o = y, { t: n } = ae(), { hideEventLength: h } = W(me()), v = Z(() => {
178
+ setup(h) {
179
+ const o = h, { t: n } = ae(), { hideEventLength: D } = W(me()), v = Z(() => {
180
180
  const i = o.length.split(":");
181
181
  return qt(
182
182
  new Date(2e3, 0, 1, Number(i[0]), Number(i[1]), 0),
@@ -204,7 +204,7 @@ const Wt = {
204
204
  }, null, 8, ["text"])) : p("", !0),
205
205
  t("ul", jt, [
206
206
  p("", !0),
207
- e(h) ? p("", !0) : (l(), d("li", Wt, [
207
+ e(D) ? p("", !0) : (l(), d("li", Wt, [
208
208
  t("div", null, [
209
209
  m(ne, {
210
210
  icon: "calendar-clock",
@@ -253,10 +253,10 @@ const Wt = {
253
253
  trackingEnabled: { type: Boolean },
254
254
  callback: { type: Function }
255
255
  },
256
- setup(y) {
257
- const { t: o } = ae(), { updateEventDate: n } = $e(), { display: h } = Ee(), v = Se(), i = y;
256
+ setup(h) {
257
+ const { t: o } = ae(), { updateEventDate: n } = $e(), { display: D } = Ee(), v = Se(), i = h;
258
258
  function g() {
259
- v.value ? n(v.value) : h({
259
+ v.value ? n(v.value) : D({
260
260
  message: o("alert.error.selectDate"),
261
261
  type: "error"
262
262
  });
@@ -289,7 +289,7 @@ const Wt = {
289
289
  t("div", Jt, [
290
290
  m(It, {
291
291
  modelValue: v.value,
292
- "onUpdate:modelValue": V[0] || (V[0] = (D) => v.value = D),
292
+ "onUpdate:modelValue": V[0] || (V[0] = (P) => v.value = P),
293
293
  label: `${e(o)("event.selectDate")}*`,
294
294
  placeholder: e(o)("event.selectDate"),
295
295
  "icon-type": "fas",
@@ -337,7 +337,7 @@ const Wt = {
337
337
  trackingEnabled: { type: Boolean },
338
338
  callback: {}
339
339
  },
340
- setup(y) {
340
+ setup(h) {
341
341
  return (o, n) => (l(), $(Ie, {
342
342
  "listing-id": o.listingId,
343
343
  gallery: o.images,
@@ -359,9 +359,9 @@ const Wt = {
359
359
  showTermsNotice: { type: Boolean, default: !1 },
360
360
  prevCallback: {}
361
361
  },
362
- setup(y) {
362
+ setup(h) {
363
363
  const { t: o } = ae(), n = nt(), {
364
- areListingsAvailable: h,
364
+ areListingsAvailable: D,
365
365
  arrivalTime: v,
366
366
  numberOfPeople: i,
367
367
  numberOfRooms: g,
@@ -369,12 +369,12 @@ const Wt = {
369
369
  isTemplateEvent: k,
370
370
  currentEventDate: s,
371
371
  length: V,
372
- fromDate: D,
373
- tableBasePrice: L,
372
+ fromDate: P,
373
+ tableBasePrice: B,
374
374
  getTemplateData: b,
375
375
  basePrice: R,
376
376
  totalPrice: w,
377
- weekendFee: P,
377
+ weekendFee: _,
378
378
  roomUpgrade: f,
379
379
  discountCode: F,
380
380
  totalSelectedProducts: A
@@ -385,10 +385,10 @@ const Wt = {
385
385
  "validate-discount-code": e(ve),
386
386
  "show-gift-card": M.showGiftCard,
387
387
  "show-terms-notice": M.showTermsNotice,
388
- "is-sidebar-loading": !e(h),
388
+ "is-sidebar-loading": !e(D),
389
389
  "base-price": e(R),
390
390
  "total-price": e(w),
391
- "weekend-fee": e(P),
391
+ "weekend-fee": e(_),
392
392
  "room-upgrade": e(f),
393
393
  notice: e(o)("event.reservationNotice"),
394
394
  "prev-callback": M.prevCallback
@@ -412,11 +412,11 @@ const Wt = {
412
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
- t("b", null, a(e(z)(e(D))), 1)
415
+ t("b", null, a(e(z)(e(P))), 1)
416
416
  ]),
417
417
  t("li", null, [
418
418
  t("span", null, a(e(o)("booking.reservation.departure")), 1),
419
- t("b", null, a(e(z)(e(D), e(O))), 1)
419
+ t("b", null, a(e(z)(e(P), e(O))), 1)
420
420
  ]),
421
421
  t("li", null, [
422
422
  t("span", null, a(e(o)("event.numberOfRooms")), 1),
@@ -437,9 +437,9 @@ const Wt = {
437
437
  ])) : p("", !0)
438
438
  ]),
439
439
  "price-summary": c(() => [
440
- !e(k) && e(L) > 0 ? (l(), d("li", dn, [
440
+ !e(k) && e(B) > 0 ? (l(), d("li", dn, [
441
441
  t("span", null, a(e(o)("booking.availability.basePrice")), 1),
442
- t("b", null, a(e(K)(e(L), e(oe))), 1)
442
+ t("b", null, a(e(K)(e(B), e(oe))), 1)
443
443
  ])) : p("", !0),
444
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),
@@ -451,7 +451,7 @@ const Wt = {
451
451
  ]),
452
452
  "mobile-under-price": c(() => [
453
453
  e(k) ? (l(), d("div", cn, [
454
- t("span", null, a(e(z)(e(D))) + " - " + a(e(z)(e(D), e(O))), 1)
454
+ t("span", null, a(e(z)(e(P))) + " - " + a(e(z)(e(P), e(O))), 1)
455
455
  ])) : (l(), d("div", mn, [
456
456
  t("span", null, a(e(z)(e(s))), 1)
457
457
  ]))
@@ -472,7 +472,7 @@ const Wt = {
472
472
  }
473
473
  }), _e = /* @__PURE__ */ ee(vn, [["__scopeId", "data-v-c4b0b5c7"]]), bn = { class: "event-skeleton" }, fn = { class: "event-skeleton-content" }, gn = { class: "event-skeleton-sidebar" }, kn = /* @__PURE__ */ Q({
474
474
  __name: "EventSkeleton",
475
- setup(y) {
475
+ setup(h) {
476
476
  return (o, n) => (l(), d("div", bn, [
477
477
  t("div", fn, [
478
478
  m(Ae)
@@ -492,7 +492,7 @@ const Wt = {
492
492
  }, Pn = { class: "konnectio-event-listings" }, _n = { class: "konnectio-hotel-availability-title" }, $n = { class: "konnectio-event-listings" }, wn = ["innerHTML"], En = { class: "konnectio-panel" }, On = {
493
493
  key: 0,
494
494
  id: "konnectio-event-addons"
495
- }, Vn = { class: "konnectio-table with-lines" }, Nn = { class: "konnectio-event-addons-price" }, Tn = { class: "konnectio-event-addons-input" }, Bn = { class: "konnectio-event-addons-price" }, Ln = { class: "konnectio-event-addons-price" }, Cn = {
495
+ }, Vn = { class: "konnectio-table with-lines" }, Nn = { class: "konnectio-event-addons-price" }, Tn = { class: "konnectio-event-addons-input" }, Ln = { class: "konnectio-event-addons-price" }, Bn = { class: "konnectio-event-addons-price" }, Cn = {
496
496
  key: 1,
497
497
  class: "konnectio-table with-lines"
498
498
  }, Fn = { class: "konnectio-table-addons-information" }, Sn = { key: 0 }, An = { class: "konnectio-table-addons-option" }, In = { class: "konnectio-panel" }, Rn = /* @__PURE__ */ Q({
@@ -503,11 +503,12 @@ const Wt = {
503
503
  onlyShow: { default: "everything" },
504
504
  selectedLocation: {},
505
505
  resetDate: { default: "no" },
506
+ hideLocations: { default: "no" },
506
507
  styling: {}
507
508
  },
508
- setup(y) {
509
- const o = y, { t: n } = ae(), {
510
- addons: h,
509
+ setup(h) {
510
+ const o = h, { t: n } = ae(), {
511
+ addons: D,
511
512
  products: v,
512
513
  numberOfDays: i,
513
514
  name: g,
@@ -515,12 +516,12 @@ const Wt = {
515
516
  email: k,
516
517
  remark: s,
517
518
  allergies: V,
518
- arrivalTime: D,
519
- hasEvents: L,
519
+ arrivalTime: P,
520
+ hasEvents: B,
520
521
  hasTemplates: b,
521
522
  getEvents: R,
522
523
  getTemplates: w,
523
- getEventData: P,
524
+ getEventData: _,
524
525
  getTemplateData: f,
525
526
  getEventTableData: F,
526
527
  hasProducts: A,
@@ -568,25 +569,25 @@ const Wt = {
568
569
  icon: "calendar-check"
569
570
  }
570
571
  ]), Je = Z(() => {
571
- const _ = [];
572
+ const y = [];
572
573
  return F.value && F.value.forEach((u) => {
573
- _.find((B) => B.value === u.time) || _.push({
574
+ y.find((L) => L.value === u.time) || y.push({
574
575
  label: we(u.time),
575
576
  value: u.time
576
577
  });
577
- }), _;
578
+ }), y;
578
579
  });
579
580
  function Ke() {
580
581
  Ze(o.resetDate === "yes");
581
582
  }
582
583
  function Xe() {
583
- const _ = yt("history", {
584
+ const y = yt("history", {
584
585
  removeNullishValues: !0
585
- }), u = parseInt(_.rid), B = _.d, N = parseInt(_.eid);
586
- if (B)
587
- if (ht(B)) {
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({
586
+ }), u = parseInt(y.rid), L = y.d, N = parseInt(y.eid);
587
+ if (L)
588
+ if (ht(L)) {
589
+ const r = new Date(L), C = r.setHours(12, 0, 0, 0), S = (/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0);
590
+ C >= S ? (Ue.value = r, y.d = void 0) : ge({
590
591
  message: n("alert.error.invalidDateRange"),
591
592
  type: "error"
592
593
  });
@@ -595,18 +596,18 @@ const Wt = {
595
596
  message: n("alert.error.wrongDateFormat"),
596
597
  type: "error"
597
598
  });
598
- isNaN(u) || (Ge(u) ? ze.value = u : (_.rid = void 0, ge({
599
+ isNaN(u) || (Ge(u) ? ze.value = u : (y.rid = void 0, ge({
599
600
  message: n("alert.error.hotelIdNotFound"),
600
601
  type: "error"
601
602
  }))), isNaN(N) || Me(N), He();
602
603
  }
603
- return (_, u) => (l(), $(kt, { styling: _.styling }, {
604
+ return (y, u) => (l(), $(kt, { styling: y.styling }, {
604
605
  default: c(() => [
605
606
  (l(), $(ot, { onResolve: Xe }, {
606
607
  default: c(() => [
607
608
  m(_t, {
608
609
  id: "konnectio-event-module",
609
- "access-token": _.accessToken,
610
+ "access-token": y.accessToken,
610
611
  callback: e(qe)
611
612
  }, {
612
613
  default: c(() => [
@@ -614,13 +615,14 @@ const Wt = {
614
615
  steps: Qe.value,
615
616
  onReset: Ke
616
617
  }, {
617
- availability: c(({ next: B }) => [
618
+ availability: c(({ next: L }) => [
618
619
  m(_e, null, {
619
620
  sidebar: c(() => [
620
621
  m(zt, {
621
622
  redirection: !1,
622
- "selected-location": Number(_.selectedLocation)
623
- }, null, 8, ["selected-location"])
623
+ "selected-location": Number(y.selectedLocation),
624
+ "hide-locations": y.hideLocations === "yes"
625
+ }, null, 8, ["selected-location", "hide-locations"])
624
626
  ]),
625
627
  form: c(() => [
626
628
  e(be) && e(ve) ? (l(), d("div", hn, [
@@ -633,7 +635,7 @@ const Wt = {
633
635
  t("span", null, a(e(n)("event.availableNow")), 1)
634
636
  ])) : p("", !0),
635
637
  t("ul", Pn, [
636
- e(L) && _.onlyShow !== "templates" ? (l(!0), d(I, { key: 0 }, j(e(R), ({
638
+ e(B) && y.onlyShow !== "templates" ? (l(!0), d(I, { key: 0 }, j(e(R), ({
637
639
  id: N,
638
640
  days: r,
639
641
  name: C,
@@ -667,9 +669,9 @@ const Wt = {
667
669
  "time-to": E,
668
670
  "sold-out": te,
669
671
  "use-number-of-products-for-persons": De,
670
- callback: B
672
+ callback: L
671
673
  }, 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(I, { key: 1 }, j(e(w), ({
674
+ e(b) && y.onlyShow !== "events" ? (l(!0), d(I, { key: 1 }, j(e(w), ({
673
675
  id: N,
674
676
  name: r,
675
677
  fromDate: C,
@@ -690,10 +692,10 @@ const Wt = {
690
692
  "to-date": S,
691
693
  "minimum-person-count": E,
692
694
  fromPrice: T,
693
- callback: B
695
+ callback: L
694
696
  }, null, 8, ["listing-id", "name", "image", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : p("", !0)
695
697
  ]),
696
- e(fe).length > 0 && _.onlyShow !== "templates" ? (l(), d(I, { key: 1 }, [
698
+ e(fe).length > 0 && y.onlyShow !== "templates" ? (l(), d(I, { key: 1 }, [
697
699
  t("h2", _n, [
698
700
  m(ne, {
699
701
  icon: "calendar-circle-exclamation",
@@ -737,11 +739,11 @@ const Wt = {
737
739
  "time-to": E,
738
740
  "sold-out": te,
739
741
  "use-number-of-products-for-persons": De,
740
- callback: B
742
+ callback: L
741
743
  }, 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
744
  ])
743
745
  ], 64)) : p("", !0),
744
- !e(L) && !e(b) || !e(L) && _.onlyShow === "events" || !e(b) && _.onlyShow === "templates" ? (l(), d("div", {
746
+ !e(B) && !e(b) || !e(B) && y.onlyShow === "events" || !e(b) && y.onlyShow === "templates" ? (l(), d("div", {
745
747
  key: 2,
746
748
  class: "konnectio-panel",
747
749
  innerHTML: e(n)("event.nothingAvailable")
@@ -751,7 +753,7 @@ const Wt = {
751
753
  _: 2
752
754
  }, 1024)
753
755
  ]),
754
- addons: c(({ next: B, prev: N }) => [
756
+ addons: c(({ next: L, prev: N }) => [
755
757
  e(oe) ? (l(), $(_e, {
756
758
  key: 0,
757
759
  "prev-callback": () => e(Oe)(N)
@@ -805,18 +807,18 @@ const Wt = {
805
807
  t("td", Tn, [
806
808
  G === 3 ? (l(), $(ue, {
807
809
  key: 0,
808
- modelValue: e(h)[`${r}.${T}.${E}`],
809
- "onUpdate:modelValue": (Y) => e(h)[`${r}.${T}.${E}`] = Y,
810
+ modelValue: e(D)[`${r}.${T}.${E}`],
811
+ "onUpdate:modelValue": (Y) => e(D)[`${r}.${T}.${E}`] = Y,
810
812
  small: !0,
811
813
  "min-value": 0
812
814
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), $(Ut, {
813
815
  key: 1,
814
- modelValue: e(h)[`${r}.${T}.${E}`],
815
- "onUpdate:modelValue": (Y) => e(h)[`${r}.${T}.${E}`] = Y,
816
+ modelValue: e(D)[`${r}.${T}.${E}`],
817
+ "onUpdate:modelValue": (Y) => e(D)[`${r}.${T}.${E}`] = Y,
816
818
  numeric: !0
817
819
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
818
820
  ]),
819
- t("td", Bn, [
821
+ t("td", Ln, [
820
822
  t("span", null, a(e(K)(e(je)(T, r, E), e(ie))), 1)
821
823
  ])
822
824
  ]))), 128))
@@ -825,7 +827,7 @@ const Wt = {
825
827
  t("tr", null, [
826
828
  u[10] || (u[10] = t("td", null, null, -1)),
827
829
  u[11] || (u[11] = t("td", null, null, -1)),
828
- t("td", Ln, [
830
+ t("td", Bn, [
829
831
  t("u", null, [
830
832
  t("span", null, a(e(K)(e(We)(r, E), e(ie))), 1)
831
833
  ])
@@ -837,7 +839,7 @@ const Wt = {
837
839
  ])) : p("", !0),
838
840
  e(A) ? (l(), d("table", Cn, [
839
841
  t("tbody", null, [
840
- (l(!0), d(I, null, j(e(P).products, ({ id: r, name: C, price: S, description: E }) => (l(), d("tr", { key: r }, [
842
+ (l(!0), d(I, null, j(e(_).products, ({ id: r, name: C, price: S, description: E }) => (l(), d("tr", { key: r }, [
841
843
  t("td", Fn, [
842
844
  t("b", null, [
843
845
  t("span", null, a(e(Ve)(C)), 1)
@@ -863,13 +865,13 @@ const Wt = {
863
865
  label: e(n)("event.startReservation"),
864
866
  disabled: !e(se),
865
867
  "full-width": "",
866
- onClickEvent: B
868
+ onClickEvent: L
867
869
  }, null, 8, ["label", "disabled", "onClickEvent"])
868
870
  ]),
869
871
  _: 2
870
872
  }, 1032, ["prev-callback"])) : p("", !0)
871
873
  ]),
872
- reservation: c(({ next: B, prev: N }) => [
874
+ reservation: c(({ next: L, prev: N }) => [
873
875
  m(_e, {
874
876
  "show-terms-notice": !0,
875
877
  "show-gift-card": !0,
@@ -910,8 +912,8 @@ const Wt = {
910
912
  }, null, 8, ["modelValue", "label", "placeholder"]),
911
913
  e(J) ? (l(), $(Tt, {
912
914
  key: 0,
913
- modelValue: e(D),
914
- "onUpdate:modelValue": u[3] || (u[3] = (r) => U(D) ? D.value = r : null),
915
+ modelValue: e(P),
916
+ "onUpdate:modelValue": u[3] || (u[3] = (r) => U(P) ? P.value = r : null),
915
917
  label: e(n)("event.selectArrivalTime"),
916
918
  name: "eventTimeTable",
917
919
  checkboxes: Je.value,
@@ -949,7 +951,7 @@ const Wt = {
949
951
  "is-loading": e(M),
950
952
  disabled: !e(le),
951
953
  "full-width": "",
952
- onClickEvent: (r) => e(Ye)(B)
954
+ onClickEvent: (r) => e(Ye)(L)
953
955
  }, null, 8, ["label", "is-loading", "disabled", "onClickEvent"])
954
956
  ]),
955
957
  _: 2
@@ -978,7 +980,7 @@ const Wt = {
978
980
  _: 1
979
981
  }, 8, ["styling"]));
980
982
  }
981
- }), Fe = /* @__PURE__ */ ee(Rn, [["__scopeId", "data-v-5fed527b"]]), Mn = lt(), Un = st, zn = Un();
983
+ }), Fe = /* @__PURE__ */ ee(Rn, [["__scopeId", "data-v-cc01ff9c"]]), Mn = lt(), Un = st, zn = Un();
982
984
  class Gn extends HTMLElement {
983
985
  vueApp;
984
986
  constructor() {
@@ -989,7 +991,7 @@ class Gn extends HTMLElement {
989
991
  }
990
992
  connectedCallback() {
991
993
  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 });
994
+ this.vueApp = rt(Fe, o), this.vueApp.provide("emitter", zn), this.vueApp.use(ut), this.vueApp.use(Mn), this.vueApp.use(Lt), this.vueApp.use(Pt), this.vueApp.use(Bt), this.vueApp.use(Dt, { bootstrap: !0 });
993
995
  const n = document.createElement("div");
994
996
  this.vueApp.mount(n), this.appendChild(n.children[0]);
995
997
  }
package/dist/event.js.br CHANGED
Binary file
@@ -1,11 +1,11 @@
1
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-CsniNK66.js";
3
- import { u as z } from "./giftCard-vJLJWCwZ.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DCY7vATB.js";
5
- import { A as K } from "./ActionField-YcUnxCh1.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DJkXxXXq.js";
7
- import { F as y } from "./Field-BdH4Sloj.js";
8
- import { E as Q } from "./ErrorMessage-CwQY7g9Q.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-vHXV3ehV.js";
3
+ import { u as z } from "./giftCard-5wAI4XEl.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-Q0efa7Bu.js";
5
+ import { A as K } from "./ActionField-OJ0B_Rvq.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-yLLdxGIS.js";
7
+ import { F as y } from "./Field-DrXN88nH.js";
8
+ import { E as Q } from "./ErrorMessage-BJIYUPxq.js";
9
9
  import { G as Y } from "./style-CFj6q1kW.js";
10
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",
Binary file
package/dist/gift-card.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { d as G, u as q, r as O, c as Y, a as y, b as s, w as C, e as l, h as c, i as m, f as t, g as e, n as J, t as L, j as te, C as oe, s as W, D as ne, o as ie, S as se, E as A, G as S, F as re, A as de, y as v, k as ue, _ as ce, l as pe, m as me, p as fe } from "./mitt-BysJOgFD.js";
2
- import { a as ve, e as T, x as be, _ as x, h as he, d as _e, L as ke, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js";
2
+ import { a as ve, e as T, x as be, _ as x, h as he, d as _e, L as ke, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js";
3
3
  import { G as Ve } from "./style-CFj6q1kW.js";
4
- import { u as I } from "./giftCard-vJLJWCwZ.js";
5
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-DCY7vATB.js";
6
- import { C as we, a as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-ET8OmnqK.js";
7
- import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DJkXxXXq.js";
8
- import { F as U } from "./Field-BdH4Sloj.js";
9
- import { E as Te } from "./ErrorMessage-CwQY7g9Q.js";
10
- import { S as Ge } from "./TermsOfService-B4Xq6arX.js";
4
+ import { u as I } from "./giftCard-5wAI4XEl.js";
5
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-Q0efa7Bu.js";
6
+ import { C as we, a as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-C7Sez05a.js";
7
+ import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-yLLdxGIS.js";
8
+ import { F as U } from "./Field-DrXN88nH.js";
9
+ import { E as Te } from "./ErrorMessage-BJIYUPxq.js";
10
+ import { S as Ge } from "./TermsOfService-OiLRXZF3.js";
11
11
  const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
12
12
  __name: "MediaSelector",
13
13
  props: {
Binary file
@@ -1,5 +1,5 @@
1
1
  import { H as V, s as J, r as t, c as a, I as y } from "./mitt-BysJOgFD.js";
2
- import { z as K, a as Q, h as z, G as o, A as h, D as E, w as O, E as X, S } from "./SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js";
2
+ import { z as K, a as Q, h as z, G as o, A as h, D as E, w as O, E as X, S } from "./SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js";
3
3
  const $ = V("giftCard", () => {
4
4
  const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: M, hasError: P } = J(z()), x = z(), s = t(o.InitialState), u = h("konnectio_name", "", void 0, { serializer: S.string }), v = h("konnectio_email", "", void 0, { serializer: S.string }), d = h("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), T = t(1), F = t(!0), b = t(""), i = t({
5
5
  base64: "",
@@ -106,4 +106,4 @@ const $ = V("giftCard", () => {
106
106
  export {
107
107
  $ as u
108
108
  };
109
- //# sourceMappingURL=giftCard-vJLJWCwZ.js.map
109
+ //# sourceMappingURL=giftCard-5wAI4XEl.js.map
Binary file