@konnectio/core 4.0.56-rc21 → 4.0.56-rc23

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 (43) hide show
  1. package/dist/{ActionField-mMYGNb-7.js → ActionField-BUeonTqc.js} +1 -1
  2. package/dist/ActionField-BUeonTqc.js.br +9 -0
  3. package/dist/{AvailabilitySkeleton-iD7Vbt5K.js → AvailabilitySkeleton-gympaD6B.js} +77 -75
  4. package/dist/AvailabilitySkeleton-gympaD6B.js.br +0 -0
  5. package/dist/CheckoutWindow-sws5X9v2.js +710 -0
  6. package/dist/CheckoutWindow-sws5X9v2.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js → DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js} +2003 -1999
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js.br +0 -0
  9. package/dist/{ErrorMessage-4GwDZEsl.js → ErrorMessage-GzJ2T5_d.js} +1 -1
  10. package/dist/ErrorMessage-GzJ2T5_d.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-jvxOZKWx.js → EventAvailabilityForm-c0u7rObv.js} +26 -25
  12. package/dist/EventAvailabilityForm-c0u7rObv.js.br +0 -0
  13. package/dist/{Field-EqFBeBE_.js → Field-hjOjPQhC.js} +1 -1
  14. package/dist/Field-hjOjPQhC.js.br +0 -0
  15. package/dist/{ThankYou-pu1PDfhl.js → ThankYou-d129mmKn.js} +3077 -3563
  16. package/dist/ThankYou-d129mmKn.js.br +0 -0
  17. package/dist/{_--L3VvP-p.js → _-hKpeUU4C.js} +2264 -2243
  18. package/dist/_-hKpeUU4C.js.br +0 -0
  19. package/dist/availability.js +22 -22
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +61 -61
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +20 -20
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +305 -291
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +926 -919
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +1 -1
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +3 -2
  34. package/dist/ActionField-mMYGNb-7.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-iD7Vbt5K.js.br +0 -0
  36. package/dist/CheckoutWindow-T32YH60g.js +0 -205
  37. package/dist/CheckoutWindow-T32YH60g.js.br +0 -0
  38. package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js.br +0 -0
  39. package/dist/ErrorMessage-4GwDZEsl.js.br +0 -0
  40. package/dist/EventAvailabilityForm-jvxOZKWx.js.br +0 -0
  41. package/dist/Field-EqFBeBE_.js.br +0 -0
  42. package/dist/ThankYou-pu1PDfhl.js.br +0 -0
  43. package/dist/_--L3VvP-p.js.br +0 -0
