@konnectio/core 4.0.15 → 4.0.17
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-3184bffd.cjs +1 -0
- package/dist/ActionField-82ef422e.js +164 -0
- package/dist/ActionField-82ef422e.js.br +0 -0
- package/dist/AvailabilitySkeleton-528d40ef.cjs +1 -0
- package/dist/AvailabilitySkeleton-ec092c09.js +203 -0
- package/dist/AvailabilitySkeleton-ec092c09.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-5692c5b2.cjs +5 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js +8873 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js.br +0 -0
- package/dist/{Field-2fb37b34.js → Field-7137ef85.js} +12 -11
- package/dist/Field-7137ef85.js.br +0 -0
- package/dist/Field-b1690485.cjs +1 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-8c28c1dd.cjs +1 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js +194 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js +19741 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs +850 -0
- package/dist/{ThankYou-a44a3589.js → ThankYou-433bd249.js} +429 -428
- package/dist/ThankYou-433bd249.js.br +0 -0
- package/dist/ThankYou-817b93d0.cjs +54 -0
- package/dist/{_-6e32ea4d.js → _-048b5217.js} +17 -16
- package/dist/_-048b5217.js.br +0 -0
- package/dist/_-120d9090.cjs +1 -0
- package/dist/_commonjsHelpers-10dfc225.js +8 -0
- package/dist/_commonjsHelpers-87b0abe8.cjs +1 -0
- package/dist/applyGiftCard-45cf782e.js +54 -0
- package/dist/applyGiftCard-45cf782e.js.br +0 -0
- package/dist/applyGiftCard-f1b620cc.cjs +1 -0
- package/dist/availability.cjs +2 -2
- package/dist/availability.d.ts +2 -0
- package/dist/availability.js +70 -61
- package/dist/availability.js.br +0 -0
- package/dist/components/Clickable.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.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/skeletons/HotelSkeleton.vue.d.ts +1 -1
- package/dist/entries/availability.d.ts +5 -1
- package/dist/{event-a09daadc.js → event-3ef40faf.js} +30 -29
- package/dist/event-3ef40faf.js.br +0 -0
- package/dist/event-d531df9d.cjs +1 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +236 -235
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +55 -54
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +188 -187
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1399 -1414
- package/dist/hotel.js.br +0 -0
- package/dist/{index-84c4adc0.js → index-36d9ed45.js} +16 -15
- package/dist/index-36d9ed45.js.br +0 -0
- package/dist/index-8309eba2.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +7 -4
- package/dist/polyfill.cjs +2 -2
- package/dist/polyfill.js +2 -2
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +14 -14
- package/dist/ActionField-bcecb3ad.cjs +0 -1
- package/dist/ActionField-d82454ed.js +0 -101
- package/dist/ActionField-d82454ed.js.br +0 -0
- package/dist/AvailabilitySkeleton-120dbd72.cjs +0 -1
- package/dist/AvailabilitySkeleton-9e34fdd6.js +0 -190
- package/dist/AvailabilitySkeleton-9e34fdd6.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-6f00c90f.cjs +0 -5
- package/dist/DateField.vue_vue_type_style_index_0_lang-a494ebda.js +0 -10010
- package/dist/DateField.vue_vue_type_style_index_0_lang-a494ebda.js.br +0 -0
- package/dist/Field-11498556.cjs +0 -1
- package/dist/Field-2fb37b34.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-21318607.js +0 -116
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-21318607.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-e92e7311.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-354a8ba7.cjs +0 -802
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a75b8f32.js +0 -19520
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a75b8f32.js.br +0 -0
- package/dist/TextField-46d88ef6.js +0 -9271
- package/dist/TextField-46d88ef6.js.br +0 -0
- package/dist/TextField-afd7af9b.cjs +0 -54
- package/dist/ThankYou-a44a3589.js.br +0 -0
- package/dist/ThankYou-e988ffbe.cjs +0 -54
- package/dist/_-0e8547fb.cjs +0 -1
- package/dist/_-6e32ea4d.js.br +0 -0
- package/dist/_commonjsHelpers-6763f629.cjs +0 -1
- package/dist/_commonjsHelpers-c5d32002.js +0 -30
- package/dist/event-a09daadc.js.br +0 -0
- package/dist/event-d85117b3.cjs +0 -1
- package/dist/index-3a59acc2.cjs +0 -1
- package/dist/index-84c4adc0.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { ref as b, computed as F, defineComponent as X, openBlock as d, createBlock as D, withCtx as H, createElementVNode as s, createElementBlock as g, createVNode as r, unref as e, createCommentVNode as k, normalizeClass as ne, watch as ue, onMounted as ce, resolveDirective as pe, Suspense as me, toDisplayString as Z, withDirectives as I, vShow as N, isRef as V, Fragment as fe, renderList as ve, createApp as ge } from "vue";
|
|
2
|
+
import { d as he, u as ie, s as Q, a as re, G as z, b as Y, i as ee, S as J, c as _e, e as ye, y as be, f as se, n as ke, C as x, _ as de, h as Ce, T as j, o as Ve, L as ae, l as Fe, z as Pe, m as Se } from "./SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js";
|
|
3
|
+
import { a as ze, P as we, C as le, _ as Te, S as Ue, i as $e } from "./index-36d9ed45.js";
|
|
4
|
+
import { u as Ee, E as Re } from "./_-048b5217.js";
|
|
5
|
+
import "./NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js";
|
|
6
|
+
import { F as M } from "./Field-7137ef85.js";
|
|
7
|
+
import "./_commonjsHelpers-10dfc225.js";
|
|
8
|
+
const te = he("giftCard", () => {
|
|
9
|
+
ie();
|
|
10
|
+
const { pay: w } = Ee(), { bearerToken: l, metaData: o } = Q(re()), a = b(z.InitialState), h = Y("konnectio_name", "", void 0, { serializer: J.string }), P = Y("konnectio_email", "", void 0, { serializer: J.string }), p = Y("konnectio_phone", "", void 0, { serializer: J.string }), v = b(""), $ = b(1), q = b(!0), C = b(""), m = b({
|
|
10
11
|
base64: "",
|
|
11
12
|
type: "",
|
|
12
13
|
name: ""
|
|
13
|
-
}), S = b(void 0), n = b(0), u = b(!1), c = b(0),
|
|
14
|
+
}), S = b(void 0), n = b(0), u = b(!1), c = b(0), E = F(() => a.value === z.InitialState || a.value === z.WaitingForResponse), R = F(() => a.value === z.ReadyToPay), _ = F(() => a.value === z.PaymentSuccess), T = F(() => {
|
|
14
15
|
const f = {
|
|
15
16
|
1: {
|
|
16
|
-
label:
|
|
17
|
+
label: ee.t("giftCard.hotelType"),
|
|
17
18
|
data: []
|
|
18
19
|
},
|
|
19
20
|
2: {
|
|
20
|
-
label:
|
|
21
|
+
label: ee.t("giftCard.restaurantType"),
|
|
21
22
|
data: []
|
|
22
23
|
}
|
|
23
|
-
},
|
|
24
|
-
return
|
|
25
|
-
f[
|
|
24
|
+
}, t = o.value.places;
|
|
25
|
+
return t && t.forEach((y) => {
|
|
26
|
+
f[y.placeType].data.push(y);
|
|
26
27
|
}), Object.fromEntries(
|
|
27
|
-
Object.entries(f).filter(([,
|
|
28
|
+
Object.entries(f).filter(([, y]) => y.data.length > 0)
|
|
28
29
|
);
|
|
29
|
-
}),
|
|
30
|
+
}), A = F(() => c.value !== 0), U = F(() => {
|
|
30
31
|
let f;
|
|
31
|
-
if (
|
|
32
|
+
if (A.value)
|
|
32
33
|
f = T.value[c.value].data[0];
|
|
33
34
|
else if (n.value !== 0) {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
String(
|
|
35
|
+
const t = S.value, y = T.value[n.value].data;
|
|
36
|
+
y.length === 1 ? f = y[0] : t !== void 0 && y.forEach((W) => {
|
|
37
|
+
String(W.id) === String(t) && (f = W);
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
40
|
return f;
|
|
40
|
-
}),
|
|
41
|
-
async function
|
|
42
|
-
a.value =
|
|
41
|
+
}), O = F(() => !(!h.value || !P.value || !(p.value.length >= 5) || !v.value || U.value === void 0)), K = F(() => !(a.value === z.InitialState && u.value)), B = F(() => !!(a.value === z.WaitingForResponse && u.value));
|
|
42
|
+
async function G() {
|
|
43
|
+
a.value = z.WaitingForResponse, u.value = !0, await _e.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create", {
|
|
43
44
|
termsOfserviceURL: "https://freshbooking.dk",
|
|
44
45
|
checkoutUrl: "https://freshbooking.dk",
|
|
45
46
|
currencyID: o.value.currency.id,
|
|
46
|
-
language:
|
|
47
|
+
language: ye(),
|
|
47
48
|
amount: v.value,
|
|
48
|
-
quantity:
|
|
49
|
+
quantity: $.value,
|
|
49
50
|
freeText: C.value,
|
|
50
|
-
showPrice:
|
|
51
|
+
showPrice: q.value,
|
|
51
52
|
contactName: h.value,
|
|
52
53
|
contactEmail: P.value,
|
|
53
54
|
contactPhone: p.value,
|
|
54
|
-
imageBase64:
|
|
55
|
+
imageBase64: be(m.value.base64),
|
|
55
56
|
imageName: m.value.name,
|
|
56
57
|
imageFormat: m.value.type,
|
|
57
|
-
placeType:
|
|
58
|
-
placeID:
|
|
58
|
+
placeType: U.value ? U.value.placeType : void 0,
|
|
59
|
+
placeID: U.value ? U.value.id : void 0
|
|
59
60
|
}, {
|
|
60
61
|
headers: {
|
|
61
|
-
Authorization:
|
|
62
|
+
Authorization: l.value,
|
|
62
63
|
Accept: "application/json",
|
|
63
|
-
"Fresh-Booking-Ver": "4.0.
|
|
64
|
+
"Fresh-Booking-Ver": "4.0.17"
|
|
64
65
|
}
|
|
65
66
|
}).then((f) => {
|
|
66
|
-
a.value =
|
|
67
|
+
a.value = z.ReadyToPay, u.value = !1, w({
|
|
67
68
|
callback: () => console.log("Callback!"),
|
|
68
69
|
response: f.data
|
|
69
70
|
});
|
|
@@ -79,23 +80,23 @@ const te = ue("giftCard", () => {
|
|
|
79
80
|
phone: p,
|
|
80
81
|
value: v,
|
|
81
82
|
remark: C,
|
|
82
|
-
showValue:
|
|
83
|
-
quantity:
|
|
83
|
+
showValue: q,
|
|
84
|
+
quantity: $,
|
|
84
85
|
media: m,
|
|
85
86
|
placeId: S,
|
|
86
87
|
placeType: n,
|
|
87
|
-
showFormPage:
|
|
88
|
+
showFormPage: E,
|
|
88
89
|
showPaymentPage: R,
|
|
89
|
-
showConfirmationPage:
|
|
90
|
+
showConfirmationPage: _,
|
|
90
91
|
places: T,
|
|
91
|
-
hasFilledForm:
|
|
92
|
-
hasForcedPlaceType:
|
|
93
|
-
isWaitingForResponse:
|
|
94
|
-
isMetaDataAvailable:
|
|
95
|
-
orderGiftCard:
|
|
92
|
+
hasFilledForm: O,
|
|
93
|
+
hasForcedPlaceType: A,
|
|
94
|
+
isWaitingForResponse: B,
|
|
95
|
+
isMetaDataAvailable: K,
|
|
96
|
+
orderGiftCard: G,
|
|
96
97
|
initialize: i
|
|
97
98
|
};
|
|
98
|
-
}),
|
|
99
|
+
}), Ge = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Me = { key: 0 }, De = { key: 1 }, xe = { key: 2 }, Ae = ["src"], Be = /* @__PURE__ */ X({
|
|
99
100
|
__name: "MediaSelector",
|
|
100
101
|
props: {
|
|
101
102
|
modelValue: {},
|
|
@@ -105,13 +106,13 @@ const te = ue("giftCard", () => {
|
|
|
105
106
|
required: { type: Boolean, default: !1 }
|
|
106
107
|
},
|
|
107
108
|
emits: ["update:modelValue"],
|
|
108
|
-
setup(
|
|
109
|
-
const o =
|
|
110
|
-
function
|
|
109
|
+
setup(w, { emit: l }) {
|
|
110
|
+
const o = l, a = w, { t: h } = se(), { display: P } = ie(), p = b(), v = F(() => a.modelValue.base64 !== "");
|
|
111
|
+
function $(n) {
|
|
111
112
|
o("update:modelValue", n);
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
114
|
+
function q() {
|
|
115
|
+
$({
|
|
115
116
|
base64: "",
|
|
116
117
|
name: "",
|
|
117
118
|
type: ""
|
|
@@ -121,11 +122,11 @@ const te = ue("giftCard", () => {
|
|
|
121
122
|
p.value && p.value.click();
|
|
122
123
|
}
|
|
123
124
|
function m(n, u) {
|
|
124
|
-
const [c,
|
|
125
|
-
R.onload = function(
|
|
126
|
-
if (
|
|
127
|
-
const T =
|
|
128
|
-
u({ base64: T, name: c, type:
|
|
125
|
+
const [c, E] = [n.name, n.type], R = new FileReader();
|
|
126
|
+
R.onload = function(_) {
|
|
127
|
+
if (_.target) {
|
|
128
|
+
const T = _.target.result;
|
|
129
|
+
u({ base64: T, name: c, type: E });
|
|
129
130
|
} else
|
|
130
131
|
P({
|
|
131
132
|
message: h("imageUploadError"),
|
|
@@ -135,16 +136,16 @@ const te = ue("giftCard", () => {
|
|
|
135
136
|
}
|
|
136
137
|
async function S() {
|
|
137
138
|
let n;
|
|
138
|
-
(n = p.value.files) instanceof FileList && m(n[0],
|
|
139
|
+
(n = p.value.files) instanceof FileList && m(n[0], $);
|
|
139
140
|
}
|
|
140
|
-
return (n, u) => (d(),
|
|
141
|
+
return (n, u) => (d(), D(ke, {
|
|
141
142
|
label: n.label,
|
|
142
143
|
required: n.required,
|
|
143
144
|
type: "media"
|
|
144
145
|
}, {
|
|
145
146
|
default: H(() => [
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
s("div", Ge, [
|
|
148
|
+
s("input", {
|
|
148
149
|
ref_key: "fileInput",
|
|
149
150
|
ref: p,
|
|
150
151
|
type: "file",
|
|
@@ -152,11 +153,11 @@ const te = ue("giftCard", () => {
|
|
|
152
153
|
accept: n.validation,
|
|
153
154
|
single: "",
|
|
154
155
|
onChange: u[0] || (u[0] = (c) => S())
|
|
155
|
-
}, null, 40,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
v.value ? k("", !0) : (d(), g("li",
|
|
159
|
-
|
|
156
|
+
}, null, 40, Le),
|
|
157
|
+
s("div", qe, [
|
|
158
|
+
s("ul", Ie, [
|
|
159
|
+
v.value ? k("", !0) : (d(), g("li", Me, [
|
|
160
|
+
r(x, {
|
|
160
161
|
label: e(h)("uploadFile"),
|
|
161
162
|
type: "button",
|
|
162
163
|
icon: "upload",
|
|
@@ -164,8 +165,8 @@ const te = ue("giftCard", () => {
|
|
|
164
165
|
onClickEvent: u[1] || (u[1] = (c) => C())
|
|
165
166
|
}, null, 8, ["label", "icon-color"])
|
|
166
167
|
])),
|
|
167
|
-
v.value ? (d(), g("li",
|
|
168
|
-
|
|
168
|
+
v.value ? (d(), g("li", De, [
|
|
169
|
+
r(x, {
|
|
169
170
|
label: e(h)("replaceFile"),
|
|
170
171
|
type: "button",
|
|
171
172
|
icon: "repeat-alt",
|
|
@@ -174,17 +175,17 @@ const te = ue("giftCard", () => {
|
|
|
174
175
|
}, null, 8, ["label", "icon-color"])
|
|
175
176
|
])) : k("", !0),
|
|
176
177
|
v.value ? (d(), g("li", xe, [
|
|
177
|
-
|
|
178
|
+
r(x, {
|
|
178
179
|
label: e(h)("removeFile"),
|
|
179
180
|
type: "button",
|
|
180
181
|
icon: "trash-alt",
|
|
181
182
|
"icon-color": n.iconColor,
|
|
182
|
-
onClickEvent: u[3] || (u[3] = (c) =>
|
|
183
|
+
onClickEvent: u[3] || (u[3] = (c) => q())
|
|
183
184
|
}, null, 8, ["label", "icon-color"])
|
|
184
185
|
])) : k("", !0)
|
|
185
186
|
]),
|
|
186
|
-
|
|
187
|
-
class:
|
|
187
|
+
s("div", {
|
|
188
|
+
class: ne([
|
|
188
189
|
"media-selector-previewer",
|
|
189
190
|
{ opened: v.value }
|
|
190
191
|
])
|
|
@@ -192,7 +193,7 @@ const te = ue("giftCard", () => {
|
|
|
192
193
|
n.modelValue ? (d(), g("img", {
|
|
193
194
|
key: 0,
|
|
194
195
|
src: n.modelValue.base64
|
|
195
|
-
}, null, 8,
|
|
196
|
+
}, null, 8, Ae)) : k("", !0)
|
|
196
197
|
], 2)
|
|
197
198
|
])
|
|
198
199
|
])
|
|
@@ -201,9 +202,9 @@ const te = ue("giftCard", () => {
|
|
|
201
202
|
}, 8, ["label", "required"]));
|
|
202
203
|
}
|
|
203
204
|
});
|
|
204
|
-
function oe(
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
function oe(w) {
|
|
206
|
+
const l = w;
|
|
207
|
+
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
207
208
|
locale: "",
|
|
208
209
|
resource: {
|
|
209
210
|
da: {
|
|
@@ -245,30 +246,30 @@ function oe(z) {
|
|
|
245
246
|
}
|
|
246
247
|
});
|
|
247
248
|
}
|
|
248
|
-
typeof oe == "function" && oe(
|
|
249
|
-
const
|
|
249
|
+
typeof oe == "function" && oe(Be);
|
|
250
|
+
const We = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ X({
|
|
250
251
|
__name: "GiftCardSkeleton",
|
|
251
|
-
setup(
|
|
252
|
-
return (
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
252
|
+
setup(w) {
|
|
253
|
+
return (l, o) => (d(), g("div", We, [
|
|
254
|
+
s("div", Ne, [
|
|
255
|
+
r(M),
|
|
256
|
+
r(M),
|
|
257
|
+
r(M),
|
|
258
|
+
r(M),
|
|
259
|
+
r(M, { "is-text-area": "" }),
|
|
260
|
+
r(Re, { height: "44px" })
|
|
260
261
|
])
|
|
261
262
|
]));
|
|
262
263
|
}
|
|
263
264
|
});
|
|
264
|
-
const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]),
|
|
265
|
+
const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
265
266
|
key: 0,
|
|
266
267
|
id: "fresh-booking-gift-card-wrapper"
|
|
267
|
-
},
|
|
268
|
+
}, 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 = {
|
|
268
269
|
key: 0,
|
|
269
270
|
id: "fresh-booking-select-place-type"
|
|
270
271
|
}, ea = {
|
|
271
|
-
class: /* @__PURE__ */
|
|
272
|
+
class: /* @__PURE__ */ ne(["fresh-booking-label", "required"])
|
|
272
273
|
}, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
|
|
273
274
|
key: 0,
|
|
274
275
|
id: "fresh-booking-gift-card-order"
|
|
@@ -279,7 +280,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
279
280
|
key: 2,
|
|
280
281
|
id: "fresh-booking-gift-card-order-minimal",
|
|
281
282
|
"sticky-side": "bottom"
|
|
282
|
-
},
|
|
283
|
+
}, ra = { id: "fresh-booking-gift-card-recaptcha" }, sa = /* @__PURE__ */ X({
|
|
283
284
|
name: "GiftCardLayout",
|
|
284
285
|
__name: "GiftCard",
|
|
285
286
|
props: {
|
|
@@ -288,215 +289,215 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
|
|
|
288
289
|
placeType: {},
|
|
289
290
|
styling: {}
|
|
290
291
|
},
|
|
291
|
-
setup(
|
|
292
|
-
const { t } = se(), {
|
|
292
|
+
setup(w) {
|
|
293
|
+
const { t: l } = se(), {
|
|
293
294
|
name: o,
|
|
294
295
|
email: a,
|
|
295
296
|
phone: h,
|
|
296
297
|
value: P,
|
|
297
298
|
remark: p,
|
|
298
299
|
showValue: v,
|
|
299
|
-
quantity:
|
|
300
|
-
media:
|
|
300
|
+
quantity: $,
|
|
301
|
+
media: q,
|
|
301
302
|
placeId: C,
|
|
302
303
|
placeType: m,
|
|
303
304
|
showFormPage: S,
|
|
304
305
|
showPaymentPage: n,
|
|
305
306
|
showConfirmationPage: u,
|
|
306
307
|
places: c,
|
|
307
|
-
hasFilledForm:
|
|
308
|
+
hasFilledForm: E,
|
|
308
309
|
hasForcedPlaceType: R,
|
|
309
|
-
isWaitingForResponse:
|
|
310
|
+
isWaitingForResponse: _,
|
|
310
311
|
isMetaDataAvailable: T
|
|
311
|
-
} =
|
|
312
|
-
async function
|
|
313
|
-
await
|
|
312
|
+
} = Q(te()), { initialize: A, orderGiftCard: U } = te(), { isRecaptchaEnabled: O, currency: K } = Q(re());
|
|
313
|
+
async function B() {
|
|
314
|
+
await U();
|
|
314
315
|
}
|
|
315
|
-
return
|
|
316
|
+
return ue(m, () => {
|
|
316
317
|
C.value = void 0;
|
|
317
|
-
}),
|
|
318
|
-
|
|
319
|
-
}), (
|
|
320
|
-
const f =
|
|
321
|
-
return d(),
|
|
318
|
+
}), ce(() => {
|
|
319
|
+
A();
|
|
320
|
+
}), (G, i) => {
|
|
321
|
+
const f = pe("sticky");
|
|
322
|
+
return d(), D(me, null, {
|
|
322
323
|
default: H(() => [
|
|
323
|
-
|
|
324
|
+
r(Ce, {
|
|
324
325
|
id: "fresh-booking-gift-card-module",
|
|
325
326
|
type: "gift-card",
|
|
326
|
-
"access-token":
|
|
327
|
-
"data-layout":
|
|
328
|
-
styling:
|
|
327
|
+
"access-token": G.accessToken,
|
|
328
|
+
"data-layout": G.layout,
|
|
329
|
+
styling: G.styling,
|
|
329
330
|
"sticky-container": ""
|
|
330
331
|
}, {
|
|
331
332
|
default: H(() => [
|
|
332
|
-
e(T) ? (d(), g("div",
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
e(T) ? (d(), g("div", Oe, [
|
|
334
|
+
s("h4", Ke, [
|
|
335
|
+
s("span", null, Z(e(l)("giftCard.title")), 1)
|
|
335
336
|
]),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
s("div", Ye, [
|
|
338
|
+
I(s("div", Je, [
|
|
339
|
+
r(ze)
|
|
339
340
|
], 512), [
|
|
340
|
-
[
|
|
341
|
+
[N, e(n)]
|
|
341
342
|
]),
|
|
342
|
-
|
|
343
|
-
|
|
343
|
+
I(s("div", null, [
|
|
344
|
+
s("p", {
|
|
344
345
|
id: "fresh-booking-gift-card-description",
|
|
345
|
-
innerHTML: e(
|
|
346
|
-
}, null, 8,
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
innerHTML: e(l)("giftCard.description")
|
|
347
|
+
}, null, 8, Qe),
|
|
348
|
+
s("form", null, [
|
|
349
|
+
r(j, {
|
|
349
350
|
modelValue: e(o),
|
|
350
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
351
|
+
"onUpdate:modelValue": i[0] || (i[0] = (t) => V(o) ? o.value = t : null),
|
|
351
352
|
type: "text",
|
|
352
353
|
name: "name",
|
|
353
354
|
autocomplete: "name",
|
|
354
|
-
label: e(
|
|
355
|
+
label: e(l)("giftCard.name"),
|
|
355
356
|
icon: "user-alt",
|
|
356
|
-
placeholder: e(
|
|
357
|
+
placeholder: e(l)("giftCard.namePlaceholder"),
|
|
357
358
|
required: ""
|
|
358
359
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
359
|
-
|
|
360
|
+
r(j, {
|
|
360
361
|
modelValue: e(a),
|
|
361
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
362
|
+
"onUpdate:modelValue": i[1] || (i[1] = (t) => V(a) ? a.value = t : null),
|
|
362
363
|
type: "email",
|
|
363
364
|
name: "email",
|
|
364
365
|
autocomplete: "email",
|
|
365
|
-
label: e(
|
|
366
|
+
label: e(l)("giftCard.email"),
|
|
366
367
|
icon: "at",
|
|
367
|
-
placeholder: e(
|
|
368
|
+
placeholder: e(l)("giftCard.emailPlaceholder"),
|
|
368
369
|
required: ""
|
|
369
370
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
370
|
-
|
|
371
|
+
r(we, {
|
|
371
372
|
modelValue: e(h),
|
|
372
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
373
|
+
"onUpdate:modelValue": i[2] || (i[2] = (t) => V(h) ? h.value = t : null),
|
|
373
374
|
icon: "phone-office",
|
|
374
|
-
label: e(
|
|
375
|
-
placeholder: e(
|
|
375
|
+
label: e(l)("giftCard.phone"),
|
|
376
|
+
placeholder: e(l)("giftCard.phonePlaceholder"),
|
|
376
377
|
required: ""
|
|
377
378
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
378
379
|
e(R) ? k("", !0) : (d(), g("div", Xe, [
|
|
379
380
|
e(c) ? (d(), g("div", Ze, [
|
|
380
|
-
|
|
381
|
-
|
|
381
|
+
s("label", ea, [
|
|
382
|
+
s("span", null, Z(e(l)("giftCard.selectType")), 1)
|
|
382
383
|
]),
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
(d(!0), g(
|
|
386
|
-
|
|
384
|
+
s("div", aa, [
|
|
385
|
+
s("ul", null, [
|
|
386
|
+
(d(!0), g(fe, null, ve(e(c), (t, y) => (d(), g("li", { key: y }, [
|
|
387
|
+
r(le, {
|
|
387
388
|
modelValue: e(m),
|
|
388
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
|
389
|
+
"onUpdate:modelValue": i[3] || (i[3] = (W) => V(m) ? m.value = W : null),
|
|
389
390
|
type: "radio",
|
|
390
391
|
name: "placeType",
|
|
391
|
-
val:
|
|
392
|
-
label:
|
|
392
|
+
val: y,
|
|
393
|
+
label: t.label
|
|
393
394
|
}, null, 8, ["modelValue", "val", "label"])
|
|
394
395
|
]))), 128))
|
|
395
396
|
]),
|
|
396
|
-
e(c)[e(m)] && e(c)[e(m)].data.length > 1 ? (d(),
|
|
397
|
+
e(c)[e(m)] && e(c)[e(m)].data.length > 1 ? (d(), D(Ve, {
|
|
397
398
|
key: 0,
|
|
398
399
|
modelValue: e(C),
|
|
399
|
-
"onUpdate:modelValue": i[4] || (i[4] = (
|
|
400
|
-
placeholder: e(
|
|
400
|
+
"onUpdate:modelValue": i[4] || (i[4] = (t) => V(C) ? C.value = t : null),
|
|
401
|
+
placeholder: e(l)("giftCard.selectPlacePlaceholder"),
|
|
401
402
|
options: e(c)[e(m)].data,
|
|
402
403
|
labelKey: "name",
|
|
403
404
|
valueKey: "id",
|
|
404
405
|
required: ""
|
|
405
406
|
}, null, 8, ["modelValue", "placeholder", "options"])) : k("", !0)
|
|
406
407
|
])
|
|
407
|
-
])) : (d(),
|
|
408
|
+
])) : (d(), D(ae, { key: 1 }))
|
|
408
409
|
])),
|
|
409
|
-
|
|
410
|
+
r(j, {
|
|
410
411
|
modelValue: e(P),
|
|
411
|
-
"onUpdate:modelValue": i[5] || (i[5] = (
|
|
412
|
+
"onUpdate:modelValue": i[5] || (i[5] = (t) => V(P) ? P.value = t : null),
|
|
412
413
|
type: "number",
|
|
413
414
|
name: "value",
|
|
414
|
-
label: e(
|
|
415
|
+
label: e(l)("giftCard.value"),
|
|
415
416
|
icon: "money-bill",
|
|
416
|
-
placeholder: e(
|
|
417
|
-
suffix: e(
|
|
417
|
+
placeholder: e(l)("giftCard.valuePlaceholder"),
|
|
418
|
+
suffix: e(K),
|
|
418
419
|
required: ""
|
|
419
420
|
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
420
|
-
|
|
421
|
+
r(le, {
|
|
421
422
|
modelValue: e(v),
|
|
422
|
-
"onUpdate:modelValue": i[6] || (i[6] = (
|
|
423
|
+
"onUpdate:modelValue": i[6] || (i[6] = (t) => V(v) ? v.value = t : null),
|
|
423
424
|
type: "checkbox",
|
|
424
425
|
name: "showValue",
|
|
425
|
-
label: e(
|
|
426
|
+
label: e(l)("giftCard.showValue"),
|
|
426
427
|
checked: e(v)
|
|
427
428
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
428
429
|
k("", !0),
|
|
429
430
|
k("", !0)
|
|
430
431
|
])
|
|
431
432
|
], 512), [
|
|
432
|
-
[
|
|
433
|
+
[N, e(S)]
|
|
433
434
|
]),
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
innerHTML: e(
|
|
435
|
+
I(s("div", null, [
|
|
436
|
+
s("div", {
|
|
437
|
+
innerHTML: e(l)("giftCard.thankYou")
|
|
437
438
|
}, null, 8, la)
|
|
438
439
|
], 512), [
|
|
439
|
-
[
|
|
440
|
+
[N, e(u)]
|
|
440
441
|
])
|
|
441
442
|
]),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
label: e(
|
|
443
|
+
G.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
|
|
444
|
+
s("div", oa, [
|
|
445
|
+
r(x, {
|
|
446
|
+
label: e(l)("giftCard.orderGiftCard"),
|
|
446
447
|
"full-width": !0,
|
|
447
|
-
disabled: !e(
|
|
448
|
-
"is-loading": e(
|
|
449
|
-
"onUpdate:isLoading": i[9] || (i[9] = (
|
|
450
|
-
onClickEvent:
|
|
448
|
+
disabled: !e(E),
|
|
449
|
+
"is-loading": e(_),
|
|
450
|
+
"onUpdate:isLoading": i[9] || (i[9] = (t) => V(_) ? _.value = t : null),
|
|
451
|
+
onClickEvent: B
|
|
451
452
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
452
453
|
])
|
|
453
454
|
])) : k("", !0),
|
|
454
455
|
e(S) ? (d(), g("div", na, [
|
|
455
|
-
|
|
456
|
+
r(j, {
|
|
456
457
|
modelValue: e(p),
|
|
457
|
-
"onUpdate:modelValue": i[10] || (i[10] = (
|
|
458
|
+
"onUpdate:modelValue": i[10] || (i[10] = (t) => V(p) ? p.value = t : null),
|
|
458
459
|
type: "textarea",
|
|
459
460
|
name: "remark",
|
|
460
|
-
label: e(
|
|
461
|
+
label: e(l)("giftCard.remark"),
|
|
461
462
|
icon: "info-circle",
|
|
462
|
-
placeholder: e(
|
|
463
|
+
placeholder: e(l)("giftCard.remarkPlaceholder")
|
|
463
464
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
464
465
|
])) : k("", !0),
|
|
465
|
-
e(S) ?
|
|
466
|
-
|
|
467
|
-
label: e(
|
|
466
|
+
e(S) ? I((d(), g("div", ia, [
|
|
467
|
+
r(x, {
|
|
468
|
+
label: e(l)("giftCard.orderGiftCard"),
|
|
468
469
|
"full-width": !0,
|
|
469
|
-
disabled: !e(
|
|
470
|
+
disabled: !e(E),
|
|
470
471
|
"data-test": "orderGiftCard",
|
|
471
|
-
"is-loading": e(
|
|
472
|
-
"onUpdate:isLoading": i[11] || (i[11] = (
|
|
473
|
-
onClickEvent:
|
|
472
|
+
"is-loading": e(_),
|
|
473
|
+
"onUpdate:isLoading": i[11] || (i[11] = (t) => V(_) ? _.value = t : null),
|
|
474
|
+
onClickEvent: B
|
|
474
475
|
}, null, 8, ["label", "disabled", "is-loading"]),
|
|
475
|
-
|
|
476
|
-
|
|
476
|
+
I(s("div", ra, [
|
|
477
|
+
r(Te)
|
|
477
478
|
], 512), [
|
|
478
|
-
[
|
|
479
|
+
[N, e(O)]
|
|
479
480
|
])
|
|
480
481
|
])), [
|
|
481
482
|
[f]
|
|
482
483
|
]) : k("", !0)
|
|
483
|
-
])) : (d(),
|
|
484
|
+
])) : (d(), D(ae, { key: 1 }))
|
|
484
485
|
]),
|
|
485
486
|
_: 1
|
|
486
487
|
}, 8, ["access-token", "data-layout", "styling"])
|
|
487
488
|
]),
|
|
488
489
|
fallback: H(() => [
|
|
489
|
-
|
|
490
|
+
r(He)
|
|
490
491
|
]),
|
|
491
492
|
_: 1
|
|
492
493
|
});
|
|
493
494
|
};
|
|
494
495
|
}
|
|
495
496
|
});
|
|
496
|
-
const da = /* @__PURE__ */ de(
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
497
|
+
const da = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Fe(), ca = Pe(), L = ge({ components: { GiftCard: da } });
|
|
498
|
+
L.use(ua);
|
|
499
|
+
L.use(Se);
|
|
500
|
+
L.use(ca);
|
|
501
|
+
L.use(Ue);
|
|
502
|
+
L.use($e, { bootstrap: !1 });
|
|
503
|
+
L.mount("#konnectio-gift-card-app");
|
package/dist/gift-card.js.br
CHANGED
|
Binary file
|