@konnectio/core 4.0.56-rc15 → 4.0.56-rc16

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 (40) hide show
  1. package/dist/{ActionField-v2VjBwyP.js → ActionField-SGZXrFG1.js} +3 -3
  2. package/dist/ActionField-SGZXrFG1.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-Qp8pBuKB.js → AvailabilitySkeleton-19huhDbT.js} +31 -32
  4. package/dist/AvailabilitySkeleton-19huhDbT.js.br +0 -0
  5. package/dist/{CheckoutWindow-zKWL14ZQ.js → CheckoutWindow-o4wiWlxF.js} +24 -24
  6. package/dist/CheckoutWindow-o4wiWlxF.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js → DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js.br +0 -0
  9. package/dist/{Field-813GNeV-.js → Field-G2DlJtS7.js} +8 -9
  10. package/dist/Field-G2DlJtS7.js.br +0 -0
  11. package/dist/{ThankYou-CibbgAJf.js → ThankYou-HbdcEofD.js} +2696 -2290
  12. package/dist/ThankYou-HbdcEofD.js.br +0 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js → _-dt4Hj4aJ.js} +1783 -1745
  14. package/dist/_-dt4Hj4aJ.js.br +0 -0
  15. package/dist/availability.js +44 -47
  16. package/dist/availability.js.br +0 -0
  17. package/dist/{event-mQu2QsEx.js → event-XF6pKTqj.js} +43 -43
  18. package/dist/event-XF6pKTqj.js.br +0 -0
  19. package/dist/event.js +62 -63
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +81 -54
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +208 -207
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +273 -275
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/polyfill.js +1 -1
  28. package/dist/polyfill.js.br +0 -0
  29. package/dist/style.css +1 -1
  30. package/dist/style.css.br +0 -0
  31. package/package.json +11 -11
  32. package/dist/ActionField-v2VjBwyP.js.br +0 -0
  33. package/dist/AvailabilitySkeleton-Qp8pBuKB.js.br +0 -0
  34. package/dist/CheckoutWindow-zKWL14ZQ.js.br +0 -0
  35. package/dist/DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js.br +0 -0
  36. package/dist/Field-813GNeV-.js.br +0 -0
  37. package/dist/SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js.br +0 -0
  38. package/dist/ThankYou-CibbgAJf.js.br +0 -0
  39. package/dist/_-VRZUGIKe.js +0 -19
  40. package/dist/event-mQu2QsEx.js.br +0 -0
