@konnectio/core 4.0.56-rc6 → 4.0.56-rc60
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-M9Xn2IjF.js} +43 -34
- package/dist/ActionField-M9Xn2IjF.js.br +0 -0
- package/dist/AvailabilitySkeleton-CmB18GBl.js +294 -0
- package/dist/AvailabilitySkeleton-CmB18GBl.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js +8213 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DDiMW0jY.js.br +0 -0
- package/dist/CheckoutWindow-Bhwi8Nxq.js +677 -0
- package/dist/CheckoutWindow-Bhwi8Nxq.js.br +0 -0
- package/dist/ErrorMessage-Cf84tBwS.js +45 -0
- package/dist/ErrorMessage-Cf84tBwS.js.br +0 -0
- package/dist/EventAvailabilityForm-ayhrj2Dh.js +117 -0
- package/dist/EventAvailabilityForm-ayhrj2Dh.js.br +0 -0
- package/dist/Field-w5TiS3qQ.js +50 -0
- package/dist/Field-w5TiS3qQ.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js +18601 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js.br +0 -0
- package/dist/TermsOfService-DG9RmJhS.js +36 -0
- package/dist/TermsOfService-DG9RmJhS.js.br +0 -0
- package/dist/_-C3cdq-vi.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js +69 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DUgEPbV0.js.br +0 -0
- package/dist/_commonjsHelpers-Bwmg5gQN.js +17 -0
- package/dist/_sentry-release-injection-file-Bs1oW58-.js +9524 -0
- package/dist/_sentry-release-injection-file-Bs1oW58-.js.br +0 -0
- package/dist/availability.js +90 -140
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +62 -0
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +790 -500
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +113 -68
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +353 -409
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-BvD5QzCq.js +134 -0
- package/dist/giftCard-BvD5QzCq.js.br +0 -0
- package/dist/hotel.js +1516 -2445
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-C_Lw26Pq.js +12782 -0
- package/dist/masonry.plugin-C_Lw26Pq.js.br +0 -0
- package/dist/mitt-Djl3HvxD.js +2953 -0
- package/dist/mitt-Djl3HvxD.js.br +0 -0
- package/dist/polyfill.js +15079 -4765
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-SGZEiE7O.js +2287 -0
- package/dist/tracing-SGZEiE7O.js.br +0 -0
- package/package.json +48 -42
- 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 +0 -205
- 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 +0 -8566
- package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
- package/dist/Field-fWwF40rD.js +0 -42
- package/dist/Field-fWwF40rD.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +0 -30461
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
- package/dist/ThankYou-pUA2X7-4.js +0 -13316
- package/dist/ThankYou-pUA2X7-4.js.br +0 -0
- package/dist/_-TlutFgf7.js +0 -19
- package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -28
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -60
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -23
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -15
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -31
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -2
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -38
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -29
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -2
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -42
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -104
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -62
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -87
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -90
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -68
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -44
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -56
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -47
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -16
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -21
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -61
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -18
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -36
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -2
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -36
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -2
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -15
- package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
- package/dist/entries/availability.d.ts +0 -5
- package/dist/entries/event.d.ts +0 -2
- package/dist/entries/gift-card-validation.d.ts +0 -5
- package/dist/entries/gift-card.d.ts +0 -5
- package/dist/entries/hotel.d.ts +0 -5
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-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/layouts/Availability.vue.d.ts +0 -25
- package/dist/layouts/Event.vue.d.ts +0 -18
- package/dist/layouts/GiftCard.vue.d.ts +0 -32
- package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
- package/dist/layouts/Hotel.vue.d.ts +0 -36
- package/dist/layouts/_.vue.d.ts +0 -39
- package/dist/navigation.d.ts +0 -1
- package/dist/navigation.js +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.d.ts +0 -1
- package/dist/store/alert.d.ts +0 -28
- package/dist/store/applyGiftCard.d.ts +0 -28
- package/dist/store/availability.d.ts +0 -40
- package/dist/store/event.d.ts +0 -683
- package/dist/store/giftCard.d.ts +0 -83
- package/dist/store/payment.d.ts +0 -139
- package/dist/store/recaptcha.d.ts +0 -28
- package/dist/store/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -350
- package/dist/types/index.d.ts +0 -976
package/dist/gift-card.js
CHANGED
|
@@ -1,130 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
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 = _({
|
|
36
|
-
base64: "",
|
|
37
|
-
type: "",
|
|
38
|
-
name: ""
|
|
39
|
-
}), o = _(void 0), f = _(0), h = _(!1), I = _(0), F = V(() => n.value === $.InitialState || n.value === $.WaitingForResponse), R = V(() => n.value === $.ReadyToPay), x = V(() => n.value === $.PaymentSuccess), w = V(() => {
|
|
40
|
-
const a = {
|
|
41
|
-
1: {
|
|
42
|
-
label: oe.t("giftCard.hotelType"),
|
|
43
|
-
data: []
|
|
44
|
-
},
|
|
45
|
-
2: {
|
|
46
|
-
label: oe.t("giftCard.restaurantType"),
|
|
47
|
-
data: []
|
|
48
|
-
}
|
|
49
|
-
}, U = i.value.hotels[0].places;
|
|
50
|
-
return U && U.forEach((P) => {
|
|
51
|
-
a[P.placeType].data.push(P);
|
|
52
|
-
}), Object.fromEntries(
|
|
53
|
-
Object.entries(a).filter(([, P]) => P.data.length > 0)
|
|
54
|
-
);
|
|
55
|
-
}), z = V(() => I.value !== 0), E = V(() => {
|
|
56
|
-
let a;
|
|
57
|
-
if (z.value)
|
|
58
|
-
a = w.value[I.value].data[0];
|
|
59
|
-
else if (f.value !== 0) {
|
|
60
|
-
const U = o.value, P = w.value[f.value].data;
|
|
61
|
-
P.length === 1 ? a = P[0] : U !== void 0 && P.forEach((ee) => {
|
|
62
|
-
String(ee.id) === String(U) && (a = ee);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return a;
|
|
66
|
-
}), D = V(() => !(!g.value || !p.value || !(m.value.length >= 5) || !d.value || E.value === void 0)), O = V(() => !(n.value === $.InitialState && h.value)), K = V(() => !!(n.value === $.WaitingForResponse && h.value));
|
|
67
|
-
function q() {
|
|
68
|
-
return J(this, null, function* () {
|
|
69
|
-
n.value = $.WaitingForResponse, h.value = !0, yield he.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
70
|
-
termsOfserviceURL: window.location.origin,
|
|
71
|
-
checkoutUrl: window.location.origin,
|
|
72
|
-
currencyID: t.value,
|
|
73
|
-
language: ke(),
|
|
74
|
-
amount: d.value,
|
|
75
|
-
quantity: y.value,
|
|
76
|
-
freeText: M.value,
|
|
77
|
-
showPrice: S.value,
|
|
78
|
-
contactName: g.value,
|
|
79
|
-
contactEmail: p.value,
|
|
80
|
-
contactPhone: m.value,
|
|
81
|
-
imageBase64: Ce(k.value.base64),
|
|
82
|
-
imageName: k.value.name,
|
|
83
|
-
imageFormat: k.value.type,
|
|
84
|
-
placeType: E.value ? E.value.placeType : void 0,
|
|
85
|
-
placeID: E.value ? E.value.id : void 0
|
|
86
|
-
}, {
|
|
87
|
-
headers: {
|
|
88
|
-
Authorization: l.value,
|
|
89
|
-
Accept: "application/json",
|
|
90
|
-
"Fresh-Booking-Ver": "4.0.56-rc6"
|
|
91
|
-
}
|
|
92
|
-
}).then((a) => {
|
|
93
|
-
n.value = $.ReadyToPay, h.value = !1, c({
|
|
94
|
-
callback: () => console.log("Callback!"),
|
|
95
|
-
response: a.data
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function s(a) {
|
|
101
|
-
a && (I.value = a);
|
|
1
|
+
import { d as T, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as L, F as se, s as re, v as k, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-Bs1oW58-.js";
|
|
2
|
+
import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-Djl3HvxD.js";
|
|
3
|
+
import { u as x, c as ve } from "./giftCard-BvD5QzCq.js";
|
|
4
|
+
import { a as he, c as S, p as _e, E as ge, _ as z, e as ye, n as ke, L as Ce, T as M, b as Ve, C as we, m as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DPb4pYbS.js";
|
|
5
|
+
import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-DUgEPbV0.js";
|
|
6
|
+
import { a as Ee, C as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-Bhwi8Nxq.js";
|
|
7
|
+
import { F as A } from "./Field-w5TiS3qQ.js";
|
|
8
|
+
import { E as Se } from "./ErrorMessage-Cf84tBwS.js";
|
|
9
|
+
import { S as Te } from "./TermsOfService-DG9RmJhS.js";
|
|
10
|
+
(function() {
|
|
11
|
+
try {
|
|
12
|
+
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
13
|
+
n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "c1723783-a965-48b3-ace7-619838b448db", d._sentryDebugIdIdentifier = "sentry-dbid-c1723783-a965-48b3-ace7-619838b448db");
|
|
14
|
+
} catch {
|
|
102
15
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
moduleState: n,
|
|
106
|
-
name: g,
|
|
107
|
-
email: p,
|
|
108
|
-
phone: m,
|
|
109
|
-
value: d,
|
|
110
|
-
remark: M,
|
|
111
|
-
showValue: S,
|
|
112
|
-
quantity: y,
|
|
113
|
-
media: k,
|
|
114
|
-
placeId: o,
|
|
115
|
-
placeType: f,
|
|
116
|
-
showFormPage: F,
|
|
117
|
-
showPaymentPage: R,
|
|
118
|
-
showConfirmationPage: x,
|
|
119
|
-
places: w,
|
|
120
|
-
hasFilledForm: D,
|
|
121
|
-
hasForcedPlaceType: z,
|
|
122
|
-
isWaitingForResponse: K,
|
|
123
|
-
isMetaDataAvailable: O,
|
|
124
|
-
orderGiftCard: q,
|
|
125
|
-
initialize: s
|
|
126
|
-
};
|
|
127
|
-
}), ze = { class: "media-selector" }, De = ["accept"], We = { class: "media-selector-wrapper" }, je = { class: "media-selector-tools" }, He = { key: 0 }, Ne = { key: 1 }, Oe = { key: 2 }, Ke = ["src"], Je = /* @__PURE__ */ Z({
|
|
16
|
+
})();
|
|
17
|
+
const Ie = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-selector-wrapper" }, Ge = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, De = ["src"], xe = /* @__PURE__ */ T({
|
|
128
18
|
__name: "MediaSelector",
|
|
129
19
|
props: {
|
|
130
20
|
modelValue: {},
|
|
@@ -134,96 +24,94 @@ const re = ye("giftCard", () => {
|
|
|
134
24
|
required: { type: Boolean, default: !1 }
|
|
135
25
|
},
|
|
136
26
|
emits: ["update:modelValue"],
|
|
137
|
-
setup(
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
|
|
27
|
+
setup(d, { emit: n }) {
|
|
28
|
+
const m = n, l = d, { t: c } = B(), { display: h } = he(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
|
|
29
|
+
function u(a) {
|
|
30
|
+
m("update:modelValue", a);
|
|
141
31
|
}
|
|
142
32
|
function y() {
|
|
143
|
-
|
|
33
|
+
u({
|
|
144
34
|
base64: "",
|
|
145
35
|
name: "",
|
|
146
36
|
type: ""
|
|
147
37
|
}), p.value && (p.value.value = "");
|
|
148
38
|
}
|
|
149
|
-
function
|
|
39
|
+
function b() {
|
|
150
40
|
p.value && p.value.click();
|
|
151
41
|
}
|
|
152
|
-
function
|
|
153
|
-
const [
|
|
154
|
-
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
f({ base64:
|
|
42
|
+
function j(a, f) {
|
|
43
|
+
const [V, R] = [a.name, a.type], C = new FileReader();
|
|
44
|
+
C.onload = function(U) {
|
|
45
|
+
if (U.target) {
|
|
46
|
+
const D = U.target.result;
|
|
47
|
+
f({ base64: D, name: V, type: R });
|
|
158
48
|
} else
|
|
159
|
-
|
|
160
|
-
message:
|
|
49
|
+
h({
|
|
50
|
+
message: c("imageUploadError"),
|
|
161
51
|
type: "error"
|
|
162
52
|
});
|
|
163
|
-
},
|
|
53
|
+
}, C.readAsDataURL(a);
|
|
164
54
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
(o = p.value.files) instanceof FileList && M(o[0], d);
|
|
169
|
-
});
|
|
55
|
+
async function F() {
|
|
56
|
+
let a;
|
|
57
|
+
(a = p.value.files) instanceof FileList && j(a[0], u);
|
|
170
58
|
}
|
|
171
|
-
return (
|
|
172
|
-
label:
|
|
173
|
-
required:
|
|
59
|
+
return (a, f) => (s(), w(_e, {
|
|
60
|
+
label: a.label,
|
|
61
|
+
required: a.required,
|
|
174
62
|
type: "media"
|
|
175
63
|
}, {
|
|
176
|
-
default:
|
|
177
|
-
|
|
178
|
-
|
|
64
|
+
default: $(() => [
|
|
65
|
+
t("div", Ie, [
|
|
66
|
+
t("input", {
|
|
179
67
|
ref_key: "fileInput",
|
|
180
68
|
ref: p,
|
|
181
69
|
type: "file",
|
|
182
70
|
class: "hidden",
|
|
183
|
-
accept:
|
|
71
|
+
accept: a.validation,
|
|
184
72
|
single: "",
|
|
185
|
-
onChange: f[0] || (f[0] = (
|
|
186
|
-
}, null, 40,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
label: e(
|
|
73
|
+
onChange: f[0] || (f[0] = (V) => F())
|
|
74
|
+
}, null, 40, Le),
|
|
75
|
+
t("div", Me, [
|
|
76
|
+
t("ul", Ge, [
|
|
77
|
+
_.value ? g("", !0) : (s(), v("li", qe, [
|
|
78
|
+
o(S, {
|
|
79
|
+
label: e(c)("uploadFile"),
|
|
192
80
|
type: "button",
|
|
193
81
|
icon: "upload",
|
|
194
|
-
"icon-color":
|
|
195
|
-
onClickEvent: f[1] || (f[1] = (
|
|
82
|
+
"icon-color": a.iconColor,
|
|
83
|
+
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
196
84
|
}, null, 8, ["label", "icon-color"])
|
|
197
85
|
])),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
label: e(
|
|
86
|
+
_.value ? (s(), v("li", Be, [
|
|
87
|
+
o(S, {
|
|
88
|
+
label: e(c)("replaceFile"),
|
|
201
89
|
type: "button",
|
|
202
90
|
icon: "repeat-alt",
|
|
203
|
-
"icon-color":
|
|
204
|
-
onClickEvent: f[2] || (f[2] = (
|
|
91
|
+
"icon-color": a.iconColor,
|
|
92
|
+
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
205
93
|
}, null, 8, ["label", "icon-color"])
|
|
206
|
-
])) :
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
label: e(
|
|
94
|
+
])) : g("", !0),
|
|
95
|
+
_.value ? (s(), v("li", Re, [
|
|
96
|
+
o(S, {
|
|
97
|
+
label: e(c)("removeFile"),
|
|
210
98
|
type: "button",
|
|
211
99
|
icon: "trash-alt",
|
|
212
|
-
"icon-color":
|
|
213
|
-
onClickEvent: f[3] || (f[3] = (
|
|
100
|
+
"icon-color": a.iconColor,
|
|
101
|
+
onClickEvent: f[3] || (f[3] = (V) => y())
|
|
214
102
|
}, null, 8, ["label", "icon-color"])
|
|
215
|
-
])) :
|
|
103
|
+
])) : g("", !0)
|
|
216
104
|
]),
|
|
217
|
-
|
|
218
|
-
class:
|
|
105
|
+
t("div", {
|
|
106
|
+
class: Y([
|
|
219
107
|
"media-selector-previewer",
|
|
220
|
-
{ opened:
|
|
108
|
+
{ opened: _.value }
|
|
221
109
|
])
|
|
222
110
|
}, [
|
|
223
|
-
|
|
111
|
+
a.modelValue ? (s(), v("img", {
|
|
224
112
|
key: 0,
|
|
225
|
-
src:
|
|
226
|
-
}, null, 8,
|
|
113
|
+
src: a.modelValue.base64
|
|
114
|
+
}, null, 8, De)) : g("", !0)
|
|
227
115
|
], 2)
|
|
228
116
|
])
|
|
229
117
|
])
|
|
@@ -232,9 +120,9 @@ const re = ye("giftCard", () => {
|
|
|
232
120
|
}, 8, ["label", "required"]));
|
|
233
121
|
}
|
|
234
122
|
});
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
|
|
123
|
+
function W(d) {
|
|
124
|
+
const n = d;
|
|
125
|
+
n.__i18n = n.__i18n || [], n.__i18n.push({
|
|
238
126
|
locale: "",
|
|
239
127
|
resource: {
|
|
240
128
|
da: {
|
|
@@ -252,39 +140,80 @@ function de(c) {
|
|
|
252
140
|
}
|
|
253
141
|
});
|
|
254
142
|
}
|
|
255
|
-
typeof
|
|
256
|
-
const
|
|
143
|
+
typeof W == "function" && W(xe);
|
|
144
|
+
const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ T({
|
|
257
145
|
__name: "GiftCardSkeleton",
|
|
258
|
-
setup(
|
|
259
|
-
return (
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
146
|
+
setup(d) {
|
|
147
|
+
return (n, m) => (s(), v("div", ze, [
|
|
148
|
+
t("div", je, [
|
|
149
|
+
o(A),
|
|
150
|
+
o(A),
|
|
151
|
+
o(A),
|
|
152
|
+
o(A),
|
|
153
|
+
o(A, { "is-text-area": "" }),
|
|
154
|
+
o(ge, { height: "44px" })
|
|
267
155
|
])
|
|
268
156
|
]));
|
|
269
157
|
}
|
|
270
|
-
}),
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
158
|
+
}), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ T({
|
|
159
|
+
__name: "_",
|
|
160
|
+
props: {
|
|
161
|
+
content: {},
|
|
162
|
+
buttonLabel: {}
|
|
163
|
+
},
|
|
164
|
+
setup(d) {
|
|
165
|
+
const { t: n } = B(), m = K(!1);
|
|
166
|
+
return (l, c) => (s(), v("div", Oe, [
|
|
167
|
+
o(e(pe), {
|
|
168
|
+
keypath: "general.termsAndConditionsNotice",
|
|
169
|
+
tag: "span",
|
|
170
|
+
scope: "global"
|
|
171
|
+
}, {
|
|
172
|
+
button: $(() => [
|
|
173
|
+
t("i", null, '"' + q(l.buttonLabel) + '"', 1)
|
|
174
|
+
]),
|
|
175
|
+
terms: $(() => [
|
|
176
|
+
t("a", {
|
|
177
|
+
class: "konnectio-accept-terms-link",
|
|
178
|
+
target: "_blank",
|
|
179
|
+
onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
|
|
180
|
+
}, [
|
|
181
|
+
t("span", null, q(e(n)("general.termsAndConditions")), 1)
|
|
182
|
+
])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
o(Te, {
|
|
187
|
+
modelValue: m.value,
|
|
188
|
+
"onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
|
|
189
|
+
description: l.content
|
|
190
|
+
}, null, 8, ["modelValue", "description"])
|
|
191
|
+
]));
|
|
192
|
+
}
|
|
193
|
+
}), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ T({
|
|
194
|
+
__name: "GiftCard",
|
|
195
|
+
setup(d) {
|
|
196
|
+
const { t: n } = B(), m = x();
|
|
197
|
+
return (l, c) => (s(), w(Ke, {
|
|
198
|
+
content: e(m).termsOfService,
|
|
199
|
+
"button-label": e(n)("giftCard.orderGiftCard")
|
|
200
|
+
}, null, 8, ["content", "button-label"]));
|
|
201
|
+
}
|
|
202
|
+
}), Ye = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Je = ["data-layout"], Qe = { id: "konnectio-gift-card-wrapper" }, Xe = { id: "konnectio-gift-card-title" }, et = { id: "konnectio-gift-card-content" }, tt = { id: "konnectio-gift-card-payment" }, lt = ["innerHTML"], at = { key: 0 }, ot = {
|
|
274
203
|
key: 0,
|
|
275
|
-
id: "
|
|
276
|
-
},
|
|
277
|
-
class: /* @__PURE__ */
|
|
278
|
-
},
|
|
204
|
+
id: "konnectio-select-place-type"
|
|
205
|
+
}, nt = {
|
|
206
|
+
class: /* @__PURE__ */ Y(["konnectio-label", "required"])
|
|
207
|
+
}, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
|
|
279
208
|
key: 0,
|
|
280
209
|
id: "konnectio-gift-card-order"
|
|
281
|
-
},
|
|
210
|
+
}, dt = { class: "konnectio-panel" }, ut = {
|
|
282
211
|
key: 1,
|
|
283
212
|
id: "konnectio-gift-card-remarks"
|
|
284
|
-
},
|
|
213
|
+
}, ct = {
|
|
285
214
|
key: 2,
|
|
286
215
|
id: "konnectio-gift-card-order-minimal"
|
|
287
|
-
},
|
|
216
|
+
}, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ T({
|
|
288
217
|
name: "GiftCardLayout",
|
|
289
218
|
__name: "GiftCard",
|
|
290
219
|
props: {
|
|
@@ -293,207 +222,213 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
293
222
|
placeType: {},
|
|
294
223
|
styling: {}
|
|
295
224
|
},
|
|
296
|
-
setup(
|
|
297
|
-
const
|
|
298
|
-
panelMaxWidth: "800px"
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
225
|
+
setup(d) {
|
|
226
|
+
const n = d, m = Z(() => ({
|
|
227
|
+
panelMaxWidth: "800px",
|
|
228
|
+
...n.styling
|
|
229
|
+
})), { t: l } = B(), {
|
|
230
|
+
name: c,
|
|
231
|
+
email: h,
|
|
302
232
|
phone: p,
|
|
303
|
-
value:
|
|
304
|
-
remark:
|
|
233
|
+
value: _,
|
|
234
|
+
remark: u,
|
|
305
235
|
showValue: y,
|
|
306
|
-
quantity:
|
|
307
|
-
media:
|
|
308
|
-
placeId:
|
|
309
|
-
placeType:
|
|
236
|
+
quantity: b,
|
|
237
|
+
media: j,
|
|
238
|
+
placeId: F,
|
|
239
|
+
placeType: a,
|
|
310
240
|
showFormPage: f,
|
|
311
|
-
showPaymentPage:
|
|
312
|
-
showConfirmationPage:
|
|
313
|
-
places:
|
|
314
|
-
hasFilledForm:
|
|
315
|
-
hasForcedPlaceType:
|
|
316
|
-
isWaitingForResponse:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"access-token": q.accessToken,
|
|
332
|
-
"data-layout": q.layout
|
|
241
|
+
showPaymentPage: V,
|
|
242
|
+
showConfirmationPage: R,
|
|
243
|
+
places: C,
|
|
244
|
+
hasFilledForm: U,
|
|
245
|
+
hasForcedPlaceType: D,
|
|
246
|
+
isWaitingForResponse: E
|
|
247
|
+
} = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ye());
|
|
248
|
+
return oe(a, () => {
|
|
249
|
+
F.value = void 0;
|
|
250
|
+
}), ne(() => {
|
|
251
|
+
const P = n.placeType ? parseInt(n.placeType) : void 0;
|
|
252
|
+
J(P);
|
|
253
|
+
}), (P, r) => (s(), w(we, { styling: m.value }, {
|
|
254
|
+
default: $(() => [
|
|
255
|
+
(s(), w(ie, null, {
|
|
256
|
+
default: $(() => [
|
|
257
|
+
o(Fe, {
|
|
258
|
+
"access-token": P.accessToken,
|
|
259
|
+
"data-layout": P.layout,
|
|
260
|
+
callback: e(Q)
|
|
333
261
|
}, {
|
|
334
|
-
default:
|
|
335
|
-
e(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
262
|
+
default: $(() => [
|
|
263
|
+
e(te) ? (s(), w(Se, {
|
|
264
|
+
key: 1,
|
|
265
|
+
title: "Unable to render Gift card module",
|
|
266
|
+
description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
|
|
267
|
+
})) : (s(), v("div", {
|
|
268
|
+
key: 0,
|
|
269
|
+
id: "konnectio-gift-card-module",
|
|
270
|
+
"data-layout": P.layout
|
|
271
|
+
}, [
|
|
272
|
+
t("div", Qe, [
|
|
273
|
+
t("h2", Xe, [
|
|
274
|
+
t("span", null, q(e(l)("giftCard.title")), 1)
|
|
344
275
|
]),
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
"onUpdate:modelValue": s[0] || (s[0] = (P) => C(o) ? o.value = P : null),
|
|
362
|
-
type: "radio",
|
|
363
|
-
name: "placeType",
|
|
364
|
-
val: U,
|
|
365
|
-
label: a.label
|
|
366
|
-
}, null, 8, ["modelValue", "val", "label"])
|
|
367
|
-
]))), 128))
|
|
276
|
+
t("div", et, [
|
|
277
|
+
I(t("div", tt, [
|
|
278
|
+
o(Ee)
|
|
279
|
+
], 512), [
|
|
280
|
+
[L, e(V)]
|
|
281
|
+
]),
|
|
282
|
+
I(t("div", null, [
|
|
283
|
+
t("p", {
|
|
284
|
+
id: "konnectio-gift-card-description",
|
|
285
|
+
innerHTML: e(l)("giftCard.description")
|
|
286
|
+
}, null, 8, lt),
|
|
287
|
+
t("form", null, [
|
|
288
|
+
e(D) ? g("", !0) : (s(), v("div", at, [
|
|
289
|
+
e(C) ? (s(), v("div", ot, [
|
|
290
|
+
t("label", nt, [
|
|
291
|
+
t("span", null, q(e(l)("giftCard.selectType")), 1)
|
|
368
292
|
]),
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
modelValue
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
modelValue
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
label
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
293
|
+
t("div", it, [
|
|
294
|
+
t("ul", null, [
|
|
295
|
+
(s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
|
|
296
|
+
o(Pe, {
|
|
297
|
+
modelValue: e(a),
|
|
298
|
+
"onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
|
|
299
|
+
type: "radio",
|
|
300
|
+
name: "placeType",
|
|
301
|
+
val: N,
|
|
302
|
+
label: i.label
|
|
303
|
+
}, null, 8, ["modelValue", "val", "label"])
|
|
304
|
+
]))), 128))
|
|
305
|
+
]),
|
|
306
|
+
e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
|
|
307
|
+
key: 0,
|
|
308
|
+
modelValue: e(F),
|
|
309
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
|
|
310
|
+
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
311
|
+
options: e(C)[e(a)].data,
|
|
312
|
+
labelKey: "name",
|
|
313
|
+
valueKey: "id",
|
|
314
|
+
required: ""
|
|
315
|
+
}, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
|
|
316
|
+
])
|
|
317
|
+
])) : (s(), w(Ce, { key: 1 }))
|
|
318
|
+
])),
|
|
319
|
+
o(M, {
|
|
320
|
+
modelValue: e(c),
|
|
321
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
|
|
322
|
+
type: "text",
|
|
323
|
+
name: "name",
|
|
324
|
+
autocomplete: "name",
|
|
325
|
+
label: e(l)("giftCard.name"),
|
|
326
|
+
icon: "user-alt",
|
|
327
|
+
placeholder: e(l)("giftCard.namePlaceholder"),
|
|
328
|
+
required: ""
|
|
329
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
330
|
+
o(M, {
|
|
331
|
+
modelValue: e(h),
|
|
332
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
|
|
333
|
+
type: "email",
|
|
334
|
+
name: "email",
|
|
335
|
+
autocomplete: "email",
|
|
336
|
+
label: e(l)("giftCard.email"),
|
|
337
|
+
icon: "at",
|
|
338
|
+
placeholder: e(l)("giftCard.emailPlaceholder"),
|
|
339
|
+
required: ""
|
|
340
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
341
|
+
o(Ue, {
|
|
342
|
+
modelValue: e(p),
|
|
343
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
|
|
344
|
+
icon: "phone-office",
|
|
345
|
+
label: e(l)("giftCard.phone"),
|
|
346
|
+
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
347
|
+
required: ""
|
|
348
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
349
|
+
o(M, {
|
|
350
|
+
modelValue: e(_),
|
|
351
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
|
|
352
|
+
type: "number",
|
|
353
|
+
name: "value",
|
|
354
|
+
label: e(l)("giftCard.value"),
|
|
355
|
+
icon: "money-bill",
|
|
356
|
+
placeholder: e(l)("giftCard.valuePlaceholder"),
|
|
357
|
+
suffix: e(ee),
|
|
358
|
+
required: ""
|
|
359
|
+
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
360
|
+
g("", !0),
|
|
361
|
+
g("", !0),
|
|
362
|
+
o(Ve, {
|
|
363
|
+
modelValue: e(b),
|
|
364
|
+
"onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
|
|
365
|
+
label: e(l)("giftCard.quantity"),
|
|
366
|
+
icon: "gift-card",
|
|
367
|
+
required: ""
|
|
368
|
+
}, null, 8, ["modelValue", "label"])
|
|
369
|
+
])
|
|
370
|
+
], 512), [
|
|
371
|
+
[L, e(f)]
|
|
372
|
+
]),
|
|
373
|
+
I(t("div", null, [
|
|
374
|
+
t("div", {
|
|
375
|
+
innerHTML: e(l)("giftCard.thankYou")
|
|
376
|
+
}, null, 8, st)
|
|
377
|
+
], 512), [
|
|
378
|
+
[L, e(R)]
|
|
439
379
|
])
|
|
440
|
-
], 512), [
|
|
441
|
-
[j, e(f)]
|
|
442
380
|
]),
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
381
|
+
P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
|
|
382
|
+
t("div", dt, [
|
|
383
|
+
o(S, {
|
|
384
|
+
label: e(l)("giftCard.orderGiftCard"),
|
|
385
|
+
"full-width": !0,
|
|
386
|
+
disabled: !e(U),
|
|
387
|
+
"is-loading": e(E),
|
|
388
|
+
"onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
|
|
389
|
+
onClickEvent: e(H)
|
|
390
|
+
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
391
|
+
])
|
|
392
|
+
])) : g("", !0),
|
|
393
|
+
e(f) ? (s(), v("div", ut, [
|
|
394
|
+
o(M, {
|
|
395
|
+
modelValue: e(u),
|
|
396
|
+
"onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
|
|
397
|
+
type: "textarea",
|
|
398
|
+
name: "remark",
|
|
399
|
+
label: e(l)("giftCard.remark"),
|
|
400
|
+
icon: "info-circle",
|
|
401
|
+
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
402
|
+
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
403
|
+
])) : g("", !0),
|
|
404
|
+
e(f) ? (s(), v("div", ct, [
|
|
405
|
+
o(S, {
|
|
406
|
+
label: e(l)("giftCard.orderGiftCard"),
|
|
455
407
|
"full-width": !0,
|
|
456
|
-
disabled: !e(
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
"
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
e(f) ? (v(), b("div", ma, [
|
|
475
|
-
r(B, {
|
|
476
|
-
label: e(t)("giftCard.orderGiftCard"),
|
|
477
|
-
"full-width": !0,
|
|
478
|
-
disabled: !e(R),
|
|
479
|
-
"data-test": "orderGiftCard",
|
|
480
|
-
"is-loading": e(w),
|
|
481
|
-
"onUpdate:isLoading": s[11] || (s[11] = (a) => C(w) ? w.value = a : null),
|
|
482
|
-
onClickEvent: e(D)
|
|
483
|
-
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
484
|
-
W(u("div", fa, [
|
|
485
|
-
r(Ge)
|
|
486
|
-
], 512), [
|
|
487
|
-
[j, e(O)]
|
|
488
|
-
])
|
|
489
|
-
])) : T("", !0)
|
|
490
|
-
])) : (v(), L(ie, { key: 1 }))
|
|
408
|
+
disabled: !e(U),
|
|
409
|
+
"data-test": "orderGiftCard",
|
|
410
|
+
"is-loading": e(E),
|
|
411
|
+
"onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
|
|
412
|
+
onClickEvent: e(H)
|
|
413
|
+
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
414
|
+
t("div", null, [
|
|
415
|
+
pt,
|
|
416
|
+
o(Ze)
|
|
417
|
+
]),
|
|
418
|
+
I(t("div", mt, [
|
|
419
|
+
o(Ae)
|
|
420
|
+
], 512), [
|
|
421
|
+
[L, e(X)]
|
|
422
|
+
])
|
|
423
|
+
])) : g("", !0)
|
|
424
|
+
])
|
|
425
|
+
], 8, Je))
|
|
491
426
|
]),
|
|
492
427
|
_: 1
|
|
493
|
-
}, 8, ["access-token", "data-layout"])
|
|
428
|
+
}, 8, ["access-token", "data-layout", "callback"])
|
|
494
429
|
]),
|
|
495
|
-
fallback:
|
|
496
|
-
|
|
430
|
+
fallback: $(() => [
|
|
431
|
+
o(Ne)
|
|
497
432
|
]),
|
|
498
433
|
_: 1
|
|
499
434
|
}))
|
|
@@ -501,27 +436,36 @@ const Ye = { class: "gift-card-skeleton" }, Qe = { class: "gift-card-skeleton-fo
|
|
|
501
436
|
_: 1
|
|
502
437
|
}, 8, ["styling"]));
|
|
503
438
|
}
|
|
504
|
-
}),
|
|
505
|
-
class
|
|
439
|
+
}), G = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-278e1031"]]), bt = me(), vt = be();
|
|
440
|
+
class ht extends HTMLElement {
|
|
441
|
+
vueApp;
|
|
506
442
|
constructor() {
|
|
507
443
|
super();
|
|
508
444
|
}
|
|
445
|
+
disconnectedCallback() {
|
|
446
|
+
this.vueApp.unmount();
|
|
447
|
+
}
|
|
509
448
|
connectedCallback() {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
449
|
+
const n = typeof G == "function" ? G.options : G;
|
|
450
|
+
let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
|
|
451
|
+
const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), c = (u) => u.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
|
|
452
|
+
m = m.map(l);
|
|
453
|
+
const p = {};
|
|
454
|
+
for (const u of this.attributes) {
|
|
455
|
+
const b = u.name.split(".");
|
|
456
|
+
b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
|
|
457
|
+
}
|
|
458
|
+
for (const u of m) {
|
|
459
|
+
let y = this.attributes.getNamedItem(u)?.value;
|
|
460
|
+
p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
|
|
517
461
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
n.mount(g), this.appendChild(g.children[0]);
|
|
462
|
+
this.vueApp = ce(G, h), ve(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(fe), this.vueApp.use($e, { bootstrap: !0 });
|
|
463
|
+
const _ = document.createElement("div");
|
|
464
|
+
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
522
465
|
}
|
|
523
466
|
}
|
|
524
|
-
window.customElements.define("konnectio-gift-card",
|
|
467
|
+
window.customElements.define("konnectio-gift-card", ht);
|
|
525
468
|
export {
|
|
526
|
-
|
|
469
|
+
ht as default
|
|
527
470
|
};
|
|
471
|
+
//# sourceMappingURL=gift-card.js.map
|