@konnectio/core 4.0.56-rc5 → 4.0.56-rc51

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 (192) hide show
  1. package/dist/{ActionField--byx0Lp1.js → ActionField-CsHUzdDM.js} +41 -32
  2. package/dist/ActionField-CsHUzdDM.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-BpS3qH0r.js +294 -0
  4. package/dist/AvailabilitySkeleton-BpS3qH0r.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js +7814 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js.br +0 -0
  7. package/dist/CheckoutWindow-DQUTHQEL.js +668 -0
  8. package/dist/CheckoutWindow-DQUTHQEL.js.br +0 -0
  9. package/dist/ErrorMessage-CWHVx0Pk.js +45 -0
  10. package/dist/ErrorMessage-CWHVx0Pk.js.br +0 -0
  11. package/dist/EventAvailabilityForm-Bk4wdYKU.js +437 -0
  12. package/dist/EventAvailabilityForm-Bk4wdYKU.js.br +0 -0
  13. package/dist/Field-CIQ61QX5.js +50 -0
  14. package/dist/Field-CIQ61QX5.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js +21408 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js.br +0 -0
  17. package/dist/TermsOfService-BZzRUgUN.js +35 -0
  18. package/dist/TermsOfService-BZzRUgUN.js.br +0 -0
  19. package/dist/_-CRFAvFk8.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js +68 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js.br +0 -0
  22. package/dist/_commonjsHelpers-04Qj4xBt.js +9530 -0
  23. package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
  24. package/dist/availability.js +96 -147
  25. package/dist/availability.js.br +0 -0
  26. package/dist/deep-link.js +10 -0
  27. package/dist/event.js +733 -495
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +133 -75
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +364 -408
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/giftCard-iMEwS4uA.js +127 -0
  34. package/dist/giftCard-iMEwS4uA.js.br +0 -0
  35. package/dist/hotel.js +1482 -2456
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/masonry.plugin-BSptmqjG.js +12789 -0
  38. package/dist/masonry.plugin-BSptmqjG.js.br +0 -0
  39. package/dist/polyfill.js +15066 -4765
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/sentry-BSHzssDu.js +18 -0
  42. package/dist/style.css +1 -1
  43. package/dist/style.css.br +0 -0
  44. package/dist/tracing-wxeFiHIa.js +2287 -0
  45. package/dist/tracing-wxeFiHIa.js.br +0 -0
  46. package/package.json +47 -40
  47. package/dist/ActionField--byx0Lp1.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
  49. package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
  50. package/dist/CheckoutWindow-_ZUCAYgm.js +0 -205
  51. package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
  52. package/dist/Container-6UeOakwz.js +0 -68
  53. package/dist/Container-6UeOakwz.js.br +0 -0
  54. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js +0 -8566
  55. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
  56. package/dist/Field-GdMucFcQ.js +0 -42
  57. package/dist/Field-GdMucFcQ.js.br +0 -5
  58. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
  59. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
  60. package/dist/ThankYou-9pzt2SfJ.js +0 -13475
  61. package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
  62. package/dist/_-5uiOrU07.js +0 -19
  63. package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
  64. package/dist/assets/typescript/mixins.d.ts +0 -34
  65. package/dist/availability.d.ts +0 -3
  66. package/dist/components/Alert.vue.d.ts +0 -28
  67. package/dist/components/Alert.vue.d.ts.map +0 -1
  68. package/dist/components/Clickable.vue.d.ts +0 -60
  69. package/dist/components/Clickable.vue.d.ts.map +0 -1
  70. package/dist/components/Container.vue.d.ts +0 -23
  71. package/dist/components/Container.vue.d.ts.map +0 -1
  72. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  73. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  74. package/dist/components/Gallery.vue.d.ts +0 -31
  75. package/dist/components/Gallery.vue.d.ts.map +0 -1
  76. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  77. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  78. package/dist/components/Icon.vue.d.ts +0 -38
  79. package/dist/components/Icon.vue.d.ts.map +0 -1
  80. package/dist/components/Loading.vue.d.ts +0 -29
  81. package/dist/components/Loading.vue.d.ts.map +0 -1
  82. package/dist/components/Spinner.vue.d.ts +0 -2
  83. package/dist/components/Spinner.vue.d.ts.map +0 -1
  84. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  85. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  86. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  87. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  88. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  89. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  90. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  91. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  92. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  93. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  94. package/dist/components/forms/_.vue.d.ts +0 -42
  95. package/dist/components/forms/_.vue.d.ts.map +0 -1
  96. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  97. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  98. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  99. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  100. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  101. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  102. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  103. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  104. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  105. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  106. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  107. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  108. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  109. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  110. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  111. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  112. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  113. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  114. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  115. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  116. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  117. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  118. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  119. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  120. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  121. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  122. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  123. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  124. package/dist/components/listings/Base.vue.d.ts +0 -56
  125. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  126. package/dist/components/listings/Event.vue.d.ts +0 -47
  127. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  128. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  129. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  130. package/dist/components/listings/Template.vue.d.ts +0 -21
  131. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  132. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  133. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  134. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  135. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  136. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  137. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  138. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  139. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  140. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  141. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  142. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  143. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  144. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  145. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  146. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  147. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  148. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  149. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  150. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  151. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  152. package/dist/components/skeletons/_.vue.d.ts +0 -36
  153. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  154. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  155. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  156. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  157. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  158. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  159. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  160. package/dist/entries/availability.d.ts +0 -5
  161. package/dist/entries/event.d.ts +0 -2
  162. package/dist/entries/gift-card-validation.d.ts +0 -5
  163. package/dist/entries/gift-card.d.ts +0 -5
  164. package/dist/entries/hotel.d.ts +0 -5
  165. package/dist/entries/navigation.d.ts +0 -1
  166. package/dist/entries/polyfill.d.ts +0 -0
  167. package/dist/event-jnP6wH4w.js +0 -358
  168. package/dist/event-jnP6wH4w.js.br +0 -0
  169. package/dist/event.d.ts +0 -3
  170. package/dist/gift-card-validation.d.ts +0 -3
  171. package/dist/gift-card.d.ts +0 -3
  172. package/dist/hotel.d.ts +0 -3
  173. package/dist/layouts/Availability.vue.d.ts +0 -25
  174. package/dist/layouts/Event.vue.d.ts +0 -18
  175. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  176. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  177. package/dist/layouts/Hotel.vue.d.ts +0 -36
  178. package/dist/layouts/_.vue.d.ts +0 -39
  179. package/dist/navigation.d.ts +0 -1
  180. package/dist/navigation.js +0 -1
  181. package/dist/plugins/i18n.d.ts +0 -5
  182. package/dist/polyfill.d.ts +0 -1
  183. package/dist/store/alert.d.ts +0 -28
  184. package/dist/store/applyGiftCard.d.ts +0 -28
  185. package/dist/store/availability.d.ts +0 -40
  186. package/dist/store/event.d.ts +0 -683
  187. package/dist/store/giftCard.d.ts +0 -83
  188. package/dist/store/payment.d.ts +0 -139
  189. package/dist/store/recaptcha.d.ts +0 -28
  190. package/dist/store/tracking.d.ts +0 -57
  191. package/dist/store/utilities.d.ts +0 -350
  192. package/dist/types/index.d.ts +0 -976
