@konnectio/core 4.0.56-rc4 → 4.0.56-rc41
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-UFZMmHDy.js → ActionField-B7yd3wqo.js} +39 -31
- package/dist/ActionField-B7yd3wqo.js.br +0 -0
- package/dist/AvailabilitySkeleton-BFkO-iFk.js +288 -0
- package/dist/AvailabilitySkeleton-BFkO-iFk.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvsxXVBB.js +7746 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvsxXVBB.js.br +0 -0
- package/dist/CheckoutWindow-DXpTb3IM.js +668 -0
- package/dist/CheckoutWindow-DXpTb3IM.js.br +0 -0
- package/dist/ErrorMessage-DURaj0JK.js +45 -0
- package/dist/ErrorMessage-DURaj0JK.js.br +0 -0
- package/dist/EventAvailabilityForm-EdvNJO4b.js +432 -0
- package/dist/EventAvailabilityForm-EdvNJO4b.js.br +0 -0
- package/dist/Field-C31DtxD3.js +50 -0
- package/dist/Field-C31DtxD3.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js} +9594 -9834
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js.br +0 -0
- package/dist/TermsOfService-RMTyUzQE.js +35 -0
- package/dist/TermsOfService-RMTyUzQE.js.br +0 -0
- package/dist/_-C4rdBIG5.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DxTbCVt9.js +71 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DxTbCVt9.js.br +0 -0
- package/dist/_commonjsHelpers-BpcYSDvQ.js +11797 -0
- package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
- package/dist/availability.js +95 -147
- package/dist/availability.js.br +0 -0
- package/dist/event.js +723 -494
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +120 -64
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +364 -410
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-CTOcXgxl.js +128 -0
- package/dist/giftCard-CTOcXgxl.js.br +0 -0
- package/dist/hotel.js +1372 -2419
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-w0LZcwZT.js +12755 -0
- package/dist/masonry.plugin-w0LZcwZT.js.br +0 -0
- package/dist/navigation.js +10 -1
- package/dist/polyfill.js +14868 -4768
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +45 -38
- package/dist/ActionField-UFZMmHDy.js.br +0 -0
- package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
- package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
- package/dist/CheckoutWindow-2RMgPiGi.js +0 -206
- package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
- package/dist/Container-XBRB0sOV.js +0 -69
- package/dist/Container-XBRB0sOV.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js +0 -8567
- package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
- package/dist/Field-uK3Wuuv6.js +0 -43
- package/dist/Field-uK3Wuuv6.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
- package/dist/ThankYou-nz4vPX4O.js +0 -13316
- package/dist/ThankYou-nz4vPX4O.js.br +0 -0
- package/dist/_-oPH7HiaC.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--wgsUkQp.js +0 -359
- package/dist/event--wgsUkQp.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,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
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-3YCxOJhZ.js";
|
|
30
|
-
import { C as Me } from "./Container-XBRB0sOV.js";
|
|
31
|
-
import { a as xe, C as re, P as De, _ as ze } from "./CheckoutWindow-2RMgPiGi.js";
|
|
32
|
-
import { E as Ae } from "./_-oPH7HiaC.js";
|
|
33
|
-
import { F as x } from "./Field-uK3Wuuv6.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 = _({
|
|
37
|
-
base64: "",
|
|
38
|
-
type: "",
|
|
39
|
-
name: ""
|
|
40
|
-
}), l = _(void 0), c = _(0), y = _(!1), q = _(0), F = V(() => s.value === $.InitialState || s.value === $.WaitingForResponse), I = V(() => s.value === $.ReadyToPay), M = V(() => s.value === $.PaymentSuccess), P = V(() => {
|
|
41
|
-
const a = {
|
|
42
|
-
1: {
|
|
43
|
-
label: ie.t("giftCard.hotelType"),
|
|
44
|
-
data: []
|
|
45
|
-
},
|
|
46
|
-
2: {
|
|
47
|
-
label: ie.t("giftCard.restaurantType"),
|
|
48
|
-
data: []
|
|
49
|
-
}
|
|
50
|
-
}, U = r.value.hotels[0].places;
|
|
51
|
-
return U && U.forEach((w) => {
|
|
52
|
-
a[w.placeType].data.push(w);
|
|
53
|
-
}), Object.fromEntries(
|
|
54
|
-
Object.entries(a).filter(([, w]) => w.data.length > 0)
|
|
55
|
-
);
|
|
56
|
-
}), A = V(() => q.value !== 0), E = V(() => {
|
|
57
|
-
let a;
|
|
58
|
-
if (A.value)
|
|
59
|
-
a = P.value[q.value].data[0];
|
|
60
|
-
else if (c.value !== 0) {
|
|
61
|
-
const U = l.value, w = P.value[c.value].data;
|
|
62
|
-
w.length === 1 ? a = w[0] : U !== void 0 && w.forEach((ee) => {
|
|
63
|
-
String(ee.id) === String(U) && (a = ee);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
return a;
|
|
67
|
-
}), B = V(() => !(!h.value || !f.value || !(v.value.length >= 5) || !m.value || E.value === void 0)), O = V(() => !(s.value === $.InitialState && y.value)), K = V(() => !!(s.value === $.WaitingForResponse && y.value));
|
|
68
|
-
function R() {
|
|
69
|
-
return J(this, null, function* () {
|
|
70
|
-
s.value = $.WaitingForResponse, y.value = !0, yield we.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
71
|
-
termsOfserviceURL: window.location.origin,
|
|
72
|
-
checkoutUrl: window.location.origin,
|
|
73
|
-
currencyID: o.value,
|
|
74
|
-
language: Te(),
|
|
75
|
-
amount: m.value,
|
|
76
|
-
quantity: g.value,
|
|
77
|
-
freeText: G.value,
|
|
78
|
-
showPrice: S.value,
|
|
79
|
-
contactName: h.value,
|
|
80
|
-
contactEmail: f.value,
|
|
81
|
-
contactPhone: v.value,
|
|
82
|
-
imageBase64: Se(k.value.base64),
|
|
83
|
-
imageName: k.value.name,
|
|
84
|
-
imageFormat: k.value.type,
|
|
85
|
-
placeType: E.value ? E.value.placeType : void 0,
|
|
86
|
-
placeID: E.value ? E.value.id : void 0
|
|
87
|
-
}, {
|
|
88
|
-
headers: {
|
|
89
|
-
Authorization: t.value,
|
|
90
|
-
Accept: "application/json",
|
|
91
|
-
"Fresh-Booking-Ver": "4.0.56-rc4"
|
|
92
|
-
}
|
|
93
|
-
}).then((a) => {
|
|
94
|
-
s.value = $.ReadyToPay, y.value = !1, u({
|
|
95
|
-
callback: () => console.log("Callback!"),
|
|
96
|
-
response: a.data
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function i(a) {
|
|
102
|
-
a && (q.value = a);
|
|
1
|
+
import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as M, F as se, A as re, x as k, p as de, j as ue, k as ce } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { h as B, a as pe, C as S, I as me, E as fe, _ as z, F as be, s as O, b as ve, k as he, L as _e, T as L, l as ge, n as ye, o as ke, p as Ce, q as Ve, H as we, t as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DCFBIwBo.js";
|
|
3
|
+
import { u as D } from "./giftCard-CTOcXgxl.js";
|
|
4
|
+
import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-DxTbCVt9.js";
|
|
5
|
+
import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-DXpTb3IM.js";
|
|
6
|
+
import { F as A } from "./Field-C31DtxD3.js";
|
|
7
|
+
import { E as Se } from "./ErrorMessage-DURaj0JK.js";
|
|
8
|
+
import { S as Ie } from "./TermsOfService-RMTyUzQE.js";
|
|
9
|
+
import "./navigation.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] = "0c48a098-5331-4805-80ee-7366488b93ab", d._sentryDebugIdIdentifier = "sentry-dbid-0c48a098-5331-4805-80ee-7366488b93ab");
|
|
14
|
+
} catch {
|
|
103
15
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
moduleState: s,
|
|
107
|
-
name: h,
|
|
108
|
-
email: f,
|
|
109
|
-
phone: v,
|
|
110
|
-
value: m,
|
|
111
|
-
remark: G,
|
|
112
|
-
showValue: S,
|
|
113
|
-
quantity: g,
|
|
114
|
-
media: k,
|
|
115
|
-
placeId: l,
|
|
116
|
-
placeType: c,
|
|
117
|
-
showFormPage: F,
|
|
118
|
-
showPaymentPage: I,
|
|
119
|
-
showConfirmationPage: M,
|
|
120
|
-
places: P,
|
|
121
|
-
hasFilledForm: B,
|
|
122
|
-
hasForcedPlaceType: A,
|
|
123
|
-
isWaitingForResponse: K,
|
|
124
|
-
isMetaDataAvailable: O,
|
|
125
|
-
orderGiftCard: R,
|
|
126
|
-
initialize: i
|
|
127
|
-
};
|
|
128
|
-
}), Be = { class: "media-selector" }, We = ["accept"], je = { class: "media-selector-wrapper" }, He = { class: "media-selector-tools" }, Ne = { key: 0 }, Oe = { key: 1 }, Ke = { key: 2 }, Je = ["src"], Ye = /* @__PURE__ */ Z({
|
|
16
|
+
})();
|
|
17
|
+
const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Ge = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, xe = ["src"], De = /* @__PURE__ */ I({
|
|
129
18
|
__name: "MediaSelector",
|
|
130
19
|
props: {
|
|
131
20
|
modelValue: {},
|
|
@@ -135,96 +24,94 @@ const se = Fe("giftCard", () => {
|
|
|
135
24
|
required: { type: Boolean, default: !1 }
|
|
136
25
|
},
|
|
137
26
|
emits: ["update:modelValue"],
|
|
138
|
-
setup(
|
|
139
|
-
const
|
|
140
|
-
function
|
|
141
|
-
|
|
27
|
+
setup(d, { emit: n }) {
|
|
28
|
+
const m = n, l = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
|
|
29
|
+
function u(a) {
|
|
30
|
+
m("update:modelValue", a);
|
|
142
31
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
32
|
+
function y() {
|
|
33
|
+
u({
|
|
145
34
|
base64: "",
|
|
146
35
|
name: "",
|
|
147
36
|
type: ""
|
|
148
|
-
}),
|
|
37
|
+
}), p.value && (p.value.value = "");
|
|
149
38
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
39
|
+
function b() {
|
|
40
|
+
p.value && p.value.click();
|
|
152
41
|
}
|
|
153
|
-
function
|
|
154
|
-
const [
|
|
155
|
-
|
|
156
|
-
if (
|
|
157
|
-
const
|
|
158
|
-
|
|
42
|
+
function H(a, f) {
|
|
43
|
+
const [V, R] = [a.name, a.type], C = new FileReader();
|
|
44
|
+
C.onload = function(U) {
|
|
45
|
+
if (U.target) {
|
|
46
|
+
const x = U.target.result;
|
|
47
|
+
f({ base64: x, name: V, type: R });
|
|
159
48
|
} else
|
|
160
49
|
h({
|
|
161
|
-
message:
|
|
50
|
+
message: c("imageUploadError"),
|
|
162
51
|
type: "error"
|
|
163
52
|
});
|
|
164
|
-
},
|
|
53
|
+
}, C.readAsDataURL(a);
|
|
165
54
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
(l = f.value.files) instanceof FileList && G(l[0], m);
|
|
170
|
-
});
|
|
55
|
+
async function $() {
|
|
56
|
+
let a;
|
|
57
|
+
(a = p.value.files) instanceof FileList && H(a[0], u);
|
|
171
58
|
}
|
|
172
|
-
return (
|
|
173
|
-
label:
|
|
174
|
-
required:
|
|
59
|
+
return (a, f) => (s(), w(me, {
|
|
60
|
+
label: a.label,
|
|
61
|
+
required: a.required,
|
|
175
62
|
type: "media"
|
|
176
63
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
|
|
179
|
-
|
|
64
|
+
default: F(() => [
|
|
65
|
+
t("div", Te, [
|
|
66
|
+
t("input", {
|
|
180
67
|
ref_key: "fileInput",
|
|
181
|
-
ref:
|
|
68
|
+
ref: p,
|
|
182
69
|
type: "file",
|
|
183
70
|
class: "hidden",
|
|
184
|
-
accept:
|
|
71
|
+
accept: a.validation,
|
|
185
72
|
single: "",
|
|
186
|
-
onChange:
|
|
187
|
-
}, null, 40,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
label: e(
|
|
73
|
+
onChange: f[0] || (f[0] = (V) => $())
|
|
74
|
+
}, null, 40, Me),
|
|
75
|
+
t("div", Le, [
|
|
76
|
+
t("ul", qe, [
|
|
77
|
+
_.value ? g("", !0) : (s(), v("li", Ge, [
|
|
78
|
+
o(S, {
|
|
79
|
+
label: e(c)("uploadFile"),
|
|
193
80
|
type: "button",
|
|
194
81
|
icon: "upload",
|
|
195
|
-
"icon-color":
|
|
196
|
-
onClickEvent:
|
|
82
|
+
"icon-color": a.iconColor,
|
|
83
|
+
onClickEvent: f[1] || (f[1] = (V) => b())
|
|
197
84
|
}, null, 8, ["label", "icon-color"])
|
|
198
85
|
])),
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
label: e(
|
|
86
|
+
_.value ? (s(), v("li", Be, [
|
|
87
|
+
o(S, {
|
|
88
|
+
label: e(c)("replaceFile"),
|
|
202
89
|
type: "button",
|
|
203
90
|
icon: "repeat-alt",
|
|
204
|
-
"icon-color":
|
|
205
|
-
onClickEvent:
|
|
91
|
+
"icon-color": a.iconColor,
|
|
92
|
+
onClickEvent: f[2] || (f[2] = (V) => b())
|
|
206
93
|
}, null, 8, ["label", "icon-color"])
|
|
207
|
-
])) :
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
label: e(
|
|
94
|
+
])) : g("", !0),
|
|
95
|
+
_.value ? (s(), v("li", Re, [
|
|
96
|
+
o(S, {
|
|
97
|
+
label: e(c)("removeFile"),
|
|
211
98
|
type: "button",
|
|
212
99
|
icon: "trash-alt",
|
|
213
|
-
"icon-color":
|
|
214
|
-
onClickEvent:
|
|
100
|
+
"icon-color": a.iconColor,
|
|
101
|
+
onClickEvent: f[3] || (f[3] = (V) => y())
|
|
215
102
|
}, null, 8, ["label", "icon-color"])
|
|
216
|
-
])) :
|
|
103
|
+
])) : g("", !0)
|
|
217
104
|
]),
|
|
218
|
-
|
|
219
|
-
class:
|
|
105
|
+
t("div", {
|
|
106
|
+
class: Y([
|
|
220
107
|
"media-selector-previewer",
|
|
221
|
-
{ opened:
|
|
108
|
+
{ opened: _.value }
|
|
222
109
|
])
|
|
223
110
|
}, [
|
|
224
|
-
|
|
111
|
+
a.modelValue ? (s(), v("img", {
|
|
225
112
|
key: 0,
|
|
226
|
-
src:
|
|
227
|
-
}, null, 8,
|
|
113
|
+
src: a.modelValue.base64
|
|
114
|
+
}, null, 8, xe)) : g("", !0)
|
|
228
115
|
], 2)
|
|
229
116
|
])
|
|
230
117
|
])
|
|
@@ -233,9 +120,9 @@ const se = Fe("giftCard", () => {
|
|
|
233
120
|
}, 8, ["label", "required"]));
|
|
234
121
|
}
|
|
235
122
|
});
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
|
|
123
|
+
function W(d) {
|
|
124
|
+
const n = d;
|
|
125
|
+
n.__i18n = n.__i18n || [], n.__i18n.push({
|
|
239
126
|
locale: "",
|
|
240
127
|
resource: {
|
|
241
128
|
da: {
|
|
@@ -253,39 +140,80 @@ function de(u) {
|
|
|
253
140
|
}
|
|
254
141
|
});
|
|
255
142
|
}
|
|
256
|
-
typeof
|
|
257
|
-
const
|
|
143
|
+
typeof W == "function" && W(De);
|
|
144
|
+
const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ I({
|
|
258
145
|
__name: "GiftCardSkeleton",
|
|
259
|
-
setup(
|
|
260
|
-
return (
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
146
|
+
setup(d) {
|
|
147
|
+
return (n, m) => (s(), v("div", ze, [
|
|
148
|
+
t("div", He, [
|
|
149
|
+
o(A),
|
|
150
|
+
o(A),
|
|
151
|
+
o(A),
|
|
152
|
+
o(A),
|
|
153
|
+
o(A, { "is-text-area": "" }),
|
|
154
|
+
o(fe, { height: "44px" })
|
|
268
155
|
])
|
|
269
156
|
]));
|
|
270
157
|
}
|
|
271
|
-
}),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
158
|
+
}), Ne = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ I({
|
|
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(be), {
|
|
168
|
+
keypath: "general.termsAndConditionsNotice",
|
|
169
|
+
tag: "span",
|
|
170
|
+
scope: "global"
|
|
171
|
+
}, {
|
|
172
|
+
button: F(() => [
|
|
173
|
+
t("i", null, '"' + G(l.buttonLabel) + '"', 1)
|
|
174
|
+
]),
|
|
175
|
+
terms: F(() => [
|
|
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, G(e(n)("general.termsAndConditions")), 1)
|
|
182
|
+
])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
o(Ie, {
|
|
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__ */ I({
|
|
194
|
+
__name: "GiftCard",
|
|
195
|
+
setup(d) {
|
|
196
|
+
const { t: n } = B(), m = D();
|
|
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-36e1c4fe"), 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 = {
|
|
275
203
|
key: 0,
|
|
276
|
-
id: "
|
|
277
|
-
},
|
|
278
|
-
class: /* @__PURE__ */
|
|
279
|
-
},
|
|
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 = {
|
|
280
208
|
key: 0,
|
|
281
209
|
id: "konnectio-gift-card-order"
|
|
282
|
-
},
|
|
210
|
+
}, dt = { class: "konnectio-panel" }, ut = {
|
|
283
211
|
key: 1,
|
|
284
212
|
id: "konnectio-gift-card-remarks"
|
|
285
|
-
},
|
|
213
|
+
}, ct = {
|
|
286
214
|
key: 2,
|
|
287
215
|
id: "konnectio-gift-card-order-minimal"
|
|
288
|
-
},
|
|
216
|
+
}, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ I({
|
|
289
217
|
name: "GiftCardLayout",
|
|
290
218
|
__name: "GiftCard",
|
|
291
219
|
props: {
|
|
@@ -294,207 +222,213 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
294
222
|
placeType: {},
|
|
295
223
|
styling: {}
|
|
296
224
|
},
|
|
297
|
-
setup(
|
|
298
|
-
const
|
|
299
|
-
panelMaxWidth: "800px"
|
|
300
|
-
|
|
301
|
-
|
|
225
|
+
setup(d) {
|
|
226
|
+
const n = d, m = Z(() => ({
|
|
227
|
+
panelMaxWidth: "800px",
|
|
228
|
+
...n.styling
|
|
229
|
+
})), { t: l } = B(), {
|
|
230
|
+
name: c,
|
|
302
231
|
email: h,
|
|
303
|
-
phone:
|
|
304
|
-
value:
|
|
305
|
-
remark:
|
|
306
|
-
showValue:
|
|
307
|
-
quantity:
|
|
308
|
-
media:
|
|
309
|
-
placeId:
|
|
310
|
-
placeType:
|
|
311
|
-
showFormPage:
|
|
312
|
-
showPaymentPage:
|
|
313
|
-
showConfirmationPage:
|
|
314
|
-
places:
|
|
315
|
-
hasFilledForm:
|
|
316
|
-
hasForcedPlaceType:
|
|
317
|
-
isWaitingForResponse:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
"access-token": R.accessToken,
|
|
333
|
-
"data-layout": R.layout
|
|
232
|
+
phone: p,
|
|
233
|
+
value: _,
|
|
234
|
+
remark: u,
|
|
235
|
+
showValue: y,
|
|
236
|
+
quantity: b,
|
|
237
|
+
media: H,
|
|
238
|
+
placeId: $,
|
|
239
|
+
placeType: a,
|
|
240
|
+
showFormPage: f,
|
|
241
|
+
showPaymentPage: V,
|
|
242
|
+
showConfirmationPage: R,
|
|
243
|
+
places: C,
|
|
244
|
+
hasFilledForm: U,
|
|
245
|
+
hasForcedPlaceType: x,
|
|
246
|
+
isWaitingForResponse: E
|
|
247
|
+
} = O(D()), { initialize: J, orderGiftCard: j, fetchMetadata: Q } = D(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ve());
|
|
248
|
+
return oe(a, () => {
|
|
249
|
+
$.value = void 0;
|
|
250
|
+
}), ne(() => {
|
|
251
|
+
const P = n.placeType ? parseInt(n.placeType) : void 0;
|
|
252
|
+
J(P);
|
|
253
|
+
}), (P, r) => (s(), w(ye, { styling: m.value }, {
|
|
254
|
+
default: F(() => [
|
|
255
|
+
(s(), w(ie, null, {
|
|
256
|
+
default: F(() => [
|
|
257
|
+
o($e, {
|
|
258
|
+
"access-token": P.accessToken,
|
|
259
|
+
"data-layout": P.layout,
|
|
260
|
+
onMetadata: e(Q)
|
|
334
261
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
e(
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
262
|
+
default: F(() => [
|
|
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, G(e(l)("giftCard.title")), 1)
|
|
345
275
|
]),
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
"onUpdate:modelValue": i[0] || (i[0] = (w) => C(l) ? l.value = w : null),
|
|
363
|
-
type: "radio",
|
|
364
|
-
name: "placeType",
|
|
365
|
-
val: U,
|
|
366
|
-
label: a.label
|
|
367
|
-
}, null, 8, ["modelValue", "val", "label"])
|
|
368
|
-
]))), 128))
|
|
276
|
+
t("div", et, [
|
|
277
|
+
T(t("div", tt, [
|
|
278
|
+
o(Ee)
|
|
279
|
+
], 512), [
|
|
280
|
+
[M, e(V)]
|
|
281
|
+
]),
|
|
282
|
+
T(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(x) ? g("", !0) : (s(), v("div", at, [
|
|
289
|
+
e(C) ? (s(), v("div", ot, [
|
|
290
|
+
t("label", nt, [
|
|
291
|
+
t("span", null, G(e(l)("giftCard.selectType")), 1)
|
|
369
292
|
]),
|
|
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
|
-
|
|
406
|
-
modelValue
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
modelValue
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
label
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
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(he, {
|
|
307
|
+
key: 0,
|
|
308
|
+
modelValue: e($),
|
|
309
|
+
"onUpdate:modelValue": r[1] || (r[1] = (i) => k($) ? $.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(_e, { key: 1 }))
|
|
318
|
+
])),
|
|
319
|
+
o(L, {
|
|
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(L, {
|
|
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(L, {
|
|
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(ge, {
|
|
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
|
+
[M, e(f)]
|
|
372
|
+
]),
|
|
373
|
+
T(t("div", null, [
|
|
374
|
+
t("div", {
|
|
375
|
+
innerHTML: e(l)("giftCard.thankYou")
|
|
376
|
+
}, null, 8, st)
|
|
377
|
+
], 512), [
|
|
378
|
+
[M, e(R)]
|
|
440
379
|
])
|
|
441
|
-
], 512), [
|
|
442
|
-
[j, e(c)]
|
|
443
380
|
]),
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
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(j)
|
|
390
|
+
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
391
|
+
])
|
|
392
|
+
])) : g("", !0),
|
|
393
|
+
e(f) ? (s(), v("div", ut, [
|
|
394
|
+
o(L, {
|
|
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"),
|
|
456
407
|
"full-width": !0,
|
|
457
|
-
disabled: !e(
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
"
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
e(c) ? (p(), b("div", fa, [
|
|
476
|
-
n(z, {
|
|
477
|
-
label: e(o)("giftCard.orderGiftCard"),
|
|
478
|
-
"full-width": !0,
|
|
479
|
-
disabled: !e(I),
|
|
480
|
-
"data-test": "orderGiftCard",
|
|
481
|
-
"is-loading": e(P),
|
|
482
|
-
"onUpdate:isLoading": i[11] || (i[11] = (a) => C(P) ? P.value = a : null),
|
|
483
|
-
onClickEvent: e(B)
|
|
484
|
-
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
485
|
-
W(d("div", va, [
|
|
486
|
-
n(ze)
|
|
487
|
-
], 512), [
|
|
488
|
-
[j, e(O)]
|
|
489
|
-
])
|
|
490
|
-
])) : T("", !0)
|
|
491
|
-
])) : (p(), L(ne, { 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(j)
|
|
413
|
+
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
414
|
+
t("div", null, [
|
|
415
|
+
pt,
|
|
416
|
+
o(Ze)
|
|
417
|
+
]),
|
|
418
|
+
T(t("div", mt, [
|
|
419
|
+
o(Ae)
|
|
420
|
+
], 512), [
|
|
421
|
+
[M, e(X)]
|
|
422
|
+
])
|
|
423
|
+
])) : g("", !0)
|
|
424
|
+
])
|
|
425
|
+
], 8, Je))
|
|
492
426
|
]),
|
|
493
427
|
_: 1
|
|
494
|
-
}, 8, ["access-token", "data-layout"])
|
|
428
|
+
}, 8, ["access-token", "data-layout", "onMetadata"])
|
|
495
429
|
]),
|
|
496
|
-
fallback:
|
|
497
|
-
|
|
430
|
+
fallback: F(() => [
|
|
431
|
+
o(Ne)
|
|
498
432
|
]),
|
|
499
433
|
_: 1
|
|
500
434
|
}))
|
|
@@ -502,16 +436,36 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
502
436
|
_: 1
|
|
503
437
|
}, 8, ["styling"]));
|
|
504
438
|
}
|
|
505
|
-
}),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
const wa = {
|
|
511
|
-
install: (u) => {
|
|
512
|
-
u.component("GiftCard", fe);
|
|
439
|
+
}), q = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-36e1c4fe"]]), bt = ke(), vt = Fe();
|
|
440
|
+
class ht extends HTMLElement {
|
|
441
|
+
vueApp;
|
|
442
|
+
constructor() {
|
|
443
|
+
super();
|
|
513
444
|
}
|
|
514
|
-
|
|
445
|
+
disconnectedCallback() {
|
|
446
|
+
this.vueApp.unmount();
|
|
447
|
+
}
|
|
448
|
+
connectedCallback() {
|
|
449
|
+
const n = typeof q == "function" ? q.options : q;
|
|
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;
|
|
461
|
+
}
|
|
462
|
+
this.vueApp = ce(q, h), Ce(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(Ve), this.vueApp.use(we, { bootstrap: !0 });
|
|
463
|
+
const _ = document.createElement("div");
|
|
464
|
+
this.vueApp.mount(_), this.appendChild(_.children[0]);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
window.customElements.define("konnectio-gift-card", ht);
|
|
515
468
|
export {
|
|
516
|
-
|
|
469
|
+
ht as default
|
|
517
470
|
};
|
|
471
|
+
//# sourceMappingURL=gift-card.js.map
|