@konnectio/core 4.0.55 → 4.0.56-rc10

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