Binary file
@@ -1,8 +1,8 @@
1
- import { d as C, j as w, k as E, c as k, l as S, o as p, a as v, w as d, S as T, b as a, f as y, h as I, n as b, m as f, t as A, u as _, F as z, i as L, p as B, q as F, s as H, v as M, x as N, g as P, y as V, z as j, A as O } from "./_--L3VvP-p.js";
2
- import { H as $, A as x } from "./AvailabilitySkeleton-iD7Vbt5K.js";
3
- import { E as U } from "./EventAvailabilityForm-jvxOZKWx.js";
4
- import { E as Z } from "./ErrorMessage-4GwDZEsl.js";
5
- const q = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), D = { class: "konnectio-availability-module" }, K = { class: "konnectio-availability-navigation" }, G = /* @__PURE__ */ q(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), J = { class: "konnectio-availability-search-form" }, Q = /* @__PURE__ */ C({
1
+ import { d as C, j as w, k as E, c as m, l as S, o as p, a as v, w as d, S as T, b as a, f as y, h as B, n as b, m as f, t as A, u as _, F as I, i as L, p as z, q as F, s as H, v as M, x as N, g as P, y as V, z as j, A as O, B as $ } from "./_-hKpeUU4C.js";
2
+ import { H as x, A as U } from "./AvailabilitySkeleton-gympaD6B.js";
3
+ import { E as Z } from "./EventAvailabilityForm-c0u7rObv.js";
4
+ import { E as q } from "./ErrorMessage-GzJ2T5_d.js";
5
+ const D = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), K = { class: "konnectio-availability-module" }, G = { class: "konnectio-availability-navigation" }, J = /* @__PURE__ */ D(() => /* @__PURE__ */ a("div", { class: "konnectio-availability-divider" }, null, -1)), Q = { class: "konnectio-availability-search-form" }, R = /* @__PURE__ */ C({
6
6
  name: "AvailabilityLayout",
7
7
  __name: "Availability",
8
8
  props: {
@@ -12,7 +12,7 @@ const q = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), D = { class: "konnecti
12
12
  styling: {}
13
13
  },
14
14
  setup(l) {
15
- const { t: r } = w(), s = l, i = E(), h = k(() => s.hotelLink || s.eventLink), c = k(() => s.hotelLink && s.eventLink), o = k(() => i.value === "hotel"), u = k(() => i.value === "event"), e = (t) => i.value = t;
15
+ const { t: r } = w(), s = l, i = E(), h = m(() => s.hotelLink || s.eventLink), c = m(() => s.hotelLink && s.eventLink), o = m(() => i.value === "hotel"), u = m(() => i.value === "event"), e = (t) => i.value = t;
16
16
  return S(() => {
17
17
  !s.hotelLink && s.eventLink ? i.value = "event" : i.value = "hotel";
18
18
  }), (t, n) => (p(), v(H, { styling: t.styling }, {
@@ -25,9 +25,9 @@ const q = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), D = { class: "konnecti
25
25
  type: "hotel"
26
26
  }, {
27
27
  default: d(() => [
28
- a("div", D, [
29
- c.value ? (p(), I(z, { key: 0 }, [
30
- a("nav", K, [
28
+ a("div", K, [
29
+ c.value ? (p(), B(I, { key: 0 }, [
30
+ a("nav", G, [
31
31
  a("ul", null, [
32
32
  a("li", null, [
33
33
  a("button", {
@@ -47,19 +47,19 @@ const q = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), D = { class: "konnecti
47
47
  ])
48
48
  ])
49
49
  ]),
50
- G
50
+ J
51
51
  ], 64)) : L("", !0),
52
- a("div", J, [
53
- y(B, {
52
+ a("div", Q, [
53
+ y(z, {
54
54
  name: "fade",
55
55
  mode: "out-in",
56
56
  appear: ""
57
57
  }, {
58
58
  default: d(() => [
59
- o.value ? (p(), v($, {
59
+ o.value ? (p(), v(x, {
60
60
  key: 0,
61
61
  link: t.hotelLink
62
- }, null, 8, ["link"])) : u.value ? (p(), v(U, {
62
+ }, null, 8, ["link"])) : u.value ? (p(), v(Z, {
63
63
  key: 1,
64
64
  link: t.eventLink
65
65
  }, null, 8, ["link"])) : L("", !0)
@@ -75,13 +75,13 @@ const q = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), D = { class: "konnecti
75
75
  ]),
76
76
  fallback: d(() => [
77
77
  a("div", null, [
78
- y(x, {
78
+ y(U, {
79
79
  view: c.value ? "both" : i.value
80
80
  }, null, 8, ["view"])
81
81
  ])
82
82
  ]),
83
83
  _: 1
84
- })) : (p(), v(Z, {
84
+ })) : (p(), v(q, {
85
85
  key: 1,
86
86
  title: "Unable to render Availability module",
87
87
  description: `The 'hotel-link' and/or 'event-link' properties are missing.<br>\r
@@ -91,8 +91,8 @@ const q = (l) => (M("data-v-16ca7abd"), l = l(), N(), l), D = { class: "konnecti
91
91
  _: 1
92
92
  }, 8, ["styling"]));
93
93
  }
94
- }), m = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-16ca7abd"]]), R = V();
95
- class W extends HTMLElement {
94
+ }), k = /* @__PURE__ */ P(R, [["__scopeId", "data-v-16ca7abd"]]), W = V(), X = $();
95
+ class Y extends HTMLElement {
96
96
  vueApp;
97
97
  constructor() {
98
98
  super();
@@ -101,7 +101,7 @@ class W extends HTMLElement {
101
101
  this.vueApp.unmount();
102
102
  }
103
103
  connectedCallback() {
104
- const r = typeof m == "function" ? m.options : m;
104
+ const r = typeof k == "function" ? k.options : k;
105
105
  let s = Array.isArray(r.props) ? r.props : Object.keys(r.props || {});
106
106
  const i = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase()), h = (e) => e.replace(/-./g, (t) => t[1].toUpperCase()), c = {};
107
107
  s = s.map(i);
@@ -114,12 +114,12 @@ class W extends HTMLElement {
114
114
  let t = this.attributes.getNamedItem(e)?.value;
115
115
  o.hasOwnProperty(e) && (t = o[e]), c[e] = t;
116
116
  }
117
- this.vueApp = j(m, c), this.vueApp.use(O), this.vueApp.use(R);
117
+ this.vueApp = j(k, c), this.vueApp.provide("emitter", X), this.vueApp.use(O), this.vueApp.use(W);
118
118
  const u = document.createElement("div");
119
119
  this.vueApp.mount(u), this.appendChild(u.children[0]);
120
120
  }
121
121
  }
122
- window.customElements.define("konnectio-availability", W);
122
+ window.customElements.define("konnectio-availability", Y);
123
123
  export {
124
- W as default
124
+ Y as default
125
125
  };
Binary file
package/dist/event.js CHANGED
@@ -1,13 +1,13 @@
1
- import { d as Ve, j as Ee, B as I, D as Te, l as Be, G as Ce, o as a, a as _, w as p, S as Pe, f as v, b as t, L as Ae, u as e, H as P, O as ee, e as S, i as r, T as te, h as s, F as N, J as w, t as n, K as ne, M as xe, N as y, P as Fe, Q as M, R as le, q as Ne, s as we, v as Oe, x as De, g as Le, y as $e, z as Ue, A as Re, U as Se } from "./_--L3VvP-p.js";
2
- import { M as Me, R as qe, T as ze, G as je } from "./ThankYou-pu1PDfhl.js";
3
- import { u as oe, E as He } from "./EventAvailabilityForm-jvxOZKWx.js";
4
- import "./ActionField-mMYGNb-7.js";
5
- import { P as Qe, C as ae, a as Ze } from "./CheckoutWindow-T32YH60g.js";
6
- const V = (A) => (Oe("data-v-693ef234"), A = A(), De(), A), Je = { class: "fresh-booking-panel" };
7
- const Ke = {
1
+ import { d as Ve, j as Ee, D as I, G as Te, l as Be, H as Ce, o as a, a as _, w as p, S as Pe, f as v, b as t, L as Ae, u as e, J as P, O as ee, e as S, i as r, T as te, h as s, F as N, K as w, t as n, M as ne, N as xe, P as y, Q as Fe, R as M, U as le, q as Ne, s as we, v as Oe, x as De, g as Le, y as $e, z as Ue, A as Re, V as Se, B as Me } from "./_-hKpeUU4C.js";
2
+ import { M as qe, R as ze, T as je, G as He } from "./ThankYou-d129mmKn.js";
3
+ import { u as oe, E as Qe } from "./EventAvailabilityForm-c0u7rObv.js";
4
+ import "./ActionField-BUeonTqc.js";
5
+ import { P as Ze, C as ae, a as Je } from "./CheckoutWindow-sws5X9v2.js";
6
+ const V = (A) => (Oe("data-v-693ef234"), A = A(), De(), A), Ke = { class: "fresh-booking-panel" };
7
+ const We = {
8
8
  key: 2,
9
9
  id: "fresh-booking-event-addons"
10
- }, We = { class: "fresh-booking-table" }, Ye = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Xe = { class: "fresh-booking-event-addons-price" }, Ge = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), Ie = { class: "fresh-booking-event-addons-input" }, et = { class: "fresh-booking-event-addons-price" }, tt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("td", { colspan: "2" }, null, -1)), nt = { class: "fresh-booking-event-addons-price" }, lt = { key: 3 }, ot = { class: "fresh-booking-label required" }, at = { id: "fresh-booking-event-table" }, st = { key: 4 }, it = { class: "fresh-booking-label required" }, rt = { class: "fresh-booking-table" }, ut = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), dt = { class: "fresh-booking-event-addons-price" }, ct = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), mt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), pt = { class: "fresh-booking-event-addons-input" }, vt = { class: "fresh-booking-event-addons-price" }, ht = { key: 0 }, bt = { key: 1 }, kt = { key: 2 }, ft = { key: 3 }, gt = { key: 4 }, _t = { key: 5 }, yt = { key: 6 }, Vt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "Loading", -1)), Et = /* @__PURE__ */ Ve({
10
+ }, Ye = { class: "fresh-booking-table" }, Xe = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ge = { class: "fresh-booking-event-addons-price" }, Ie = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), et = { class: "fresh-booking-event-addons-input" }, tt = { class: "fresh-booking-event-addons-price" }, nt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("td", { colspan: "2" }, null, -1)), lt = { class: "fresh-booking-event-addons-price" }, ot = { key: 3 }, at = { class: "fresh-booking-label required" }, st = { id: "fresh-booking-event-table" }, it = { key: 4 }, rt = { class: "fresh-booking-label required" }, ut = { class: "fresh-booking-table" }, dt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), ct = { class: "fresh-booking-event-addons-price" }, mt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), pt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), vt = { class: "fresh-booking-event-addons-input" }, ht = { class: "fresh-booking-event-addons-price" }, bt = { key: 0 }, kt = { key: 1 }, ft = { key: 2 }, gt = { key: 3 }, _t = { key: 4 }, yt = { key: 5 }, Vt = { key: 6 }, Et = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "Loading", -1)), Tt = /* @__PURE__ */ Ve({
11
11
  name: "EventLayout",
12
12
  __name: "Event",
13
13
  props: {
@@ -26,9 +26,9 @@ const Ke = {
26
26
  email: d,
27
27
  remark: c,
28
28
  arrivalTime: F,
29
- title: Ct,
30
- subtitle: Pt,
31
- slideshow: At,
29
+ title: At,
30
+ subtitle: xt,
31
+ slideshow: Ft,
32
32
  currency: f,
33
33
  numberOfPeople: se,
34
34
  numberOfTotalDays: q,
@@ -36,10 +36,10 @@ const Ke = {
36
36
  basePrice: re,
37
37
  totalPrice: ue,
38
38
  isPaymentLoading: de,
39
- hasEvents: xt,
40
- hasTemplates: Ft,
41
- getEvents: Nt,
42
- getTemplates: wt,
39
+ hasEvents: Nt,
40
+ hasTemplates: wt,
41
+ getEvents: Ot,
42
+ getTemplates: Dt,
43
43
  getEventData: ce,
44
44
  getTemplateData: D,
45
45
  getEventTableData: me,
@@ -49,8 +49,8 @@ const Ke = {
49
49
  fromDate: j,
50
50
  hasProducts: he,
51
51
  eventRateType: H,
52
- isMetaDataAvailable: Ot,
53
- areListingsAvailable: Dt,
52
+ isMetaDataAvailable: Lt,
53
+ areListingsAvailable: $t,
54
54
  isReservationFormFilled: be,
55
55
  isAvailabilityDataAvailable: ke,
56
56
  // getEventImages,
@@ -58,15 +58,15 @@ const Ke = {
58
58
  tableBasePrice: Q
59
59
  } = I(oe()), {
60
60
  initialize: fe,
61
- validateDiscountCode: Lt,
61
+ validateDiscountCode: Ut,
62
62
  fetchListings: ge,
63
63
  createBooking: _e,
64
64
  localAddonPrice: Z,
65
65
  totalAddonPrice: J,
66
66
  reset: ye
67
67
  } = oe(), {
68
- hideEvents: $t,
69
- hideEventTemplates: Ut
68
+ hideEvents: Rt,
69
+ hideEventTemplates: St
70
70
  } = I(Te());
71
71
  return Be(() => fe()), Ce(x, () => ge()), (K, u) => (a(), _(we, { styling: K.styling }, {
72
72
  default: p(() => [
@@ -79,15 +79,15 @@ const Ke = {
79
79
  "access-token": K.accessToken
80
80
  }, {
81
81
  default: p(() => [
82
- v(Me, null, {
82
+ v(qe, null, {
83
83
  availability: p(({ next: W }) => [
84
- t("div", Je, [
85
- v(He)
84
+ t("div", Ke, [
85
+ v(Qe)
86
86
  ]),
87
87
  (a(), _(Ae, { key: 1 }))
88
88
  ]),
89
89
  reservation: p(({ next: W, prev: U }) => [
90
- e(ke) ? (a(), _(qe, {
90
+ e(ke) ? (a(), _(ze, {
91
91
  key: 0,
92
92
  remark: e(c),
93
93
  "onUpdate:remark": u[7] || (u[7] = (l) => P(c) ? c.value = l : null),
@@ -129,7 +129,7 @@ const Ke = {
129
129
  placeholder: e(o)("booking.reservation.emailPlaceholder"),
130
130
  required: ""
131
131
  }, null, 8, ["modelValue", "label", "placeholder"]),
132
- v(Qe, {
132
+ v(Ze, {
133
133
  modelValue: e(i),
134
134
  "onUpdate:modelValue": u[3] || (u[3] = (l) => P(i) ? i.value = l : null),
135
135
  label: e(o)("booking.reservation.phone"),
@@ -138,7 +138,7 @@ const Ke = {
138
138
  required: ""
139
139
  }, null, 8, ["modelValue", "label", "placeholder"]),
140
140
  r("", !0),
141
- e(D) && e(D).length > 0 ? (a(), s("ul", Ke, [
141
+ e(D) && e(D).length > 0 ? (a(), s("ul", We, [
142
142
  (a(!0), s(N, null, w(e(D), ({
143
143
  roomGroupID: l,
144
144
  addons: h,
@@ -154,14 +154,14 @@ const Ke = {
154
154
  }),
155
155
  ne(" " + n(g) + ") ", 1)
156
156
  ]),
157
- t("table", We, [
157
+ t("table", Ye, [
158
158
  t("thead", null, [
159
159
  t("tr", null, [
160
160
  t("th", null, [
161
161
  t("span", null, n(e(o)("booking.reservation.addons")), 1)
162
162
  ]),
163
- Ye,
164
- t("th", Xe, [
163
+ Xe,
164
+ t("th", Ge, [
165
165
  t("span", null, n(e(o)("booking.availability.price")), 1)
166
166
  ])
167
167
  ])
@@ -176,10 +176,10 @@ const Ke = {
176
176
  }) => (a(), s("tr", { key: b }, [
177
177
  t("td", null, [
178
178
  t("b", null, n(Y), 1),
179
- Ge,
179
+ Ie,
180
180
  t("span", null, n(e(y)(X, e(f))) + " " + n(e(Fe)(G)), 1)
181
181
  ]),
182
- t("td", Ie, [
182
+ t("td", et, [
183
183
  R === 3 ? (a(), _(S, {
184
184
  key: 0,
185
185
  modelValue: e(E)[`${l}.${b}.${m}`],
@@ -193,15 +193,15 @@ const Ke = {
193
193
  numeric: !0
194
194
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
195
195
  ]),
196
- t("td", et, [
196
+ t("td", tt, [
197
197
  t("span", null, n(e(y)(e(Z)(b, l, m), e(f))), 1)
198
198
  ])
199
199
  ]))), 128))
200
200
  ]),
201
201
  t("tfoot", null, [
202
202
  t("tr", null, [
203
- tt,
204
- t("td", nt, [
203
+ nt,
204
+ t("td", lt, [
205
205
  t("u", null, [
206
206
  t("span", null, n(e(y)(e(J)(l, m), e(f))), 1)
207
207
  ])
@@ -211,11 +211,11 @@ const Ke = {
211
211
  ])
212
212
  ]))), 128))
213
213
  ])) : r("", !0),
214
- e(H) !== e(ee).FullDayEvent && !e(k) ? (a(), s("div", lt, [
215
- t("label", ot, [
214
+ e(H) !== e(ee).FullDayEvent && !e(k) ? (a(), s("div", ot, [
215
+ t("label", at, [
216
216
  t("span", null, n(e(o)("event.selectArrivalTime")), 1)
217
217
  ]),
218
- t("ul", at, [
218
+ t("ul", st, [
219
219
  (a(!0), s(N, null, w(e(me), (l, h) => (a(), s("li", { key: h }, [
220
220
  v(ae, {
221
221
  modelValue: e(F),
@@ -228,18 +228,18 @@ const Ke = {
228
228
  ]))), 128))
229
229
  ])
230
230
  ])) : r("", !0),
231
- e(he) ? (a(), s("div", st, [
232
- t("label", it, [
231
+ e(he) ? (a(), s("div", it, [
232
+ t("label", rt, [
233
233
  t("span", null, n(e(o)("event.selectProducts")), 1)
234
234
  ]),
235
- t("table", rt, [
235
+ t("table", ut, [
236
236
  t("thead", null, [
237
237
  t("tr", null, [
238
238
  t("th", null, [
239
239
  t("span", null, n(e(o)("booking.reservation.addons")), 1)
240
240
  ]),
241
- ut,
242
- t("th", dt, [
241
+ dt,
242
+ t("th", ct, [
243
243
  t("span", null, n(e(o)("booking.availability.price")), 1)
244
244
  ])
245
245
  ])
@@ -250,12 +250,12 @@ const Ke = {
250
250
  t("b", null, [
251
251
  t("span", null, n(h), 1)
252
252
  ]),
253
- ct,
254
- t("span", null, n(m), 1),
255
253
  mt,
254
+ t("span", null, n(m), 1),
255
+ pt,
256
256
  t("span", null, n(e(y)(g, e(f))), 1)
257
257
  ]),
258
- t("td", pt, [
258
+ t("td", vt, [
259
259
  v(S, {
260
260
  modelValue: e(O)[l],
261
261
  "onUpdate:modelValue": (b) => e(O)[l] = b,
@@ -263,7 +263,7 @@ const Ke = {
263
263
  "min-value": 0
264
264
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
265
265
  ]),
266
- t("td", vt, [
266
+ t("td", ht, [
267
267
  t("span", null, n(e(y)(e(Z)(l), e(f))), 1)
268
268
  ])
269
269
  ]))), 128))
@@ -276,31 +276,31 @@ const Ke = {
276
276
  t("span", null, n(e(o)("event.numberOfGuests")), 1),
277
277
  t("b", null, n(e(se)), 1)
278
278
  ]),
279
- e(k) ? (a(), s("li", ht, [
279
+ e(k) ? (a(), s("li", bt, [
280
280
  t("span", null, n(e(o)("event.numberOfRooms")), 1),
281
281
  t("b", null, n(e(ie)), 1)
282
282
  ])) : r("", !0),
283
- e(k) ? (a(), s("li", bt, [
283
+ e(k) ? (a(), s("li", kt, [
284
284
  t("span", null, n(e(o)("event.numberOfDays")), 1),
285
285
  t("b", null, n(e(q)), 1)
286
286
  ])) : r("", !0),
287
- e(k) ? (a(), s("li", kt, [
287
+ e(k) ? (a(), s("li", ft, [
288
288
  t("span", null, n(e(o)("booking.reservation.arrival")), 1),
289
289
  t("b", null, n(e(le)(e(j))), 1)
290
290
  ])) : r("", !0),
291
- e(k) ? (a(), s("li", ft, [
291
+ e(k) ? (a(), s("li", gt, [
292
292
  t("span", null, n(e(o)("booking.reservation.departure")), 1),
293
293
  t("b", null, n(e(le)(e(j), e(q))), 1)
294
294
  ])) : r("", !0),
295
- !e(k) && e(F) ? (a(), s("li", gt, [
295
+ !e(k) && e(F) ? (a(), s("li", _t, [
296
296
  t("span", null, n(e(o)("event.startOfEvent")), 1),
297
297
  t("b", null, n(e(M)(e(F))), 1)
298
298
  ])) : r("", !0),
299
- !e(k) && e(z) ? (a(), s("li", _t, [
299
+ !e(k) && e(z) ? (a(), s("li", yt, [
300
300
  t("span", null, n(e(o)("event.lengthOfEvent")), 1),
301
301
  t("b", null, n(e(M)(e(z))), 1)
302
302
  ])) : r("", !0),
303
- !e(k) && e(Q) > 0 ? (a(), s("li", yt, [
303
+ !e(k) && e(Q) > 0 ? (a(), s("li", Vt, [
304
304
  t("span", null, n(e(o)("booking.availability.basePrice")), 1),
305
305
  t("b", null, n(e(y)(e(Q), e(f))), 1)
306
306
  ])) : r("", !0)
@@ -315,10 +315,10 @@ const Ke = {
315
315
  }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : r("", !0)
316
316
  ]),
317
317
  payment: p(() => [
318
- v(Ze)
318
+ v(Je)
319
319
  ]),
320
320
  confirmation: p(() => [
321
- v(ze, {
321
+ v(je, {
322
322
  message: e(o)("event.confirmationMessage")
323
323
  }, null, 8, ["message"])
324
324
  ]),
@@ -329,7 +329,7 @@ const Ke = {
329
329
  }, 8, ["access-token"])
330
330
  ]),
331
331
  fallback: p(() => [
332
- Vt
332
+ Et
333
333
  ]),
334
334
  _: 1
335
335
  }))
@@ -337,8 +337,8 @@ const Ke = {
337
337
  _: 1
338
338
  }, 8, ["styling"]));
339
339
  }
340
- }), $ = /* @__PURE__ */ Le(Et, [["__scopeId", "data-v-693ef234"]]), Tt = $e();
341
- class Bt extends HTMLElement {
340
+ }), $ = /* @__PURE__ */ Le(Tt, [["__scopeId", "data-v-693ef234"]]), Bt = $e(), Ct = Me();
341
+ class Pt extends HTMLElement {
342
342
  vueApp;
343
343
  constructor() {
344
344
  super();
@@ -360,12 +360,12 @@ class Bt extends HTMLElement {
360
360
  let d = this.attributes.getNamedItem(i)?.value;
361
361
  B.hasOwnProperty(i) && (d = B[i]), T[i] = d;
362
362
  }
363
- this.vueApp = Ue($, T), this.vueApp.use(Re), this.vueApp.use(Tt), this.vueApp.use(je), this.vueApp.use(Se, { bootstrap: !0 });
363
+ this.vueApp = Ue($, T), this.vueApp.provide("emitter", Ct), this.vueApp.use(Re), this.vueApp.use(Bt), this.vueApp.use(He), this.vueApp.use(Se, { bootstrap: !0 });
364
364
  const C = document.createElement("div");
365
365
  this.vueApp.mount(C), this.appendChild(C.children[0]);
366
366
  }
367
367
  }
368
- window.customElements.define("konnectio-event", Bt);
368
+ window.customElements.define("konnectio-event", Pt);
369
369
  export {
370
- Bt as default
370
+ Pt as default
371
371
  };
package/dist/event.js.br CHANGED
Binary file
@@ -1,24 +1,24 @@
1
- import { d as L, o as h, h as X, b as t, f as o, E as _, g as S, j as E, B as y, X as V, D as B, a as A, w as m, S as G, t as c, u as e, H as w, M as C, N, R as T, i as $, m as D, q as I, s as M, y as z, z as H, A as U } from "./_--L3VvP-p.js";
2
- import { A as j } from "./ActionField-mMYGNb-7.js";
3
- import { F as x } from "./Field-EqFBeBE_.js";
4
- const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-validation-skeleton-form" }, P = { class: "gift-card-validation-skeleton-text" }, R = { class: "gift-card-validation-skeleton-input" }, Z = /* @__PURE__ */ L({
1
+ import { d as L, o as h, h as S, b as t, f as o, E as _, g as X, j as E, D as y, Y as V, G, a as A, w as m, S as B, t as c, u as e, J as w, N as C, P as N, U as T, i as $, m as D, q as I, s as U, y as z, z as M, A as P, B as j } from "./_-hKpeUU4C.js";
2
+ import { A as F } from "./ActionField-BUeonTqc.js";
3
+ import { F as x } from "./Field-hjOjPQhC.js";
4
+ const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-validation-skeleton-form" }, R = { class: "gift-card-validation-skeleton-text" }, Z = { class: "gift-card-validation-skeleton-input" }, q = /* @__PURE__ */ L({
5
5
  __name: "GiftCardValidationSkeleton",
6
6
  setup(k) {
7
- return (n, l) => (h(), X("div", F, [
7
+ return (n, l) => (h(), S("div", H, [
8
8
  t("div", O, [
9
- t("div", P, [
9
+ t("div", R, [
10
10
  o(_, { height: "20px" }),
11
11
  o(_, { height: "15px" }),
12
12
  o(_, { height: "15px" })
13
13
  ]),
14
- t("div", R, [
14
+ t("div", Z, [
15
15
  o(x),
16
16
  o(x, { "no-label": "" })
17
17
  ])
18
18
  ])
19
19
  ]));
20
20
  }
21
- }), q = /* @__PURE__ */ S(Z, [["__scopeId", "data-v-0b8074bf"]]), J = ["innerHTML"], K = {
21
+ }), J = /* @__PURE__ */ X(q, [["__scopeId", "data-v-0b8074bf"]]), Y = ["innerHTML"], K = {
22
22
  key: 0,
23
23
  id: "fresh-booking-gift-card-validation-resume",
24
24
  class: "fresh-booking-panel"
@@ -37,10 +37,10 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
37
37
  expirationDate: f,
38
38
  productName: d,
39
39
  isLoading: p
40
- } = y(V()), { currency: a } = y(B()), { apply: s } = V();
41
- return (i, r) => (h(), A(M, { styling: i.styling }, {
40
+ } = y(V()), { currency: a } = y(G()), { apply: s } = V();
41
+ return (i, r) => (h(), A(U, { styling: i.styling }, {
42
42
  default: m(() => [
43
- (h(), A(G, null, {
43
+ (h(), A(B, null, {
44
44
  default: m(() => [
45
45
  o(I, {
46
46
  id: "fresh-booking-gift-card-validation-module",
@@ -56,8 +56,8 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
56
56
  ]),
57
57
  t("p", {
58
58
  innerHTML: e(n)("giftCardValidation.description")
59
- }, null, 8, J),
60
- o(j, {
59
+ }, null, 8, Y),
60
+ o(F, {
61
61
  modelValue: e(l),
62
62
  "onUpdate:modelValue": r[0] || (r[0] = (u) => w(l) ? l.value = u : null),
63
63
  icon: "gift-card",
@@ -68,7 +68,7 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
68
68
  "onUpdate:isLoading": r[1] || (r[1] = (u) => w(p) ? p.value = u : null),
69
69
  onAction: r[2] || (r[2] = (u) => e(s)())
70
70
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
71
- !e(p) && e(b) ? (h(), X("table", K, [
71
+ !e(p) && e(b) ? (h(), S("table", K, [
72
72
  t("thead", null, [
73
73
  t("tr", null, [
74
74
  t("th", null, [
@@ -117,7 +117,7 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
117
117
  }, 8, ["access-token"])
118
118
  ]),
119
119
  fallback: m(() => [
120
- o(q)
120
+ o(J)
121
121
  ]),
122
122
  _: 1
123
123
  }))
@@ -125,8 +125,8 @@ const F = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-va
125
125
  _: 1
126
126
  }, 8, ["styling"]));
127
127
  }
128
- }), g = /* @__PURE__ */ S(Q, [["__scopeId", "data-v-b19b4a0e"]]), W = z();
129
- class Y extends HTMLElement {
128
+ }), g = /* @__PURE__ */ X(Q, [["__scopeId", "data-v-b19b4a0e"]]), W = z(), tt = j();
129
+ class et extends HTMLElement {
130
130
  vueApp;
131
131
  constructor() {
132
132
  super();
@@ -148,12 +148,12 @@ class Y extends HTMLElement {
148
148
  let s = this.attributes.getNamedItem(a)?.value;
149
149
  d.hasOwnProperty(a) && (s = d[a]), f[a] = s;
150
150
  }
151
- this.vueApp = H(g, f), this.vueApp.use(W), this.vueApp.use(U);
151
+ this.vueApp = M(g, f), this.vueApp.provide("emitter", tt), this.vueApp.use(W), this.vueApp.use(P);
152
152
  const p = document.createElement("div");
153
153
  this.vueApp.mount(p), this.appendChild(p.children[0]);
154
154
  }
155
155
  }
156
- window.customElements.define("konnectio-gift-card-validation", Y);
156
+ window.customElements.define("konnectio-gift-card-validation", et);
157
157
  export {
158
- Y as default
158
+ et as default
159
159
  };
Binary file