@konnectio/core 4.0.56-rc3 → 4.0.56-rc5

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 (113) hide show
  1. package/dist/{ActionField-9I-yAskc.js → ActionField--byx0Lp1.js} +27 -28
  2. package/dist/ActionField--byx0Lp1.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-cL6E9wAp.js +239 -0
  4. package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
  5. package/dist/{CheckoutWindow-31th413C.js → CheckoutWindow-_ZUCAYgm.js} +46 -47
  6. package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
  7. package/dist/{Container-gHSYMY7q.js → Container-6UeOakwz.js} +6 -7
  8. package/dist/Container-6UeOakwz.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js → DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js} +5 -6
  10. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
  11. package/dist/{Field-QHvFgmEq.js → Field-GdMucFcQ.js} +12 -13
  12. package/dist/Field-GdMucFcQ.js.br +5 -0
  13. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +27240 -0
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
  15. package/dist/{ThankYou-SQ_bbgj4.js → ThankYou-9pzt2SfJ.js} +1829 -1670
  16. package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
  17. package/dist/_-5uiOrU07.js +19 -0
  18. package/dist/_commonjsHelpers-4t9S7M5p.js +30 -0
  19. package/dist/availability.js +34 -35
  20. package/dist/availability.js.br +0 -0
  21. package/dist/components/Alert.vue.d.ts +4 -4
  22. package/dist/components/Clickable.vue.d.ts +5 -5
  23. package/dist/components/Container.vue.d.ts +4 -4
  24. package/dist/components/ErrorMessage.vue.d.ts +3 -3
  25. package/dist/components/Gallery.vue.d.ts +4 -4
  26. package/dist/components/GoogleNotice.vue.d.ts +1 -1
  27. package/dist/components/Icon.vue.d.ts +4 -4
  28. package/dist/components/Loading.vue.d.ts +4 -4
  29. package/dist/components/Spinner.vue.d.ts +1 -1
  30. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +4 -4
  31. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +4 -4
  32. package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -4
  33. package/dist/components/forms/MultiStepForm.vue.d.ts +5 -5
  34. package/dist/components/forms/ReservationForm.vue.d.ts +4 -4
  35. package/dist/components/forms/_.vue.d.ts +5 -5
  36. package/dist/components/inputs/Checkbox.vue.d.ts +6 -6
  37. package/dist/components/inputs/CheckboxField.vue.d.ts +5 -5
  38. package/dist/components/inputs/DateField.vue.d.ts +5 -5
  39. package/dist/components/inputs/InputField.vue.d.ts +4 -4
  40. package/dist/components/inputs/MediaSelector.vue.d.ts +5 -5
  41. package/dist/components/inputs/NumberField.vue.d.ts +5 -5
  42. package/dist/components/inputs/SelectField.vue.d.ts +5 -5
  43. package/dist/components/inputs/TextField.vue.d.ts +6 -6
  44. package/dist/components/inputs/TimeField.vue.d.ts +4 -4
  45. package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -5
  46. package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -5
  47. package/dist/components/inputs/grouped/NameField.vue.d.ts +6 -6
  48. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +6 -6
  49. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +5 -5
  50. package/dist/components/listings/Base.vue.d.ts +4 -4
  51. package/dist/components/listings/Event.vue.d.ts +4 -4
  52. package/dist/components/listings/Hotel.vue.d.ts +3 -3
  53. package/dist/components/listings/Template.vue.d.ts +3 -3
  54. package/dist/components/side-panels/Base.vue.d.ts +5 -5
  55. package/dist/components/side-panels/ListingInfo.vue.d.ts +3 -3
  56. package/dist/components/side-panels/Template.vue.d.ts +3 -3
  57. package/dist/components/side-panels/TermsOfService.vue.d.ts +3 -3
  58. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +4 -4
  59. package/dist/components/skeletons/Field.vue.d.ts +4 -4
  60. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -1
  61. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
  62. package/dist/components/skeletons/Listing.vue.d.ts +1 -1
  63. package/dist/components/skeletons/Sidebar.vue.d.ts +1 -1
  64. package/dist/components/skeletons/_.vue.d.ts +4 -4
  65. package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
  66. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  67. package/dist/components/views/ThankYou.vue.d.ts +4 -4
  68. package/dist/entries/availability.d.ts +1 -1
  69. package/dist/entries/event.d.ts +1 -1
  70. package/dist/entries/gift-card-validation.d.ts +1 -1
  71. package/dist/entries/gift-card.d.ts +1 -1
  72. package/dist/entries/hotel.d.ts +1 -1
  73. package/dist/{event-4kCWoqDL.js → event-jnP6wH4w.js} +53 -54
  74. package/dist/event-jnP6wH4w.js.br +0 -0
  75. package/dist/event.js +212 -213
  76. package/dist/event.js.br +0 -0
  77. package/dist/gift-card-validation.js +57 -58
  78. package/dist/gift-card-validation.js.br +0 -0
  79. package/dist/gift-card.js +106 -107
  80. package/dist/gift-card.js.br +0 -0
  81. package/dist/hotel.js +916 -906
  82. package/dist/hotel.js.br +0 -0
  83. package/dist/layouts/Availability.vue.d.ts +4 -4
  84. package/dist/layouts/Event.vue.d.ts +4 -4
  85. package/dist/layouts/GiftCard.vue.d.ts +4 -4
  86. package/dist/layouts/GiftCardValidation.vue.d.ts +4 -4
  87. package/dist/layouts/Hotel.vue.d.ts +4 -4
  88. package/dist/layouts/_.vue.d.ts +4 -4
  89. package/dist/polyfill.js +2 -2
  90. package/dist/polyfill.js.br +0 -0
  91. package/dist/store/alert.d.ts +15 -15
  92. package/dist/store/applyGiftCard.d.ts +18 -18
  93. package/dist/store/availability.d.ts +12 -12
  94. package/dist/store/event.d.ts +141 -141
  95. package/dist/store/giftCard.d.ts +51 -51
  96. package/dist/store/payment.d.ts +39 -39
  97. package/dist/store/recaptcha.d.ts +3 -3
  98. package/dist/store/tracking.d.ts +6 -6
  99. package/dist/store/utilities.d.ts +129 -129
  100. package/package.json +1 -1
  101. package/dist/ActionField-9I-yAskc.js.br +0 -0
  102. package/dist/AvailabilitySkeleton-hoauL0os.js +0 -242
  103. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  104. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  105. package/dist/Container-gHSYMY7q.js.br +0 -0
  106. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  107. package/dist/Field-QHvFgmEq.js.br +0 -0
  108. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js +0 -21472
  109. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  110. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  111. package/dist/_-FedWhJCw.js +0 -20
  112. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  113. package/dist/event-4kCWoqDL.js.br +0 -0
