@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.
- package/dist/{ActionField--byx0Lp1.js → ActionField-CsHUzdDM.js} +41 -32
- package/dist/ActionField-CsHUzdDM.js.br +0 -0
- package/dist/AvailabilitySkeleton-BpS3qH0r.js +294 -0
- package/dist/AvailabilitySkeleton-BpS3qH0r.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js +7814 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C_Eo6onw.js.br +0 -0
- package/dist/CheckoutWindow-DQUTHQEL.js +668 -0
- package/dist/CheckoutWindow-DQUTHQEL.js.br +0 -0
- package/dist/ErrorMessage-CWHVx0Pk.js +45 -0
- package/dist/ErrorMessage-CWHVx0Pk.js.br +0 -0
- package/dist/EventAvailabilityForm-Bk4wdYKU.js +437 -0
- package/dist/EventAvailabilityForm-Bk4wdYKU.js.br +0 -0
- package/dist/Field-CIQ61QX5.js +50 -0
- package/dist/Field-CIQ61QX5.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js +21408 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-2iMaQIEk.js.br +0 -0
- package/dist/TermsOfService-BZzRUgUN.js +35 -0
- package/dist/TermsOfService-BZzRUgUN.js.br +0 -0
- package/dist/_-CRFAvFk8.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js +68 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DF6d_VKc.js.br +0 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js +9530 -0
- package/dist/_commonjsHelpers-04Qj4xBt.js.br +0 -0
- package/dist/availability.js +96 -147
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +10 -0
- package/dist/event.js +733 -495
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +133 -75
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +364 -408
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-iMEwS4uA.js +127 -0
- package/dist/giftCard-iMEwS4uA.js.br +0 -0
- package/dist/hotel.js +1482 -2456
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-BSptmqjG.js +12789 -0
- package/dist/masonry.plugin-BSptmqjG.js.br +0 -0
- package/dist/polyfill.js +15066 -4765
- package/dist/polyfill.js.br +0 -0
- package/dist/sentry-BSHzssDu.js +18 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-wxeFiHIa.js +2287 -0
- package/dist/tracing-wxeFiHIa.js.br +0 -0
- package/package.json +47 -40
- package/dist/ActionField--byx0Lp1.js.br +0 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
- package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
- package/dist/CheckoutWindow-_ZUCAYgm.js +0 -205
- package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
- package/dist/Container-6UeOakwz.js +0 -68
- package/dist/Container-6UeOakwz.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js +0 -8566
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
- package/dist/Field-GdMucFcQ.js +0 -42
- package/dist/Field-GdMucFcQ.js.br +0 -5
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
- package/dist/ThankYou-9pzt2SfJ.js +0 -13475
- package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
- package/dist/_-5uiOrU07.js +0 -19
- package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -28
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -60
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -23
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -15
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -31
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -2
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -38
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -29
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -2
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -42
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -104
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -62
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -87
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -90
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -68
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -44
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -56
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -47
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -16
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -21
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -61
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -18
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -36
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -2
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -36
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -2
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -15
- package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
- package/dist/entries/availability.d.ts +0 -5
- package/dist/entries/event.d.ts +0 -2
- package/dist/entries/gift-card-validation.d.ts +0 -5
- package/dist/entries/gift-card.d.ts +0 -5
- package/dist/entries/hotel.d.ts +0 -5
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-jnP6wH4w.js +0 -358
- package/dist/event-jnP6wH4w.js.br +0 -0
- package/dist/event.d.ts +0 -3
- package/dist/gift-card-validation.d.ts +0 -3
- package/dist/gift-card.d.ts +0 -3
- package/dist/hotel.d.ts +0 -3
- package/dist/layouts/Availability.vue.d.ts +0 -25
- package/dist/layouts/Event.vue.d.ts +0 -18
- package/dist/layouts/GiftCard.vue.d.ts +0 -32
- package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
- package/dist/layouts/Hotel.vue.d.ts +0 -36
- package/dist/layouts/_.vue.d.ts +0 -39
- package/dist/navigation.d.ts +0 -1
- package/dist/navigation.js +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.d.ts +0 -1
- package/dist/store/alert.d.ts +0 -28
- package/dist/store/applyGiftCard.d.ts +0 -28
- package/dist/store/availability.d.ts +0 -40
- package/dist/store/event.d.ts +0 -683
- package/dist/store/giftCard.d.ts +0 -83
- package/dist/store/payment.d.ts +0 -139
- package/dist/store/recaptcha.d.ts +0 -28
- package/dist/store/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -350
- package/dist/types/index.d.ts +0 -976
package/dist/event.js.br
CHANGED
|
Binary file
|
|
@@ -1,79 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as F } from "./
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
|
|
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: "
|
|
8
|
-
class: "
|
|
9
|
-
},
|
|
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(
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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:
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
|
|
75
|
+
t("h4", null, [
|
|
76
|
+
t("span", null, u(e(i)("giftCardValidation.title")), 1)
|
|
40
77
|
]),
|
|
41
|
-
|
|
42
|
-
innerHTML:
|
|
43
|
-
}, null, 8,
|
|
44
|
-
|
|
45
|
-
modelValue:
|
|
46
|
-
"onUpdate:modelValue":
|
|
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:
|
|
49
|
-
buttonLabel:
|
|
85
|
+
label: e(i)("booking.reservation.giftCardCode"),
|
|
86
|
+
buttonLabel: e(i)("giftCardValidation.submitButton"),
|
|
50
87
|
placeholder: "XXXXXXXX",
|
|
51
|
-
"is-loading":
|
|
52
|
-
"onUpdate:isLoading":
|
|
53
|
-
onAction:
|
|
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
|
-
!
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
121
|
+
t("tbody", null, [
|
|
122
|
+
t("tr", null, [
|
|
123
|
+
t("td", null, [
|
|
124
|
+
t("span", null, u(e(a)), 1)
|
|
88
125
|
]),
|
|
89
|
-
|
|
90
|
-
|
|
126
|
+
t("td", null, [
|
|
127
|
+
t("span", null, u(e(z)(e(p), e(l))), 1)
|
|
91
128
|
]),
|
|
92
|
-
|
|
93
|
-
|
|
129
|
+
t("td", null, [
|
|
130
|
+
t("span", null, u(e(O)(e(h))), 1)
|
|
94
131
|
])
|
|
95
132
|
])
|
|
96
133
|
])
|
|
97
|
-
])) :
|
|
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:
|
|
104
|
-
|
|
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
|
-
}),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
179
|
+
dt as default
|
|
123
180
|
};
|
|
181
|
+
//# sourceMappingURL=gift-card-validation.js.map
|
|
Binary file
|