@konnectio/core 4.0.56-rc4 → 4.0.56-rc41

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 (187) hide show
  1. package/dist/{ActionField-UFZMmHDy.js → ActionField-B7yd3wqo.js} +39 -31
  2. package/dist/ActionField-B7yd3wqo.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BFkO-iFk.js +288 -0
  4. package/dist/AvailabilitySkeleton-BFkO-iFk.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvsxXVBB.js +7746 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvsxXVBB.js.br +0 -0
  7. package/dist/CheckoutWindow-DXpTb3IM.js +668 -0
  8. package/dist/CheckoutWindow-DXpTb3IM.js.br +0 -0
  9. package/dist/ErrorMessage-DURaj0JK.js +45 -0
  10. package/dist/ErrorMessage-DURaj0JK.js.br +0 -0
  11. package/dist/EventAvailabilityForm-EdvNJO4b.js +432 -0
  12. package/dist/EventAvailabilityForm-EdvNJO4b.js.br +0 -0
  13. package/dist/Field-C31DtxD3.js +50 -0
  14. package/dist/Field-C31DtxD3.js.br +0 -0
  15. package/dist/{SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js} +9594 -9834
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js.br +0 -0
  17. package/dist/TermsOfService-RMTyUzQE.js +35 -0
  18. package/dist/TermsOfService-RMTyUzQE.js.br +0 -0
  19. package/dist/_-C4rdBIG5.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-DxTbCVt9.js +71 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DxTbCVt9.js.br +0 -0
  22. package/dist/_commonjsHelpers-BpcYSDvQ.js +11797 -0
  23. package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
  24. package/dist/availability.js +95 -147
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +723 -494
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +120 -64
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +364 -410
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/giftCard-CTOcXgxl.js +128 -0
  33. package/dist/giftCard-CTOcXgxl.js.br +0 -0
  34. package/dist/hotel.js +1372 -2419
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/masonry.plugin-w0LZcwZT.js +12755 -0
  37. package/dist/masonry.plugin-w0LZcwZT.js.br +0 -0
  38. package/dist/navigation.js +10 -1
  39. package/dist/polyfill.js +14868 -4768
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/style.css +1 -1
  42. package/dist/style.css.br +0 -0
  43. package/package.json +45 -38
  44. package/dist/ActionField-UFZMmHDy.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
  46. package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
  47. package/dist/CheckoutWindow-2RMgPiGi.js +0 -206
  48. package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
  49. package/dist/Container-XBRB0sOV.js +0 -69
  50. package/dist/Container-XBRB0sOV.js.br +0 -0
  51. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js +0 -8567
  52. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
  53. package/dist/Field-uK3Wuuv6.js +0 -43
  54. package/dist/Field-uK3Wuuv6.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
  56. package/dist/ThankYou-nz4vPX4O.js +0 -13316
  57. package/dist/ThankYou-nz4vPX4O.js.br +0 -0
  58. package/dist/_-oPH7HiaC.js +0 -20
  59. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  60. package/dist/assets/typescript/mixins.d.ts +0 -34
  61. package/dist/availability.d.ts +0 -3
  62. package/dist/components/Alert.vue.d.ts +0 -28
  63. package/dist/components/Alert.vue.d.ts.map +0 -1
  64. package/dist/components/Clickable.vue.d.ts +0 -60
  65. package/dist/components/Clickable.vue.d.ts.map +0 -1
  66. package/dist/components/Container.vue.d.ts +0 -23
  67. package/dist/components/Container.vue.d.ts.map +0 -1
  68. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  69. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  70. package/dist/components/Gallery.vue.d.ts +0 -31
  71. package/dist/components/Gallery.vue.d.ts.map +0 -1
  72. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  73. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  74. package/dist/components/Icon.vue.d.ts +0 -38
  75. package/dist/components/Icon.vue.d.ts.map +0 -1
  76. package/dist/components/Loading.vue.d.ts +0 -29
  77. package/dist/components/Loading.vue.d.ts.map +0 -1
  78. package/dist/components/Spinner.vue.d.ts +0 -2
  79. package/dist/components/Spinner.vue.d.ts.map +0 -1
  80. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  81. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  82. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  83. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  84. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  85. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  87. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  89. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  90. package/dist/components/forms/_.vue.d.ts +0 -42
  91. package/dist/components/forms/_.vue.d.ts.map +0 -1
  92. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  93. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  94. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  95. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  97. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  99. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  101. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  103. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  105. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  107. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  109. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  111. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  113. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  115. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  117. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  118. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  119. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  120. package/dist/components/listings/Base.vue.d.ts +0 -56
  121. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  122. package/dist/components/listings/Event.vue.d.ts +0 -47
  123. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  125. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  126. package/dist/components/listings/Template.vue.d.ts +0 -21
  127. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  128. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  129. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  130. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  131. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  133. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  134. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  135. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  136. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  137. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  138. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  139. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  141. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  143. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  145. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  147. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  148. package/dist/components/skeletons/_.vue.d.ts +0 -36
  149. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  150. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  151. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  152. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  153. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  154. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  155. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  156. package/dist/entries/availability.d.ts +0 -5
  157. package/dist/entries/event.d.ts +0 -2
  158. package/dist/entries/gift-card-validation.d.ts +0 -5
  159. package/dist/entries/gift-card.d.ts +0 -5
  160. package/dist/entries/hotel.d.ts +0 -5
  161. package/dist/entries/navigation.d.ts +0 -1
  162. package/dist/entries/polyfill.d.ts +0 -0
  163. package/dist/event--wgsUkQp.js +0 -359
  164. package/dist/event--wgsUkQp.js.br +0 -0
  165. package/dist/event.d.ts +0 -3
  166. package/dist/gift-card-validation.d.ts +0 -3
  167. package/dist/gift-card.d.ts +0 -3
  168. package/dist/hotel.d.ts +0 -3
  169. package/dist/layouts/Availability.vue.d.ts +0 -25
  170. package/dist/layouts/Event.vue.d.ts +0 -18
  171. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  172. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  173. package/dist/layouts/Hotel.vue.d.ts +0 -36
  174. package/dist/layouts/_.vue.d.ts +0 -39
  175. package/dist/navigation.d.ts +0 -1
  176. package/dist/plugins/i18n.d.ts +0 -5
  177. package/dist/polyfill.d.ts +0 -1
  178. package/dist/store/alert.d.ts +0 -28
  179. package/dist/store/applyGiftCard.d.ts +0 -28
  180. package/dist/store/availability.d.ts +0 -40
  181. package/dist/store/event.d.ts +0 -683
  182. package/dist/store/giftCard.d.ts +0 -83
  183. package/dist/store/payment.d.ts +0 -139
  184. package/dist/store/recaptcha.d.ts +0 -28
  185. package/dist/store/tracking.d.ts +0 -57
  186. package/dist/store/utilities.d.ts +0 -350
  187. package/dist/types/index.d.ts +0 -976
