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