@konnectio/core 4.0.56-rc6 → 4.0.56-rc8
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-YyW_C34E.js → ActionField-na8McB-H.js} +1 -1
- package/dist/ActionField-na8McB-H.js.br +0 -0
- package/dist/AvailabilitySkeleton-1_yLVsq6.js +214 -0
- package/dist/AvailabilitySkeleton-1_yLVsq6.js.br +0 -0
- package/dist/{CheckoutWindow-T7-vrZyG.js → CheckoutWindow-r6ch1iOr.js} +17 -17
- package/dist/CheckoutWindow-r6ch1iOr.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js → DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js} +2910 -2918
- package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js.br +0 -0
- package/dist/{Field-fWwF40rD.js → Field-S_yxW5IQ.js} +2 -2
- package/dist/Field-S_yxW5IQ.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js → SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js} +8477 -8478
- package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js.br +0 -0
- package/dist/{ThankYou-pUA2X7-4.js → ThankYou-ekf_1AWY.js} +4327 -4410
- package/dist/ThankYou-ekf_1AWY.js.br +0 -0
- package/dist/{_-TlutFgf7.js → _-vErl-x3v.js} +1 -1
- package/dist/{_commonjsHelpers-4t9S7M5p.js → _commonjsHelpers-2ufMB8rV.js} +1 -1
- package/dist/availability.js +117 -86
- package/dist/availability.js.br +0 -0
- package/dist/event-iDLUEMAV.js +328 -0
- package/dist/event-iDLUEMAV.js.br +0 -0
- package/dist/event.js +431 -412
- package/dist/event.js.br +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/gift-card-validation.js +32 -34
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +263 -285
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel-4O89o7V2.js +3111 -0
- package/dist/hotel-4O89o7V2.js.br +0 -0
- package/dist/hotel.js +11 -3144
- package/dist/polyfill.js +67 -67
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +14 -17
- package/dist/ActionField-YyW_C34E.js.br +0 -0
- package/dist/AvailabilitySkeleton-lYcDX41T.js +0 -239
- package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
- package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
- package/dist/Container-w7O0He-s.js +0 -68
- package/dist/Container-w7O0He-s.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
- package/dist/Field-fWwF40rD.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
- package/dist/ThankYou-pUA2X7-4.js.br +0 -0
- 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-mDcuoL9g.js +0 -358
- package/dist/event-mDcuoL9g.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/hotel.js.br +0 -0
- 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/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/gift-card.js
CHANGED
|
@@ -1,130 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (var i of ae(l))
|
|
9
|
-
ge.call(l, i) && le(c, i, l[i]);
|
|
10
|
-
return c;
|
|
11
|
-
};
|
|
12
|
-
var J = (c, l, i) => new Promise((t, n) => {
|
|
13
|
-
var g = (d) => {
|
|
14
|
-
try {
|
|
15
|
-
m(i.next(d));
|
|
16
|
-
} catch (y) {
|
|
17
|
-
n(y);
|
|
18
|
-
}
|
|
19
|
-
}, p = (d) => {
|
|
20
|
-
try {
|
|
21
|
-
m(i.throw(d));
|
|
22
|
-
} catch (y) {
|
|
23
|
-
n(y);
|
|
24
|
-
}
|
|
25
|
-
}, m = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(g, p);
|
|
26
|
-
m((i = i.apply(c, l)).next());
|
|
27
|
-
});
|
|
28
|
-
import { d as ye, u as be, s as X, c as ue, r as _, ad as $, e as Y, f as V, j as oe, S as Q, i as he, h as ke, ae as Ce, k as Z, F as ce, b as _e, o as v, m as L, w as G, x as u, l as b, p as r, z as e, C as B, n as T, q as pe, I as Ve, _ as me, a2 as Fe, B as we, G as Pe, H as ne, af as W, ag as j, a3 as Te, a4 as Se, J as C, y as Ue, a5 as ie, T as H, A as $e, P as Ee, U as Ie, V as Re, W as qe, a9 as Le } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
|
|
29
|
-
import { C as Me } from "./Container-w7O0He-s.js";
|
|
30
|
-
import { a as xe, C as se, P as Ae, _ as Ge } from "./CheckoutWindow-T7-vrZyG.js";
|
|
31
|
-
import { E as Be } from "./_-TlutFgf7.js";
|
|
32
|
-
import { F as A } from "./Field-fWwF40rD.js";
|
|
33
|
-
import "./_commonjsHelpers-4t9S7M5p.js";
|
|
34
|
-
const re = ye("giftCard", () => {
|
|
35
|
-
const { pay: c } = be(), { bearerToken: l, metaData: i, currencyId: t } = X(ue()), n = _($.InitialState), g = Y("konnectio_name", "", void 0, { serializer: Q.string }), p = Y("konnectio_email", "", void 0, { serializer: Q.string }), m = Y("konnectio_phone", "", void 0, { serializer: Q.string }), d = _(""), y = _(1), S = _(!0), M = _(""), k = _({
|
|
1
|
+
import { d as ue, u as ce, s as J, c as ie, r as C, ae as U, e as K, f as _, j as ee, S as Y, i as pe, h as me, af as fe, k as Q, B as se, b as ve, o as c, m as L, w as G, x as s, l as b, p as n, z as e, C as z, n as T, q as re, I as ge, _ as de, Y as be, Z as he, D as ye, F as ae, ag as j, ah as N, $ as ke, a6 as Ce, G as k, y as _e, a7 as le, T as W, A as Ve, M as Fe, N as we, R as Pe, U as Te, V as Se, ab as $e } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
|
|
2
|
+
import { a as Ue, C as te, P as Ee, _ as Re } from "./CheckoutWindow-r6ch1iOr.js";
|
|
3
|
+
import { E as Ie } from "./_-vErl-x3v.js";
|
|
4
|
+
import { F as x } from "./Field-S_yxW5IQ.js";
|
|
5
|
+
import "./_commonjsHelpers-2ufMB8rV.js";
|
|
6
|
+
const oe = ue("giftCard", () => {
|
|
7
|
+
const { pay: S } = ce(), { bearerToken: f, metaData: V, currencyId: t } = J(ie()), i = C(U.InitialState), v = K("konnectio_name", "", void 0, { serializer: Y.string }), d = K("konnectio_email", "", void 0, { serializer: Y.string }), g = K("konnectio_phone", "", void 0, { serializer: Y.string }), r = C(""), p = C(1), m = C(!0), A = C(""), y = C({
|
|
36
8
|
base64: "",
|
|
37
9
|
type: "",
|
|
38
10
|
name: ""
|
|
39
|
-
}),
|
|
11
|
+
}), l = C(void 0), u = C(0), h = C(!1), R = C(0), F = _(() => i.value === U.InitialState || i.value === U.WaitingForResponse), I = _(() => i.value === U.ReadyToPay), M = _(() => i.value === U.PaymentSuccess), w = _(() => {
|
|
40
12
|
const a = {
|
|
41
13
|
1: {
|
|
42
|
-
label:
|
|
14
|
+
label: ee.t("giftCard.hotelType"),
|
|
43
15
|
data: []
|
|
44
16
|
},
|
|
45
17
|
2: {
|
|
46
|
-
label:
|
|
18
|
+
label: ee.t("giftCard.restaurantType"),
|
|
47
19
|
data: []
|
|
48
20
|
}
|
|
49
|
-
},
|
|
50
|
-
return
|
|
21
|
+
}, $ = V.value.hotels[0].places;
|
|
22
|
+
return $ && $.forEach((P) => {
|
|
51
23
|
a[P.placeType].data.push(P);
|
|
52
24
|
}), Object.fromEntries(
|
|
53
25
|
Object.entries(a).filter(([, P]) => P.data.length > 0)
|
|
54
26
|
);
|
|
55
|
-
}),
|
|
27
|
+
}), B = _(() => R.value !== 0), E = _(() => {
|
|
56
28
|
let a;
|
|
57
|
-
if (
|
|
58
|
-
a = w.value[
|
|
59
|
-
else if (
|
|
60
|
-
const
|
|
61
|
-
P.length === 1 ? a = P[0] :
|
|
62
|
-
String(
|
|
29
|
+
if (B.value)
|
|
30
|
+
a = w.value[R.value].data[0];
|
|
31
|
+
else if (u.value !== 0) {
|
|
32
|
+
const $ = l.value, P = w.value[u.value].data;
|
|
33
|
+
P.length === 1 ? a = P[0] : $ !== void 0 && P.forEach((X) => {
|
|
34
|
+
String(X.id) === String($) && (a = X);
|
|
63
35
|
});
|
|
64
36
|
}
|
|
65
37
|
return a;
|
|
66
|
-
}), D =
|
|
67
|
-
function q() {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
response: a.data
|
|
96
|
-
});
|
|
38
|
+
}), D = _(() => !(!v.value || !d.value || !(g.value.length >= 5) || !r.value || E.value === void 0)), H = _(() => !(i.value === U.InitialState && h.value)), Z = _(() => !!(i.value === U.WaitingForResponse && h.value));
|
|
39
|
+
async function q() {
|
|
40
|
+
i.value = U.WaitingForResponse, h.value = !0, await pe.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
41
|
+
termsOfserviceURL: window.location.origin,
|
|
42
|
+
checkoutUrl: window.location.origin,
|
|
43
|
+
currencyID: t.value,
|
|
44
|
+
language: me(),
|
|
45
|
+
amount: r.value,
|
|
46
|
+
quantity: p.value,
|
|
47
|
+
freeText: A.value,
|
|
48
|
+
showPrice: m.value,
|
|
49
|
+
contactName: v.value,
|
|
50
|
+
contactEmail: d.value,
|
|
51
|
+
contactPhone: g.value,
|
|
52
|
+
imageBase64: fe(y.value.base64),
|
|
53
|
+
imageName: y.value.name,
|
|
54
|
+
imageFormat: y.value.type,
|
|
55
|
+
placeType: E.value ? E.value.placeType : void 0,
|
|
56
|
+
placeID: E.value ? E.value.id : void 0
|
|
57
|
+
}, {
|
|
58
|
+
headers: {
|
|
59
|
+
Authorization: f.value,
|
|
60
|
+
Accept: "application/json",
|
|
61
|
+
"Fresh-Booking-Ver": "4.0.56-rc8"
|
|
62
|
+
}
|
|
63
|
+
}).then((a) => {
|
|
64
|
+
i.value = U.ReadyToPay, h.value = !1, S({
|
|
65
|
+
callback: () => console.log("Callback!"),
|
|
66
|
+
response: a.data
|
|
97
67
|
});
|
|
98
68
|
});
|
|
99
69
|
}
|
|
100
|
-
function
|
|
101
|
-
a && (
|
|
70
|
+
function o(a) {
|
|
71
|
+
a && (R.value = a);
|
|
102
72
|
}
|
|
103
73
|
return {
|
|
104
74
|
selectedPlace: E,
|
|
105
|
-
moduleState:
|
|
106
|
-
name:
|
|
107
|
-
email:
|
|
108
|
-
phone:
|
|
109
|
-
value:
|
|
110
|
-
remark:
|
|
111
|
-
showValue:
|
|
112
|
-
quantity:
|
|
113
|
-
media:
|
|
114
|
-
placeId:
|
|
115
|
-
placeType:
|
|
75
|
+
moduleState: i,
|
|
76
|
+
name: v,
|
|
77
|
+
email: d,
|
|
78
|
+
phone: g,
|
|
79
|
+
value: r,
|
|
80
|
+
remark: A,
|
|
81
|
+
showValue: m,
|
|
82
|
+
quantity: p,
|
|
83
|
+
media: y,
|
|
84
|
+
placeId: l,
|
|
85
|
+
placeType: u,
|
|
116
86
|
showFormPage: F,
|
|
117
|
-
showPaymentPage:
|
|
118
|
-
showConfirmationPage:
|
|
87
|
+
showPaymentPage: I,
|
|
88
|
+
showConfirmationPage: M,
|
|
119
89
|
places: w,
|
|
120
90
|
hasFilledForm: D,
|
|
121
|
-
hasForcedPlaceType:
|
|
122
|
-
isWaitingForResponse:
|
|
123
|
-
isMetaDataAvailable:
|
|
91
|
+
hasForcedPlaceType: B,
|
|
92
|
+
isWaitingForResponse: Z,
|
|
93
|
+
isMetaDataAvailable: H,
|
|
124
94
|
orderGiftCard: q,
|
|
125
|
-
initialize:
|
|
95
|
+
initialize: o
|
|
126
96
|
};
|
|
127
|
-
}),
|
|
97
|
+
}), qe = { class: "media-selector" }, Le = ["accept"], Ae = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, xe = { key: 0 }, Ge = { key: 1 }, ze = { key: 2 }, Be = ["src"], De = /* @__PURE__ */ Q({
|
|
128
98
|
__name: "MediaSelector",
|
|
129
99
|
props: {
|
|
130
100
|
modelValue: {},
|
|
@@ -134,96 +104,94 @@ const re = ye("giftCard", () => {
|
|
|
134
104
|
required: { type: Boolean, default: !1 }
|
|
135
105
|
},
|
|
136
106
|
emits: ["update:modelValue"],
|
|
137
|
-
setup(
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
|
|
107
|
+
setup(S, { emit: f }) {
|
|
108
|
+
const V = f, t = S, { t: i } = se(), { display: v } = ve(), d = C(), g = _(() => t.modelValue.base64 !== "");
|
|
109
|
+
function r(l) {
|
|
110
|
+
V("update:modelValue", l);
|
|
141
111
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
112
|
+
function p() {
|
|
113
|
+
r({
|
|
144
114
|
base64: "",
|
|
145
115
|
name: "",
|
|
146
116
|
type: ""
|
|
147
|
-
}),
|
|
117
|
+
}), d.value && (d.value.value = "");
|
|
148
118
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
119
|
+
function m() {
|
|
120
|
+
d.value && d.value.click();
|
|
151
121
|
}
|
|
152
|
-
function
|
|
153
|
-
const [h,
|
|
154
|
-
F.onload = function(
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
|
|
122
|
+
function A(l, u) {
|
|
123
|
+
const [h, R] = [l.name, l.type], F = new FileReader();
|
|
124
|
+
F.onload = function(I) {
|
|
125
|
+
if (I.target) {
|
|
126
|
+
const M = I.target.result;
|
|
127
|
+
u({ base64: M, name: h, type: R });
|
|
158
128
|
} else
|
|
159
|
-
|
|
160
|
-
message:
|
|
129
|
+
v({
|
|
130
|
+
message: i("imageUploadError"),
|
|
161
131
|
type: "error"
|
|
162
132
|
});
|
|
163
|
-
}, F.readAsDataURL(
|
|
133
|
+
}, F.readAsDataURL(l);
|
|
164
134
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
(o = p.value.files) instanceof FileList && M(o[0], d);
|
|
169
|
-
});
|
|
135
|
+
async function y() {
|
|
136
|
+
let l;
|
|
137
|
+
(l = d.value.files) instanceof FileList && A(l[0], r);
|
|
170
138
|
}
|
|
171
|
-
return (
|
|
172
|
-
label:
|
|
173
|
-
required:
|
|
139
|
+
return (l, u) => (c(), L(ge, {
|
|
140
|
+
label: l.label,
|
|
141
|
+
required: l.required,
|
|
174
142
|
type: "media"
|
|
175
143
|
}, {
|
|
176
144
|
default: G(() => [
|
|
177
|
-
|
|
178
|
-
|
|
145
|
+
s("div", qe, [
|
|
146
|
+
s("input", {
|
|
179
147
|
ref_key: "fileInput",
|
|
180
|
-
ref:
|
|
148
|
+
ref: d,
|
|
181
149
|
type: "file",
|
|
182
150
|
class: "hidden",
|
|
183
|
-
accept:
|
|
151
|
+
accept: l.validation,
|
|
184
152
|
single: "",
|
|
185
|
-
onChange:
|
|
186
|
-
}, null, 40,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
label: e(
|
|
153
|
+
onChange: u[0] || (u[0] = (h) => y())
|
|
154
|
+
}, null, 40, Le),
|
|
155
|
+
s("div", Ae, [
|
|
156
|
+
s("ul", Me, [
|
|
157
|
+
g.value ? T("", !0) : (c(), b("li", xe, [
|
|
158
|
+
n(z, {
|
|
159
|
+
label: e(i)("uploadFile"),
|
|
192
160
|
type: "button",
|
|
193
161
|
icon: "upload",
|
|
194
|
-
"icon-color":
|
|
195
|
-
onClickEvent:
|
|
162
|
+
"icon-color": l.iconColor,
|
|
163
|
+
onClickEvent: u[1] || (u[1] = (h) => m())
|
|
196
164
|
}, null, 8, ["label", "icon-color"])
|
|
197
165
|
])),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
label: e(
|
|
166
|
+
g.value ? (c(), b("li", Ge, [
|
|
167
|
+
n(z, {
|
|
168
|
+
label: e(i)("replaceFile"),
|
|
201
169
|
type: "button",
|
|
202
170
|
icon: "repeat-alt",
|
|
203
|
-
"icon-color":
|
|
204
|
-
onClickEvent:
|
|
171
|
+
"icon-color": l.iconColor,
|
|
172
|
+
onClickEvent: u[2] || (u[2] = (h) => m())
|
|
205
173
|
}, null, 8, ["label", "icon-color"])
|
|
206
174
|
])) : T("", !0),
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
label: e(
|
|
175
|
+
g.value ? (c(), b("li", ze, [
|
|
176
|
+
n(z, {
|
|
177
|
+
label: e(i)("removeFile"),
|
|
210
178
|
type: "button",
|
|
211
179
|
icon: "trash-alt",
|
|
212
|
-
"icon-color":
|
|
213
|
-
onClickEvent:
|
|
180
|
+
"icon-color": l.iconColor,
|
|
181
|
+
onClickEvent: u[3] || (u[3] = (h) => p())
|
|
214
182
|
}, null, 8, ["label", "icon-color"])
|
|
215
183
|
])) : T("", !0)
|
|
216
184
|
]),
|
|
217
|
-
|
|
218
|
-
class:
|
|
185
|
+
s("div", {
|
|
186
|
+
class: re([
|
|
219
187
|
"media-selector-previewer",
|
|
220
|
-
{ opened:
|
|
188
|
+
{ opened: g.value }
|
|
221
189
|
])
|
|
222
190
|
}, [
|
|
223
|
-
|
|
191
|
+
l.modelValue ? (c(), b("img", {
|
|
224
192
|
key: 0,
|
|
225
|
-
src:
|
|
226
|
-
}, null, 8,
|
|
193
|
+
src: l.modelValue.base64
|
|
194
|
+
}, null, 8, Be)) : T("", !0)
|
|
227
195
|
], 2)
|
|
228
196
|
])
|
|
229
197
|
])
|
|
@@ -232,9 +200,9 @@ const re = ye("giftCard", () => {
|
|
|
232
200
|
}, 8, ["label", "required"]));
|
|
233
201
|
}
|
|
234
202
|
});
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
|
|
203
|
+
function ne(S) {
|
|
204
|
+
const f = S;
|
|
205
|
+
f.__i18n = f.__i18n || [], f.__i18n.push({
|
|
238
206
|
locale: "",
|
|
239
207
|
resource: {
|
|
240
208
|
da: {
|
|
@@ -252,39 +220,39 @@ function de(c) {
|
|
|
252
220
|
}
|
|
253
221
|
});
|
|
254
222
|
}
|
|
255
|
-
typeof
|
|
256
|
-
const
|
|
223
|
+
typeof ne == "function" && ne(De);
|
|
224
|
+
const je = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-form" }, We = /* @__PURE__ */ Q({
|
|
257
225
|
__name: "GiftCardSkeleton",
|
|
258
|
-
setup(
|
|
259
|
-
return (
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
226
|
+
setup(S) {
|
|
227
|
+
return (f, V) => (c(), b("div", je, [
|
|
228
|
+
s("div", Ne, [
|
|
229
|
+
n(x),
|
|
230
|
+
n(x),
|
|
231
|
+
n(x),
|
|
232
|
+
n(x),
|
|
233
|
+
n(x, { "is-text-area": "" }),
|
|
234
|
+
n(Ie, { height: "44px" })
|
|
267
235
|
])
|
|
268
236
|
]));
|
|
269
237
|
}
|
|
270
|
-
}),
|
|
238
|
+
}), Oe = /* @__PURE__ */ de(We, [["__scopeId", "data-v-e35c75b3"]]), He = {
|
|
271
239
|
key: 0,
|
|
272
240
|
id: "konnectio-gift-card-wrapper"
|
|
273
|
-
},
|
|
241
|
+
}, Ze = { id: "konnectio-gift-card-title" }, Ke = { id: "konnectio-gift-card-content" }, Ye = { id: "konnectio-gift-card-payment" }, Je = ["innerHTML"], Qe = { key: 0 }, Xe = {
|
|
274
242
|
key: 0,
|
|
275
243
|
id: "fresh-booking-select-place-type"
|
|
276
|
-
},
|
|
277
|
-
class: /* @__PURE__ */
|
|
278
|
-
},
|
|
244
|
+
}, ea = {
|
|
245
|
+
class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
|
|
246
|
+
}, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
|
|
279
247
|
key: 0,
|
|
280
248
|
id: "konnectio-gift-card-order"
|
|
281
|
-
},
|
|
249
|
+
}, oa = { class: "fresh-booking-panel" }, na = {
|
|
282
250
|
key: 1,
|
|
283
251
|
id: "konnectio-gift-card-remarks"
|
|
284
|
-
},
|
|
252
|
+
}, ia = {
|
|
285
253
|
key: 2,
|
|
286
254
|
id: "konnectio-gift-card-order-minimal"
|
|
287
|
-
},
|
|
255
|
+
}, sa = { id: "konnectio-gift-card-recaptcha" }, ra = /* @__PURE__ */ Q({
|
|
288
256
|
name: "GiftCardLayout",
|
|
289
257
|
__name: "GiftCard",
|
|
290
258
|
props: {
|
|
@@ -293,95 +261,96 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
293
261
|
placeType: {},
|
|
294
262
|
styling: {}
|
|
295
263
|
},
|
|
296
|
-
setup(
|
|
297
|
-
const
|
|
298
|
-
panelMaxWidth: "800px"
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
264
|
+
setup(S) {
|
|
265
|
+
const f = S, V = _(() => ({
|
|
266
|
+
panelMaxWidth: "800px",
|
|
267
|
+
...f.styling
|
|
268
|
+
})), { t } = se(), {
|
|
269
|
+
name: i,
|
|
270
|
+
email: v,
|
|
271
|
+
phone: d,
|
|
272
|
+
value: g,
|
|
273
|
+
remark: r,
|
|
274
|
+
showValue: p,
|
|
275
|
+
quantity: m,
|
|
276
|
+
media: A,
|
|
277
|
+
placeId: y,
|
|
278
|
+
placeType: l,
|
|
279
|
+
showFormPage: u,
|
|
311
280
|
showPaymentPage: h,
|
|
312
|
-
showConfirmationPage:
|
|
281
|
+
showConfirmationPage: R,
|
|
313
282
|
places: F,
|
|
314
|
-
hasFilledForm:
|
|
315
|
-
hasForcedPlaceType:
|
|
283
|
+
hasFilledForm: I,
|
|
284
|
+
hasForcedPlaceType: M,
|
|
316
285
|
isWaitingForResponse: w,
|
|
317
|
-
isMetaDataAvailable:
|
|
318
|
-
} =
|
|
319
|
-
return
|
|
320
|
-
|
|
321
|
-
}),
|
|
322
|
-
const q =
|
|
286
|
+
isMetaDataAvailable: B
|
|
287
|
+
} = J(oe()), { initialize: E, orderGiftCard: D } = oe(), { isRecaptchaEnabled: H, currency: Z } = J(ie());
|
|
288
|
+
return be(l, () => {
|
|
289
|
+
y.value = void 0;
|
|
290
|
+
}), he(() => {
|
|
291
|
+
const q = f.placeType ? parseInt(f.placeType) : void 0;
|
|
323
292
|
E(q);
|
|
324
|
-
}), (q,
|
|
293
|
+
}), (q, o) => (c(), L(we, { styling: V.value }, {
|
|
325
294
|
default: G(() => [
|
|
326
|
-
(
|
|
295
|
+
(c(), L(ye, null, {
|
|
327
296
|
default: G(() => [
|
|
328
|
-
|
|
297
|
+
n(Fe, {
|
|
329
298
|
id: "konnectio-gift-card-module",
|
|
330
299
|
type: "gift-card",
|
|
331
300
|
"access-token": q.accessToken,
|
|
332
301
|
"data-layout": q.layout
|
|
333
302
|
}, {
|
|
334
303
|
default: G(() => [
|
|
335
|
-
e(
|
|
336
|
-
|
|
337
|
-
|
|
304
|
+
e(B) ? (c(), b("div", He, [
|
|
305
|
+
s("h2", Ze, [
|
|
306
|
+
s("span", null, ae(e(t)("giftCard.title")), 1)
|
|
338
307
|
]),
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
308
|
+
s("div", Ke, [
|
|
309
|
+
j(s("div", Ye, [
|
|
310
|
+
n(Ue)
|
|
342
311
|
], 512), [
|
|
343
|
-
[
|
|
312
|
+
[N, e(h)]
|
|
344
313
|
]),
|
|
345
|
-
|
|
346
|
-
|
|
314
|
+
j(s("div", null, [
|
|
315
|
+
s("p", {
|
|
347
316
|
id: "konnectio-gift-card-description",
|
|
348
317
|
innerHTML: e(t)("giftCard.description")
|
|
349
|
-
}, null, 8,
|
|
350
|
-
|
|
351
|
-
e(
|
|
352
|
-
e(F) ? (
|
|
353
|
-
|
|
354
|
-
|
|
318
|
+
}, null, 8, Je),
|
|
319
|
+
s("form", null, [
|
|
320
|
+
e(M) ? T("", !0) : (c(), b("div", Qe, [
|
|
321
|
+
e(F) ? (c(), b("div", Xe, [
|
|
322
|
+
s("label", ea, [
|
|
323
|
+
s("span", null, ae(e(t)("giftCard.selectType")), 1)
|
|
355
324
|
]),
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
(
|
|
359
|
-
|
|
360
|
-
modelValue: e(
|
|
361
|
-
"onUpdate:modelValue":
|
|
325
|
+
s("div", aa, [
|
|
326
|
+
s("ul", null, [
|
|
327
|
+
(c(!0), b(ke, null, Ce(e(F), (a, $) => (c(), b("li", { key: $ }, [
|
|
328
|
+
n(te, {
|
|
329
|
+
modelValue: e(l),
|
|
330
|
+
"onUpdate:modelValue": o[0] || (o[0] = (P) => k(l) ? l.value = P : null),
|
|
362
331
|
type: "radio",
|
|
363
332
|
name: "placeType",
|
|
364
|
-
val:
|
|
333
|
+
val: $,
|
|
365
334
|
label: a.label
|
|
366
335
|
}, null, 8, ["modelValue", "val", "label"])
|
|
367
336
|
]))), 128))
|
|
368
337
|
]),
|
|
369
|
-
e(F)[e(
|
|
338
|
+
e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (c(), L(_e, {
|
|
370
339
|
key: 0,
|
|
371
|
-
modelValue: e(
|
|
372
|
-
"onUpdate:modelValue":
|
|
340
|
+
modelValue: e(y),
|
|
341
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => k(y) ? y.value = a : null),
|
|
373
342
|
placeholder: e(t)("giftCard.selectPlacePlaceholder"),
|
|
374
|
-
options: e(F)[e(
|
|
343
|
+
options: e(F)[e(l)].data,
|
|
375
344
|
labelKey: "name",
|
|
376
345
|
valueKey: "id",
|
|
377
346
|
required: ""
|
|
378
347
|
}, null, 8, ["modelValue", "placeholder", "options"])) : T("", !0)
|
|
379
348
|
])
|
|
380
|
-
])) : (
|
|
349
|
+
])) : (c(), L(le, { key: 1 }))
|
|
381
350
|
])),
|
|
382
|
-
|
|
383
|
-
modelValue: e(
|
|
384
|
-
"onUpdate:modelValue":
|
|
351
|
+
n(W, {
|
|
352
|
+
modelValue: e(i),
|
|
353
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => k(i) ? i.value = a : null),
|
|
385
354
|
type: "text",
|
|
386
355
|
name: "name",
|
|
387
356
|
autocomplete: "name",
|
|
@@ -390,9 +359,9 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
390
359
|
placeholder: e(t)("giftCard.namePlaceholder"),
|
|
391
360
|
required: ""
|
|
392
361
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
393
|
-
|
|
394
|
-
modelValue: e(
|
|
395
|
-
"onUpdate:modelValue":
|
|
362
|
+
n(W, {
|
|
363
|
+
modelValue: e(v),
|
|
364
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => k(v) ? v.value = a : null),
|
|
396
365
|
type: "email",
|
|
397
366
|
name: "email",
|
|
398
367
|
autocomplete: "email",
|
|
@@ -401,69 +370,69 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
401
370
|
placeholder: e(t)("giftCard.emailPlaceholder"),
|
|
402
371
|
required: ""
|
|
403
372
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
404
|
-
|
|
405
|
-
modelValue: e(
|
|
406
|
-
"onUpdate:modelValue":
|
|
373
|
+
n(Ee, {
|
|
374
|
+
modelValue: e(d),
|
|
375
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => k(d) ? d.value = a : null),
|
|
407
376
|
icon: "phone-office",
|
|
408
377
|
label: e(t)("giftCard.phone"),
|
|
409
378
|
placeholder: e(t)("giftCard.phonePlaceholder"),
|
|
410
379
|
required: ""
|
|
411
380
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
412
|
-
|
|
413
|
-
modelValue: e(
|
|
414
|
-
"onUpdate:modelValue":
|
|
381
|
+
n(W, {
|
|
382
|
+
modelValue: e(g),
|
|
383
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => k(g) ? g.value = a : null),
|
|
415
384
|
type: "number",
|
|
416
385
|
name: "value",
|
|
417
386
|
label: e(t)("giftCard.value"),
|
|
418
387
|
icon: "money-bill",
|
|
419
388
|
placeholder: e(t)("giftCard.valuePlaceholder"),
|
|
420
|
-
suffix: e(
|
|
389
|
+
suffix: e(Z),
|
|
421
390
|
required: ""
|
|
422
391
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
423
|
-
|
|
424
|
-
modelValue: e(
|
|
425
|
-
"onUpdate:modelValue":
|
|
392
|
+
n(te, {
|
|
393
|
+
modelValue: e(p),
|
|
394
|
+
"onUpdate:modelValue": o[6] || (o[6] = (a) => k(p) ? p.value = a : null),
|
|
426
395
|
type: "checkbox",
|
|
427
396
|
name: "showValue",
|
|
428
397
|
label: e(t)("giftCard.showValue"),
|
|
429
|
-
checked: e(
|
|
398
|
+
checked: e(p)
|
|
430
399
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
431
400
|
T("", !0),
|
|
432
|
-
|
|
433
|
-
modelValue: e(
|
|
434
|
-
"onUpdate:modelValue":
|
|
401
|
+
n(Ve, {
|
|
402
|
+
modelValue: e(m),
|
|
403
|
+
"onUpdate:modelValue": o[8] || (o[8] = (a) => k(m) ? m.value = a : null),
|
|
435
404
|
label: e(t)("giftCard.quantity"),
|
|
436
405
|
icon: "gift-card",
|
|
437
406
|
required: ""
|
|
438
407
|
}, null, 8, ["modelValue", "label"])
|
|
439
408
|
])
|
|
440
409
|
], 512), [
|
|
441
|
-
[
|
|
410
|
+
[N, e(u)]
|
|
442
411
|
]),
|
|
443
|
-
|
|
444
|
-
|
|
412
|
+
j(s("div", null, [
|
|
413
|
+
s("div", {
|
|
445
414
|
innerHTML: e(t)("giftCard.thankYou")
|
|
446
|
-
}, null, 8,
|
|
415
|
+
}, null, 8, la)
|
|
447
416
|
], 512), [
|
|
448
|
-
[
|
|
417
|
+
[N, e(R)]
|
|
449
418
|
])
|
|
450
419
|
]),
|
|
451
|
-
q.layout !== "minimal" && e(
|
|
452
|
-
|
|
453
|
-
|
|
420
|
+
q.layout !== "minimal" && e(u) ? (c(), b("div", ta, [
|
|
421
|
+
s("div", oa, [
|
|
422
|
+
n(z, {
|
|
454
423
|
label: e(t)("giftCard.orderGiftCard"),
|
|
455
424
|
"full-width": !0,
|
|
456
|
-
disabled: !e(
|
|
425
|
+
disabled: !e(I),
|
|
457
426
|
"is-loading": e(w),
|
|
458
|
-
"onUpdate:isLoading":
|
|
427
|
+
"onUpdate:isLoading": o[9] || (o[9] = (a) => k(w) ? w.value = a : null),
|
|
459
428
|
onClickEvent: e(D)
|
|
460
429
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
461
430
|
])
|
|
462
431
|
])) : T("", !0),
|
|
463
|
-
e(
|
|
464
|
-
|
|
465
|
-
modelValue: e(
|
|
466
|
-
"onUpdate:modelValue":
|
|
432
|
+
e(u) ? (c(), b("div", na, [
|
|
433
|
+
n(W, {
|
|
434
|
+
modelValue: e(r),
|
|
435
|
+
"onUpdate:modelValue": o[10] || (o[10] = (a) => k(r) ? r.value = a : null),
|
|
467
436
|
type: "textarea",
|
|
468
437
|
name: "remark",
|
|
469
438
|
label: e(t)("giftCard.remark"),
|
|
@@ -471,29 +440,29 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
471
440
|
placeholder: e(t)("giftCard.remarkPlaceholder")
|
|
472
441
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
473
442
|
])) : T("", !0),
|
|
474
|
-
e(
|
|
475
|
-
|
|
443
|
+
e(u) ? (c(), b("div", ia, [
|
|
444
|
+
n(z, {
|
|
476
445
|
label: e(t)("giftCard.orderGiftCard"),
|
|
477
446
|
"full-width": !0,
|
|
478
|
-
disabled: !e(
|
|
447
|
+
disabled: !e(I),
|
|
479
448
|
"data-test": "orderGiftCard",
|
|
480
449
|
"is-loading": e(w),
|
|
481
|
-
"onUpdate:isLoading":
|
|
450
|
+
"onUpdate:isLoading": o[11] || (o[11] = (a) => k(w) ? w.value = a : null),
|
|
482
451
|
onClickEvent: e(D)
|
|
483
452
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
484
|
-
|
|
485
|
-
|
|
453
|
+
j(s("div", sa, [
|
|
454
|
+
n(Re)
|
|
486
455
|
], 512), [
|
|
487
|
-
[
|
|
456
|
+
[N, e(H)]
|
|
488
457
|
])
|
|
489
458
|
])) : T("", !0)
|
|
490
|
-
])) : (
|
|
459
|
+
])) : (c(), L(le, { key: 1 }))
|
|
491
460
|
]),
|
|
492
461
|
_: 1
|
|
493
462
|
}, 8, ["access-token", "data-layout"])
|
|
494
463
|
]),
|
|
495
464
|
fallback: G(() => [
|
|
496
|
-
|
|
465
|
+
n(Oe)
|
|
497
466
|
]),
|
|
498
467
|
_: 1
|
|
499
468
|
}))
|
|
@@ -501,27 +470,36 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
501
470
|
_: 1
|
|
502
471
|
}, 8, ["styling"]));
|
|
503
472
|
}
|
|
504
|
-
}),
|
|
505
|
-
class
|
|
473
|
+
}), O = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-ec9ea15b"]]), da = Pe();
|
|
474
|
+
class ua extends HTMLElement {
|
|
506
475
|
constructor() {
|
|
507
476
|
super();
|
|
508
477
|
}
|
|
509
478
|
connectedCallback() {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
479
|
+
const f = typeof O == "function" ? O.options : O;
|
|
480
|
+
let V = Array.isArray(f.props) ? f.props : Object.keys(f.props || {});
|
|
481
|
+
console.log(f);
|
|
482
|
+
const t = (r) => r.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (p, m) => (m ? "-" : "") + p.toLowerCase()), i = {};
|
|
483
|
+
V = V.map(t);
|
|
484
|
+
const v = {};
|
|
485
|
+
for (const r of this.attributes) {
|
|
486
|
+
const p = r.name, m = p.split(".");
|
|
487
|
+
console.log(p, m.length), m.length > 1 && (v[m[0]] || (v[m[0]] = {}), v[m[0]][m[1]] = r.value);
|
|
488
|
+
}
|
|
489
|
+
console.log(v);
|
|
490
|
+
for (const r of V) {
|
|
491
|
+
let p = this.attributes.getNamedItem(r)?.value;
|
|
492
|
+
if (v.hasOwnProperty(r) && (p = v[r]), !p)
|
|
515
493
|
break;
|
|
516
|
-
|
|
494
|
+
i[r] = p;
|
|
517
495
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
496
|
+
const d = Te(O, i);
|
|
497
|
+
d.use(da), d.use(Se), d.use($e, { bootstrap: !0 });
|
|
520
498
|
const g = document.createElement("div");
|
|
521
|
-
|
|
499
|
+
d.mount(g), this.appendChild(g.children[0]);
|
|
522
500
|
}
|
|
523
501
|
}
|
|
524
|
-
window.customElements.define("konnectio-gift-card",
|
|
502
|
+
window.customElements.define("konnectio-gift-card", ua);
|
|
525
503
|
export {
|
|
526
|
-
|
|
504
|
+
ua as default
|
|
527
505
|
};
|