@konnectio/core 4.0.9 → 4.0.11
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-8a007a6c.cjs +1 -0
- package/dist/{ActionField-f3d5b218.js → ActionField-d1266f8b.js} +4 -4
- package/dist/ActionField-d1266f8b.js.br +0 -0
- package/dist/AvailabilitySkeleton-0e6d048b.js +382 -0
- package/dist/AvailabilitySkeleton-0e6d048b.js.br +0 -0
- package/dist/AvailabilitySkeleton-3ba8c412.cjs +1 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-31a9e5dc.cjs +5 -0
- package/dist/{payment-cce506b8.js → DateField.vue_vue_type_style_index_0_lang-3f5993f7.js} +3216 -2953
- package/dist/DateField.vue_vue_type_style_index_0_lang-3f5993f7.js.br +0 -0
- package/dist/Field-028d9987.cjs +1 -0
- package/dist/Field-ea77905a.js +42 -0
- package/dist/Field-ea77905a.js.br +0 -0
- package/dist/{applyGiftCard-dea77ba6.js → NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js} +59 -59
- 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 +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs +806 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js +19169 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js.br +0 -0
- package/dist/{TextField-b8f4462a.js → TextField-4e7defc6.js} +139 -137
- package/dist/TextField-4e7defc6.js.br +0 -0
- package/dist/{TextField-99e69631.cjs → TextField-641e6fd1.cjs} +1 -1
- package/dist/ThankYou-2c1ee36b.cjs +54 -0
- package/dist/ThankYou-6fc9044f.js +11777 -0
- package/dist/ThankYou-6fc9044f.js.br +0 -0
- package/dist/_-82677476.cjs +1 -0
- package/dist/_-f5a3364b.js +82 -0
- package/dist/_-f5a3364b.js.br +0 -0
- package/dist/assets/typescript/mixins.d.ts +1 -4
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +94 -142
- package/dist/availability.js.br +0 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -0
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +1 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/_.vue.d.ts +4 -0
- package/dist/components/forms/_.vue.d.ts.map +1 -0
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Event.vue.d.ts +1 -1
- package/dist/components/listings/{Test.vue.d.ts → Hotel.vue.d.ts} +3 -3
- package/dist/components/listings/Hotel.vue.d.ts.map +1 -0
- package/dist/components/modals/Info.vue.d.ts +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +1 -1
- package/dist/components/skeletons/Field.vue.d.ts +1 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
- package/dist/components/{side-panels/Hotel.vue.d.ts → skeletons/Sidebar.vue.d.ts} +3 -3
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +1 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
- package/dist/components/views/TermsOfService.vue.d.ts +1 -1
- package/dist/components/views/ThankYou.vue.d.ts +1 -1
- package/dist/{event-a9067cf5.js → event-46a84617.js} +43 -43
- package/dist/event-46a84617.js.br +0 -0
- package/dist/event-8738e24d.cjs +1 -0
- package/dist/event.cjs +1 -2
- package/dist/event.js +402 -706
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +72 -126
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +303 -391
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +2215 -2229
- package/dist/hotel.js.br +0 -0
- package/dist/{index-d080b5a0.js → index-a3de1ca3.js} +32 -14
- package/dist/index-a3de1ca3.js.br +0 -0
- package/dist/{index-ec04c269.cjs → index-e81b12be.cjs} +1 -1
- package/dist/layouts/Availability.vue.d.ts +20 -67
- package/dist/layouts/Event.vue.d.ts +16 -242
- package/dist/layouts/GiftCard.vue.d.ts +29 -280
- package/dist/layouts/GiftCardValidation.vue.d.ts +16 -226
- package/dist/layouts/Hotel.vue.d.ts +33 -378
- package/dist/layouts/_.vue.d.ts +31 -20
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +1587 -1576
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +1 -1
- package/dist/store/giftCard.d.ts +3 -3
- package/dist/store/hotel.d.ts +318 -204
- package/dist/store/tracking.d.ts +6 -14
- package/dist/store/utilities.d.ts +87 -81
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +44 -8
- package/package.json +21 -21
- package/dist/ActionField-b87d2fd7.cjs +0 -1
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +0 -150
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +0 -1
- package/dist/Field-21bb32d7.cjs +0 -1
- package/dist/Field-6bfeedce.js +0 -59
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js +0 -17193
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +0 -797
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +0 -66
- package/dist/ThankYou-edbf753b.js +0 -14279
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/applyGiftCard-c21f13ac.cjs +0 -1
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts +0 -5
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +0 -1
- package/dist/components/listings/Test.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -5
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Hotel.vue.d.ts.map +0 -1
- package/dist/event-2c6a2138.cjs +0 -1
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/payment-95b2392a.cjs +0 -2
- package/dist/payment-cce506b8.js.br +0 -0
package/dist/gift-card.js
CHANGED
|
@@ -1,117 +1,101 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { P as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { d as ue, u as ne, s as Q, a as ie, r as b, a8 as w, b as J, c as F, i as Z, S as Y, e as ce, f as pe, a9 as me, h as X, y as re, k as d, l as L, w as j, x as s, q as f, m as r, n as e, C as x, t as k, v as se, I as fe, _ as de, $ as ve, o as ge, aa as he, z as ee, ab as I, ac as W, A as V, a0 as ye, a1 as _e, a2 as ae, H as be, J as ke, N as Ce, a6 as Ve, M as Fe, P as Pe } from "./SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js";
|
|
2
|
+
import { a as Se, P as we, C as le, _ as ze, S as Te, i as $e } from "./index-a3de1ca3.js";
|
|
3
|
+
import { u as Ue, E as qe } from "./_-f5a3364b.js";
|
|
4
|
+
import { T as H, _ as Re } from "./TextField-4e7defc6.js";
|
|
5
|
+
import { F as M } from "./Field-ea77905a.js";
|
|
5
6
|
import "./_commonjsHelpers-c5d32002.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
7
|
+
const te = ue("giftCard", () => {
|
|
8
|
+
ne();
|
|
9
|
+
const { pay: z } = Ue(), { bearerToken: t, metaData: o } = Q(ie()), a = b(w.InitialState), P = J("freshBookingName", "", void 0, { serializer: Y.string }), c = J("freshBookingEmail", "", void 0, { serializer: Y.string }), v = J("freshBookingPhone", "", void 0, { serializer: Y.string }), h = b(""), B = b(1), U = b(!0), S = b(""), p = b({
|
|
8
10
|
base64: "",
|
|
9
11
|
type: "",
|
|
10
12
|
name: ""
|
|
11
|
-
}), n =
|
|
12
|
-
const
|
|
13
|
+
}), n = b(void 0), u = b(0), g = b(!1), y = b(0), T = F(() => a.value === w.InitialState || a.value === w.WaitingForResponse), q = F(() => a.value === w.ReadyToPay), C = F(() => a.value === w.PaymentSuccess), G = F(() => {
|
|
14
|
+
const m = {
|
|
13
15
|
1: {
|
|
14
|
-
label:
|
|
16
|
+
label: Z.t("giftCard.hotelType"),
|
|
15
17
|
data: []
|
|
16
18
|
},
|
|
17
19
|
2: {
|
|
18
|
-
label:
|
|
20
|
+
label: Z.t("giftCard.restaurantType"),
|
|
19
21
|
data: []
|
|
20
22
|
}
|
|
21
|
-
},
|
|
22
|
-
return
|
|
23
|
-
|
|
23
|
+
}, l = o.value.places;
|
|
24
|
+
return l && l.forEach((_) => {
|
|
25
|
+
m[_.placeType].data.push(_);
|
|
24
26
|
}), Object.fromEntries(
|
|
25
|
-
Object.entries(
|
|
27
|
+
Object.entries(m).filter(([, _]) => _.data.length > 0)
|
|
26
28
|
);
|
|
27
|
-
}),
|
|
28
|
-
let
|
|
29
|
-
if (
|
|
30
|
-
|
|
29
|
+
}), D = F(() => y.value !== 0), $ = F(() => {
|
|
30
|
+
let m;
|
|
31
|
+
if (D.value)
|
|
32
|
+
m = G.value[y.value].data[0];
|
|
31
33
|
else if (u.value !== 0) {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
String(
|
|
34
|
+
const l = n.value, _ = G.value[u.value].data;
|
|
35
|
+
_.length === 1 ? m = _[0] : l !== void 0 && _.forEach((N) => {
|
|
36
|
+
String(N.id) === String(l) && (m = N);
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
|
-
return
|
|
38
|
-
}),
|
|
39
|
-
async function
|
|
40
|
-
|
|
39
|
+
return m;
|
|
40
|
+
}), O = F(() => !(!P.value || !c.value || !(v.value.length >= 5) || !h.value || $.value === void 0)), K = F(() => !(a.value === w.InitialState && g.value)), A = F(() => !!(a.value === w.WaitingForResponse && g.value));
|
|
41
|
+
async function R() {
|
|
42
|
+
a.value = w.WaitingForResponse, g.value = !0, await ce.post("https://stage.hotel_service.konnectio.dk/api/gift-card/create", {
|
|
41
43
|
termsOfserviceURL: "https://freshbooking.dk",
|
|
42
44
|
checkoutUrl: "https://freshbooking.dk",
|
|
43
|
-
currencyID:
|
|
44
|
-
language:
|
|
45
|
-
amount:
|
|
46
|
-
quantity:
|
|
47
|
-
freeText:
|
|
48
|
-
showPrice:
|
|
49
|
-
contactName:
|
|
50
|
-
contactEmail:
|
|
51
|
-
contactPhone:
|
|
52
|
-
imageBase64:
|
|
53
|
-
imageName:
|
|
54
|
-
imageFormat:
|
|
55
|
-
placeType:
|
|
56
|
-
placeID:
|
|
45
|
+
currencyID: o.value.currency.id,
|
|
46
|
+
language: pe(),
|
|
47
|
+
amount: h.value,
|
|
48
|
+
quantity: B.value,
|
|
49
|
+
freeText: S.value,
|
|
50
|
+
showPrice: U.value,
|
|
51
|
+
contactName: P.value,
|
|
52
|
+
contactEmail: c.value,
|
|
53
|
+
contactPhone: v.value,
|
|
54
|
+
imageBase64: me(p.value.base64),
|
|
55
|
+
imageName: p.value.name,
|
|
56
|
+
imageFormat: p.value.type,
|
|
57
|
+
placeType: $.value ? $.value.placeType : void 0,
|
|
58
|
+
placeID: $.value ? $.value.id : void 0
|
|
57
59
|
}, {
|
|
58
60
|
headers: {
|
|
59
|
-
Authorization:
|
|
61
|
+
Authorization: t.value,
|
|
60
62
|
Accept: "application/json",
|
|
61
|
-
"Fresh-Booking-Ver": "4.0.
|
|
63
|
+
"Fresh-Booking-Ver": "4.0.11"
|
|
62
64
|
}
|
|
63
|
-
}).then((
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{ html_element: "fresh-booking-gift-card-payment" }
|
|
69
|
-
);
|
|
70
|
-
t.addEventHandler(le.Accept, () => {
|
|
71
|
-
o.value = b.PaymentSuccess, k({
|
|
72
|
-
message: q.t("alert.success.giftCardOrdered"),
|
|
73
|
-
type: "success"
|
|
74
|
-
});
|
|
75
|
-
}), t.addEventHandler(le.Error, () => {
|
|
76
|
-
k({
|
|
77
|
-
message: q.t("booking.other.errorMessage"),
|
|
78
|
-
type: "warning"
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
} else
|
|
82
|
-
o.value = b.InitialState, k({
|
|
83
|
-
message: `${q.t("booking.other.errorMessage")} (HTTP: ${i.status})`,
|
|
84
|
-
type: "warning"
|
|
85
|
-
});
|
|
65
|
+
}).then((m) => {
|
|
66
|
+
a.value = w.ReadyToPay, g.value = !1, z({
|
|
67
|
+
callback: () => console.log("Callback!"),
|
|
68
|
+
response: m.data
|
|
69
|
+
});
|
|
86
70
|
});
|
|
87
71
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
72
|
+
function i(m) {
|
|
73
|
+
m && (y.value = m);
|
|
90
74
|
}
|
|
91
75
|
return {
|
|
92
|
-
moduleState:
|
|
93
|
-
name:
|
|
94
|
-
email:
|
|
95
|
-
phone:
|
|
96
|
-
value:
|
|
97
|
-
remark:
|
|
98
|
-
showValue:
|
|
99
|
-
quantity:
|
|
100
|
-
media:
|
|
76
|
+
moduleState: a,
|
|
77
|
+
name: P,
|
|
78
|
+
email: c,
|
|
79
|
+
phone: v,
|
|
80
|
+
value: h,
|
|
81
|
+
remark: S,
|
|
82
|
+
showValue: U,
|
|
83
|
+
quantity: B,
|
|
84
|
+
media: p,
|
|
101
85
|
placeId: n,
|
|
102
86
|
placeType: u,
|
|
103
|
-
showFormPage:
|
|
104
|
-
showPaymentPage:
|
|
105
|
-
showConfirmationPage:
|
|
106
|
-
places:
|
|
107
|
-
hasFilledForm:
|
|
108
|
-
hasForcedPlaceType:
|
|
109
|
-
isWaitingForResponse:
|
|
110
|
-
isMetaDataAvailable:
|
|
111
|
-
orderGiftCard:
|
|
112
|
-
initialize:
|
|
87
|
+
showFormPage: T,
|
|
88
|
+
showPaymentPage: q,
|
|
89
|
+
showConfirmationPage: C,
|
|
90
|
+
places: G,
|
|
91
|
+
hasFilledForm: O,
|
|
92
|
+
hasForcedPlaceType: D,
|
|
93
|
+
isWaitingForResponse: A,
|
|
94
|
+
isMetaDataAvailable: K,
|
|
95
|
+
orderGiftCard: R,
|
|
96
|
+
initialize: i
|
|
113
97
|
};
|
|
114
|
-
}),
|
|
98
|
+
}), Ee = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Me = { key: 0 }, Le = { key: 1 }, xe = { key: 2 }, De = ["src"], Ae = /* @__PURE__ */ X({
|
|
115
99
|
__name: "MediaSelector",
|
|
116
100
|
props: {
|
|
117
101
|
modelValue: {},
|
|
@@ -121,94 +105,94 @@ const re = me("giftCard", () => {
|
|
|
121
105
|
required: { type: Boolean, default: !1 }
|
|
122
106
|
},
|
|
123
107
|
emits: ["update:modelValue"],
|
|
124
|
-
setup(
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
|
|
108
|
+
setup(z, { emit: t }) {
|
|
109
|
+
const o = z, { t: a } = re(), { display: P } = ne(), c = b(), v = F(() => o.modelValue.base64 !== "");
|
|
110
|
+
function h(n) {
|
|
111
|
+
t("update:modelValue", n);
|
|
128
112
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
113
|
+
function B() {
|
|
114
|
+
h({
|
|
131
115
|
base64: "",
|
|
132
116
|
name: "",
|
|
133
117
|
type: ""
|
|
134
|
-
}),
|
|
118
|
+
}), c.value && (c.value.value = "");
|
|
135
119
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
120
|
+
function U() {
|
|
121
|
+
c.value && c.value.click();
|
|
138
122
|
}
|
|
139
|
-
function
|
|
140
|
-
const [g,
|
|
141
|
-
|
|
142
|
-
if (
|
|
143
|
-
const
|
|
144
|
-
u({ base64:
|
|
123
|
+
function S(n, u) {
|
|
124
|
+
const [g, y] = [n.name, n.type], T = new FileReader();
|
|
125
|
+
T.onload = function(q) {
|
|
126
|
+
if (q.target) {
|
|
127
|
+
const C = q.target.result;
|
|
128
|
+
u({ base64: C, name: g, type: y });
|
|
145
129
|
} else
|
|
146
|
-
|
|
147
|
-
message:
|
|
130
|
+
P({
|
|
131
|
+
message: a("imageUploadError"),
|
|
148
132
|
type: "error"
|
|
149
133
|
});
|
|
150
|
-
},
|
|
134
|
+
}, T.readAsDataURL(n);
|
|
151
135
|
}
|
|
152
|
-
async function
|
|
136
|
+
async function p() {
|
|
153
137
|
let n;
|
|
154
|
-
(n =
|
|
138
|
+
(n = c.value.files) instanceof FileList && S(n[0], h);
|
|
155
139
|
}
|
|
156
|
-
return (n, u) => (
|
|
140
|
+
return (n, u) => (d(), L(fe, {
|
|
157
141
|
label: n.label,
|
|
158
142
|
required: n.required,
|
|
159
143
|
type: "media"
|
|
160
144
|
}, {
|
|
161
|
-
default:
|
|
162
|
-
s("div",
|
|
145
|
+
default: j(() => [
|
|
146
|
+
s("div", Ee, [
|
|
163
147
|
s("input", {
|
|
164
148
|
ref_key: "fileInput",
|
|
165
|
-
ref:
|
|
149
|
+
ref: c,
|
|
166
150
|
type: "file",
|
|
167
151
|
class: "hidden",
|
|
168
152
|
accept: n.validation,
|
|
169
153
|
single: "",
|
|
170
|
-
onChange: u[0] || (u[0] = (g) =>
|
|
171
|
-
}, null, 40,
|
|
172
|
-
s("div",
|
|
173
|
-
s("ul",
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
label: e(
|
|
154
|
+
onChange: u[0] || (u[0] = (g) => p())
|
|
155
|
+
}, null, 40, Be),
|
|
156
|
+
s("div", Ge, [
|
|
157
|
+
s("ul", Ie, [
|
|
158
|
+
v.value ? k("", !0) : (d(), f("li", Me, [
|
|
159
|
+
r(x, {
|
|
160
|
+
label: e(a)("uploadFile"),
|
|
177
161
|
type: "button",
|
|
178
162
|
icon: "upload",
|
|
179
163
|
"icon-color": n.iconColor,
|
|
180
|
-
onClickEvent: u[1] || (u[1] = (g) =>
|
|
164
|
+
onClickEvent: u[1] || (u[1] = (g) => U())
|
|
181
165
|
}, null, 8, ["label", "icon-color"])
|
|
182
166
|
])),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
label: e(
|
|
167
|
+
v.value ? (d(), f("li", Le, [
|
|
168
|
+
r(x, {
|
|
169
|
+
label: e(a)("replaceFile"),
|
|
186
170
|
type: "button",
|
|
187
171
|
icon: "repeat-alt",
|
|
188
172
|
"icon-color": n.iconColor,
|
|
189
|
-
onClickEvent: u[2] || (u[2] = (g) =>
|
|
173
|
+
onClickEvent: u[2] || (u[2] = (g) => U())
|
|
190
174
|
}, null, 8, ["label", "icon-color"])
|
|
191
|
-
])) :
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
label: e(
|
|
175
|
+
])) : k("", !0),
|
|
176
|
+
v.value ? (d(), f("li", xe, [
|
|
177
|
+
r(x, {
|
|
178
|
+
label: e(a)("removeFile"),
|
|
195
179
|
type: "button",
|
|
196
180
|
icon: "trash-alt",
|
|
197
181
|
"icon-color": n.iconColor,
|
|
198
|
-
onClickEvent: u[3] || (u[3] = (g) =>
|
|
182
|
+
onClickEvent: u[3] || (u[3] = (g) => B())
|
|
199
183
|
}, null, 8, ["label", "icon-color"])
|
|
200
|
-
])) :
|
|
184
|
+
])) : k("", !0)
|
|
201
185
|
]),
|
|
202
186
|
s("div", {
|
|
203
|
-
class:
|
|
187
|
+
class: se([
|
|
204
188
|
"media-selector-previewer",
|
|
205
|
-
{ opened:
|
|
189
|
+
{ opened: v.value }
|
|
206
190
|
])
|
|
207
191
|
}, [
|
|
208
|
-
n.modelValue ? (
|
|
192
|
+
n.modelValue ? (d(), f("img", {
|
|
209
193
|
key: 0,
|
|
210
194
|
src: n.modelValue.base64
|
|
211
|
-
}, null, 8, De)) :
|
|
195
|
+
}, null, 8, De)) : k("", !0)
|
|
212
196
|
], 2)
|
|
213
197
|
])
|
|
214
198
|
])
|
|
@@ -217,374 +201,302 @@ const re = me("giftCard", () => {
|
|
|
217
201
|
}, 8, ["label", "required"]));
|
|
218
202
|
}
|
|
219
203
|
});
|
|
220
|
-
function
|
|
221
|
-
const
|
|
222
|
-
|
|
204
|
+
function oe(z) {
|
|
205
|
+
const t = z;
|
|
206
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
223
207
|
locale: "",
|
|
224
208
|
resource: {
|
|
225
209
|
da: {
|
|
226
|
-
uploadFile: (
|
|
227
|
-
const { normalize:
|
|
228
|
-
return
|
|
210
|
+
uploadFile: (o) => {
|
|
211
|
+
const { normalize: a } = o;
|
|
212
|
+
return a(["Upload billede"]);
|
|
229
213
|
},
|
|
230
|
-
removeFile: (
|
|
231
|
-
const { normalize:
|
|
232
|
-
return
|
|
214
|
+
removeFile: (o) => {
|
|
215
|
+
const { normalize: a } = o;
|
|
216
|
+
return a(["Fjern billede"]);
|
|
233
217
|
},
|
|
234
|
-
replaceFile: (
|
|
235
|
-
const { normalize:
|
|
236
|
-
return
|
|
218
|
+
replaceFile: (o) => {
|
|
219
|
+
const { normalize: a } = o;
|
|
220
|
+
return a(["Ersat billede"]);
|
|
237
221
|
},
|
|
238
|
-
imageUploadError: (
|
|
239
|
-
const { normalize:
|
|
240
|
-
return
|
|
222
|
+
imageUploadError: (o) => {
|
|
223
|
+
const { normalize: a } = o;
|
|
224
|
+
return a(["Der skete en fejl under billede upload!"]);
|
|
241
225
|
}
|
|
242
226
|
},
|
|
243
227
|
en: {
|
|
244
|
-
uploadFile: (
|
|
245
|
-
const { normalize:
|
|
246
|
-
return
|
|
228
|
+
uploadFile: (o) => {
|
|
229
|
+
const { normalize: a } = o;
|
|
230
|
+
return a(["Upload image"]);
|
|
247
231
|
},
|
|
248
|
-
removeFile: (
|
|
249
|
-
const { normalize:
|
|
250
|
-
return
|
|
232
|
+
removeFile: (o) => {
|
|
233
|
+
const { normalize: a } = o;
|
|
234
|
+
return a(["Remove image"]);
|
|
251
235
|
},
|
|
252
|
-
replaceFile: (
|
|
253
|
-
const { normalize:
|
|
254
|
-
return
|
|
236
|
+
replaceFile: (o) => {
|
|
237
|
+
const { normalize: a } = o;
|
|
238
|
+
return a(["Replace image"]);
|
|
255
239
|
},
|
|
256
|
-
imageUploadError: (
|
|
257
|
-
const { normalize:
|
|
258
|
-
return
|
|
240
|
+
imageUploadError: (o) => {
|
|
241
|
+
const { normalize: a } = o;
|
|
242
|
+
return a(["An error occurred under image upload!"]);
|
|
259
243
|
}
|
|
260
244
|
}
|
|
261
245
|
}
|
|
262
246
|
});
|
|
263
247
|
}
|
|
264
|
-
typeof
|
|
265
|
-
const
|
|
248
|
+
typeof oe == "function" && oe(Ae);
|
|
249
|
+
const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ X({
|
|
266
250
|
__name: "GiftCardSkeleton",
|
|
267
|
-
setup(
|
|
268
|
-
return (
|
|
269
|
-
s("div",
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
251
|
+
setup(z) {
|
|
252
|
+
return (t, o) => (d(), f("div", Ne, [
|
|
253
|
+
s("div", We, [
|
|
254
|
+
r(M),
|
|
255
|
+
r(M),
|
|
256
|
+
r(M),
|
|
257
|
+
r(M),
|
|
258
|
+
r(M, { "is-text-area": "" }),
|
|
259
|
+
r(qe, { height: "44px" })
|
|
276
260
|
])
|
|
277
261
|
]));
|
|
278
262
|
}
|
|
279
263
|
});
|
|
280
|
-
const
|
|
264
|
+
const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
|
|
281
265
|
key: 0,
|
|
282
266
|
id: "fresh-booking-gift-card-wrapper"
|
|
283
|
-
},
|
|
267
|
+
}, Ke = { id: "fresh-booking-gift-card-title" }, Je = { id: "fresh-booking-gift-card-content" }, Ye = { id: "fresh-booking-gift-card-payment" }, Qe = ["innerHTML"], Xe = { key: 0 }, Ze = {
|
|
284
268
|
key: 0,
|
|
285
269
|
id: "fresh-booking-select-place-type"
|
|
286
|
-
},
|
|
287
|
-
class: /* @__PURE__ */
|
|
288
|
-
},
|
|
270
|
+
}, ea = {
|
|
271
|
+
class: /* @__PURE__ */ se(["fresh-booking-label", "required"])
|
|
272
|
+
}, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
|
|
289
273
|
key: 0,
|
|
290
274
|
id: "fresh-booking-gift-card-order"
|
|
291
|
-
},
|
|
275
|
+
}, oa = { class: "fresh-booking-panel" }, na = {
|
|
292
276
|
key: 1,
|
|
293
277
|
id: "fresh-booking-gift-card-remarks"
|
|
294
|
-
},
|
|
278
|
+
}, ia = {
|
|
295
279
|
key: 2,
|
|
296
280
|
id: "fresh-booking-gift-card-order-minimal",
|
|
297
281
|
"sticky-side": "bottom"
|
|
298
|
-
},
|
|
282
|
+
}, ra = { id: "fresh-booking-gift-card-recaptcha" }, sa = /* @__PURE__ */ X({
|
|
283
|
+
name: "GiftCardLayout",
|
|
299
284
|
__name: "GiftCard",
|
|
300
285
|
props: {
|
|
301
286
|
accessToken: {},
|
|
302
|
-
accentColor: { default: "#6ab1e6" },
|
|
303
|
-
buttonBackground: { default: "#068175" },
|
|
304
|
-
buttonBorder: { default: null },
|
|
305
|
-
buttonBorderRadius: { default: "4px" },
|
|
306
|
-
buttonColor: { default: "#FFF" },
|
|
307
|
-
buttonFontFamily: { default: "inherit" },
|
|
308
|
-
buttonFontSize: { default: "14px" },
|
|
309
|
-
buttonTextTransform: { default: "uppercase" },
|
|
310
|
-
buttonFontWeight: { default: "400" },
|
|
311
|
-
fontColor: { default: "#3b3b3b" },
|
|
312
|
-
fontFamily: { default: "inherit" },
|
|
313
|
-
fontSize: { default: "16px" },
|
|
314
|
-
fontWeight: {},
|
|
315
|
-
grayColor: { default: "grey" },
|
|
316
|
-
headerColor: { default: "#000" },
|
|
317
|
-
headerFontSize: {},
|
|
318
|
-
inputBackground: { default: "#fff" },
|
|
319
|
-
inputBorder: { default: "1px solid rgba(0, 0, 0, 0.15)" },
|
|
320
|
-
inputBorderRadius: { default: "0px" },
|
|
321
|
-
inputBorderWidth: { default: "1px" },
|
|
322
|
-
inputFontColor: { default: "#000000" },
|
|
323
|
-
labelFontWeight: { default: "bold" },
|
|
324
|
-
labelPadding: { default: "6px" },
|
|
325
287
|
layout: { default: "minimal" },
|
|
326
|
-
loadingColor: { default: "#000" },
|
|
327
|
-
panelBackground: { default: "#ffffff" },
|
|
328
|
-
panelBorder: { default: null },
|
|
329
|
-
panelBorderRadius: { default: "8px" },
|
|
330
|
-
panelPadding: { default: "24px" },
|
|
331
288
|
placeType: {},
|
|
332
|
-
|
|
289
|
+
styling: {}
|
|
333
290
|
},
|
|
334
|
-
setup(
|
|
335
|
-
const
|
|
291
|
+
setup(z) {
|
|
292
|
+
const { t } = re(), {
|
|
336
293
|
name: o,
|
|
337
|
-
email:
|
|
338
|
-
phone:
|
|
339
|
-
value:
|
|
340
|
-
remark:
|
|
341
|
-
showValue:
|
|
342
|
-
quantity:
|
|
343
|
-
media:
|
|
344
|
-
placeId:
|
|
345
|
-
placeType:
|
|
346
|
-
showFormPage:
|
|
347
|
-
showPaymentPage:
|
|
348
|
-
showConfirmationPage:
|
|
349
|
-
places:
|
|
350
|
-
hasFilledForm:
|
|
351
|
-
hasForcedPlaceType:
|
|
352
|
-
isWaitingForResponse:
|
|
353
|
-
isMetaDataAvailable:
|
|
354
|
-
} =
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
await j();
|
|
294
|
+
email: a,
|
|
295
|
+
phone: P,
|
|
296
|
+
value: c,
|
|
297
|
+
remark: v,
|
|
298
|
+
showValue: h,
|
|
299
|
+
quantity: B,
|
|
300
|
+
media: U,
|
|
301
|
+
placeId: S,
|
|
302
|
+
placeType: p,
|
|
303
|
+
showFormPage: n,
|
|
304
|
+
showPaymentPage: u,
|
|
305
|
+
showConfirmationPage: g,
|
|
306
|
+
places: y,
|
|
307
|
+
hasFilledForm: T,
|
|
308
|
+
hasForcedPlaceType: q,
|
|
309
|
+
isWaitingForResponse: C,
|
|
310
|
+
isMetaDataAvailable: G
|
|
311
|
+
} = Q(te()), { initialize: D, orderGiftCard: $ } = te(), { isRecaptchaEnabled: O, currency: K } = Q(ie());
|
|
312
|
+
async function A() {
|
|
313
|
+
await $();
|
|
358
314
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}),
|
|
362
|
-
|
|
363
|
-
})
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
"--buttonBorderRadius": l.buttonBorderRadius,
|
|
369
|
-
"--buttonFontFamily": l.buttonFontFamily,
|
|
370
|
-
"--buttonColor": l.buttonColor,
|
|
371
|
-
"--buttonFontSize": l.buttonFontSize,
|
|
372
|
-
"--buttonTextTransform": l.buttonTextTransform,
|
|
373
|
-
"--buttonFontWeight": l.buttonFontWeight,
|
|
374
|
-
"--fontColor": l.fontColor,
|
|
375
|
-
"--fontFamily": l.fontFamily,
|
|
376
|
-
"--fontSize": l.fontSize,
|
|
377
|
-
"--fontWeight": l.fontWeight,
|
|
378
|
-
"--grayColor": l.grayColor,
|
|
379
|
-
"--headerColor": l.headerColor,
|
|
380
|
-
"--headerFontSize": l.headerFontSize,
|
|
381
|
-
"--inputBackground": l.inputBackground,
|
|
382
|
-
"--inputBorder": l.inputBorder,
|
|
383
|
-
"--inputBorderRadius": l.inputBorderRadius,
|
|
384
|
-
"--inputFontColor": l.inputFontColor,
|
|
385
|
-
"--inputBorderWidth": l.inputBorderWidth,
|
|
386
|
-
"--labelFontWeight": l.labelFontWeight,
|
|
387
|
-
"--labelPadding": l.labelPadding,
|
|
388
|
-
"--loadingColor": l.loadingColor,
|
|
389
|
-
"--panelBackground": l.panelBackground,
|
|
390
|
-
"--panelBorder": l.panelBorder,
|
|
391
|
-
"--panelBorderRadius": l.panelBorderRadius,
|
|
392
|
-
"--panelPadding": l.panelPadding,
|
|
393
|
-
"--successColor": l.successColor
|
|
394
|
-
};
|
|
395
|
-
return (i, t) => {
|
|
396
|
-
const V = Ce("sticky");
|
|
397
|
-
return c(), M(Be, null, {
|
|
398
|
-
default: N(() => [
|
|
399
|
-
d(Ve, {
|
|
315
|
+
return ve(p, () => {
|
|
316
|
+
S.value = void 0;
|
|
317
|
+
}), ge(() => {
|
|
318
|
+
D();
|
|
319
|
+
}), (R, i) => {
|
|
320
|
+
const m = he("sticky");
|
|
321
|
+
return d(), L(ke, null, {
|
|
322
|
+
default: j(() => [
|
|
323
|
+
r(be, {
|
|
400
324
|
id: "fresh-booking-gift-card-module",
|
|
401
|
-
class: "fresh-booking-app",
|
|
402
325
|
type: "gift-card",
|
|
403
|
-
"access-token":
|
|
404
|
-
"data-layout":
|
|
405
|
-
|
|
326
|
+
"access-token": R.accessToken,
|
|
327
|
+
"data-layout": R.layout,
|
|
328
|
+
styling: R.styling,
|
|
406
329
|
"sticky-container": ""
|
|
407
330
|
}, {
|
|
408
|
-
default:
|
|
409
|
-
e(
|
|
410
|
-
s("h4",
|
|
411
|
-
s("span", null,
|
|
331
|
+
default: j(() => [
|
|
332
|
+
e(G) ? (d(), f("div", Oe, [
|
|
333
|
+
s("h4", Ke, [
|
|
334
|
+
s("span", null, ee(e(t)("giftCard.title")), 1)
|
|
412
335
|
]),
|
|
413
|
-
s("div",
|
|
414
|
-
I(s("div",
|
|
415
|
-
|
|
336
|
+
s("div", Je, [
|
|
337
|
+
I(s("div", Ye, [
|
|
338
|
+
r(Se)
|
|
339
|
+
], 512), [
|
|
340
|
+
[W, e(u)]
|
|
416
341
|
]),
|
|
417
342
|
I(s("div", null, [
|
|
418
343
|
s("p", {
|
|
419
344
|
id: "fresh-booking-gift-card-description",
|
|
420
|
-
innerHTML: e(
|
|
421
|
-
}, null, 8,
|
|
345
|
+
innerHTML: e(t)("giftCard.description")
|
|
346
|
+
}, null, 8, Qe),
|
|
422
347
|
s("form", null, [
|
|
423
|
-
|
|
348
|
+
r(H, {
|
|
424
349
|
modelValue: e(o),
|
|
425
|
-
"onUpdate:modelValue":
|
|
350
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => V(o) ? o.value = l : null),
|
|
426
351
|
type: "text",
|
|
427
352
|
name: "name",
|
|
428
353
|
autocomplete: "name",
|
|
429
|
-
label: e(
|
|
354
|
+
label: e(t)("giftCard.name"),
|
|
430
355
|
icon: "user-alt",
|
|
431
|
-
|
|
432
|
-
placeholder: e(a)("giftCard.namePlaceholder"),
|
|
356
|
+
placeholder: e(t)("giftCard.namePlaceholder"),
|
|
433
357
|
required: ""
|
|
434
|
-
}, null, 8, ["modelValue", "label", "
|
|
435
|
-
|
|
436
|
-
modelValue: e(
|
|
437
|
-
"onUpdate:modelValue":
|
|
358
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
359
|
+
r(H, {
|
|
360
|
+
modelValue: e(a),
|
|
361
|
+
"onUpdate:modelValue": i[1] || (i[1] = (l) => V(a) ? a.value = l : null),
|
|
438
362
|
type: "email",
|
|
439
363
|
name: "email",
|
|
440
364
|
autocomplete: "email",
|
|
441
|
-
label: e(
|
|
365
|
+
label: e(t)("giftCard.email"),
|
|
442
366
|
icon: "at",
|
|
443
|
-
|
|
444
|
-
placeholder: e(a)("giftCard.emailPlaceholder"),
|
|
367
|
+
placeholder: e(t)("giftCard.emailPlaceholder"),
|
|
445
368
|
required: ""
|
|
446
|
-
}, null, 8, ["modelValue", "label", "
|
|
447
|
-
|
|
448
|
-
modelValue: e(
|
|
449
|
-
"onUpdate:modelValue":
|
|
369
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
370
|
+
r(we, {
|
|
371
|
+
modelValue: e(P),
|
|
372
|
+
"onUpdate:modelValue": i[2] || (i[2] = (l) => V(P) ? P.value = l : null),
|
|
450
373
|
icon: "phone-office",
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
placeholder: e(a)("giftCard.phonePlaceholder"),
|
|
374
|
+
label: e(t)("giftCard.phone"),
|
|
375
|
+
placeholder: e(t)("giftCard.phonePlaceholder"),
|
|
454
376
|
required: ""
|
|
455
|
-
}, null, 8, ["modelValue", "
|
|
456
|
-
e(
|
|
457
|
-
e(
|
|
458
|
-
s("label",
|
|
459
|
-
s("span", null,
|
|
377
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
378
|
+
e(q) ? k("", !0) : (d(), f("div", Xe, [
|
|
379
|
+
e(y) ? (d(), f("div", Ze, [
|
|
380
|
+
s("label", ea, [
|
|
381
|
+
s("span", null, ee(e(t)("giftCard.selectType")), 1)
|
|
460
382
|
]),
|
|
461
|
-
s("div",
|
|
383
|
+
s("div", aa, [
|
|
462
384
|
s("ul", null, [
|
|
463
|
-
(
|
|
464
|
-
|
|
465
|
-
modelValue: e(
|
|
466
|
-
"onUpdate:modelValue":
|
|
385
|
+
(d(!0), f(ye, null, _e(e(y), (l, _) => (d(), f("li", { key: _ }, [
|
|
386
|
+
r(le, {
|
|
387
|
+
modelValue: e(p),
|
|
388
|
+
"onUpdate:modelValue": i[3] || (i[3] = (N) => V(p) ? p.value = N : null),
|
|
467
389
|
type: "radio",
|
|
468
390
|
name: "placeType",
|
|
469
|
-
val:
|
|
470
|
-
label:
|
|
391
|
+
val: _,
|
|
392
|
+
label: l.label
|
|
471
393
|
}, null, 8, ["modelValue", "val", "label"])
|
|
472
394
|
]))), 128))
|
|
473
395
|
]),
|
|
474
|
-
e(
|
|
396
|
+
e(y)[e(p)] && e(y)[e(p)].data.length > 1 ? (d(), L(Re, {
|
|
475
397
|
key: 0,
|
|
476
|
-
modelValue: e(
|
|
477
|
-
"onUpdate:modelValue":
|
|
478
|
-
placeholder: e(
|
|
479
|
-
options: e(
|
|
398
|
+
modelValue: e(S),
|
|
399
|
+
"onUpdate:modelValue": i[4] || (i[4] = (l) => V(S) ? S.value = l : null),
|
|
400
|
+
placeholder: e(t)("giftCard.selectPlacePlaceholder"),
|
|
401
|
+
options: e(y)[e(p)].data,
|
|
480
402
|
labelKey: "name",
|
|
481
403
|
valueKey: "id",
|
|
482
404
|
required: ""
|
|
483
|
-
}, null, 8, ["modelValue", "placeholder", "options"])) :
|
|
405
|
+
}, null, 8, ["modelValue", "placeholder", "options"])) : k("", !0)
|
|
484
406
|
])
|
|
485
|
-
])) : (
|
|
486
|
-
key: 1,
|
|
487
|
-
color: i.loadingColor
|
|
488
|
-
}, null, 8, ["color"]))
|
|
407
|
+
])) : (d(), L(ae, { key: 1 }))
|
|
489
408
|
])),
|
|
490
|
-
|
|
491
|
-
modelValue: e(
|
|
492
|
-
"onUpdate:modelValue":
|
|
409
|
+
r(H, {
|
|
410
|
+
modelValue: e(c),
|
|
411
|
+
"onUpdate:modelValue": i[5] || (i[5] = (l) => V(c) ? c.value = l : null),
|
|
493
412
|
type: "number",
|
|
494
413
|
name: "value",
|
|
495
|
-
label: e(
|
|
414
|
+
label: e(t)("giftCard.value"),
|
|
496
415
|
icon: "money-bill",
|
|
497
|
-
|
|
498
|
-
placeholder: e(a)("giftCard.valuePlaceholder"),
|
|
416
|
+
placeholder: e(t)("giftCard.valuePlaceholder"),
|
|
499
417
|
suffix: e(K),
|
|
500
418
|
required: ""
|
|
501
|
-
}, null, 8, ["modelValue", "label", "
|
|
502
|
-
|
|
503
|
-
modelValue: e(
|
|
504
|
-
"onUpdate:modelValue":
|
|
419
|
+
}, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
|
|
420
|
+
r(le, {
|
|
421
|
+
modelValue: e(h),
|
|
422
|
+
"onUpdate:modelValue": i[6] || (i[6] = (l) => V(h) ? h.value = l : null),
|
|
505
423
|
type: "checkbox",
|
|
506
424
|
name: "showValue",
|
|
507
|
-
label: e(
|
|
508
|
-
checked: e(
|
|
425
|
+
label: e(t)("giftCard.showValue"),
|
|
426
|
+
checked: e(h)
|
|
509
427
|
}, null, 8, ["modelValue", "label", "checked"]),
|
|
510
|
-
|
|
511
|
-
|
|
428
|
+
k("", !0),
|
|
429
|
+
k("", !0)
|
|
512
430
|
])
|
|
513
431
|
], 512), [
|
|
514
|
-
[
|
|
432
|
+
[W, e(n)]
|
|
515
433
|
]),
|
|
516
434
|
I(s("div", null, [
|
|
517
435
|
s("div", {
|
|
518
|
-
innerHTML: e(
|
|
519
|
-
}, null, 8,
|
|
436
|
+
innerHTML: e(t)("giftCard.thankYou")
|
|
437
|
+
}, null, 8, la)
|
|
520
438
|
], 512), [
|
|
521
|
-
[
|
|
439
|
+
[W, e(g)]
|
|
522
440
|
])
|
|
523
441
|
]),
|
|
524
|
-
|
|
525
|
-
s("div",
|
|
526
|
-
|
|
527
|
-
label: e(
|
|
528
|
-
style: ne({
|
|
529
|
-
background: i.successColor
|
|
530
|
-
}),
|
|
442
|
+
R.layout !== "minimal" && e(n) ? (d(), f("div", ta, [
|
|
443
|
+
s("div", oa, [
|
|
444
|
+
r(x, {
|
|
445
|
+
label: e(t)("giftCard.orderGiftCard"),
|
|
531
446
|
"full-width": !0,
|
|
532
|
-
disabled: !e(
|
|
533
|
-
"is-loading": e(
|
|
534
|
-
"onUpdate:isLoading":
|
|
535
|
-
onClickEvent:
|
|
536
|
-
}, null, 8, ["label", "
|
|
447
|
+
disabled: !e(T),
|
|
448
|
+
"is-loading": e(C),
|
|
449
|
+
"onUpdate:isLoading": i[9] || (i[9] = (l) => V(C) ? C.value = l : null),
|
|
450
|
+
onClickEvent: A
|
|
451
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
537
452
|
])
|
|
538
|
-
])) :
|
|
539
|
-
e(
|
|
540
|
-
|
|
541
|
-
modelValue: e(
|
|
542
|
-
"onUpdate:modelValue":
|
|
453
|
+
])) : k("", !0),
|
|
454
|
+
e(n) ? (d(), f("div", na, [
|
|
455
|
+
r(H, {
|
|
456
|
+
modelValue: e(v),
|
|
457
|
+
"onUpdate:modelValue": i[10] || (i[10] = (l) => V(v) ? v.value = l : null),
|
|
543
458
|
type: "textarea",
|
|
544
459
|
name: "remark",
|
|
545
|
-
label: e(
|
|
460
|
+
label: e(t)("giftCard.remark"),
|
|
546
461
|
icon: "info-circle",
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
label: e(a)("giftCard.orderGiftCard"),
|
|
554
|
-
style: ne({
|
|
555
|
-
background: i.successColor
|
|
556
|
-
}),
|
|
462
|
+
placeholder: e(t)("giftCard.remarkPlaceholder")
|
|
463
|
+
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
464
|
+
])) : k("", !0),
|
|
465
|
+
e(n) ? I((d(), f("div", ia, [
|
|
466
|
+
r(x, {
|
|
467
|
+
label: e(t)("giftCard.orderGiftCard"),
|
|
557
468
|
"full-width": !0,
|
|
558
|
-
disabled: !e(
|
|
469
|
+
disabled: !e(T),
|
|
559
470
|
"data-test": "orderGiftCard",
|
|
560
|
-
"is-loading": e(
|
|
561
|
-
"onUpdate:isLoading":
|
|
562
|
-
onClickEvent:
|
|
563
|
-
}, null, 8, ["label", "
|
|
564
|
-
I(s("div",
|
|
565
|
-
|
|
471
|
+
"is-loading": e(C),
|
|
472
|
+
"onUpdate:isLoading": i[11] || (i[11] = (l) => V(C) ? C.value = l : null),
|
|
473
|
+
onClickEvent: A
|
|
474
|
+
}, null, 8, ["label", "disabled", "is-loading"]),
|
|
475
|
+
I(s("div", ra, [
|
|
476
|
+
r(ze)
|
|
566
477
|
], 512), [
|
|
567
|
-
[
|
|
478
|
+
[W, e(O)]
|
|
568
479
|
])
|
|
569
480
|
])), [
|
|
570
|
-
[
|
|
571
|
-
]) :
|
|
572
|
-
])) : (
|
|
481
|
+
[m]
|
|
482
|
+
]) : k("", !0)
|
|
483
|
+
])) : (d(), L(ae, { key: 1 }))
|
|
573
484
|
]),
|
|
574
485
|
_: 1
|
|
575
|
-
}, 8, ["access-token", "data-layout"])
|
|
486
|
+
}, 8, ["access-token", "data-layout", "styling"])
|
|
576
487
|
]),
|
|
577
|
-
fallback:
|
|
578
|
-
|
|
488
|
+
fallback: j(() => [
|
|
489
|
+
r(je)
|
|
579
490
|
]),
|
|
580
491
|
_: 1
|
|
581
492
|
});
|
|
582
493
|
};
|
|
583
494
|
}
|
|
584
495
|
});
|
|
585
|
-
const
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
496
|
+
const da = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ce(), ca = Ve(), E = Fe({ components: { GiftCard: da } });
|
|
497
|
+
E.use(ua);
|
|
498
|
+
E.use(Pe);
|
|
499
|
+
E.use(ca);
|
|
500
|
+
E.use(Te);
|
|
501
|
+
E.use($e, { bootstrap: !1 });
|
|
502
|
+
E.mount("#konnectio-gift-card-app");
|