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