@@ -1,5 +1,5 @@
1
1
  var I = (M, B, v) => new Promise((y, p) => {
2
- var g = (l) => {
2
+ var m = (l) => {
3
3
  try {
4
4
  o(v.next(l));
5
5
  } catch (P) {
@@ -11,18 +11,17 @@ var I = (M, B, v) => new Promise((y, p) => {
11
11
  } catch (P) {
12
12
  p(P);
13
13
  }
14
- }, o = (l) => l.done ? y(l.value) : Promise.resolve(l.value).then(g, t);
14
+ }, o = (l) => l.done ? y(l.value) : Promise.resolve(l.value).then(m, t);
15
15
  o((v = v.apply(M, B)).next());
16
16
  });
17
- import { d as Ge, u as Ue, s as ue, a as _e, b as qe, c as Ke, E as d, e as Q, O as ie, S as H, g as xe, f as $, h as F, i as S } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
18
- import { ref as u, computed as a } from "vue";
19
- const Je = Ge("event", () => {
20
- const M = Ue(), { voucher: B } = ue(_e()), { display: v } = qe(), { bearerToken: y } = ue(Ke()), p = u({}), g = u({}), t = u(void 0), o = u(!0), l = u(d.InitialState), P = u(/* @__PURE__ */ new Date()), O = u(NaN), R = u(1), w = u(NaN), J = u(NaN), N = u(""), V = Q("konnectio_name", "", void 0, { serializer: H.string }), L = Q("konnectio_phone", "", void 0, { serializer: H.string }), G = Q("konnectio_email", "", void 0, { serializer: H.string }), W = u(""), A = u({}), b = u({}), U = u("");
21
- function r(e) {
17
+ import { d as Ge, u as Ue, s as ue, a as _e, b as qe, c as Ke, r as u, E as d, e as Q, f as a, O as ie, S as H, g as xe, h as $, i as F, j as S } from "./SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js";
18
+ const He = Ge("event", () => {
19
+ const M = Ue(), { voucher: B } = ue(_e()), { display: v } = qe(), { bearerToken: y } = ue(Ke()), p = u({}), m = u({}), t = u(void 0), o = u(!0), l = u(d.InitialState), P = u(/* @__PURE__ */ new Date()), O = u(NaN), R = u(1), w = u(NaN), J = u(NaN), N = u(""), V = Q("konnectio_name", "", void 0, { serializer: H.string }), L = Q("konnectio_phone", "", void 0, { serializer: H.string }), G = Q("konnectio_email", "", void 0, { serializer: H.string }), W = u(""), A = u({}), b = u({}), U = u("");
20
+ function s(e) {
22
21
  return e.templateID !== void 0;
23
22
  }
24
- const ve = a(() => p.value.currency), ce = a(() => p.value.maxNumberPerBooking), de = a(() => p.value.title), pe = a(() => p.value.subtitle), me = a(() => p.value.slideshow), C = a(() => P.value.toISOString()), ge = a(() => r(t.value)), _ = a(() => r(t.value) ? t.value.numberOfDays : R.value), fe = a(() => r(t.value) ? t.value.packageCount : 0), he = a(() => r(t.value) ? t.value.fromDate : ""), D = a(() => g.value.events.find((e) => e.id === w.value)), ye = a(() => D.value ? D.value.length : void 0), X = a(() => r(t.value) ? t.value.templateID : 0), be = a(() => g.value.events), ke = a(() => g.value.templates), De = a(() => g.value.events.length > 0), Ie = a(() => g.value.templates.length > 0), Y = a(() => D.value && D.value.eventRateType ? D.value.eventRateType : ie.None), q = a(() => {
25
- if (!r(t.value))
23
+ const ve = a(() => p.value.currency), ce = a(() => p.value.maxNumberPerBooking), de = a(() => p.value.title), pe = a(() => p.value.subtitle), ge = a(() => p.value.slideshow), C = a(() => P.value.toISOString()), me = a(() => s(t.value)), _ = a(() => s(t.value) ? t.value.numberOfDays : R.value), fe = a(() => s(t.value) ? t.value.packageCount : 0), he = a(() => s(t.value) ? t.value.fromDate : ""), D = a(() => m.value.events.find((e) => e.id === w.value)), ye = a(() => D.value ? D.value.length : void 0), X = a(() => s(t.value) ? t.value.templateID : 0), be = a(() => m.value.events), ke = a(() => m.value.templates), De = a(() => m.value.events.length > 0), Ie = a(() => m.value.templates.length > 0), Y = a(() => D.value && D.value.eventRateType ? D.value.eventRateType : ie.None), q = a(() => {
24
+ if (!s(t.value))
26
25
  return t.value;
27
26
  }), Z = a(() => {
28
27
  if (q.value !== void 0) {
@@ -34,44 +33,44 @@ const Je = Ge("event", () => {
34
33
  }
35
34
  return 0;
36
35
  }), ee = a(() => {
37
- if (r(t.value))
36
+ if (s(t.value))
38
37
  return t.value.templateCounts;
39
38
  }), Se = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
40
39
  function K(e, n, i) {
41
40
  var f, T;
42
- let m = 0;
43
- if (r(t.value)) {
41
+ let g = 0;
42
+ if (s(t.value)) {
44
43
  const h = t.value.templateCounts[i];
45
44
  if (h) {
46
45
  const c = h.addons, k = A.value[`${n}.${e}.${i}`] || 0;
47
46
  if (k > 0) {
48
- const s = c == null ? void 0 : c.find((z) => z.addonID === e), E = typeof k == "boolean" ? 1 : k;
49
- m += xe(s == null ? void 0 : s.price, s == null ? void 0 : s.quantityStrategy, _.value, h.adultPerRoom) * E;
47
+ const r = c == null ? void 0 : c.find((z) => z.addonID === e), E = typeof k == "boolean" ? 1 : k;
48
+ g += xe(r == null ? void 0 : r.price, r == null ? void 0 : r.quantityStrategy, _.value, h.adultPerRoom) * E;
50
49
  }
51
50
  }
52
51
  } else {
53
52
  const h = b.value[e] || 0;
54
53
  if (h > 0) {
55
54
  const c = (T = (f = D.value) == null ? void 0 : f.products) == null ? void 0 : T.find((k) => k.productID === e);
56
- c && (m += c.price * h);
55
+ c && (g += c.price * h);
57
56
  }
58
57
  }
59
- return m;
58
+ return g;
60
59
  }
61
60
  function x(e, n) {
62
61
  let i = 0;
63
- if (r(t.value))
64
- for (const m in A.value) {
65
- const f = m.split(".");
62
+ if (s(t.value))
63
+ for (const g in A.value) {
64
+ const f = g.split(".");
66
65
  parseInt(f[0]) === e && parseInt(f[2]) === n && (i += K(parseInt(f[1]), e, n));
67
66
  }
68
67
  else
69
- for (const m in b.value)
70
- i += K(parseInt(m)) * R.value;
68
+ for (const g in b.value)
69
+ i += K(parseInt(g)) * R.value;
71
70
  return i;
72
71
  }
73
- const te = a(() => r(t.value) && t.value.totalPrice || 0), Pe = a(() => {
74
- if (r(t.value))
72
+ const te = a(() => s(t.value) && t.value.totalPrice || 0), Pe = a(() => {
73
+ if (s(t.value))
75
74
  return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
76
75
  (e, n, i) => e + x(n, i),
77
76
  te.value
@@ -80,13 +79,13 @@ const Je = Ge("event", () => {
80
79
  let e = x();
81
80
  return e += Z.value, e;
82
81
  }
83
- }), we = a(() => r(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ae = a(() => r(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ce = a(() => {
82
+ }), we = a(() => s(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ae = a(() => s(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ce = a(() => {
84
83
  const e = b.value;
85
84
  let n = 0;
86
85
  for (const i in e)
87
86
  n += Number.isNaN(e[i]) ? 0 : e[i];
88
87
  return n > 0;
89
- }), ae = a(() => r(t.value) ? !1 : Object.keys(b.value).length > 0), Ee = a(() => !!(V.value !== "" && G.value !== "" && L.value.length >= 5 && (!ae.value || Ce.value) && (!(!r(t.value) && Y.value !== ie.FullDayEvent) || N.value !== "")));
88
+ }), ae = a(() => s(t.value) ? !1 : Object.keys(b.value).length > 0), Ee = a(() => !!(V.value !== "" && G.value !== "" && L.value.length >= 5 && (!ae.value || Ce.value) && (!(!s(t.value) && Y.value !== ie.FullDayEvent) || N.value !== "")));
90
89
  function Fe(e) {
91
90
  return l.value === d.ReservationState && w.value === e && o.value;
92
91
  }
@@ -100,7 +99,7 @@ const Je = Ge("event", () => {
100
99
  },
101
100
  headers: {
102
101
  Authorization: y.value,
103
- "Fresh-Booking-Ver": "4.0.56-rc3"
102
+ "Fresh-Booking-Ver": "4.0.56-rc5"
104
103
  }
105
104
  })).data;
106
105
  p.value = e, oe();
@@ -123,10 +122,10 @@ const Je = Ge("event", () => {
123
122
  },
124
123
  headers: {
125
124
  Authorization: y.value,
126
- "Fresh-Booking-Ver": "4.0.56-rc3"
125
+ "Fresh-Booking-Ver": "4.0.56-rc5"
127
126
  }
128
127
  })).data;
129
- g.value = e, o.value = !1;
128
+ m.value = e, o.value = !1;
130
129
  } catch (e) {
131
130
  v({
132
131
  message: S.t("alert.error.couldntFetchListings"),
@@ -148,7 +147,7 @@ const Je = Ge("event", () => {
148
147
  },
149
148
  headers: {
150
149
  Authorization: y.value,
151
- "Fresh-Booking-Ver": "4.0.56-rc3"
150
+ "Fresh-Booking-Ver": "4.0.56-rc5"
152
151
  }
153
152
  })).data;
154
153
  n.templateCounts.length === 0 ? v({
@@ -177,7 +176,7 @@ const Je = Ge("event", () => {
177
176
  },
178
177
  headers: {
179
178
  Authorization: y.value,
180
- "Fresh-Booking-Ver": "4.0.56-rc3"
179
+ "Fresh-Booking-Ver": "4.0.56-rc5"
181
180
  }
182
181
  })).data;
183
182
  t.value = n, o.value = !1, e();
@@ -200,7 +199,7 @@ const Je = Ge("event", () => {
200
199
  },
201
200
  headers: {
202
201
  Authorization: y.value,
203
- "Fresh-Booking-Ver": "4.0.56-rc3"
202
+ "Fresh-Booking-Ver": "4.0.56-rc5"
204
203
  }
205
204
  })).data;
206
205
  console.log(e);
@@ -222,24 +221,24 @@ const Je = Ge("event", () => {
222
221
  type: "warning"
223
222
  });
224
223
  };
225
- let i, m, f;
224
+ let i, g, f;
226
225
  const T = [];
227
- if (r(t.value))
228
- (k = ee.value) == null || k.forEach((s, E) => {
226
+ if (s(t.value))
227
+ (k = ee.value) == null || k.forEach((r, E) => {
229
228
  const z = [];
230
229
  let le = 0;
231
- for (const re in A.value) {
232
- const j = re.split("."), se = A.value[re];
233
- parseInt(j[0]) === s.roomGroupID && parseInt(j[2]) === E && se > 0 && (z.push({
230
+ for (const se in A.value) {
231
+ const j = se.split("."), re = A.value[se];
232
+ parseInt(j[0]) === r.roomGroupID && parseInt(j[2]) === E && re > 0 && (z.push({
234
233
  id: le,
235
234
  addonID: parseInt(j[1]),
236
- quantity: se
235
+ quantity: re
237
236
  }), le++);
238
237
  }
239
238
  T.push({
240
- adultPerRoom: s.adultPerRoom,
241
- count: s.count,
242
- roomGroupID: s.roomGroupID,
239
+ adultPerRoom: r.adultPerRoom,
240
+ count: r.count,
241
+ roomGroupID: r.roomGroupID,
243
242
  addons: z
244
243
  });
245
244
  }), i = {
@@ -248,11 +247,11 @@ const Je = Ge("event", () => {
248
247
  templateCounts: T
249
248
  };
250
249
  else {
251
- m = [], f = N.value;
252
- for (const s in b.value) {
253
- const E = b.value[parseInt(s)];
254
- E > 0 && m.push({
255
- id: parseInt(s),
250
+ g = [], f = N.value;
251
+ for (const r in b.value) {
252
+ const E = b.value[parseInt(r)];
253
+ E > 0 && g.push({
254
+ id: parseInt(r),
256
255
  quantity: E
257
256
  });
258
257
  }
@@ -271,15 +270,15 @@ const Je = Ge("event", () => {
271
270
  checkoutUrl: window.location.origin,
272
271
  privacyUrl: window.location.origin
273
272
  };
274
- r(t.value) ? c.templateGroup = i : (c.time = f, c.eventId = w.value, c.products = m, h = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), yield F.post(h, c, {
273
+ s(t.value) ? c.templateGroup = i : (c.time = f, c.eventId = w.value, c.products = g, h = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), yield F.post(h, c, {
275
274
  headers: {
276
275
  Authorization: y.value,
277
- "Fresh-Booking-Ver": "4.0.56-rc3"
276
+ "Fresh-Booking-Ver": "4.0.56-rc5"
278
277
  }
279
- }).then((s) => {
278
+ }).then((r) => {
280
279
  o.value = !1, M.pay({
281
280
  callback: e,
282
- response: s.data
281
+ response: r.data
283
282
  });
284
283
  }).catch(() => n());
285
284
  });
@@ -292,7 +291,7 @@ const Je = Ge("event", () => {
292
291
  }
293
292
  return {
294
293
  metaData: p,
295
- listingData: g,
294
+ listingData: m,
296
295
  tableBasePrice: Z,
297
296
  availabilityData: t,
298
297
  isLoading: o,
@@ -310,12 +309,12 @@ const Je = Ge("event", () => {
310
309
  phone: L,
311
310
  email: G,
312
311
  remark: W,
313
- isTemplateEvent: ge,
312
+ isTemplateEvent: me,
314
313
  currency: ve,
315
314
  maxNumberOfPeople: ce,
316
315
  title: de,
317
316
  subtitle: pe,
318
- slideshow: me,
317
+ slideshow: ge,
319
318
  date: C,
320
319
  numberOfTotalDays: _,
321
320
  numberOfRooms: fe,
@@ -355,5 +354,5 @@ const Je = Ge("event", () => {
355
354
  };
356
355
  });
357
356
  export {
358
- Je as u
357
+ He as u
359
358
  };
Binary file