@konnectio/core 4.0.56-rc22 → 4.0.56-rc24
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-ZJdtBRXa.js → ActionField-h6vpGaYw.js} +10 -10
- package/dist/ActionField-h6vpGaYw.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js → AvailabilitySkeleton-HUUimpaX.js} +2461 -2405
- package/dist/AvailabilitySkeleton-HUUimpaX.js.br +0 -0
- package/dist/CheckoutWindow-Dmg9JyZJ.js +710 -0
- package/dist/CheckoutWindow-Dmg9JyZJ.js.br +0 -0
- package/dist/{ErrorMessage-mUpn7ZBU.js → ErrorMessage-iVDG0uzJ.js} +1 -1
- package/dist/ErrorMessage-iVDG0uzJ.js.br +0 -0
- package/dist/EventAvailabilityForm-UmnEHYcV.js +325 -0
- package/dist/EventAvailabilityForm-UmnEHYcV.js.br +0 -0
- package/dist/{_-KavQ60qi.js → Field-wvMopAED.js} +13143 -12490
- package/dist/Field-wvMopAED.js.br +0 -0
- package/dist/HotelAvailabilityForm-GWIoGscc.js +164 -0
- package/dist/HotelAvailabilityForm-GWIoGscc.js.br +0 -0
- package/dist/availability.js +27 -26
- package/dist/availability.js.br +0 -0
- package/dist/event.js +578 -304
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +46 -47
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +304 -291
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1081 -2224
- package/dist/hotel.js.br +0 -0
- package/dist/{ThankYou-EiAxaHd8.js → masonry.plugin-UcfbgWN-.js} +4922 -4231
- package/dist/masonry.plugin-UcfbgWN-.js.br +0 -0
- package/dist/polyfill.js +3014 -2962
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +9 -9
- package/dist/ActionField-ZJdtBRXa.js.br +0 -4
- package/dist/AvailabilitySkeleton-tfEBupNq.js +0 -234
- package/dist/AvailabilitySkeleton-tfEBupNq.js.br +0 -0
- package/dist/CheckoutWindow-orJD6dJy.js +0 -205
- package/dist/CheckoutWindow-orJD6dJy.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js.br +0 -0
- package/dist/ErrorMessage-mUpn7ZBU.js.br +0 -0
- package/dist/EventAvailabilityForm-cAOEZVnn.js +0 -366
- package/dist/EventAvailabilityForm-cAOEZVnn.js.br +0 -0
- package/dist/Field-Kwm-GcDa.js +0 -41
- package/dist/Field-Kwm-GcDa.js.br +0 -0
- package/dist/ThankYou-EiAxaHd8.js.br +0 -0
- package/dist/_-KavQ60qi.js.br +0 -0
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
import { V as Ke, W as qe, B as j, X as xe, Y as je, D as re, k as s, Z as v, $ as K, c as a, O as se, a0 as q, a1 as He, a2 as $, a3 as E, a4 as A, d as ue, o as ce, h as Qe, a5 as We, m as ve, j as Xe, a as Ye, w as Ze, f as ie, u as x, H as Je, b as et, C as tt, g as at } from "./_-KavQ60qi.js";
|
|
2
|
-
import { _ as nt } from "./DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js";
|
|
3
|
-
const ot = Ke("event", () => {
|
|
4
|
-
const T = qe(), { voucher: f } = j(xe()), { display: c } = je(), { bearerToken: g, metaData: I } = j(re()), d = s({}), t = s(void 0), o = s(!0), i = s(v.InitialState), H = s(/* @__PURE__ */ new Date()), N = s(NaN), F = s(1), S = s(NaN), Q = s(NaN), C = s(""), R = K("konnectio_name", "", void 0, { serializer: q.string }), L = K("konnectio_phone", "", void 0, { serializer: q.string }), O = K("konnectio_email", "", void 0, { serializer: q.string }), W = s(""), w = s({}), y = s({}), V = s("");
|
|
5
|
-
function l(e) {
|
|
6
|
-
return e.templateID !== void 0;
|
|
7
|
-
}
|
|
8
|
-
const de = "DKK", pe = 10, me = "Test", fe = "Test 2", ge = [], _ = a(() => H.value.toISOString()), ye = a(() => l(t.value)), B = a(() => l(t.value) ? t.value.numberOfDays : F.value), he = a(() => l(t.value) ? t.value.packageCount : 0), be = a(() => l(t.value) ? t.value.fromDate : ""), k = a(() => d.value.events.find((e) => e.id === S.value)), ke = a(() => k.value ? k.value.length : void 0), X = a(() => l(t.value) ? t.value.templateID : 0), De = a(() => d.value.events), Ie = a(() => d.value.templates), Se = a(() => d.value.events.length > 0), we = a(() => d.value.templates.length > 0), Y = a(() => k.value && k.value.eventRateType ? k.value.eventRateType : se.None), z = a(() => {
|
|
9
|
-
if (!l(t.value))
|
|
10
|
-
return t.value;
|
|
11
|
-
}), Z = a(() => {
|
|
12
|
-
if (z.value !== void 0) {
|
|
13
|
-
const e = z.value.find(
|
|
14
|
-
(n) => n.time === C.value
|
|
15
|
-
);
|
|
16
|
-
if (e && e.price)
|
|
17
|
-
return e.price;
|
|
18
|
-
}
|
|
19
|
-
return 0;
|
|
20
|
-
}), J = a(() => {
|
|
21
|
-
if (l(t.value))
|
|
22
|
-
return t.value.templateCounts;
|
|
23
|
-
}), _e = a(() => (e) => I.value.eventImages.filter((n) => n.eventID === e));
|
|
24
|
-
function G(e, n, r) {
|
|
25
|
-
let p = 0;
|
|
26
|
-
if (l(t.value)) {
|
|
27
|
-
const u = t.value.templateCounts[r];
|
|
28
|
-
if (u) {
|
|
29
|
-
const D = u.addons, h = w.value[`${n}.${e}.${r}`] || 0;
|
|
30
|
-
if (h > 0) {
|
|
31
|
-
const b = D?.find((P) => P.addonID === e), m = typeof h == "boolean" ? 1 : h;
|
|
32
|
-
p += He(b?.price, b?.quantityStrategy, B.value, u.adultPerRoom) * m;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
} else {
|
|
36
|
-
const u = y.value[e] || 0;
|
|
37
|
-
if (u > 0) {
|
|
38
|
-
const D = k.value?.products?.find((h) => h.productID === e);
|
|
39
|
-
D && (p += D.price * u);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return p;
|
|
43
|
-
}
|
|
44
|
-
function M(e, n) {
|
|
45
|
-
let r = 0;
|
|
46
|
-
if (l(t.value))
|
|
47
|
-
for (const p in w.value) {
|
|
48
|
-
const u = p.split(".");
|
|
49
|
-
parseInt(u[0]) === e && parseInt(u[2]) === n && (r += G(parseInt(u[1]), e, n));
|
|
50
|
-
}
|
|
51
|
-
else
|
|
52
|
-
for (const p in y.value)
|
|
53
|
-
r += G(parseInt(p)) * F.value;
|
|
54
|
-
return r;
|
|
55
|
-
}
|
|
56
|
-
const ee = a(() => l(t.value) && t.value.totalPrice || 0), Pe = a(() => {
|
|
57
|
-
if (l(t.value))
|
|
58
|
-
return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
|
|
59
|
-
(e, n, r) => e + M(n, r),
|
|
60
|
-
ee.value
|
|
61
|
-
) || 0;
|
|
62
|
-
{
|
|
63
|
-
let e = M();
|
|
64
|
-
return e += Z.value, e;
|
|
65
|
-
}
|
|
66
|
-
}), Ae = a(() => l(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ce = a(() => l(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ee = a(() => {
|
|
67
|
-
const e = y.value;
|
|
68
|
-
let n = 0;
|
|
69
|
-
for (const r in e)
|
|
70
|
-
n += Number.isNaN(e[r]) ? 0 : e[r];
|
|
71
|
-
return n > 0;
|
|
72
|
-
}), te = a(() => l(t.value) ? !1 : Object.keys(y.value).length > 0), $e = a(() => !!(R.value !== "" && O.value !== "" && L.value.length >= 5 && (!te.value || Ee.value) && (!(!l(t.value) && Y.value !== se.FullDayEvent) || C.value !== "")));
|
|
73
|
-
function Te(e) {
|
|
74
|
-
return i.value === v.ReservationState && S.value === e && o.value;
|
|
75
|
-
}
|
|
76
|
-
const Ne = a(() => !(i.value === v.InitialState && o.value)), Fe = a(() => !(i.value === v.AvailabilityState && o.value)), Re = a(() => t.value !== void 0), Le = a(() => i.value === v.PaymentState && o.value);
|
|
77
|
-
async function Oe() {
|
|
78
|
-
i.value = v.AvailabilityState, o.value = !0;
|
|
79
|
-
try {
|
|
80
|
-
const e = (await E.get("https://production.hotel-service.konnectio.dk/api/event/restaurant-events", {
|
|
81
|
-
params: {
|
|
82
|
-
language: $(),
|
|
83
|
-
date: _.value
|
|
84
|
-
},
|
|
85
|
-
headers: {
|
|
86
|
-
Authorization: g.value,
|
|
87
|
-
"Fresh-Booking-Ver": "4.0.56-rc22"
|
|
88
|
-
}
|
|
89
|
-
})).data;
|
|
90
|
-
d.value = e, o.value = !1;
|
|
91
|
-
} catch {
|
|
92
|
-
c({
|
|
93
|
-
message: A.t("alert.error.couldntFetchListings"),
|
|
94
|
-
type: "warning"
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
async function Ve(e) {
|
|
99
|
-
i.value = v.ReservationState, o.value = !0;
|
|
100
|
-
try {
|
|
101
|
-
const n = (await E.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-availability", {
|
|
102
|
-
params: {
|
|
103
|
-
language: $(),
|
|
104
|
-
date: _.value,
|
|
105
|
-
templateId: S.value,
|
|
106
|
-
numberOfPeople: N.value
|
|
107
|
-
},
|
|
108
|
-
headers: {
|
|
109
|
-
Authorization: g.value,
|
|
110
|
-
"Fresh-Booking-Ver": "4.0.56-rc22"
|
|
111
|
-
}
|
|
112
|
-
})).data;
|
|
113
|
-
n.templateCounts.length === 0 ? c({
|
|
114
|
-
message: A.t("alert.error.eventNotAvailable"),
|
|
115
|
-
type: "warning"
|
|
116
|
-
}) : (t.value = n, e()), o.value = !1;
|
|
117
|
-
} catch {
|
|
118
|
-
o.value = !1, i.value = v.AvailabilityState, c({
|
|
119
|
-
message: A.t("alert.error.couldntFetchEvent"),
|
|
120
|
-
type: "warning"
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
async function Be(e) {
|
|
125
|
-
i.value = v.ReservationState, o.value = !0;
|
|
126
|
-
try {
|
|
127
|
-
const n = (await E.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
|
|
128
|
-
params: {
|
|
129
|
-
language: $(),
|
|
130
|
-
date: _.value,
|
|
131
|
-
numberOfPeople: N.value,
|
|
132
|
-
eventId: S.value,
|
|
133
|
-
tableGroupId: Q.value
|
|
134
|
-
},
|
|
135
|
-
headers: {
|
|
136
|
-
Authorization: g.value,
|
|
137
|
-
"Fresh-Booking-Ver": "4.0.56-rc22"
|
|
138
|
-
}
|
|
139
|
-
})).data;
|
|
140
|
-
t.value = n, o.value = !1, e();
|
|
141
|
-
} catch {
|
|
142
|
-
o.value = !1, i.value = v.AvailabilityState, c({
|
|
143
|
-
message: A.t("alert.error.couldntFetchEvent"),
|
|
144
|
-
type: "warning"
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
async function ze() {
|
|
149
|
-
try {
|
|
150
|
-
const e = (await E.get("https://production.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
|
|
151
|
-
params: {
|
|
152
|
-
language: $(),
|
|
153
|
-
date: _.value,
|
|
154
|
-
discountCode: V.value
|
|
155
|
-
},
|
|
156
|
-
headers: {
|
|
157
|
-
Authorization: g.value,
|
|
158
|
-
"Fresh-Booking-Ver": "4.0.56-rc22"
|
|
159
|
-
}
|
|
160
|
-
})).data;
|
|
161
|
-
console.log(e);
|
|
162
|
-
} catch (e) {
|
|
163
|
-
console.log(e), c({
|
|
164
|
-
message: A.t("alert.error.discountCodeValidation"),
|
|
165
|
-
type: "warning"
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
async function Ge(e) {
|
|
170
|
-
i.value = v.PaymentState, o.value = !0;
|
|
171
|
-
const n = () => {
|
|
172
|
-
o.value = !1, i.value = v.ReservationState, c({
|
|
173
|
-
message: A.t("booking.other.errorMessage"),
|
|
174
|
-
type: "warning"
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
let r, p, u;
|
|
178
|
-
const D = [];
|
|
179
|
-
if (l(t.value))
|
|
180
|
-
J.value?.forEach((m, P) => {
|
|
181
|
-
const ae = [];
|
|
182
|
-
let ne = 0;
|
|
183
|
-
for (const oe in w.value) {
|
|
184
|
-
const U = oe.split("."), le = w.value[oe];
|
|
185
|
-
parseInt(U[0]) === m.roomGroupID && parseInt(U[2]) === P && le > 0 && (ae.push({
|
|
186
|
-
id: ne,
|
|
187
|
-
addonID: parseInt(U[1]),
|
|
188
|
-
quantity: le
|
|
189
|
-
}), ne++);
|
|
190
|
-
}
|
|
191
|
-
D.push({
|
|
192
|
-
adultPerRoom: m.adultPerRoom,
|
|
193
|
-
count: m.count,
|
|
194
|
-
roomGroupID: m.roomGroupID,
|
|
195
|
-
addons: ae
|
|
196
|
-
});
|
|
197
|
-
}), r = {
|
|
198
|
-
templateID: X.value,
|
|
199
|
-
numberOfDays: F.value,
|
|
200
|
-
templateCounts: D
|
|
201
|
-
};
|
|
202
|
-
else {
|
|
203
|
-
p = [], u = C.value;
|
|
204
|
-
for (const m in y.value) {
|
|
205
|
-
const P = y.value[parseInt(m)];
|
|
206
|
-
P > 0 && p.push({
|
|
207
|
-
id: parseInt(m),
|
|
208
|
-
quantity: P
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
let h = "https://production.hotel-service.konnectio.dk/api/v3/event/template-book";
|
|
213
|
-
const b = {
|
|
214
|
-
date: _.value,
|
|
215
|
-
name: R.value,
|
|
216
|
-
email: O.value,
|
|
217
|
-
phone: L.value,
|
|
218
|
-
remark: W.value,
|
|
219
|
-
numberOfPeople: N.value,
|
|
220
|
-
days: B.value,
|
|
221
|
-
discountCode: V.value,
|
|
222
|
-
giftCardCode: f.value,
|
|
223
|
-
checkoutUrl: window.location.origin,
|
|
224
|
-
privacyUrl: window.location.origin
|
|
225
|
-
};
|
|
226
|
-
l(t.value) ? b.templateGroup = r : (b.time = u, b.eventId = S.value, b.products = p, h = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), await E.post(h, b, {
|
|
227
|
-
headers: {
|
|
228
|
-
Authorization: g.value,
|
|
229
|
-
"Fresh-Booking-Ver": "4.0.56-rc22"
|
|
230
|
-
}
|
|
231
|
-
}).then((m) => {
|
|
232
|
-
o.value = !1, T.pay({
|
|
233
|
-
callback: e,
|
|
234
|
-
response: m.data
|
|
235
|
-
});
|
|
236
|
-
}).catch(() => n());
|
|
237
|
-
}
|
|
238
|
-
function Me(e) {
|
|
239
|
-
w.value = {}, y.value = {}, C.value = "", e();
|
|
240
|
-
}
|
|
241
|
-
function Ue() {
|
|
242
|
-
}
|
|
243
|
-
return {
|
|
244
|
-
metaData: I,
|
|
245
|
-
listingData: d,
|
|
246
|
-
tableBasePrice: Z,
|
|
247
|
-
availabilityData: t,
|
|
248
|
-
isLoading: o,
|
|
249
|
-
moduleState: i,
|
|
250
|
-
searchDate: H,
|
|
251
|
-
numberOfPeople: N,
|
|
252
|
-
numberOfDays: F,
|
|
253
|
-
eventId: S,
|
|
254
|
-
tableGroupId: Q,
|
|
255
|
-
arrivalTime: C,
|
|
256
|
-
addons: w,
|
|
257
|
-
products: y,
|
|
258
|
-
discountCode: V,
|
|
259
|
-
name: R,
|
|
260
|
-
phone: L,
|
|
261
|
-
email: O,
|
|
262
|
-
remark: W,
|
|
263
|
-
isTemplateEvent: ye,
|
|
264
|
-
currency: de,
|
|
265
|
-
maxNumberOfPeople: pe,
|
|
266
|
-
title: me,
|
|
267
|
-
subtitle: fe,
|
|
268
|
-
slideshow: ge,
|
|
269
|
-
date: _,
|
|
270
|
-
numberOfTotalDays: B,
|
|
271
|
-
numberOfRooms: he,
|
|
272
|
-
fromDate: be,
|
|
273
|
-
getEventData: k,
|
|
274
|
-
length: ke,
|
|
275
|
-
templateId: X,
|
|
276
|
-
getEvents: De,
|
|
277
|
-
getTemplates: Ie,
|
|
278
|
-
hasEvents: Se,
|
|
279
|
-
hasTemplates: we,
|
|
280
|
-
basePrice: ee,
|
|
281
|
-
totalPrice: Pe,
|
|
282
|
-
getTemplateData: J,
|
|
283
|
-
getEventTableData: z,
|
|
284
|
-
roomUpgrade: Ce,
|
|
285
|
-
weekendFee: Ae,
|
|
286
|
-
hasProducts: te,
|
|
287
|
-
eventRateType: Y,
|
|
288
|
-
isReservationFormFilled: $e,
|
|
289
|
-
isMetaDataAvailable: Ne,
|
|
290
|
-
areListingsAvailable: Fe,
|
|
291
|
-
isAvailabilityDataAvailable: Re,
|
|
292
|
-
isPaymentLoading: Le,
|
|
293
|
-
getEventImages: _e,
|
|
294
|
-
isEventListingLoading: Te,
|
|
295
|
-
// fetchMetaData,
|
|
296
|
-
fetchListings: Oe,
|
|
297
|
-
getTemplateAvailability: Ve,
|
|
298
|
-
getEventAvailability: Be,
|
|
299
|
-
validateDiscountCode: ze,
|
|
300
|
-
localAddonPrice: G,
|
|
301
|
-
totalAddonPrice: M,
|
|
302
|
-
createBooking: Ge,
|
|
303
|
-
reset: Me,
|
|
304
|
-
initialize: Ue
|
|
305
|
-
};
|
|
306
|
-
}), lt = /* @__PURE__ */ ue({
|
|
307
|
-
__name: "_",
|
|
308
|
-
props: {
|
|
309
|
-
type: { default: "submit" }
|
|
310
|
-
},
|
|
311
|
-
emits: ["submit"],
|
|
312
|
-
setup(T, { emit: f }) {
|
|
313
|
-
const c = s(!1), g = f;
|
|
314
|
-
re();
|
|
315
|
-
function I() {
|
|
316
|
-
g("submit");
|
|
317
|
-
}
|
|
318
|
-
return (d, t) => (ce(), Qe("form", {
|
|
319
|
-
onSubmit: ve(I, ["prevent"])
|
|
320
|
-
}, [
|
|
321
|
-
We(d.$slots, "default", { isLoading: c.value })
|
|
322
|
-
], 32));
|
|
323
|
-
}
|
|
324
|
-
}), st = { class: "konnectio-search-button" }, it = /* @__PURE__ */ ue({
|
|
325
|
-
__name: "EventAvailabilityForm",
|
|
326
|
-
props: {
|
|
327
|
-
link: {}
|
|
328
|
-
},
|
|
329
|
-
setup(T) {
|
|
330
|
-
const f = T, { searchDate: c } = j(ot()), { t: g } = Xe(), I = a(() => typeof f.link != "string");
|
|
331
|
-
function d() {
|
|
332
|
-
if (I.value) {
|
|
333
|
-
const t = $();
|
|
334
|
-
f.link[t] ? window.location.replace(f.link[t]) : f.link.en && window.location.replace(f.link.en);
|
|
335
|
-
} else
|
|
336
|
-
window.location.replace(f.link);
|
|
337
|
-
}
|
|
338
|
-
return (t, o) => (ce(), Ye(lt, {
|
|
339
|
-
id: "konnectio-event-search-form",
|
|
340
|
-
type: "availability",
|
|
341
|
-
onSubmit: ve(d, ["prevent"])
|
|
342
|
-
}, {
|
|
343
|
-
default: Ze(() => [
|
|
344
|
-
ie(nt, {
|
|
345
|
-
modelValue: x(c),
|
|
346
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) => Je(c) ? c.value = i : null),
|
|
347
|
-
label: x(g)("event.selectDate"),
|
|
348
|
-
"icon-type": "fas",
|
|
349
|
-
"icon-placement": "label",
|
|
350
|
-
"min-date": /* @__PURE__ */ new Date()
|
|
351
|
-
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
352
|
-
et("div", st, [
|
|
353
|
-
ie(tt, {
|
|
354
|
-
type: "submit",
|
|
355
|
-
label: x(g)("availability.buttonLabel")
|
|
356
|
-
}, null, 8, ["label"])
|
|
357
|
-
])
|
|
358
|
-
]),
|
|
359
|
-
_: 1
|
|
360
|
-
}));
|
|
361
|
-
}
|
|
362
|
-
}), ct = /* @__PURE__ */ at(it, [["__scopeId", "data-v-0a3de19e"]]);
|
|
363
|
-
export {
|
|
364
|
-
ct as E,
|
|
365
|
-
ot as u
|
|
366
|
-
};
|
|
Binary file
|
package/dist/Field-Kwm-GcDa.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { d as l, o as a, h as t, a as n, i, f as s, E as o, n as d, g as r } from "./_-KavQ60qi.js";
|
|
2
|
-
const p = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "skeleton-field-label"
|
|
5
|
-
}, h = { key: 1 }, c = /* @__PURE__ */ l({
|
|
6
|
-
__name: "Field",
|
|
7
|
-
props: {
|
|
8
|
-
withIcon: { type: Boolean, default: !1 },
|
|
9
|
-
noLabel: { type: Boolean, default: !1 },
|
|
10
|
-
isTextArea: { type: Boolean, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
setup(f) {
|
|
13
|
-
return (e, _) => (a(), t("div", {
|
|
14
|
-
class: d([
|
|
15
|
-
"skeleton-field",
|
|
16
|
-
{ "is-text-area": e.isTextArea },
|
|
17
|
-
{ "no-label": e.noLabel }
|
|
18
|
-
])
|
|
19
|
-
}, [
|
|
20
|
-
e.noLabel ? (a(), t("div", h)) : (a(), t("div", p, [
|
|
21
|
-
e.withIcon ? (a(), n(o, {
|
|
22
|
-
key: 0,
|
|
23
|
-
height: "15px",
|
|
24
|
-
width: "15px"
|
|
25
|
-
})) : i("", !0),
|
|
26
|
-
s(o, {
|
|
27
|
-
height: "15px",
|
|
28
|
-
width: "30%"
|
|
29
|
-
})
|
|
30
|
-
])),
|
|
31
|
-
s(o, {
|
|
32
|
-
height: e.isTextArea ? "82px" : "44px",
|
|
33
|
-
width: "100%",
|
|
34
|
-
"border-radius": "6px"
|
|
35
|
-
}, null, 8, ["height"])
|
|
36
|
-
], 2));
|
|
37
|
-
}
|
|
38
|
-
}), u = /* @__PURE__ */ r(c, [["__scopeId", "data-v-992f78a1"]]);
|
|
39
|
-
export {
|
|
40
|
-
u as F
|
|
41
|
-
};
|
|
Binary file
|
|
Binary file
|
package/dist/_-KavQ60qi.js.br
DELETED
|
Binary file
|