@konnectio/core 4.0.56-rc17 → 4.0.56-rc19

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 (39) hide show
  1. package/dist/{ActionField-FHpkuvKb.js → ActionField-SoLtWqv-.js} +1 -1
  2. package/dist/ActionField-SoLtWqv-.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-5cdinrJb.js → AvailabilitySkeleton-vLBEsPhk.js} +3 -3
  4. package/dist/AvailabilitySkeleton-vLBEsPhk.js.br +0 -0
  5. package/dist/{CheckoutWindow-2QBoV8Ux.js → CheckoutWindow-v23Af_0q.js} +1 -1
  6. package/dist/CheckoutWindow-v23Af_0q.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js → DateField.vue_vue_type_style_index_0_lang-HnnQE6ON.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-HnnQE6ON.js.br +0 -0
  9. package/dist/{Field-XgLyezkE.js → Field-59AK0-lw.js} +1 -1
  10. package/dist/Field-59AK0-lw.js.br +0 -0
  11. package/dist/{ThankYou-qlEQeAKd.js → ThankYou-dixbgDbP.js} +874 -865
  12. package/dist/ThankYou-dixbgDbP.js.br +0 -0
  13. package/dist/{_-488L5zGs.js → _-GfE9UQpz.js} +666 -661
  14. package/dist/_-GfE9UQpz.js.br +0 -0
  15. package/dist/availability.js +5 -5
  16. package/dist/availability.js.br +0 -0
  17. package/dist/{event-TnRfky1i.js → event-Cq8-zJpN.js} +43 -43
  18. package/dist/event-Cq8-zJpN.js.br +0 -0
  19. package/dist/event.js +6 -6
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +3 -3
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +5 -5
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +14 -12
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/polyfill.js +96 -96
  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 +1 -1
  32. package/dist/ActionField-FHpkuvKb.js.br +0 -0
  33. package/dist/AvailabilitySkeleton-5cdinrJb.js.br +0 -0
  34. package/dist/CheckoutWindow-2QBoV8Ux.js.br +0 -0
  35. package/dist/DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js.br +0 -0
  36. package/dist/Field-XgLyezkE.js.br +0 -0
  37. package/dist/ThankYou-qlEQeAKd.js.br +0 -0
  38. package/dist/_-488L5zGs.js.br +0 -0
  39. package/dist/event-TnRfky1i.js.br +0 -0
Binary file
@@ -1,9 +1,9 @@
1
- import { k as K, r as c, c as p, o as S, x as G, ac as L, L as U, s as O, B as n, f as Y, m as w, w as D, t as M, p as h, J as N, n as A, C as T, h as H, v as a, P as e, a5 as j, a6 as x, H as u, ab as d, A as s, K as y, y as t, ad as W, a3 as r, a4 as b, a7 as Z, a8 as V, a9 as v } from "./_-488L5zGs.js";
2
- import { H as P, A as f } from "./AvailabilitySkeleton-5cdinrJb.js";
3
- import { u as q } from "./event-TnRfky1i.js";
4
- import { _ as X } from "./DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js";
1
+ import { k as K, r as c, c as p, o as S, x as G, ac as L, L as U, s as O, B as n, f as Y, m as w, w as D, t as M, p as h, J as N, n as A, C as T, h as H, v as a, P as e, a5 as j, a6 as x, H as u, ab as d, A as s, K as y, y as t, ad as W, a3 as r, a4 as b, a7 as Z, a8 as V, a9 as v } from "./_-GfE9UQpz.js";
2
+ import { H as P, A as f } from "./AvailabilitySkeleton-vLBEsPhk.js";
3
+ import { u as q } from "./event-Cq8-zJpN.js";
4
+ import { _ as X } from "./DateField.vue_vue_type_style_index_0_lang-HnnQE6ON.js";
5
5
  import "./_commonjsHelpers-f3sTPFkQ.js";
