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