@konnectio/core 4.0.37 → 4.0.39
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-8e5218c5.js → ActionField-60b4ebb2.js} +2 -2
- package/dist/ActionField-60b4ebb2.js.br +0 -0
- package/dist/{ActionField-6712c933.cjs → ActionField-b2dd3217.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-67ce6e6d.js → AvailabilitySkeleton-8f2cb769.js} +5 -5
- package/dist/AvailabilitySkeleton-8f2cb769.js.br +0 -0
- package/dist/{AvailabilitySkeleton-ec96db6b.cjs → AvailabilitySkeleton-dca8b252.cjs} +1 -1
- package/dist/{DateField.vue_vue_type_style_index_0_lang-64a0c44b.js → DateField.vue_vue_type_style_index_0_lang-cabe193e.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-cabe193e.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-0c12cda5.cjs → DateField.vue_vue_type_style_index_0_lang-e4bf6579.cjs} +1 -1
- package/dist/{Field-616b5ab4.cjs → Field-03c61aee.cjs} +1 -1
- package/dist/{Field-0fa0f987.js → Field-19640674.js} +2 -2
- package/dist/Field-19640674.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js → NumberField.vue_vue_type_script_setup_true_lang-ada222c7.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-ada222c7.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.cjs → NumberField.vue_vue_type_script_setup_true_lang-b3e83a4d.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs → SelectField.vue_vue_type_style_index_0_lang-1dc998e0.cjs} +35 -35
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js → SelectField.vue_vue_type_style_index_0_lang-9b78302d.js} +1421 -1418
- package/dist/SelectField.vue_vue_type_style_index_0_lang-9b78302d.js.br +0 -0
- package/dist/{ThankYou-125b27fb.js → ThankYou-18bef897.js} +7 -7
- package/dist/ThankYou-18bef897.js.br +0 -0
- package/dist/{ThankYou-0bb9b8ba.cjs → ThankYou-2313373f.cjs} +2 -2
- package/dist/{_-3a1d4d62.js → _-6e1eca9d.js} +1 -1
- package/dist/{_-f6d1d88b.cjs → _-e6cecc7f.cjs} +1 -1
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +10 -10
- package/dist/availability.js.br +0 -0
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Event.vue.d.ts +1 -1
- package/dist/entries/availability.d.ts +1 -1
- package/dist/{event-bf4c7637.js → event-6e2cdb77.js} +7 -7
- package/dist/event-6e2cdb77.js.br +0 -0
- package/dist/{event-ad6054a0.cjs → event-d848bde5.cjs} +1 -1
- package/dist/event.cjs +1 -1
- package/dist/event.js +9 -9
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +227 -228
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +546 -544
- package/dist/hotel.js.br +0 -0
- package/dist/{index-cc419f8f.js → index-8abf7dfc.js} +1 -1
- package/dist/index-8abf7dfc.js.br +0 -0
- package/dist/{index-f4b84887.cjs → index-9663f159.cjs} +1 -1
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/event.d.ts +3 -3
- package/dist/store/tracking.d.ts +8 -3
- package/dist/store/utilities.d.ts +7 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ActionField-8e5218c5.js.br +0 -0
- package/dist/AvailabilitySkeleton-67ce6e6d.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-64a0c44b.js.br +0 -0
- package/dist/Field-0fa0f987.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js.br +0 -0
- package/dist/ThankYou-125b27fb.js.br +0 -0
- package/dist/event-bf4c7637.js.br +0 -0
- package/dist/index-cc419f8f.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,100 +1,99 @@
|
|
|
1
|
-
import { d as ue,
|
|
2
|
-
import { a as
|
|
3
|
-
import { E as
|
|
4
|
-
import { F as
|
|
1
|
+
import { d as ue, u as ce, s as Q, c as ne, r as h, ae as P, e as Y, f as C, j as ee, S as J, h as pe, i as fe, af as me, k as X, D as se, b as ve, m as r, n as x, w as H, A as n, v as f, p as i, q as e, C as A, x as y, y as re, I as ge, _ as de, a1 as he, o as ye, ag as be, F as ae, ah as L, ai as W, T as j, G as k, a2 as _e, a3 as ke, B as Ce, a4 as le, M as Ve, N as Fe, U as Pe, a8 as Se, R as we, V as Te, a9 as $e } from "./SelectField.vue_vue_type_style_index_0_lang-9b78302d.js";
|
|
2
|
+
import { a as Ue, P as Re, C as te, _ as qe, S as Ee } from "./index-8abf7dfc.js";
|
|
3
|
+
import { E as Ge } from "./_-6e1eca9d.js";
|
|
4
|
+
import { F as D } from "./Field-19640674.js";
|
|
5
5
|
import "./_commonjsHelpers-aeeeeb92.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const { pay: T } = ce(), { bearerToken: l, metaData: F } = Q(ne()), d = b(w.InitialState), g = Y("konnectio_name", "", void 0, { serializer: J.string }), P = Y("konnectio_email", "", void 0, { serializer: J.string }), c = Y("konnectio_phone", "", void 0, { serializer: J.string }), m = b(""), R = b(1), M = b(!0), k = b(""), p = b({
|
|
6
|
+
const oe = ue("giftCard", () => {
|
|
7
|
+
const { pay: T } = ce(), { bearerToken: l, metaData: S, currencyId: $ } = Q(ne()), s = h(P.InitialState), V = Y("konnectio_name", "", void 0, { serializer: J.string }), c = Y("konnectio_email", "", void 0, { serializer: J.string }), p = Y("konnectio_phone", "", void 0, { serializer: J.string }), U = h(""), I = h(1), b = h(!0), m = h(""), v = h({
|
|
9
8
|
base64: "",
|
|
10
9
|
type: "",
|
|
11
10
|
name: ""
|
|
12
|
-
}),
|
|
13
|
-
const
|
|
11
|
+
}), t = h(void 0), d = h(0), u = h(!1), w = h(0), q = C(() => s.value === P.InitialState || s.value === P.WaitingForResponse), g = C(() => s.value === P.ReadyToPay), M = C(() => s.value === P.PaymentSuccess), B = C(() => {
|
|
12
|
+
const a = {
|
|
14
13
|
1: {
|
|
15
|
-
label:
|
|
14
|
+
label: ee.t("giftCard.hotelType"),
|
|
16
15
|
data: []
|
|
17
16
|
},
|
|
18
17
|
2: {
|
|
19
|
-
label:
|
|
18
|
+
label: ee.t("giftCard.restaurantType"),
|
|
20
19
|
data: []
|
|
21
20
|
}
|
|
22
|
-
},
|
|
23
|
-
return
|
|
24
|
-
|
|
21
|
+
}, F = S.value.places;
|
|
22
|
+
return F && F.forEach((_) => {
|
|
23
|
+
a[_.placeType].data.push(_);
|
|
25
24
|
}), Object.fromEntries(
|
|
26
|
-
Object.entries(
|
|
25
|
+
Object.entries(a).filter(([, _]) => _.data.length > 0)
|
|
27
26
|
);
|
|
28
|
-
}),
|
|
29
|
-
let
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
else if (
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
String(
|
|
27
|
+
}), z = C(() => w.value !== 0), R = C(() => {
|
|
28
|
+
let a;
|
|
29
|
+
if (z.value)
|
|
30
|
+
a = B.value[w.value].data[0];
|
|
31
|
+
else if (d.value !== 0) {
|
|
32
|
+
const F = t.value, _ = B.value[d.value].data;
|
|
33
|
+
_.length === 1 ? a = _[0] : F !== void 0 && _.forEach((Z) => {
|
|
34
|
+
String(Z.id) === String(F) && (a = Z);
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
|
-
return
|
|
39
|
-
}), O =
|
|
40
|
-
async function
|
|
41
|
-
|
|
37
|
+
return a;
|
|
38
|
+
}), O = C(() => !(!V.value || !c.value || !(p.value.length >= 5) || !U.value || R.value === void 0)), N = C(() => !(s.value === P.InitialState && u.value)), E = C(() => !!(s.value === P.WaitingForResponse && u.value));
|
|
39
|
+
async function o() {
|
|
40
|
+
s.value = P.WaitingForResponse, u.value = !0, await pe.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
42
41
|
termsOfserviceURL: "https://freshbooking.dk",
|
|
43
42
|
checkoutUrl: "https://freshbooking.dk",
|
|
44
|
-
currencyID:
|
|
43
|
+
currencyID: $.value,
|
|
45
44
|
language: fe(),
|
|
46
|
-
amount:
|
|
47
|
-
quantity:
|
|
48
|
-
freeText:
|
|
49
|
-
showPrice:
|
|
50
|
-
contactName:
|
|
51
|
-
contactEmail:
|
|
52
|
-
contactPhone:
|
|
53
|
-
imageBase64: me(
|
|
54
|
-
imageName:
|
|
55
|
-
imageFormat:
|
|
56
|
-
placeType:
|
|
57
|
-
placeID:
|
|
45
|
+
amount: U.value,
|
|
46
|
+
quantity: I.value,
|
|
47
|
+
freeText: m.value,
|
|
48
|
+
showPrice: b.value,
|
|
49
|
+
contactName: V.value,
|
|
50
|
+
contactEmail: c.value,
|
|
51
|
+
contactPhone: p.value,
|
|
52
|
+
imageBase64: me(v.value.base64),
|
|
53
|
+
imageName: v.value.name,
|
|
54
|
+
imageFormat: v.value.type,
|
|
55
|
+
placeType: R.value ? R.value.placeType : void 0,
|
|
56
|
+
placeID: R.value ? R.value.id : void 0
|
|
58
57
|
}, {
|
|
59
58
|
headers: {
|
|
60
59
|
Authorization: l.value,
|
|
61
60
|
Accept: "application/json",
|
|
62
|
-
"Fresh-Booking-Ver": "4.0.
|
|
61
|
+
"Fresh-Booking-Ver": "4.0.39"
|
|
63
62
|
}
|
|
64
|
-
}).then((
|
|
65
|
-
|
|
63
|
+
}).then((a) => {
|
|
64
|
+
s.value = P.ReadyToPay, u.value = !1, T({
|
|
66
65
|
callback: () => console.log("Callback!"),
|
|
67
|
-
response:
|
|
66
|
+
response: a.data
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
69
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
70
|
+
function K(a) {
|
|
71
|
+
a && (w.value = a);
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
|
-
moduleState:
|
|
76
|
-
name:
|
|
77
|
-
email:
|
|
78
|
-
phone:
|
|
79
|
-
value:
|
|
80
|
-
remark:
|
|
81
|
-
showValue:
|
|
82
|
-
quantity:
|
|
83
|
-
media:
|
|
84
|
-
placeId:
|
|
85
|
-
placeType:
|
|
74
|
+
moduleState: s,
|
|
75
|
+
name: V,
|
|
76
|
+
email: c,
|
|
77
|
+
phone: p,
|
|
78
|
+
value: U,
|
|
79
|
+
remark: m,
|
|
80
|
+
showValue: b,
|
|
81
|
+
quantity: I,
|
|
82
|
+
media: v,
|
|
83
|
+
placeId: t,
|
|
84
|
+
placeType: d,
|
|
86
85
|
showFormPage: q,
|
|
87
|
-
showPaymentPage:
|
|
88
|
-
showConfirmationPage:
|
|
89
|
-
places:
|
|
86
|
+
showPaymentPage: g,
|
|
87
|
+
showConfirmationPage: M,
|
|
88
|
+
places: B,
|
|
90
89
|
hasFilledForm: O,
|
|
91
|
-
hasForcedPlaceType:
|
|
92
|
-
isWaitingForResponse:
|
|
93
|
-
isMetaDataAvailable:
|
|
94
|
-
orderGiftCard:
|
|
95
|
-
initialize:
|
|
90
|
+
hasForcedPlaceType: z,
|
|
91
|
+
isWaitingForResponse: E,
|
|
92
|
+
isMetaDataAvailable: N,
|
|
93
|
+
orderGiftCard: o,
|
|
94
|
+
initialize: K
|
|
96
95
|
};
|
|
97
|
-
}),
|
|
96
|
+
}), Ie = { class: "media-selector" }, Me = ["accept"], Be = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, De = { key: 0 }, xe = { key: 1 }, Ae = { key: 2 }, ze = ["src"], Ne = /* @__PURE__ */ X({
|
|
98
97
|
__name: "MediaSelector",
|
|
99
98
|
props: {
|
|
100
99
|
modelValue: {},
|
|
@@ -105,44 +104,44 @@ const te = ue("giftCard", () => {
|
|
|
105
104
|
},
|
|
106
105
|
emits: ["update:modelValue"],
|
|
107
106
|
setup(T, { emit: l }) {
|
|
108
|
-
const
|
|
109
|
-
function
|
|
110
|
-
|
|
107
|
+
const S = l, $ = T, { t: s } = se(), { display: V } = ve(), c = h(), p = C(() => $.modelValue.base64 !== "");
|
|
108
|
+
function U(t) {
|
|
109
|
+
S("update:modelValue", t);
|
|
111
110
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
111
|
+
function I() {
|
|
112
|
+
U({
|
|
114
113
|
base64: "",
|
|
115
114
|
name: "",
|
|
116
115
|
type: ""
|
|
117
116
|
}), c.value && (c.value.value = "");
|
|
118
117
|
}
|
|
119
|
-
function
|
|
118
|
+
function b() {
|
|
120
119
|
c.value && c.value.click();
|
|
121
120
|
}
|
|
122
|
-
function
|
|
123
|
-
const [u,
|
|
124
|
-
|
|
125
|
-
if (
|
|
126
|
-
const
|
|
127
|
-
|
|
121
|
+
function m(t, d) {
|
|
122
|
+
const [u, w] = [t.name, t.type], q = new FileReader();
|
|
123
|
+
q.onload = function(g) {
|
|
124
|
+
if (g.target) {
|
|
125
|
+
const M = g.target.result;
|
|
126
|
+
d({ base64: M, name: u, type: w });
|
|
128
127
|
} else
|
|
129
|
-
|
|
130
|
-
message:
|
|
128
|
+
V({
|
|
129
|
+
message: s("imageUploadError"),
|
|
131
130
|
type: "error"
|
|
132
131
|
});
|
|
133
|
-
},
|
|
132
|
+
}, q.readAsDataURL(t);
|
|
134
133
|
}
|
|
135
|
-
async function
|
|
134
|
+
async function v() {
|
|
136
135
|
let t;
|
|
137
|
-
(t = c.value.files) instanceof FileList &&
|
|
136
|
+
(t = c.value.files) instanceof FileList && m(t[0], U);
|
|
138
137
|
}
|
|
139
|
-
return (t,
|
|
138
|
+
return (t, d) => (r(), x(ge, {
|
|
140
139
|
label: t.label,
|
|
141
140
|
required: t.required,
|
|
142
141
|
type: "media"
|
|
143
142
|
}, {
|
|
144
143
|
default: H(() => [
|
|
145
|
-
n("div",
|
|
144
|
+
n("div", Ie, [
|
|
146
145
|
n("input", {
|
|
147
146
|
ref_key: "fileInput",
|
|
148
147
|
ref: c,
|
|
@@ -150,48 +149,48 @@ const te = ue("giftCard", () => {
|
|
|
150
149
|
class: "hidden",
|
|
151
150
|
accept: t.validation,
|
|
152
151
|
single: "",
|
|
153
|
-
onChange:
|
|
154
|
-
}, null, 40,
|
|
155
|
-
n("div",
|
|
156
|
-
n("ul",
|
|
157
|
-
|
|
158
|
-
i(
|
|
159
|
-
label: e(
|
|
152
|
+
onChange: d[0] || (d[0] = (u) => v())
|
|
153
|
+
}, null, 40, Me),
|
|
154
|
+
n("div", Be, [
|
|
155
|
+
n("ul", Le, [
|
|
156
|
+
p.value ? y("", !0) : (r(), f("li", De, [
|
|
157
|
+
i(A, {
|
|
158
|
+
label: e(s)("uploadFile"),
|
|
160
159
|
type: "button",
|
|
161
160
|
icon: "upload",
|
|
162
161
|
"icon-color": t.iconColor,
|
|
163
|
-
onClickEvent:
|
|
162
|
+
onClickEvent: d[1] || (d[1] = (u) => b())
|
|
164
163
|
}, null, 8, ["label", "icon-color"])
|
|
165
164
|
])),
|
|
166
|
-
|
|
167
|
-
i(
|
|
168
|
-
label: e(
|
|
165
|
+
p.value ? (r(), f("li", xe, [
|
|
166
|
+
i(A, {
|
|
167
|
+
label: e(s)("replaceFile"),
|
|
169
168
|
type: "button",
|
|
170
169
|
icon: "repeat-alt",
|
|
171
170
|
"icon-color": t.iconColor,
|
|
172
|
-
onClickEvent:
|
|
171
|
+
onClickEvent: d[2] || (d[2] = (u) => b())
|
|
173
172
|
}, null, 8, ["label", "icon-color"])
|
|
174
|
-
])) :
|
|
175
|
-
|
|
176
|
-
i(
|
|
177
|
-
label: e(
|
|
173
|
+
])) : y("", !0),
|
|
174
|
+
p.value ? (r(), f("li", Ae, [
|
|
175
|
+
i(A, {
|
|
176
|
+
label: e(s)("removeFile"),
|
|
178
177
|
type: "button",
|
|
179
178
|
icon: "trash-alt",
|
|
180
179
|
"icon-color": t.iconColor,
|
|
181
|
-
onClickEvent:
|
|
180
|
+
onClickEvent: d[3] || (d[3] = (u) => I())
|
|
182
181
|
}, null, 8, ["label", "icon-color"])
|
|
183
|
-
])) :
|
|
182
|
+
])) : y("", !0)
|
|
184
183
|
]),
|
|
185
184
|
n("div", {
|
|
186
185
|
class: re([
|
|
187
186
|
"media-selector-previewer",
|
|
188
|
-
{ opened:
|
|
187
|
+
{ opened: p.value }
|
|
189
188
|
])
|
|
190
189
|
}, [
|
|
191
|
-
t.modelValue ? (
|
|
190
|
+
t.modelValue ? (r(), f("img", {
|
|
192
191
|
key: 0,
|
|
193
192
|
src: t.modelValue.base64
|
|
194
|
-
}, null, 8,
|
|
193
|
+
}, null, 8, ze)) : y("", !0)
|
|
195
194
|
], 2)
|
|
196
195
|
])
|
|
197
196
|
])
|
|
@@ -200,7 +199,7 @@ const te = ue("giftCard", () => {
|
|
|
200
199
|
}, 8, ["label", "required"]));
|
|
201
200
|
}
|
|
202
201
|
});
|
|
203
|
-
function
|
|
202
|
+
function ie(T) {
|
|
204
203
|
const l = T;
|
|
205
204
|
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
206
205
|
locale: "",
|
|
@@ -220,41 +219,41 @@ function oe(T) {
|
|
|
220
219
|
}
|
|
221
220
|
});
|
|
222
221
|
}
|
|
223
|
-
typeof
|
|
224
|
-
const
|
|
222
|
+
typeof ie == "function" && ie(Ne);
|
|
223
|
+
const We = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ X({
|
|
225
224
|
__name: "GiftCardSkeleton",
|
|
226
225
|
setup(T) {
|
|
227
|
-
return (l,
|
|
228
|
-
n("div",
|
|
229
|
-
i(
|
|
230
|
-
i(
|
|
231
|
-
i(
|
|
232
|
-
i(
|
|
233
|
-
i(
|
|
234
|
-
i(
|
|
226
|
+
return (l, S) => (r(), f("div", We, [
|
|
227
|
+
n("div", je, [
|
|
228
|
+
i(D),
|
|
229
|
+
i(D),
|
|
230
|
+
i(D),
|
|
231
|
+
i(D),
|
|
232
|
+
i(D, { "is-text-area": "" }),
|
|
233
|
+
i(Ge, { height: "44px" })
|
|
235
234
|
])
|
|
236
235
|
]));
|
|
237
236
|
}
|
|
238
237
|
});
|
|
239
|
-
const
|
|
238
|
+
const Oe = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
240
239
|
key: 0,
|
|
241
240
|
id: "fresh-booking-gift-card-wrapper"
|
|
242
|
-
},
|
|
241
|
+
}, Ye = { id: "fresh-booking-gift-card-title" }, Je = { id: "fresh-booking-gift-card-content" }, Qe = { id: "fresh-booking-gift-card-payment" }, Xe = ["innerHTML"], Ze = { key: 0 }, ea = {
|
|
243
242
|
key: 0,
|
|
244
243
|
id: "fresh-booking-select-place-type"
|
|
245
|
-
},
|
|
244
|
+
}, aa = {
|
|
246
245
|
class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
|
|
247
|
-
},
|
|
246
|
+
}, la = { id: "fresh-booking-select-place-type-input" }, ta = ["innerHTML"], oa = {
|
|
248
247
|
key: 0,
|
|
249
248
|
id: "fresh-booking-gift-card-order"
|
|
250
|
-
},
|
|
249
|
+
}, ia = { class: "fresh-booking-panel" }, na = {
|
|
251
250
|
key: 1,
|
|
252
251
|
id: "fresh-booking-gift-card-remarks"
|
|
253
|
-
},
|
|
252
|
+
}, sa = {
|
|
254
253
|
key: 2,
|
|
255
254
|
id: "fresh-booking-gift-card-order-minimal",
|
|
256
255
|
"sticky-side": "bottom"
|
|
257
|
-
},
|
|
256
|
+
}, ra = { id: "fresh-booking-gift-card-recaptcha" }, da = /* @__PURE__ */ X({
|
|
258
257
|
name: "GiftCardLayout",
|
|
259
258
|
__name: "GiftCard",
|
|
260
259
|
props: {
|
|
@@ -265,64 +264,64 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
265
264
|
},
|
|
266
265
|
setup(T) {
|
|
267
266
|
const { t: l } = se(), {
|
|
268
|
-
name:
|
|
269
|
-
email:
|
|
270
|
-
phone:
|
|
271
|
-
value:
|
|
267
|
+
name: S,
|
|
268
|
+
email: $,
|
|
269
|
+
phone: s,
|
|
270
|
+
value: V,
|
|
272
271
|
remark: c,
|
|
273
|
-
showValue:
|
|
274
|
-
quantity:
|
|
275
|
-
media:
|
|
276
|
-
placeId:
|
|
277
|
-
placeType:
|
|
278
|
-
showFormPage:
|
|
272
|
+
showValue: p,
|
|
273
|
+
quantity: U,
|
|
274
|
+
media: I,
|
|
275
|
+
placeId: b,
|
|
276
|
+
placeType: m,
|
|
277
|
+
showFormPage: v,
|
|
279
278
|
showPaymentPage: t,
|
|
280
|
-
showConfirmationPage:
|
|
279
|
+
showConfirmationPage: d,
|
|
281
280
|
places: u,
|
|
282
|
-
hasFilledForm:
|
|
283
|
-
hasForcedPlaceType:
|
|
284
|
-
isWaitingForResponse:
|
|
285
|
-
isMetaDataAvailable:
|
|
286
|
-
} = Q(
|
|
287
|
-
async function
|
|
288
|
-
await
|
|
281
|
+
hasFilledForm: w,
|
|
282
|
+
hasForcedPlaceType: q,
|
|
283
|
+
isWaitingForResponse: g,
|
|
284
|
+
isMetaDataAvailable: M
|
|
285
|
+
} = Q(oe()), { initialize: B, orderGiftCard: z } = oe(), { isRecaptchaEnabled: R, currency: O } = Q(ne());
|
|
286
|
+
async function N() {
|
|
287
|
+
await z();
|
|
289
288
|
}
|
|
290
|
-
return
|
|
291
|
-
|
|
292
|
-
}),
|
|
293
|
-
|
|
294
|
-
}), (
|
|
295
|
-
const
|
|
296
|
-
return
|
|
289
|
+
return he(m, () => {
|
|
290
|
+
b.value = void 0;
|
|
291
|
+
}), ye(() => {
|
|
292
|
+
B();
|
|
293
|
+
}), (E, o) => {
|
|
294
|
+
const K = be("sticky");
|
|
295
|
+
return r(), x(Fe, null, {
|
|
297
296
|
default: H(() => [
|
|
298
|
-
i(
|
|
297
|
+
i(Ve, {
|
|
299
298
|
id: "fresh-booking-gift-card-module",
|
|
300
299
|
type: "gift-card",
|
|
301
|
-
"access-token":
|
|
302
|
-
"data-layout":
|
|
303
|
-
styling:
|
|
300
|
+
"access-token": E.accessToken,
|
|
301
|
+
"data-layout": E.layout,
|
|
302
|
+
styling: E.styling,
|
|
304
303
|
"sticky-container": ""
|
|
305
304
|
}, {
|
|
306
305
|
default: H(() => [
|
|
307
|
-
e(
|
|
308
|
-
n("h4",
|
|
309
|
-
n("span", null,
|
|
306
|
+
e(M) ? (r(), f("div", Ke, [
|
|
307
|
+
n("h4", Ye, [
|
|
308
|
+
n("span", null, ae(e(l)("giftCard.title")), 1)
|
|
310
309
|
]),
|
|
311
|
-
n("div",
|
|
312
|
-
|
|
313
|
-
i(
|
|
310
|
+
n("div", Je, [
|
|
311
|
+
L(n("div", Qe, [
|
|
312
|
+
i(Ue)
|
|
314
313
|
], 512), [
|
|
315
314
|
[W, e(t)]
|
|
316
315
|
]),
|
|
317
|
-
|
|
316
|
+
L(n("div", null, [
|
|
318
317
|
n("p", {
|
|
319
318
|
id: "fresh-booking-gift-card-description",
|
|
320
319
|
innerHTML: e(l)("giftCard.description")
|
|
321
|
-
}, null, 8,
|
|
320
|
+
}, null, 8, Xe),
|
|
322
321
|
n("form", null, [
|
|
323
322
|
i(j, {
|
|
324
|
-
modelValue: e(
|
|
325
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) =>
|
|
323
|
+
modelValue: e(S),
|
|
324
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => k(S) ? S.value = a : null),
|
|
326
325
|
type: "text",
|
|
327
326
|
name: "name",
|
|
328
327
|
autocomplete: "name",
|
|
@@ -332,8 +331,8 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
332
331
|
required: ""
|
|
333
332
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
334
333
|
i(j, {
|
|
335
|
-
modelValue: e(
|
|
336
|
-
"onUpdate:modelValue": o[1] || (o[1] = (a) =>
|
|
334
|
+
modelValue: e($),
|
|
335
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => k($) ? $.value = a : null),
|
|
337
336
|
type: "email",
|
|
338
337
|
name: "email",
|
|
339
338
|
autocomplete: "email",
|
|
@@ -342,136 +341,136 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
342
341
|
placeholder: e(l)("giftCard.emailPlaceholder"),
|
|
343
342
|
required: ""
|
|
344
343
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
345
|
-
i(
|
|
346
|
-
modelValue: e(
|
|
347
|
-
"onUpdate:modelValue": o[2] || (o[2] = (a) =>
|
|
344
|
+
i(Re, {
|
|
345
|
+
modelValue: e(s),
|
|
346
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => k(s) ? s.value = a : null),
|
|
348
347
|
icon: "phone-office",
|
|
349
348
|
label: e(l)("giftCard.phone"),
|
|
350
349
|
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
351
350
|
required: ""
|
|
352
351
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
353
|
-
e(
|
|
354
|
-
e(u) ? (
|
|
355
|
-
n("label",
|
|
356
|
-
n("span", null,
|
|
352
|
+
e(q) ? y("", !0) : (r(), f("div", Ze, [
|
|
353
|
+
e(u) ? (r(), f("div", ea, [
|
|
354
|
+
n("label", aa, [
|
|
355
|
+
n("span", null, ae(e(l)("giftCard.selectType")), 1)
|
|
357
356
|
]),
|
|
358
|
-
n("div",
|
|
357
|
+
n("div", la, [
|
|
359
358
|
n("ul", null, [
|
|
360
|
-
(
|
|
361
|
-
i(
|
|
362
|
-
modelValue: e(
|
|
363
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
359
|
+
(r(!0), f(_e, null, ke(e(u), (a, F) => (r(), f("li", { key: F }, [
|
|
360
|
+
i(te, {
|
|
361
|
+
modelValue: e(m),
|
|
362
|
+
"onUpdate:modelValue": o[3] || (o[3] = (_) => k(m) ? m.value = _ : null),
|
|
364
363
|
type: "radio",
|
|
365
364
|
name: "placeType",
|
|
366
|
-
val:
|
|
365
|
+
val: F,
|
|
367
366
|
label: a.label
|
|
368
367
|
}, null, 8, ["modelValue", "val", "label"])
|
|
369
368
|
]))), 128))
|
|
370
369
|
]),
|
|
371
|
-
e(u)[e(
|
|
370
|
+
e(u)[e(m)] && e(u)[e(m)].data.length > 1 ? (r(), x(Ce, {
|
|
372
371
|
key: 0,
|
|
373
|
-
modelValue: e(
|
|
374
|
-
"onUpdate:modelValue": o[4] || (o[4] = (a) =>
|
|
372
|
+
modelValue: e(b),
|
|
373
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => k(b) ? b.value = a : null),
|
|
375
374
|
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
376
|
-
options: e(u)[e(
|
|
375
|
+
options: e(u)[e(m)].data,
|
|
377
376
|
labelKey: "name",
|
|
378
377
|
valueKey: "id",
|
|
379
378
|
required: ""
|
|
380
|
-
}, null, 8, ["modelValue", "placeholder", "options"])) :
|
|
379
|
+
}, null, 8, ["modelValue", "placeholder", "options"])) : y("", !0)
|
|
381
380
|
])
|
|
382
|
-
])) : (
|
|
381
|
+
])) : (r(), x(le, { key: 1 }))
|
|
383
382
|
])),
|
|
384
383
|
i(j, {
|
|
385
|
-
modelValue: e(
|
|
386
|
-
"onUpdate:modelValue": o[5] || (o[5] = (a) =>
|
|
384
|
+
modelValue: e(V),
|
|
385
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => k(V) ? V.value = a : null),
|
|
387
386
|
type: "number",
|
|
388
387
|
name: "value",
|
|
389
388
|
label: e(l)("giftCard.value"),
|
|
390
389
|
icon: "money-bill",
|
|
391
390
|
placeholder: e(l)("giftCard.valuePlaceholder"),
|
|
392
|
-
suffix: e(
|
|
391
|
+
suffix: e(O),
|
|
393
392
|
required: ""
|
|
394
393
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
395
|
-
i(
|
|
396
|
-
modelValue: e(
|
|
397
|
-
"onUpdate:modelValue": o[6] || (o[6] = (a) =>
|
|
394
|
+
i(te, {
|
|
395
|
+
modelValue: e(p),
|
|
396
|
+
"onUpdate:modelValue": o[6] || (o[6] = (a) => k(p) ? p.value = a : null),
|
|
398
397
|
type: "checkbox",
|
|
399
398
|
name: "showValue",
|
|
400
399
|
label: e(l)("giftCard.showValue"),
|
|
401
|
-
checked: e(
|
|
400
|
+
checked: e(p)
|
|
402
401
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
y("", !0),
|
|
403
|
+
y("", !0)
|
|
405
404
|
])
|
|
406
405
|
], 512), [
|
|
407
|
-
[W, e(
|
|
406
|
+
[W, e(v)]
|
|
408
407
|
]),
|
|
409
|
-
|
|
408
|
+
L(n("div", null, [
|
|
410
409
|
n("div", {
|
|
411
410
|
innerHTML: e(l)("giftCard.thankYou")
|
|
412
|
-
}, null, 8,
|
|
411
|
+
}, null, 8, ta)
|
|
413
412
|
], 512), [
|
|
414
|
-
[W, e(
|
|
413
|
+
[W, e(d)]
|
|
415
414
|
])
|
|
416
415
|
]),
|
|
417
|
-
|
|
418
|
-
n("div",
|
|
419
|
-
i(
|
|
416
|
+
E.layout !== "minimal" && e(v) ? (r(), f("div", oa, [
|
|
417
|
+
n("div", ia, [
|
|
418
|
+
i(A, {
|
|
420
419
|
label: e(l)("giftCard.orderGiftCard"),
|
|
421
420
|
"full-width": !0,
|
|
422
|
-
disabled: !e(
|
|
423
|
-
"is-loading": e(
|
|
424
|
-
"onUpdate:isLoading": o[9] || (o[9] = (a) =>
|
|
425
|
-
onClickEvent:
|
|
421
|
+
disabled: !e(w),
|
|
422
|
+
"is-loading": e(g),
|
|
423
|
+
"onUpdate:isLoading": o[9] || (o[9] = (a) => k(g) ? g.value = a : null),
|
|
424
|
+
onClickEvent: N
|
|
426
425
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
427
426
|
])
|
|
428
|
-
])) :
|
|
429
|
-
e(
|
|
427
|
+
])) : y("", !0),
|
|
428
|
+
e(v) ? (r(), f("div", na, [
|
|
430
429
|
i(j, {
|
|
431
430
|
modelValue: e(c),
|
|
432
|
-
"onUpdate:modelValue": o[10] || (o[10] = (a) =>
|
|
431
|
+
"onUpdate:modelValue": o[10] || (o[10] = (a) => k(c) ? c.value = a : null),
|
|
433
432
|
type: "textarea",
|
|
434
433
|
name: "remark",
|
|
435
434
|
label: e(l)("giftCard.remark"),
|
|
436
435
|
icon: "info-circle",
|
|
437
436
|
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
438
437
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
439
|
-
])) :
|
|
440
|
-
e(
|
|
441
|
-
i(
|
|
438
|
+
])) : y("", !0),
|
|
439
|
+
e(v) ? L((r(), f("div", sa, [
|
|
440
|
+
i(A, {
|
|
442
441
|
label: e(l)("giftCard.orderGiftCard"),
|
|
443
442
|
"full-width": !0,
|
|
444
|
-
disabled: !e(
|
|
443
|
+
disabled: !e(w),
|
|
445
444
|
"data-test": "orderGiftCard",
|
|
446
|
-
"is-loading": e(
|
|
447
|
-
"onUpdate:isLoading": o[11] || (o[11] = (a) =>
|
|
448
|
-
onClickEvent:
|
|
445
|
+
"is-loading": e(g),
|
|
446
|
+
"onUpdate:isLoading": o[11] || (o[11] = (a) => k(g) ? g.value = a : null),
|
|
447
|
+
onClickEvent: N
|
|
449
448
|
}, null, 8, ["label", "disabled", "is-loading"]),
|
|
450
|
-
|
|
451
|
-
i(
|
|
449
|
+
L(n("div", ra, [
|
|
450
|
+
i(qe)
|
|
452
451
|
], 512), [
|
|
453
|
-
[W, e(
|
|
452
|
+
[W, e(R)]
|
|
454
453
|
])
|
|
455
454
|
])), [
|
|
456
|
-
[
|
|
457
|
-
]) :
|
|
458
|
-
])) : (
|
|
455
|
+
[K]
|
|
456
|
+
]) : y("", !0)
|
|
457
|
+
])) : (r(), x(le, { key: 1 }))
|
|
459
458
|
]),
|
|
460
459
|
_: 1
|
|
461
460
|
}, 8, ["access-token", "data-layout", "styling"])
|
|
462
461
|
]),
|
|
463
462
|
fallback: H(() => [
|
|
464
|
-
i(
|
|
463
|
+
i(Oe)
|
|
465
464
|
]),
|
|
466
465
|
_: 1
|
|
467
466
|
});
|
|
468
467
|
};
|
|
469
468
|
}
|
|
470
469
|
});
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
470
|
+
const ua = /* @__PURE__ */ de(da, [["__scopeId", "data-v-e4aa1e4c"]]), ca = Pe(), pa = Se(), G = we({ components: { GiftCard: ua } });
|
|
471
|
+
G.use(ca);
|
|
472
|
+
G.use(Te);
|
|
473
|
+
G.use(pa);
|
|
474
|
+
G.use(Ee);
|
|
475
|
+
G.use($e, { bootstrap: !0 });
|
|
476
|
+
G.mount("#konnectio-gift-card-app");
|