6
- import "./Field-XgLyezkE.js";
6
+ import "./Field-59AK0-lw.js";
7
7
  const z = /* @__PURE__ */ K({
8
8
  __name: "_",
9
9
  props: {
Binary file
@@ -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 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 "./_-488L5zGs.js";
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 "./_-GfE9UQpz.js";
2
2
  const xe = Ge("event", () => {
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("");
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("");
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), 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(() => {
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(() => {
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, r) {
23
+ function G(e, n, s) {
24
24
  let c = 0;
25
25
  if (o(t.value)) {
26
- const u = t.value.templateCounts[r];
26
+ const u = t.value.templateCounts[s];
27
27
  if (u) {
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;
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;
31
31
  c += qe(f?.price, f?.quantityStrategy, M.value, u.adultPerRoom) * d;
32
32
  }
33
33
  }
34
34
  } else {
35
- const u = g.value[e] || 0;
35
+ const u = m.value[e] || 0;
36
36
  if (u > 0) {
37
- const k = b.value?.products?.find((m) => m.productID === e);
37
+ const k = b.value?.products?.find((g) => g.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 r = 0;
44
+ let s = 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 && (r += G(parseInt(u[1]), e, n));
48
+ parseInt(u[0]) === e && parseInt(u[2]) === n && (s += G(parseInt(u[1]), e, n));
49
49
  }
50
50
  else
51
- for (const c in g.value)
52
- r += G(parseInt(c)) * T.value;
53
- return r;
51
+ for (const c in m.value)
52
+ s += G(parseInt(c)) * T.value;
53
+ return s;
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, r) => e + V(n, r),
58
+ (e, n, s) => e + V(n, s),
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 = g.value;
66
+ const e = m.value;
67
67
  let n = 0;
68
- for (const r in e)
69
- n += Number.isNaN(e[r]) ? 0 : e[r];
68
+ for (const s in e)
69
+ n += Number.isNaN(e[s]) ? 0 : e[s];
70
70
  return n > 0;
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 !== "")));
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 !== "")));
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://stage.hotel-service.konnectio.dk/api/event/metadata", {
78
+ const e = (await C.get("https://production.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-rc17"
84
+ "Fresh-Booking-Ver": "4.0.56-rc19"
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://stage.hotel-service.konnectio.dk/api/event/restaurant-events", {
98
+ const e = (await C.get("https://production.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-rc17"
105
+ "Fresh-Booking-Ver": "4.0.56-rc19"
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://stage.hotel-service.konnectio.dk/api/v3/event/get-availability", {
119
+ const n = (await C.get("https://production.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-rc17"
128
+ "Fresh-Booking-Ver": "4.0.56-rc19"
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://stage.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
145
+ const n = (await C.get("https://production.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-rc17"
155
+ "Fresh-Booking-Ver": "4.0.56-rc19"
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://stage.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
168
+ const e = (await C.get("https://production.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-rc17"
176
+ "Fresh-Booking-Ver": "4.0.56-rc19"
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 r, c, u;
195
+ let s, 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
- }), r = {
215
+ }), s = {
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 g.value) {
223
- const w = g.value[parseInt(d)];
222
+ for (const d in m.value) {
223
+ const w = m.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 m = "https://stage.hotel-service.konnectio.dk/api/v3/event/template-book";
230
+ let g = "https://production.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: re.value,
240
+ giftCardCode: se.value,
241
241
  checkoutUrl: window.location.origin,
242
242
  privacyUrl: window.location.origin
243
243
  };
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, {
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, {
245
245
  headers: {
246
246
  Authorization: I.value,
247
- "Fresh-Booking-Ver": "4.0.56-rc17"
247
+ "Fresh-Booking-Ver": "4.0.56-rc19"
248
248
  }
249
249
  }).then((d) => {
250
- l.value = !1, se.pay({
250
+ l.value = !1, re.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 = {}, g.value = {}, E.value = "", e();
257
+ P.value = {}, m.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: g,
276
+ products: m,
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: ge,
291
- fromDate: me,
290
+ numberOfRooms: me,
291
+ fromDate: ge,
292
292
  getEventData: b,
293
293
  length: fe,
294
294
  templateId: j,
Binary file
package/dist/event.js CHANGED
@@ -1,9 +1,9 @@
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 "./_-488L5zGs.js";
2
- import { B as sl, M as il, R as rl, T as ul, G as dl } from "./ThankYou-qlEQeAKd.js";
3
- import { u as W } from "./event-TnRfky1i.js";
4
- import { A as ml } from "./ActionField-FHpkuvKb.js";
5
- import { P as cl, C as ve, a as pl } from "./CheckoutWindow-2QBoV8Ux.js";
6
- import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.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 "./_-GfE9UQpz.js";
2
+ import { B as sl, M as il, R as rl, T as ul, G as dl } from "./ThankYou-dixbgDbP.js";
3
+ import { u as W } from "./event-Cq8-zJpN.js";
4
+ import { A as ml } from "./ActionField-SoLtWqv-.js";
5
+ import { P as cl, C as ve, a as pl } from "./CheckoutWindow-v23Af_0q.js";
6
+ import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-HnnQE6ON.js";
7
7
  import "./_commonjsHelpers-f3sTPFkQ.js";
8
8
  const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }, hl = { key: 1 }, fl = /* @__PURE__ */ ge({
9
9
  __name: "Event",
package/dist/event.js.br CHANGED
Binary file
@@ -1,6 +1,6 @@
1
- import { k as w, o as h, x as X, n as t, t as o, z as _, v as S, B, s as y, a as V, c as E, m as A, w as m, ab as G, P as c, p as e, J as x, N as k, W as N, a2 as T, y as $, L as I, a3 as z, a4 as D, a7 as M, a8 as P, a9 as U } from "./_-488L5zGs.js";
2
- import { A as F } from "./ActionField-FHpkuvKb.js";
3
- import { F as L } from "./Field-XgLyezkE.js";
1
+ import { k as w, o as h, x as X, n as t, t as o, z as _, v as S, B, s as y, a as V, c as E, m as A, w as m, ab as G, P as c, p as e, J as x, N as k, W as N, a2 as T, y as $, L as I, a3 as z, a4 as D, a7 as M, a8 as P, a9 as U } from "./_-GfE9UQpz.js";
2
+ import { A as F } from "./ActionField-SoLtWqv-.js";
3
+ import { F as L } from "./Field-59AK0-lw.js";
4
4
  import "./_commonjsHelpers-f3sTPFkQ.js";
5
5
  const H = { class: "gift-card-validation-skeleton" }, O = { class: "gift-card-validation-skeleton-form" }, j = { class: "gift-card-validation-skeleton-text" }, R = { class: "gift-card-validation-skeleton-input" }, Z = /* @__PURE__ */ w({
6
6
  __name: "GiftCardValidationSkeleton",
Binary file
package/dist/gift-card.js CHANGED
@@ -1,6 +1,6 @@
1
- import { d as de, u as ue, s as J, c as ne, r as k, ae as U, e as Z, f as C, j as ee, S as Y, i as ce, h as pe, af as me, k as Q, B as ie, b as fe, o as c, m as q, w as B, n as s, x as g, t as i, p as e, C as G, y as _, A as se, I as ve, z as ge, v as re, G as he, H as be, ab as ye, P as ae, ag as j, ah as W, K as ke, Y as Ce, J as T, _ as _e, Z as le, T as H, q as Ve, a3 as we, a4 as Fe, a7 as Pe, a8 as Te, a9 as Se, aa as $e } from "./_-488L5zGs.js";
2
- import { a as Ue, C as Ae, P as Ee, _ as Re } from "./CheckoutWindow-2QBoV8Ux.js";
3
- import { F as x } from "./Field-XgLyezkE.js";
1
+ import { d as de, u as ue, s as J, c as ne, r as k, ae as U, e as Z, f as C, j as ee, S as Y, i as ce, h as pe, af as me, k as Q, B as ie, b as fe, o as c, m as q, w as B, n as s, x as g, t as i, p as e, C as G, y as _, A as se, I as ve, z as ge, v as re, G as he, H as be, ab as ye, P as ae, ag as j, ah as W, K as ke, Y as Ce, J as T, _ as _e, Z as le, T as H, q as Ve, a3 as we, a4 as Fe, a7 as Pe, a8 as Te, a9 as Se, aa as $e } from "./_-GfE9UQpz.js";
2
+ import { a as Ue, C as Ae, P as Ee, _ as Re } from "./CheckoutWindow-v23Af_0q.js";
3
+ import { F as x } from "./Field-59AK0-lw.js";
4
4
  import "./_commonjsHelpers-f3sTPFkQ.js";
5
5
  const te = de("giftCard", () => {
6
6
  const { pay: S } = ue(), { bearerToken: m, metaData: V, currencyId: t } = J(ne()), r = k(U.InitialState), h = Z("konnectio_name", "", void 0, { serializer: Y.string }), d = Z("konnectio_email", "", void 0, { serializer: Y.string }), f = Z("konnectio_phone", "", void 0, { serializer: Y.string }), o = k(""), v = k(1), p = k(!0), L = k(""), y = k({
@@ -36,7 +36,7 @@ const te = de("giftCard", () => {
36
36
  return a;
37
37
  }), D = C(() => !(!h.value || !d.value || !(f.value.length >= 5) || !o.value || A.value === void 0)), O = C(() => !(r.value === U.InitialState && b.value)), K = C(() => !!(r.value === U.WaitingForResponse && b.value));
38
38
  async function I() {
39
- r.value = U.WaitingForResponse, b.value = !0, await ce.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create", {
39
+ r.value = U.WaitingForResponse, b.value = !0, await ce.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
40
40
  termsOfserviceURL: window.location.origin,
41
41
  checkoutUrl: window.location.origin,
42
42
  currencyID: t.value,
@@ -57,7 +57,7 @@ const te = de("giftCard", () => {
57
57
  headers: {
58
58
  Authorization: m.value,
59
59
  Accept: "application/json",
60
- "Fresh-Booking-Ver": "4.0.56-rc17"
60
+ "Fresh-Booking-Ver": "4.0.56-rc19"
61
61
  }
62
62
  }).then((a) => {
63
63
  r.value = U.ReadyToPay, b.value = !1, S({
Binary file
package/dist/hotel.js CHANGED
@@ -1,11 +1,11 @@
1
- import { k as j, B as re, am as ao, s as Q, c as me, D as gt, F as se, o as E, m as R, M as lo, p as s, w as x, ac as Pe, n as y, P as V, a2 as ne, R as Ze, an as uo, x as I, Y as z, K as B, y as P, $ as Fe, ao as ue, t as C, N as K, W as ie, f as q, _ as Ce, a5 as vt, a6 as yt, v as J, r as ce, ap as bt, H as Ge, G as _e, q as kt, C as le, aq as co, X as po, A as Ee, I as _t, l as et, T as oe, z as Y, ar as ho, a4 as fo, ab as mo, a0 as go, L as tt, J as N, a3 as vo, as as Et, at as yo, a7 as bo, a8 as ko, a9 as _o, aa as Eo } from "./_-488L5zGs.js";
2
- import { R as To, B as je, a as Co, S as Io, M as $o, T as So, G as Vo } from "./ThankYou-qlEQeAKd.js";
3
- import { A as Lo, H as Po } from "./AvailabilitySkeleton-5cdinrJb.js";
4
- import { _ as wo } from "./DateField.vue_vue_type_style_index_0_lang-8jh4ShrP.js";
5
- import { C as Ne, P as xo, a as Oo } from "./CheckoutWindow-2QBoV8Ux.js";
1
+ import { k as j, B as re, am as ao, s as Q, c as me, D as gt, F as se, o as E, m as R, M as lo, p as s, w as x, ac as Pe, n as y, P as V, a2 as ne, R as Ze, an as uo, x as I, Y as z, K as B, y as P, $ as Fe, ao as ue, t as C, N as K, W as ie, f as q, _ as Ce, a5 as vt, a6 as yt, v as J, r as ce, ap as bt, H as Ge, G as _e, q as kt, C as le, aq as co, X as po, A as Ee, I as _t, l as et, T as oe, z as Y, ar as ho, a4 as fo, ab as mo, a0 as go, L as tt, J as N, a3 as vo, as as Et, at as yo, a7 as bo, a8 as ko, a9 as _o, aa as Eo } from "./_-GfE9UQpz.js";
2
+ import { R as To, B as je, a as Co, S as Io, M as $o, T as So, G as Vo } from "./ThankYou-dixbgDbP.js";
3
+ import { A as Lo, H as Po } from "./AvailabilitySkeleton-vLBEsPhk.js";
4
+ import { _ as wo } from "./DateField.vue_vue_type_style_index_0_lang-HnnQE6ON.js";
5
+ import { C as Ne, P as xo, a as Oo } from "./CheckoutWindow-v23Af_0q.js";
6
6
  import { c as Tt, g as Ct } from "./_commonjsHelpers-f3sTPFkQ.js";
7
- import "./ActionField-FHpkuvKb.js";
8
- import "./Field-XgLyezkE.js";
7
+ import "./ActionField-SoLtWqv-.js";
8
+ import "./Field-59AK0-lw.js";
9
9
  const Ao = { key: 0 }, Ho = { key: 1 }, we = /* @__PURE__ */ j({
10
10
  __name: "HotelReservationForm",
11
11
  props: {
@@ -447,6 +447,8 @@ const Qo = /* @__PURE__ */ j({
447
447
  layout: s(po).Template,
448
448
  "includes-breakfast": !1,
449
449
  "hide-info-button": !1,
450
+ "to-date": l.toDate,
451
+ "from-date": l.fromDate,
450
452
  "prices-from": n.value
451
453
  }, {
452
454
  description: x(() => [
@@ -475,9 +477,9 @@ const Qo = /* @__PURE__ */ j({
475
477
  }, null, 8, ["modelValue", "title", "template-id", "roomGroups"])
476
478
  ]),
477
479
  _: 1
478
- }, 8, ["listing-id", "name", "description", "gallery", "layout", "prices-from"]));
480
+ }, 8, ["listing-id", "name", "description", "gallery", "layout", "to-date", "from-date", "prices-from"]));
479
481
  }
480
- }), ot = /* @__PURE__ */ J(nn, [["__scopeId", "data-v-28af7ba3"]]), nt = /* @__PURE__ */ j({
482
+ }), ot = /* @__PURE__ */ J(nn, [["__scopeId", "data-v-50501a31"]]), nt = /* @__PURE__ */ j({
481
483
  __name: "TimeField",
482
484
  props: {
483
485
  modelValue: {},
@@ -785,7 +787,7 @@ const Qo = /* @__PURE__ */ j({
785
787
  ])
786
788
  ]));
787
789
  }
788
- }), $n = /* @__PURE__ */ J(In, [["__scopeId", "data-v-49e83cbb"]]), Sn = (o) => (vt("data-v-55cda648"), o = o(), yt(), o), Vn = { id: "booking-availability-container" }, Ln = { id: "booking-availability-controls" };
790
+ }), $n = /* @__PURE__ */ J(In, [["__scopeId", "data-v-49e83cbb"]]), Sn = (o) => (vt("data-v-afbc33cb"), o = o(), yt(), o), Vn = { id: "booking-availability-container" }, Ln = { id: "booking-availability-controls" };
789
791
  const Pn = { key: 1 }, wn = { key: 0 }, xn = {
790
792
  key: 0,
791
793
  id: "booking-availability-packages"
@@ -1008,7 +1010,7 @@ const Qn = { class: "fresh-booking-event-addons-price" }, Jn = { key: 1 }, Xn =
1008
1010
  s(A).specialTemplates.length > 0 && O.onlyShow !== "rooms" ? (E(), I("div", Rn, [
1009
1011
  O.onlyShow !== "packages" ? (E(), I("h2", Bn, [
1010
1012
  C(K, {
1011
- icon: "box",
1013
+ icon: "sparkles",
1012
1014
  type: "fal",
1013
1015
  color: "header"
1014
1016
  }),
@@ -1393,7 +1395,7 @@ const Qn = { class: "fresh-booking-event-addons-price" }, Jn = { key: 1 }, Xn =
1393
1395
  _: 1
1394
1396
  }, 8, ["styling"]));
1395
1397
  }
1396
- }), ge = /* @__PURE__ */ J(ri, [["__scopeId", "data-v-55cda648"]]);
1398
+ }), ge = /* @__PURE__ */ J(ri, [["__scopeId", "data-v-afbc33cb"]]);
1397
1399
  var It = { exports: {} }, xe = { exports: {} }, Oe = { exports: {} }, it;
1398
1400
  function Ye() {
1399
1401
  return it || (it = 1, function(o) {
package/dist/hotel.js.br CHANGED
Binary file