@konnectio/core 4.0.56-rc2 → 4.0.56-rc20

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