@konnectio/core 4.0.56-rc25 → 4.0.56-rc27

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 (41) hide show
  1. package/dist/{ActionField-7P8dDME0.js → ActionField-ePKg0xO1.js} +5 -5
  2. package/dist/ActionField-ePKg0xO1.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-kd2z0IL5.js → AvailabilitySkeleton-5DackFae.js} +3 -2
  4. package/dist/AvailabilitySkeleton-5DackFae.js.br +0 -0
  5. package/dist/CheckoutWindow-6eRdB_Nr.js +659 -0
  6. package/dist/CheckoutWindow-6eRdB_Nr.js.br +0 -0
  7. package/dist/{ErrorMessage-5TxZYuTj.js → ErrorMessage-m6fm80y-.js} +1 -1
  8. package/dist/ErrorMessage-m6fm80y-.js.br +0 -0
  9. package/dist/{EventAvailabilityForm--XuKLthM.js → EventAvailabilityForm-njV8OLfe.js} +23 -23
  10. package/dist/EventAvailabilityForm-njV8OLfe.js.br +0 -0
  11. package/dist/{Field-pY1XGbPQ.js → Field-_xFdfmMy.js} +4739 -4720
  12. package/dist/Field-_xFdfmMy.js.br +0 -0
  13. package/dist/{HotelAvailabilityForm-hWTsZCGI.js → HotelAvailabilityForm-_WQ7D6ZV.js} +2 -2
  14. package/dist/HotelAvailabilityForm-_WQ7D6ZV.js.br +0 -0
  15. package/dist/TermsOfService-yZDjWHoR.js +26 -0
  16. package/dist/availability.js +9 -9
  17. package/dist/availability.js.br +0 -0
  18. package/dist/event.js +74 -74
  19. package/dist/event.js.br +0 -0
  20. package/dist/gift-card-validation.js +16 -16
  21. package/dist/gift-card-validation.js.br +0 -0
  22. package/dist/gift-card.js +262 -226
  23. package/dist/gift-card.js.br +0 -0
  24. package/dist/hotel.js +717 -674
  25. package/dist/hotel.js.br +0 -0
  26. package/dist/{masonry.plugin-MNkmNEdZ.js → masonry.plugin-X7EsV_uU.js} +1112 -1124
  27. package/dist/masonry.plugin-X7EsV_uU.js.br +0 -0
  28. package/dist/polyfill.js +84 -84
  29. package/dist/polyfill.js.br +0 -0
  30. package/dist/style.css +1 -1
  31. package/dist/style.css.br +0 -0
  32. package/package.json +1 -1
  33. package/dist/ActionField-7P8dDME0.js.br +0 -0
  34. package/dist/AvailabilitySkeleton-kd2z0IL5.js.br +0 -0
  35. package/dist/CheckoutWindow-Cru3v8It.js +0 -710
  36. package/dist/CheckoutWindow-Cru3v8It.js.br +0 -0
  37. package/dist/ErrorMessage-5TxZYuTj.js.br +0 -0
  38. package/dist/EventAvailabilityForm--XuKLthM.js.br +0 -0
  39. package/dist/Field-pY1XGbPQ.js.br +0 -0
  40. package/dist/HotelAvailabilityForm-hWTsZCGI.js.br +0 -0
  41. package/dist/masonry.plugin-MNkmNEdZ.js.br +0 -0