@@ -1,10 +1,10 @@
1
- import { d as Ge, u as Ve, s as oe, a as Le, b as Ue, c as _e, r, E as v, e as U, f as a, O as le, S as _, g as qe, h as F, i as C, j as D } from "./SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js";
1
+ import { d as Ge, u as Ve, s as oe, a as Le, b as Ue, c as _e, r as s, E as v, e as U, f as a, O as le, S as _, g as qe, h as F, i as C, j as D } from "./_-dt4Hj4aJ.js";
2
2
  const xe = Ge("event", () => {
3
- const re = Ve(), { voucher: se } = oe(Le()), { display: h } = Ue(), { bearerToken: I } = oe(_e()), p = r({}), y = r({}), t = r(void 0), l = r(!0), i = r(v.InitialState), q = r(/* @__PURE__ */ new Date()), N = r(NaN), T = r(1), S = r(NaN), K = r(NaN), E = r(""), $ = U("konnectio_name", "", void 0, { serializer: _.string }), O = U("konnectio_phone", "", void 0, { serializer: _.string }), R = U("konnectio_email", "", void 0, { serializer: _.string }), x = r(""), P = r({}), m = r({}), z = r("");
3
+ const se = Ve(), { voucher: re } = oe(Le()), { display: h } = Ue(), { bearerToken: I } = oe(_e()), p = s({}), y = s({}), t = s(void 0), l = s(!0), i = s(v.InitialState), q = s(/* @__PURE__ */ new Date()), N = s(NaN), T = s(1), S = s(NaN), K = s(NaN), E = s(""), $ = U("konnectio_name", "", void 0, { serializer: _.string }), O = U("konnectio_phone", "", void 0, { serializer: _.string }), R = U("konnectio_email", "", void 0, { serializer: _.string }), x = s(""), P = s({}), g = s({}), z = s("");
4
4
  function o(e) {
5
5
  return e.templateID !== void 0;
6
6
  }
7
- const ue = a(() => p.value.currency), ie = a(() => p.value.maxNumberPerBooking), ve = a(() => p.value.title), ce = a(() => p.value.subtitle), de = a(() => p.value.slideshow), A = a(() => q.value.toISOString()), pe = a(() => o(t.value)), M = a(() => o(t.value) ? t.value.numberOfDays : T.value), me = a(() => o(t.value) ? t.value.packageCount : 0), ge = a(() => o(t.value) ? t.value.fromDate : ""), b = a(() => y.value.events.find((e) => e.id === S.value)), fe = a(() => b.value ? b.value.length : void 0), j = a(() => o(t.value) ? t.value.templateID : 0), he = a(() => y.value.events), ye = a(() => y.value.templates), be = a(() => y.value.events.length > 0), ke = a(() => y.value.templates.length > 0), Q = a(() => b.value && b.value.eventRateType ? b.value.eventRateType : le.None), B = a(() => {
7
+ const ue = a(() => p.value.currency), ie = a(() => p.value.maxNumberPerBooking), ve = a(() => p.value.title), ce = a(() => p.value.subtitle), de = a(() => p.value.slideshow), A = a(() => q.value.toISOString()), pe = a(() => o(t.value)), M = a(() => o(t.value) ? t.value.numberOfDays : T.value), ge = a(() => o(t.value) ? t.value.packageCount : 0), me = a(() => o(t.value) ? t.value.fromDate : ""), b = a(() => y.value.events.find((e) => e.id === S.value)), fe = a(() => b.value ? b.value.length : void 0), j = a(() => o(t.value) ? t.value.templateID : 0), he = a(() => y.value.events), ye = a(() => y.value.templates), be = a(() => y.value.events.length > 0), ke = a(() => y.value.templates.length > 0), Q = a(() => b.value && b.value.eventRateType ? b.value.eventRateType : le.None), B = a(() => {
8
8
  if (!o(t.value))
9
9
  return t.value;
10
10
  }), H = a(() => {
@@ -20,42 +20,42 @@ const xe = Ge("event", () => {
20
20
  if (o(t.value))
21
21
  return t.value.templateCounts;
22
22
  }), De = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
23
- function G(e, n, s) {
23
+ function G(e, n, r) {
24
24
  let c = 0;
25
25
  if (o(t.value)) {
26
- const u = t.value.templateCounts[s];
26
+ const u = t.value.templateCounts[r];
27
27
  if (u) {
28
- const k = u.addons, g = P.value[`${n}.${e}.${s}`] || 0;
29
- if (g > 0) {
30
- const f = k?.find((w) => w.addonID === e), d = typeof g == "boolean" ? 1 : g;
28
+ const k = u.addons, m = P.value[`${n}.${e}.${r}`] || 0;
29
+ if (m > 0) {
30
+ const f = k?.find((w) => w.addonID === e), d = typeof m == "boolean" ? 1 : m;
31
31
  c += qe(f?.price, f?.quantityStrategy, M.value, u.adultPerRoom) * d;
32
32
  }
33
33
  }
34
34
  } else {
35
- const u = m.value[e] || 0;
35
+ const u = g.value[e] || 0;
36
36
  if (u > 0) {
37
- const k = b.value?.products?.find((g) => g.productID === e);
37
+ const k = b.value?.products?.find((m) => m.productID === e);
38
38
  k && (c += k.price * u);
39
39
  }
40
40
  }
41
41
  return c;
42
42
  }
43
43
  function V(e, n) {
44
- let s = 0;
44
+ let r = 0;
45
45
  if (o(t.value))
46
46
  for (const c in P.value) {
47
47
  const u = c.split(".");
48
- parseInt(u[0]) === e && parseInt(u[2]) === n && (s += G(parseInt(u[1]), e, n));
48
+ parseInt(u[0]) === e && parseInt(u[2]) === n && (r += G(parseInt(u[1]), e, n));
49
49
  }
50
50
  else
51
- for (const c in m.value)
52
- s += G(parseInt(c)) * T.value;
53
- return s;
51
+ for (const c in g.value)
52
+ r += G(parseInt(c)) * T.value;
53
+ return r;
54
54
  }
55
55
  const W = a(() => o(t.value) && t.value.totalPrice || 0), Ie = a(() => {
56
56
  if (o(t.value))
57
57
  return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
58
- (e, n, s) => e + V(n, s),
58
+ (e, n, r) => e + V(n, r),
59
59
  W.value
60
60
  ) || 0;
61
61
  {
@@ -63,25 +63,25 @@ const xe = Ge("event", () => {
63
63
  return e += H.value, e;
64
64
  }
65
65
  }), Se = a(() => o(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Pe = a(() => o(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ae = a(() => {
66
- const e = m.value;
66
+ const e = g.value;
67
67
  let n = 0;
68
- for (const s in e)
69
- n += Number.isNaN(e[s]) ? 0 : e[s];
68
+ for (const r in e)
69
+ n += Number.isNaN(e[r]) ? 0 : e[r];
70
70
  return n > 0;
71
- }), X = a(() => o(t.value) ? !1 : Object.keys(m.value).length > 0), we = a(() => !!($.value !== "" && R.value !== "" && O.value.length >= 5 && (!X.value || Ae.value) && (!(!o(t.value) && Q.value !== le.FullDayEvent) || E.value !== "")));
71
+ }), X = a(() => o(t.value) ? !1 : Object.keys(g.value).length > 0), we = a(() => !!($.value !== "" && R.value !== "" && O.value.length >= 5 && (!X.value || Ae.value) && (!(!o(t.value) && Q.value !== le.FullDayEvent) || E.value !== "")));
72
72
  function Ce(e) {
73
73
  return i.value === v.ReservationState && S.value === e && l.value;
74
74
  }
75
75
  const Ee = a(() => !(i.value === v.InitialState && l.value)), Fe = a(() => !(i.value === v.AvailabilityState && l.value)), Ne = a(() => t.value !== void 0), Te = a(() => i.value === v.PaymentState && l.value);
76
76
  async function Y() {
77
77
  try {
78
- const e = (await C.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
78
+ const e = (await C.get("https://stage.hotel-service.konnectio.dk/api/event/metadata", {
79
79
  params: {
80
80
  language: F()
81
81
  },
82
82
  headers: {
83
83
  Authorization: I.value,
84
- "Fresh-Booking-Ver": "4.0.56-rc15"
84
+ "Fresh-Booking-Ver": "4.0.56-rc16"
85
85
  }
86
86
  })).data;
87
87
  p.value = e, Z();
@@ -95,14 +95,14 @@ const xe = Ge("event", () => {
95
95
  async function Z() {
96
96
  i.value = v.AvailabilityState, l.value = !0;
97
97
  try {
98
- const e = (await C.get("https://production.hotel-service.konnectio.dk/api/event/restaurant-events", {
98
+ const e = (await C.get("https://stage.hotel-service.konnectio.dk/api/event/restaurant-events", {
99
99
  params: {
100
100
  language: F(),
101
101
  date: A.value
102
102
  },
103
103
  headers: {
104
104
  Authorization: I.value,
105
- "Fresh-Booking-Ver": "4.0.56-rc15"
105
+ "Fresh-Booking-Ver": "4.0.56-rc16"
106
106
  }
107
107
  })).data;
108
108
  y.value = e, l.value = !1;
@@ -116,7 +116,7 @@ const xe = Ge("event", () => {
116
116
  async function $e(e) {
117
117
  i.value = v.ReservationState, l.value = !0;
118
118
  try {
119
- const n = (await C.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-availability", {
119
+ const n = (await C.get("https://stage.hotel-service.konnectio.dk/api/v3/event/get-availability", {
120
120
  params: {
121
121
  language: F(),
122
122
  date: A.value,
@@ -125,7 +125,7 @@ const xe = Ge("event", () => {
125
125
  },
126
126
  headers: {
127
127
  Authorization: I.value,
128
- "Fresh-Booking-Ver": "4.0.56-rc15"
128
+ "Fresh-Booking-Ver": "4.0.56-rc16"
129
129
  }
130
130
  })).data;
131
131
  n.templateCounts.length === 0 ? h({
@@ -142,7 +142,7 @@ const xe = Ge("event", () => {
142
142
  async function Oe(e) {
143
143
  i.value = v.ReservationState, l.value = !0;
144
144
  try {
145
- const n = (await C.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
145
+ const n = (await C.get("https://stage.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
146
146
  params: {
147
147
  language: F(),
148
148
  date: A.value,
@@ -152,7 +152,7 @@ const xe = Ge("event", () => {
152
152
  },
153
153
  headers: {
154
154
  Authorization: I.value,
155
- "Fresh-Booking-Ver": "4.0.56-rc15"
155
+ "Fresh-Booking-Ver": "4.0.56-rc16"
156
156
  }
157
157
  })).data;
158
158
  t.value = n, l.value = !1, e();
@@ -165,7 +165,7 @@ const xe = Ge("event", () => {
165
165
  }
166
166
  async function Re() {
167
167
  try {
168
- const e = (await C.get("https://production.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
168
+ const e = (await C.get("https://stage.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
169
169
  params: {
170
170
  language: F(),
171
171
  date: A.value,
@@ -173,7 +173,7 @@ const xe = Ge("event", () => {
173
173
  },
174
174
  headers: {
175
175
  Authorization: I.value,
176
- "Fresh-Booking-Ver": "4.0.56-rc15"
176
+ "Fresh-Booking-Ver": "4.0.56-rc16"
177
177
  }
178
178
  })).data;
179
179
  console.log(e);
@@ -192,7 +192,7 @@ const xe = Ge("event", () => {
192
192
  type: "warning"
193
193
  });
194
194
  };
195
- let s, c, u;
195
+ let r, c, u;
196
196
  const k = [];
197
197
  if (o(t.value))
198
198
  J.value?.forEach((d, w) => {
@@ -212,22 +212,22 @@ const xe = Ge("event", () => {
212
212
  roomGroupID: d.roomGroupID,
213
213
  addons: ee
214
214
  });
215
- }), s = {
215
+ }), r = {
216
216
  templateID: j.value,
217
217
  numberOfDays: T.value,
218
218
  templateCounts: k
219
219
  };
220
220
  else {
221
221
  c = [], u = E.value;
222
- for (const d in m.value) {
223
- const w = m.value[parseInt(d)];
222
+ for (const d in g.value) {
223
+ const w = g.value[parseInt(d)];
224
224
  w > 0 && c.push({
225
225
  id: parseInt(d),
226
226
  quantity: w
227
227
  });
228
228
  }
229
229
  }
230
- let g = "https://production.hotel-service.konnectio.dk/api/v3/event/template-book";
230
+ let m = "https://stage.hotel-service.konnectio.dk/api/v3/event/template-book";
231
231
  const f = {
232
232
  date: A.value,
233
233
  name: $.value,
@@ -237,24 +237,24 @@ const xe = Ge("event", () => {
237
237
  numberOfPeople: N.value,
238
238
  days: M.value,
239
239
  discountCode: z.value,
240
- giftCardCode: se.value,
240
+ giftCardCode: re.value,
241
241
  checkoutUrl: window.location.origin,
242
242
  privacyUrl: window.location.origin
243
243
  };
244
- o(t.value) ? f.templateGroup = s : (f.time = u, f.eventId = S.value, f.products = c, g = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), await C.post(g, f, {
244
+ o(t.value) ? f.templateGroup = r : (f.time = u, f.eventId = S.value, f.products = c, m = "https://stage.hotel-service.konnectio.dk/api/v3/event/event-book"), await C.post(m, f, {
245
245
  headers: {
246
246
  Authorization: I.value,
247
- "Fresh-Booking-Ver": "4.0.56-rc15"
247
+ "Fresh-Booking-Ver": "4.0.56-rc16"
248
248
  }
249
249
  }).then((d) => {
250
- l.value = !1, re.pay({
250
+ l.value = !1, se.pay({
251
251
  callback: e,
252
252
  response: d.data
253
253
  });
254
254
  }).catch(() => n());
255
255
  }
256
256
  function Me(e) {
257
- P.value = {}, m.value = {}, E.value = "", e();
257
+ P.value = {}, g.value = {}, E.value = "", e();
258
258
  }
259
259
  function Be() {
260
260
  Y();
@@ -273,7 +273,7 @@ const xe = Ge("event", () => {
273
273
  tableGroupId: K,
274
274
  arrivalTime: E,
275
275
  addons: P,
276
- products: m,
276
+ products: g,
277
277
  discountCode: z,
278
278
  name: $,
279
279
  phone: O,
@@ -287,8 +287,8 @@ const xe = Ge("event", () => {
287
287
  slideshow: de,
288
288
  date: A,
289
289
  numberOfTotalDays: M,
290
- numberOfRooms: me,
291
- fromDate: ge,
290
+ numberOfRooms: ge,
291
+ fromDate: me,
292
292
  getEventData: b,
293
293
  length: fe,
294
294
  templateId: j,
Binary file
package/dist/event.js CHANGED
@@ -1,11 +1,10 @@
1
- import { k as ge, B as he, b as Ie, s as Q, c as fe, r as Ze, f as je, o as a, m as y, a0 as He, w as k, x as l, p as r, H as V, F as n, z as e, a1 as Qe, a2 as ie, l as i, a3 as re, n as d, a4 as Ye, J as U, a5 as Je, _ as ke, Z as Ke, Y as We, G as F, $ as C, a6 as R, a7 as ue, O as de, A as x, T as me, a8 as ce, a9 as Xe, aa as ee, K as pe, M as Ge, N as xe, P as el, Q as ll, R as nl, U as tl, V as al, ab as ol } from "./SelectField.vue_vue_type_style_index_0_lang-e8Rmd6FZ.js";
2
- import { B as sl, M as il, R as rl, T as ul, V as dl } from "./ThankYou-CibbgAJf.js";
3
- import { u as Y } from "./event-mQu2QsEx.js";
4
- import { A as ml } from "./ActionField-v2VjBwyP.js";
5
- import { P as cl, C as ve, a as pl } from "./CheckoutWindow-zKWL14ZQ.js";
6
- import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-cmnH2g2d.js";
1
+ import { k as ge, B as he, b as Ie, s as Q, c as fe, r as Ze, f as je, o as a, m as y, M as He, w as k, n as l, t as r, N as V, P as n, p as e, Q as Qe, R as ie, x as i, U as re, y as d, V as We, W as U, X as Ye, v as ke, H as Ge, G as Je, J as F, K as C, Y as R, Z as ue, O as de, q as x, T as me, $ as ce, a0 as Ke, a1 as ee, a2 as pe, a3 as Xe, a4 as xe, a5 as el, a6 as ll, a7 as nl, a8 as tl, a9 as al, aa as ol } from "./_-dt4Hj4aJ.js";
2
+ import { B as sl, M as il, R as rl, T as ul, G as dl } from "./ThankYou-HbdcEofD.js";
3
+ import { u as W } from "./event-XF6pKTqj.js";
4
+ import { A as ml } from "./ActionField-SGZXrFG1.js";
5
+ import { P as cl, C as ve, a as pl } from "./CheckoutWindow-o4wiWlxF.js";
6
+ import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-RdYEm2Lf.js";
7
7
  import "./_commonjsHelpers-2ufMB8rV.js";
8
- import "./_-VRZUGIKe.js";
9
8
  const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }, hl = { key: 1 }, fl = /* @__PURE__ */ ge({
10
9
  __name: "Event",
11
10
  props: {
@@ -33,18 +32,18 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
33
32
  maxNumberOfPeople: T,
34
33
  numberOfPeople: _,
35
34
  eventId: g,
36
- tableGroupId: A
37
- } = Q(Y()), {
35
+ tableGroupId: D
36
+ } = Q(W()), {
38
37
  getTemplateAvailability: u,
39
38
  getEventAvailability: c,
40
39
  isEventListingLoading: p
41
- } = Y(), D = Ze(0), I = je(() => p(m.listingId)), J = () => {
42
- D.value > 0 ? (g.value = m.listingId, _.value = D.value, u(m.callback)) : P({
40
+ } = W(), L = Ze(0), I = je(() => p(m.listingId)), Y = () => {
41
+ L.value > 0 ? (g.value = m.listingId, _.value = L.value, u(m.callback)) : P({
43
42
  type: "error",
44
43
  message: t("alert.error.selectPeople")
45
44
  });
46
45
  }, $ = () => {
47
- D.value > 0 ? (g.value = m.listingId, A.value = m.tableGroupId, _.value = D.value, c(m.callback)) : P({
46
+ L.value > 0 ? (g.value = m.listingId, D.value = m.tableGroupId, _.value = L.value, c(m.callback)) : P({
48
47
  type: "error",
49
48
  message: t("alert.error.selectPeople")
50
49
  });
@@ -54,12 +53,12 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
54
53
  gallery: s.gallery,
55
54
  name: s.name,
56
55
  description: s.description,
57
- layout: e(Je).Event
56
+ layout: e(Ye).Event
58
57
  }, He({
59
58
  action: k(() => [
60
59
  r(ml, {
61
- modelValue: D.value,
62
- "onUpdate:modelValue": E[0] || (E[0] = (S) => D.value = S),
60
+ modelValue: L.value,
61
+ "onUpdate:modelValue": E[0] || (E[0] = (S) => L.value = S),
63
62
  type: "number",
64
63
  label: e(t)("event.numberOfGuests"),
65
64
  buttonLabel: s.soldOut ? e(t)("event.soldOut") : e(t)("event.bookNowButton"),
@@ -68,7 +67,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
68
67
  "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(T),
69
68
  "is-loading": I.value,
70
69
  "onUpdate:isLoading": E[1] || (E[1] = (S) => I.value = S),
71
- onAction: E[2] || (E[2] = (S) => s.type === "event" ? $() : J())
70
+ onAction: E[2] || (E[2] = (S) => s.type === "event" ? $() : Y())
72
71
  }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
73
72
  ]),
74
73
  _: 2
@@ -96,7 +95,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
96
95
  icon: "calendar-clock",
97
96
  color: "header"
98
97
  }),
99
- l("span", null, n(e(Ye)(s.timeFrom, s.timeTo)), 1)
98
+ l("span", null, n(e(We)(s.timeFrom, s.timeTo)), 1)
100
99
  ]),
101
100
  s.maxOnlineReservationLimit ? (a(), i("li", hl, [
102
101
  r(V, {
@@ -145,7 +144,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
145
144
  }, _l = { class: "fresh-booking-event-listings" }, Vl = { class: "fresh-booking-event-listings" }, Pl = {
146
145
  key: 2,
147
146
  id: "fresh-booking-event-addons"
148
- }, Tl = { class: "fresh-booking-table" }, $l = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), El = { class: "fresh-booking-event-addons-price" }, wl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Ol = { class: "fresh-booking-event-addons-input" }, Cl = { class: "fresh-booking-event-addons-price" }, Al = /* @__PURE__ */ M(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Dl = { class: "fresh-booking-event-addons-price" }, Ll = { key: 3 }, Ul = { class: "fresh-booking-label required" }, Bl = { id: "fresh-booking-event-table" }, Fl = { key: 4 }, Rl = { class: "fresh-booking-label required" }, Nl = { class: "fresh-booking-table" }, Sl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, ql = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), zl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Il = { class: "fresh-booking-event-addons-input" }, Zl = { class: "fresh-booking-event-addons-price" }, jl = { key: 0 }, Hl = { key: 1 }, Ql = { key: 2 }, Yl = { key: 3 }, Jl = { key: 4 }, Kl = { key: 5 }, Wl = { key: 6 }, Xl = /* @__PURE__ */ ge({
147
+ }, Tl = { class: "fresh-booking-table" }, $l = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), El = { class: "fresh-booking-event-addons-price" }, wl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Ol = { class: "fresh-booking-event-addons-input" }, Cl = { class: "fresh-booking-event-addons-price" }, Dl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Ll = { class: "fresh-booking-event-addons-price" }, Al = { key: 3 }, Ul = { class: "fresh-booking-label required" }, Bl = { id: "fresh-booking-event-table" }, Fl = { key: 4 }, Rl = { class: "fresh-booking-label required" }, Nl = { class: "fresh-booking-table" }, Sl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, ql = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), zl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Il = { class: "fresh-booking-event-addons-input" }, Zl = { class: "fresh-booking-event-addons-price" }, jl = { key: 0 }, Hl = { key: 1 }, Ql = { key: 2 }, Wl = { key: 3 }, Yl = { key: 4 }, Gl = { key: 5 }, Jl = { key: 6 }, Kl = /* @__PURE__ */ ge({
149
148
  name: "EventLayout",
150
149
  __name: "Event",
151
150
  props: {
@@ -160,13 +159,13 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
160
159
  numberOfDays: T,
161
160
  discountCode: _,
162
161
  name: g,
163
- phone: A,
162
+ phone: D,
164
163
  email: u,
165
164
  remark: c,
166
165
  arrivalTime: p,
167
- title: D,
166
+ title: L,
168
167
  subtitle: I,
169
- slideshow: J,
168
+ slideshow: Y,
170
169
  currency: $,
171
170
  numberOfPeople: s,
172
171
  numberOfTotalDays: E,
@@ -183,18 +182,18 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
183
182
  getEventTableData: Oe,
184
183
  length: le,
185
184
  roomUpgrade: Ce,
186
- weekendFee: Ae,
185
+ weekendFee: De,
187
186
  fromDate: ne,
188
- hasProducts: De,
187
+ hasProducts: Le,
189
188
  eventRateType: te,
190
- isMetaDataAvailable: Le,
189
+ isMetaDataAvailable: Ae,
191
190
  areListingsAvailable: Ue,
192
191
  isReservationFormFilled: Be,
193
192
  isAvailabilityDataAvailable: Fe,
194
193
  // getEventImages,
195
- isTemplateEvent: L,
194
+ isTemplateEvent: A,
196
195
  tableBasePrice: ae
197
- } = Q(Y()), {
196
+ } = Q(W()), {
198
197
  initialize: Re,
199
198
  validateDiscountCode: en,
200
199
  fetchListings: Ne,
@@ -202,24 +201,24 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
202
201
  localAddonPrice: oe,
203
202
  totalAddonPrice: se,
204
203
  reset: Me
205
- } = Y(), {
204
+ } = W(), {
206
205
  hideEvents: qe,
207
206
  hideEventTemplates: ze
208
207
  } = Q(fe());
209
- return Ke(() => Re()), We(m, () => Ne()), (K, v) => (a(), y(xe, { styling: K.styling }, {
208
+ return Ge(() => Re()), Je(m, () => Ne()), (G, v) => (a(), y(xe, { styling: G.styling }, {
210
209
  default: k(() => [
211
- r(Ge, {
210
+ r(Xe, {
212
211
  id: "fresh-booking-event-module",
213
212
  class: "fresh-booking-app",
214
213
  type: "event",
215
- "access-token": K.accessToken,
216
- styling: K.styling
214
+ "access-token": G.accessToken,
215
+ styling: G.styling
217
216
  }, {
218
217
  default: k(() => [
219
- e(Le) ? (a(), y(il, {
218
+ e(Ae) ? (a(), y(il, {
220
219
  key: 0,
221
- slideshow: e(J),
222
- title: e(D),
220
+ slideshow: e(Y),
221
+ title: e(L),
223
222
  subtitle: e(I)
224
223
  }, {
225
224
  availability: k(({ next: j }) => [
@@ -250,16 +249,16 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
250
249
  timeTo: b,
251
250
  fromDate: f,
252
251
  toDate: q,
253
- tableGroupID: W,
254
- description: X,
255
- soldOut: G,
252
+ tableGroupID: J,
253
+ description: K,
254
+ soldOut: X,
256
255
  maxOnlineReservationLimit: z
257
256
  }) => (a(), y(be, {
258
257
  key: w,
259
258
  type: "event",
260
259
  "listing-id": w,
261
- "table-group-id": W,
262
- description: X,
260
+ "table-group-id": J,
261
+ description: K,
263
262
  name: h,
264
263
  days: o,
265
264
  "from-date": f,
@@ -267,7 +266,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
267
266
  "max-online-reservation-limit": z,
268
267
  "time-from": O,
269
268
  "time-to": b,
270
- "sold-out": G,
269
+ "sold-out": X,
271
270
  callback: j
272
271
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
273
272
  ])
@@ -315,7 +314,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
315
314
  "is-loading": e(Ve),
316
315
  "base-price": e(ye),
317
316
  "total-price": e(_e),
318
- "weekend-fee": e(Ae),
317
+ "weekend-fee": e(De),
319
318
  "room-upgrade": e(Ce),
320
319
  onPrev: (o) => e(Me)(w),
321
320
  onNext: (o) => e(Se)(j)
@@ -350,8 +349,8 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
350
349
  required: ""
351
350
  }, null, 8, ["modelValue", "label", "placeholder"]),
352
351
  r(cl, {
353
- modelValue: e(A),
354
- "onUpdate:modelValue": v[4] || (v[4] = (o) => F(A) ? A.value = o : null),
352
+ modelValue: e(D),
353
+ "onUpdate:modelValue": v[4] || (v[4] = (o) => F(D) ? D.value = o : null),
355
354
  label: e(t)("booking.reservation.phone"),
356
355
  icon: "phone-office",
357
356
  placeholder: e(t)("booking.reservation.phonePlaceholder"),
@@ -390,14 +389,14 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
390
389
  (a(!0), i(C, null, R(h, ({
391
390
  addonID: f,
392
391
  cardinality: q,
393
- name: W,
394
- price: X,
395
- quantityStrategy: G
392
+ name: J,
393
+ price: K,
394
+ quantityStrategy: X
396
395
  }) => (a(), i("tr", { key: f }, [
397
396
  l("td", null, [
398
- l("b", null, n(W), 1),
397
+ l("b", null, n(J), 1),
399
398
  wl,
400
- l("span", null, n(e(U)(X, e($))) + " " + n(e(Xe)(G)), 1)
399
+ l("span", null, n(e(U)(K, e($))) + " " + n(e(Ke)(X)), 1)
401
400
  ]),
402
401
  l("td", Ol, [
403
402
  q === 3 ? (a(), y(x, {
@@ -420,8 +419,8 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
420
419
  ]),
421
420
  l("tfoot", null, [
422
421
  l("tr", null, [
423
- Al,
424
- l("td", Dl, [
422
+ Dl,
423
+ l("td", Ll, [
425
424
  l("u", null, [
426
425
  l("span", null, n(e(U)(e(se)(o, b), e($))), 1)
427
426
  ])
@@ -431,7 +430,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
431
430
  ])
432
431
  ]))), 128))
433
432
  ])) : d("", !0),
434
- e(te) !== e(de).FullDayEvent && !e(L) ? (a(), i("div", Ll, [
433
+ e(te) !== e(de).FullDayEvent && !e(A) ? (a(), i("div", Al, [
435
434
  l("label", Ul, [
436
435
  l("span", null, n(e(t)("event.selectArrivalTime")), 1)
437
436
  ]),
@@ -448,7 +447,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
448
447
  ]))), 128))
449
448
  ])
450
449
  ])) : d("", !0),
451
- e(De) ? (a(), i("div", Fl, [
450
+ e(Le) ? (a(), i("div", Fl, [
452
451
  l("label", Rl, [
453
452
  l("span", null, n(e(t)("event.selectProducts")), 1)
454
453
  ]),
@@ -496,31 +495,31 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
496
495
  l("span", null, n(e(t)("event.numberOfGuests")), 1),
497
496
  l("b", null, n(e(s)), 1)
498
497
  ]),
499
- e(L) ? (a(), i("li", jl, [
498
+ e(A) ? (a(), i("li", jl, [
500
499
  l("span", null, n(e(t)("event.numberOfRooms")), 1),
501
500
  l("b", null, n(e(S)), 1)
502
501
  ])) : d("", !0),
503
- e(L) ? (a(), i("li", Hl, [
502
+ e(A) ? (a(), i("li", Hl, [
504
503
  l("span", null, n(e(t)("event.numberOfDays")), 1),
505
504
  l("b", null, n(e(E)), 1)
506
505
  ])) : d("", !0),
507
- e(L) ? (a(), i("li", Ql, [
506
+ e(A) ? (a(), i("li", Ql, [
508
507
  l("span", null, n(e(t)("booking.reservation.arrival")), 1),
509
508
  l("b", null, n(e(pe)(e(ne))), 1)
510
509
  ])) : d("", !0),
511
- e(L) ? (a(), i("li", Yl, [
510
+ e(A) ? (a(), i("li", Wl, [
512
511
  l("span", null, n(e(t)("booking.reservation.departure")), 1),
513
512
  l("b", null, n(e(pe)(e(ne), e(E))), 1)
514
513
  ])) : d("", !0),
515
- !e(L) && e(p) ? (a(), i("li", Jl, [
514
+ !e(A) && e(p) ? (a(), i("li", Yl, [
516
515
  l("span", null, n(e(t)("event.startOfEvent")), 1),
517
516
  l("b", null, n(e(ee)(e(p))), 1)
518
517
  ])) : d("", !0),
519
- !e(L) && e(le) ? (a(), i("li", Kl, [
518
+ !e(A) && e(le) ? (a(), i("li", Gl, [
520
519
  l("span", null, n(e(t)("event.lengthOfEvent")), 1),
521
520
  l("b", null, n(e(ee)(e(le))), 1)
522
521
  ])) : d("", !0),
523
- !e(L) && e(ae) > 0 ? (a(), i("li", Wl, [
522
+ !e(A) && e(ae) > 0 ? (a(), i("li", Jl, [
524
523
  l("span", null, n(e(t)("booking.availability.basePrice")), 1),
525
524
  l("b", null, n(e(U)(e(ae), e($))), 1)
526
525
  ])) : d("", !0)
@@ -551,7 +550,7 @@ const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }
551
550
  _: 1
552
551
  }, 8, ["styling"]));
553
552
  }
554
- }), H = /* @__PURE__ */ ke(Xl, [["__scopeId", "data-v-c609785a"]]), Gl = nl();
553
+ }), H = /* @__PURE__ */ ke(Kl, [["__scopeId", "data-v-c609785a"]]), Xl = nl();
555
554
  class xl extends HTMLElement {
556
555
  constructor() {
557
556
  super();
@@ -572,9 +571,9 @@ class xl extends HTMLElement {
572
571
  _.hasOwnProperty(u) && (c = _[u]), console.log(c, u), T[u] = c;
573
572
  }
574
573
  const g = tl(H, T);
575
- g.use(al), g.use(Gl), g.use(dl), g.use(ol, { bootstrap: !0 });
576
- const A = document.createElement("div");
577
- g.mount(A), this.appendChild(A.children[0]);
574
+ g.use(al), g.use(Xl), g.use(dl), g.use(ol, { bootstrap: !0 });
575
+ const D = document.createElement("div");
576
+ g.mount(D), this.appendChild(D.children[0]);
578
577
  }
579
578
  }
580
579
  window.customElements.define("konnectio-event", xl);
package/dist/event.js.br CHANGED
Binary file