@konnectio/core 4.0.56-rc1 → 4.0.56-rc11
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-BCGIGizy.js} +27 -28
- package/dist/ActionField-BCGIGizy.js.br +0 -0
- package/dist/AvailabilitySkeleton-d30Akjrq.js +214 -0
- package/dist/AvailabilitySkeleton-d30Akjrq.js.br +0 -0
- package/dist/{CheckoutWindow-qcH3-VM_.js → CheckoutWindow-Er5Fh6JL.js} +46 -47
- package/dist/CheckoutWindow-Er5Fh6JL.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-P6b6EBxJ.js → DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js} +242 -243
- package/dist/DateField.vue_vue_type_style_index_0_lang-uh-8PtWD.js.br +0 -0
- package/dist/{Field-6RS3B8_R.js → Field-yVjo13cY.js} +12 -13
- package/dist/Field-yVjo13cY.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js +30449 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js.br +0 -0
- package/dist/{ThankYou-DNyz9gET.js → ThankYou-HHVwQVzN.js} +802 -821
- package/dist/ThankYou-HHVwQVzN.js.br +0 -0
- package/dist/_-3f6HQpXv.js +19 -0
- package/dist/_commonjsHelpers-2ufMB8rV.js +30 -0
- package/dist/availability.js +118 -98
- package/dist/availability.js.br +0 -0
- package/dist/{event-LEsu5Cet.js → event-ZitNye5j.js} +9 -10
- package/dist/event-ZitNye5j.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 +276 -268
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1574 -1551
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +3201 -3210
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +26 -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/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 de, u as ue, s as J, c as ne, r as _, ae as E, e as K, f as V, j as ee, S as Y, i as ce, h as pe, af as me, k as Q, B as ie, b as fe, o as c, m as A, w as B, x as s, l as h, p as n, z as e, C as z, n as w, q as se, I as ve, _ as re, Y as ge, Z as he, D as be, F as ae, ag as j, ah as N, $ as ye, a6 as ke, G as $, y as Ce, a7 as le, T as W, A as _e, M as Ve, N as we, R as Fe, U as Pe, V as Te, ab as $e } from "./SelectField.vue_vue_type_style_index_0_lang-Ywo3vyws.js";
|
|
2
|
+
import { a as Se, C as Ue, P as Ee, _ as Re } from "./CheckoutWindow-Er5Fh6JL.js";
|
|
3
|
+
import { E as Ie } from "./_-3f6HQpXv.js";
|
|
4
|
+
import { F as x } from "./Field-yVjo13cY.js";
|
|
5
|
+
import "./_commonjsHelpers-2ufMB8rV.js";
|
|
6
|
+
const te = de("giftCard", () => {
|
|
7
|
+
const { pay: S } = ue(), { bearerToken: f, metaData: k, currencyId: t } = J(ne()), r = _(E.InitialState), b = K("konnectio_name", "", void 0, { serializer: Y.string }), i = K("konnectio_email", "", void 0, { serializer: Y.string }), m = K("konnectio_phone", "", void 0, { serializer: Y.string }), g = _(""), p = _(1), d = _(!0), v = _(""), C = _({
|
|
10
8
|
base64: "",
|
|
11
9
|
type: "",
|
|
12
10
|
name: ""
|
|
13
|
-
}), l =
|
|
11
|
+
}), l = _(void 0), u = _(0), y = _(!1), I = _(0), F = V(() => r.value === E.InitialState || r.value === E.WaitingForResponse), q = V(() => r.value === E.ReadyToPay), M = V(() => r.value === E.PaymentSuccess), P = V(() => {
|
|
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
|
+
}, U = k.value.hotels[0].places;
|
|
22
|
+
return U && U.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
|
+
}), G = V(() => I.value !== 0), R = V(() => {
|
|
30
28
|
let a;
|
|
31
|
-
if (
|
|
32
|
-
a =
|
|
33
|
-
else if (
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
String(
|
|
29
|
+
if (G.value)
|
|
30
|
+
a = P.value[I.value].data[0];
|
|
31
|
+
else if (u.value !== 0) {
|
|
32
|
+
const U = l.value, T = P.value[u.value].data;
|
|
33
|
+
T.length === 1 ? a = T[0] : U !== void 0 && T.forEach((X) => {
|
|
34
|
+
String(X.id) === String(U) && (a = X);
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
37
|
return a;
|
|
40
|
-
}),
|
|
41
|
-
async function
|
|
42
|
-
|
|
38
|
+
}), D = V(() => !(!b.value || !i.value || !(m.value.length >= 5) || !g.value || R.value === void 0)), H = V(() => !(r.value === E.InitialState && y.value)), Z = V(() => !!(r.value === E.WaitingForResponse && y.value));
|
|
39
|
+
async function L() {
|
|
40
|
+
r.value = E.WaitingForResponse, y.value = !0, await ce.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: pe(),
|
|
45
|
+
amount: g.value,
|
|
46
|
+
quantity: p.value,
|
|
47
|
+
freeText: v.value,
|
|
48
|
+
showPrice: d.value,
|
|
49
|
+
contactName: b.value,
|
|
50
|
+
contactEmail: i.value,
|
|
53
51
|
contactPhone: m.value,
|
|
54
|
-
imageBase64:
|
|
55
|
-
imageName:
|
|
56
|
-
imageFormat:
|
|
57
|
-
placeType:
|
|
58
|
-
placeID:
|
|
52
|
+
imageBase64: me(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-rc11"
|
|
64
62
|
}
|
|
65
63
|
}).then((a) => {
|
|
66
|
-
|
|
64
|
+
r.value = E.ReadyToPay, y.value = !1, S({
|
|
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:
|
|
77
|
-
moduleState:
|
|
78
|
-
name:
|
|
79
|
-
email:
|
|
74
|
+
selectedPlace: R,
|
|
75
|
+
moduleState: r,
|
|
76
|
+
name: b,
|
|
77
|
+
email: i,
|
|
80
78
|
phone: m,
|
|
81
|
-
value:
|
|
82
|
-
remark:
|
|
83
|
-
showValue:
|
|
84
|
-
quantity:
|
|
85
|
-
media:
|
|
79
|
+
value: g,
|
|
80
|
+
remark: v,
|
|
81
|
+
showValue: d,
|
|
82
|
+
quantity: p,
|
|
83
|
+
media: C,
|
|
86
84
|
placeId: l,
|
|
87
|
-
placeType:
|
|
88
|
-
showFormPage:
|
|
85
|
+
placeType: u,
|
|
86
|
+
showFormPage: F,
|
|
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: G,
|
|
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 }, Be = { key: 1 }, ze = { key: 2 }, Ge = ["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(S, { emit: f }) {
|
|
108
|
+
const k = f, t = S, { t: r } = ie(), { display: b } = fe(), i = _(), m = V(() => t.modelValue.base64 !== "");
|
|
109
|
+
function g(l) {
|
|
110
|
+
k("update:modelValue", l);
|
|
113
111
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
112
|
+
function p() {
|
|
113
|
+
g({
|
|
116
114
|
base64: "",
|
|
117
115
|
name: "",
|
|
118
116
|
type: ""
|
|
119
|
-
}),
|
|
117
|
+
}), i.value && (i.value.value = "");
|
|
120
118
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
119
|
+
function d() {
|
|
120
|
+
i.value && i.value.click();
|
|
123
121
|
}
|
|
124
|
-
function
|
|
125
|
-
const [
|
|
126
|
-
|
|
122
|
+
function v(l, u) {
|
|
123
|
+
const [y, I] = [l.name, l.type], F = new FileReader();
|
|
124
|
+
F.onload = function(q) {
|
|
127
125
|
if (q.target) {
|
|
128
126
|
const M = q.target.result;
|
|
129
|
-
|
|
127
|
+
u({ base64: M, name: y, type: I });
|
|
130
128
|
} else
|
|
131
|
-
|
|
132
|
-
message:
|
|
129
|
+
b({
|
|
130
|
+
message: r("imageUploadError"),
|
|
133
131
|
type: "error"
|
|
134
132
|
});
|
|
135
|
-
},
|
|
133
|
+
}, F.readAsDataURL(l);
|
|
136
134
|
}
|
|
137
|
-
async function
|
|
135
|
+
async function C() {
|
|
138
136
|
let l;
|
|
139
|
-
(l =
|
|
137
|
+
(l = i.value.files) instanceof FileList && v(l[0], g);
|
|
140
138
|
}
|
|
141
|
-
return (l,
|
|
139
|
+
return (l, u) => (c(), A(ve, {
|
|
142
140
|
label: l.label,
|
|
143
141
|
required: l.required,
|
|
144
142
|
type: "media"
|
|
145
143
|
}, {
|
|
146
|
-
default:
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
default: B(() => [
|
|
145
|
+
s("div", qe, [
|
|
146
|
+
s("input", {
|
|
149
147
|
ref_key: "fileInput",
|
|
150
|
-
ref:
|
|
148
|
+
ref: i,
|
|
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
|
-
|
|
161
|
-
label: e(
|
|
153
|
+
onChange: u[0] || (u[0] = (y) => C())
|
|
154
|
+
}, null, 40, Le),
|
|
155
|
+
s("div", Ae, [
|
|
156
|
+
s("ul", Me, [
|
|
157
|
+
m.value ? w("", !0) : (c(), h("li", xe, [
|
|
158
|
+
n(z, {
|
|
159
|
+
label: e(r)("uploadFile"),
|
|
162
160
|
type: "button",
|
|
163
161
|
icon: "upload",
|
|
164
162
|
"icon-color": l.iconColor,
|
|
165
|
-
onClickEvent:
|
|
163
|
+
onClickEvent: u[1] || (u[1] = (y) => d())
|
|
166
164
|
}, null, 8, ["label", "icon-color"])
|
|
167
165
|
])),
|
|
168
|
-
m.value ? (
|
|
169
|
-
|
|
170
|
-
label: e(
|
|
166
|
+
m.value ? (c(), h("li", Be, [
|
|
167
|
+
n(z, {
|
|
168
|
+
label: e(r)("replaceFile"),
|
|
171
169
|
type: "button",
|
|
172
170
|
icon: "repeat-alt",
|
|
173
171
|
"icon-color": l.iconColor,
|
|
174
|
-
onClickEvent:
|
|
172
|
+
onClickEvent: u[2] || (u[2] = (y) => d())
|
|
175
173
|
}, null, 8, ["label", "icon-color"])
|
|
176
|
-
])) :
|
|
177
|
-
m.value ? (
|
|
178
|
-
|
|
179
|
-
label: e(
|
|
174
|
+
])) : w("", !0),
|
|
175
|
+
m.value ? (c(), h("li", ze, [
|
|
176
|
+
n(z, {
|
|
177
|
+
label: e(r)("removeFile"),
|
|
180
178
|
type: "button",
|
|
181
179
|
icon: "trash-alt",
|
|
182
180
|
"icon-color": l.iconColor,
|
|
183
|
-
onClickEvent:
|
|
181
|
+
onClickEvent: u[3] || (u[3] = (y) => p())
|
|
184
182
|
}, null, 8, ["label", "icon-color"])
|
|
185
|
-
])) :
|
|
183
|
+
])) : w("", !0)
|
|
186
184
|
]),
|
|
187
|
-
|
|
188
|
-
class:
|
|
185
|
+
s("div", {
|
|
186
|
+
class: se([
|
|
189
187
|
"media-selector-previewer",
|
|
190
188
|
{ opened: m.value }
|
|
191
189
|
])
|
|
192
190
|
}, [
|
|
193
|
-
l.modelValue ? (
|
|
191
|
+
l.modelValue ? (c(), h("img", {
|
|
194
192
|
key: 0,
|
|
195
193
|
src: l.modelValue.base64
|
|
196
|
-
}, null, 8,
|
|
194
|
+
}, null, 8, Ge)) : w("", !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 oe(S) {
|
|
204
|
+
const f = S;
|
|
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 oe == "function" && oe(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(S) {
|
|
227
|
+
return (f, k) => (c(), h("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" })
|
|
237
235
|
])
|
|
238
236
|
]));
|
|
239
237
|
}
|
|
240
|
-
}), Oe = /* @__PURE__ */
|
|
238
|
+
}), Oe = /* @__PURE__ */ re(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__ */ se(["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,201 @@ 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(S) {
|
|
265
|
+
const f = S, k = V(() => ({
|
|
268
266
|
panelMaxWidth: "800px",
|
|
269
|
-
...
|
|
270
|
-
})), { t
|
|
271
|
-
name:
|
|
272
|
-
email:
|
|
273
|
-
phone:
|
|
267
|
+
...f.styling
|
|
268
|
+
})), { t } = ie(), {
|
|
269
|
+
name: r,
|
|
270
|
+
email: b,
|
|
271
|
+
phone: i,
|
|
274
272
|
value: m,
|
|
275
|
-
remark:
|
|
276
|
-
showValue:
|
|
277
|
-
quantity:
|
|
278
|
-
media:
|
|
279
|
-
placeId:
|
|
273
|
+
remark: g,
|
|
274
|
+
showValue: p,
|
|
275
|
+
quantity: d,
|
|
276
|
+
media: v,
|
|
277
|
+
placeId: C,
|
|
280
278
|
placeType: l,
|
|
281
|
-
showFormPage:
|
|
282
|
-
showPaymentPage:
|
|
283
|
-
showConfirmationPage:
|
|
284
|
-
places:
|
|
279
|
+
showFormPage: u,
|
|
280
|
+
showPaymentPage: y,
|
|
281
|
+
showConfirmationPage: I,
|
|
282
|
+
places: F,
|
|
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: G
|
|
287
|
+
} = J(te()), { initialize: R, orderGiftCard: D } = te(), { isRecaptchaEnabled: H, currency: Z } = J(ne());
|
|
288
|
+
return ge(l, () => {
|
|
289
|
+
C.value = void 0;
|
|
290
|
+
}), he(() => {
|
|
291
|
+
const L = f.placeType ? parseInt(f.placeType) : void 0;
|
|
292
|
+
R(L);
|
|
293
|
+
}), (L, o) => (c(), A(we, { styling: k.value }, {
|
|
294
|
+
default: B(() => [
|
|
295
|
+
(c(), A(be, null, {
|
|
296
|
+
default: B(() => [
|
|
297
|
+
n(Ve, {
|
|
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: B(() => [
|
|
304
|
+
e(G) ? (c(), h("div", He, [
|
|
305
|
+
s("h2", Ze, [
|
|
306
|
+
s("span", null, ae(e(t)("giftCard.title")), 1)
|
|
309
307
|
]),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
308
|
+
s("div", Ke, [
|
|
309
|
+
j(s("div", Ye, [
|
|
310
|
+
n(Se)
|
|
313
311
|
], 512), [
|
|
314
|
-
[
|
|
312
|
+
[N, e(y)]
|
|
315
313
|
]),
|
|
316
|
-
|
|
317
|
-
|
|
314
|
+
j(s("div", null, [
|
|
315
|
+
s("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
|
+
s("form", null, [
|
|
320
|
+
e(M) ? w("", !0) : (c(), h("div", Qe, [
|
|
321
|
+
e(F) ? (c(), h("div", Xe, [
|
|
322
|
+
s("label", ea, [
|
|
323
|
+
s("span", null, ae(e(t)("giftCard.selectType")), 1)
|
|
326
324
|
]),
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
(
|
|
330
|
-
|
|
325
|
+
s("div", aa, [
|
|
326
|
+
s("ul", null, [
|
|
327
|
+
(c(!0), h(ye, null, ke(e(F), (a, U) => (c(), h("li", { key: U }, [
|
|
328
|
+
n(Ue, {
|
|
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: U,
|
|
336
334
|
label: a.label
|
|
337
335
|
}, null, 8, ["modelValue", "val", "label"])
|
|
338
336
|
]))), 128))
|
|
339
337
|
]),
|
|
340
|
-
e(
|
|
338
|
+
e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (c(), A(Ce, {
|
|
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(F)[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"])) : w("", !0)
|
|
350
348
|
])
|
|
351
|
-
])) : (
|
|
349
|
+
])) : (c(), A(le, { key: 1 }))
|
|
352
350
|
])),
|
|
353
|
-
|
|
354
|
-
modelValue: e(
|
|
355
|
-
"onUpdate:modelValue":
|
|
351
|
+
n(W, {
|
|
352
|
+
modelValue: e(r),
|
|
353
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => $(r) ? r.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(b),
|
|
364
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => $(b) ? b.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(i),
|
|
375
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => $(i) ? i.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
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
label: e(
|
|
400
|
-
checked: e(w)
|
|
401
|
-
}, null, 8, ["modelValue", "label", "checked"]),
|
|
402
|
-
F("", !0),
|
|
403
|
-
i(we, {
|
|
404
|
-
modelValue: e(T),
|
|
405
|
-
"onUpdate:modelValue": t[8] || (t[8] = (a) => g(T) ? T.value = a : null),
|
|
406
|
-
label: e(o)("giftCard.quantity"),
|
|
392
|
+
w("", !0),
|
|
393
|
+
w("", !0),
|
|
394
|
+
n(_e, {
|
|
395
|
+
modelValue: e(d),
|
|
396
|
+
"onUpdate:modelValue": o[8] || (o[8] = (a) => $(d) ? d.value = a : null),
|
|
397
|
+
label: e(t)("giftCard.quantity"),
|
|
407
398
|
icon: "gift-card",
|
|
408
399
|
required: ""
|
|
409
400
|
}, null, 8, ["modelValue", "label"])
|
|
410
401
|
])
|
|
411
402
|
], 512), [
|
|
412
|
-
[
|
|
403
|
+
[N, e(u)]
|
|
413
404
|
]),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
innerHTML: e(
|
|
417
|
-
}, null, 8,
|
|
405
|
+
j(s("div", null, [
|
|
406
|
+
s("div", {
|
|
407
|
+
innerHTML: e(t)("giftCard.thankYou")
|
|
408
|
+
}, null, 8, la)
|
|
418
409
|
], 512), [
|
|
419
|
-
[
|
|
410
|
+
[N, e(I)]
|
|
420
411
|
])
|
|
421
412
|
]),
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
label: e(
|
|
413
|
+
L.layout !== "minimal" && e(u) ? (c(), h("div", ta, [
|
|
414
|
+
s("div", oa, [
|
|
415
|
+
n(z, {
|
|
416
|
+
label: e(t)("giftCard.orderGiftCard"),
|
|
426
417
|
"full-width": !0,
|
|
427
418
|
disabled: !e(q),
|
|
428
|
-
"is-loading": e(
|
|
429
|
-
"onUpdate:isLoading":
|
|
430
|
-
onClickEvent: e(
|
|
419
|
+
"is-loading": e(P),
|
|
420
|
+
"onUpdate:isLoading": o[9] || (o[9] = (a) => $(P) ? P.value = a : null),
|
|
421
|
+
onClickEvent: e(D)
|
|
431
422
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
432
423
|
])
|
|
433
|
-
])) :
|
|
434
|
-
e(
|
|
435
|
-
|
|
436
|
-
modelValue: e(
|
|
437
|
-
"onUpdate:modelValue":
|
|
424
|
+
])) : w("", !0),
|
|
425
|
+
e(u) ? (c(), h("div", na, [
|
|
426
|
+
n(W, {
|
|
427
|
+
modelValue: e(g),
|
|
428
|
+
"onUpdate:modelValue": o[10] || (o[10] = (a) => $(g) ? g.value = a : null),
|
|
438
429
|
type: "textarea",
|
|
439
430
|
name: "remark",
|
|
440
|
-
label: e(
|
|
431
|
+
label: e(t)("giftCard.remark"),
|
|
441
432
|
icon: "info-circle",
|
|
442
|
-
placeholder: e(
|
|
433
|
+
placeholder: e(t)("giftCard.remarkPlaceholder")
|
|
443
434
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
444
|
-
])) :
|
|
445
|
-
e(
|
|
446
|
-
|
|
447
|
-
label: e(
|
|
435
|
+
])) : w("", !0),
|
|
436
|
+
e(u) ? (c(), h("div", ia, [
|
|
437
|
+
n(z, {
|
|
438
|
+
label: e(t)("giftCard.orderGiftCard"),
|
|
448
439
|
"full-width": !0,
|
|
449
440
|
disabled: !e(q),
|
|
450
441
|
"data-test": "orderGiftCard",
|
|
451
|
-
"is-loading": e(
|
|
452
|
-
"onUpdate:isLoading":
|
|
453
|
-
onClickEvent: e(
|
|
442
|
+
"is-loading": e(P),
|
|
443
|
+
"onUpdate:isLoading": o[11] || (o[11] = (a) => $(P) ? P.value = a : null),
|
|
444
|
+
onClickEvent: e(D)
|
|
454
445
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
455
|
-
|
|
456
|
-
|
|
446
|
+
j(s("div", sa, [
|
|
447
|
+
n(Re)
|
|
457
448
|
], 512), [
|
|
458
|
-
[
|
|
449
|
+
[N, e(H)]
|
|
459
450
|
])
|
|
460
|
-
])) :
|
|
461
|
-
])) : (
|
|
451
|
+
])) : w("", !0)
|
|
452
|
+
])) : (c(), A(le, { key: 1 }))
|
|
462
453
|
]),
|
|
463
454
|
_: 1
|
|
464
455
|
}, 8, ["access-token", "data-layout"])
|
|
465
456
|
]),
|
|
466
|
-
fallback:
|
|
467
|
-
|
|
457
|
+
fallback: B(() => [
|
|
458
|
+
n(Oe)
|
|
468
459
|
]),
|
|
469
460
|
_: 1
|
|
470
461
|
}))
|
|
@@ -472,16 +463,33 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
472
463
|
_: 1
|
|
473
464
|
}, 8, ["styling"]));
|
|
474
465
|
}
|
|
475
|
-
}),
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
N.mount("#konnectio-gift-card-app");
|
|
480
|
-
const ya = {
|
|
481
|
-
install: (h) => {
|
|
482
|
-
h.component("GiftCard", ue);
|
|
466
|
+
}), O = /* @__PURE__ */ re(ra, [["__scopeId", "data-v-bb42a1d9"]]), da = Fe();
|
|
467
|
+
class ua extends HTMLElement {
|
|
468
|
+
constructor() {
|
|
469
|
+
super();
|
|
483
470
|
}
|
|
484
|
-
|
|
471
|
+
connectedCallback() {
|
|
472
|
+
const f = typeof O == "function" ? O.options : O;
|
|
473
|
+
let k = Array.isArray(f.props) ? f.props : Object.keys(f.props || {});
|
|
474
|
+
const t = (p) => p.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (d, v) => (v ? "-" : "") + d.toLowerCase()), r = (p) => p.replace(/-./g, (d) => d[1].toUpperCase()), b = {};
|
|
475
|
+
k = k.map(t);
|
|
476
|
+
const i = {};
|
|
477
|
+
for (const p of this.attributes) {
|
|
478
|
+
const d = p.name, v = d.split(".");
|
|
479
|
+
console.log(d, v.length), v.length > 1 && (i[v[0]] || (i[v[0]] = {}), i[v[0]][r(v[1])] = p.value);
|
|
480
|
+
}
|
|
481
|
+
console.log(i), console.log(k);
|
|
482
|
+
for (const p of k) {
|
|
483
|
+
let d = this.attributes.getNamedItem(p)?.value;
|
|
484
|
+
i.hasOwnProperty(p) && (d = i[p]), console.log(d, p), b[p] = d;
|
|
485
|
+
}
|
|
486
|
+
const m = Pe(O, b);
|
|
487
|
+
m.use(da), m.use(Te), m.use($e, { bootstrap: !0 });
|
|
488
|
+
const g = document.createElement("div");
|
|
489
|
+
m.mount(g), this.appendChild(g.children[0]);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
window.customElements.define("konnectio-gift-card", ua);
|
|
485
493
|
export {
|
|
486
|
-
|
|
494
|
+
ua as default
|
|
487
495
|
};
|