@konnectio/core 4.0.56-rc4 → 4.0.56-rc5
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--byx0Lp1.js} +27 -28
- package/dist/ActionField--byx0Lp1.js.br +0 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js +239 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
- package/dist/{CheckoutWindow-2RMgPiGi.js → CheckoutWindow-_ZUCAYgm.js} +46 -47
- package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
- package/dist/{Container-XBRB0sOV.js → Container-6UeOakwz.js} +6 -7
- package/dist/Container-6UeOakwz.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-v-NT3HRG.js} +5 -6
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
- package/dist/{Field-uK3Wuuv6.js → Field-GdMucFcQ.js} +12 -13
- package/dist/Field-GdMucFcQ.js.br +5 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +27240 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
- package/dist/{ThankYou-nz4vPX4O.js → ThankYou-9pzt2SfJ.js} +1829 -1670
- package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
- package/dist/_-5uiOrU07.js +19 -0
- package/dist/_commonjsHelpers-4t9S7M5p.js +30 -0
- package/dist/availability.js +34 -35
- package/dist/availability.js.br +0 -0
- package/dist/{event--wgsUkQp.js → event-jnP6wH4w.js} +53 -54
- package/dist/event-jnP6wH4w.js.br +0 -0
- package/dist/event.js +212 -213
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +57 -58
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +106 -107
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +916 -906
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +2 -2
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- 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,62 +1,61 @@
|
|
|
1
1
|
var ve = Object.defineProperty;
|
|
2
2
|
var ae = Object.getOwnPropertySymbols;
|
|
3
3
|
var ge = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var le = (u, t,
|
|
5
|
-
for (var
|
|
6
|
-
ge.call(t,
|
|
4
|
+
var le = (u, t, s) => t in u ? ve(u, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : u[t] = s, te = (u, t) => {
|
|
5
|
+
for (var s in t || (t = {}))
|
|
6
|
+
ge.call(t, s) && le(u, s, t[s]);
|
|
7
7
|
if (ae)
|
|
8
|
-
for (var
|
|
9
|
-
be.call(t,
|
|
8
|
+
for (var s of ae(t))
|
|
9
|
+
be.call(t, s) && le(u, s, t[s]);
|
|
10
10
|
return u;
|
|
11
11
|
};
|
|
12
|
-
var J = (u, t,
|
|
12
|
+
var J = (u, t, s) => new Promise((o, r) => {
|
|
13
13
|
var h = (m) => {
|
|
14
14
|
try {
|
|
15
|
-
v(
|
|
15
|
+
v(s.next(m));
|
|
16
16
|
} catch (g) {
|
|
17
|
-
|
|
17
|
+
r(g);
|
|
18
18
|
}
|
|
19
19
|
}, f = (m) => {
|
|
20
20
|
try {
|
|
21
|
-
v(
|
|
21
|
+
v(s.throw(m));
|
|
22
22
|
} catch (g) {
|
|
23
|
-
|
|
23
|
+
r(g);
|
|
24
24
|
}
|
|
25
25
|
}, v = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(h, f);
|
|
26
|
-
v((
|
|
26
|
+
v((s = s.apply(u, t)).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 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 = _({
|
|
37
36
|
base64: "",
|
|
38
37
|
type: "",
|
|
39
38
|
name: ""
|
|
40
|
-
}), l = _(void 0), c = _(0), y = _(!1),
|
|
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(() => {
|
|
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 =
|
|
49
|
+
}, U = s.value.hotels[0].places;
|
|
51
50
|
return U && U.forEach((w) => {
|
|
52
51
|
a[w.placeType].data.push(w);
|
|
53
52
|
}), Object.fromEntries(
|
|
54
53
|
Object.entries(a).filter(([, w]) => w.data.length > 0)
|
|
55
54
|
);
|
|
56
|
-
}), A = V(() =>
|
|
55
|
+
}), A = V(() => R.value !== 0), E = V(() => {
|
|
57
56
|
let a;
|
|
58
57
|
if (A.value)
|
|
59
|
-
a = P.value[
|
|
58
|
+
a = P.value[R.value].data[0];
|
|
60
59
|
else if (c.value !== 0) {
|
|
61
60
|
const U = l.value, w = P.value[c.value].data;
|
|
62
61
|
w.length === 1 ? a = w[0] : U !== void 0 && w.forEach((ee) => {
|
|
@@ -64,22 +63,22 @@ const se = Fe("giftCard", () => {
|
|
|
64
63
|
});
|
|
65
64
|
}
|
|
66
65
|
return a;
|
|
67
|
-
}),
|
|
68
|
-
function
|
|
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() {
|
|
69
68
|
return J(this, null, function* () {
|
|
70
|
-
|
|
69
|
+
r.value = $.WaitingForResponse, y.value = !0, yield ke.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
71
70
|
termsOfserviceURL: window.location.origin,
|
|
72
71
|
checkoutUrl: window.location.origin,
|
|
73
72
|
currencyID: o.value,
|
|
74
|
-
language:
|
|
73
|
+
language: Ce(),
|
|
75
74
|
amount: m.value,
|
|
76
75
|
quantity: g.value,
|
|
77
|
-
freeText:
|
|
76
|
+
freeText: L.value,
|
|
78
77
|
showPrice: S.value,
|
|
79
78
|
contactName: h.value,
|
|
80
79
|
contactEmail: f.value,
|
|
81
80
|
contactPhone: v.value,
|
|
82
|
-
imageBase64:
|
|
81
|
+
imageBase64: _e(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,
|
|
@@ -88,10 +87,10 @@ const se = Fe("giftCard", () => {
|
|
|
88
87
|
headers: {
|
|
89
88
|
Authorization: t.value,
|
|
90
89
|
Accept: "application/json",
|
|
91
|
-
"Fresh-Booking-Ver": "4.0.56-
|
|
90
|
+
"Fresh-Booking-Ver": "4.0.56-rc5"
|
|
92
91
|
}
|
|
93
92
|
}).then((a) => {
|
|
94
|
-
|
|
93
|
+
r.value = $.ReadyToPay, y.value = !1, u({
|
|
95
94
|
callback: () => console.log("Callback!"),
|
|
96
95
|
response: a.data
|
|
97
96
|
});
|
|
@@ -99,33 +98,33 @@ const se = Fe("giftCard", () => {
|
|
|
99
98
|
});
|
|
100
99
|
}
|
|
101
100
|
function i(a) {
|
|
102
|
-
a && (
|
|
101
|
+
a && (R.value = a);
|
|
103
102
|
}
|
|
104
103
|
return {
|
|
105
104
|
selectedPlace: E,
|
|
106
|
-
moduleState:
|
|
105
|
+
moduleState: r,
|
|
107
106
|
name: h,
|
|
108
107
|
email: f,
|
|
109
108
|
phone: v,
|
|
110
109
|
value: m,
|
|
111
|
-
remark:
|
|
110
|
+
remark: L,
|
|
112
111
|
showValue: S,
|
|
113
112
|
quantity: g,
|
|
114
113
|
media: k,
|
|
115
114
|
placeId: l,
|
|
116
115
|
placeType: c,
|
|
117
116
|
showFormPage: F,
|
|
118
|
-
showPaymentPage:
|
|
117
|
+
showPaymentPage: q,
|
|
119
118
|
showConfirmationPage: M,
|
|
120
119
|
places: P,
|
|
121
|
-
hasFilledForm:
|
|
120
|
+
hasFilledForm: D,
|
|
122
121
|
hasForcedPlaceType: A,
|
|
123
122
|
isWaitingForResponse: K,
|
|
124
123
|
isMetaDataAvailable: O,
|
|
125
|
-
orderGiftCard:
|
|
124
|
+
orderGiftCard: I,
|
|
126
125
|
initialize: i
|
|
127
126
|
};
|
|
128
|
-
}),
|
|
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({
|
|
129
128
|
__name: "MediaSelector",
|
|
130
129
|
props: {
|
|
131
130
|
modelValue: {},
|
|
@@ -136,9 +135,9 @@ const se = Fe("giftCard", () => {
|
|
|
136
135
|
},
|
|
137
136
|
emits: ["update:modelValue"],
|
|
138
137
|
setup(u, { emit: t }) {
|
|
139
|
-
const
|
|
138
|
+
const s = t, o = u, { t: r } = ce(), { display: h } = Ve(), f = _(), v = V(() => o.modelValue.base64 !== "");
|
|
140
139
|
function m(l) {
|
|
141
|
-
|
|
140
|
+
s("update:modelValue", l);
|
|
142
141
|
}
|
|
143
142
|
function g() {
|
|
144
143
|
m({
|
|
@@ -150,15 +149,15 @@ const se = Fe("giftCard", () => {
|
|
|
150
149
|
function S() {
|
|
151
150
|
f.value && f.value.click();
|
|
152
151
|
}
|
|
153
|
-
function
|
|
154
|
-
const [y,
|
|
155
|
-
F.onload = function(
|
|
156
|
-
if (
|
|
157
|
-
const M =
|
|
158
|
-
c({ base64: M, name: y, type:
|
|
152
|
+
function L(l, c) {
|
|
153
|
+
const [y, R] = [l.name, l.type], F = new FileReader();
|
|
154
|
+
F.onload = function(q) {
|
|
155
|
+
if (q.target) {
|
|
156
|
+
const M = q.target.result;
|
|
157
|
+
c({ base64: M, name: y, type: R });
|
|
159
158
|
} else
|
|
160
159
|
h({
|
|
161
|
-
message:
|
|
160
|
+
message: r("imageUploadError"),
|
|
162
161
|
type: "error"
|
|
163
162
|
});
|
|
164
163
|
}, F.readAsDataURL(l);
|
|
@@ -166,16 +165,16 @@ const se = Fe("giftCard", () => {
|
|
|
166
165
|
function k() {
|
|
167
166
|
return J(this, null, function* () {
|
|
168
167
|
let l;
|
|
169
|
-
(l = f.value.files) instanceof FileList &&
|
|
168
|
+
(l = f.value.files) instanceof FileList && L(l[0], m);
|
|
170
169
|
});
|
|
171
170
|
}
|
|
172
|
-
return (l, c) => (p(),
|
|
171
|
+
return (l, c) => (p(), G(Fe, {
|
|
173
172
|
label: l.label,
|
|
174
173
|
required: l.required,
|
|
175
174
|
type: "media"
|
|
176
175
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
d("div",
|
|
176
|
+
default: B(() => [
|
|
177
|
+
d("div", De, [
|
|
179
178
|
d("input", {
|
|
180
179
|
ref_key: "fileInput",
|
|
181
180
|
ref: f,
|
|
@@ -189,7 +188,7 @@ const se = Fe("giftCard", () => {
|
|
|
189
188
|
d("ul", He, [
|
|
190
189
|
v.value ? T("", !0) : (p(), b("li", Ne, [
|
|
191
190
|
n(z, {
|
|
192
|
-
label: e(
|
|
191
|
+
label: e(r)("uploadFile"),
|
|
193
192
|
type: "button",
|
|
194
193
|
icon: "upload",
|
|
195
194
|
"icon-color": l.iconColor,
|
|
@@ -198,7 +197,7 @@ const se = Fe("giftCard", () => {
|
|
|
198
197
|
])),
|
|
199
198
|
v.value ? (p(), b("li", Oe, [
|
|
200
199
|
n(z, {
|
|
201
|
-
label: e(
|
|
200
|
+
label: e(r)("replaceFile"),
|
|
202
201
|
type: "button",
|
|
203
202
|
icon: "repeat-alt",
|
|
204
203
|
"icon-color": l.iconColor,
|
|
@@ -207,7 +206,7 @@ const se = Fe("giftCard", () => {
|
|
|
207
206
|
])) : T("", !0),
|
|
208
207
|
v.value ? (p(), b("li", Ke, [
|
|
209
208
|
n(z, {
|
|
210
|
-
label: e(
|
|
209
|
+
label: e(r)("removeFile"),
|
|
211
210
|
type: "button",
|
|
212
211
|
icon: "trash-alt",
|
|
213
212
|
"icon-color": l.iconColor,
|
|
@@ -216,7 +215,7 @@ const se = Fe("giftCard", () => {
|
|
|
216
215
|
])) : T("", !0)
|
|
217
216
|
]),
|
|
218
217
|
d("div", {
|
|
219
|
-
class:
|
|
218
|
+
class: pe([
|
|
220
219
|
"media-selector-previewer",
|
|
221
220
|
{ opened: v.value }
|
|
222
221
|
])
|
|
@@ -257,7 +256,7 @@ typeof de == "function" && de(Ye);
|
|
|
257
256
|
const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-form" }, Ze = /* @__PURE__ */ Z({
|
|
258
257
|
__name: "GiftCardSkeleton",
|
|
259
258
|
setup(u) {
|
|
260
|
-
return (t,
|
|
259
|
+
return (t, s) => (p(), b("div", Qe, [
|
|
261
260
|
d("div", Xe, [
|
|
262
261
|
n(x),
|
|
263
262
|
n(x),
|
|
@@ -271,11 +270,11 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
271
270
|
}), ea = /* @__PURE__ */ me(Ze, [["__scopeId", "data-v-e35c75b3"]]), aa = {
|
|
272
271
|
key: 0,
|
|
273
272
|
id: "konnectio-gift-card-wrapper"
|
|
274
|
-
}, la = { id: "konnectio-gift-card-title" }, ta = { id: "konnectio-gift-card-content" }, oa = { id: "konnectio-gift-card-payment" }, ia = ["innerHTML"], na = { key: 0 },
|
|
273
|
+
}, la = { id: "konnectio-gift-card-title" }, ta = { id: "konnectio-gift-card-content" }, oa = { id: "konnectio-gift-card-payment" }, ia = ["innerHTML"], na = { key: 0 }, sa = {
|
|
275
274
|
key: 0,
|
|
276
275
|
id: "fresh-booking-select-place-type"
|
|
277
|
-
},
|
|
278
|
-
class: /* @__PURE__ */
|
|
276
|
+
}, ra = {
|
|
277
|
+
class: /* @__PURE__ */ pe(["fresh-booking-label", "required"])
|
|
279
278
|
}, da = { id: "fresh-booking-select-place-type-input" }, ua = ["innerHTML"], ca = {
|
|
280
279
|
key: 0,
|
|
281
280
|
id: "konnectio-gift-card-order"
|
|
@@ -295,47 +294,47 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
295
294
|
styling: {}
|
|
296
295
|
},
|
|
297
296
|
setup(u) {
|
|
298
|
-
const t = u,
|
|
297
|
+
const t = u, s = V(() => te({
|
|
299
298
|
panelMaxWidth: "800px"
|
|
300
|
-
}, t.styling)), { t: o } =
|
|
301
|
-
name:
|
|
299
|
+
}, t.styling)), { t: o } = ce(), {
|
|
300
|
+
name: r,
|
|
302
301
|
email: h,
|
|
303
302
|
phone: f,
|
|
304
303
|
value: v,
|
|
305
304
|
remark: m,
|
|
306
305
|
showValue: g,
|
|
307
306
|
quantity: S,
|
|
308
|
-
media:
|
|
307
|
+
media: L,
|
|
309
308
|
placeId: k,
|
|
310
309
|
placeType: l,
|
|
311
310
|
showFormPage: c,
|
|
312
311
|
showPaymentPage: y,
|
|
313
|
-
showConfirmationPage:
|
|
312
|
+
showConfirmationPage: R,
|
|
314
313
|
places: F,
|
|
315
|
-
hasFilledForm:
|
|
314
|
+
hasFilledForm: q,
|
|
316
315
|
hasForcedPlaceType: M,
|
|
317
316
|
isWaitingForResponse: P,
|
|
318
317
|
isMetaDataAvailable: A
|
|
319
|
-
} = X(
|
|
320
|
-
return
|
|
318
|
+
} = X(re()), { initialize: E, orderGiftCard: D } = re(), { isRecaptchaEnabled: O, currency: K } = X(ue());
|
|
319
|
+
return Pe(l, () => {
|
|
321
320
|
k.value = void 0;
|
|
322
|
-
}),
|
|
323
|
-
const
|
|
324
|
-
E(
|
|
325
|
-
}), (
|
|
326
|
-
default:
|
|
327
|
-
(p(),
|
|
328
|
-
default:
|
|
329
|
-
n(
|
|
321
|
+
}), we(() => {
|
|
322
|
+
const I = t.placeType ? parseInt(t.placeType) : void 0;
|
|
323
|
+
E(I);
|
|
324
|
+
}), (I, i) => (p(), G(Me, { styling: s.value }, {
|
|
325
|
+
default: B(() => [
|
|
326
|
+
(p(), G(Te, null, {
|
|
327
|
+
default: B(() => [
|
|
328
|
+
n(Re, {
|
|
330
329
|
id: "konnectio-gift-card-module",
|
|
331
330
|
type: "gift-card",
|
|
332
|
-
"access-token":
|
|
333
|
-
"data-layout":
|
|
331
|
+
"access-token": I.accessToken,
|
|
332
|
+
"data-layout": I.layout
|
|
334
333
|
}, {
|
|
335
|
-
default:
|
|
334
|
+
default: B(() => [
|
|
336
335
|
e(A) ? (p(), b("div", aa, [
|
|
337
336
|
d("h2", la, [
|
|
338
|
-
d("span", null,
|
|
337
|
+
d("span", null, ie(e(o)("giftCard.title")), 1)
|
|
339
338
|
]),
|
|
340
339
|
d("div", ta, [
|
|
341
340
|
W(d("div", oa, [
|
|
@@ -350,14 +349,14 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
350
349
|
}, null, 8, ia),
|
|
351
350
|
d("form", null, [
|
|
352
351
|
e(M) ? T("", !0) : (p(), b("div", na, [
|
|
353
|
-
e(F) ? (p(), b("div",
|
|
354
|
-
d("label",
|
|
355
|
-
d("span", null,
|
|
352
|
+
e(F) ? (p(), b("div", sa, [
|
|
353
|
+
d("label", ra, [
|
|
354
|
+
d("span", null, ie(e(o)("giftCard.selectType")), 1)
|
|
356
355
|
]),
|
|
357
356
|
d("div", da, [
|
|
358
357
|
d("ul", null, [
|
|
359
|
-
(p(!0), b(
|
|
360
|
-
n(
|
|
358
|
+
(p(!0), b(Se, null, Ue(e(F), (a, U) => (p(), b("li", { key: U }, [
|
|
359
|
+
n(se, {
|
|
361
360
|
modelValue: e(l),
|
|
362
361
|
"onUpdate:modelValue": i[0] || (i[0] = (w) => C(l) ? l.value = w : null),
|
|
363
362
|
type: "radio",
|
|
@@ -367,7 +366,7 @@ 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(l)] && e(F)[e(l)].data.length > 1 ? (p(),
|
|
369
|
+
e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (p(), G($e, {
|
|
371
370
|
key: 0,
|
|
372
371
|
modelValue: e(k),
|
|
373
372
|
"onUpdate:modelValue": i[1] || (i[1] = (a) => C(k) ? k.value = a : null),
|
|
@@ -378,11 +377,11 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
378
377
|
required: ""
|
|
379
378
|
}, null, 8, ["modelValue", "placeholder", "options"])) : T("", !0)
|
|
380
379
|
])
|
|
381
|
-
])) : (p(),
|
|
380
|
+
])) : (p(), G(ne, { key: 1 }))
|
|
382
381
|
])),
|
|
383
382
|
n(H, {
|
|
384
|
-
modelValue: e(
|
|
385
|
-
"onUpdate:modelValue": i[2] || (i[2] = (a) => C(
|
|
383
|
+
modelValue: e(r),
|
|
384
|
+
"onUpdate:modelValue": i[2] || (i[2] = (a) => C(r) ? r.value = a : null),
|
|
386
385
|
type: "text",
|
|
387
386
|
name: "name",
|
|
388
387
|
autocomplete: "name",
|
|
@@ -402,7 +401,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
402
401
|
placeholder: e(o)("giftCard.emailPlaceholder"),
|
|
403
402
|
required: ""
|
|
404
403
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
405
|
-
n(
|
|
404
|
+
n(Be, {
|
|
406
405
|
modelValue: e(f),
|
|
407
406
|
"onUpdate:modelValue": i[4] || (i[4] = (a) => C(f) ? f.value = a : null),
|
|
408
407
|
icon: "phone-office",
|
|
@@ -421,7 +420,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
421
420
|
suffix: e(K),
|
|
422
421
|
required: ""
|
|
423
422
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
424
|
-
n(
|
|
423
|
+
n(se, {
|
|
425
424
|
modelValue: e(g),
|
|
426
425
|
"onUpdate:modelValue": i[6] || (i[6] = (a) => C(g) ? g.value = a : null),
|
|
427
426
|
type: "checkbox",
|
|
@@ -430,7 +429,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
430
429
|
checked: e(g)
|
|
431
430
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
432
431
|
T("", !0),
|
|
433
|
-
n(
|
|
432
|
+
n(Ee, {
|
|
434
433
|
modelValue: e(S),
|
|
435
434
|
"onUpdate:modelValue": i[8] || (i[8] = (a) => C(S) ? S.value = a : null),
|
|
436
435
|
label: e(o)("giftCard.quantity"),
|
|
@@ -446,18 +445,18 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
446
445
|
innerHTML: e(o)("giftCard.thankYou")
|
|
447
446
|
}, null, 8, ua)
|
|
448
447
|
], 512), [
|
|
449
|
-
[j, e(
|
|
448
|
+
[j, e(R)]
|
|
450
449
|
])
|
|
451
450
|
]),
|
|
452
|
-
|
|
451
|
+
I.layout !== "minimal" && e(c) ? (p(), b("div", ca, [
|
|
453
452
|
d("div", pa, [
|
|
454
453
|
n(z, {
|
|
455
454
|
label: e(o)("giftCard.orderGiftCard"),
|
|
456
455
|
"full-width": !0,
|
|
457
|
-
disabled: !e(
|
|
456
|
+
disabled: !e(q),
|
|
458
457
|
"is-loading": e(P),
|
|
459
458
|
"onUpdate:isLoading": i[9] || (i[9] = (a) => C(P) ? P.value = a : null),
|
|
460
|
-
onClickEvent: e(
|
|
459
|
+
onClickEvent: e(D)
|
|
461
460
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
|
|
462
461
|
])
|
|
463
462
|
])) : T("", !0),
|
|
@@ -476,11 +475,11 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
476
475
|
n(z, {
|
|
477
476
|
label: e(o)("giftCard.orderGiftCard"),
|
|
478
477
|
"full-width": !0,
|
|
479
|
-
disabled: !e(
|
|
478
|
+
disabled: !e(q),
|
|
480
479
|
"data-test": "orderGiftCard",
|
|
481
480
|
"is-loading": e(P),
|
|
482
481
|
"onUpdate:isLoading": i[11] || (i[11] = (a) => C(P) ? P.value = a : null),
|
|
483
|
-
onClickEvent: e(
|
|
482
|
+
onClickEvent: e(D)
|
|
484
483
|
}, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
|
|
485
484
|
W(d("div", va, [
|
|
486
485
|
n(ze)
|
|
@@ -488,12 +487,12 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
488
487
|
[j, e(O)]
|
|
489
488
|
])
|
|
490
489
|
])) : T("", !0)
|
|
491
|
-
])) : (p(),
|
|
490
|
+
])) : (p(), G(ne, { key: 1 }))
|
|
492
491
|
]),
|
|
493
492
|
_: 1
|
|
494
493
|
}, 8, ["access-token", "data-layout"])
|
|
495
494
|
]),
|
|
496
|
-
fallback:
|
|
495
|
+
fallback: B(() => [
|
|
497
496
|
n(ea)
|
|
498
497
|
]),
|
|
499
498
|
_: 1
|
|
@@ -502,16 +501,16 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
|
|
|
502
501
|
_: 1
|
|
503
502
|
}, 8, ["styling"]));
|
|
504
503
|
}
|
|
505
|
-
}), fe = /* @__PURE__ */ me(ga, [["__scopeId", "data-v-ec9ea15b"]]), ba =
|
|
504
|
+
}), fe = /* @__PURE__ */ me(ga, [["__scopeId", "data-v-ec9ea15b"]]), ba = qe(), N = Ie({ components: { GiftCard: fe } });
|
|
506
505
|
N.use(ba);
|
|
507
|
-
N.use(
|
|
508
|
-
N.use(
|
|
506
|
+
N.use(Ge);
|
|
507
|
+
N.use(Le, { bootstrap: !0 });
|
|
509
508
|
N.mount("#konnectio-gift-card-app");
|
|
510
|
-
const
|
|
509
|
+
const Pa = {
|
|
511
510
|
install: (u) => {
|
|
512
511
|
u.component("GiftCard", fe);
|
|
513
512
|
}
|
|
514
513
|
};
|
|
515
514
|
export {
|
|
516
|
-
|
|
515
|
+
Pa as default
|
|
517
516
|
};
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|