@konnectio/core 4.0.56-rc6 → 4.0.56-rc60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/{ActionField-YyW_C34E.js → ActionField-M9Xn2IjF.js} +43 -34
  2. package/dist/ActionField-M9Xn2IjF.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-CmB18GBl.js +294 -0
  4. package/dist/AvailabilitySkeleton-CmB18GBl.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js +8213 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js.br +0 -0
  7. package/dist/CheckoutWindow-Bhwi8Nxq.js +677 -0
  8. package/dist/CheckoutWindow-Bhwi8Nxq.js.br +0 -0
  9. package/dist/ErrorMessage-Cf84tBwS.js +45 -0
  10. package/dist/ErrorMessage-Cf84tBwS.js.br +0 -0
  11. package/dist/EventAvailabilityForm-ayhrj2Dh.js +117 -0
  12. package/dist/EventAvailabilityForm-ayhrj2Dh.js.br +0 -0
  13. package/dist/Field-w5TiS3qQ.js +50 -0
  14. package/dist/Field-w5TiS3qQ.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js +18601 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js.br +0 -0
  17. package/dist/TermsOfService-DG9RmJhS.js +36 -0
  18. package/dist/TermsOfService-DG9RmJhS.js.br +0 -0
  19. package/dist/_-C3cdq-vi.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js.br +0 -0
  22. package/dist/_commonjsHelpers-Bwmg5gQN.js +17 -0
  23. package/dist/_sentry-release-injection-file-Bs1oW58-.js +9524 -0
  24. package/dist/_sentry-release-injection-file-Bs1oW58-.js.br +0 -0
  25. package/dist/availability.js +90 -140
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +62 -0
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +790 -500
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +113 -68
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +353 -409
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-BvD5QzCq.js +134 -0
  36. package/dist/giftCard-BvD5QzCq.js.br +0 -0
  37. package/dist/hotel.js +1516 -2445
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-C_Lw26Pq.js +12782 -0
  40. package/dist/masonry.plugin-C_Lw26Pq.js.br +0 -0
  41. package/dist/mitt-Djl3HvxD.js +2953 -0
  42. package/dist/mitt-Djl3HvxD.js.br +0 -0
  43. package/dist/polyfill.js +15079 -4765
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/tracing-SGZEiE7O.js +2287 -0
  48. package/dist/tracing-SGZEiE7O.js.br +0 -0
  49. package/package.json +48 -42
  50. package/dist/ActionField-YyW_C34E.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-lYcDX41T.js +0 -239
  52. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  53. package/dist/CheckoutWindow-T7-vrZyG.js +0 -205
  54. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  55. package/dist/Container-w7O0He-s.js +0 -68
  56. package/dist/Container-w7O0He-s.js.br +0 -0
  57. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js +0 -8566
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  59. package/dist/Field-fWwF40rD.js +0 -42
  60. package/dist/Field-fWwF40rD.js.br +0 -0
  61. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +0 -30461
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  63. package/dist/ThankYou-pUA2X7-4.js +0 -13316
  64. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  65. package/dist/_-TlutFgf7.js +0 -19
  66. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  67. package/dist/assets/typescript/mixins.d.ts +0 -34
  68. package/dist/availability.d.ts +0 -3
  69. package/dist/components/Alert.vue.d.ts +0 -28
  70. package/dist/components/Alert.vue.d.ts.map +0 -1
  71. package/dist/components/Clickable.vue.d.ts +0 -60
  72. package/dist/components/Clickable.vue.d.ts.map +0 -1
  73. package/dist/components/Container.vue.d.ts +0 -23
  74. package/dist/components/Container.vue.d.ts.map +0 -1
  75. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  76. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  77. package/dist/components/Gallery.vue.d.ts +0 -31
  78. package/dist/components/Gallery.vue.d.ts.map +0 -1
  79. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  80. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  81. package/dist/components/Icon.vue.d.ts +0 -38
  82. package/dist/components/Icon.vue.d.ts.map +0 -1
  83. package/dist/components/Loading.vue.d.ts +0 -29
  84. package/dist/components/Loading.vue.d.ts.map +0 -1
  85. package/dist/components/Spinner.vue.d.ts +0 -2
  86. package/dist/components/Spinner.vue.d.ts.map +0 -1
  87. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  88. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  89. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  90. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  91. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  92. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  93. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  94. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  95. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  96. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  97. package/dist/components/forms/_.vue.d.ts +0 -42
  98. package/dist/components/forms/_.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  100. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  102. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  104. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  106. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  108. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  110. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  111. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  112. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  113. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  114. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  115. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  116. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  117. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  118. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  119. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  120. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  121. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  122. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  123. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  124. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  125. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  126. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  127. package/dist/components/listings/Base.vue.d.ts +0 -56
  128. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  129. package/dist/components/listings/Event.vue.d.ts +0 -47
  130. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  131. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  132. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  133. package/dist/components/listings/Template.vue.d.ts +0 -21
  134. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  135. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  136. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  137. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  138. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  139. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  140. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  141. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  142. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  143. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  144. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  145. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  146. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  147. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  148. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  149. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  150. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  151. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  152. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  153. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  154. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  155. package/dist/components/skeletons/_.vue.d.ts +0 -36
  156. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  157. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  158. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  159. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  160. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  161. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  162. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  163. package/dist/entries/availability.d.ts +0 -5
  164. package/dist/entries/event.d.ts +0 -2
  165. package/dist/entries/gift-card-validation.d.ts +0 -5
  166. package/dist/entries/gift-card.d.ts +0 -5
  167. package/dist/entries/hotel.d.ts +0 -5
  168. package/dist/entries/navigation.d.ts +0 -1
  169. package/dist/entries/polyfill.d.ts +0 -0
  170. package/dist/event-mDcuoL9g.js +0 -358
  171. package/dist/event-mDcuoL9g.js.br +0 -0
  172. package/dist/event.d.ts +0 -3
  173. package/dist/gift-card-validation.d.ts +0 -3
  174. package/dist/gift-card.d.ts +0 -3
  175. package/dist/hotel.d.ts +0 -3
  176. package/dist/layouts/Availability.vue.d.ts +0 -25
  177. package/dist/layouts/Event.vue.d.ts +0 -18
  178. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  179. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  180. package/dist/layouts/Hotel.vue.d.ts +0 -36
  181. package/dist/layouts/_.vue.d.ts +0 -39
  182. package/dist/navigation.d.ts +0 -1
  183. package/dist/navigation.js +0 -1
  184. package/dist/plugins/i18n.d.ts +0 -5
  185. package/dist/polyfill.d.ts +0 -1
  186. package/dist/store/alert.d.ts +0 -28
  187. package/dist/store/applyGiftCard.d.ts +0 -28
  188. package/dist/store/availability.d.ts +0 -40
  189. package/dist/store/event.d.ts +0 -683
  190. package/dist/store/giftCard.d.ts +0 -83
  191. package/dist/store/payment.d.ts +0 -139
  192. package/dist/store/recaptcha.d.ts +0 -28
  193. package/dist/store/tracking.d.ts +0 -57
  194. package/dist/store/utilities.d.ts +0 -350
  195. package/dist/types/index.d.ts +0 -976
