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