@konnectio/core 4.0.56-rc8 → 4.0.56-rc9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{ActionField-na8McB-H.js → ActionField-DQVEiApH.js} +1 -1
  2. package/dist/ActionField-DQVEiApH.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-1_yLVsq6.js → AvailabilitySkeleton-AtpMBpH9.js} +4 -4
  4. package/dist/AvailabilitySkeleton-AtpMBpH9.js.br +0 -0
  5. package/dist/{CheckoutWindow-r6ch1iOr.js → CheckoutWindow-qWcuhbC0.js} +1 -1
  6. package/dist/CheckoutWindow-qWcuhbC0.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js → DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js.br +0 -0
  9. package/dist/{Field-S_yxW5IQ.js → Field-LwXPzaNj.js} +2 -2
  10. package/dist/Field-LwXPzaNj.js.br +0 -0
  11. package/dist/{SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js → SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js} +8 -8
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js.br +0 -0
  13. package/dist/{ThankYou-ekf_1AWY.js → ThankYou-GZubLuct.js} +4 -4
  14. package/dist/ThankYou-GZubLuct.js.br +0 -0
  15. package/dist/{_-vErl-x3v.js → _-STnzfLhe.js} +1 -1
  16. package/dist/availability.js +29 -32
  17. package/dist/availability.js.br +0 -0
  18. package/dist/{event-iDLUEMAV.js → event-lcXN-Fd1.js} +7 -7
  19. package/dist/event-lcXN-Fd1.js.br +0 -0
  20. package/dist/event.js +7 -7
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +2 -2
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +73 -76
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/{hotel-4O89o7V2.js → hotel-NNMyLNPa.js} +8 -11
  27. package/dist/hotel-NNMyLNPa.js.br +0 -0
  28. package/dist/hotel.js +9 -9
  29. package/dist/polyfill.js +1 -1
  30. package/dist/polyfill.js.br +0 -0
  31. package/package.json +7 -2
  32. package/dist/ActionField-na8McB-H.js.br +0 -0
  33. package/dist/AvailabilitySkeleton-1_yLVsq6.js.br +0 -0
  34. package/dist/CheckoutWindow-r6ch1iOr.js.br +0 -0
  35. package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js.br +0 -0
  36. package/dist/Field-S_yxW5IQ.js.br +0 -0
  37. package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js.br +0 -0
  38. package/dist/ThankYou-ekf_1AWY.js.br +0 -0
  39. package/dist/event-iDLUEMAV.js.br +0 -0
  40. package/dist/favicon.ico +0 -0
  41. package/dist/hotel-4O89o7V2.js.br +0 -0
