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