@konnectio/core 4.0.56-rc5 → 4.0.56-rc50

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 (189) hide show
  1. package/dist/{ActionField--byx0Lp1.js → ActionField-BQQitCzR.js} +43 -34
  2. package/dist/ActionField-BQQitCzR.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-TZiNrJ8t.js +294 -0
  4. package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js +7814 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
  7. package/dist/CheckoutWindow-DBBmXrsX.js +668 -0
  8. package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
  9. package/dist/ErrorMessage-Dw-TLplp.js +45 -0
  10. package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DimufYUP.js +437 -0
  12. package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
  13. package/dist/Field-B4x3qSfU.js +50 -0
  14. package/dist/Field-B4x3qSfU.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js +21414 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
  17. package/dist/TermsOfService-DLchxC08.js +35 -0
  18. package/dist/TermsOfService-DLchxC08.js.br +0 -0
  19. package/dist/_-C7wxqlYk.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js +68 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
  22. package/dist/availability.js +96 -147
  23. package/dist/availability.js.br +0 -0
  24. package/dist/deep-link.js +10 -0
  25. package/dist/event.js +732 -495
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +132 -75
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +363 -408
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/giftCard-9uCMmY6r.js +127 -0
  32. package/dist/giftCard-9uCMmY6r.js.br +0 -0
  33. package/dist/hotel.js +1480 -2454
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/masonry.plugin-C4-Uj22v.js +12789 -0
  36. package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
  37. package/dist/polyfill.js +15065 -4765
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/dist/tracing-Dm-FNj-F.js +11807 -0
  42. package/dist/tracing-Dm-FNj-F.js.br +0 -0
  43. package/package.json +47 -40
  44. package/dist/ActionField--byx0Lp1.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
  46. package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
  47. package/dist/CheckoutWindow-_ZUCAYgm.js +0 -205
  48. package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
  49. package/dist/Container-6UeOakwz.js +0 -68
  50. package/dist/Container-6UeOakwz.js.br +0 -0
  51. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js +0 -8566
  52. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
  53. package/dist/Field-GdMucFcQ.js +0 -42
  54. package/dist/Field-GdMucFcQ.js.br +0 -5
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
  57. package/dist/ThankYou-9pzt2SfJ.js +0 -13475
  58. package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
  59. package/dist/_-5uiOrU07.js +0 -19
  60. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  61. package/dist/assets/typescript/mixins.d.ts +0 -34
  62. package/dist/availability.d.ts +0 -3
  63. package/dist/components/Alert.vue.d.ts +0 -28
  64. package/dist/components/Alert.vue.d.ts.map +0 -1
  65. package/dist/components/Clickable.vue.d.ts +0 -60
  66. package/dist/components/Clickable.vue.d.ts.map +0 -1
  67. package/dist/components/Container.vue.d.ts +0 -23
  68. package/dist/components/Container.vue.d.ts.map +0 -1
  69. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  70. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  71. package/dist/components/Gallery.vue.d.ts +0 -31
  72. package/dist/components/Gallery.vue.d.ts.map +0 -1
  73. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  74. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  75. package/dist/components/Icon.vue.d.ts +0 -38
  76. package/dist/components/Icon.vue.d.ts.map +0 -1
  77. package/dist/components/Loading.vue.d.ts +0 -29
  78. package/dist/components/Loading.vue.d.ts.map +0 -1
  79. package/dist/components/Spinner.vue.d.ts +0 -2
  80. package/dist/components/Spinner.vue.d.ts.map +0 -1
  81. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  82. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  83. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  84. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  85. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  86. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  87. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  88. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  89. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  90. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  91. package/dist/components/forms/_.vue.d.ts +0 -42
  92. package/dist/components/forms/_.vue.d.ts.map +0 -1
  93. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  94. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  95. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  96. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  97. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  98. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  100. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  102. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  104. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  106. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  108. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  110. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  111. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  112. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  113. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  114. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  115. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  116. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  117. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  118. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  119. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  120. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  121. package/dist/components/listings/Base.vue.d.ts +0 -56
  122. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  123. package/dist/components/listings/Event.vue.d.ts +0 -47
  124. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  125. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  126. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  127. package/dist/components/listings/Template.vue.d.ts +0 -21
  128. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  129. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  130. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  131. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  132. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  133. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  134. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  135. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  136. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  137. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  138. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  139. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  140. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  141. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  142. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  143. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  144. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  145. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  146. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  147. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  148. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  149. package/dist/components/skeletons/_.vue.d.ts +0 -36
  150. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  151. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  152. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  153. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  154. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  155. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  156. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  157. package/dist/entries/availability.d.ts +0 -5
  158. package/dist/entries/event.d.ts +0 -2
  159. package/dist/entries/gift-card-validation.d.ts +0 -5
  160. package/dist/entries/gift-card.d.ts +0 -5
  161. package/dist/entries/hotel.d.ts +0 -5
  162. package/dist/entries/navigation.d.ts +0 -1
  163. package/dist/entries/polyfill.d.ts +0 -0
  164. package/dist/event-jnP6wH4w.js +0 -358
  165. package/dist/event-jnP6wH4w.js.br +0 -0
  166. package/dist/event.d.ts +0 -3
  167. package/dist/gift-card-validation.d.ts +0 -3
  168. package/dist/gift-card.d.ts +0 -3
  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.d.ts +0 -1
  177. package/dist/navigation.js +0 -1
  178. package/dist/plugins/i18n.d.ts +0 -5
  179. package/dist/polyfill.d.ts +0 -1
  180. package/dist/store/alert.d.ts +0 -28
  181. package/dist/store/applyGiftCard.d.ts +0 -28
  182. package/dist/store/availability.d.ts +0 -40
  183. package/dist/store/event.d.ts +0 -683
  184. package/dist/store/giftCard.d.ts +0 -83
  185. package/dist/store/payment.d.ts +0 -139
  186. package/dist/store/recaptcha.d.ts +0 -28
  187. package/dist/store/tracking.d.ts +0 -57
  188. package/dist/store/utilities.d.ts +0 -350
  189. package/dist/types/index.d.ts +0 -976
