@konnectio/core 4.0.56-rc6 → 4.0.56-rc8

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 (174) hide show
  1. package/dist/{ActionField-YyW_C34E.js → ActionField-na8McB-H.js} +1 -1
  2. package/dist/ActionField-na8McB-H.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-1_yLVsq6.js +214 -0
  4. package/dist/AvailabilitySkeleton-1_yLVsq6.js.br +0 -0
  5. package/dist/{CheckoutWindow-T7-vrZyG.js → CheckoutWindow-r6ch1iOr.js} +17 -17
  6. package/dist/CheckoutWindow-r6ch1iOr.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js → DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js} +2910 -2918
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js.br +0 -0
  9. package/dist/{Field-fWwF40rD.js → Field-S_yxW5IQ.js} +2 -2
  10. package/dist/Field-S_yxW5IQ.js.br +0 -0
  11. package/dist/{SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js → SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js} +8477 -8478
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js.br +0 -0
  13. package/dist/{ThankYou-pUA2X7-4.js → ThankYou-ekf_1AWY.js} +4327 -4410
  14. package/dist/ThankYou-ekf_1AWY.js.br +0 -0
  15. package/dist/{_-TlutFgf7.js → _-vErl-x3v.js} +1 -1
  16. package/dist/{_commonjsHelpers-4t9S7M5p.js → _commonjsHelpers-2ufMB8rV.js} +1 -1
  17. package/dist/availability.js +117 -86
  18. package/dist/availability.js.br +0 -0
  19. package/dist/event-iDLUEMAV.js +328 -0
  20. package/dist/event-iDLUEMAV.js.br +0 -0
  21. package/dist/event.js +431 -412
  22. package/dist/event.js.br +0 -0
  23. package/dist/favicon.ico +0 -0
  24. package/dist/gift-card-validation.js +32 -34
  25. package/dist/gift-card-validation.js.br +0 -0
  26. package/dist/gift-card.js +263 -285
  27. package/dist/gift-card.js.br +0 -0
  28. package/dist/hotel-4O89o7V2.js +3111 -0
  29. package/dist/hotel-4O89o7V2.js.br +0 -0
  30. package/dist/hotel.js +11 -3144
  31. package/dist/polyfill.js +67 -67
  32. package/dist/polyfill.js.br +0 -0
  33. package/dist/style.css +1 -1
  34. package/dist/style.css.br +0 -0
  35. package/package.json +14 -17
  36. package/dist/ActionField-YyW_C34E.js.br +0 -0
  37. package/dist/AvailabilitySkeleton-lYcDX41T.js +0 -239
  38. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  39. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  40. package/dist/Container-w7O0He-s.js +0 -68
  41. package/dist/Container-w7O0He-s.js.br +0 -0
  42. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  43. package/dist/Field-fWwF40rD.js.br +0 -0
  44. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  45. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  46. package/dist/assets/typescript/mixins.d.ts +0 -34
  47. package/dist/availability.d.ts +0 -3
  48. package/dist/components/Alert.vue.d.ts +0 -28
  49. package/dist/components/Alert.vue.d.ts.map +0 -1
  50. package/dist/components/Clickable.vue.d.ts +0 -60
  51. package/dist/components/Clickable.vue.d.ts.map +0 -1
  52. package/dist/components/Container.vue.d.ts +0 -23
  53. package/dist/components/Container.vue.d.ts.map +0 -1
  54. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  55. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  56. package/dist/components/Gallery.vue.d.ts +0 -31
  57. package/dist/components/Gallery.vue.d.ts.map +0 -1
  58. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  59. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  60. package/dist/components/Icon.vue.d.ts +0 -38
  61. package/dist/components/Icon.vue.d.ts.map +0 -1
  62. package/dist/components/Loading.vue.d.ts +0 -29
  63. package/dist/components/Loading.vue.d.ts.map +0 -1
  64. package/dist/components/Spinner.vue.d.ts +0 -2
  65. package/dist/components/Spinner.vue.d.ts.map +0 -1
  66. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  67. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  68. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  69. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  70. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  71. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  72. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  73. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  74. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  75. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  76. package/dist/components/forms/_.vue.d.ts +0 -42
  77. package/dist/components/forms/_.vue.d.ts.map +0 -1
  78. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  79. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  80. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  81. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  82. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  83. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  84. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  85. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  86. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  87. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  88. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  89. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  90. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  91. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  92. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  93. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  95. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  97. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  99. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  101. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  103. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  105. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  106. package/dist/components/listings/Base.vue.d.ts +0 -56
  107. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  108. package/dist/components/listings/Event.vue.d.ts +0 -47
  109. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  110. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  111. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  112. package/dist/components/listings/Template.vue.d.ts +0 -21
  113. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  114. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  115. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  116. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  117. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  118. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  119. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  120. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  121. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  122. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  123. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  124. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  125. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  126. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  127. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  128. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  129. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  130. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  131. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  132. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  133. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  134. package/dist/components/skeletons/_.vue.d.ts +0 -36
  135. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  136. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  137. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  138. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  139. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  140. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  141. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  142. package/dist/entries/availability.d.ts +0 -5
  143. package/dist/entries/event.d.ts +0 -2
  144. package/dist/entries/gift-card-validation.d.ts +0 -5
  145. package/dist/entries/gift-card.d.ts +0 -5
  146. package/dist/entries/hotel.d.ts +0 -5
  147. package/dist/entries/navigation.d.ts +0 -1
  148. package/dist/entries/polyfill.d.ts +0 -0
  149. package/dist/event-mDcuoL9g.js +0 -358
  150. package/dist/event-mDcuoL9g.js.br +0 -0
  151. package/dist/event.d.ts +0 -3
  152. package/dist/gift-card-validation.d.ts +0 -3
  153. package/dist/gift-card.d.ts +0 -3
  154. package/dist/hotel.d.ts +0 -3
  155. package/dist/hotel.js.br +0 -0
  156. package/dist/layouts/Availability.vue.d.ts +0 -25
  157. package/dist/layouts/Event.vue.d.ts +0 -18
  158. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  159. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  160. package/dist/layouts/Hotel.vue.d.ts +0 -36
  161. package/dist/layouts/_.vue.d.ts +0 -39
  162. package/dist/navigation.d.ts +0 -1
  163. package/dist/plugins/i18n.d.ts +0 -5
  164. package/dist/polyfill.d.ts +0 -1
  165. package/dist/store/alert.d.ts +0 -28
  166. package/dist/store/applyGiftCard.d.ts +0 -28
  167. package/dist/store/availability.d.ts +0 -40
  168. package/dist/store/event.d.ts +0 -683
  169. package/dist/store/giftCard.d.ts +0 -83
  170. package/dist/store/payment.d.ts +0 -139
  171. package/dist/store/recaptcha.d.ts +0 -28
  172. package/dist/store/tracking.d.ts +0 -57
  173. package/dist/store/utilities.d.ts +0 -350
  174. package/dist/types/index.d.ts +0 -976