package/dist/event.js.br CHANGED
Binary file
@@ -1,79 +1,116 @@
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 "./_commonjsHelpers-04Qj4xBt.js";
2
+ import { E as k, _ as L, h as N, s as x, t as E, b as U, z as C, A as z, B as O, n as F, o as H, p as j, q as R } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js";
3
+ import { c as Z } from "./sentry-BSHzssDu.js";
4
+ import { u as q } from "./giftCard-iMEwS4uA.js";
5
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-DF6d_VKc.js";
6
+ import { A as J } from "./ActionField-CsHUzdDM.js";
7
+ import { F as S } from "./Field-CIQ61QX5.js";
8
+ import { E as K } from "./ErrorMessage-CWHVx0Pk.js";
9
+ import "./deep-link.js";
10
+ (function() {
11
+ try {
12
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
13
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "a230e431-6b35-4c4d-9ac0-21064bd51575", r._sentryDebugIdIdentifier = "sentry-dbid-a230e431-6b35-4c4d-9ac0-21064bd51575");
14
+ } catch {
15
+ }
16
+ })();
17
+ 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({
18
+ __name: "GiftCardValidationSkeleton",
19
+ setup(r) {
20
+ return (s, c) => (f(), A("div", Q, [
21
+ t("div", Y, [
22
+ t("div", tt, [
23
+ o(k, { height: "20px" }),
24
+ o(k, { height: "15px" }),
25
+ o(k, { height: "15px" })
26
+ ]),
27
+ t("div", et, [
28
+ o(S),
29
+ o(S, { "no-label": "" })
30
+ ])
31
+ ])
32
+ ]));
33
+ }
34
+ }), nt = /* @__PURE__ */ L(at, [["__scopeId", "data-v-b1601b74"]]), ot = ["innerHTML"], st = {
6
35
  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({
36
+ id: "konnectio-gift-card-validation-resume",
37
+ class: "konnectio-panel"
38
+ }, it = /* @__PURE__ */ I({
10
39
  name: "GiftCardValidationLayout",
11
40
  __name: "GiftCardValidation",
12
41
  props: {
13
42
  accessToken: {},
14
43
  styling: {}
15
44
  },
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"
45
+ setup(r) {
46
+ const s = r, c = X(() => ({
47
+ panelMaxWidth: "800px",
48
+ ...s.styling
49
+ })), { t: i } = N(), {
50
+ voucher: m,
51
+ isValid: b,
52
+ amount: p,
53
+ expirationDate: h,
54
+ productName: a,
55
+ isLoading: n
56
+ } = x(E()), { currency: l, hasError: G } = x(U()), { fetchMetadata: D } = q(), { apply: V } = E();
57
+ return (M, d) => (f(), _(F, { styling: c.value }, {
58
+ default: v(() => [
59
+ (f(), _(B, null, {
60
+ default: v(() => [
61
+ o(W, {
62
+ "access-token": M.accessToken,
63
+ callback: e(D)
33
64
  }, {
34
- default: r(() => [
35
- a("form", {
36
- onSubmit: n[3] || (n[3] = T((l) => t(m)(), ["prevent"]))
65
+ default: v(() => [
66
+ e(G) ? (f(), _(K, {
67
+ key: 1,
68
+ title: "Unable to render Gift card validation module",
69
+ description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
70
+ })) : (f(), A("form", {
71
+ key: 0,
72
+ id: "konnectio-gift-card-validation-module",
73
+ onSubmit: d[3] || (d[3] = T((g) => e(V)(), ["prevent"]))
37
74
  }, [
38
- a("h4", null, [
39
- a("span", null, o(t(e)("giftCardValidation.title")), 1)
75
+ t("h4", null, [
76
+ t("span", null, u(e(i)("giftCardValidation.title")), 1)
40
77
  ]),
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),
78
+ t("p", {
79
+ innerHTML: e(i)("giftCardValidation.description")
80
+ }, null, 8, ot),
81
+ o(J, {
82
+ modelValue: e(m),
83
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
47
84
  icon: "gift-card",
48
- label: t(e)("booking.reservation.giftCardCode"),
49
- buttonLabel: t(e)("giftCardValidation.submitButton"),
85
+ label: e(i)("booking.reservation.giftCardCode"),
86
+ buttonLabel: e(i)("giftCardValidation.submitButton"),
50
87
  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)())
88
+ "is-loading": e(n),
89
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
90
+ onAction: d[2] || (d[2] = (g) => e(V)())
54
91
  }, 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, {
92
+ !e(n) && e(b) ? (f(), A("table", st, [
93
+ t("thead", null, [
94
+ t("tr", null, [
95
+ t("th", null, [
96
+ t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
97
+ o(C, {
61
98
  icon: "gift-card",
62
99
  type: "fas",
63
100
  color: "header"
64
101
  })
65
102
  ]),
66
- a("th", null, [
67
- a("span", null, o(t(e)("giftCardValidation.balance")), 1),
68
- s(c, {
103
+ t("th", null, [
104
+ t("span", null, u(e(i)("giftCardValidation.balance")), 1),
105
+ o(C, {
69
106
  icon: "money-bill",
70
107
  type: "fas",
71
108
  color: "header"
72
109
  })
73
110
  ]),
74
- a("th", null, [
75
- a("span", null, o(t(e)("giftCardValidation.expirationDate")), 1),
76
- s(c, {
111
+ t("th", null, [
112
+ t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
113
+ o(C, {
77
114
  icon: "timer",
78
115
  type: "fas",
79
116
  color: "header"
@@ -81,27 +118,27 @@ const E = (i) => (M("data-v-5af38302"), i = i(), U(), i), J = ["innerHTML"], K =
81
118
  ])
82
119
  ])
83
120
  ]),
84
- a("tbody", null, [
85
- a("tr", null, [
86
- a("td", null, [
87
- a("span", null, o(t(L)), 1)
121
+ t("tbody", null, [
122
+ t("tr", null, [
123
+ t("td", null, [
124
+ t("span", null, u(e(a)), 1)
88
125
  ]),
89
- a("td", null, [
90
- a("span", null, o(t(A)(t(_), t(S))), 1)
126
+ t("td", null, [
127
+ t("span", null, u(e(z)(e(p), e(l))), 1)
91
128
  ]),
92
- a("td", null, [
93
- a("span", null, o(t(B)(t(v))), 1)
129
+ t("td", null, [
130
+ t("span", null, u(e(O)(e(h))), 1)
94
131
  ])
95
132
  ])
96
133
  ])
97
- ])) : N("", !0)
98
- ], 32)
134
+ ])) : P("", !0)
135
+ ], 32))
99
136
  ]),
100
137
  _: 1
101
- }, 8, ["access-token"])
138
+ }, 8, ["access-token", "callback"])
102
139
  ]),
103
- fallback: r(() => [
104
- Q
140
+ fallback: v(() => [
141
+ o(nt)
105
142
  ]),
106
143
  _: 1
107
144
  }))
@@ -109,15 +146,36 @@ const E = (i) => (M("data-v-5af38302"), i = i(), U(), i), J = ["innerHTML"], K =
109
146
  _: 1
110
147
  }, 8, ["styling"]));
111
148
  }
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);
149
+ }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = H(), rt = R();
150
+ class dt extends HTMLElement {
151
+ vueApp;
152
+ constructor() {
153
+ super();
119
154
  }
120
- };
155
+ disconnectedCallback() {
156
+ this.vueApp.unmount();
157
+ }
158
+ connectedCallback() {
159
+ const s = typeof y == "function" ? y.options : y;
160
+ let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
161
+ 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()), b = {};
162
+ c = c.map(i);
163
+ const p = {};
164
+ for (const a of this.attributes) {
165
+ const l = a.name.split(".");
166
+ l.length > 1 && (p[l[0]] || (p[l[0]] = {}), p[l[0]][m(l[1])] = a.value);
167
+ }
168
+ for (const a of c) {
169
+ let n = this.attributes.getNamedItem(a)?.value;
170
+ p.hasOwnProperty(a) && (n = p[a]), b[a] = n;
171
+ }
172
+ this.vueApp = $(y, b), Z(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(j);
173
+ const h = document.createElement("div");
174
+ this.vueApp.mount(h), this.appendChild(h.children[0]);
175
+ }
176
+ }
177
+ window.customElements.define("konnectio-gift-card-validation", dt);
121
178
  export {
122
- aa as default
179
+ dt as default
123
180
  };
181
+ //# sourceMappingURL=gift-card-validation.js.map
Binary file