@konnectio/core 4.0.56-rc1 → 4.0.56-rc11

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 (191) hide show
  1. package/dist/{ActionField-d9rG0jaU.js → ActionField-BCGIGizy.js} +27 -28
  2. package/dist/ActionField-BCGIGizy.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-d30Akjrq.js +214 -0
  4. package/dist/AvailabilitySkeleton-d30Akjrq.js.br +0 -0
  5. package/dist/{CheckoutWindow-qcH3-VM_.js → CheckoutWindow-Er5Fh6JL.js} +46 -47
  6. package/dist/CheckoutWindow-Er5Fh6JL.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-uh-8PtWD.js} +242 -243
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js.br +0 -0
  9. package/dist/{Field-6RS3B8_R.js → Field-yVjo13cY.js} +12 -13
  10. package/dist/Field-yVjo13cY.js.br +0 -0
  11. package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js +30449 -0
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js.br +0 -0
  13. package/dist/{ThankYou-DNyz9gET.js → ThankYou-HHVwQVzN.js} +802 -821
  14. package/dist/ThankYou-HHVwQVzN.js.br +0 -0
  15. package/dist/_-3f6HQpXv.js +19 -0
  16. package/dist/_commonjsHelpers-2ufMB8rV.js +30 -0
  17. package/dist/availability.js +118 -98
  18. package/dist/availability.js.br +0 -0
  19. package/dist/{event-LEsu5Cet.js → event-ZitNye5j.js} +9 -10
  20. package/dist/event-ZitNye5j.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 +276 -268
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +1574 -1551
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +3201 -3210
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +26 -17
  34. package/dist/ActionField-d9rG0jaU.js.br +0 -0
  35. package/dist/ActionField-nq9V0_JV.cjs +0 -1
  36. package/dist/AvailabilitySkeleton-S7O6QTqw.js +0 -242
  37. package/dist/AvailabilitySkeleton-S7O6QTqw.js.br +0 -0
  38. package/dist/AvailabilitySkeleton-t04vAe88.cjs +0 -1
  39. package/dist/CheckoutWindow-qcH3-VM_.js.br +0 -0
  40. package/dist/CheckoutWindow-rPfu1tP8.cjs +0 -1
  41. package/dist/Container-SFp0kgn4.js +0 -59
  42. package/dist/Container-SFp0kgn4.js.br +0 -0
  43. package/dist/Container-lECH326w.cjs +0 -1
  44. package/dist/DateField.vue_vue_type_style_index_0_lang-P6b6EBxJ.js.br +0 -0
  45. package/dist/DateField.vue_vue_type_style_index_0_lang-UexfS9Zy.cjs +0 -2
  46. package/dist/Field-5wMDM5la.cjs +0 -1
  47. package/dist/Field-6RS3B8_R.js.br +0 -0
  48. package/dist/SelectField.vue_vue_type_style_index_0_lang-nNdXDbm1.js +0 -21406
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-nNdXDbm1.js.br +0 -0
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-rqiMQ02F.cjs +0 -851
  51. package/dist/ThankYou-DNyz9gET.js.br +0 -0
  52. package/dist/ThankYou-TJpfWuG6.cjs +0 -59
  53. package/dist/_-8x0VO3o7.js +0 -20
  54. package/dist/_-ZDO-C_Wh.cjs +0 -1
  55. package/dist/_commonjsHelpers-f3sTPFkQ.js +0 -8
  56. package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
  57. package/dist/assets/typescript/mixins.d.ts +0 -34
  58. package/dist/availability.cjs +0 -2
  59. package/dist/availability.d.ts +0 -3
  60. package/dist/components/Alert.vue.d.ts +0 -5
  61. package/dist/components/Alert.vue.d.ts.map +0 -1
  62. package/dist/components/Clickable.vue.d.ts +0 -5
  63. package/dist/components/Clickable.vue.d.ts.map +0 -1
  64. package/dist/components/Container.vue.d.ts +0 -5
  65. package/dist/components/Container.vue.d.ts.map +0 -1
  66. package/dist/components/ErrorMessage.vue.d.ts +0 -5
  67. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  68. package/dist/components/Gallery.vue.d.ts +0 -5
  69. package/dist/components/Gallery.vue.d.ts.map +0 -1
  70. package/dist/components/GoogleNotice.vue.d.ts +0 -4
  71. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  72. package/dist/components/Icon.vue.d.ts +0 -5
  73. package/dist/components/Icon.vue.d.ts.map +0 -1
  74. package/dist/components/Loading.vue.d.ts +0 -5
  75. package/dist/components/Loading.vue.d.ts.map +0 -1
  76. package/dist/components/Spinner.vue.d.ts +0 -4
  77. package/dist/components/Spinner.vue.d.ts.map +0 -1
  78. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -5
  79. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  80. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -5
  81. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  82. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -4
  83. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  84. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -5
  85. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/ReservationForm.vue.d.ts +0 -6
  87. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/_.vue.d.ts +0 -4
  89. package/dist/components/forms/_.vue.d.ts.map +0 -1
  90. package/dist/components/inputs/Checkbox.vue.d.ts +0 -5
  91. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  92. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -5
  93. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/DateField.vue.d.ts +0 -5
  95. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/InputField.vue.d.ts +0 -5
  97. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -5
  99. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/NumberField.vue.d.ts +0 -5
  101. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/SelectField.vue.d.ts +0 -5
  103. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/TextField.vue.d.ts +0 -5
  105. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/TimeField.vue.d.ts +0 -5
  107. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -5
  109. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -5
  111. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -5
  113. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -5
  115. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -5
  117. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  118. package/dist/components/listings/Base.vue.d.ts +0 -6
  119. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  120. package/dist/components/listings/Event.vue.d.ts +0 -5
  121. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  122. package/dist/components/listings/Hotel.vue.d.ts +0 -5
  123. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Template.vue.d.ts +0 -5
  125. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  126. package/dist/components/side-panels/Base.vue.d.ts +0 -6
  127. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  128. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -5
  129. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  130. package/dist/components/side-panels/Template.vue.d.ts +0 -5
  131. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -5
  133. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  134. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -5
  135. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  136. package/dist/components/skeletons/Field.vue.d.ts +0 -5
  137. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  138. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -5
  139. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -5
  141. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/Listing.vue.d.ts +0 -5
  143. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -5
  145. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/_.vue.d.ts +0 -5
  147. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  148. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -5
  149. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  150. package/dist/components/views/TermsOfService.vue.d.ts +0 -5
  151. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  152. package/dist/components/views/ThankYou.vue.d.ts +0 -5
  153. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  154. package/dist/entries/availability.d.ts +0 -5
  155. package/dist/entries/event.d.ts +0 -2
  156. package/dist/entries/gift-card-validation.d.ts +0 -5
  157. package/dist/entries/gift-card.d.ts +0 -5
  158. package/dist/entries/hotel.d.ts +0 -5
  159. package/dist/entries/navigation.d.ts +0 -1
  160. package/dist/entries/polyfill.d.ts +0 -0
  161. package/dist/event-BwfZY1iy.cjs +0 -1
  162. package/dist/event-LEsu5Cet.js.br +0 -0
  163. package/dist/event.cjs +0 -1
  164. package/dist/event.d.ts +0 -3
  165. package/dist/gift-card-validation.cjs +0 -1
  166. package/dist/gift-card-validation.d.ts +0 -3
  167. package/dist/gift-card.cjs +0 -1
  168. package/dist/gift-card.d.ts +0 -3
  169. package/dist/hotel.cjs +0 -19
  170. package/dist/hotel.d.ts +0 -3
  171. package/dist/layouts/Availability.vue.d.ts +0 -25
  172. package/dist/layouts/Event.vue.d.ts +0 -18
  173. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  174. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  175. package/dist/layouts/Hotel.vue.d.ts +0 -36
  176. package/dist/layouts/_.vue.d.ts +0 -39
  177. package/dist/navigation.cjs +0 -1
  178. package/dist/navigation.d.ts +0 -1
  179. package/dist/plugins/i18n.d.ts +0 -5
  180. package/dist/polyfill.cjs +0 -4
  181. package/dist/polyfill.d.ts +0 -1
  182. package/dist/store/alert.d.ts +0 -28
  183. package/dist/store/applyGiftCard.d.ts +0 -28
  184. package/dist/store/availability.d.ts +0 -40
  185. package/dist/store/event.d.ts +0 -683
  186. package/dist/store/giftCard.d.ts +0 -83
  187. package/dist/store/payment.d.ts +0 -139
  188. package/dist/store/recaptcha.d.ts +0 -28
  189. package/dist/store/tracking.d.ts +0 -57
  190. package/dist/store/utilities.d.ts +0 -350
  191. 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 de, u as ue, s as J, c as ne, r as _, ae as E, e as K, f as V, j as ee, S as Y, i as ce, h as pe, af as me, k as Q, B as ie, b as fe, o as c, m as A, w as B, x as s, l as h, p as n, z as e, C as z, n as w, q as se, I as ve, _ as re, Y as ge, Z as he, D as be, F as ae, ag as j, ah as N, $ as ye, a6 as ke, G as $, y as Ce, a7 as le, T as W, A as _e, M as Ve, N as we, R as Fe, U as Pe, V as Te, ab as $e } from "./SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js";