package/dist/event.js.br CHANGED
Binary file
@@ -1,79 +1,115 @@
1
- import { k as w, F as A, s as V, a as _, c as S, o as y, m as v, w as g, G as X, p, x as t, H as s, z as a, J as L, l as I, K as C, L as x, M as N, n as T, N as B, P as E, Q as M, R as D, _ as G, U as H, V as U, W as P } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
2
- import { A as R } from "./ActionField-YyW_C34E.js";
3
- import { C as $ } from "./Container-w7O0He-s.js";
4
- import "./_commonjsHelpers-4t9S7M5p.js";
5
- const F = (i) => (M("data-v-0b17aac3"), i = i(), D(), i), j = ["innerHTML"], z = {
1
+ import { d as S, a as f, g as V, e as t, f as o, c as X, b as _, w as v, S as P, u as e, t as u, v as w, i as T, h as $, k as B } from "./_sentry-release-injection-file-Bs1oW58-.js";
2
+ import { u as N, s as x, c as U, i as O, m as z } from "./mitt-Djl3HvxD.js";
3
+ import { u as F, c as H } from "./giftCard-BvD5QzCq.js";
4
+ import { E as k, _ as L, q as E, e as j, I as C, h as R, f as Z, C as q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js";
5
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-DUgEPbV0.js";
6
+ import { A as J } from "./ActionField-M9Xn2IjF.js";
7
+ import { F as I } from "./Field-w5TiS3qQ.js";
8
+ import { E as K } from "./ErrorMessage-Cf84tBwS.js";
9
+ (function() {
10
+ try {
11
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
12
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "ed835707-a344-48bb-90f3-85348569da37", r._sentryDebugIdIdentifier = "sentry-dbid-ed835707-a344-48bb-90f3-85348569da37");
13
+ } catch {
14
+ }
15
+ })();
16
+ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */ S({
17
+ __name: "GiftCardValidationSkeleton",
18
+ setup(r) {
19
+ return (s, c) => (f(), V("div", Q, [
20
+ t("div", Y, [
21
+ t("div", tt, [
22
+ o(k, { height: "20px" }),
23
+ o(k, { height: "15px" }),
24
+ o(k, { height: "15px" })
25
+ ]),
26
+ t("div", et, [
27
+ o(I),
28
+ o(I, { "no-label": "" })
29
+ ])
30
+ ])
31
+ ]));
32
+ }
33
+ }), nt = /* @__PURE__ */ L(at, [["__scopeId", "data-v-b1601b74"]]), ot = ["innerHTML"], st = {
6
34
  key: 0,
7
- id: "fresh-booking-gift-card-validation-resume",
8
- class: "fresh-booking-panel"
9
- }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ w({
35
+ id: "konnectio-gift-card-validation-resume",
36
+ class: "konnectio-panel"
37
+ }, it = /* @__PURE__ */ S({
10
38
  name: "GiftCardValidationLayout",
11
39
  __name: "GiftCardValidation",
12
40
  props: {
13
41
  accessToken: {},
14
42
  styling: {}
15
43
  },
16
- setup(i) {
17
- const { t: e } = A(), {
18
- voucher: l,
19
- isValid: c,
20
- amount: r,
21
- expirationDate: u,
22
- productName: f,
23
- isLoading: o
24
- } = V(_()), { currency: m } = V(S()), { apply: h } = _();
25
- return (k, n) => (y(), v($, { styling: k.styling }, {
26
- default: g(() => [
27
- (y(), v(X, null, {
28
- default: g(() => [
29
- p(E, {
30
- id: "fresh-booking-gift-card-validation-module",
31
- "access-token": k.accessToken,
32
- type: "gift-card"
44
+ setup(r) {
45
+ const s = r, c = X(() => ({
46
+ panelMaxWidth: "800px",
47
+ ...s.styling
48
+ })), { t: i } = N(), {
49
+ voucher: m,
50
+ isValid: h,
51
+ amount: p,
52
+ expirationDate: b,
53
+ productName: a,
54
+ isLoading: n
55
+ } = x(E()), { currency: l, hasError: G } = x(j()), { fetchMetadata: D } = F(), { apply: A } = E();
56
+ return (M, d) => (f(), _(q, { styling: c.value }, {
57
+ default: v(() => [
58
+ (f(), _(P, null, {
59
+ default: v(() => [
60
+ o(W, {
61
+ "access-token": M.accessToken,
62
+ callback: e(D)
33
63
  }, {
34
- default: g(() => [
35
- t("form", {
36
- onSubmit: n[3] || (n[3] = B((d) => a(h)(), ["prevent"]))
64
+ default: v(() => [
65
+ e(G) ? (f(), _(K, {
66
+ key: 1,
67
+ title: "Unable to render Gift card validation module",
68
+ description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
69
+ })) : (f(), V("form", {
70
+ key: 0,
71
+ id: "konnectio-gift-card-validation-module",
72
+ onSubmit: d[3] || (d[3] = $((g) => e(A)(), ["prevent"]))
37
73
  }, [
38
74
  t("h4", null, [
39
- t("span", null, s(a(e)("giftCardValidation.title")), 1)
75
+ t("span", null, u(e(i)("giftCardValidation.title")), 1)
40
76
  ]),
41
77
  t("p", {
42
- innerHTML: a(e)("giftCardValidation.description")
43
- }, null, 8, j),
44
- p(R, {
45
- modelValue: a(l),
46
- "onUpdate:modelValue": n[0] || (n[0] = (d) => L(l) ? l.value = d : null),
78
+ innerHTML: e(i)("giftCardValidation.description")
79
+ }, null, 8, ot),
80
+ o(J, {
81
+ modelValue: e(m),
82
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
47
83
  icon: "gift-card",
48
- label: a(e)("booking.reservation.giftCardCode"),
49
- buttonLabel: a(e)("giftCardValidation.submitButton"),
84
+ label: e(i)("booking.reservation.giftCardCode"),
85
+ buttonLabel: e(i)("giftCardValidation.submitButton"),
50
86
  placeholder: "XXXXXXXX",
51
- "is-loading": a(o),
52
- "onUpdate:isLoading": n[1] || (n[1] = (d) => L(o) ? o.value = d : null),
53
- onAction: n[2] || (n[2] = (d) => a(h)())
87
+ "is-loading": e(n),
88
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
89
+ onAction: d[2] || (d[2] = (g) => e(A)())
54
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
55
- !a(o) && a(c) ? (y(), I("table", z, [
91
+ !e(n) && e(h) ? (f(), V("table", st, [
56
92
  t("thead", null, [
57
93
  t("tr", null, [
58
94
  t("th", null, [
59
- t("span", null, s(a(e)("giftCardValidation.giftCard")), 1),
60
- p(C, {
95
+ t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
96
+ o(C, {
61
97
  icon: "gift-card",
62
98
  type: "fas",
63
99
  color: "header"
64
100
  })
65
101
  ]),
66
102
  t("th", null, [
67
- t("span", null, s(a(e)("giftCardValidation.balance")), 1),
68
- p(C, {
103
+ t("span", null, u(e(i)("giftCardValidation.balance")), 1),
104
+ o(C, {
69
105
  icon: "money-bill",
70
106
  type: "fas",
71
107
  color: "header"
72
108
  })
73
109
  ]),
74
110
  t("th", null, [
75
- t("span", null, s(a(e)("giftCardValidation.expirationDate")), 1),
76
- p(C, {
111
+ t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
112
+ o(C, {
77
113
  icon: "timer",
78
114
  type: "fas",
79
115
  color: "header"
@@ -84,24 +120,24 @@ const F = (i) => (M("data-v-0b17aac3"), i = i(), D(), i), j = ["innerHTML"], z =
84
120
  t("tbody", null, [
85
121
  t("tr", null, [
86
122
  t("td", null, [
87
- t("span", null, s(a(f)), 1)
123
+ t("span", null, u(e(a)), 1)
88
124
  ]),
89
125
  t("td", null, [
90
- t("span", null, s(a(x)(a(r), a(m))), 1)
126
+ t("span", null, u(e(R)(e(p), e(l))), 1)
91
127
  ]),
92
128
  t("td", null, [
93
- t("span", null, s(a(N)(a(u))), 1)
129
+ t("span", null, u(e(Z)(e(b))), 1)
94
130
  ])
95
131
  ])
96
132
  ])
97
133
  ])) : T("", !0)
98
- ], 32)
134
+ ], 32))
99
135
  ]),
100
136
  _: 1
101
- }, 8, ["access-token"])
137
+ }, 8, ["access-token", "callback"])
102
138
  ]),
103
- fallback: g(() => [
104
- J
139
+ fallback: v(() => [
140
+ o(nt)
105
141
  ]),
106
142
  _: 1
107
143
  }))
@@ -109,27 +145,36 @@ const F = (i) => (M("data-v-0b17aac3"), i = i(), D(), i), j = ["innerHTML"], z =
109
145
  _: 1
110
146
  }, 8, ["styling"]));
111
147
  }
112
- }), b = /* @__PURE__ */ G(K, [["__scopeId", "data-v-0b17aac3"]]), O = H();
113
- class Q extends HTMLElement {
148
+ }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = U(), rt = z();
149
+ class dt extends HTMLElement {
150
+ vueApp;
114
151
  constructor() {
115
152
  super();
116
153
  }
154
+ disconnectedCallback() {
155
+ this.vueApp.unmount();
156
+ }
117
157
  connectedCallback() {
118
- var f;
119
- const e = typeof b == "function" ? b.options : b, l = Array.isArray(e.props) ? e.props : Object.keys(e.props || {}), c = {};
120
- for (const o of l) {
121
- const m = (f = this.attributes.getNamedItem(o)) == null ? void 0 : f.value;
122
- if (!m)
123
- break;
124
- c[o] = m;
158
+ const s = typeof y == "function" ? y.options : y;
159
+ let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
160
+ const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), h = {};
161
+ c = c.map(i);
162
+ const p = {};
163
+ for (const a of this.attributes) {
164
+ const l = a.name.split(".");
165
+ l.length > 1 && (p[l[0]] || (p[l[0]] = {}), p[l[0]][m(l[1])] = a.value);
166
+ }
167
+ for (const a of c) {
168
+ let n = this.attributes.getNamedItem(a)?.value;
169
+ p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
125
170
  }
126
- const r = U(b, c);
127
- r.use(O), r.use(P);
128
- const u = document.createElement("div");
129
- r.mount(u), this.appendChild(u.children[0]);
171
+ this.vueApp = B(y, h), H(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(O);
172
+ const b = document.createElement("div");
173
+ this.vueApp.mount(b), this.appendChild(b.children[0]);
130
174
  }
131
175
  }
132
- window.customElements.define("konnectio-gift-card-validation", Q);
176
+ window.customElements.define("konnectio-gift-card-validation", dt);
133
177
  export {
134
- Q as default
178
+ dt as default
135
179
  };
180
+ //# sourceMappingURL=gift-card-validation.js.map
Binary file