Binary file
@@ -1,5 +1,5 @@
1
- import { d as J, u as K, i as P, s as h, a as U, b as x, c as Q, r as W, e as m, w as C, o as X, f as n, g as v, h as _, j as e, k, l as f, _ as Y, m as g, F as R, n as D, T as B, p as F, C as H, q as I, t as Z, v as ee, x as ae } from "./Field-pY1XGbPQ.js";
2
- import { _ as le } from "./AvailabilitySkeleton-kd2z0IL5.js";
1
+ import { d as J, u as K, i as P, s as h, a as U, b as x, c as Q, r as W, e as m, w as C, o as X, f as n, g as v, h as _, j as e, k, l as f, _ as Y, m as g, F as R, n as D, T as B, p as F, C as H, q as I, t as Z, v as ee, x as ae } from "./Field-_xFdfmMy.js";
2
+ import { _ as le } from "./AvailabilitySkeleton-5DackFae.js";
3
3
  const te = {
4
4
  key: 0,
5
5
  class: "konnectio-availability-location"
@@ -0,0 +1,26 @@
1
+ import { d as o, u as a, f as r, n as i, y as c, h as e, j as s, z as p, x as _ } from "./Field-_xFdfmMy.js";
2
+ import { B as d } from "./CheckoutWindow-6eRdB_Nr.js";
3
+ const l = { class: "konnectio-terms-side-panel" }, f = ["innerHTML"], m = /* @__PURE__ */ o({
4
+ __name: "TermsOfService",
5
+ props: {
6
+ description: {}
7
+ },
8
+ setup(u) {
9
+ const { t } = a();
10
+ return (n, h) => (r(), i(d, {
11
+ title: s(t)("general.termsAndConditions")
12
+ }, {
13
+ default: c(() => [
14
+ e("div", l, [
15
+ e("p", {
16
+ innerHTML: s(p)(n.description)
17
+ }, null, 8, f)
18
+ ])
19
+ ]),
20
+ _: 1
21
+ }, 8, ["title"]));
22
+ }
23
+ }), x = /* @__PURE__ */ _(m, [["__scopeId", "data-v-82aaf990"]]);
24
+ export {
25
+ x as S
26
+ };
@@ -1,9 +1,9 @@
1
- import { d as C, u as w, r as E, e as m, o as S, f as p, n as v, z as d, S as T, h as a, k as y, g as B, q as b, t as f, A, j as L, F as I, m as _, B as z, D as H, E as M, G as F, H as N, x as P, J as V, K as j, L as O, M as $ } from "./Field-pY1XGbPQ.js";
2
- import { H as x } from "./HotelAvailabilityForm-hWTsZCGI.js";
3
- import { E as D } from "./EventAvailabilityForm--XuKLthM.js";
4
- import { E as K } from "./ErrorMessage-5TxZYuTj.js";
5
- import { A as U } from "./AvailabilitySkeleton-kd2z0IL5.js";
6
- const Z = (l) => (F("data-v-16ca7abd"), l = l(), N(), l), q = { class: "konnectio-availability-module" }, G = { class: "konnectio-availability-navigation" }, J = /* @__PURE__ */ Z(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), Q = { class: "konnectio-availability-search-form" }, R = /* @__PURE__ */ C({
1
+ import { d as C, u as w, r as E, e as m, o as S, f as p, n as v, y as d, S as T, h as a, k as y, g as B, q as b, t as f, B as A, j as L, F as I, m as _, D as H, E as M, G as N, H as z, J as F, x as P, K as V, L as j, M as O, N as $ } from "./Field-_xFdfmMy.js";
2
+ import { H as x } from "./HotelAvailabilityForm-_WQ7D6ZV.js";
3
+ import { E as D } from "./EventAvailabilityForm-njV8OLfe.js";
4
+ import { E as K } from "./ErrorMessage-m6fm80y-.js";
5
+ import { A as U } from "./AvailabilitySkeleton-5DackFae.js";
6
+ const Z = (l) => (z("data-v-16ca7abd"), l = l(), F(), l), q = { class: "konnectio-availability-module" }, G = { class: "konnectio-availability-navigation" }, J = /* @__PURE__ */ Z(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), Q = { class: "konnectio-availability-search-form" }, R = /* @__PURE__ */ C({
7
7
  name: "AvailabilityLayout",
8
8
  __name: "Availability",
9
9
  props: {
@@ -16,12 +16,12 @@ const Z = (l) => (F("data-v-16ca7abd"), l = l(), N(), l), q = { class: "konnecti
16
16
  const { t: r } = w(), i = l, s = E(), h = m(() => i.hotelLink || i.eventLink), c = m(() => i.hotelLink && i.eventLink), o = m(() => s.value === "hotel"), u = m(() => s.value === "event"), e = (t) => s.value = t;
17
17
  return S(() => {
18
18
  !i.hotelLink && i.eventLink ? s.value = "event" : s.value = "hotel";
19
- }), (t, n) => (p(), v(M, { styling: t.styling }, {
19
+ }), (t, n) => (p(), v(N, { styling: t.styling }, {
20
20
  default: d(() => [
21
21
  h.value ? (p(), v(T, { key: 0 }, {
22
22
  default: d(() => [
23
23
  a("div", null, [
24
- y(H, {
24
+ y(M, {
25
25
  "access-token": t.accessToken,
26
26
  type: "hotel"
27
27
  }, {
@@ -51,7 +51,7 @@ const Z = (l) => (F("data-v-16ca7abd"), l = l(), N(), l), q = { class: "konnecti
51
51
  J
52
52
  ], 64)) : _("", !0),
53
53
  a("div", Q, [
54
- y(z, {
54
+ y(H, {
55
55
  name: "fade",
56
56
  mode: "out-in",
57
57
  appear: ""
Binary file
package/dist/event.js CHANGED
@@ -1,11 +1,11 @@
1
- import { d as J, u as te, Q as Ie, s as Z, c as ye, r as ze, e as je, f as a, n as _, a4 as _e, z as d, g as i, j as e, a5 as ce, m as u, h as n, a6 as pe, k as r, a1 as C, A as t, a7 as me, a8 as Ge, a2 as O, a9 as Ze, x as le, aa as Qe, Z as x, o as Je, w as Ke, S as We, F as A, ab as S, l as R, V as ve, p as ee, T as be, ac as he, ad as Ye, ae as ne, a3 as fe, C as Xe, t as xe, D as en, E as nn, G as tn, H as ln, J as an, K as on, L as sn, af as rn, M as un } from "./Field-pY1XGbPQ.js";
2
- import { B as dn, R as cn, L as Ve, M as pn, T as mn, V as vn, G as bn } from "./masonry.plugin-MNkmNEdZ.js";
3
- import { u as Q, E as hn } from "./EventAvailabilityForm--XuKLthM.js";
4
- import { A as fn } from "./ActionField-7P8dDME0.js";
5
- import { P as gn, C as ge, a as kn } from "./CheckoutWindow-Cru3v8It.js";
6
- import { A as yn } from "./AvailabilitySkeleton-kd2z0IL5.js";
1
+ import { d as J, u as te, R as Ie, s as W, c as ye, r as ze, e as je, f as a, n as _, a5 as _e, y as d, g as i, j as e, z as ce, m as u, h as n, a6 as pe, k as r, a2 as A, B as t, a7 as me, a8 as Ge, a3 as O, a9 as We, x as le, aa as Ze, $ as x, o as Je, w as Ke, S as Qe, F as C, ab as S, l as R, W as ve, p as ee, T as be, ac as he, ad as Ye, ae as ne, a4 as fe, C as Xe, t as xe, E as en, G as nn, H as tn, J as ln, K as an, L as on, M as sn, af as rn, N as un } from "./Field-_xFdfmMy.js";
2
+ import { B as dn, R as cn, L as Ve, M as pn, T as mn, V as vn, G as bn } from "./masonry.plugin-X7EsV_uU.js";
3
+ import { u as Z, E as hn } from "./EventAvailabilityForm-njV8OLfe.js";
4
+ import { A as fn } from "./ActionField-ePKg0xO1.js";
5
+ import { P as gn, C as ge, a as kn } from "./CheckoutWindow-6eRdB_Nr.js";
6
+ import { A as yn } from "./AvailabilitySkeleton-5DackFae.js";
7
7
  const _n = ["innerHTML"], Vn = { class: "konnectio-event-listing-information-new" };
8
- const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
8
+ const $n = { key: 1 }, En = { key: 2 }, Tn = /* @__PURE__ */ J({
9
9
  __name: "Event",
10
10
  props: {
11
11
  name: {},
@@ -29,22 +29,22 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
29
29
  callback: {}
30
30
  },
31
31
  setup(V) {
32
- const { t: l } = te(), p = V, { display: m } = Ie(), { currency: B } = Z(ye()), {
33
- maxNumberOfPeople: E,
34
- numberOfPeople: T,
35
- eventId: $,
32
+ const { t: l } = te(), p = V, { display: m } = Ie(), { currency: B } = W(ye()), {
33
+ maxNumberOfPeople: $,
34
+ numberOfPeople: E,
35
+ eventId: T,
36
36
  tableGroupId: c
37
- } = Z(Q()), {
37
+ } = W(Z()), {
38
38
  getTemplateAvailability: b,
39
39
  getEventAvailability: h,
40
40
  isEventListingLoading: D
41
- } = Q(), v = ze(0), H = je(() => D(p.listingId)), I = () => {
42
- v.value > 0 ? ($.value = p.listingId, T.value = v.value, b(p.callback)) : m({
41
+ } = Z(), v = ze(0), H = je(() => D(p.listingId)), I = () => {
42
+ v.value > 0 ? (T.value = p.listingId, E.value = v.value, b(p.callback)) : m({
43
43
  type: "error",
44
44
  message: l("alert.error.selectPeople")
45
45
  });
46
46
  }, K = () => {
47
- v.value > 0 ? ($.value = p.listingId, c.value = p.tableGroupId, T.value = v.value, h(p.callback)) : m({
47
+ v.value > 0 ? (T.value = p.listingId, c.value = p.tableGroupId, E.value = v.value, h(p.callback)) : m({
48
48
  type: "error",
49
49
  message: l("alert.error.selectPeople")
50
50
  });
@@ -54,7 +54,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
54
54
  gallery: s.gallery,
55
55
  name: s.name,
56
56
  description: s.description,
57
- layout: e(Ze).Event
57
+ layout: e(We).Event
58
58
  }, _e({
59
59
  action: d(() => [
60
60
  r(fn, {
@@ -65,7 +65,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
65
65
  buttonLabel: s.soldOut ? e(l)("event.soldOut") : e(l)("event.bookNowButton"),
66
66
  buttonDisabled: s.soldOut,
67
67
  "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
68
- "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(E),
68
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e($),
69
69
  "is-loading": H.value,
70
70
  "onUpdate:isLoading": P[1] || (P[1] = (U) => H.value = U),
71
71
  onAction: P[2] || (P[2] = (U) => s.type === "event" ? K() : I())
@@ -82,8 +82,8 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
82
82
  }, null, 8, _n)) : u("", !0),
83
83
  n("ul", Vn, [
84
84
  u("", !0),
85
- e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", En, [
86
- r(C, {
85
+ e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", $n, [
86
+ r(A, {
87
87
  icon: "calendar-days",
88
88
  color: "header"
89
89
  }),
@@ -93,14 +93,14 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
93
93
  n("span", null, t(s.length), 1)
94
94
  ]),
95
95
  n("li", null, [
96
- r(C, {
96
+ r(A, {
97
97
  icon: "calendar-clock",
98
98
  color: "header"
99
99
  }),
100
100
  n("span", null, t(e(Ge)(s.timeFrom, s.timeTo)), 1)
101
101
  ]),
102
- s.maxOnlineReservationLimit ? (a(), i("li", Tn, [
103
- r(C, {
102
+ s.maxOnlineReservationLimit ? (a(), i("li", En, [
103
+ r(A, {
104
104
  icon: "user-alt",
105
105
  color: "header"
106
106
  }),
@@ -114,21 +114,21 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
114
114
  fn: d(() => [
115
115
  n("ul", { class: "konnectio-event-listing-information" }, [
116
116
  e(pe)(s.fromDate, s.toDate) < 180 ? (a(), i("li", { key: 0 }, [
117
- r(C, {
117
+ r(A, {
118
118
  icon: "calendar-days",
119
119
  color: "header"
120
120
  }),
121
121
  n("span", null, t(e(me)(s.fromDate, s.toDate, !0)), 1)
122
122
  ])) : u("", !0),
123
123
  n("li", null, [
124
- r(C, {
124
+ r(A, {
125
125
  icon: "user-alt",
126
126
  color: "header"
127
127
  }),
128
- n("span", null, t(`${s.minimumPersonCount} - ${e(E)} ${e(l)("general.people")}`), 1)
128
+ n("span", null, t(`${s.minimumPersonCount} - ${e($)} ${e(l)("general.people")}`), 1)
129
129
  ]),
130
130
  n("li", null, [
131
- r(C, {
131
+ r(A, {
132
132
  icon: "money-bill",
133
133
  color: "header"
134
134
  }),
@@ -144,14 +144,14 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
144
144
  }
145
145
  ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
146
146
  }
147
- }), ke = /* @__PURE__ */ le($n, [["__scopeId", "data-v-228d0b15"]]), wn = /* @__PURE__ */ J({
147
+ }), ke = /* @__PURE__ */ le(Tn, [["__scopeId", "data-v-228d0b15"]]), wn = /* @__PURE__ */ J({
148
148
  __name: "EventReservationForm",
149
149
  props: {
150
150
  showGiftCard: { type: Boolean, default: !1 },
151
151
  showTermsNotice: { type: Boolean, default: !1 }
152
152
  },
153
153
  setup(V) {
154
- const { t: l } = te(), p = Qe();
154
+ const { t: l } = te(), p = Ze();
155
155
  return (m, B) => (a(), _(cn, {
156
156
  "total-price": 0,
157
157
  "show-gift-card": m.showGiftCard,
@@ -178,21 +178,21 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
178
178
  } : void 0
179
179
  ]), 1032, ["show-gift-card", "show-terms-notice", "notice"]));
180
180
  }
181
- }), An = { class: "event-skeleton" }, Cn = /* @__PURE__ */ J({
181
+ }), Cn = { class: "event-skeleton" }, An = /* @__PURE__ */ J({
182
182
  __name: "EventSkeleton",
183
183
  setup(V) {
184
- return (l, p) => (a(), i("div", An, [
184
+ return (l, p) => (a(), i("div", Cn, [
185
185
  r(yn, { view: "event" }),
186
186
  r(Ve)
187
187
  ]));
188
188
  }
189
- }), Pn = /* @__PURE__ */ le(Cn, [["__scopeId", "data-v-66a17edb"]]), N = (V) => (tn("data-v-274a2a78"), V = V(), ln(), V), Ln = { class: "fresh-booking-panel" }, On = {
189
+ }), Pn = /* @__PURE__ */ le(An, [["__scopeId", "data-v-66a17edb"]]), N = (V) => (tn("data-v-274a2a78"), V = V(), ln(), V), Ln = { class: "fresh-booking-panel" }, On = {
190
190
  key: 0,
191
191
  id: "fresh-booking-event-overview"
192
192
  }, Bn = { class: "fresh-booking-event-listings" }, Dn = { class: "fresh-booking-event-listings" }, Fn = { class: "fresh-booking-panel" }, Sn = {
193
193
  key: 2,
194
194
  id: "fresh-booking-event-addons"
195
- }, Un = { class: "fresh-booking-table" }, Rn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Nn = { class: "fresh-booking-event-addons-price" }, Mn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), qn = { class: "fresh-booking-event-addons-input" }, Hn = { class: "fresh-booking-event-addons-price" }, In = /* @__PURE__ */ N(() => /* @__PURE__ */ n("td", { colspan: "2" }, null, -1)), zn = { class: "fresh-booking-event-addons-price" }, jn = { key: 3 }, Gn = { class: "fresh-booking-label required" }, Zn = { id: "fresh-booking-event-table" }, Qn = { key: 4 }, Jn = { class: "fresh-booking-label required" }, Kn = { class: "fresh-booking-table" }, Wn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Yn = { class: "fresh-booking-event-addons-price" }, Xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), et = { class: "fresh-booking-event-addons-input" }, nt = { class: "fresh-booking-event-addons-price" }, tt = { key: 0 }, lt = { key: 1 }, at = { key: 2 }, ot = { key: 3 }, st = { key: 4 }, it = { key: 5 }, rt = { key: 6 }, ut = ["onClick"], dt = /* @__PURE__ */ J({
195
+ }, Un = { class: "fresh-booking-table" }, Rn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Nn = { class: "fresh-booking-event-addons-price" }, Mn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), qn = { class: "fresh-booking-event-addons-input" }, Hn = { class: "fresh-booking-event-addons-price" }, In = /* @__PURE__ */ N(() => /* @__PURE__ */ n("td", { colspan: "2" }, null, -1)), zn = { class: "fresh-booking-event-addons-price" }, jn = { key: 3 }, Gn = { class: "fresh-booking-label required" }, Wn = { id: "fresh-booking-event-table" }, Zn = { key: 4 }, Jn = { class: "fresh-booking-label required" }, Kn = { class: "fresh-booking-table" }, Qn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Yn = { class: "fresh-booking-event-addons-price" }, Xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), xn = /* @__PURE__ */ N(() => /* @__PURE__ */ n("br", null, null, -1)), et = { class: "fresh-booking-event-addons-input" }, nt = { class: "fresh-booking-event-addons-price" }, tt = { key: 0 }, lt = { key: 1 }, at = { key: 2 }, ot = { key: 3 }, st = { key: 4 }, it = { key: 5 }, rt = { key: 6 }, ut = ["onClick"], dt = /* @__PURE__ */ J({
196
196
  name: "EventLayout",
197
197
  __name: "Event",
198
198
  props: {
@@ -204,9 +204,9 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
204
204
  searchDate: p,
205
205
  addons: m,
206
206
  products: B,
207
- numberOfDays: E,
208
- discountCode: T,
209
- name: $,
207
+ numberOfDays: $,
208
+ discountCode: E,
209
+ name: T,
210
210
  phone: c,
211
211
  email: b,
212
212
  remark: h,
@@ -218,13 +218,13 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
218
218
  basePrice: s,
219
219
  totalPrice: P,
220
220
  isPaymentLoading: U,
221
- hasEvents: Ee,
222
- hasTemplates: Te,
223
- getEvents: $e,
221
+ hasEvents: $e,
222
+ hasTemplates: Ee,
223
+ getEvents: Te,
224
224
  getTemplates: we,
225
- getEventData: Ae,
225
+ getEventData: Ce,
226
226
  getTemplateData: z,
227
- getEventTableData: Ce,
227
+ getEventTableData: Ae,
228
228
  length: ae,
229
229
  roomUpgrade: Pe,
230
230
  weekendFee: Le,
@@ -239,7 +239,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
239
239
  isTemplateEvent: L,
240
240
  tableBasePrice: ie,
241
241
  hasListingData: Fe
242
- } = Z(Q()), {
242
+ } = W(Z()), {
243
243
  initialize: Se,
244
244
  validateDiscountCode: ht,
245
245
  fetchListings: Ue,
@@ -247,13 +247,13 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
247
247
  localAddonPrice: re,
248
248
  totalAddonPrice: ue,
249
249
  reset: Ne
250
- } = Q(), {
250
+ } = Z(), {
251
251
  hideEvents: Me,
252
252
  hideEventTemplates: qe
253
- } = Z(ye());
253
+ } = W(ye());
254
254
  return Je(() => Se()), Ke(p, () => Ue()), (de, g) => (a(), _(nn, { styling: de.styling }, {
255
255
  default: d(() => [
256
- (a(), _(We, null, {
256
+ (a(), _(Qe, null, {
257
257
  default: d(() => [
258
258
  r(en, {
259
259
  id: "fresh-booking-event-module",
@@ -268,9 +268,9 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
268
268
  r(hn)
269
269
  ]),
270
270
  e(Fe) ? (a(), i("div", On, [
271
- e(Ee) && !e(Me) ? (a(), i(A, { key: 0 }, [
271
+ e($e) && !e(Me) ? (a(), i(C, { key: 0 }, [
272
272
  n("h2", null, [
273
- r(C, {
273
+ r(A, {
274
274
  icon: "clock-seven",
275
275
  type: "fal",
276
276
  color: "header"
@@ -278,7 +278,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
278
278
  n("span", null, t(e(l)("event.eventsTitle")), 1)
279
279
  ]),
280
280
  n("ul", Bn, [
281
- (a(!0), i(A, null, S(e($e), ({
281
+ (a(!0), i(C, null, S(e(Te), ({
282
282
  id: F,
283
283
  days: o,
284
284
  name: k,
@@ -286,7 +286,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
286
286
  timeTo: f,
287
287
  fromDate: y,
288
288
  toDate: M,
289
- tableGroupId: W,
289
+ tableGroupId: Q,
290
290
  description: Y,
291
291
  soldOut: X,
292
292
  length: q,
@@ -295,7 +295,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
295
295
  key: F,
296
296
  type: "event",
297
297
  "listing-id": F,
298
- "table-group-id": W,
298
+ "table-group-id": Q,
299
299
  description: Y,
300
300
  name: k,
301
301
  length: q,
@@ -310,9 +310,9 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
310
310
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
311
311
  ])
312
312
  ], 64)) : u("", !0),
313
- e(Te) && !e(qe) ? (a(), i(A, { key: 1 }, [
313
+ e(Ee) && !e(qe) ? (a(), i(C, { key: 1 }, [
314
314
  n("h2", null, [
315
- r(C, {
315
+ r(A, {
316
316
  icon: "stars",
317
317
  type: "fal",
318
318
  color: "header"
@@ -320,7 +320,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
320
320
  n("span", null, t(e(l)("event.stayTitle")), 1)
321
321
  ]),
322
322
  n("ul", Dn, [
323
- (a(!0), i(A, null, S(e(we), ({
323
+ (a(!0), i(C, null, S(e(we), ({
324
324
  id: F,
325
325
  name: o,
326
326
  fromDate: k,
@@ -363,15 +363,15 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
363
363
  ]),
364
364
  e(se) === e(ve).FullDayEvent ? (a(), _(ee, {
365
365
  key: 0,
366
- modelValue: e(E),
367
- "onUpdate:modelValue": g[0] || (g[0] = (o) => R(E) ? E.value = o : null),
366
+ modelValue: e($),
367
+ "onUpdate:modelValue": g[0] || (g[0] = (o) => R($) ? $.value = o : null),
368
368
  label: e(l)("event.numberOfDays"),
369
369
  "min-value": 1,
370
370
  required: ""
371
371
  }, null, 8, ["modelValue", "label"])) : u("", !0),
372
372
  r(be, {
373
- modelValue: e($),
374
- "onUpdate:modelValue": g[1] || (g[1] = (o) => R($) ? $.value = o : null),
373
+ modelValue: e(T),
374
+ "onUpdate:modelValue": g[1] || (g[1] = (o) => R(T) ? T.value = o : null),
375
375
  type: "text",
376
376
  label: e(l)("booking.reservation.name"),
377
377
  icon: "user-alt",
@@ -399,7 +399,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
399
399
  }, null, 8, ["modelValue", "label", "placeholder"]),
400
400
  u("", !0),
401
401
  e(z) && e(z).length > 0 ? (a(), i("ul", Sn, [
402
- (a(!0), i(A, null, S(e(z), ({
402
+ (a(!0), i(C, null, S(e(z), ({
403
403
  roomGroupID: o,
404
404
  addons: k,
405
405
  adultPerRoom: w
@@ -407,7 +407,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
407
407
  n("h5", null, [
408
408
  n("span", null, t(e(l)("booking.reservation.room")) + " #" + t(f + 1), 1),
409
409
  he(" ("),
410
- r(C, {
410
+ r(A, {
411
411
  icon: "male",
412
412
  type: "fas",
413
413
  color: "header"
@@ -427,15 +427,15 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
427
427
  ])
428
428
  ]),
429
429
  n("tbody", null, [
430
- (a(!0), i(A, null, S(k, ({
430
+ (a(!0), i(C, null, S(k, ({
431
431
  addonID: y,
432
432
  cardinality: M,
433
- name: W,
433
+ name: Q,
434
434
  price: Y,
435
435
  quantityStrategy: X
436
436
  }) => (a(), i("tr", { key: y }, [
437
437
  n("td", null, [
438
- n("b", null, t(W), 1),
438
+ n("b", null, t(Q), 1),
439
439
  Mn,
440
440
  n("span", null, t(e(O)(Y, e(v))) + " " + t(e(Ye)(X)), 1)
441
441
  ]),
@@ -475,8 +475,8 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
475
475
  n("label", Gn, [
476
476
  n("span", null, t(e(l)("event.selectArrivalTime")), 1)
477
477
  ]),
478
- n("ul", Zn, [
479
- (a(!0), i(A, null, S(e(Ce), (o, k) => (a(), i("li", { key: k }, [
478
+ n("ul", Wn, [
479
+ (a(!0), i(C, null, S(e(Ae), (o, k) => (a(), i("li", { key: k }, [
480
480
  r(ge, {
481
481
  modelValue: e(D),
482
482
  "onUpdate:modelValue": g[6] || (g[6] = (w) => R(D) ? D.value = w : null),
@@ -488,7 +488,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
488
488
  ]))), 128))
489
489
  ])
490
490
  ])) : u("", !0),
491
- e(Oe) ? (a(), i("div", Qn, [
491
+ e(Oe) ? (a(), i("div", Zn, [
492
492
  n("label", Jn, [
493
493
  n("span", null, t(e(l)("event.selectProducts")), 1)
494
494
  ]),
@@ -498,14 +498,14 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
498
498
  n("th", null, [
499
499
  n("span", null, t(e(l)("booking.reservation.addons")), 1)
500
500
  ]),
501
- Wn,
501
+ Qn,
502
502
  n("th", Yn, [
503
503
  n("span", null, t(e(l)("booking.availability.price")), 1)
504
504
  ])
505
505
  ])
506
506
  ]),
507
507
  n("tbody", null, [
508
- (a(!0), i(A, null, S(e(Ae).products, ({ productID: o, productName: k, price: w, description: f }) => (a(), i("tr", { key: o }, [
508
+ (a(!0), i(C, null, S(e(Ce).products, ({ productID: o, productName: k, price: w, description: f }) => (a(), i("tr", { key: o }, [
509
509
  n("td", null, [
510
510
  n("b", null, [
511
511
  n("span", null, t(k), 1)
@@ -567,7 +567,7 @@ const En = { key: 1 }, Tn = { key: 2 }, $n = /* @__PURE__ */ J({
567
567
  ])) : u("", !0)
568
568
  ]),
569
569
  expenses: d(() => [
570
- (a(!0), i(A, null, S(e(z), ({ roomGroupID: o }, k) => (a(), i("li", { key: o }, [
570
+ (a(!0), i(C, null, S(e(z), ({ roomGroupID: o }, k) => (a(), i("li", { key: o }, [
571
571
  n("span", null, t(e(l)("booking.reservation.addons")) + " - " + t(e(l)("booking.reservation.room")) + " #" + t(k + 1), 1),
572
572
  n("b", null, t(e(O)(e(ue)(o, k), e(v))), 1)
573
573
  ]))), 128))
@@ -623,20 +623,20 @@ class mt extends HTMLElement {
623
623
  connectedCallback() {
624
624
  const l = typeof G == "function" ? G.options : G;
625
625
  let p = Array.isArray(l.props) ? l.props : Object.keys(l.props || {});
626
- const m = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, h) => (h ? "-" : "") + b.toLowerCase()), B = (c) => c.replace(/-./g, (b) => b[1].toUpperCase()), E = {};
626
+ const m = (c) => c.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, h) => (h ? "-" : "") + b.toLowerCase()), B = (c) => c.replace(/-./g, (b) => b[1].toUpperCase()), $ = {};
627
627
  p = p.map(m);
628
- const T = {};
628
+ const E = {};
629
629
  for (const c of this.attributes) {
630
630
  const h = c.name.split(".");
631
- h.length > 1 && (T[h[0]] || (T[h[0]] = {}), T[h[0]][B(h[1])] = c.value);
631
+ h.length > 1 && (E[h[0]] || (E[h[0]] = {}), E[h[0]][B(h[1])] = c.value);
632
632
  }
633
633
  for (const c of p) {
634
634
  let b = this.attributes.getNamedItem(c)?.value;
635
- T.hasOwnProperty(c) && (b = T[c]), E[c] = b;
635
+ E.hasOwnProperty(c) && (b = E[c]), $[c] = b;
636
636
  }
637
- this.vueApp = on(G, E), this.vueApp.provide("emitter", pt), this.vueApp.use(sn), this.vueApp.use(ct), this.vueApp.use(vn), this.vueApp.use(bn), this.vueApp.use(rn, { bootstrap: !0 });
638
- const $ = document.createElement("div");
639
- this.vueApp.mount($), this.appendChild($.children[0]);
637
+ this.vueApp = on(G, $), this.vueApp.provide("emitter", pt), this.vueApp.use(sn), this.vueApp.use(ct), this.vueApp.use(vn), this.vueApp.use(bn), this.vueApp.use(rn, { bootstrap: !0 });
638
+ const T = document.createElement("div");
639
+ this.vueApp.mount(T), this.appendChild(T.children[0]);
640
640
  }
641
641
  }
642
642
  window.customElements.define("konnectio-event", mt);
package/dist/event.js.br CHANGED
Binary file
@@ -1,9 +1,9 @@
1
- import { d as w, f as h, g as S, h as t, k as s, $ as _, a0 as y, x as X, u as E, s as V, P as A, c as $, n as x, z as m, S as G, A as c, j as e, l as L, a1 as k, a2 as T, a3 as B, m as D, t as I, D as M, E as N, J as z, K as P, L as U, M as j } from "./Field-pY1XGbPQ.js";
2
- import { A as H } from "./ActionField-7P8dDME0.js";
3
- const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-validation-skeleton-form" }, R = { class: "gift-card-validation-skeleton-text" }, Z = { class: "gift-card-validation-skeleton-input" }, J = /* @__PURE__ */ w({
1
+ import { d as w, f as h, g as S, h as t, k as s, a0 as _, a1 as y, x as X, u as E, s as V, Q as A, c as G, n as x, y as m, S as B, B as c, j as e, l as L, a2 as k, a3 as N, a4 as T, m as $, t as I, E as M, G as D, K as U, L as j, M as z, N as H } from "./Field-_xFdfmMy.js";
2
+ import { A as O } from "./ActionField-ePKg0xO1.js";
3
+ const P = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-validation-skeleton-form" }, R = { class: "gift-card-validation-skeleton-text" }, Z = { class: "gift-card-validation-skeleton-input" }, K = /* @__PURE__ */ w({
4
4
  __name: "GiftCardValidationSkeleton",
5
5
  setup(C) {
6
- return (n, l) => (h(), S("div", O, [
6
+ return (n, l) => (h(), S("div", P, [
7
7
  t("div", F, [
8
8
  t("div", R, [
9
9
  s(_, { height: "20px" }),
@@ -17,7 +17,7 @@ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-va
17
17
  ])
18
18
  ]));
19
19
  }
20
- }), K = /* @__PURE__ */ X(J, [["__scopeId", "data-v-b1601b74"]]), q = ["innerHTML"], Q = {
20
+ }), Q = /* @__PURE__ */ X(K, [["__scopeId", "data-v-b1601b74"]]), q = ["innerHTML"], J = {
21
21
  key: 0,
22
22
  id: "fresh-booking-gift-card-validation-resume",
23
23
  class: "fresh-booking-panel"
@@ -36,10 +36,10 @@ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-va
36
36
  expirationDate: f,
37
37
  productName: d,
38
38
  isLoading: p
39
- } = V(A()), { currency: a } = V($()), { apply: o } = A();
40
- return (i, r) => (h(), x(N, { styling: i.styling }, {
39
+ } = V(A()), { currency: a } = V(G()), { apply: o } = A();
40
+ return (i, r) => (h(), x(D, { styling: i.styling }, {
41
41
  default: m(() => [
42
- (h(), x(G, null, {
42
+ (h(), x(B, null, {
43
43
  default: m(() => [
44
44
  s(M, {
45
45
  id: "fresh-booking-gift-card-validation-module",
@@ -56,7 +56,7 @@ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-va
56
56
  t("p", {
57
57
  innerHTML: e(n)("giftCardValidation.description")
58
58
  }, null, 8, q),
59
- s(H, {
59
+ s(O, {
60
60
  modelValue: e(l),
61
61
  "onUpdate:modelValue": r[0] || (r[0] = (u) => L(l) ? l.value = u : null),
62
62
  icon: "gift-card",
@@ -67,7 +67,7 @@ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-va
67
67
  "onUpdate:isLoading": r[1] || (r[1] = (u) => L(p) ? p.value = u : null),
68
68
  onAction: r[2] || (r[2] = (u) => e(o)())
69
69
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
70
- !e(p) && e(v) ? (h(), S("table", Q, [
70
+ !e(p) && e(v) ? (h(), S("table", J, [
71
71
  t("thead", null, [
72
72
  t("tr", null, [
73
73
  t("th", null, [
@@ -102,21 +102,21 @@ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-va
102
102
  t("span", null, c(e(d)), 1)
103
103
  ]),
104
104
  t("td", null, [
105
- t("span", null, c(e(T)(e(b), e(a))), 1)
105
+ t("span", null, c(e(N)(e(b), e(a))), 1)
106
106
  ]),
107
107
  t("td", null, [
108
- t("span", null, c(e(B)(e(f))), 1)
108
+ t("span", null, c(e(T)(e(f))), 1)
109
109
  ])
110
110
  ])
111
111
  ])
112
- ])) : D("", !0)
112
+ ])) : $("", !0)
113
113
  ], 32)
114
114
  ]),
115
115
  _: 1
116
116
  }, 8, ["access-token"])
117
117
  ]),
118
118
  fallback: m(() => [
119
- s(K)
119
+ s(Q)
120
120
  ]),
121
121
  _: 1
122
122
  }))
@@ -124,7 +124,7 @@ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-va
124
124
  _: 1
125
125
  }, 8, ["styling"]));
126
126
  }
127
- }), g = /* @__PURE__ */ X(W, [["__scopeId", "data-v-b19b4a0e"]]), Y = z(), tt = j();
127
+ }), g = /* @__PURE__ */ X(W, [["__scopeId", "data-v-b19b4a0e"]]), Y = U(), tt = H();
128
128
  class et extends HTMLElement {
129
129
  vueApp;
130
130
  constructor() {
@@ -147,7 +147,7 @@ class et extends HTMLElement {
147
147
  let o = this.attributes.getNamedItem(a)?.value;
148
148
  d.hasOwnProperty(a) && (o = d[a]), f[a] = o;
149
149
  }
150
- this.vueApp = P(g, f), this.vueApp.provide("emitter", tt), this.vueApp.use(Y), this.vueApp.use(U);
150
+ this.vueApp = j(g, f), this.vueApp.provide("emitter", tt), this.vueApp.use(Y), this.vueApp.use(z);
151
151
  const p = document.createElement("div");
152
152
  this.vueApp.mount(p), this.appendChild(p.children[0]);
153
153
  }
Binary file