2
+ import { a as Se, C as Ue, P as Ee, _ as Re } from "./CheckoutWindow-Er5Fh6JL.js";
3
+ import { E as Ie } from "./_-3f6HQpXv.js";
4
+ import { F as x } from "./Field-yVjo13cY.js";
5
+ import "./_commonjsHelpers-2ufMB8rV.js";
6
+ const te = de("giftCard", () => {
7
+ const { pay: S } = ue(), { bearerToken: f, metaData: k, currencyId: t } = J(ne()), r = _(E.InitialState), b = K("konnectio_name", "", void 0, { serializer: Y.string }), i = K("konnectio_email", "", void 0, { serializer: Y.string }), m = K("konnectio_phone", "", void 0, { serializer: Y.string }), g = _(""), p = _(1), d = _(!0), v = _(""), C = _({
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 = _(void 0), u = _(0), y = _(!1), I = _(0), F = V(() => r.value === E.InitialState || r.value === E.WaitingForResponse), q = V(() => r.value === E.ReadyToPay), M = V(() => r.value === E.PaymentSuccess), P = V(() => {
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
+ }, U = k.value.hotels[0].places;
22
+ return U && U.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
+ }), G = V(() => I.value !== 0), R = V(() => {
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 (G.value)
30
+ a = P.value[I.value].data[0];
31
+ else if (u.value !== 0) {
32
+ const U = l.value, T = P.value[u.value].data;
33
+ T.length === 1 ? a = T[0] : U !== void 0 && T.forEach((X) => {
34
+ String(X.id) === String(U) && (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 = V(() => !(!b.value || !i.value || !(m.value.length >= 5) || !g.value || R.value === void 0)), H = V(() => !(r.value === E.InitialState && y.value)), Z = V(() => !!(r.value === E.WaitingForResponse && y.value));
39
+ async function L() {
40
+ r.value = E.WaitingForResponse, y.value = !0, await ce.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: pe(),
45
+ amount: g.value,
46
+ quantity: p.value,
47
+ freeText: v.value,
48
+ showPrice: d.value,
49
+ contactName: b.value,
50
+ contactEmail: i.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: me(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-rc11"
64
62
  }
65
63
  }).then((a) => {
66
- d.value = U.ReadyToPay, f.value = !1, h({
64
+ r.value = E.ReadyToPay, y.value = !1, S({
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: $,
77
- moduleState: d,
78
- name: P,
79
- email: u,
74
+ selectedPlace: R,
75
+ moduleState: r,
76
+ name: b,
77
+ email: i,
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: d,
82
+ quantity: p,
83
+ media: C,
86
84
  placeId: l,
87
- placeType: r,
88
- showFormPage: C,
85
+ placeType: u,
86
+ showFormPage: F,
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: G,
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 }, Be = { key: 1 }, ze = { key: 2 }, Ge = ["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(S, { emit: f }) {
108
+ const k = f, t = S, { t: r } = ie(), { display: b } = fe(), i = _(), m = V(() => t.modelValue.base64 !== "");
109
+ function g(l) {
110
+ k("update:modelValue", l);
113
111
  }
114
- function w() {
115
- k({
112
+ function p() {
113
+ g({
116
114
  base64: "",
117
115
  name: "",
118
116
  type: ""
119
- }), u.value && (u.value.value = "");
117
+ }), i.value && (i.value.value = "");
120
118
  }
121
- function T() {
122
- u.value && u.value.click();
119
+ function d() {
120
+ i.value && i.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, u) {
123
+ const [y, I] = [l.name, l.type], F = new FileReader();
124
+ F.onload = function(q) {
127
125
  if (q.target) {
128
126
  const M = q.target.result;
129
- r({ base64: M, name: f, type: E });
127
+ u({ base64: M, name: y, type: I });
130
128
  } else
131
- P({
132
- message: d("imageUploadError"),
129
+ b({
130
+ message: r("imageUploadError"),
133
131
  type: "error"
134
132
  });
135
- }, C.readAsDataURL(l);
133
+ }, F.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 = i.value.files) instanceof FileList && v(l[0], g);
140
138
  }
141
- return (l, r) => (s(), L(Ve, {
139
+ return (l, u) => (c(), A(ve, {
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: B(() => [
145
+ s("div", qe, [
146
+ s("input", {
149
147
  ref_key: "fileInput",
150
- ref: u,
148
+ ref: i,
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, {
161
- label: e(d)("uploadFile"),
153
+ onChange: u[0] || (u[0] = (y) => C())
154
+ }, null, 40, Le),
155
+ s("div", Ae, [
156
+ s("ul", Me, [
157
+ m.value ? w("", !0) : (c(), h("li", xe, [
158
+ n(z, {
159
+ label: e(r)("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: u[1] || (u[1] = (y) => d())
166
164
  }, null, 8, ["label", "icon-color"])
167
165
  ])),
168
- m.value ? (s(), c("li", ze, [
169
- i(z, {
170
- label: e(d)("replaceFile"),
166
+ m.value ? (c(), h("li", Be, [
167
+ n(z, {
168
+ label: e(r)("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: u[2] || (u[2] = (y) => d())
175
173
  }, null, 8, ["label", "icon-color"])
176
- ])) : F("", !0),
177
- m.value ? (s(), c("li", Ae, [
178
- i(z, {
179
- label: e(d)("removeFile"),
174
+ ])) : w("", !0),
175
+ m.value ? (c(), h("li", ze, [
176
+ n(z, {
177
+ label: e(r)("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: u[3] || (u[3] = (y) => p())
184
182
  }, null, 8, ["label", "icon-color"])
185
- ])) : F("", !0)
183
+ ])) : w("", !0)
186
184
  ]),
187
- n("div", {
188
- class: ne([
185
+ s("div", {
186
+ class: se([
189
187
  "media-selector-previewer",
190
188
  { opened: m.value }
191
189
  ])
192
190
  }, [
193
- l.modelValue ? (s(), c("img", {
191
+ l.modelValue ? (c(), h("img", {
194
192
  key: 0,
195
193
  src: l.modelValue.base64
196
- }, null, 8, Be)) : F("", !0)
194
+ }, null, 8, Ge)) : w("", !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 oe(S) {
204
+ const f = S;
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 oe == "function" && oe(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(S) {
227
+ return (f, k) => (c(), h("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" })
237
235
  ])
238
236
  ]));
239
237
  }
240
- }), Oe = /* @__PURE__ */ de(Ne, [["__scopeId", "data-v-e35c75b3"]]), Ke = {
238
+ }), Oe = /* @__PURE__ */ re(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__ */ se(["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,201 @@ 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(S) {
265
+ const f = S, k = V(() => ({
268
266
  panelMaxWidth: "800px",
269
- ...p.styling
270
- })), { t: o } = se(), {
271
- name: d,
272
- email: P,
273
- phone: u,
267
+ ...f.styling
268
+ })), { t } = ie(), {
269
+ name: r,
270
+ email: b,
271
+ phone: i,
274
272
  value: m,
275
- remark: k,
276
- showValue: w,
277
- quantity: T,
278
- media: G,
279
- placeId: v,
273
+ remark: g,
274
+ showValue: p,
275
+ quantity: d,
276
+ media: v,
277
+ placeId: C,
280
278
  placeType: l,
281
- showFormPage: r,
282
- showPaymentPage: f,
283
- showConfirmationPage: E,
284
- places: C,
279
+ showFormPage: u,
280
+ showPaymentPage: y,
281
+ showConfirmationPage: I,
282
+ places: F,
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: G
287
+ } = J(te()), { initialize: R, orderGiftCard: D } = te(), { isRecaptchaEnabled: H, currency: Z } = J(ne());
288
+ return ge(l, () => {
289
+ C.value = void 0;
290
+ }), he(() => {
291
+ const L = f.placeType ? parseInt(f.placeType) : void 0;
292
+ R(L);
293
+ }), (L, o) => (c(), A(we, { styling: k.value }, {
294
+ default: B(() => [
295
+ (c(), A(be, null, {
296
+ default: B(() => [
297
+ n(Ve, {
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: B(() => [
304
+ e(G) ? (c(), h("div", He, [
305
+ s("h2", Ze, [
306
+ s("span", null, ae(e(t)("giftCard.title")), 1)
309
307
  ]),
310
- n("div", Ye, [
311
- W(n("div", Qe, [
312
- i(Ee)
308
+ s("div", Ke, [
309
+ j(s("div", Ye, [
310
+ n(Se)
313
311
  ], 512), [
314
- [j, e(f)]
312
+ [N, e(y)]
315
313
  ]),
316
- W(n("div", null, [
317
- n("p", {
314
+ j(s("div", null, [
315
+ s("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
+ s("form", null, [
320
+ e(M) ? w("", !0) : (c(), h("div", Qe, [
321
+ e(F) ? (c(), h("div", Xe, [
322
+ s("label", ea, [
323
+ s("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
+ s("div", aa, [
326
+ s("ul", null, [
327
+ (c(!0), h(ye, null, ke(e(F), (a, U) => (c(), h("li", { key: U }, [
328
+ n(Ue, {
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: U,
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(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (c(), A(Ce, {
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(F)[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"])) : w("", !0)
350
348
  ])
351
- ])) : (s(), L(le, { key: 1 }))
349
+ ])) : (c(), A(le, { key: 1 }))
352
350
  ])),
353
- i(H, {
354
- modelValue: e(d),
355
- "onUpdate:modelValue": t[2] || (t[2] = (a) => g(d) ? d.value = a : null),
351
+ n(W, {
352
+ modelValue: e(r),
353
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => $(r) ? r.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(b),
364
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => $(b) ? b.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(i),
375
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => $(i) ? i.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),
397
- type: "checkbox",
398
- name: "showValue",
399
- label: e(o)("giftCard.showValue"),
400
- checked: e(w)
401
- }, 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"),
392
+ w("", !0),
393
+ w("", !0),
394
+ n(_e, {
395
+ modelValue: e(d),
396
+ "onUpdate:modelValue": o[8] || (o[8] = (a) => $(d) ? d.value = a : null),
397
+ label: e(t)("giftCard.quantity"),
407
398
  icon: "gift-card",
408
399
  required: ""
409
400
  }, null, 8, ["modelValue", "label"])
410
401
  ])
411
402
  ], 512), [
412
- [j, e(r)]
403
+ [N, e(u)]
413
404
  ]),
414
- W(n("div", null, [
415
- n("div", {
416
- innerHTML: e(o)("giftCard.thankYou")
417
- }, null, 8, ta)
405
+ j(s("div", null, [
406
+ s("div", {
407
+ innerHTML: e(t)("giftCard.thankYou")
408
+ }, null, 8, la)
418
409
  ], 512), [
419
- [j, e(E)]
410
+ [N, e(I)]
420
411
  ])
421
412
  ]),
422
- I.layout !== "minimal" && e(r) ? (s(), c("div", oa, [
423
- n("div", ia, [
424
- i(z, {
425
- label: e(o)("giftCard.orderGiftCard"),
413
+ L.layout !== "minimal" && e(u) ? (c(), h("div", ta, [
414
+ s("div", oa, [
415
+ n(z, {
416
+ label: e(t)("giftCard.orderGiftCard"),
426
417
  "full-width": !0,
427
418
  disabled: !e(q),
428
- "is-loading": e(_),
429
- "onUpdate:isLoading": t[9] || (t[9] = (a) => g(_) ? _.value = a : null),
430
- onClickEvent: e(B)
419
+ "is-loading": e(P),
420
+ "onUpdate:isLoading": o[9] || (o[9] = (a) => $(P) ? P.value = a : null),
421
+ onClickEvent: e(D)
431
422
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
432
423
  ])
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),
424
+ ])) : w("", !0),
425
+ e(u) ? (c(), h("div", na, [
426
+ n(W, {
427
+ modelValue: e(g),
428
+ "onUpdate:modelValue": o[10] || (o[10] = (a) => $(g) ? g.value = a : null),
438
429
  type: "textarea",
439
430
  name: "remark",
440
- label: e(o)("giftCard.remark"),
431
+ label: e(t)("giftCard.remark"),
441
432
  icon: "info-circle",
442
- placeholder: e(o)("giftCard.remarkPlaceholder")
433
+ placeholder: e(t)("giftCard.remarkPlaceholder")
443
434
  }, null, 8, ["modelValue", "label", "placeholder"])
444
- ])) : F("", !0),
445
- e(r) ? (s(), c("div", ra, [
446
- i(z, {
447
- label: e(o)("giftCard.orderGiftCard"),
435
+ ])) : w("", !0),
436
+ e(u) ? (c(), h("div", ia, [
437
+ n(z, {
438
+ label: e(t)("giftCard.orderGiftCard"),
448
439
  "full-width": !0,
449
440
  disabled: !e(q),
450
441
  "data-test": "orderGiftCard",
451
- "is-loading": e(_),
452
- "onUpdate:isLoading": t[11] || (t[11] = (a) => g(_) ? _.value = a : null),
453
- onClickEvent: e(B)
442
+ "is-loading": e(P),
443
+ "onUpdate:isLoading": o[11] || (o[11] = (a) => $(P) ? P.value = a : null),
444
+ onClickEvent: e(D)
454
445
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
455
- W(n("div", sa, [
456
- i(Ie)
446
+ j(s("div", sa, [
447
+ n(Re)
457
448
  ], 512), [
458
- [j, e(O)]
449
+ [N, e(H)]
459
450
  ])
460
- ])) : F("", !0)
461
- ])) : (s(), L(le, { key: 1 }))
451
+ ])) : w("", !0)
452
+ ])) : (c(), A(le, { key: 1 }))
462
453
  ]),
463
454
  _: 1
464
455
  }, 8, ["access-token", "data-layout"])
465
456
  ]),
466
- fallback: D(() => [
467
- i(Oe)
457
+ fallback: B(() => [
458
+ n(Oe)
468
459
  ]),
469
460
  _: 1
470
461
  }))
@@ -472,16 +463,33 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
472
463
  _: 1
473
464
  }, 8, ["styling"]));
474
465
  }
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);
466
+ }), O = /* @__PURE__ */ re(ra, [["__scopeId", "data-v-bb42a1d9"]]), da = Fe();
467
+ class ua extends HTMLElement {
468
+ constructor() {
469
+ super();
483
470
  }
484
- };
471
+ connectedCallback() {
472
+ const f = typeof O == "function" ? O.options : O;
473
+ let k = Array.isArray(f.props) ? f.props : Object.keys(f.props || {});
474
+ const t = (p) => p.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (d, v) => (v ? "-" : "") + d.toLowerCase()), r = (p) => p.replace(/-./g, (d) => d[1].toUpperCase()), b = {};
475
+ k = k.map(t);
476
+ const i = {};
477
+ for (const p of this.attributes) {
478
+ const d = p.name, v = d.split(".");
479
+ console.log(d, v.length), v.length > 1 && (i[v[0]] || (i[v[0]] = {}), i[v[0]][r(v[1])] = p.value);
480
+ }
481
+ console.log(i), console.log(k);
482
+ for (const p of k) {
483
+ let d = this.attributes.getNamedItem(p)?.value;
484
+ i.hasOwnProperty(p) && (d = i[p]), console.log(d, p), b[p] = d;
485
+ }
486
+ const m = Pe(O, b);
487
+ m.use(da), m.use(Te), m.use($e, { bootstrap: !0 });
488
+ const g = document.createElement("div");
489
+ m.mount(g), this.appendChild(g.children[0]);
490
+ }
491
+ }
492
+ window.customElements.define("konnectio-gift-card", ua);
485
493
  export {
486
- ya as default
494
+ ua as default
487
495
  };