@konnectio/core 4.0.56-rc2 → 4.0.56-rc3
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-Qf4JAgBa.js → ActionField-9I-yAskc.js} +1 -1
- package/dist/ActionField-9I-yAskc.js.br +0 -0
- package/dist/{AvailabilitySkeleton-GPTCv3Xy.js → AvailabilitySkeleton-hoauL0os.js} +4 -4
- package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
- package/dist/{CheckoutWindow-S9xKe_Wf.js → CheckoutWindow-31th413C.js} +1 -1
- package/dist/CheckoutWindow-31th413C.js.br +0 -0
- package/dist/Container-gHSYMY7q.js +69 -0
- package/dist/Container-gHSYMY7q.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js → DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js} +2919 -2911
- package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
- package/dist/{Field-b7XkSAoi.js → Field-QHvFgmEq.js} +2 -2
- package/dist/Field-QHvFgmEq.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js → SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js} +4621 -4555
- package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
- package/dist/{ThankYou-LiiG3Zv1.js → ThankYou-SQ_bbgj4.js} +4389 -4325
- package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
- package/dist/{_-FAlGPZqe.js → _-FedWhJCw.js} +1 -1
- package/dist/_commonjsHelpers-FF1eOqK0.js +8 -0
- package/dist/availability.js +8 -8
- package/dist/availability.js.br +0 -0
- package/dist/components/Alert.vue.d.ts +27 -4
- package/dist/components/Clickable.vue.d.ts +59 -4
- package/dist/components/Container.vue.d.ts +22 -4
- package/dist/components/ErrorMessage.vue.d.ts +14 -4
- package/dist/components/Gallery.vue.d.ts +30 -4
- package/dist/components/GoogleNotice.vue.d.ts +2 -4
- package/dist/components/Icon.vue.d.ts +37 -4
- package/dist/components/Loading.vue.d.ts +28 -4
- package/dist/components/Spinner.vue.d.ts +1 -3
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +17 -4
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +33 -4
- package/dist/components/forms/HotelReservationForm.vue.d.ts +41 -4
- package/dist/components/forms/MultiStepForm.vue.d.ts +42 -4
- package/dist/components/forms/ReservationForm.vue.d.ts +62 -5
- package/dist/components/forms/_.vue.d.ts +42 -4
- package/dist/components/inputs/Checkbox.vue.d.ts +54 -4
- package/dist/components/inputs/CheckboxField.vue.d.ts +28 -4
- package/dist/components/inputs/DateField.vue.d.ts +104 -5
- package/dist/components/inputs/InputField.vue.d.ts +61 -4
- package/dist/components/inputs/MediaSelector.vue.d.ts +42 -4
- package/dist/components/inputs/NumberField.vue.d.ts +87 -5
- package/dist/components/inputs/SelectField.vue.d.ts +90 -5
- package/dist/components/inputs/TextField.vue.d.ts +67 -4
- package/dist/components/inputs/TimeField.vue.d.ts +44 -5
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +71 -4
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +40 -4
- package/dist/components/inputs/grouped/NameField.vue.d.ts +70 -4
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +50 -4
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +46 -4
- package/dist/components/listings/Base.vue.d.ts +55 -5
- package/dist/components/listings/Event.vue.d.ts +46 -4
- package/dist/components/listings/Hotel.vue.d.ts +15 -4
- package/dist/components/listings/Template.vue.d.ts +20 -4
- package/dist/components/side-panels/Base.vue.d.ts +60 -5
- package/dist/components/side-panels/ListingInfo.vue.d.ts +17 -4
- package/dist/components/side-panels/Template.vue.d.ts +17 -4
- package/dist/components/side-panels/TermsOfService.vue.d.ts +13 -4
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +32 -4
- package/dist/components/skeletons/Field.vue.d.ts +35 -4
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -4
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -4
- package/dist/components/skeletons/Listing.vue.d.ts +1 -4
- package/dist/components/skeletons/Sidebar.vue.d.ts +1 -4
- package/dist/components/skeletons/_.vue.d.ts +35 -4
- package/dist/components/views/CheckoutWindow.vue.d.ts +1 -4
- package/dist/components/views/TermsOfService.vue.d.ts +1 -4
- package/dist/components/views/ThankYou.vue.d.ts +14 -4
- package/dist/entries/availability.d.ts +1 -1
- package/dist/entries/event.d.ts +1 -1
- package/dist/entries/gift-card-validation.d.ts +1 -1
- package/dist/entries/gift-card.d.ts +1 -1
- package/dist/entries/hotel.d.ts +1 -1
- package/dist/event-4kCWoqDL.js +359 -0
- package/dist/event-4kCWoqDL.js.br +0 -0
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +281 -251
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1636 -1581
- package/dist/hotel.js.br +0 -0
- package/dist/layouts/Availability.vue.d.ts +4 -4
- package/dist/layouts/Event.vue.d.ts +4 -4
- package/dist/layouts/GiftCard.vue.d.ts +4 -4
- package/dist/layouts/GiftCardValidation.vue.d.ts +4 -4
- package/dist/layouts/Hotel.vue.d.ts +4 -4
- package/dist/layouts/_.vue.d.ts +4 -4
- package/dist/polyfill.js +67 -67
- package/dist/polyfill.js.br +0 -0
- package/dist/store/alert.d.ts +15 -15
- package/dist/store/applyGiftCard.d.ts +18 -18
- package/dist/store/availability.d.ts +12 -12
- package/dist/store/event.d.ts +141 -141
- package/dist/store/giftCard.d.ts +51 -51
- package/dist/store/payment.d.ts +39 -39
- package/dist/store/recaptcha.d.ts +3 -3
- package/dist/store/tracking.d.ts +6 -6
- package/dist/store/utilities.d.ts +129 -129
- package/package.json +4 -1
- package/dist/ActionField-Qf4JAgBa.js.br +0 -0
- package/dist/ActionField-ztW-1xka.cjs +0 -1
- package/dist/AvailabilitySkeleton-GPTCv3Xy.js.br +0 -0
- package/dist/AvailabilitySkeleton-v0QVPuim.cjs +0 -1
- package/dist/CheckoutWindow-NUwbNAPw.cjs +0 -1
- package/dist/CheckoutWindow-S9xKe_Wf.js.br +0 -0
- package/dist/Container-Fl2PKj-u.js +0 -59
- package/dist/Container-Fl2PKj-u.js.br +0 -0
- package/dist/Container-Y6_3uTWy.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs +0 -2
- package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js.br +0 -0
- package/dist/Field-UTbHMN9U.cjs +0 -1
- package/dist/Field-b7XkSAoi.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs +0 -851
- package/dist/ThankYou-LiiG3Zv1.js.br +0 -0
- package/dist/ThankYou-M6d4G8pc.cjs +0 -59
- package/dist/_-oL4OsiNw.cjs +0 -1
- package/dist/_commonjsHelpers-f3sTPFkQ.js +0 -8
- package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
- package/dist/availability.cjs +0 -2
- package/dist/event-GaUgVNzy.cjs +0 -1
- package/dist/event-MXmxvcpC.js +0 -329
- package/dist/event-MXmxvcpC.js.br +0 -0
- package/dist/event.cjs +0 -1
- package/dist/gift-card-validation.cjs +0 -1
- package/dist/gift-card.cjs +0 -1
- package/dist/hotel.cjs +0 -19
- package/dist/navigation.cjs +0 -1
- package/dist/polyfill.cjs +0 -4
package/dist/gift-card.js
CHANGED
|
@@ -1,102 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var ve = Object.defineProperty;
|
|
2
|
+
var ae = Object.getOwnPropertySymbols;
|
|
3
|
+
var ge = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var le = (u, t, r) => t in u ? ve(u, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : u[t] = r, te = (u, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
ge.call(t, r) && le(u, r, t[r]);
|
|
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 = _({
|
|
10
37
|
base64: "",
|
|
11
38
|
type: "",
|
|
12
39
|
name: ""
|
|
13
|
-
}), l =
|
|
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(() => {
|
|
14
41
|
const a = {
|
|
15
42
|
1: {
|
|
16
|
-
label:
|
|
43
|
+
label: ie.t("giftCard.hotelType"),
|
|
17
44
|
data: []
|
|
18
45
|
},
|
|
19
46
|
2: {
|
|
20
|
-
label:
|
|
47
|
+
label: ie.t("giftCard.restaurantType"),
|
|
21
48
|
data: []
|
|
22
49
|
}
|
|
23
|
-
},
|
|
24
|
-
return
|
|
25
|
-
a[
|
|
50
|
+
}, U = r.value.hotels[0].places;
|
|
51
|
+
return U && U.forEach((w) => {
|
|
52
|
+
a[w.placeType].data.push(w);
|
|
26
53
|
}), Object.fromEntries(
|
|
27
|
-
Object.entries(a).filter(([,
|
|
54
|
+
Object.entries(a).filter(([, w]) => w.data.length > 0)
|
|
28
55
|
);
|
|
29
|
-
}), A =
|
|
56
|
+
}), A = V(() => q.value !== 0), E = V(() => {
|
|
30
57
|
let a;
|
|
31
58
|
if (A.value)
|
|
32
|
-
a =
|
|
33
|
-
else if (
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
String(
|
|
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);
|
|
37
64
|
});
|
|
38
65
|
}
|
|
39
66
|
return a;
|
|
40
|
-
}), B =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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-rc3"
|
|
92
|
+
}
|
|
93
|
+
}).then((a) => {
|
|
94
|
+
s.value = $.ReadyToPay, y.value = !1, u({
|
|
95
|
+
callback: () => console.log("Callback!"),
|
|
96
|
+
response: a.data
|
|
97
|
+
});
|
|
69
98
|
});
|
|
70
99
|
});
|
|
71
100
|
}
|
|
72
|
-
function
|
|
73
|
-
a && (
|
|
101
|
+
function i(a) {
|
|
102
|
+
a && (q.value = a);
|
|
74
103
|
}
|
|
75
104
|
return {
|
|
76
|
-
selectedPlace:
|
|
77
|
-
moduleState:
|
|
78
|
-
name:
|
|
79
|
-
email:
|
|
80
|
-
phone:
|
|
81
|
-
value:
|
|
105
|
+
selectedPlace: E,
|
|
106
|
+
moduleState: s,
|
|
107
|
+
name: h,
|
|
108
|
+
email: f,
|
|
109
|
+
phone: v,
|
|
110
|
+
value: m,
|
|
82
111
|
remark: G,
|
|
83
|
-
showValue:
|
|
84
|
-
quantity:
|
|
85
|
-
media:
|
|
112
|
+
showValue: S,
|
|
113
|
+
quantity: g,
|
|
114
|
+
media: k,
|
|
86
115
|
placeId: l,
|
|
87
|
-
placeType:
|
|
88
|
-
showFormPage:
|
|
89
|
-
showPaymentPage:
|
|
116
|
+
placeType: c,
|
|
117
|
+
showFormPage: F,
|
|
118
|
+
showPaymentPage: I,
|
|
90
119
|
showConfirmationPage: M,
|
|
91
|
-
places:
|
|
120
|
+
places: P,
|
|
92
121
|
hasFilledForm: B,
|
|
93
122
|
hasForcedPlaceType: A,
|
|
94
123
|
isWaitingForResponse: K,
|
|
95
124
|
isMetaDataAvailable: O,
|
|
96
|
-
orderGiftCard:
|
|
97
|
-
initialize:
|
|
125
|
+
orderGiftCard: R,
|
|
126
|
+
initialize: i
|
|
98
127
|
};
|
|
99
|
-
}),
|
|
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({
|
|
100
129
|
__name: "MediaSelector",
|
|
101
130
|
props: {
|
|
102
131
|
modelValue: {},
|
|
@@ -106,94 +135,96 @@ const oe = be("giftCard", () => {
|
|
|
106
135
|
required: { type: Boolean, default: !1 }
|
|
107
136
|
},
|
|
108
137
|
emits: ["update:modelValue"],
|
|
109
|
-
setup(
|
|
110
|
-
const
|
|
111
|
-
function
|
|
112
|
-
|
|
138
|
+
setup(u, { emit: t }) {
|
|
139
|
+
const r = t, o = u, { t: s } = pe(), { display: h } = Ue(), f = _(), v = V(() => o.modelValue.base64 !== "");
|
|
140
|
+
function m(l) {
|
|
141
|
+
r("update:modelValue", l);
|
|
113
142
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
143
|
+
function g() {
|
|
144
|
+
m({
|
|
116
145
|
base64: "",
|
|
117
146
|
name: "",
|
|
118
147
|
type: ""
|
|
119
|
-
}),
|
|
148
|
+
}), f.value && (f.value.value = "");
|
|
120
149
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
150
|
+
function S() {
|
|
151
|
+
f.value && f.value.click();
|
|
123
152
|
}
|
|
124
|
-
function G(l,
|
|
125
|
-
const [
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
const M =
|
|
129
|
-
|
|
153
|
+
function G(l, c) {
|
|
154
|
+
const [y, q] = [l.name, l.type], F = new FileReader();
|
|
155
|
+
F.onload = function(I) {
|
|
156
|
+
if (I.target) {
|
|
157
|
+
const M = I.target.result;
|
|
158
|
+
c({ base64: M, name: y, type: q });
|
|
130
159
|
} else
|
|
131
|
-
|
|
132
|
-
message:
|
|
160
|
+
h({
|
|
161
|
+
message: s("imageUploadError"),
|
|
133
162
|
type: "error"
|
|
134
163
|
});
|
|
135
|
-
},
|
|
164
|
+
}, F.readAsDataURL(l);
|
|
136
165
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
166
|
+
function k() {
|
|
167
|
+
return J(this, null, function* () {
|
|
168
|
+
let l;
|
|
169
|
+
(l = f.value.files) instanceof FileList && G(l[0], m);
|
|
170
|
+
});
|
|
140
171
|
}
|
|
141
|
-
return (l,
|
|
172
|
+
return (l, c) => (p(), L($e, {
|
|
142
173
|
label: l.label,
|
|
143
174
|
required: l.required,
|
|
144
175
|
type: "media"
|
|
145
176
|
}, {
|
|
146
177
|
default: D(() => [
|
|
147
|
-
|
|
148
|
-
|
|
178
|
+
d("div", Be, [
|
|
179
|
+
d("input", {
|
|
149
180
|
ref_key: "fileInput",
|
|
150
|
-
ref:
|
|
181
|
+
ref: f,
|
|
151
182
|
type: "file",
|
|
152
183
|
class: "hidden",
|
|
153
184
|
accept: l.validation,
|
|
154
185
|
single: "",
|
|
155
|
-
onChange:
|
|
156
|
-
}, null, 40,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
label: e(
|
|
186
|
+
onChange: c[0] || (c[0] = (y) => k())
|
|
187
|
+
}, null, 40, We),
|
|
188
|
+
d("div", je, [
|
|
189
|
+
d("ul", He, [
|
|
190
|
+
v.value ? T("", !0) : (p(), b("li", Ne, [
|
|
191
|
+
n(z, {
|
|
192
|
+
label: e(s)("uploadFile"),
|
|
162
193
|
type: "button",
|
|
163
194
|
icon: "upload",
|
|
164
195
|
"icon-color": l.iconColor,
|
|
165
|
-
onClickEvent:
|
|
196
|
+
onClickEvent: c[1] || (c[1] = (y) => S())
|
|
166
197
|
}, null, 8, ["label", "icon-color"])
|
|
167
198
|
])),
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
label: e(
|
|
199
|
+
v.value ? (p(), b("li", Oe, [
|
|
200
|
+
n(z, {
|
|
201
|
+
label: e(s)("replaceFile"),
|
|
171
202
|
type: "button",
|
|
172
203
|
icon: "repeat-alt",
|
|
173
204
|
"icon-color": l.iconColor,
|
|
174
|
-
onClickEvent:
|
|
205
|
+
onClickEvent: c[2] || (c[2] = (y) => S())
|
|
175
206
|
}, null, 8, ["label", "icon-color"])
|
|
176
|
-
])) :
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
label: e(
|
|
207
|
+
])) : T("", !0),
|
|
208
|
+
v.value ? (p(), b("li", Ke, [
|
|
209
|
+
n(z, {
|
|
210
|
+
label: e(s)("removeFile"),
|
|
180
211
|
type: "button",
|
|
181
212
|
icon: "trash-alt",
|
|
182
213
|
"icon-color": l.iconColor,
|
|
183
|
-
onClickEvent:
|
|
214
|
+
onClickEvent: c[3] || (c[3] = (y) => g())
|
|
184
215
|
}, null, 8, ["label", "icon-color"])
|
|
185
|
-
])) :
|
|
216
|
+
])) : T("", !0)
|
|
186
217
|
]),
|
|
187
|
-
|
|
188
|
-
class:
|
|
218
|
+
d("div", {
|
|
219
|
+
class: ue([
|
|
189
220
|
"media-selector-previewer",
|
|
190
|
-
{ opened:
|
|
221
|
+
{ opened: v.value }
|
|
191
222
|
])
|
|
192
223
|
}, [
|
|
193
|
-
l.modelValue ? (
|
|
224
|
+
l.modelValue ? (p(), b("img", {
|
|
194
225
|
key: 0,
|
|
195
226
|
src: l.modelValue.base64
|
|
196
|
-
}, null, 8,
|
|
227
|
+
}, null, 8, Je)) : T("", !0)
|
|
197
228
|
], 2)
|
|
198
229
|
])
|
|
199
230
|
])
|
|
@@ -202,9 +233,9 @@ const oe = be("giftCard", () => {
|
|
|
202
233
|
}, 8, ["label", "required"]));
|
|
203
234
|
}
|
|
204
235
|
});
|
|
205
|
-
function
|
|
206
|
-
const
|
|
207
|
-
|
|
236
|
+
function de(u) {
|
|
237
|
+
const t = u;
|
|
238
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
208
239
|
locale: "",
|
|
209
240
|
resource: {
|
|
210
241
|
da: {
|
|
@@ -222,39 +253,39 @@ function ie(h) {
|
|
|
222
253
|
}
|
|
223
254
|
});
|
|
224
255
|
}
|
|
225
|
-
typeof
|
|
226
|
-
const
|
|
256
|
+
typeof de == "function" && de(Ye);
|
|
257
|
+
const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-form" }, Ze = /* @__PURE__ */ Z({
|
|
227
258
|
__name: "GiftCardSkeleton",
|
|
228
|
-
setup(
|
|
229
|
-
return (
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
259
|
+
setup(u) {
|
|
260
|
+
return (t, r) => (p(), b("div", Qe, [
|
|
261
|
+
d("div", Xe, [
|
|
262
|
+
n(x),
|
|
263
|
+
n(x),
|
|
264
|
+
n(x),
|
|
265
|
+
n(x),
|
|
266
|
+
n(x, { "is-text-area": "" }),
|
|
267
|
+
n(Ae, { height: "44px" })
|
|
237
268
|
])
|
|
238
269
|
]));
|
|
239
270
|
}
|
|
240
|
-
}),
|
|
271
|
+
}), ea = /* @__PURE__ */ me(Ze, [["__scopeId", "data-v-e35c75b3"]]), aa = {
|
|
241
272
|
key: 0,
|
|
242
273
|
id: "konnectio-gift-card-wrapper"
|
|
243
|
-
},
|
|
274
|
+
}, la = { id: "konnectio-gift-card-title" }, ta = { id: "konnectio-gift-card-content" }, oa = { id: "konnectio-gift-card-payment" }, ia = ["innerHTML"], na = { key: 0 }, ra = {
|
|
244
275
|
key: 0,
|
|
245
276
|
id: "fresh-booking-select-place-type"
|
|
246
|
-
},
|
|
247
|
-
class: /* @__PURE__ */
|
|
248
|
-
},
|
|
277
|
+
}, sa = {
|
|
278
|
+
class: /* @__PURE__ */ ue(["fresh-booking-label", "required"])
|
|
279
|
+
}, da = { id: "fresh-booking-select-place-type-input" }, ua = ["innerHTML"], ca = {
|
|
249
280
|
key: 0,
|
|
250
281
|
id: "konnectio-gift-card-order"
|
|
251
|
-
},
|
|
282
|
+
}, pa = { class: "fresh-booking-panel" }, ma = {
|
|
252
283
|
key: 1,
|
|
253
284
|
id: "konnectio-gift-card-remarks"
|
|
254
|
-
},
|
|
285
|
+
}, fa = {
|
|
255
286
|
key: 2,
|
|
256
287
|
id: "konnectio-gift-card-order-minimal"
|
|
257
|
-
},
|
|
288
|
+
}, va = { id: "konnectio-gift-card-recaptcha" }, ga = /* @__PURE__ */ Z({
|
|
258
289
|
name: "GiftCardLayout",
|
|
259
290
|
__name: "GiftCard",
|
|
260
291
|
props: {
|
|
@@ -263,96 +294,95 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
263
294
|
placeType: {},
|
|
264
295
|
styling: {}
|
|
265
296
|
},
|
|
266
|
-
setup(
|
|
267
|
-
const
|
|
268
|
-
panelMaxWidth: "800px"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
quantity: T,
|
|
297
|
+
setup(u) {
|
|
298
|
+
const t = u, r = V(() => te({
|
|
299
|
+
panelMaxWidth: "800px"
|
|
300
|
+
}, t.styling)), { t: o } = pe(), {
|
|
301
|
+
name: s,
|
|
302
|
+
email: h,
|
|
303
|
+
phone: f,
|
|
304
|
+
value: v,
|
|
305
|
+
remark: m,
|
|
306
|
+
showValue: g,
|
|
307
|
+
quantity: S,
|
|
278
308
|
media: G,
|
|
279
|
-
placeId:
|
|
309
|
+
placeId: k,
|
|
280
310
|
placeType: l,
|
|
281
|
-
showFormPage:
|
|
282
|
-
showPaymentPage:
|
|
283
|
-
showConfirmationPage:
|
|
284
|
-
places:
|
|
285
|
-
hasFilledForm:
|
|
311
|
+
showFormPage: c,
|
|
312
|
+
showPaymentPage: y,
|
|
313
|
+
showConfirmationPage: q,
|
|
314
|
+
places: F,
|
|
315
|
+
hasFilledForm: I,
|
|
286
316
|
hasForcedPlaceType: M,
|
|
287
|
-
isWaitingForResponse:
|
|
317
|
+
isWaitingForResponse: P,
|
|
288
318
|
isMetaDataAvailable: A
|
|
289
|
-
} =
|
|
290
|
-
return
|
|
291
|
-
|
|
292
|
-
}),
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
}), (
|
|
319
|
+
} = X(se()), { initialize: E, orderGiftCard: B } = se(), { isRecaptchaEnabled: O, currency: K } = X(ce());
|
|
320
|
+
return ye(l, () => {
|
|
321
|
+
k.value = void 0;
|
|
322
|
+
}), he(() => {
|
|
323
|
+
const R = t.placeType ? parseInt(t.placeType) : void 0;
|
|
324
|
+
E(R);
|
|
325
|
+
}), (R, i) => (p(), L(Me, { styling: r.value }, {
|
|
296
326
|
default: D(() => [
|
|
297
|
-
(
|
|
327
|
+
(p(), L(ke, null, {
|
|
298
328
|
default: D(() => [
|
|
299
|
-
|
|
329
|
+
n(Ee, {
|
|
300
330
|
id: "konnectio-gift-card-module",
|
|
301
331
|
type: "gift-card",
|
|
302
|
-
"access-token":
|
|
303
|
-
"data-layout":
|
|
332
|
+
"access-token": R.accessToken,
|
|
333
|
+
"data-layout": R.layout
|
|
304
334
|
}, {
|
|
305
335
|
default: D(() => [
|
|
306
|
-
e(A) ? (
|
|
307
|
-
|
|
308
|
-
|
|
336
|
+
e(A) ? (p(), b("div", aa, [
|
|
337
|
+
d("h2", la, [
|
|
338
|
+
d("span", null, oe(e(o)("giftCard.title")), 1)
|
|
309
339
|
]),
|
|
310
|
-
|
|
311
|
-
W(
|
|
312
|
-
|
|
340
|
+
d("div", ta, [
|
|
341
|
+
W(d("div", oa, [
|
|
342
|
+
n(xe)
|
|
313
343
|
], 512), [
|
|
314
|
-
[j, e(
|
|
344
|
+
[j, e(y)]
|
|
315
345
|
]),
|
|
316
|
-
W(
|
|
317
|
-
|
|
346
|
+
W(d("div", null, [
|
|
347
|
+
d("p", {
|
|
318
348
|
id: "konnectio-gift-card-description",
|
|
319
349
|
innerHTML: e(o)("giftCard.description")
|
|
320
|
-
}, null, 8,
|
|
321
|
-
|
|
322
|
-
e(M) ?
|
|
323
|
-
e(
|
|
324
|
-
|
|
325
|
-
|
|
350
|
+
}, null, 8, ia),
|
|
351
|
+
d("form", null, [
|
|
352
|
+
e(M) ? T("", !0) : (p(), b("div", na, [
|
|
353
|
+
e(F) ? (p(), b("div", ra, [
|
|
354
|
+
d("label", sa, [
|
|
355
|
+
d("span", null, oe(e(o)("giftCard.selectType")), 1)
|
|
326
356
|
]),
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
(
|
|
330
|
-
|
|
357
|
+
d("div", da, [
|
|
358
|
+
d("ul", null, [
|
|
359
|
+
(p(!0), b(Ce, null, _e(e(F), (a, U) => (p(), b("li", { key: U }, [
|
|
360
|
+
n(re, {
|
|
331
361
|
modelValue: e(l),
|
|
332
|
-
"onUpdate:modelValue":
|
|
362
|
+
"onUpdate:modelValue": i[0] || (i[0] = (w) => C(l) ? l.value = w : null),
|
|
333
363
|
type: "radio",
|
|
334
364
|
name: "placeType",
|
|
335
|
-
val:
|
|
365
|
+
val: U,
|
|
336
366
|
label: a.label
|
|
337
367
|
}, null, 8, ["modelValue", "val", "label"])
|
|
338
368
|
]))), 128))
|
|
339
369
|
]),
|
|
340
|
-
e(
|
|
370
|
+
e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (p(), L(qe, {
|
|
341
371
|
key: 0,
|
|
342
|
-
modelValue: e(
|
|
343
|
-
"onUpdate:modelValue":
|
|
372
|
+
modelValue: e(k),
|
|
373
|
+
"onUpdate:modelValue": i[1] || (i[1] = (a) => C(k) ? k.value = a : null),
|
|
344
374
|
placeholder: e(o)("giftCard.selectPlacePlaceholder"),
|
|
345
|
-
options: e(
|
|
375
|
+
options: e(F)[e(l)].data,
|
|
346
376
|
labelKey: "name",
|
|
347
377
|
valueKey: "id",
|
|
348
378
|
required: ""
|
|
349
|
-
}, null, 8, ["modelValue", "placeholder", "options"])) :
|
|
379
|
+
}, null, 8, ["modelValue", "placeholder", "options"])) : T("", !0)
|
|
350
380
|
])
|
|
351
|
-
])) : (
|
|
381
|
+
])) : (p(), L(ne, { key: 1 }))
|
|
352
382
|
])),
|
|
353
|
-
|
|
354
|
-
modelValue: e(
|
|
355
|
-
"onUpdate:modelValue":
|
|
383
|
+
n(H, {
|
|
384
|
+
modelValue: e(s),
|
|
385
|
+
"onUpdate:modelValue": i[2] || (i[2] = (a) => C(s) ? s.value = a : null),
|
|
356
386
|
type: "text",
|
|
357
387
|
name: "name",
|
|
358
388
|
autocomplete: "name",
|
|
@@ -361,9 +391,9 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
361
391
|
placeholder: e(o)("giftCard.namePlaceholder"),
|
|
362
392
|
required: ""
|
|
363
393
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
364
|
-
|
|
365
|
-
modelValue: e(
|
|
366
|
-
"onUpdate:modelValue":
|
|
394
|
+
n(H, {
|
|
395
|
+
modelValue: e(h),
|
|
396
|
+
"onUpdate:modelValue": i[3] || (i[3] = (a) => C(h) ? h.value = a : null),
|
|
367
397
|
type: "email",
|
|
368
398
|
name: "email",
|
|
369
399
|
autocomplete: "email",
|
|
@@ -372,17 +402,17 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
372
402
|
placeholder: e(o)("giftCard.emailPlaceholder"),
|
|
373
403
|
required: ""
|
|
374
404
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
375
|
-
|
|
376
|
-
modelValue: e(
|
|
377
|
-
"onUpdate:modelValue":
|
|
405
|
+
n(De, {
|
|
406
|
+
modelValue: e(f),
|
|
407
|
+
"onUpdate:modelValue": i[4] || (i[4] = (a) => C(f) ? f.value = a : null),
|
|
378
408
|
icon: "phone-office",
|
|
379
409
|
label: e(o)("giftCard.phone"),
|
|
380
410
|
placeholder: e(o)("giftCard.phonePlaceholder"),
|
|
381
411
|
required: ""
|
|
382
412
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
383
|
-
|
|
384
|
-
modelValue: e(
|
|
385
|
-
"onUpdate:modelValue":
|
|
413
|
+
n(H, {
|
|
414
|
+
modelValue: e(v),
|
|
415
|
+
"onUpdate:modelValue": i[5] || (i[5] = (a) => C(v) ? v.value = a : null),
|
|
386
416
|
type: "number",
|
|
387
417
|
name: "value",
|
|
388
418
|
label: e(o)("giftCard.value"),
|
|
@@ -391,80 +421,80 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
391
421
|
suffix: e(K),
|
|
392
422
|
required: ""
|
|
393
423
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
394
|
-
|
|
395
|
-
modelValue: e(
|
|
396
|
-
"onUpdate:modelValue":
|
|
424
|
+
n(re, {
|
|
425
|
+
modelValue: e(g),
|
|
426
|
+
"onUpdate:modelValue": i[6] || (i[6] = (a) => C(g) ? g.value = a : null),
|
|
397
427
|
type: "checkbox",
|
|
398
428
|
name: "showValue",
|
|
399
429
|
label: e(o)("giftCard.showValue"),
|
|
400
|
-
checked: e(
|
|
430
|
+
checked: e(g)
|
|
401
431
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
modelValue: e(
|
|
405
|
-
"onUpdate:modelValue":
|
|
432
|
+
T("", !0),
|
|
433
|
+
n(Ie, {
|
|
434
|
+
modelValue: e(S),
|
|
435
|
+
"onUpdate:modelValue": i[8] || (i[8] = (a) => C(S) ? S.value = a : null),
|
|
406
436
|
label: e(o)("giftCard.quantity"),
|
|
407
437
|
icon: "gift-card",
|
|
408
438
|
required: ""
|
|
409
439
|
}, null, 8, ["modelValue", "label"])
|
|
410
440
|
])
|
|
411
441
|
], 512), [
|
|
412
|
-
[j, e(
|
|
442
|
+
[j, e(c)]
|
|
413
443
|
]),
|
|
414
|
-
W(
|
|
415
|
-
|
|
444
|
+
W(d("div", null, [
|
|
445
|
+
d("div", {
|
|
416
446
|
innerHTML: e(o)("giftCard.thankYou")
|
|
417
|
-
}, null, 8,
|
|
447
|
+
}, null, 8, ua)
|
|
418
448
|
], 512), [
|
|
419
|
-
[j, e(
|
|
449
|
+
[j, e(q)]
|
|
420
450
|
])
|
|
421
451
|
]),
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
452
|
+
R.layout !== "minimal" && e(c) ? (p(), b("div", ca, [
|
|
453
|
+
d("div", pa, [
|
|
454
|
+
n(z, {
|
|
425
455
|
label: e(o)("giftCard.orderGiftCard"),
|
|
426
456
|
"full-width": !0,
|
|
427
|
-
disabled: !e(
|
|
428
|
-
"is-loading": e(
|
|
429
|
-
"onUpdate:isLoading":
|
|
457
|
+
disabled: !e(I),
|
|
458
|
+
"is-loading": e(P),
|
|
459
|
+
"onUpdate:isLoading": i[9] || (i[9] = (a) => C(P) ? P.value = a : null),
|
|
430
460
|
onClickEvent: e(B)
|
|
431
461
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
432
462
|
])
|
|
433
|
-
])) :
|
|
434
|
-
e(
|
|
435
|
-
|
|
436
|
-
modelValue: e(
|
|
437
|
-
"onUpdate:modelValue":
|
|
463
|
+
])) : T("", !0),
|
|
464
|
+
e(c) ? (p(), b("div", ma, [
|
|
465
|
+
n(H, {
|
|
466
|
+
modelValue: e(m),
|
|
467
|
+
"onUpdate:modelValue": i[10] || (i[10] = (a) => C(m) ? m.value = a : null),
|
|
438
468
|
type: "textarea",
|
|
439
469
|
name: "remark",
|
|
440
470
|
label: e(o)("giftCard.remark"),
|
|
441
471
|
icon: "info-circle",
|
|
442
472
|
placeholder: e(o)("giftCard.remarkPlaceholder")
|
|
443
473
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
444
|
-
])) :
|
|
445
|
-
e(
|
|
446
|
-
|
|
474
|
+
])) : T("", !0),
|
|
475
|
+
e(c) ? (p(), b("div", fa, [
|
|
476
|
+
n(z, {
|
|
447
477
|
label: e(o)("giftCard.orderGiftCard"),
|
|
448
478
|
"full-width": !0,
|
|
449
|
-
disabled: !e(
|
|
479
|
+
disabled: !e(I),
|
|
450
480
|
"data-test": "orderGiftCard",
|
|
451
|
-
"is-loading": e(
|
|
452
|
-
"onUpdate:isLoading":
|
|
481
|
+
"is-loading": e(P),
|
|
482
|
+
"onUpdate:isLoading": i[11] || (i[11] = (a) => C(P) ? P.value = a : null),
|
|
453
483
|
onClickEvent: e(B)
|
|
454
484
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
455
|
-
W(
|
|
456
|
-
|
|
485
|
+
W(d("div", va, [
|
|
486
|
+
n(ze)
|
|
457
487
|
], 512), [
|
|
458
488
|
[j, e(O)]
|
|
459
489
|
])
|
|
460
|
-
])) :
|
|
461
|
-
])) : (
|
|
490
|
+
])) : T("", !0)
|
|
491
|
+
])) : (p(), L(ne, { key: 1 }))
|
|
462
492
|
]),
|
|
463
493
|
_: 1
|
|
464
494
|
}, 8, ["access-token", "data-layout"])
|
|
465
495
|
]),
|
|
466
496
|
fallback: D(() => [
|
|
467
|
-
|
|
497
|
+
n(ea)
|
|
468
498
|
]),
|
|
469
499
|
_: 1
|
|
470
500
|
}))
|
|
@@ -472,16 +502,16 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
|
|
|
472
502
|
_: 1
|
|
473
503
|
}, 8, ["styling"]));
|
|
474
504
|
}
|
|
475
|
-
}),
|
|
476
|
-
N.use(
|
|
477
|
-
N.use(
|
|
478
|
-
N.use(
|
|
505
|
+
}), fe = /* @__PURE__ */ me(ga, [["__scopeId", "data-v-ec9ea15b"]]), ba = Re(), N = Ve({ components: { GiftCard: fe } });
|
|
506
|
+
N.use(ba);
|
|
507
|
+
N.use(Le);
|
|
508
|
+
N.use(Ge, { bootstrap: !0 });
|
|
479
509
|
N.mount("#konnectio-gift-card-app");
|
|
480
|
-
const
|
|
481
|
-
install: (
|
|
482
|
-
|
|
510
|
+
const wa = {
|
|
511
|
+
install: (u) => {
|
|
512
|
+
u.component("GiftCard", fe);
|
|
483
513
|
}
|
|
484
514
|
};
|
|
485
515
|
export {
|
|
486
|
-
|
|
516
|
+
wa as default
|
|
487
517
|
};
|