@konnectio/core 4.0.11 → 4.0.13
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-d1266f8b.js → ActionField-54349124.js} +21 -21
- package/dist/ActionField-54349124.js.br +0 -0
- package/dist/ActionField-74fc14cf.cjs +1 -0
- package/dist/AvailabilitySkeleton-34890eb5.cjs +1 -0
- package/dist/AvailabilitySkeleton-f7c1b363.js +189 -0
- package/dist/AvailabilitySkeleton-f7c1b363.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-41b83959.cjs +5 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-3f5993f7.js → DateField.vue_vue_type_style_index_0_lang-c5873e66.js} +2396 -2396
- package/dist/DateField.vue_vue_type_style_index_0_lang-c5873e66.js.br +0 -0
- package/dist/{Field-ea77905a.js → Field-0b82e3dc.js} +2 -2
- package/dist/Field-0b82e3dc.js.br +0 -0
- package/dist/{Field-028d9987.cjs → Field-c8c55b91.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js → NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js} +31 -31
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js → SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js} +10432 -10081
- package/dist/SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js.br +0 -0
- package/dist/TextField-52bc45b8.cjs +54 -0
- package/dist/{TextField-4e7defc6.js → TextField-cbed3348.js} +3464 -3538
- package/dist/TextField-cbed3348.js.br +0 -0
- package/dist/{ThankYou-6fc9044f.js → ThankYou-a6b0d51e.js} +48 -47
- package/dist/ThankYou-a6b0d51e.js.br +0 -0
- package/dist/{ThankYou-2c1ee36b.cjs → ThankYou-d4fae82e.cjs} +2 -2
- package/dist/{_-f5a3364b.js → _-66cf2aa1.js} +5 -5
- package/dist/_-66cf2aa1.js.br +0 -0
- package/dist/{_-82677476.cjs → _-f5fc7dd6.cjs} +1 -1
- package/dist/availability.cjs +2 -2
- package/dist/availability.d.ts +0 -2
- package/dist/availability.js +124 -123
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/entries/availability.d.ts +1 -3
- package/dist/event-f2a6108f.cjs +1 -0
- package/dist/{event-46a84617.js → event-f820ba4b.js} +101 -101
- package/dist/event-f820ba4b.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +146 -146
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +6 -6
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +180 -180
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1381 -1370
- package/dist/hotel.js.br +0 -0
- package/dist/index-2018df9e.cjs +1 -0
- package/dist/{index-a3de1ca3.js → index-b69ec10e.js} +83 -83
- package/dist/index-b69ec10e.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/event.d.ts +1 -1
- package/dist/store/hotel.d.ts +5 -2
- package/dist/store/payment.d.ts +1 -1
- package/dist/store/utilities.d.ts +18 -2
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +8 -9
- package/dist/ActionField-8a007a6c.cjs +0 -1
- package/dist/ActionField-d1266f8b.js.br +0 -0
- package/dist/AvailabilitySkeleton-0e6d048b.js +0 -382
- package/dist/AvailabilitySkeleton-0e6d048b.js.br +0 -0
- package/dist/AvailabilitySkeleton-3ba8c412.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-31a9e5dc.cjs +0 -5
- package/dist/DateField.vue_vue_type_style_index_0_lang-3f5993f7.js.br +0 -0
- package/dist/Field-ea77905a.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-d756efc3.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs +0 -806
- package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js.br +0 -0
- package/dist/TextField-4e7defc6.js.br +0 -0
- package/dist/TextField-641e6fd1.cjs +0 -54
- package/dist/ThankYou-6fc9044f.js.br +0 -0
- package/dist/_-f5a3364b.js.br +0 -0
- package/dist/event-46a84617.js.br +0 -0
- package/dist/event-8738e24d.cjs +0 -1
- package/dist/index-a3de1ca3.js.br +0 -0
- package/dist/index-e81b12be.cjs +0 -1
- package/dist/store/recaptcha.d.ts +0 -1
package/dist/gift-card.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { d as ue, u as ne, s as
|
|
2
|
-
import { a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { T as
|
|
5
|
-
import { F as
|
|
1
|
+
import { d as ue, u as ne, s as Y, a as ie, r as b, aa as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ab as me, h as X, z as re, k as d, l as M, w as H, x as s, q as g, m as r, n as e, C as x, t as k, v as se, I as fe, _ as de, a0 as ve, o as ge, ac as he, A as ee, ad as I, ae as W, B as V, a1 as ye, a2 as _e, y as be, a3 as ae, J as ke, K as Ce, P as Ve, a7 as Fe, N as Pe, Q as Se } from "./SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js";
|
|
2
|
+
import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-b69ec10e.js";
|
|
3
|
+
import { u as qe, E as Re } from "./_-66cf2aa1.js";
|
|
4
|
+
import { T as j } from "./TextField-cbed3348.js";
|
|
5
|
+
import { F as L } from "./Field-0b82e3dc.js";
|
|
6
6
|
import "./_commonjsHelpers-c5d32002.js";
|
|
7
7
|
const te = ue("giftCard", () => {
|
|
8
8
|
ne();
|
|
9
|
-
const { pay: z } =
|
|
9
|
+
const { pay: z } = qe(), { bearerToken: t, metaData: o } = Y(ie()), a = b(w.InitialState), h = J("freshBookingName", "", void 0, { serializer: Q.string }), P = J("freshBookingEmail", "", void 0, { serializer: Q.string }), p = J("freshBookingPhone", "", void 0, { serializer: Q.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,80 +22,80 @@ 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
|
-
}),
|
|
41
|
-
async function
|
|
42
|
-
a.value = w.WaitingForResponse,
|
|
39
|
+
return f;
|
|
40
|
+
}), K = F(() => !(!h.value || !P.value || !(p.value.length >= 5) || !v.value || $.value === void 0)), O = 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("http://localhost:91/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.13"
|
|
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:
|
|
91
|
-
hasFilledForm:
|
|
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
|
+
hasFilledForm: K,
|
|
92
92
|
hasForcedPlaceType: D,
|
|
93
93
|
isWaitingForResponse: A,
|
|
94
|
-
isMetaDataAvailable:
|
|
95
|
-
orderGiftCard:
|
|
94
|
+
isMetaDataAvailable: O,
|
|
95
|
+
orderGiftCard: E,
|
|
96
96
|
initialize: i
|
|
97
97
|
};
|
|
98
|
-
}), Ee = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" },
|
|
98
|
+
}), Ee = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Le = { key: 0 }, Me = { key: 1 }, xe = { key: 2 }, De = ["src"], Ae = /* @__PURE__ */ X({
|
|
99
99
|
__name: "MediaSelector",
|
|
100
100
|
props: {
|
|
101
101
|
modelValue: {},
|
|
@@ -106,80 +106,80 @@ 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 } = re(), { 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
|
-
return (n, u) => (d(),
|
|
140
|
+
return (n, u) => (d(), M(fe, {
|
|
141
141
|
label: n.label,
|
|
142
142
|
required: n.required,
|
|
143
143
|
type: "media"
|
|
144
144
|
}, {
|
|
145
|
-
default:
|
|
145
|
+
default: H(() => [
|
|
146
146
|
s("div", Ee, [
|
|
147
147
|
s("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
156
|
s("div", Ge, [
|
|
157
157
|
s("ul", Ie, [
|
|
158
|
-
v.value ? k("", !0) : (d(),
|
|
158
|
+
v.value ? k("", !0) : (d(), g("li", Le, [
|
|
159
159
|
r(x, {
|
|
160
|
-
label: e(
|
|
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(),
|
|
167
|
+
v.value ? (d(), g("li", Me, [
|
|
168
168
|
r(x, {
|
|
169
|
-
label: e(
|
|
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(),
|
|
176
|
+
v.value ? (d(), g("li", xe, [
|
|
177
177
|
r(x, {
|
|
178
|
-
label: e(
|
|
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
|
]),
|
|
@@ -189,7 +189,7 @@ const te = ue("giftCard", () => {
|
|
|
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)
|
|
@@ -246,25 +246,25 @@ function oe(z) {
|
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
typeof oe == "function" && oe(Ae);
|
|
249
|
-
const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" },
|
|
249
|
+
const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ X({
|
|
250
250
|
__name: "GiftCardSkeleton",
|
|
251
251
|
setup(z) {
|
|
252
|
-
return (t, o) => (d(),
|
|
252
|
+
return (t, o) => (d(), g("div", Ne, [
|
|
253
253
|
s("div", We, [
|
|
254
|
-
r(
|
|
255
|
-
r(
|
|
256
|
-
r(
|
|
257
|
-
r(
|
|
258
|
-
r(
|
|
259
|
-
r(
|
|
254
|
+
r(L),
|
|
255
|
+
r(L),
|
|
256
|
+
r(L),
|
|
257
|
+
r(L),
|
|
258
|
+
r(L, { "is-text-area": "" }),
|
|
259
|
+
r(Re, { height: "44px" })
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
const
|
|
264
|
+
const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
265
265
|
key: 0,
|
|
266
266
|
id: "fresh-booking-gift-card-wrapper"
|
|
267
|
-
},
|
|
267
|
+
}, Oe = { id: "fresh-booking-gift-card-title" }, Je = { id: "fresh-booking-gift-card-content" }, Qe = { id: "fresh-booking-gift-card-payment" }, Ye = ["innerHTML"], Xe = { key: 0 }, Ze = {
|
|
268
268
|
key: 0,
|
|
269
269
|
id: "fresh-booking-select-place-type"
|
|
270
270
|
}, ea = {
|
|
@@ -292,60 +292,60 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
|
292
292
|
const { t } = re(), {
|
|
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:
|
|
311
|
-
} =
|
|
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
|
+
} = Y(te()), { initialize: D, orderGiftCard: $ } = te(), { isRecaptchaEnabled: K, currency: O } = Y(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
|
|
321
|
-
return d(),
|
|
322
|
-
default:
|
|
323
|
-
r(
|
|
319
|
+
}), (E, i) => {
|
|
320
|
+
const f = he("sticky");
|
|
321
|
+
return d(), M(Ce, null, {
|
|
322
|
+
default: H(() => [
|
|
323
|
+
r(ke, {
|
|
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
|
-
default:
|
|
332
|
-
e(
|
|
333
|
-
s("h4",
|
|
331
|
+
default: H(() => [
|
|
332
|
+
e(T) ? (d(), g("div", Ke, [
|
|
333
|
+
s("h4", Oe, [
|
|
334
334
|
s("span", null, ee(e(t)("giftCard.title")), 1)
|
|
335
335
|
]),
|
|
336
336
|
s("div", Je, [
|
|
337
|
-
I(s("div",
|
|
338
|
-
r(
|
|
337
|
+
I(s("div", Qe, [
|
|
338
|
+
r(we)
|
|
339
339
|
], 512), [
|
|
340
|
-
[W, e(
|
|
340
|
+
[W, e(n)]
|
|
341
341
|
]),
|
|
342
342
|
I(s("div", null, [
|
|
343
343
|
s("p", {
|
|
344
344
|
id: "fresh-booking-gift-card-description",
|
|
345
345
|
innerHTML: e(t)("giftCard.description")
|
|
346
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, Ye),
|
|
347
347
|
s("form", null, [
|
|
348
|
-
r(
|
|
348
|
+
r(j, {
|
|
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
|
-
r(
|
|
359
|
+
r(j, {
|
|
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
|
-
r(
|
|
371
|
-
modelValue: e(
|
|
372
|
-
"onUpdate:modelValue": i[2] || (i[2] = (l) => V(
|
|
370
|
+
r(ze, {
|
|
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(
|
|
378
|
+
e(R) ? k("", !0) : (d(), g("div", Xe, [
|
|
379
|
+
e(c) ? (d(), g("div", Ze, [
|
|
380
380
|
s("label", ea, [
|
|
381
381
|
s("span", null, ee(e(t)("giftCard.selectType")), 1)
|
|
382
382
|
]),
|
|
383
383
|
s("div", aa, [
|
|
384
384
|
s("ul", null, [
|
|
385
|
-
(d(!0),
|
|
385
|
+
(d(!0), g(ye, null, _e(e(c), (l, _) => (d(), g("li", { key: _ }, [
|
|
386
386
|
r(le, {
|
|
387
|
-
modelValue: e(
|
|
388
|
-
"onUpdate:modelValue": i[3] || (i[3] = (N) => V(
|
|
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,68 +393,68 @@ 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(), M(be, {
|
|
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: ""
|
|
405
405
|
}, null, 8, ["modelValue", "placeholder", "options"])) : k("", !0)
|
|
406
406
|
])
|
|
407
|
-
])) : (d(),
|
|
407
|
+
])) : (d(), M(ae, { key: 1 }))
|
|
408
408
|
])),
|
|
409
|
-
r(
|
|
410
|
-
modelValue: e(
|
|
411
|
-
"onUpdate:modelValue": i[5] || (i[5] = (l) => V(
|
|
409
|
+
r(j, {
|
|
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"),
|
|
415
415
|
icon: "money-bill",
|
|
416
416
|
placeholder: e(t)("giftCard.valuePlaceholder"),
|
|
417
|
-
suffix: e(
|
|
417
|
+
suffix: e(O),
|
|
418
418
|
required: ""
|
|
419
419
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
420
420
|
r(le, {
|
|
421
|
-
modelValue: e(
|
|
422
|
-
"onUpdate:modelValue": i[6] || (i[6] = (l) => V(
|
|
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
434
|
I(s("div", null, [
|
|
435
435
|
s("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
|
-
|
|
442
|
+
E.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
|
|
443
443
|
s("div", oa, [
|
|
444
444
|
r(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
|
-
r(
|
|
456
|
-
modelValue: e(
|
|
457
|
-
"onUpdate:modelValue": i[10] || (i[10] = (l) => V(
|
|
454
|
+
e(S) ? (d(), g("div", na, [
|
|
455
|
+
r(j, {
|
|
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,41 +462,41 @@ 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(
|
|
465
|
+
e(S) ? I((d(), g("div", ia, [
|
|
466
466
|
r(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
475
|
I(s("div", ra, [
|
|
476
|
-
r(
|
|
476
|
+
r(Te)
|
|
477
477
|
], 512), [
|
|
478
|
-
[W, e(
|
|
478
|
+
[W, e(K)]
|
|
479
479
|
])
|
|
480
480
|
])), [
|
|
481
|
-
[
|
|
481
|
+
[f]
|
|
482
482
|
]) : k("", !0)
|
|
483
|
-
])) : (d(),
|
|
483
|
+
])) : (d(), M(ae, { key: 1 }))
|
|
484
484
|
]),
|
|
485
485
|
_: 1
|
|
486
486
|
}, 8, ["access-token", "data-layout", "styling"])
|
|
487
487
|
]),
|
|
488
|
-
fallback:
|
|
489
|
-
r(
|
|
488
|
+
fallback: H(() => [
|
|
489
|
+
r(He)
|
|
490
490
|
]),
|
|
491
491
|
_: 1
|
|
492
492
|
});
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
|
-
const da = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua =
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
496
|
+
const da = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ve(), ca = Fe(), B = Pe({ components: { GiftCard: da } });
|
|
497
|
+
B.use(ua);
|
|
498
|
+
B.use(Se);
|
|
499
|
+
B.use(ca);
|
|
500
|
+
B.use($e);
|
|
501
|
+
B.use(Ue, { bootstrap: !1 });
|
|
502
|
+
B.mount("#konnectio-gift-card-app");
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|