@@ -1,4 +1,4 @@
1
- import { k as c, v as V, f as m, o as d, m as i, w as v, x as q, y as g, z as t, A as k, T as B, p as I, C, I as A, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
1
+ import { k as c, v as V, f as m, o as d, m as i, w as v, x as q, y as g, z as t, A as k, T as B, p as I, C, I as A, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
2
  const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
3
3
  __name: "ActionField",
4
4
  props: {
Binary file
@@ -1,7 +1,7 @@
1
- import { k as N, B as j, s as V, W as B, X as R, c as J, r as K, f as m, Y as C, Z as P, o as t, l as s, x as A, z as e, p as i, G as y, y as Q, n as v, $ as F, m as w, T as H, A as E, C as I, q as x, h as ee, _ as O } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { _ as ae } from "./DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js";
3
- import { E as z } from "./_-vErl-x3v.js";
4
- import { F as p } from "./Field-S_yxW5IQ.js";
1
+ import { k as N, B as j, s as V, W as B, X as R, c as J, r as K, f as m, Y as C, Z as P, o as t, l as s, x as A, z as e, p as i, G as y, y as Q, n as v, $ as F, m as w, T as H, A as E, C as I, q as x, h as ee, _ as O } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import { _ as ae } from "./DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js";
3
+ import { E as z } from "./_-STnzfLhe.js";
4
+ import { F as p } from "./Field-LwXPzaNj.js";
5
5
  const le = {
6
6
  key: 0,
7
7
  class: "konnectio-availability-location"
@@ -1,4 +1,4 @@
1
- import { k as b, v as k, r as V, Z as $, o as p, m as B, w as I, x as d, p as C, z as i, T as P, I as T, _ as v, ai as A, q as h, aj as _, ak as w, l as g, F as u, n as q, B as N, a8 as f, s as F, c as G, al as j, P as z, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
1
+ import { k as b, v as k, r as V, Z as $, o as p, m as B, w as I, x as d, p as C, z as i, T as P, I as T, _ as v, ai as A, q as h, aj as _, ak as w, l as g, F as u, n as q, B as N, a8 as f, s as F, c as G, al as j, P as z, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
2
  const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
3
3
  __name: "PhoneField",
4
4
  props: {
@@ -1,4 +1,4 @@
1
- import { az as ya, r as ee, k as ze, aE as jt, aW as Aa, Z as nt, ay as Et, f as L, aU as yr, Y as Ft, o as A, l as V, p as lt, a0 as rt, a6 as Ee, w as be, aN as at, aM as Le, ac as se, z as y, ai as Ge, G as Hr, ad as na, n as Q, aS as rl, q as Ae, aB as nl, aX as Wr, ak as ge, x as pe, m as Me, L as Ne, $ as ke, aj as ft, F as Xe, aY as gr, a8 as xt, aZ as ll, ag as Pa, ah as xa, a_ as ol, a$ as il, v as ul, h as sl, I as dl } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
1
+ import { az as ya, r as ee, k as ze, aE as jt, aW as Aa, Z as nt, ay as Et, f as L, aU as yr, Y as Ft, o as A, l as V, p as lt, a0 as rt, a6 as Ee, w as be, aN as at, aM as Le, ac as se, z as y, ai as Ge, G as Hr, ad as na, n as Q, aS as rl, q as Ae, aB as nl, aX as Wr, ak as ge, x as pe, m as Me, L as Ne, $ as ke, aj as ft, F as Xe, aY as gr, a8 as xt, aZ as ll, ag as Pa, ah as xa, a_ as ol, a$ as il, v as ul, h as sl, I as dl } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
2
  function dt(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -1,5 +1,5 @@
1
- import { k as l, o as a, l as o, m as n, n as i, p as s, q as r, _ as d } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { E as t } from "./_-vErl-x3v.js";
1
+ import { k as l, o as a, l as o, m as n, n as i, p as s, q as r, _ as d } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import { E as t } from "./_-STnzfLhe.js";
3
3
  const p = {
4
4
  key: 0,
5
5
  class: "skeleton-field-label"
Binary file
@@ -15449,7 +15449,7 @@ const cw = Pi("applyGiftCard", () => {
15449
15449
  headers: {
15450
15450
  Authorization: t.value,
15451
15451
  Accept: "application/json",
15452
- "Fresh-Booking-Ver": "4.0.56-rc8"
15452
+ "Fresh-Booking-Ver": "4.0.56-rc9"
15453
15453
  }
15454
15454
  }).then((d) => {
15455
15455
  const {
@@ -15727,7 +15727,7 @@ const cw = Pi("applyGiftCard", () => {
15727
15727
  headers: {
15728
15728
  Authorization: y.value,
15729
15729
  Accept: "application/json",
15730
- "Fresh-Booking-Ver": "4.0.56-rc8"
15730
+ "Fresh-Booking-Ver": "4.0.56-rc9"
15731
15731
  }
15732
15732
  })).data;
15733
15733
  p.value = Te;
@@ -15755,7 +15755,7 @@ const cw = Pi("applyGiftCard", () => {
15755
15755
  headers: {
15756
15756
  Authorization: y.value,
15757
15757
  Accept: "application/json",
15758
- "Konnectio-Ver": "4.0.56-rc8"
15758
+ "Konnectio-Ver": "4.0.56-rc9"
15759
15759
  }
15760
15760
  });
15761
15761
  Le.status !== 200 ? i({
@@ -15843,7 +15843,7 @@ const cw = Pi("applyGiftCard", () => {
15843
15843
  headers: {
15844
15844
  Authorization: y.value,
15845
15845
  Accept: "application/json",
15846
- "Konnectio-Ver": "4.0.56-rc8"
15846
+ "Konnectio-Ver": "4.0.56-rc9"
15847
15847
  }
15848
15848
  }).then((Te) => {
15849
15849
  Bt.value = !1;
@@ -15871,7 +15871,7 @@ const cw = Pi("applyGiftCard", () => {
15871
15871
  headers: {
15872
15872
  Authorization: y.value,
15873
15873
  Accept: "application/json",
15874
- "Konnectio-Ver": "4.0.56-rc8"
15874
+ "Konnectio-Ver": "4.0.56-rc9"
15875
15875
  }
15876
15876
  }).then((Le) => {
15877
15877
  L.value = !1, A.value = !1, t.pay({
@@ -16286,7 +16286,7 @@ const gw = Pi("recaptcha", () => {
16286
16286
  (await fi.post("https://production.hotel-service.konnectio.dk/api/utility/verify-recaptcha", { token: a }, {
16287
16287
  headers: {
16288
16288
  Authorization: e.bearerToken,
16289
- "Konnectio-Core-Ver": "4.0.56-rc8"
16289
+ "Konnectio-Core-Ver": "4.0.56-rc9"
16290
16290
  }
16291
16291
  })).data.success === !0 && o();
16292
16292
  else
@@ -16319,7 +16319,7 @@ const gw = Pi("recaptcha", () => {
16319
16319
  headers: {
16320
16320
  Authorization: G.value,
16321
16321
  Accept: "application/json",
16322
- "Fresh-Booking-Ver": "4.0.56-rc8"
16322
+ "Fresh-Booking-Ver": "4.0.56-rc9"
16323
16323
  }
16324
16324
  })).data;
16325
16325
  a.value = q, q.hotelId && (isNaN(o.value) ? o.value = q.hotelId : o.value !== q.hotelId && (r(), o.value = q.hotelId), isNaN(n.value) && q.hotelId && (n.value = q.hotelId));
@@ -16336,7 +16336,7 @@ const gw = Pi("recaptcha", () => {
16336
16336
  headers: {
16337
16337
  Authorization: G.value,
16338
16338
  Accept: "application/json",
16339
- "Fresh-Booking-Ver": "4.0.56-rc8"
16339
+ "Fresh-Booking-Ver": "4.0.56-rc9"
16340
16340
  }
16341
16341
  }).then((U) => {
16342
16342
  const { settings: q, translations: te } = U.data;
@@ -1,8 +1,8 @@
1
- import { P as yi, Q as bi, k as le, ay as en, o as O, m as de, aL as ka, au as Ye, l as C, x as _, $ as ge, ac as re, n as $, aj as We, q as ue, ak as Ma, w as ae, p as Z, ai as Zr, aM as Na, aN as Da, r as X, U as za, aB as yt, F as N, aO as La, an as ja, aP as $a, aQ as Fa, Z as dt, aR as Ba, ao as Ha, Y as De, f as ve, ag as Ie, ah as At, ad as Wn, aS as Va, H as kt, z as E, _ as Se, a6 as Pe, aA as Wa, aT as Gn, aI as Jr, az as Ga, aU as Ua, a5 as Rn, B as ht, c as bn, L as it, J as ye, aJ as qe, s as ze, X as tn, aV as Ya, a as lr, aE as Xa, G as ur, u as Ka, K as Za } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
1
+ import { P as yi, Q as bi, k as le, ay as en, o as O, m as de, aL as ka, au as Ye, l as C, x as _, $ as ge, ac as re, n as $, aj as We, q as ue, ak as Ma, w as ae, p as Z, ai as Zr, aM as Na, aN as Da, r as X, U as za, aB as yt, F as N, aO as La, an as ja, aP as $a, aQ as Fa, Z as dt, aR as Ba, ao as Ha, Y as De, f as ve, ag as Ie, ah as At, ad as Wn, aS as Va, H as kt, z as E, _ as Se, a6 as Pe, aA as Wa, aT as Gn, aI as Jr, az as Ga, aU as Ua, a5 as Rn, B as ht, c as bn, L as it, J as ye, aJ as qe, s as ze, X as tn, aV as Ya, a as lr, aE as Xa, G as ur, u as Ka, K as Za } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
2
  import { a as Ja, c as Qa, g as qa } from "./_commonjsHelpers-2ufMB8rV.js";
3
- import { A as cr } from "./ActionField-na8McB-H.js";
4
- import { _ as es } from "./CheckoutWindow-r6ch1iOr.js";
5
- import { E as Ce } from "./_-vErl-x3v.js";
3
+ import { A as cr } from "./ActionField-DQVEiApH.js";
4
+ import { _ as es } from "./CheckoutWindow-qWcuhbC0.js";
5
+ import { E as Ce } from "./_-STnzfLhe.js";
6
6
  const ts = ["top", "right", "bottom", "left"], fr = ["start", "end"], dr = /* @__PURE__ */ ts.reduce((i, r) => i.concat(r, r + "-" + fr[0], r + "-" + fr[1]), []), Mt = Math.min, He = Math.max, ns = {
7
7
  left: "right",
8
8
  right: "left",
Binary file
@@ -1,4 +1,4 @@
1
- import { k as a, t as s, o as t, l as o, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
1
+ import { k as a, t as s, o as t, l as o, _ as r } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
2
  const d = { class: "placeholder" }, _ = /* @__PURE__ */ a({
3
3
  __name: "_",
4
4
  props: {
@@ -1,23 +1,23 @@
1
- import { k as U, r as c, c as p, o as k, l as G, ac as L, L as K, s as O, B as n, f as Y, m as w, w as D, p as M, z as h, G as N, x as A, C as T, h as H, _ as s, F as e, P as j, Q as x, Z as u, D as d, q as a, $ as y, n as t, ad as W, M as r, N as b, R as Z, U as V, V as v } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { H as P, A as f } from "./AvailabilitySkeleton-1_yLVsq6.js";
3
- import { u as q } from "./event-iDLUEMAV.js";
4
- import { _ as X } from "./DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js";
1
+ import { k as U, r as c, c as p, o as k, l as G, ac as L, L as K, s as O, B as n, f as Y, m as w, w as D, p as M, z as h, G as N, x as A, C as T, h as H, _ as s, F as e, P as j, Q as x, Z as u, D as d, q as a, $ as y, n as t, ad as W, M as r, N as b, R as Z, U as V, V as v } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import { H as P, A as f } from "./AvailabilitySkeleton-AtpMBpH9.js";
3
+ import { u as q } from "./event-lcXN-Fd1.js";
4
+ import { _ as X } from "./DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js";
5
5
  import "./_commonjsHelpers-2ufMB8rV.js";
6
- import "./_-vErl-x3v.js";
7
- import "./Field-S_yxW5IQ.js";
6
+ import "./_-STnzfLhe.js";
7
+ import "./Field-LwXPzaNj.js";
8
8
  const z = /* @__PURE__ */ U({
9
9
  __name: "_",
10
10
  props: {
11
11
  type: { default: "submit" }
12
12
  },
13
13
  emits: ["submit"],
14
- setup(I, { emit: E }) {
15
- const C = c(!1), B = E, R = I, { verifyRecaptcha: J } = p();
14
+ setup(I, { emit: C }) {
15
+ const E = c(!1), B = C, R = I, { verifyRecaptcha: J } = p();
16
16
  function o() {
17
- C.value = !0, J({
17
+ E.value = !0, J({
18
18
  callback: S,
19
19
  type: R.type
20
- }).then(() => C.value = !1);
20
+ }).then(() => E.value = !1);
21
21
  }
22
22
  function S() {
23
23
  B("submit");
@@ -25,7 +25,7 @@ const z = /* @__PURE__ */ U({
25
25
  return (g, Q) => (k(), G("form", {
26
26
  onSubmit: K(o, ["prevent"])
27
27
  }, [
28
- L(g.$slots, "default", { isLoading: C.value })
28
+ L(g.$slots, "default", { isLoading: E.value })
29
29
  ], 32));
30
30
  }
31
31
  }), _ = { class: "konnectio-search-button" }, $ = /* @__PURE__ */ U({
@@ -34,13 +34,13 @@ const z = /* @__PURE__ */ U({
34
34
  link: {}
35
35
  },
36
36
  setup(I) {
37
- const E = I, { searchDate: C } = O(q()), { t: B } = n(), R = Y(() => typeof E.link != "string");
37
+ const C = I, { searchDate: E } = O(q()), { t: B } = n(), R = Y(() => typeof C.link != "string");
38
38
  function J() {
39
39
  if (R.value) {
40
40
  const o = H();
41
- E.link[o] ? window.location.replace(E.link[o]) : E.link.en && window.location.replace(E.link.en);
41
+ C.link[o] ? window.location.replace(C.link[o]) : C.link.en && window.location.replace(C.link.en);
42
42
  } else
43
- window.location.replace(E.link);
43
+ window.location.replace(C.link);
44
44
  }
45
45
  return (o, S) => (k(), w(z, {
46
46
  id: "konnectio-event-search-form",
@@ -49,8 +49,8 @@ const z = /* @__PURE__ */ U({
49
49
  }, {
50
50
  default: D(({ isLoading: g }) => [
51
51
  M(X, {
52
- modelValue: h(C),
53
- "onUpdate:modelValue": S[0] || (S[0] = (Q) => N(C) ? C.value = Q : null),
52
+ modelValue: h(E),
53
+ "onUpdate:modelValue": S[0] || (S[0] = (Q) => N(E) ? E.value = Q : null),
54
54
  label: h(B)("event.selectDate"),
55
55
  "icon-type": "fas",
56
56
  "icon-placement": "label",
@@ -81,14 +81,14 @@ const z = /* @__PURE__ */ U({
81
81
  description: {}
82
82
  },
83
83
  setup(I) {
84
- return (E, C) => (k(), G("div", CA, [
84
+ return (C, E) => (k(), G("div", CA, [
85
85
  QA,
86
86
  A("h3", gA, [
87
- A("span", null, e(E.title), 1)
87
+ A("span", null, e(C.title), 1)
88
88
  ]),
89
89
  A("p", {
90
90
  class: "konnectio-notice-description",
91
- innerHTML: E.description
91
+ innerHTML: C.description
92
92
  }, null, 8, IA),
93
93
  BA
94
94
  ]));
@@ -106,9 +106,9 @@ const z = /* @__PURE__ */ U({
106
106
  styling: {}
107
107
  },
108
108
  setup(I) {
109
- const { t: E } = n(), C = I, B = c(), R = Y(() => C.hotelLink || C.eventLink), J = Y(() => C.hotelLink && C.eventLink), o = Y(() => B.value === "hotel"), S = Y(() => B.value === "event"), g = (Q) => B.value = Q;
109
+ const { t: C } = n(), E = I, B = c(), R = Y(() => E.hotelLink || E.eventLink), J = Y(() => E.hotelLink && E.eventLink), o = Y(() => B.value === "hotel"), S = Y(() => B.value === "event"), g = (Q) => B.value = Q;
110
110
  return u(() => {
111
- !C.hotelLink && C.eventLink ? B.value = "event" : B.value = "hotel";
111
+ !E.hotelLink && E.eventLink ? B.value = "event" : B.value = "hotel";
112
112
  }), (Q, i) => (k(), w(b, { styling: Q.styling }, {
113
113
  default: D(() => [
114
114
  R.value ? (k(), w(d, { key: 0 }, {
@@ -128,7 +128,7 @@ const z = /* @__PURE__ */ U({
128
128
  class: a({ active: o.value }),
129
129
  onClick: i[0] || (i[0] = K((m) => g("hotel"), ["prevent"]))
130
130
  }, [
131
- A("span", null, e(h(E)("availability.hotel")), 1)
131
+ A("span", null, e(h(C)("availability.hotel")), 1)
132
132
  ], 2)
133
133
  ]),
134
134
  A("li", null, [
@@ -136,7 +136,7 @@ const z = /* @__PURE__ */ U({
136
136
  class: a({ active: S.value }),
137
137
  onClick: i[1] || (i[1] = K((m) => g("event"), ["prevent"]))
138
138
  }, [
139
- A("span", null, e(h(E)("availability.events")), 1)
139
+ A("span", null, e(h(C)("availability.events")), 1)
140
140
  ], 2)
141
141
  ])
142
142
  ])
@@ -192,22 +192,19 @@ class hA extends HTMLElement {
192
192
  super();
193
193
  }
194
194
  connectedCallback() {
195
- const E = typeof l == "function" ? l.options : l;
196
- let C = Array.isArray(E.props) ? E.props : Object.keys(E.props || {});
197
- console.log(E);
195
+ const C = typeof l == "function" ? l.options : l;
196
+ let E = Array.isArray(C.props) ? C.props : Object.keys(C.props || {});
198
197
  const B = (g) => g.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (Q, i) => (i ? "-" : "") + Q.toLowerCase()), R = {};
199
- C = C.map(B);
198
+ E = E.map(B);
200
199
  const J = {};
201
200
  for (const g of this.attributes) {
202
201
  const Q = g.name, i = Q.split(".");
203
202
  console.log(Q, i.length), i.length > 1 && (J[i[0]] || (J[i[0]] = {}), J[i[0]][i[1]] = g.value);
204
203
  }
205
- console.log(J);
206
- for (const g of C) {
204
+ console.log(J), console.log(E);
205
+ for (const g of E) {
207
206
  let Q = this.attributes.getNamedItem(g)?.value;
208
- if (J.hasOwnProperty(g) && (Q = J[g]), !Q)
209
- break;
210
- R[g] = Q;
207
+ J.hasOwnProperty(g) && (Q = J[g]), console.log(Q, g), R[g] = Q;
211
208
  }
212
209
  const o = V(l, R);
213
210
  o.use(v), o.use(wA);
Binary file
@@ -1,4 +1,4 @@
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-K94DVjrE.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 "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
2
  const xe = Ge("event", () => {
3
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) {
@@ -81,7 +81,7 @@ const xe = Ge("event", () => {
81
81
  },
82
82
  headers: {
83
83
  Authorization: I.value,
84
- "Fresh-Booking-Ver": "4.0.56-rc8"
84
+ "Fresh-Booking-Ver": "4.0.56-rc9"
85
85
  }
86
86
  })).data;
87
87
  p.value = e, Z();
@@ -102,7 +102,7 @@ const xe = Ge("event", () => {
102
102
  },
103
103
  headers: {
104
104
  Authorization: I.value,
105
- "Fresh-Booking-Ver": "4.0.56-rc8"
105
+ "Fresh-Booking-Ver": "4.0.56-rc9"
106
106
  }
107
107
  })).data;
108
108
  y.value = e, l.value = !1;
@@ -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-rc8"
128
+ "Fresh-Booking-Ver": "4.0.56-rc9"
129
129
  }
130
130
  })).data;
131
131
  n.templateCounts.length === 0 ? h({
@@ -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-rc8"
155
+ "Fresh-Booking-Ver": "4.0.56-rc9"
156
156
  }
157
157
  })).data;
158
158
  t.value = n, l.value = !1, e();
@@ -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-rc8"
176
+ "Fresh-Booking-Ver": "4.0.56-rc9"
177
177
  }
178
178
  })).data;
179
179
  console.log(e);
@@ -244,7 +244,7 @@ const xe = Ge("event", () => {
244
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-rc8"
247
+ "Fresh-Booking-Ver": "4.0.56-rc9"
248
248
  }
249
249
  }).then((d) => {
250
250
  l.value = !1, re.pay({
Binary file
package/dist/event.js CHANGED
@@ -1,11 +1,11 @@
1
- import { k as ge, B as he, b as ze, s as j, c as fe, r as He, f as Qe, o as a, m as g, a0 as Ye, w as b, x as l, p as r, H as k, F as n, z as e, a1 as je, a2 as ie, l as i, a3 as re, n as u, a4 as Je, J as C, a5 as Ke, _ as ke, Z as We, Y as Ze, G as A, $ as E, a6 as B, 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-K94DVjrE.js";
2
- import { B as sl, M as il, R as rl, T as ul, V as dl } from "./ThankYou-ekf_1AWY.js";
3
- import { u as J } from "./event-iDLUEMAV.js";
4
- import { A as ml } from "./ActionField-na8McB-H.js";
5
- import { P as cl, C as ve, a as pl } from "./CheckoutWindow-r6ch1iOr.js";
6
- import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js";
1
+ import { k as ge, B as he, b as ze, s as j, c as fe, r as He, f as Qe, o as a, m as g, a0 as Ye, w as b, x as l, p as r, H as k, F as n, z as e, a1 as je, a2 as ie, l as i, a3 as re, n as u, a4 as Je, J as C, a5 as Ke, _ as ke, Z as We, Y as Ze, G as A, $ as E, a6 as B, 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-nQBJ2nvj.js";
2
+ import { B as sl, M as il, R as rl, T as ul, V as dl } from "./ThankYou-GZubLuct.js";
3
+ import { u as J } from "./event-lcXN-Fd1.js";
4
+ import { A as ml } from "./ActionField-DQVEiApH.js";
5
+ import { P as cl, C as ve, a as pl } from "./CheckoutWindow-qWcuhbC0.js";
6
+ import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js";
7
7
  import "./_commonjsHelpers-2ufMB8rV.js";
8
- import "./_-vErl-x3v.js";
8
+ import "./_-STnzfLhe.js";
9
9
  const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }, hl = { key: 1 }, fl = /* @__PURE__ */ ge({
10
10
  __name: "Event",
11
11
  props: {
package/dist/event.js.br CHANGED
Binary file
@@ -1,5 +1,5 @@
1
- import { k as w, B as A, s as k, a as V, c as S, o as b, m as _, w as m, D as X, p, x as t, F as s, z as a, G as v, l as I, H as y, J as x, K as B, n as N, L as T, M as D, N as E, P as M, Q as G, _ as H, R as U, U as P, V as R } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { A as $ } from "./ActionField-na8McB-H.js";
1
+ import { k as w, B as A, s as k, a as V, c as S, o as b, m as _, w as m, D as X, p, x as t, F as s, z as a, G as v, l as I, H as y, J as x, K as B, n as N, L as T, M as D, N as E, P as M, Q as G, _ as H, R as U, U as P, V as R } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import { A as $ } from "./ActionField-DQVEiApH.js";
3
3
  import "./_commonjsHelpers-2ufMB8rV.js";
4
4
  const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z = {
5
5
  key: 0,
Binary file
package/dist/gift-card.js CHANGED
@@ -1,14 +1,14 @@
1
- import { d as ue, u as ce, s as J, c as ie, r as C, ae as U, e as K, f as _, j as ee, S as Y, i as pe, h as me, af as fe, k as Q, B as se, b as ve, o as c, m as L, w as G, x as s, l as b, p as n, z as e, C as z, n as T, q as re, I as ge, _ as de, Y as be, Z as he, D as ye, F as ae, ag as j, ah as N, $ as ke, a6 as Ce, G as k, y as _e, a7 as le, T as W, A as Ve, M as Fe, N as we, R as Pe, U as Te, V as Se, ab as $e } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { a as Ue, C as te, P as Ee, _ as Re } from "./CheckoutWindow-r6ch1iOr.js";
3
- import { E as Ie } from "./_-vErl-x3v.js";
4
- import { F as x } from "./Field-S_yxW5IQ.js";
1
+ import { d as ue, u as ce, s as J, c as ie, r as _, ae as U, e as K, f as V, j as ee, S as Y, i as pe, h as me, af as fe, k as Q, B as se, b as ve, o as c, m as L, w as G, x as r, l as b, p as n, z as e, C as z, n as T, q as re, I as ge, _ as de, Y as be, Z as he, D as ye, F as ae, ag as j, ah as N, $ as ke, a6 as Ce, G as C, y as _e, a7 as le, T as W, A as Ve, M as Fe, N as we, R as Pe, U as Te, V as Se, ab as $e } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import { a as Ue, C as te, P as Ee, _ as Re } from "./CheckoutWindow-qWcuhbC0.js";
3
+ import { E as Ie } from "./_-STnzfLhe.js";
4
+ import { F as x } from "./Field-LwXPzaNj.js";
5
5
  import "./_commonjsHelpers-2ufMB8rV.js";
6
6
  const oe = ue("giftCard", () => {
7
- const { pay: S } = ce(), { bearerToken: f, metaData: V, currencyId: t } = J(ie()), i = C(U.InitialState), v = K("konnectio_name", "", void 0, { serializer: Y.string }), d = K("konnectio_email", "", void 0, { serializer: Y.string }), g = K("konnectio_phone", "", void 0, { serializer: Y.string }), r = C(""), p = C(1), m = C(!0), A = C(""), y = C({
7
+ const { pay: S } = ce(), { bearerToken: f, metaData: y, currencyId: t } = J(ie()), i = _(U.InitialState), v = K("konnectio_name", "", void 0, { serializer: Y.string }), d = K("konnectio_email", "", void 0, { serializer: Y.string }), g = K("konnectio_phone", "", void 0, { serializer: Y.string }), s = _(""), p = _(1), m = _(!0), A = _(""), k = _({
8
8
  base64: "",
9
9
  type: "",
10
10
  name: ""
11
- }), l = C(void 0), u = C(0), h = C(!1), R = C(0), F = _(() => i.value === U.InitialState || i.value === U.WaitingForResponse), I = _(() => i.value === U.ReadyToPay), M = _(() => i.value === U.PaymentSuccess), w = _(() => {
11
+ }), l = _(void 0), u = _(0), h = _(!1), R = _(0), F = V(() => i.value === U.InitialState || i.value === U.WaitingForResponse), I = V(() => i.value === U.ReadyToPay), M = V(() => i.value === U.PaymentSuccess), w = V(() => {
12
12
  const a = {
13
13
  1: {
14
14
  label: ee.t("giftCard.hotelType"),
@@ -18,13 +18,13 @@ const oe = ue("giftCard", () => {
18
18
  label: ee.t("giftCard.restaurantType"),
19
19
  data: []
20
20
  }
21
- }, $ = V.value.hotels[0].places;
21
+ }, $ = y.value.hotels[0].places;
22
22
  return $ && $.forEach((P) => {
23
23
  a[P.placeType].data.push(P);
24
24
  }), Object.fromEntries(
25
25
  Object.entries(a).filter(([, P]) => P.data.length > 0)
26
26
  );
27
- }), B = _(() => R.value !== 0), E = _(() => {
27
+ }), B = V(() => R.value !== 0), E = V(() => {
28
28
  let a;
29
29
  if (B.value)
30
30
  a = w.value[R.value].data[0];
@@ -35,30 +35,30 @@ const oe = ue("giftCard", () => {
35
35
  });
36
36
  }
37
37
  return a;
38
- }), D = _(() => !(!v.value || !d.value || !(g.value.length >= 5) || !r.value || E.value === void 0)), H = _(() => !(i.value === U.InitialState && h.value)), Z = _(() => !!(i.value === U.WaitingForResponse && h.value));
38
+ }), D = V(() => !(!v.value || !d.value || !(g.value.length >= 5) || !s.value || E.value === void 0)), H = V(() => !(i.value === U.InitialState && h.value)), Z = V(() => !!(i.value === U.WaitingForResponse && h.value));
39
39
  async function q() {
40
40
  i.value = U.WaitingForResponse, h.value = !0, await pe.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
41
41
  termsOfserviceURL: window.location.origin,
42
42
  checkoutUrl: window.location.origin,
43
43
  currencyID: t.value,
44
44
  language: me(),
45
- amount: r.value,
45
+ amount: s.value,
46
46
  quantity: p.value,
47
47
  freeText: A.value,
48
48
  showPrice: m.value,
49
49
  contactName: v.value,
50
50
  contactEmail: d.value,
51
51
  contactPhone: g.value,
52
- imageBase64: fe(y.value.base64),
53
- imageName: y.value.name,
54
- imageFormat: y.value.type,
52
+ imageBase64: fe(k.value.base64),
53
+ imageName: k.value.name,
54
+ imageFormat: k.value.type,
55
55
  placeType: E.value ? E.value.placeType : void 0,
56
56
  placeID: E.value ? E.value.id : void 0
57
57
  }, {
58
58
  headers: {
59
59
  Authorization: f.value,
60
60
  Accept: "application/json",
61
- "Fresh-Booking-Ver": "4.0.56-rc8"
61
+ "Fresh-Booking-Ver": "4.0.56-rc9"
62
62
  }
63
63
  }).then((a) => {
64
64
  i.value = U.ReadyToPay, h.value = !1, S({
@@ -76,11 +76,11 @@ const oe = ue("giftCard", () => {
76
76
  name: v,
77
77
  email: d,
78
78
  phone: g,
79
- value: r,
79
+ value: s,
80
80
  remark: A,
81
81
  showValue: m,
82
82
  quantity: p,
83
- media: y,
83
+ media: k,
84
84
  placeId: l,
85
85
  placeType: u,
86
86
  showFormPage: F,
@@ -105,12 +105,12 @@ const oe = ue("giftCard", () => {
105
105
  },
106
106
  emits: ["update:modelValue"],
107
107
  setup(S, { emit: f }) {
108
- const V = f, t = S, { t: i } = se(), { display: v } = ve(), d = C(), g = _(() => t.modelValue.base64 !== "");
109
- function r(l) {
110
- V("update:modelValue", l);
108
+ const y = f, t = S, { t: i } = se(), { display: v } = ve(), d = _(), g = V(() => t.modelValue.base64 !== "");
109
+ function s(l) {
110
+ y("update:modelValue", l);
111
111
  }
112
112
  function p() {
113
- r({
113
+ s({
114
114
  base64: "",
115
115
  name: "",
116
116
  type: ""
@@ -132,9 +132,9 @@ const oe = ue("giftCard", () => {
132
132
  });
133
133
  }, F.readAsDataURL(l);
134
134
  }
135
- async function y() {
135
+ async function k() {
136
136
  let l;
137
- (l = d.value.files) instanceof FileList && A(l[0], r);
137
+ (l = d.value.files) instanceof FileList && A(l[0], s);
138
138
  }
139
139
  return (l, u) => (c(), L(ge, {
140
140
  label: l.label,
@@ -142,18 +142,18 @@ const oe = ue("giftCard", () => {
142
142
  type: "media"
143
143
  }, {
144
144
  default: G(() => [
145
- s("div", qe, [
146
- s("input", {
145
+ r("div", qe, [
146
+ r("input", {
147
147
  ref_key: "fileInput",
148
148
  ref: d,
149
149
  type: "file",
150
150
  class: "hidden",
151
151
  accept: l.validation,
152
152
  single: "",
153
- onChange: u[0] || (u[0] = (h) => y())
153
+ onChange: u[0] || (u[0] = (h) => k())
154
154
  }, null, 40, Le),
155
- s("div", Ae, [
156
- s("ul", Me, [
155
+ r("div", Ae, [
156
+ r("ul", Me, [
157
157
  g.value ? T("", !0) : (c(), b("li", xe, [
158
158
  n(z, {
159
159
  label: e(i)("uploadFile"),
@@ -182,7 +182,7 @@ const oe = ue("giftCard", () => {
182
182
  }, null, 8, ["label", "icon-color"])
183
183
  ])) : T("", !0)
184
184
  ]),
185
- s("div", {
185
+ r("div", {
186
186
  class: re([
187
187
  "media-selector-previewer",
188
188
  { opened: g.value }
@@ -224,8 +224,8 @@ typeof ne == "function" && ne(De);
224
224
  const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-form" }, We = /* @__PURE__ */ Q({
225
225
  __name: "GiftCardSkeleton",
226
226
  setup(S) {
227
- return (f, V) => (c(), b("div", je, [
228
- s("div", Ne, [
227
+ return (f, y) => (c(), b("div", je, [
228
+ r("div", Ne, [
229
229
  n(x),
230
230
  n(x),
231
231
  n(x),
@@ -262,7 +262,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
262
262
  styling: {}
263
263
  },
264
264
  setup(S) {
265
- const f = S, V = _(() => ({
265
+ const f = S, y = V(() => ({
266
266
  panelMaxWidth: "800px",
267
267
  ...f.styling
268
268
  })), { t } = se(), {
@@ -270,11 +270,11 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
270
270
  email: v,
271
271
  phone: d,
272
272
  value: g,
273
- remark: r,
273
+ remark: s,
274
274
  showValue: p,
275
275
  quantity: m,
276
276
  media: A,
277
- placeId: y,
277
+ placeId: k,
278
278
  placeType: l,
279
279
  showFormPage: u,
280
280
  showPaymentPage: h,
@@ -286,11 +286,11 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
286
286
  isMetaDataAvailable: B
287
287
  } = J(oe()), { initialize: E, orderGiftCard: D } = oe(), { isRecaptchaEnabled: H, currency: Z } = J(ie());
288
288
  return be(l, () => {
289
- y.value = void 0;
289
+ k.value = void 0;
290
290
  }), he(() => {
291
291
  const q = f.placeType ? parseInt(f.placeType) : void 0;
292
292
  E(q);
293
- }), (q, o) => (c(), L(we, { styling: V.value }, {
293
+ }), (q, o) => (c(), L(we, { styling: y.value }, {
294
294
  default: G(() => [
295
295
  (c(), L(ye, null, {
296
296
  default: G(() => [
@@ -302,32 +302,32 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
302
302
  }, {
303
303
  default: G(() => [
304
304
  e(B) ? (c(), b("div", He, [
305
- s("h2", Ze, [
306
- s("span", null, ae(e(t)("giftCard.title")), 1)
305
+ r("h2", Ze, [
306
+ r("span", null, ae(e(t)("giftCard.title")), 1)
307
307
  ]),
308
- s("div", Ke, [
309
- j(s("div", Ye, [
308
+ r("div", Ke, [
309
+ j(r("div", Ye, [
310
310
  n(Ue)
311
311
  ], 512), [
312
312
  [N, e(h)]
313
313
  ]),
314
- j(s("div", null, [
315
- s("p", {
314
+ j(r("div", null, [
315
+ r("p", {
316
316
  id: "konnectio-gift-card-description",
317
317
  innerHTML: e(t)("giftCard.description")
318
318
  }, null, 8, Je),
319
- s("form", null, [
319
+ r("form", null, [
320
320
  e(M) ? T("", !0) : (c(), b("div", Qe, [
321
321
  e(F) ? (c(), b("div", Xe, [
322
- s("label", ea, [
323
- s("span", null, ae(e(t)("giftCard.selectType")), 1)
322
+ r("label", ea, [
323
+ r("span", null, ae(e(t)("giftCard.selectType")), 1)
324
324
  ]),
325
- s("div", aa, [
326
- s("ul", null, [
325
+ r("div", aa, [
326
+ r("ul", null, [
327
327
  (c(!0), b(ke, null, Ce(e(F), (a, $) => (c(), b("li", { key: $ }, [
328
328
  n(te, {
329
329
  modelValue: e(l),
330
- "onUpdate:modelValue": o[0] || (o[0] = (P) => k(l) ? l.value = P : null),
330
+ "onUpdate:modelValue": o[0] || (o[0] = (P) => C(l) ? l.value = P : null),
331
331
  type: "radio",
332
332
  name: "placeType",
333
333
  val: $,
@@ -337,8 +337,8 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
337
337
  ]),
338
338
  e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (c(), L(_e, {
339
339
  key: 0,
340
- modelValue: e(y),
341
- "onUpdate:modelValue": o[1] || (o[1] = (a) => k(y) ? y.value = a : null),
340
+ modelValue: e(k),
341
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => C(k) ? k.value = a : null),
342
342
  placeholder: e(t)("giftCard.selectPlacePlaceholder"),
343
343
  options: e(F)[e(l)].data,
344
344
  labelKey: "name",
@@ -350,7 +350,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
350
350
  ])),
351
351
  n(W, {
352
352
  modelValue: e(i),
353
- "onUpdate:modelValue": o[2] || (o[2] = (a) => k(i) ? i.value = a : null),
353
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => C(i) ? i.value = a : null),
354
354
  type: "text",
355
355
  name: "name",
356
356
  autocomplete: "name",
@@ -361,7 +361,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
361
361
  }, null, 8, ["modelValue", "label", "placeholder"]),
362
362
  n(W, {
363
363
  modelValue: e(v),
364
- "onUpdate:modelValue": o[3] || (o[3] = (a) => k(v) ? v.value = a : null),
364
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => C(v) ? v.value = a : null),
365
365
  type: "email",
366
366
  name: "email",
367
367
  autocomplete: "email",
@@ -372,7 +372,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
372
372
  }, null, 8, ["modelValue", "label", "placeholder"]),
373
373
  n(Ee, {
374
374
  modelValue: e(d),
375
- "onUpdate:modelValue": o[4] || (o[4] = (a) => k(d) ? d.value = a : null),
375
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => C(d) ? d.value = a : null),
376
376
  icon: "phone-office",
377
377
  label: e(t)("giftCard.phone"),
378
378
  placeholder: e(t)("giftCard.phonePlaceholder"),
@@ -380,7 +380,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
380
380
  }, null, 8, ["modelValue", "label", "placeholder"]),
381
381
  n(W, {
382
382
  modelValue: e(g),
383
- "onUpdate:modelValue": o[5] || (o[5] = (a) => k(g) ? g.value = a : null),
383
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => C(g) ? g.value = a : null),
384
384
  type: "number",
385
385
  name: "value",
386
386
  label: e(t)("giftCard.value"),
@@ -391,7 +391,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
391
391
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
392
392
  n(te, {
393
393
  modelValue: e(p),
394
- "onUpdate:modelValue": o[6] || (o[6] = (a) => k(p) ? p.value = a : null),
394
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => C(p) ? p.value = a : null),
395
395
  type: "checkbox",
396
396
  name: "showValue",
397
397
  label: e(t)("giftCard.showValue"),
@@ -400,7 +400,7 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
400
400
  T("", !0),
401
401
  n(Ve, {
402
402
  modelValue: e(m),
403
- "onUpdate:modelValue": o[8] || (o[8] = (a) => k(m) ? m.value = a : null),
403
+ "onUpdate:modelValue": o[8] || (o[8] = (a) => C(m) ? m.value = a : null),
404
404
  label: e(t)("giftCard.quantity"),
405
405
  icon: "gift-card",
406
406
  required: ""
@@ -409,8 +409,8 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
409
409
  ], 512), [
410
410
  [N, e(u)]
411
411
  ]),
412
- j(s("div", null, [
413
- s("div", {
412
+ j(r("div", null, [
413
+ r("div", {
414
414
  innerHTML: e(t)("giftCard.thankYou")
415
415
  }, null, 8, la)
416
416
  ], 512), [
@@ -418,21 +418,21 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
418
418
  ])
419
419
  ]),
420
420
  q.layout !== "minimal" && e(u) ? (c(), b("div", ta, [
421
- s("div", oa, [
421
+ r("div", oa, [
422
422
  n(z, {
423
423
  label: e(t)("giftCard.orderGiftCard"),
424
424
  "full-width": !0,
425
425
  disabled: !e(I),
426
426
  "is-loading": e(w),
427
- "onUpdate:isLoading": o[9] || (o[9] = (a) => k(w) ? w.value = a : null),
427
+ "onUpdate:isLoading": o[9] || (o[9] = (a) => C(w) ? w.value = a : null),
428
428
  onClickEvent: e(D)
429
429
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
430
430
  ])
431
431
  ])) : T("", !0),
432
432
  e(u) ? (c(), b("div", na, [
433
433
  n(W, {
434
- modelValue: e(r),
435
- "onUpdate:modelValue": o[10] || (o[10] = (a) => k(r) ? r.value = a : null),
434
+ modelValue: e(s),
435
+ "onUpdate:modelValue": o[10] || (o[10] = (a) => C(s) ? s.value = a : null),
436
436
  type: "textarea",
437
437
  name: "remark",
438
438
  label: e(t)("giftCard.remark"),
@@ -447,10 +447,10 @@ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-fo
447
447
  disabled: !e(I),
448
448
  "data-test": "orderGiftCard",
449
449
  "is-loading": e(w),
450
- "onUpdate:isLoading": o[11] || (o[11] = (a) => k(w) ? w.value = a : null),
450
+ "onUpdate:isLoading": o[11] || (o[11] = (a) => C(w) ? w.value = a : null),
451
451
  onClickEvent: e(D)
452
452
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
453
- j(s("div", sa, [
453
+ j(r("div", sa, [
454
454
  n(Re)
455
455
  ], 512), [
456
456
  [N, e(H)]
@@ -477,21 +477,18 @@ class ua extends HTMLElement {
477
477
  }
478
478
  connectedCallback() {
479
479
  const f = typeof O == "function" ? O.options : O;
480
- let V = Array.isArray(f.props) ? f.props : Object.keys(f.props || {});
481
- console.log(f);
482
- const t = (r) => r.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (p, m) => (m ? "-" : "") + p.toLowerCase()), i = {};
483
- V = V.map(t);
480
+ let y = Array.isArray(f.props) ? f.props : Object.keys(f.props || {});
481
+ const t = (s) => s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (p, m) => (m ? "-" : "") + p.toLowerCase()), i = {};
482
+ y = y.map(t);
484
483
  const v = {};
485
- for (const r of this.attributes) {
486
- const p = r.name, m = p.split(".");
487
- console.log(p, m.length), m.length > 1 && (v[m[0]] || (v[m[0]] = {}), v[m[0]][m[1]] = r.value);
484
+ for (const s of this.attributes) {
485
+ const p = s.name, m = p.split(".");
486
+ console.log(p, m.length), m.length > 1 && (v[m[0]] || (v[m[0]] = {}), v[m[0]][m[1]] = s.value);
488
487
  }
489
- console.log(v);
490
- for (const r of V) {
491
- let p = this.attributes.getNamedItem(r)?.value;
492
- if (v.hasOwnProperty(r) && (p = v[r]), !p)
493
- break;
494
- i[r] = p;
488
+ console.log(v), console.log(y);
489
+ for (const s of y) {
490
+ let p = this.attributes.getNamedItem(s)?.value;
491
+ v.hasOwnProperty(s) && (p = v[s]), console.log(p, s), i[s] = p;
495
492
  }
496
493
  const d = Te(O, i);
497
494
  d.use(da), d.use(Se), d.use($e, { bootstrap: !0 });
Binary file
@@ -1,9 +1,9 @@
1
- import { k as G, B as ne, aE as co, s as K, c as he, W as gt, X as ie, o as E, m as R, a0 as po, z as a, w, ac as Le, x as y, F as V, K as te, a2 as Xe, aF as ho, l as I, a6 as z, $ as B, n as x, a8 as We, aG as ue, p as C, H as Q, J as oe, f as U, y as Ee, P as vt, Q as yt, _ as J, r as ce, aH as bt, Z as qe, Y as be, A as kt, C as le, aI as fo, a5 as mo, q as ke, I as _t, v as Ze, T as ee, aJ as go, N as vo, D as yo, a9 as bo, L as et, G as F, M as ko, ay as Et, aA as _o, aK as Eo, R as To, U as Co, V as Io, ab as $o } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { R as So, B as je, a as Vo, S as Lo, M as Po, T as xo, V as wo } from "./ThankYou-ekf_1AWY.js";
3
- import { A as Ho, H as Oo } from "./AvailabilitySkeleton-1_yLVsq6.js";
4
- import { _ as Ao } from "./DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js";
5
- import { C as Fe, P as Do, a as Mo } from "./CheckoutWindow-r6ch1iOr.js";
6
- import { E as Y } from "./_-vErl-x3v.js";
1
+ import { k as G, B as ne, aE as co, s as K, c as he, W as gt, X as ie, o as E, m as R, a0 as po, z as a, w, ac as Le, x as y, F as V, K as te, a2 as Xe, aF as ho, l as I, a6 as z, $ as B, n as x, a8 as We, aG as ue, p as C, H as Q, J as oe, f as U, y as Ee, P as vt, Q as yt, _ as J, r as ce, aH as bt, Z as qe, Y as be, A as kt, C as le, aI as fo, a5 as mo, q as ke, I as _t, v as Ze, T as ee, aJ as go, N as vo, D as yo, a9 as bo, L as et, G as F, M as ko, ay as Et, aA as _o, aK as Eo, R as To, U as Co, V as Io, ab as $o } from "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import { R as So, B as je, a as Vo, S as Lo, M as Po, T as xo, V as wo } from "./ThankYou-GZubLuct.js";
3
+ import { A as Ho, H as Oo } from "./AvailabilitySkeleton-AtpMBpH9.js";
4
+ import { _ as Ao } from "./DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js";
5
+ import { C as Fe, P as Do, a as Mo } from "./CheckoutWindow-qWcuhbC0.js";
6
+ import { E as Y } from "./_-STnzfLhe.js";
7
7
  import { c as Tt, g as Ct } from "./_commonjsHelpers-2ufMB8rV.js";
8
8
  const Ro = { key: 0 }, Bo = { key: 1 }, Pe = /* @__PURE__ */ G({
9
9
  __name: "HotelReservationForm",
@@ -3081,7 +3081,6 @@ class lr extends HTMLElement {
3081
3081
  connectedCallback() {
3082
3082
  const e = typeof fe == "function" ? fe.options : fe;
3083
3083
  let t = Array.isArray(e.props) ? e.props : Object.keys(e.props || {});
3084
- console.log(e);
3085
3084
  const n = (l) => l.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (u, f) => (f ? "-" : "") + u.toLowerCase()), p = {};
3086
3085
  t = t.map(n);
3087
3086
  const r = {};
@@ -3089,12 +3088,10 @@ class lr extends HTMLElement {
3089
3088
  const u = l.name, f = u.split(".");
3090
3089
  console.log(u, f.length), f.length > 1 && (r[f[0]] || (r[f[0]] = {}), r[f[0]][f[1]] = l.value);
3091
3090
  }
3092
- console.log(r);
3091
+ console.log(r), console.log(t);
3093
3092
  for (const l of t) {
3094
3093
  let u = this.attributes.getNamedItem(l)?.value;
3095
- if (r.hasOwnProperty(l) && (u = r[l]), !u)
3096
- break;
3097
- p[l] = u;
3094
+ r.hasOwnProperty(l) && (u = r[l]), console.log(u, l), p[l] = u;
3098
3095
  }
3099
3096
  const h = Co(fe, p);
3100
3097
  h.use(ar), h.use(sr), h.use(St), h.use(Io), h.use(wo), h.use($o, { bootstrap: !0 });
Binary file
package/dist/hotel.js CHANGED
@@ -1,13 +1,13 @@
1
- import "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import "./ThankYou-ekf_1AWY.js";
3
- import { C as s } from "./hotel-4O89o7V2.js";
1
+ import "./SelectField.vue_vue_type_style_index_0_lang-nQBJ2nvj.js";
2
+ import "./ThankYou-GZubLuct.js";
3
+ import { C as s } from "./hotel-NNMyLNPa.js";
4
4
  import "./_commonjsHelpers-2ufMB8rV.js";
5
- import "./ActionField-na8McB-H.js";
6
- import "./CheckoutWindow-r6ch1iOr.js";
7
- import "./_-vErl-x3v.js";
8
- import "./AvailabilitySkeleton-1_yLVsq6.js";
9
- import "./DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js";
10
- import "./Field-S_yxW5IQ.js";
5
+ import "./ActionField-DQVEiApH.js";
6
+ import "./CheckoutWindow-qWcuhbC0.js";
7
+ import "./_-STnzfLhe.js";
8
+ import "./AvailabilitySkeleton-AtpMBpH9.js";
9
+ import "./DateField.vue_vue_type_style_index_0_lang-yJsHdlhS.js";
10
+ import "./Field-LwXPzaNj.js";
11
11
  export {
12
12
  s as default
13
13
  };
package/dist/polyfill.js CHANGED
@@ -6744,4 +6744,4 @@ var xer = { exports: {} };
6744
6744
  tr = new ResizeObserver(O), dr = new MutationObserver(ir), z();
6745
6745
  }
6746
6746
  })()();
6747
- console.log("Konnectio production release: 4.0.56-rc8");
6747
+ console.log("Konnectio production release: 4.0.56-rc9");
Binary file
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.56-rc8",
3
+ "version": "4.0.56-rc9",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
7
7
  "type": "module",
8
8
  "files": [
9
- "dist"
9
+ "dist/*.js",
10
+ "dist/*.gz",
11
+ "dist/*.br",
12
+ "dist/*.css",
13
+ "!dist/index.*",
14
+ "!dist/playground.*"
10
15
  ],
11
16
  "exports": {
12
17
  "./availability": "./dist/availability.js",
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/favicon.ico DELETED
Binary file
Binary file