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