package/dist/event.js.br CHANGED
Binary file
@@ -1,80 +1,115 @@
1
- import { defineComponent as X, openBlock as u, createBlock as C, withCtx as d, Suspense as I, createVNode as s, createElementVNode as t, withModifiers as w, unref as a, toDisplayString as e, isRef as b, createElementBlock as A, createCommentVNode as G, pushScopeId as T, popScopeId as x, createApp as B } from "vue";
2
- import { l as D, s as y, a as V, c as N, m as M, n as c, o as U, p as $, _ as E, q as H, t as P } from "./SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js";
3
- import { A as R } from "./ActionField-UFZMmHDy.js";
4
- import { C as q } from "./Container-XBRB0sOV.js";
5
- import "./_commonjsHelpers-FF1eOqK0.js";
6
- const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z = {
1
+ import { d as I, o as f, a as A, g as t, f as o, c as X, b as _, w as v, S as B, u as e, t as u, x as w, e as P, i as T, k as $ } from "./_commonjsHelpers-BpcYSDvQ.js";
2
+ import { E as k, _ as L, h as N, s as x, v as E, b as U, A as C, B as O, D as z, n as F, o as H, p as j, q as R, t as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js";
3
+ import { u as q } from "./giftCard-CTOcXgxl.js";
4
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-DxTbCVt9.js";
5
+ import { A as J } from "./ActionField-B7yd3wqo.js";
6
+ import { F as S } from "./Field-C31DtxD3.js";
7
+ import { E as K } from "./ErrorMessage-DURaj0JK.js";
8
+ import "./navigation.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] = "7c87091e-ae2a-44d8-88bf-a94a8bf9e081", r._sentryDebugIdIdentifier = "sentry-dbid-7c87091e-ae2a-44d8-88bf-a94a8bf9e081");
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__ */ I({
17
+ __name: "GiftCardValidationSkeleton",
18
+ setup(r) {
19
+ return (s, c) => (f(), A("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(S),
28
+ o(S, { "no-label": "" })
29
+ ])
30
+ ])
31
+ ]));
32
+ }
33
+ }), nt = /* @__PURE__ */ L(at, [["__scopeId", "data-v-b1601b74"]]), ot = ["innerHTML"], st = {
7
34
  key: 0,
8
- id: "fresh-booking-gift-card-validation-resume",
9
- class: "fresh-booking-panel"
10
- }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ X({
35
+ id: "konnectio-gift-card-validation-resume",
36
+ class: "konnectio-panel"
37
+ }, it = /* @__PURE__ */ I({
11
38
  name: "GiftCardValidationLayout",
12
39
  __name: "GiftCardValidation",
13
40
  props: {
14
41
  accessToken: {},
15
42
  styling: {}
16
43
  },
17
- setup(i) {
18
- const { t: o } = D(), {
19
- voucher: p,
20
- isValid: _,
21
- amount: k,
22
- expirationDate: v,
23
- productName: L,
24
- isLoading: r
25
- } = y(V()), { currency: S } = y(N()), { apply: m } = V();
26
- return (g, n) => (u(), C(q, { styling: g.styling }, {
27
- default: d(() => [
28
- (u(), C(I, null, {
29
- default: d(() => [
30
- s(M, {
31
- id: "fresh-booking-gift-card-validation-module",
32
- "access-token": g.accessToken,
33
- 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: M } = x(U()), { fetchMetadata: D } = q(), { apply: V } = E();
56
+ return (G, d) => (f(), _(F, { styling: c.value }, {
57
+ default: v(() => [
58
+ (f(), _(B, null, {
59
+ default: v(() => [
60
+ o(W, {
61
+ "access-token": G.accessToken,
62
+ onMetadata: e(D)
34
63
  }, {
35
- default: d(() => [
36
- t("form", {
37
- onSubmit: n[3] || (n[3] = w((l) => a(m)(), ["prevent"]))
64
+ default: v(() => [
65
+ e(M) ? (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(), A("form", {
70
+ key: 0,
71
+ id: "konnectio-gift-card-validation-module",
72
+ onSubmit: d[3] || (d[3] = T((g) => e(V)(), ["prevent"]))
38
73
  }, [
39
74
  t("h4", null, [
40
- t("span", null, e(a(o)("giftCardValidation.title")), 1)
75
+ t("span", null, u(e(i)("giftCardValidation.title")), 1)
41
76
  ]),
42
77
  t("p", {
43
- innerHTML: a(o)("giftCardValidation.description")
44
- }, null, 8, j),
45
- s(R, {
46
- modelValue: a(p),
47
- "onUpdate:modelValue": n[0] || (n[0] = (l) => b(p) ? p.value = l : 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),
48
83
  icon: "gift-card",
49
- label: a(o)("booking.reservation.giftCardCode"),
50
- buttonLabel: a(o)("giftCardValidation.submitButton"),
84
+ label: e(i)("booking.reservation.giftCardCode"),
85
+ buttonLabel: e(i)("giftCardValidation.submitButton"),
51
86
  placeholder: "XXXXXXXX",
52
- "is-loading": a(r),
53
- "onUpdate:isLoading": n[1] || (n[1] = (l) => b(r) ? r.value = l : null),
54
- onAction: n[2] || (n[2] = (l) => a(m)())
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(V)())
55
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
56
- !a(r) && a(_) ? (u(), A("table", z, [
91
+ !e(n) && e(h) ? (f(), A("table", st, [
57
92
  t("thead", null, [
58
93
  t("tr", null, [
59
94
  t("th", null, [
60
- t("span", null, e(a(o)("giftCardValidation.giftCard")), 1),
61
- s(c, {
95
+ t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
96
+ o(C, {
62
97
  icon: "gift-card",
63
98
  type: "fas",
64
99
  color: "header"
65
100
  })
66
101
  ]),
67
102
  t("th", null, [
68
- t("span", null, e(a(o)("giftCardValidation.balance")), 1),
69
- s(c, {
103
+ t("span", null, u(e(i)("giftCardValidation.balance")), 1),
104
+ o(C, {
70
105
  icon: "money-bill",
71
106
  type: "fas",
72
107
  color: "header"
73
108
  })
74
109
  ]),
75
110
  t("th", null, [
76
- t("span", null, e(a(o)("giftCardValidation.expirationDate")), 1),
77
- s(c, {
111
+ t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
112
+ o(C, {
78
113
  icon: "timer",
79
114
  type: "fas",
80
115
  color: "header"
@@ -85,24 +120,24 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
85
120
  t("tbody", null, [
86
121
  t("tr", null, [
87
122
  t("td", null, [
88
- t("span", null, e(a(L)), 1)
123
+ t("span", null, u(e(a)), 1)
89
124
  ]),
90
125
  t("td", null, [
91
- t("span", null, e(a(U)(a(k), a(S))), 1)
126
+ t("span", null, u(e(O)(e(p), e(l))), 1)
92
127
  ]),
93
128
  t("td", null, [
94
- t("span", null, e(a($)(a(v))), 1)
129
+ t("span", null, u(e(z)(e(b))), 1)
95
130
  ])
96
131
  ])
97
132
  ])
98
- ])) : G("", !0)
99
- ], 32)
133
+ ])) : P("", !0)
134
+ ], 32))
100
135
  ]),
101
136
  _: 1
102
- }, 8, ["access-token"])
137
+ }, 8, ["access-token", "onMetadata"])
103
138
  ]),
104
- fallback: d(() => [
105
- J
139
+ fallback: v(() => [
140
+ o(nt)
106
141
  ]),
107
142
  _: 1
108
143
  }))
@@ -110,15 +145,36 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
110
145
  _: 1
111
146
  }, 8, ["styling"]));
112
147
  }
113
- }), h = /* @__PURE__ */ E(K, [["__scopeId", "data-v-5af38302"]]), f = B({ components: { GiftCardValidation: h } }), O = H();
114
- f.use(O);
115
- f.use(P);
116
- f.mount("#konnectio-gift-card-validation-app");
117
- const at = {
118
- install: (i) => {
119
- i.component("GiftCardValidation", h);
148
+ }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-22ec3a4a"]]), lt = H(), rt = Z();
149
+ class dt extends HTMLElement {
150
+ vueApp;
151
+ constructor() {
152
+ super();
120
153
  }
121
- };
154
+ disconnectedCallback() {
155
+ this.vueApp.unmount();
156
+ }
157
+ connectedCallback() {
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;
170
+ }
171
+ this.vueApp = $(y, h), j(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(R);
172
+ const b = document.createElement("div");
173
+ this.vueApp.mount(b), this.appendChild(b.children[0]);
174
+ }
175
+ }
176
+ window.customElements.define("konnectio-gift-card-validation", dt);
122
177
  export {
123
- at as default
178
+ dt as default
124
179
  };
180
+ //# sourceMappingURL=gift-card-validation.js.map
Binary file