package/dist/gift-card.js CHANGED
@@ -1,130 +1,100 @@
1
- var fe = Object.defineProperty;
2
- var ae = Object.getOwnPropertySymbols;
3
- var ve = Object.prototype.hasOwnProperty, ge = Object.prototype.propertyIsEnumerable;
4
- var le = (c, l, i) => l in c ? fe(c, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[l] = i, te = (c, l) => {
5
- for (var i in l || (l = {}))
6
- ve.call(l, i) && le(c, i, l[i]);
7
- if (ae)
8
- for (var i of ae(l))
9
- ge.call(l, i) && le(c, i, l[i]);
10
- return c;
11
- };
12
- var J = (c, l, i) => new Promise((t, n) => {
13
- var g = (d) => {
14
- try {
15
- m(i.next(d));
16
- } catch (y) {
17
- n(y);
18
- }
19
- }, p = (d) => {
20
- try {
21
- m(i.throw(d));
22
- } catch (y) {
23
- n(y);
24
- }
25
- }, m = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(g, p);
26
- m((i = i.apply(c, l)).next());
27
- });
28
- import { d as ye, u as be, s as X, c as ue, r as _, ad as $, e as Y, f as V, j as oe, S as Q, i as he, h as ke, ae as Ce, k as Z, F as ce, b as _e, o as v, m as L, w as G, x as u, l as b, p as r, z as e, C as B, n as T, q as pe, I as Ve, _ as me, a2 as Fe, B as we, G as Pe, H as ne, af as W, ag as j, a3 as Te, a4 as Se, J as C, y as Ue, a5 as ie, T as H, A as $e, P as Ee, U as Ie, V as Re, W as qe, a9 as Le } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
29
- import { C as Me } from "./Container-w7O0He-s.js";
30
- import { a as xe, C as se, P as Ae, _ as Ge } from "./CheckoutWindow-T7-vrZyG.js";
31
- import { E as Be } from "./_-TlutFgf7.js";
32
- import { F as A } from "./Field-fWwF40rD.js";
33
- import "./_commonjsHelpers-4t9S7M5p.js";
34
- const re = ye("giftCard", () => {
35
- const { pay: c } = be(), { bearerToken: l, metaData: i, currencyId: t } = X(ue()), n = _($.InitialState), g = Y("konnectio_name", "", void 0, { serializer: Q.string }), p = Y("konnectio_email", "", void 0, { serializer: Q.string }), m = Y("konnectio_phone", "", void 0, { serializer: Q.string }), d = _(""), y = _(1), S = _(!0), M = _(""), k = _({
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";
5
+ import "./_commonjsHelpers-2ufMB8rV.js";
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({
36
8
  base64: "",
37
9
  type: "",
38
10
  name: ""
39
- }), o = _(void 0), f = _(0), h = _(!1), I = _(0), F = V(() => n.value === $.InitialState || n.value === $.WaitingForResponse), R = V(() => n.value === $.ReadyToPay), x = V(() => n.value === $.PaymentSuccess), w = V(() => {
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 = _(() => {
40
12
  const a = {
41
13
  1: {
42
- label: oe.t("giftCard.hotelType"),
14
+ label: ee.t("giftCard.hotelType"),
43
15
  data: []
44
16
  },
45
17
  2: {
46
- label: oe.t("giftCard.restaurantType"),
18
+ label: ee.t("giftCard.restaurantType"),
47
19
  data: []
48
20
  }
49
- }, U = i.value.hotels[0].places;
50
- return U && U.forEach((P) => {
21
+ }, $ = V.value.hotels[0].places;
22
+ return $ && $.forEach((P) => {
51
23
  a[P.placeType].data.push(P);
52
24
  }), Object.fromEntries(
53
25
  Object.entries(a).filter(([, P]) => P.data.length > 0)
54
26
  );
55
- }), z = V(() => I.value !== 0), E = V(() => {
27
+ }), B = _(() => R.value !== 0), E = _(() => {
56
28
  let a;
57
- if (z.value)
58
- a = w.value[I.value].data[0];
59
- else if (f.value !== 0) {
60
- const U = o.value, P = w.value[f.value].data;
61
- P.length === 1 ? a = P[0] : U !== void 0 && P.forEach((ee) => {
62
- String(ee.id) === String(U) && (a = ee);
29
+ if (B.value)
30
+ a = w.value[R.value].data[0];
31
+ else if (u.value !== 0) {
32
+ const $ = l.value, P = w.value[u.value].data;
33
+ P.length === 1 ? a = P[0] : $ !== void 0 && P.forEach((X) => {
34
+ String(X.id) === String($) && (a = X);
63
35
  });
64
36
  }
65
37
  return a;
66
- }), D = V(() => !(!g.value || !p.value || !(m.value.length >= 5) || !d.value || E.value === void 0)), O = V(() => !(n.value === $.InitialState && h.value)), K = V(() => !!(n.value === $.WaitingForResponse && h.value));
67
- function q() {
68
- return J(this, null, function* () {
69
- n.value = $.WaitingForResponse, h.value = !0, yield he.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
70
- termsOfserviceURL: window.location.origin,
71
- checkoutUrl: window.location.origin,
72
- currencyID: t.value,
73
- language: ke(),
74
- amount: d.value,
75
- quantity: y.value,
76
- freeText: M.value,
77
- showPrice: S.value,
78
- contactName: g.value,
79
- contactEmail: p.value,
80
- contactPhone: m.value,
81
- imageBase64: Ce(k.value.base64),
82
- imageName: k.value.name,
83
- imageFormat: k.value.type,
84
- placeType: E.value ? E.value.placeType : void 0,
85
- placeID: E.value ? E.value.id : void 0
86
- }, {
87
- headers: {
88
- Authorization: l.value,
89
- Accept: "application/json",
90
- "Fresh-Booking-Ver": "4.0.56-rc6"
91
- }
92
- }).then((a) => {
93
- n.value = $.ReadyToPay, h.value = !1, c({
94
- callback: () => console.log("Callback!"),
95
- response: a.data
96
- });
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));
39
+ async function q() {
40
+ i.value = U.WaitingForResponse, h.value = !0, await pe.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
41
+ termsOfserviceURL: window.location.origin,
42
+ checkoutUrl: window.location.origin,
43
+ currencyID: t.value,
44
+ language: me(),
45
+ amount: r.value,
46
+ quantity: p.value,
47
+ freeText: A.value,
48
+ showPrice: m.value,
49
+ contactName: v.value,
50
+ contactEmail: d.value,
51
+ contactPhone: g.value,
52
+ imageBase64: fe(y.value.base64),
53
+ imageName: y.value.name,
54
+ imageFormat: y.value.type,
55
+ placeType: E.value ? E.value.placeType : void 0,
56
+ placeID: E.value ? E.value.id : void 0
57
+ }, {
58
+ headers: {
59
+ Authorization: f.value,
60
+ Accept: "application/json",
61
+ "Fresh-Booking-Ver": "4.0.56-rc8"
62
+ }
63
+ }).then((a) => {
64
+ i.value = U.ReadyToPay, h.value = !1, S({
65
+ callback: () => console.log("Callback!"),
66
+ response: a.data
97
67
  });
98
68
  });
99
69
  }
100
- function s(a) {
101
- a && (I.value = a);
70
+ function o(a) {
71
+ a && (R.value = a);
102
72
  }
103
73
  return {
104
74
  selectedPlace: E,
105
- moduleState: n,
106
- name: g,
107
- email: p,
108
- phone: m,
109
- value: d,
110
- remark: M,
111
- showValue: S,
112
- quantity: y,
113
- media: k,
114
- placeId: o,
115
- placeType: f,
75
+ moduleState: i,
76
+ name: v,
77
+ email: d,
78
+ phone: g,
79
+ value: r,
80
+ remark: A,
81
+ showValue: m,
82
+ quantity: p,
83
+ media: y,
84
+ placeId: l,
85
+ placeType: u,
116
86
  showFormPage: F,
117
- showPaymentPage: R,
118
- showConfirmationPage: x,
87
+ showPaymentPage: I,
88
+ showConfirmationPage: M,
119
89
  places: w,
120
90
  hasFilledForm: D,
121
- hasForcedPlaceType: z,
122
- isWaitingForResponse: K,
123
- isMetaDataAvailable: O,
91
+ hasForcedPlaceType: B,
92
+ isWaitingForResponse: Z,
93
+ isMetaDataAvailable: H,
124
94
  orderGiftCard: q,
125
- initialize: s
95
+ initialize: o
126
96
  };
127
- }), ze = { class: "media-selector" }, De = ["accept"], We = { class: "media-selector-wrapper" }, je = { class: "media-selector-tools" }, He = { key: 0 }, Ne = { key: 1 }, Oe = { key: 2 }, Ke = ["src"], Je = /* @__PURE__ */ Z({
97
+ }), qe = { class: "media-selector" }, Le = ["accept"], Ae = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, xe = { key: 0 }, Ge = { key: 1 }, ze = { key: 2 }, Be = ["src"], De = /* @__PURE__ */ Q({
128
98
  __name: "MediaSelector",
129
99
  props: {
130
100
  modelValue: {},
@@ -134,96 +104,94 @@ const re = ye("giftCard", () => {
134
104
  required: { type: Boolean, default: !1 }
135
105
  },
136
106
  emits: ["update:modelValue"],
137
- setup(c, { emit: l }) {
138
- const i = l, t = c, { t: n } = ce(), { display: g } = _e(), p = _(), m = V(() => t.modelValue.base64 !== "");
139
- function d(o) {
140
- i("update:modelValue", o);
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);
141
111
  }
142
- function y() {
143
- d({
112
+ function p() {
113
+ r({
144
114
  base64: "",
145
115
  name: "",
146
116
  type: ""
147
- }), p.value && (p.value.value = "");
117
+ }), d.value && (d.value.value = "");
148
118
  }
149
- function S() {
150
- p.value && p.value.click();
119
+ function m() {
120
+ d.value && d.value.click();
151
121
  }
152
- function M(o, f) {
153
- const [h, I] = [o.name, o.type], F = new FileReader();
154
- F.onload = function(R) {
155
- if (R.target) {
156
- const x = R.target.result;
157
- f({ base64: x, name: h, type: I });
122
+ function A(l, u) {
123
+ const [h, R] = [l.name, l.type], F = new FileReader();
124
+ F.onload = function(I) {
125
+ if (I.target) {
126
+ const M = I.target.result;
127
+ u({ base64: M, name: h, type: R });
158
128
  } else
159
- g({
160
- message: n("imageUploadError"),
129
+ v({
130
+ message: i("imageUploadError"),
161
131
  type: "error"
162
132
  });
163
- }, F.readAsDataURL(o);
133
+ }, F.readAsDataURL(l);
164
134
  }
165
- function k() {
166
- return J(this, null, function* () {
167
- let o;
168
- (o = p.value.files) instanceof FileList && M(o[0], d);
169
- });
135
+ async function y() {
136
+ let l;
137
+ (l = d.value.files) instanceof FileList && A(l[0], r);
170
138
  }
171
- return (o, f) => (v(), L(Ve, {
172
- label: o.label,
173
- required: o.required,
139
+ return (l, u) => (c(), L(ge, {
140
+ label: l.label,
141
+ required: l.required,
174
142
  type: "media"
175
143
  }, {
176
144
  default: G(() => [
177
- u("div", ze, [
178
- u("input", {
145
+ s("div", qe, [
146
+ s("input", {
179
147
  ref_key: "fileInput",
180
- ref: p,
148
+ ref: d,
181
149
  type: "file",
182
150
  class: "hidden",
183
- accept: o.validation,
151
+ accept: l.validation,
184
152
  single: "",
185
- onChange: f[0] || (f[0] = (h) => k())
186
- }, null, 40, De),
187
- u("div", We, [
188
- u("ul", je, [
189
- m.value ? T("", !0) : (v(), b("li", He, [
190
- r(B, {
191
- label: e(n)("uploadFile"),
153
+ onChange: u[0] || (u[0] = (h) => y())
154
+ }, null, 40, Le),
155
+ s("div", Ae, [
156
+ s("ul", Me, [
157
+ g.value ? T("", !0) : (c(), b("li", xe, [
158
+ n(z, {
159
+ label: e(i)("uploadFile"),
192
160
  type: "button",
193
161
  icon: "upload",
194
- "icon-color": o.iconColor,
195
- onClickEvent: f[1] || (f[1] = (h) => S())
162
+ "icon-color": l.iconColor,
163
+ onClickEvent: u[1] || (u[1] = (h) => m())
196
164
  }, null, 8, ["label", "icon-color"])
197
165
  ])),
198
- m.value ? (v(), b("li", Ne, [
199
- r(B, {
200
- label: e(n)("replaceFile"),
166
+ g.value ? (c(), b("li", Ge, [
167
+ n(z, {
168
+ label: e(i)("replaceFile"),
201
169
  type: "button",
202
170
  icon: "repeat-alt",
203
- "icon-color": o.iconColor,
204
- onClickEvent: f[2] || (f[2] = (h) => S())
171
+ "icon-color": l.iconColor,
172
+ onClickEvent: u[2] || (u[2] = (h) => m())
205
173
  }, null, 8, ["label", "icon-color"])
206
174
  ])) : T("", !0),
207
- m.value ? (v(), b("li", Oe, [
208
- r(B, {
209
- label: e(n)("removeFile"),
175
+ g.value ? (c(), b("li", ze, [
176
+ n(z, {
177
+ label: e(i)("removeFile"),
210
178
  type: "button",
211
179
  icon: "trash-alt",
212
- "icon-color": o.iconColor,
213
- onClickEvent: f[3] || (f[3] = (h) => y())
180
+ "icon-color": l.iconColor,
181
+ onClickEvent: u[3] || (u[3] = (h) => p())
214
182
  }, null, 8, ["label", "icon-color"])
215
183
  ])) : T("", !0)
216
184
  ]),
217
- u("div", {
218
- class: pe([
185
+ s("div", {
186
+ class: re([
219
187
  "media-selector-previewer",
220
- { opened: m.value }
188
+ { opened: g.value }
221
189
  ])
222
190
  }, [
223
- o.modelValue ? (v(), b("img", {
191
+ l.modelValue ? (c(), b("img", {
224
192
  key: 0,
225
- src: o.modelValue.base64
226
- }, null, 8, Ke)) : T("", !0)
193
+ src: l.modelValue.base64
194
+ }, null, 8, Be)) : T("", !0)
227
195
  ], 2)
228
196
  ])
229
197
  ])
@@ -232,9 +200,9 @@ const re = ye("giftCard", () => {
232
200
  }, 8, ["label", "required"]));
233
201
  }
234
202
  });
235
- function de(c) {
236
- const l = c;
237
- l.__i18n = l.__i18n || [], l.__i18n.push({
203
+ function ne(S) {
204
+ const f = S;
205
+ f.__i18n = f.__i18n || [], f.__i18n.push({
238
206
  locale: "",
239
207
  resource: {
240
208
  da: {
@@ -252,39 +220,39 @@ function de(c) {
252
220
  }
253
221
  });
254
222
  }
255
- typeof de == "function" && de(Je);
256
- const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-form" }, Xe = /* @__PURE__ */ Z({
223
+ typeof ne == "function" && ne(De);
224
+ const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-form" }, We = /* @__PURE__ */ Q({
257
225
  __name: "GiftCardSkeleton",
258
- setup(c) {
259
- return (l, i) => (v(), b("div", Ye, [
260
- u("div", Qe, [
261
- r(A),
262
- r(A),
263
- r(A),
264
- r(A),
265
- r(A, { "is-text-area": "" }),
266
- r(Be, { height: "44px" })
226
+ setup(S) {
227
+ return (f, V) => (c(), b("div", je, [
228
+ s("div", Ne, [
229
+ n(x),
230
+ n(x),
231
+ n(x),
232
+ n(x),
233
+ n(x, { "is-text-area": "" }),
234
+ n(Ie, { height: "44px" })
267
235
  ])
268
236
  ]));
269
237
  }
270
- }), Ze = /* @__PURE__ */ me(Xe, [["__scopeId", "data-v-e35c75b3"]]), ea = {
238
+ }), Oe = /* @__PURE__ */ de(We, [["__scopeId", "data-v-e35c75b3"]]), He = {
271
239
  key: 0,
272
240
  id: "konnectio-gift-card-wrapper"
273
- }, aa = { id: "konnectio-gift-card-title" }, la = { id: "konnectio-gift-card-content" }, ta = { id: "konnectio-gift-card-payment" }, oa = ["innerHTML"], na = { key: 0 }, ia = {
241
+ }, Ze = { id: "konnectio-gift-card-title" }, Ke = { id: "konnectio-gift-card-content" }, Ye = { id: "konnectio-gift-card-payment" }, Je = ["innerHTML"], Qe = { key: 0 }, Xe = {
274
242
  key: 0,
275
243
  id: "fresh-booking-select-place-type"
276
- }, sa = {
277
- class: /* @__PURE__ */ pe(["fresh-booking-label", "required"])
278
- }, ra = { id: "fresh-booking-select-place-type-input" }, da = ["innerHTML"], ua = {
244
+ }, ea = {
245
+ class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
246
+ }, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
279
247
  key: 0,
280
248
  id: "konnectio-gift-card-order"
281
- }, ca = { class: "fresh-booking-panel" }, pa = {
249
+ }, oa = { class: "fresh-booking-panel" }, na = {
282
250
  key: 1,
283
251
  id: "konnectio-gift-card-remarks"
284
- }, ma = {
252
+ }, ia = {
285
253
  key: 2,
286
254
  id: "konnectio-gift-card-order-minimal"
287
- }, fa = { id: "konnectio-gift-card-recaptcha" }, va = /* @__PURE__ */ Z({
255
+ }, sa = { id: "konnectio-gift-card-recaptcha" }, ra = /* @__PURE__ */ Q({
288
256
  name: "GiftCardLayout",
289
257
  __name: "GiftCard",
290
258
  props: {
@@ -293,95 +261,96 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
293
261
  placeType: {},
294
262
  styling: {}
295
263
  },
296
- setup(c) {
297
- const l = c, i = V(() => te({
298
- panelMaxWidth: "800px"
299
- }, l.styling)), { t } = ce(), {
300
- name: n,
301
- email: g,
302
- phone: p,
303
- value: m,
304
- remark: d,
305
- showValue: y,
306
- quantity: S,
307
- media: M,
308
- placeId: k,
309
- placeType: o,
310
- showFormPage: f,
264
+ setup(S) {
265
+ const f = S, V = _(() => ({
266
+ panelMaxWidth: "800px",
267
+ ...f.styling
268
+ })), { t } = se(), {
269
+ name: i,
270
+ email: v,
271
+ phone: d,
272
+ value: g,
273
+ remark: r,
274
+ showValue: p,
275
+ quantity: m,
276
+ media: A,
277
+ placeId: y,
278
+ placeType: l,
279
+ showFormPage: u,
311
280
  showPaymentPage: h,
312
- showConfirmationPage: I,
281
+ showConfirmationPage: R,
313
282
  places: F,
314
- hasFilledForm: R,
315
- hasForcedPlaceType: x,
283
+ hasFilledForm: I,
284
+ hasForcedPlaceType: M,
316
285
  isWaitingForResponse: w,
317
- isMetaDataAvailable: z
318
- } = X(re()), { initialize: E, orderGiftCard: D } = re(), { isRecaptchaEnabled: O, currency: K } = X(ue());
319
- return Fe(o, () => {
320
- k.value = void 0;
321
- }), we(() => {
322
- const q = l.placeType ? parseInt(l.placeType) : void 0;
286
+ isMetaDataAvailable: B
287
+ } = J(oe()), { initialize: E, orderGiftCard: D } = oe(), { isRecaptchaEnabled: H, currency: Z } = J(ie());
288
+ return be(l, () => {
289
+ y.value = void 0;
290
+ }), he(() => {
291
+ const q = f.placeType ? parseInt(f.placeType) : void 0;
323
292
  E(q);
324
- }), (q, s) => (v(), L(Me, { styling: i.value }, {
293
+ }), (q, o) => (c(), L(we, { styling: V.value }, {
325
294
  default: G(() => [
326
- (v(), L(Pe, null, {
295
+ (c(), L(ye, null, {
327
296
  default: G(() => [
328
- r(Ee, {
297
+ n(Fe, {
329
298
  id: "konnectio-gift-card-module",
330
299
  type: "gift-card",
331
300
  "access-token": q.accessToken,
332
301
  "data-layout": q.layout
333
302
  }, {
334
303
  default: G(() => [
335
- e(z) ? (v(), b("div", ea, [
336
- u("h2", aa, [
337
- u("span", null, ne(e(t)("giftCard.title")), 1)
304
+ e(B) ? (c(), b("div", He, [
305
+ s("h2", Ze, [
306
+ s("span", null, ae(e(t)("giftCard.title")), 1)
338
307
  ]),
339
- u("div", la, [
340
- W(u("div", ta, [
341
- r(xe)
308
+ s("div", Ke, [
309
+ j(s("div", Ye, [
310
+ n(Ue)
342
311
  ], 512), [
343
- [j, e(h)]
312
+ [N, e(h)]
344
313
  ]),
345
- W(u("div", null, [
346
- u("p", {
314
+ j(s("div", null, [
315
+ s("p", {
347
316
  id: "konnectio-gift-card-description",
348
317
  innerHTML: e(t)("giftCard.description")
349
- }, null, 8, oa),
350
- u("form", null, [
351
- e(x) ? T("", !0) : (v(), b("div", na, [
352
- e(F) ? (v(), b("div", ia, [
353
- u("label", sa, [
354
- u("span", null, ne(e(t)("giftCard.selectType")), 1)
318
+ }, null, 8, Je),
319
+ s("form", null, [
320
+ e(M) ? T("", !0) : (c(), b("div", Qe, [
321
+ e(F) ? (c(), b("div", Xe, [
322
+ s("label", ea, [
323
+ s("span", null, ae(e(t)("giftCard.selectType")), 1)
355
324
  ]),
356
- u("div", ra, [
357
- u("ul", null, [
358
- (v(!0), b(Te, null, Se(e(F), (a, U) => (v(), b("li", { key: U }, [
359
- r(se, {
360
- modelValue: e(o),
361
- "onUpdate:modelValue": s[0] || (s[0] = (P) => C(o) ? o.value = P : null),
325
+ s("div", aa, [
326
+ s("ul", null, [
327
+ (c(!0), b(ke, null, Ce(e(F), (a, $) => (c(), b("li", { key: $ }, [
328
+ n(te, {
329
+ modelValue: e(l),
330
+ "onUpdate:modelValue": o[0] || (o[0] = (P) => k(l) ? l.value = P : null),
362
331
  type: "radio",
363
332
  name: "placeType",
364
- val: U,
333
+ val: $,
365
334
  label: a.label
366
335
  }, null, 8, ["modelValue", "val", "label"])
367
336
  ]))), 128))
368
337
  ]),
369
- e(F)[e(o)] && e(F)[e(o)].data.length > 1 ? (v(), L(Ue, {
338
+ e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (c(), L(_e, {
370
339
  key: 0,
371
- modelValue: e(k),
372
- "onUpdate:modelValue": s[1] || (s[1] = (a) => C(k) ? k.value = a : null),
340
+ modelValue: e(y),
341
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => k(y) ? y.value = a : null),
373
342
  placeholder: e(t)("giftCard.selectPlacePlaceholder"),
374
- options: e(F)[e(o)].data,
343
+ options: e(F)[e(l)].data,
375
344
  labelKey: "name",
376
345
  valueKey: "id",
377
346
  required: ""
378
347
  }, null, 8, ["modelValue", "placeholder", "options"])) : T("", !0)
379
348
  ])
380
- ])) : (v(), L(ie, { key: 1 }))
349
+ ])) : (c(), L(le, { key: 1 }))
381
350
  ])),
382
- r(H, {
383
- modelValue: e(n),
384
- "onUpdate:modelValue": s[2] || (s[2] = (a) => C(n) ? n.value = a : null),
351
+ n(W, {
352
+ modelValue: e(i),
353
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => k(i) ? i.value = a : null),
385
354
  type: "text",
386
355
  name: "name",
387
356
  autocomplete: "name",
@@ -390,9 +359,9 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
390
359
  placeholder: e(t)("giftCard.namePlaceholder"),
391
360
  required: ""
392
361
  }, null, 8, ["modelValue", "label", "placeholder"]),
393
- r(H, {
394
- modelValue: e(g),
395
- "onUpdate:modelValue": s[3] || (s[3] = (a) => C(g) ? g.value = a : null),
362
+ n(W, {
363
+ modelValue: e(v),
364
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => k(v) ? v.value = a : null),
396
365
  type: "email",
397
366
  name: "email",
398
367
  autocomplete: "email",
@@ -401,69 +370,69 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
401
370
  placeholder: e(t)("giftCard.emailPlaceholder"),
402
371
  required: ""
403
372
  }, null, 8, ["modelValue", "label", "placeholder"]),
404
- r(Ae, {
405
- modelValue: e(p),
406
- "onUpdate:modelValue": s[4] || (s[4] = (a) => C(p) ? p.value = a : null),
373
+ n(Ee, {
374
+ modelValue: e(d),
375
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => k(d) ? d.value = a : null),
407
376
  icon: "phone-office",
408
377
  label: e(t)("giftCard.phone"),
409
378
  placeholder: e(t)("giftCard.phonePlaceholder"),
410
379
  required: ""
411
380
  }, null, 8, ["modelValue", "label", "placeholder"]),
412
- r(H, {
413
- modelValue: e(m),
414
- "onUpdate:modelValue": s[5] || (s[5] = (a) => C(m) ? m.value = a : null),
381
+ n(W, {
382
+ modelValue: e(g),
383
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => k(g) ? g.value = a : null),
415
384
  type: "number",
416
385
  name: "value",
417
386
  label: e(t)("giftCard.value"),
418
387
  icon: "money-bill",
419
388
  placeholder: e(t)("giftCard.valuePlaceholder"),
420
- suffix: e(K),
389
+ suffix: e(Z),
421
390
  required: ""
422
391
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
423
- r(se, {
424
- modelValue: e(y),
425
- "onUpdate:modelValue": s[6] || (s[6] = (a) => C(y) ? y.value = a : null),
392
+ n(te, {
393
+ modelValue: e(p),
394
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => k(p) ? p.value = a : null),
426
395
  type: "checkbox",
427
396
  name: "showValue",
428
397
  label: e(t)("giftCard.showValue"),
429
- checked: e(y)
398
+ checked: e(p)
430
399
  }, null, 8, ["modelValue", "label", "checked"]),
431
400
  T("", !0),
432
- r($e, {
433
- modelValue: e(S),
434
- "onUpdate:modelValue": s[8] || (s[8] = (a) => C(S) ? S.value = a : null),
401
+ n(Ve, {
402
+ modelValue: e(m),
403
+ "onUpdate:modelValue": o[8] || (o[8] = (a) => k(m) ? m.value = a : null),
435
404
  label: e(t)("giftCard.quantity"),
436
405
  icon: "gift-card",
437
406
  required: ""
438
407
  }, null, 8, ["modelValue", "label"])
439
408
  ])
440
409
  ], 512), [
441
- [j, e(f)]
410
+ [N, e(u)]
442
411
  ]),
443
- W(u("div", null, [
444
- u("div", {
412
+ j(s("div", null, [
413
+ s("div", {
445
414
  innerHTML: e(t)("giftCard.thankYou")
446
- }, null, 8, da)
415
+ }, null, 8, la)
447
416
  ], 512), [
448
- [j, e(I)]
417
+ [N, e(R)]
449
418
  ])
450
419
  ]),
451
- q.layout !== "minimal" && e(f) ? (v(), b("div", ua, [
452
- u("div", ca, [
453
- r(B, {
420
+ q.layout !== "minimal" && e(u) ? (c(), b("div", ta, [
421
+ s("div", oa, [
422
+ n(z, {
454
423
  label: e(t)("giftCard.orderGiftCard"),
455
424
  "full-width": !0,
456
- disabled: !e(R),
425
+ disabled: !e(I),
457
426
  "is-loading": e(w),
458
- "onUpdate:isLoading": s[9] || (s[9] = (a) => C(w) ? w.value = a : null),
427
+ "onUpdate:isLoading": o[9] || (o[9] = (a) => k(w) ? w.value = a : null),
459
428
  onClickEvent: e(D)
460
429
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
461
430
  ])
462
431
  ])) : T("", !0),
463
- e(f) ? (v(), b("div", pa, [
464
- r(H, {
465
- modelValue: e(d),
466
- "onUpdate:modelValue": s[10] || (s[10] = (a) => C(d) ? d.value = a : null),
432
+ e(u) ? (c(), b("div", na, [
433
+ n(W, {
434
+ modelValue: e(r),
435
+ "onUpdate:modelValue": o[10] || (o[10] = (a) => k(r) ? r.value = a : null),
467
436
  type: "textarea",
468
437
  name: "remark",
469
438
  label: e(t)("giftCard.remark"),
@@ -471,29 +440,29 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
471
440
  placeholder: e(t)("giftCard.remarkPlaceholder")
472
441
  }, null, 8, ["modelValue", "label", "placeholder"])
473
442
  ])) : T("", !0),
474
- e(f) ? (v(), b("div", ma, [
475
- r(B, {
443
+ e(u) ? (c(), b("div", ia, [
444
+ n(z, {
476
445
  label: e(t)("giftCard.orderGiftCard"),
477
446
  "full-width": !0,
478
- disabled: !e(R),
447
+ disabled: !e(I),
479
448
  "data-test": "orderGiftCard",
480
449
  "is-loading": e(w),
481
- "onUpdate:isLoading": s[11] || (s[11] = (a) => C(w) ? w.value = a : null),
450
+ "onUpdate:isLoading": o[11] || (o[11] = (a) => k(w) ? w.value = a : null),
482
451
  onClickEvent: e(D)
483
452
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
484
- W(u("div", fa, [
485
- r(Ge)
453
+ j(s("div", sa, [
454
+ n(Re)
486
455
  ], 512), [
487
- [j, e(O)]
456
+ [N, e(H)]
488
457
  ])
489
458
  ])) : T("", !0)
490
- ])) : (v(), L(ie, { key: 1 }))
459
+ ])) : (c(), L(le, { key: 1 }))
491
460
  ]),
492
461
  _: 1
493
462
  }, 8, ["access-token", "data-layout"])
494
463
  ]),
495
464
  fallback: G(() => [
496
- r(Ze)
465
+ n(Oe)
497
466
  ]),
498
467
  _: 1
499
468
  }))
@@ -501,27 +470,36 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
501
470
  _: 1
502
471
  }, 8, ["styling"]));
503
472
  }
504
- }), N = /* @__PURE__ */ me(va, [["__scopeId", "data-v-ec9ea15b"]]), ga = Ie();
505
- class ya extends HTMLElement {
473
+ }), O = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-ec9ea15b"]]), da = Pe();
474
+ class ua extends HTMLElement {
506
475
  constructor() {
507
476
  super();
508
477
  }
509
478
  connectedCallback() {
510
- var p;
511
- const l = typeof N == "function" ? N.options : N, i = Array.isArray(l.props) ? l.props : Object.keys(l.props || {}), t = {};
512
- for (const m of i) {
513
- const d = (p = this.attributes.getNamedItem(m)) == null ? void 0 : p.value;
514
- if (!d)
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);
484
+ 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);
488
+ }
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)
515
493
  break;
516
- t[m] = d;
494
+ i[r] = p;
517
495
  }
518
- const n = Re(N, t);
519
- n.use(ga), n.use(qe), n.use(Le, { bootstrap: !0 });
496
+ const d = Te(O, i);
497
+ d.use(da), d.use(Se), d.use($e, { bootstrap: !0 });
520
498
  const g = document.createElement("div");
521
- n.mount(g), this.appendChild(g.children[0]);
499
+ d.mount(g), this.appendChild(g.children[0]);
522
500
  }
523
501
  }
524
- window.customElements.define("konnectio-gift-card", ya);
502
+ window.customElements.define("konnectio-gift-card", ua);
525
503
  export {
526
- ya as default
504
+ ua as default
527
505
  };