package/dist/event.js.br CHANGED
Binary file
@@ -1,79 +1,115 @@
1
- import { k as X, F as w, s as C, a as b, c as G, o as u, m as V, w as r, G as I, p as s, x as a, H as o, z as t, J as y, l as x, K as c, L as A, M as B, n as N, N as T, P as D, Q as M, R as U, _ as H, U as P, V as R, W as $ } from "./SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js";
2
- import { A as F } from "./ActionField--byx0Lp1.js";
3
- import { C as z } from "./Container-6UeOakwz.js";
4
- import "./_commonjsHelpers-4t9S7M5p.js";
5
- const E = (i) => (M("data-v-5af38302"), i = i(), U(), i), J = ["innerHTML"], K = {
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 "./tracing-Dm-FNj-F.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-CyGcXPO9.js";
3
+ import { u as q } from "./giftCard-9uCMmY6r.js";
4
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-BGyUJK1I.js";
5
+ import { A as J } from "./ActionField-BQQitCzR.js";
6
+ import { F as S } from "./Field-B4x3qSfU.js";
7
+ import { E as K } from "./ErrorMessage-Dw-TLplp.js";
8
+ import "./deep-link.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] = "1e80ce45-c381-4177-9430-16226e3de96e", r._sentryDebugIdIdentifier = "sentry-dbid-1e80ce45-c381-4177-9430-16226e3de96e");
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 = {
6
34
  key: 0,
7
- id: "fresh-booking-gift-card-validation-resume",
8
- class: "fresh-booking-panel"
9
- }, Q = /* @__PURE__ */ E(() => /* @__PURE__ */ a("span", null, "Loading...", -1)), W = /* @__PURE__ */ X({
35
+ id: "konnectio-gift-card-validation-resume",
36
+ class: "konnectio-panel"
37
+ }, it = /* @__PURE__ */ I({
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 } = w(), {
18
- voucher: p,
19
- isValid: k,
20
- amount: _,
21
- expirationDate: v,
22
- productName: L,
23
- isLoading: d
24
- } = C(b()), { currency: S } = C(G()), { apply: m } = b();
25
- return (g, n) => (u(), V(z, { styling: g.styling }, {
26
- default: r(() => [
27
- (u(), V(I, null, {
28
- default: r(() => [
29
- s(D, {
30
- id: "fresh-booking-gift-card-validation-module",
31
- "access-token": g.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: D } = x(U()), { fetchMetadata: G } = q(), { apply: V } = E();
56
+ return (M, d) => (f(), _(F, { styling: c.value }, {
57
+ default: v(() => [
58
+ (f(), _(B, null, {
59
+ default: v(() => [
60
+ o(W, {
61
+ "access-token": M.accessToken,
62
+ callback: e(G)
33
63
  }, {
34
- default: r(() => [
35
- a("form", {
36
- onSubmit: n[3] || (n[3] = T((l) => t(m)(), ["prevent"]))
64
+ default: v(() => [
65
+ e(D) ? (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"]))
37
73
  }, [
38
- a("h4", null, [
39
- a("span", null, o(t(e)("giftCardValidation.title")), 1)
74
+ t("h4", null, [
75
+ t("span", null, u(e(i)("giftCardValidation.title")), 1)
40
76
  ]),
41
- a("p", {
42
- innerHTML: t(e)("giftCardValidation.description")
43
- }, null, 8, J),
44
- s(F, {
45
- modelValue: t(p),
46
- "onUpdate:modelValue": n[0] || (n[0] = (l) => y(p) ? p.value = l : null),
77
+ t("p", {
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: t(e)("booking.reservation.giftCardCode"),
49
- buttonLabel: t(e)("giftCardValidation.submitButton"),
84
+ label: e(i)("booking.reservation.giftCardCode"),
85
+ buttonLabel: e(i)("giftCardValidation.submitButton"),
50
86
  placeholder: "XXXXXXXX",
51
- "is-loading": t(d),
52
- "onUpdate:isLoading": n[1] || (n[1] = (l) => y(d) ? d.value = l : null),
53
- onAction: n[2] || (n[2] = (l) => t(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)())
54
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
55
- !t(d) && t(k) ? (u(), x("table", K, [
56
- a("thead", null, [
57
- a("tr", null, [
58
- a("th", null, [
59
- a("span", null, o(t(e)("giftCardValidation.giftCard")), 1),
60
- s(c, {
91
+ !e(n) && e(h) ? (f(), A("table", st, [
92
+ t("thead", null, [
93
+ t("tr", null, [
94
+ t("th", null, [
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
- a("th", null, [
67
- a("span", null, o(t(e)("giftCardValidation.balance")), 1),
68
- s(c, {
102
+ t("th", null, [
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
- a("th", null, [
75
- a("span", null, o(t(e)("giftCardValidation.expirationDate")), 1),
76
- s(c, {
110
+ t("th", null, [
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"
@@ -81,27 +117,27 @@ const E = (i) => (M("data-v-5af38302"), i = i(), U(), i), J = ["innerHTML"], K =
81
117
  ])
82
118
  ])
83
119
  ]),
84
- a("tbody", null, [
85
- a("tr", null, [
86
- a("td", null, [
87
- a("span", null, o(t(L)), 1)
120
+ t("tbody", null, [
121
+ t("tr", null, [
122
+ t("td", null, [
123
+ t("span", null, u(e(a)), 1)
88
124
  ]),
89
- a("td", null, [
90
- a("span", null, o(t(A)(t(_), t(S))), 1)
125
+ t("td", null, [
126
+ t("span", null, u(e(O)(e(p), e(l))), 1)
91
127
  ]),
92
- a("td", null, [
93
- a("span", null, o(t(B)(t(v))), 1)
128
+ t("td", null, [
129
+ t("span", null, u(e(z)(e(b))), 1)
94
130
  ])
95
131
  ])
96
132
  ])
97
- ])) : N("", !0)
98
- ], 32)
133
+ ])) : P("", !0)
134
+ ], 32))
99
135
  ]),
100
136
  _: 1
101
- }, 8, ["access-token"])
137
+ }, 8, ["access-token", "callback"])
102
138
  ]),
103
- fallback: r(() => [
104
- Q
139
+ fallback: v(() => [
140
+ o(nt)
105
141
  ]),
106
142
  _: 1
107
143
  }))
@@ -109,15 +145,36 @@ const E = (i) => (M("data-v-5af38302"), i = i(), U(), i), J = ["innerHTML"], K =
109
145
  _: 1
110
146
  }, 8, ["styling"]));
111
147
  }
112
- }), h = /* @__PURE__ */ H(W, [["__scopeId", "data-v-5af38302"]]), f = P({ components: { GiftCardValidation: h } }), j = R();
113
- f.use(j);
114
- f.use($);
115
- f.mount("#konnectio-gift-card-validation-app");
116
- const aa = {
117
- install: (i) => {
118
- i.component("GiftCardValidation", h);
148
+ }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = H(), rt = Z();
149
+ class dt extends HTMLElement {
150
+ vueApp;
151
+ constructor() {
152
+ super();
119
153
  }
120
- };
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);
121
177
  export {
122
- aa as default
178
+ dt as default
123
179
  };
180
+ //# sourceMappingURL=gift-card-validation.js.map
Binary file