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