@konnectio/core 4.0.10 → 4.0.12
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-23ce1b2a.cjs +1 -0
- package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
- package/dist/ActionField-311942d2.js.br +0 -0
- package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
- package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
- package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
- package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
- package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
- package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
- package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
- package/dist/Field-ff599d13.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
- package/dist/TextField-6f7e37d9.cjs +54 -0
- package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
- package/dist/TextField-cd93b966.js.br +0 -0
- package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
- package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
- package/dist/ThankYou-c1878478.js.br +0 -0
- package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
- package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
- package/dist/_-8772cf9a.js.br +0 -0
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
- package/dist/event-60e076f2.js.br +0 -0
- package/dist/event-8e90a6e3.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +98 -98
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +4 -4
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +192 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1406 -1395
- package/dist/hotel.js.br +0 -0
- package/dist/index-345407fb.cjs +1 -0
- package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
- package/dist/index-b5d8f4fc.js.br +0 -0
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +3311 -3398
- package/dist/polyfill.js.br +0 -0
- package/dist/store/payment.d.ts +1 -1
- package/package.json +6 -6
- package/dist/ActionField-68f65af4.js.br +0 -0
- package/dist/ActionField-ab9c01ab.cjs +0 -1
- package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
- package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
- package/dist/Field-b76d82cb.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
- package/dist/TextField-528ca68c.cjs +0 -54
- package/dist/TextField-8f6e5ef5.js.br +0 -0
- package/dist/ThankYou-2f3c4efe.js.br +0 -0
- package/dist/_-734c9d50.js.br +0 -0
- package/dist/event-4662e27c.cjs +0 -1
- package/dist/event-e08d0178.js.br +0 -0
- package/dist/index-a46a0876.cjs +0 -1
- package/dist/index-c28f52d1.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { d as ue, u as ne, s as Q, a as ie, r as b, a8 as w, b as J, c as F, i as Z, S as Y, e as ce, f as pe, a9 as me, h as X, y as
|
|
2
|
-
import { a as Se, P as we, C as le, _ as ze, S as Te, i as $e } from "./index-
|
|
3
|
-
import { u as Ue, E as qe } from "./_-
|
|
4
|
-
import { T as H, _ as Re } from "./TextField-
|
|
5
|
-
import { F as M } from "./Field-
|
|
1
|
+
import { d as ue, u as ne, s as Q, a as ie, r as b, a8 as w, b as J, c as F, i as Z, S as Y, e as ce, f as pe, a9 as me, h as X, y as se, k as d, l as L, w as j, x as r, q as g, m as s, n as e, C as x, t as k, v as re, I as fe, _ as de, $ as ve, o as ge, aa as he, z as ee, ab as I, ac as W, A as V, a0 as ye, a1 as _e, a2 as ae, H as be, J as ke, N as Ce, a6 as Ve, M as Fe, P as Pe } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
|
|
2
|
+
import { a as Se, P as we, C as le, _ as ze, S as Te, i as $e } from "./index-b5d8f4fc.js";
|
|
3
|
+
import { u as Ue, E as qe } from "./_-8772cf9a.js";
|
|
4
|
+
import { T as H, _ as Re } from "./TextField-cd93b966.js";
|
|
5
|
+
import { F as M } from "./Field-ff599d13.js";
|
|
6
6
|
import "./_commonjsHelpers-c5d32002.js";
|
|
7
7
|
const te = ue("giftCard", () => {
|
|
8
8
|
ne();
|
|
9
|
-
const { pay: z } = Ue(), { bearerToken: t, metaData: o } = Q(ie()), a = b(w.InitialState),
|
|
9
|
+
const { pay: z } = Ue(), { bearerToken: t, metaData: o } = Q(ie()), a = b(w.InitialState), h = J("freshBookingName", "", void 0, { serializer: Y.string }), P = J("freshBookingEmail", "", void 0, { serializer: Y.string }), p = J("freshBookingPhone", "", void 0, { serializer: Y.string }), v = b(""), U = b(1), G = b(!0), C = b(""), m = b({
|
|
10
10
|
base64: "",
|
|
11
11
|
type: "",
|
|
12
12
|
name: ""
|
|
13
|
-
}),
|
|
14
|
-
const
|
|
13
|
+
}), S = b(void 0), n = b(0), u = b(!1), c = b(0), q = F(() => a.value === w.InitialState || a.value === w.WaitingForResponse), R = F(() => a.value === w.ReadyToPay), y = F(() => a.value === w.PaymentSuccess), T = F(() => {
|
|
14
|
+
const f = {
|
|
15
15
|
1: {
|
|
16
16
|
label: Z.t("giftCard.hotelType"),
|
|
17
17
|
data: []
|
|
@@ -22,77 +22,77 @@ const te = ue("giftCard", () => {
|
|
|
22
22
|
}
|
|
23
23
|
}, l = o.value.places;
|
|
24
24
|
return l && l.forEach((_) => {
|
|
25
|
-
|
|
25
|
+
f[_.placeType].data.push(_);
|
|
26
26
|
}), Object.fromEntries(
|
|
27
|
-
Object.entries(
|
|
27
|
+
Object.entries(f).filter(([, _]) => _.data.length > 0)
|
|
28
28
|
);
|
|
29
|
-
}), D = F(() =>
|
|
30
|
-
let
|
|
29
|
+
}), D = F(() => c.value !== 0), $ = F(() => {
|
|
30
|
+
let f;
|
|
31
31
|
if (D.value)
|
|
32
|
-
|
|
33
|
-
else if (
|
|
34
|
-
const l =
|
|
35
|
-
_.length === 1 ?
|
|
36
|
-
String(N.id) === String(l) && (
|
|
32
|
+
f = T.value[c.value].data[0];
|
|
33
|
+
else if (n.value !== 0) {
|
|
34
|
+
const l = S.value, _ = T.value[n.value].data;
|
|
35
|
+
_.length === 1 ? f = _[0] : l !== void 0 && _.forEach((N) => {
|
|
36
|
+
String(N.id) === String(l) && (f = N);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
return
|
|
40
|
-
}), O = F(() => !(!
|
|
41
|
-
async function
|
|
42
|
-
a.value = w.WaitingForResponse,
|
|
39
|
+
return f;
|
|
40
|
+
}), O = F(() => !(!h.value || !P.value || !(p.value.length >= 5) || !v.value || $.value === void 0)), K = F(() => !(a.value === w.InitialState && u.value)), A = F(() => !!(a.value === w.WaitingForResponse && u.value));
|
|
41
|
+
async function E() {
|
|
42
|
+
a.value = w.WaitingForResponse, u.value = !0, await ce.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
43
43
|
termsOfserviceURL: "https://freshbooking.dk",
|
|
44
44
|
checkoutUrl: "https://freshbooking.dk",
|
|
45
45
|
currencyID: o.value.currency.id,
|
|
46
46
|
language: pe(),
|
|
47
|
-
amount:
|
|
48
|
-
quantity:
|
|
49
|
-
freeText:
|
|
50
|
-
showPrice:
|
|
51
|
-
contactName:
|
|
52
|
-
contactEmail:
|
|
53
|
-
contactPhone:
|
|
54
|
-
imageBase64: me(
|
|
55
|
-
imageName:
|
|
56
|
-
imageFormat:
|
|
47
|
+
amount: v.value,
|
|
48
|
+
quantity: U.value,
|
|
49
|
+
freeText: C.value,
|
|
50
|
+
showPrice: G.value,
|
|
51
|
+
contactName: h.value,
|
|
52
|
+
contactEmail: P.value,
|
|
53
|
+
contactPhone: p.value,
|
|
54
|
+
imageBase64: me(m.value.base64),
|
|
55
|
+
imageName: m.value.name,
|
|
56
|
+
imageFormat: m.value.type,
|
|
57
57
|
placeType: $.value ? $.value.placeType : void 0,
|
|
58
58
|
placeID: $.value ? $.value.id : void 0
|
|
59
59
|
}, {
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: t.value,
|
|
62
62
|
Accept: "application/json",
|
|
63
|
-
"Fresh-Booking-Ver": "4.0.
|
|
63
|
+
"Fresh-Booking-Ver": "4.0.12"
|
|
64
64
|
}
|
|
65
|
-
}).then((
|
|
66
|
-
a.value = w.ReadyToPay,
|
|
65
|
+
}).then((f) => {
|
|
66
|
+
a.value = w.ReadyToPay, u.value = !1, z({
|
|
67
67
|
callback: () => console.log("Callback!"),
|
|
68
|
-
response:
|
|
68
|
+
response: f.data
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function i(
|
|
73
|
-
|
|
72
|
+
function i(f) {
|
|
73
|
+
f && (c.value = f);
|
|
74
74
|
}
|
|
75
75
|
return {
|
|
76
76
|
moduleState: a,
|
|
77
|
-
name:
|
|
78
|
-
email:
|
|
79
|
-
phone:
|
|
80
|
-
value:
|
|
81
|
-
remark:
|
|
82
|
-
showValue:
|
|
83
|
-
quantity:
|
|
84
|
-
media:
|
|
85
|
-
placeId:
|
|
86
|
-
placeType:
|
|
87
|
-
showFormPage:
|
|
88
|
-
showPaymentPage:
|
|
89
|
-
showConfirmationPage:
|
|
90
|
-
places:
|
|
77
|
+
name: h,
|
|
78
|
+
email: P,
|
|
79
|
+
phone: p,
|
|
80
|
+
value: v,
|
|
81
|
+
remark: C,
|
|
82
|
+
showValue: G,
|
|
83
|
+
quantity: U,
|
|
84
|
+
media: m,
|
|
85
|
+
placeId: S,
|
|
86
|
+
placeType: n,
|
|
87
|
+
showFormPage: q,
|
|
88
|
+
showPaymentPage: R,
|
|
89
|
+
showConfirmationPage: y,
|
|
90
|
+
places: T,
|
|
91
91
|
hasFilledForm: O,
|
|
92
92
|
hasForcedPlaceType: D,
|
|
93
93
|
isWaitingForResponse: A,
|
|
94
94
|
isMetaDataAvailable: K,
|
|
95
|
-
orderGiftCard:
|
|
95
|
+
orderGiftCard: E,
|
|
96
96
|
initialize: i
|
|
97
97
|
};
|
|
98
98
|
}), Ee = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Me = { key: 0 }, Le = { key: 1 }, xe = { key: 2 }, De = ["src"], Ae = /* @__PURE__ */ X({
|
|
@@ -106,36 +106,36 @@ const te = ue("giftCard", () => {
|
|
|
106
106
|
},
|
|
107
107
|
emits: ["update:modelValue"],
|
|
108
108
|
setup(z, { emit: t }) {
|
|
109
|
-
const o = z, { t:
|
|
110
|
-
function
|
|
111
|
-
|
|
109
|
+
const o = t, a = z, { t: h } = se(), { display: P } = ne(), p = b(), v = F(() => a.modelValue.base64 !== "");
|
|
110
|
+
function U(n) {
|
|
111
|
+
o("update:modelValue", n);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function G() {
|
|
114
|
+
U({
|
|
115
115
|
base64: "",
|
|
116
116
|
name: "",
|
|
117
117
|
type: ""
|
|
118
|
-
}),
|
|
118
|
+
}), p.value && (p.value.value = "");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
120
|
+
function C() {
|
|
121
|
+
p.value && p.value.click();
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
const [
|
|
125
|
-
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
u({ base64:
|
|
123
|
+
function m(n, u) {
|
|
124
|
+
const [c, q] = [n.name, n.type], R = new FileReader();
|
|
125
|
+
R.onload = function(y) {
|
|
126
|
+
if (y.target) {
|
|
127
|
+
const T = y.target.result;
|
|
128
|
+
u({ base64: T, name: c, type: q });
|
|
129
129
|
} else
|
|
130
130
|
P({
|
|
131
|
-
message:
|
|
131
|
+
message: h("imageUploadError"),
|
|
132
132
|
type: "error"
|
|
133
133
|
});
|
|
134
|
-
},
|
|
134
|
+
}, R.readAsDataURL(n);
|
|
135
135
|
}
|
|
136
|
-
async function
|
|
136
|
+
async function S() {
|
|
137
137
|
let n;
|
|
138
|
-
(n =
|
|
138
|
+
(n = p.value.files) instanceof FileList && m(n[0], U);
|
|
139
139
|
}
|
|
140
140
|
return (n, u) => (d(), L(fe, {
|
|
141
141
|
label: n.label,
|
|
@@ -143,53 +143,53 @@ const te = ue("giftCard", () => {
|
|
|
143
143
|
type: "media"
|
|
144
144
|
}, {
|
|
145
145
|
default: j(() => [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
r("div", Ee, [
|
|
147
|
+
r("input", {
|
|
148
148
|
ref_key: "fileInput",
|
|
149
|
-
ref:
|
|
149
|
+
ref: p,
|
|
150
150
|
type: "file",
|
|
151
151
|
class: "hidden",
|
|
152
152
|
accept: n.validation,
|
|
153
153
|
single: "",
|
|
154
|
-
onChange: u[0] || (u[0] = (
|
|
154
|
+
onChange: u[0] || (u[0] = (c) => S())
|
|
155
155
|
}, null, 40, Be),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
v.value ? k("", !0) : (d(),
|
|
159
|
-
|
|
160
|
-
label: e(
|
|
156
|
+
r("div", Ge, [
|
|
157
|
+
r("ul", Ie, [
|
|
158
|
+
v.value ? k("", !0) : (d(), g("li", Me, [
|
|
159
|
+
s(x, {
|
|
160
|
+
label: e(h)("uploadFile"),
|
|
161
161
|
type: "button",
|
|
162
162
|
icon: "upload",
|
|
163
163
|
"icon-color": n.iconColor,
|
|
164
|
-
onClickEvent: u[1] || (u[1] = (
|
|
164
|
+
onClickEvent: u[1] || (u[1] = (c) => C())
|
|
165
165
|
}, null, 8, ["label", "icon-color"])
|
|
166
166
|
])),
|
|
167
|
-
v.value ? (d(),
|
|
168
|
-
|
|
169
|
-
label: e(
|
|
167
|
+
v.value ? (d(), g("li", Le, [
|
|
168
|
+
s(x, {
|
|
169
|
+
label: e(h)("replaceFile"),
|
|
170
170
|
type: "button",
|
|
171
171
|
icon: "repeat-alt",
|
|
172
172
|
"icon-color": n.iconColor,
|
|
173
|
-
onClickEvent: u[2] || (u[2] = (
|
|
173
|
+
onClickEvent: u[2] || (u[2] = (c) => C())
|
|
174
174
|
}, null, 8, ["label", "icon-color"])
|
|
175
175
|
])) : k("", !0),
|
|
176
|
-
v.value ? (d(),
|
|
177
|
-
|
|
178
|
-
label: e(
|
|
176
|
+
v.value ? (d(), g("li", xe, [
|
|
177
|
+
s(x, {
|
|
178
|
+
label: e(h)("removeFile"),
|
|
179
179
|
type: "button",
|
|
180
180
|
icon: "trash-alt",
|
|
181
181
|
"icon-color": n.iconColor,
|
|
182
|
-
onClickEvent: u[3] || (u[3] = (
|
|
182
|
+
onClickEvent: u[3] || (u[3] = (c) => G())
|
|
183
183
|
}, null, 8, ["label", "icon-color"])
|
|
184
184
|
])) : k("", !0)
|
|
185
185
|
]),
|
|
186
|
-
|
|
187
|
-
class:
|
|
186
|
+
r("div", {
|
|
187
|
+
class: re([
|
|
188
188
|
"media-selector-previewer",
|
|
189
189
|
{ opened: v.value }
|
|
190
190
|
])
|
|
191
191
|
}, [
|
|
192
|
-
n.modelValue ? (d(),
|
|
192
|
+
n.modelValue ? (d(), g("img", {
|
|
193
193
|
key: 0,
|
|
194
194
|
src: n.modelValue.base64
|
|
195
195
|
}, null, 8, De)) : k("", !0)
|
|
@@ -249,14 +249,14 @@ typeof oe == "function" && oe(Ae);
|
|
|
249
249
|
const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ X({
|
|
250
250
|
__name: "GiftCardSkeleton",
|
|
251
251
|
setup(z) {
|
|
252
|
-
return (t, o) => (d(),
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
252
|
+
return (t, o) => (d(), g("div", Ne, [
|
|
253
|
+
r("div", We, [
|
|
254
|
+
s(M),
|
|
255
|
+
s(M),
|
|
256
|
+
s(M),
|
|
257
|
+
s(M),
|
|
258
|
+
s(M, { "is-text-area": "" }),
|
|
259
|
+
s(qe, { height: "44px" })
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
@@ -268,7 +268,7 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
268
268
|
key: 0,
|
|
269
269
|
id: "fresh-booking-select-place-type"
|
|
270
270
|
}, ea = {
|
|
271
|
-
class: /* @__PURE__ */
|
|
271
|
+
class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
|
|
272
272
|
}, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
|
|
273
273
|
key: 0,
|
|
274
274
|
id: "fresh-booking-gift-card-order"
|
|
@@ -279,7 +279,7 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
279
279
|
key: 2,
|
|
280
280
|
id: "fresh-booking-gift-card-order-minimal",
|
|
281
281
|
"sticky-side": "bottom"
|
|
282
|
-
},
|
|
282
|
+
}, sa = { id: "fresh-booking-gift-card-recaptcha" }, ra = /* @__PURE__ */ X({
|
|
283
283
|
name: "GiftCardLayout",
|
|
284
284
|
__name: "GiftCard",
|
|
285
285
|
props: {
|
|
@@ -289,63 +289,63 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
289
289
|
styling: {}
|
|
290
290
|
},
|
|
291
291
|
setup(z) {
|
|
292
|
-
const { t } =
|
|
292
|
+
const { t } = se(), {
|
|
293
293
|
name: o,
|
|
294
294
|
email: a,
|
|
295
|
-
phone:
|
|
296
|
-
value:
|
|
297
|
-
remark:
|
|
298
|
-
showValue:
|
|
299
|
-
quantity:
|
|
300
|
-
media:
|
|
301
|
-
placeId:
|
|
302
|
-
placeType:
|
|
303
|
-
showFormPage:
|
|
304
|
-
showPaymentPage:
|
|
305
|
-
showConfirmationPage:
|
|
306
|
-
places:
|
|
307
|
-
hasFilledForm:
|
|
308
|
-
hasForcedPlaceType:
|
|
309
|
-
isWaitingForResponse:
|
|
310
|
-
isMetaDataAvailable:
|
|
295
|
+
phone: h,
|
|
296
|
+
value: P,
|
|
297
|
+
remark: p,
|
|
298
|
+
showValue: v,
|
|
299
|
+
quantity: U,
|
|
300
|
+
media: G,
|
|
301
|
+
placeId: C,
|
|
302
|
+
placeType: m,
|
|
303
|
+
showFormPage: S,
|
|
304
|
+
showPaymentPage: n,
|
|
305
|
+
showConfirmationPage: u,
|
|
306
|
+
places: c,
|
|
307
|
+
hasFilledForm: q,
|
|
308
|
+
hasForcedPlaceType: R,
|
|
309
|
+
isWaitingForResponse: y,
|
|
310
|
+
isMetaDataAvailable: T
|
|
311
311
|
} = Q(te()), { initialize: D, orderGiftCard: $ } = te(), { isRecaptchaEnabled: O, currency: K } = Q(ie());
|
|
312
312
|
async function A() {
|
|
313
313
|
await $();
|
|
314
314
|
}
|
|
315
|
-
return ve(
|
|
316
|
-
|
|
315
|
+
return ve(m, () => {
|
|
316
|
+
C.value = void 0;
|
|
317
317
|
}), ge(() => {
|
|
318
318
|
D();
|
|
319
|
-
}), (
|
|
320
|
-
const
|
|
319
|
+
}), (E, i) => {
|
|
320
|
+
const f = he("sticky");
|
|
321
321
|
return d(), L(ke, null, {
|
|
322
322
|
default: j(() => [
|
|
323
|
-
|
|
323
|
+
s(be, {
|
|
324
324
|
id: "fresh-booking-gift-card-module",
|
|
325
325
|
type: "gift-card",
|
|
326
|
-
"access-token":
|
|
327
|
-
"data-layout":
|
|
328
|
-
styling:
|
|
326
|
+
"access-token": E.accessToken,
|
|
327
|
+
"data-layout": E.layout,
|
|
328
|
+
styling: E.styling,
|
|
329
329
|
"sticky-container": ""
|
|
330
330
|
}, {
|
|
331
331
|
default: j(() => [
|
|
332
|
-
e(
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
e(T) ? (d(), g("div", Oe, [
|
|
333
|
+
r("h4", Ke, [
|
|
334
|
+
r("span", null, ee(e(t)("giftCard.title")), 1)
|
|
335
335
|
]),
|
|
336
|
-
|
|
337
|
-
I(
|
|
338
|
-
|
|
336
|
+
r("div", Je, [
|
|
337
|
+
I(r("div", Ye, [
|
|
338
|
+
s(Se)
|
|
339
339
|
], 512), [
|
|
340
|
-
[W, e(
|
|
340
|
+
[W, e(n)]
|
|
341
341
|
]),
|
|
342
|
-
I(
|
|
343
|
-
|
|
342
|
+
I(r("div", null, [
|
|
343
|
+
r("p", {
|
|
344
344
|
id: "fresh-booking-gift-card-description",
|
|
345
345
|
innerHTML: e(t)("giftCard.description")
|
|
346
346
|
}, null, 8, Qe),
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
r("form", null, [
|
|
348
|
+
s(H, {
|
|
349
349
|
modelValue: e(o),
|
|
350
350
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => V(o) ? o.value = l : null),
|
|
351
351
|
type: "text",
|
|
@@ -356,7 +356,7 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
356
356
|
placeholder: e(t)("giftCard.namePlaceholder"),
|
|
357
357
|
required: ""
|
|
358
358
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
359
|
-
|
|
359
|
+
s(H, {
|
|
360
360
|
modelValue: e(a),
|
|
361
361
|
"onUpdate:modelValue": i[1] || (i[1] = (l) => V(a) ? a.value = l : null),
|
|
362
362
|
type: "email",
|
|
@@ -367,25 +367,25 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
367
367
|
placeholder: e(t)("giftCard.emailPlaceholder"),
|
|
368
368
|
required: ""
|
|
369
369
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
370
|
-
|
|
371
|
-
modelValue: e(
|
|
372
|
-
"onUpdate:modelValue": i[2] || (i[2] = (l) => V(
|
|
370
|
+
s(we, {
|
|
371
|
+
modelValue: e(h),
|
|
372
|
+
"onUpdate:modelValue": i[2] || (i[2] = (l) => V(h) ? h.value = l : null),
|
|
373
373
|
icon: "phone-office",
|
|
374
374
|
label: e(t)("giftCard.phone"),
|
|
375
375
|
placeholder: e(t)("giftCard.phonePlaceholder"),
|
|
376
376
|
required: ""
|
|
377
377
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
378
|
-
e(
|
|
379
|
-
e(
|
|
380
|
-
|
|
381
|
-
|
|
378
|
+
e(R) ? k("", !0) : (d(), g("div", Xe, [
|
|
379
|
+
e(c) ? (d(), g("div", Ze, [
|
|
380
|
+
r("label", ea, [
|
|
381
|
+
r("span", null, ee(e(t)("giftCard.selectType")), 1)
|
|
382
382
|
]),
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
(d(!0),
|
|
386
|
-
|
|
387
|
-
modelValue: e(
|
|
388
|
-
"onUpdate:modelValue": i[3] || (i[3] = (N) => V(
|
|
383
|
+
r("div", aa, [
|
|
384
|
+
r("ul", null, [
|
|
385
|
+
(d(!0), g(ye, null, _e(e(c), (l, _) => (d(), g("li", { key: _ }, [
|
|
386
|
+
s(le, {
|
|
387
|
+
modelValue: e(m),
|
|
388
|
+
"onUpdate:modelValue": i[3] || (i[3] = (N) => V(m) ? m.value = N : null),
|
|
389
389
|
type: "radio",
|
|
390
390
|
name: "placeType",
|
|
391
391
|
val: _,
|
|
@@ -393,12 +393,12 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
393
393
|
}, null, 8, ["modelValue", "val", "label"])
|
|
394
394
|
]))), 128))
|
|
395
395
|
]),
|
|
396
|
-
e(
|
|
396
|
+
e(c)[e(m)] && e(c)[e(m)].data.length > 1 ? (d(), L(Re, {
|
|
397
397
|
key: 0,
|
|
398
|
-
modelValue: e(
|
|
399
|
-
"onUpdate:modelValue": i[4] || (i[4] = (l) => V(
|
|
398
|
+
modelValue: e(C),
|
|
399
|
+
"onUpdate:modelValue": i[4] || (i[4] = (l) => V(C) ? C.value = l : null),
|
|
400
400
|
placeholder: e(t)("giftCard.selectPlacePlaceholder"),
|
|
401
|
-
options: e(
|
|
401
|
+
options: e(c)[e(m)].data,
|
|
402
402
|
labelKey: "name",
|
|
403
403
|
valueKey: "id",
|
|
404
404
|
required: ""
|
|
@@ -406,9 +406,9 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
406
406
|
])
|
|
407
407
|
])) : (d(), L(ae, { key: 1 }))
|
|
408
408
|
])),
|
|
409
|
-
|
|
410
|
-
modelValue: e(
|
|
411
|
-
"onUpdate:modelValue": i[5] || (i[5] = (l) => V(
|
|
409
|
+
s(H, {
|
|
410
|
+
modelValue: e(P),
|
|
411
|
+
"onUpdate:modelValue": i[5] || (i[5] = (l) => V(P) ? P.value = l : null),
|
|
412
412
|
type: "number",
|
|
413
413
|
name: "value",
|
|
414
414
|
label: e(t)("giftCard.value"),
|
|
@@ -417,44 +417,44 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
417
417
|
suffix: e(K),
|
|
418
418
|
required: ""
|
|
419
419
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
420
|
-
|
|
421
|
-
modelValue: e(
|
|
422
|
-
"onUpdate:modelValue": i[6] || (i[6] = (l) => V(
|
|
420
|
+
s(le, {
|
|
421
|
+
modelValue: e(v),
|
|
422
|
+
"onUpdate:modelValue": i[6] || (i[6] = (l) => V(v) ? v.value = l : null),
|
|
423
423
|
type: "checkbox",
|
|
424
424
|
name: "showValue",
|
|
425
425
|
label: e(t)("giftCard.showValue"),
|
|
426
|
-
checked: e(
|
|
426
|
+
checked: e(v)
|
|
427
427
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
428
428
|
k("", !0),
|
|
429
429
|
k("", !0)
|
|
430
430
|
])
|
|
431
431
|
], 512), [
|
|
432
|
-
[W, e(
|
|
432
|
+
[W, e(S)]
|
|
433
433
|
]),
|
|
434
|
-
I(
|
|
435
|
-
|
|
434
|
+
I(r("div", null, [
|
|
435
|
+
r("div", {
|
|
436
436
|
innerHTML: e(t)("giftCard.thankYou")
|
|
437
437
|
}, null, 8, la)
|
|
438
438
|
], 512), [
|
|
439
|
-
[W, e(
|
|
439
|
+
[W, e(u)]
|
|
440
440
|
])
|
|
441
441
|
]),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
E.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
|
|
443
|
+
r("div", oa, [
|
|
444
|
+
s(x, {
|
|
445
445
|
label: e(t)("giftCard.orderGiftCard"),
|
|
446
446
|
"full-width": !0,
|
|
447
|
-
disabled: !e(
|
|
448
|
-
"is-loading": e(
|
|
449
|
-
"onUpdate:isLoading": i[9] || (i[9] = (l) => V(
|
|
447
|
+
disabled: !e(q),
|
|
448
|
+
"is-loading": e(y),
|
|
449
|
+
"onUpdate:isLoading": i[9] || (i[9] = (l) => V(y) ? y.value = l : null),
|
|
450
450
|
onClickEvent: A
|
|
451
451
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
452
452
|
])
|
|
453
453
|
])) : k("", !0),
|
|
454
|
-
e(
|
|
455
|
-
|
|
456
|
-
modelValue: e(
|
|
457
|
-
"onUpdate:modelValue": i[10] || (i[10] = (l) => V(
|
|
454
|
+
e(S) ? (d(), g("div", na, [
|
|
455
|
+
s(H, {
|
|
456
|
+
modelValue: e(p),
|
|
457
|
+
"onUpdate:modelValue": i[10] || (i[10] = (l) => V(p) ? p.value = l : null),
|
|
458
458
|
type: "textarea",
|
|
459
459
|
name: "remark",
|
|
460
460
|
label: e(t)("giftCard.remark"),
|
|
@@ -462,23 +462,23 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
462
462
|
placeholder: e(t)("giftCard.remarkPlaceholder")
|
|
463
463
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
464
464
|
])) : k("", !0),
|
|
465
|
-
e(
|
|
466
|
-
|
|
465
|
+
e(S) ? I((d(), g("div", ia, [
|
|
466
|
+
s(x, {
|
|
467
467
|
label: e(t)("giftCard.orderGiftCard"),
|
|
468
468
|
"full-width": !0,
|
|
469
|
-
disabled: !e(
|
|
469
|
+
disabled: !e(q),
|
|
470
470
|
"data-test": "orderGiftCard",
|
|
471
|
-
"is-loading": e(
|
|
472
|
-
"onUpdate:isLoading": i[11] || (i[11] = (l) => V(
|
|
471
|
+
"is-loading": e(y),
|
|
472
|
+
"onUpdate:isLoading": i[11] || (i[11] = (l) => V(y) ? y.value = l : null),
|
|
473
473
|
onClickEvent: A
|
|
474
474
|
}, null, 8, ["label", "disabled", "is-loading"]),
|
|
475
|
-
I(
|
|
476
|
-
|
|
475
|
+
I(r("div", sa, [
|
|
476
|
+
s(ze)
|
|
477
477
|
], 512), [
|
|
478
478
|
[W, e(O)]
|
|
479
479
|
])
|
|
480
480
|
])), [
|
|
481
|
-
[
|
|
481
|
+
[f]
|
|
482
482
|
]) : k("", !0)
|
|
483
483
|
])) : (d(), L(ae, { key: 1 }))
|
|
484
484
|
]),
|
|
@@ -486,17 +486,17 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
486
486
|
}, 8, ["access-token", "data-layout", "styling"])
|
|
487
487
|
]),
|
|
488
488
|
fallback: j(() => [
|
|
489
|
-
|
|
489
|
+
s(je)
|
|
490
490
|
]),
|
|
491
491
|
_: 1
|
|
492
492
|
});
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
|
-
const da = /* @__PURE__ */ de(
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
496
|
+
const da = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ce(), ca = Ve(), B = Fe({ components: { GiftCard: da } });
|
|
497
|
+
B.use(ua);
|
|
498
|
+
B.use(Pe);
|
|
499
|
+
B.use(ca);
|
|
500
|
+
B.use(Te);
|
|
501
|
+
B.use($e, { bootstrap: !1 });
|
|
502
|
+
B.mount("#konnectio-gift-card-app");
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|