@reinosoft-ui/core 0.1.14 → 0.1.16
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/components/Icon/types.d.ts +13 -13
- package/dist/reinosoft-ui.es.js +1020 -1019
- package/dist/reinosoft-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/reinosoft-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as _, ref as C, computed as $, watch as Y, onMounted as te, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as se, renderSlot as
|
|
2
|
-
const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"],
|
|
1
|
+
import { defineComponent as _, ref as C, computed as $, watch as Y, onMounted as te, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as se, renderSlot as U, createCommentVNode as F, withDirectives as Ve, createElementVNode as g, vShow as Oe, mergeProps as Ce, onUnmounted as ge, Fragment as ae, withKeys as fe, unref as R, toDisplayString as P, renderList as de, createBlock as W, Transition as $e, withCtx as G, withModifiers as ne, nextTick as Le, mergeModels as oe, useModel as pe, useId as ie, provide as be, createVNode as K, createTextVNode as me, onBeforeUnmount as He, Teleport as Be, resolveDynamicComponent as Ie, useAttrs as ze, inject as le, h as N, useSlots as qe, resolveComponent as C1, vModelRadio as p1, vModelDynamic as m1, reactive as o1, TransitionGroup as h1, createApp as y1, shallowRef as b1 } from "vue";
|
|
2
|
+
const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], M1 = /* @__PURE__ */ _({
|
|
3
3
|
__name: "Image",
|
|
4
4
|
props: {
|
|
5
5
|
src: {},
|
|
@@ -15,13 +15,13 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["loaded", "error"],
|
|
17
17
|
setup(e, { emit: o }) {
|
|
18
|
-
const t = e, a = o,
|
|
18
|
+
const t = e, a = o, r = C(t.src), s = C(), i = C("loading"), n = $(() => t.ratio ? {
|
|
19
19
|
aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
|
|
20
|
-
} : void 0),
|
|
20
|
+
} : void 0), l = () => {
|
|
21
21
|
i.value = "loaded", a("loaded");
|
|
22
22
|
}, c = () => {
|
|
23
|
-
if (t.fallbackSrc &&
|
|
24
|
-
|
|
23
|
+
if (t.fallbackSrc && r.value !== t.fallbackSrc) {
|
|
24
|
+
r.value = t.fallbackSrc, i.value = "loading";
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
i.value = "error", a("error");
|
|
@@ -29,7 +29,7 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
29
29
|
return Y(
|
|
30
30
|
() => t.src,
|
|
31
31
|
(d) => {
|
|
32
|
-
|
|
32
|
+
r.value = d, i.value = "loading";
|
|
33
33
|
}
|
|
34
34
|
), te(() => s.value?.complete && s.value.naturalWidth > 0 && (i.value = "loaded")), (d, h) => (v(), f("div", {
|
|
35
35
|
class: se(["ui-image", {
|
|
@@ -41,61 +41,61 @@ const g1 = ["aria-busy"], k1 = ["aria-label"], w1 = ["src", "srcset", "sizes", "
|
|
|
41
41
|
style: ye(n.value),
|
|
42
42
|
"aria-busy": i.value === "loading" || void 0
|
|
43
43
|
}, [
|
|
44
|
-
i.value === "loading" ?
|
|
44
|
+
i.value === "loading" ? U(d.$slots, "placeholder", { key: 0 }, () => [
|
|
45
45
|
h[0] || (h[0] = g("div", {
|
|
46
46
|
class: "ui-image__placeholder",
|
|
47
47
|
"aria-hidden": "true"
|
|
48
48
|
}, null, -1))
|
|
49
|
-
], !0) : i.value === "error" ?
|
|
49
|
+
], !0) : i.value === "error" ? U(d.$slots, "fallback", { key: 1 }, () => [
|
|
50
50
|
g("div", {
|
|
51
51
|
class: "ui-image__fallback",
|
|
52
52
|
role: "img",
|
|
53
53
|
"aria-label": e.decorative ? void 0 : e.alt
|
|
54
54
|
}, "Image not available", 8, k1)
|
|
55
|
-
], !0) :
|
|
55
|
+
], !0) : F("", !0),
|
|
56
56
|
Ve(g("img", {
|
|
57
57
|
ref_key: "imgRef",
|
|
58
58
|
ref: s,
|
|
59
59
|
class: "ui-image__img",
|
|
60
|
-
src:
|
|
60
|
+
src: r.value,
|
|
61
61
|
srcset: e.srcset,
|
|
62
62
|
sizes: e.sizes,
|
|
63
63
|
alt: e.decorative ? "" : e.alt,
|
|
64
64
|
"aria-hidden": e.decorative || void 0,
|
|
65
65
|
loading: e.lazy ? "lazy" : void 0,
|
|
66
66
|
decoding: e.decoding,
|
|
67
|
-
onLoad:
|
|
67
|
+
onLoad: l,
|
|
68
68
|
onError: c
|
|
69
69
|
}, null, 40, w1), [
|
|
70
|
-
[
|
|
70
|
+
[Oe, i.value !== "error"]
|
|
71
71
|
])
|
|
72
72
|
], 14, g1));
|
|
73
73
|
}
|
|
74
|
-
}),
|
|
74
|
+
}), j = (e, o) => {
|
|
75
75
|
const t = e.__vccOpts || e;
|
|
76
|
-
for (const [a,
|
|
77
|
-
t[a] =
|
|
76
|
+
for (const [a, r] of o)
|
|
77
|
+
t[a] = r;
|
|
78
78
|
return t;
|
|
79
|
-
}, xe = /* @__PURE__ */
|
|
79
|
+
}, xe = /* @__PURE__ */ j(M1, [["__scopeId", "data-v-4c5a40da"]]);
|
|
80
80
|
xe.install = (e) => {
|
|
81
81
|
e.component("Image", xe);
|
|
82
82
|
};
|
|
83
|
-
const
|
|
83
|
+
const L1 = /* @__PURE__ */ _({
|
|
84
84
|
__name: "Button",
|
|
85
85
|
setup(e, { expose: o }) {
|
|
86
86
|
const t = C();
|
|
87
87
|
return o({
|
|
88
88
|
el: t
|
|
89
|
-
}), (a,
|
|
89
|
+
}), (a, r) => (v(), f("button", Ce({
|
|
90
90
|
ref_key: "rootRef",
|
|
91
91
|
ref: t,
|
|
92
92
|
type: "button",
|
|
93
93
|
class: "btn"
|
|
94
94
|
}, a.$attrs), [
|
|
95
|
-
|
|
95
|
+
U(a.$slots, "default", {}, void 0, !0)
|
|
96
96
|
], 16));
|
|
97
97
|
}
|
|
98
|
-
}), he = /* @__PURE__ */
|
|
98
|
+
}), he = /* @__PURE__ */ j(L1, [["__scopeId", "data-v-b46162b4"]]);
|
|
99
99
|
he.install = (e) => {
|
|
100
100
|
e.component("Button", he);
|
|
101
101
|
};
|
|
@@ -114,7 +114,7 @@ const n1 = (e) => {
|
|
|
114
114
|
}, $1 = (e) => e.replaceWith(...Array.from(e.childNodes)), I1 = (e = "p") => {
|
|
115
115
|
const o = document.createElement(e);
|
|
116
116
|
return o.dataset.block = "", o.innerHTML = "<br>", o;
|
|
117
|
-
},
|
|
117
|
+
}, Xe = (e) => {
|
|
118
118
|
const o = document.createRange(), t = window.getSelection();
|
|
119
119
|
o.selectNodeContents(e), o.collapse(!0), t?.removeAllRanges(), t?.addRange(o);
|
|
120
120
|
}, V1 = (e, o) => {
|
|
@@ -127,40 +127,40 @@ const n1 = (e) => {
|
|
|
127
127
|
e.preventDefault();
|
|
128
128
|
const t = window.getSelection();
|
|
129
129
|
if (!t || t.rangeCount === 0) return;
|
|
130
|
-
const a = t.getRangeAt(0),
|
|
131
|
-
if (!
|
|
130
|
+
const a = t.getRangeAt(0), r = n1(a.startContainer);
|
|
131
|
+
if (!r) return;
|
|
132
132
|
const i = I1("p");
|
|
133
|
-
document.createRange().selectNodeContents(
|
|
134
|
-
const
|
|
135
|
-
c.selectNodeContents(
|
|
133
|
+
document.createRange().selectNodeContents(r);
|
|
134
|
+
const l = a.cloneRange(), c = document.createRange();
|
|
135
|
+
c.selectNodeContents(r), c.setEnd(l.startContainer, l.startOffset);
|
|
136
136
|
const d = c.cloneContents(), h = document.createRange();
|
|
137
|
-
h.selectNodeContents(
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
137
|
+
h.selectNodeContents(r), h.setStart(l.startContainer, l.startOffset);
|
|
138
|
+
const L = h.cloneContents();
|
|
139
|
+
r.innerHTML = "", r.appendChild(d), r.innerHTML === "" && (r.innerHTML = "<br>"), i.innerHTML = "", i.appendChild(L), i.innerHTML === "" && (i.innerHTML = "<br>"), r.after(i);
|
|
140
|
+
const M = document.createRange();
|
|
141
|
+
M.setStart(i, 0), M.collapse(!0), t.removeAllRanges(), t.addRange(M), o?.normalize();
|
|
142
142
|
}, B1 = () => {
|
|
143
143
|
const e = window.getSelection();
|
|
144
144
|
if (!e || e.rangeCount === 0) return;
|
|
145
145
|
const o = e.getRangeAt(0), t = document.createElement("br");
|
|
146
146
|
o.insertNode(t), o.setStartAfter(t), o.collapse(!0), e.removeAllRanges(), e.addRange(o);
|
|
147
|
-
},
|
|
147
|
+
}, Ge = (e) => {
|
|
148
148
|
const o = window.getSelection();
|
|
149
149
|
if (!o || o.rangeCount === 0) return;
|
|
150
150
|
const t = o.getRangeAt(0), a = n1(t.startContainer);
|
|
151
151
|
if (!a || !(a.textContent === "" || a.innerHTML === "<br>")) return;
|
|
152
152
|
const s = a.previousElementSibling, i = a.nextElementSibling;
|
|
153
153
|
if (e.preventDefault(), !s && !i) {
|
|
154
|
-
a.innerHTML = "<br>",
|
|
154
|
+
a.innerHTML = "<br>", Xe(a);
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
s && s.dataset.block !== void 0 ? (a.remove(), _1(s)) : i && i.dataset.block !== void 0 && (a.remove(),
|
|
157
|
+
s && s.dataset.block !== void 0 ? (a.remove(), _1(s)) : i && i.dataset.block !== void 0 && (a.remove(), Xe(i));
|
|
158
158
|
}, _1 = (e) => {
|
|
159
159
|
const o = document.createRange(), t = window.getSelection();
|
|
160
160
|
o.selectNodeContents(e), o.collapse(!1), t?.removeAllRanges(), t?.addRange(o);
|
|
161
161
|
}, R1 = (e, o) => {
|
|
162
162
|
const t = C(null), a = o?.buttons ?? [];
|
|
163
|
-
let
|
|
163
|
+
let r = C(null);
|
|
164
164
|
const s = () => {
|
|
165
165
|
const p = e;
|
|
166
166
|
if (!p) return;
|
|
@@ -171,52 +171,52 @@ const n1 = (e) => {
|
|
|
171
171
|
}, i = (p) => {
|
|
172
172
|
const x = window.getSelection();
|
|
173
173
|
if (!x || x.rangeCount === 0 || x.isCollapsed) return !1;
|
|
174
|
-
const V = x.getRangeAt(0),
|
|
175
|
-
if (!
|
|
176
|
-
const Z = n(V,
|
|
174
|
+
const V = x.getRangeAt(0), z = e;
|
|
175
|
+
if (!z) return !1;
|
|
176
|
+
const Z = n(V, z), q = [];
|
|
177
177
|
if (Z.forEach((m) => {
|
|
178
178
|
const b = m === V.startContainer ? V.startOffset : 0, T = m === V.endContainer ? V.endOffset : m.textContent.length;
|
|
179
179
|
if (b === T) return;
|
|
180
180
|
let w;
|
|
181
181
|
b === 0 && T === m.textContent.length ? w = m : (w = m.splitText(b), T - b < w.textContent.length && w.splitText(T - b));
|
|
182
|
-
const A = x1(w, p,
|
|
182
|
+
const A = x1(w, p, z);
|
|
183
183
|
if (A)
|
|
184
|
-
$1(A),
|
|
184
|
+
$1(A), q.push(w);
|
|
185
185
|
else {
|
|
186
186
|
const J = document.createElement(p);
|
|
187
|
-
w.replaceWith(J), J.appendChild(w),
|
|
187
|
+
w.replaceWith(J), J.appendChild(w), q.push(w);
|
|
188
188
|
}
|
|
189
|
-
}),
|
|
189
|
+
}), q.length > 0) {
|
|
190
190
|
const m = document.createRange();
|
|
191
|
-
m.setStart(
|
|
192
|
-
const b =
|
|
191
|
+
m.setStart(q[0], 0);
|
|
192
|
+
const b = q[q.length - 1];
|
|
193
193
|
m.setEnd(b, b.textContent.length), x.removeAllRanges(), x.addRange(m), s();
|
|
194
194
|
}
|
|
195
|
-
return
|
|
195
|
+
return M(), u(p);
|
|
196
196
|
}, n = (p, x) => {
|
|
197
197
|
if (!p || !x || !(x instanceof HTMLElement)) return [];
|
|
198
|
-
const V = p.commonAncestorContainer,
|
|
199
|
-
|
|
198
|
+
const V = p.commonAncestorContainer, z = x.contains(V) ? x : V.nodeType === 3 ? V.parentNode : V, Z = document.createTreeWalker(
|
|
199
|
+
z,
|
|
200
200
|
NodeFilter.SHOW_TEXT,
|
|
201
201
|
{
|
|
202
202
|
acceptNode(b) {
|
|
203
203
|
return x.contains(b) && p.intersectsNode(b) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
),
|
|
206
|
+
), q = [];
|
|
207
207
|
let m;
|
|
208
|
-
for (; m = Z.nextNode(); )
|
|
209
|
-
return
|
|
210
|
-
},
|
|
208
|
+
for (; m = Z.nextNode(); ) q.push(m);
|
|
209
|
+
return q;
|
|
210
|
+
}, l = (p) => {
|
|
211
211
|
const x = window.getSelection();
|
|
212
212
|
if (!x || x.rangeCount === 0) return !1;
|
|
213
|
-
const V = x.getRangeAt(0),
|
|
214
|
-
if (!
|
|
215
|
-
const
|
|
216
|
-
for (
|
|
217
|
-
|
|
213
|
+
const V = x.getRangeAt(0), z = c(V.startContainer);
|
|
214
|
+
if (!z) return !1;
|
|
215
|
+
const q = z.tagName.toLowerCase() === p.toLowerCase() ? "p" : p.toLowerCase(), m = document.createElement(q);
|
|
216
|
+
for (q === "blockquote" && m.setAttribute("class", "rs-blockquote"), m.dataset.block = "true"; z.firstChild; ) m.appendChild(z.firstChild);
|
|
217
|
+
z.replaceWith(m);
|
|
218
218
|
const b = document.createRange();
|
|
219
|
-
return b.selectNodeContents(m), x.removeAllRanges(), x.addRange(b), s(),
|
|
219
|
+
return b.selectNodeContents(m), x.removeAllRanges(), x.addRange(b), s(), M(), y(p);
|
|
220
220
|
}, c = (p) => {
|
|
221
221
|
const x = e;
|
|
222
222
|
if (!x) return null;
|
|
@@ -237,31 +237,31 @@ const n1 = (e) => {
|
|
|
237
237
|
if (p.key !== "Enter" || p.shiftKey) return;
|
|
238
238
|
const x = window.getSelection();
|
|
239
239
|
if (!x || x.rangeCount === 0) return;
|
|
240
|
-
const V = x.getRangeAt(0),
|
|
241
|
-
if (!
|
|
240
|
+
const V = x.getRangeAt(0), z = d(V.startContainer, "li");
|
|
241
|
+
if (!z) return;
|
|
242
242
|
p.preventDefault(), p.stopPropagation();
|
|
243
|
-
const Z =
|
|
243
|
+
const Z = z.parentElement;
|
|
244
244
|
if (!Z) return;
|
|
245
|
-
if (
|
|
245
|
+
if (z.textContent?.trim() === "") {
|
|
246
246
|
const b = document.createElement("p");
|
|
247
|
-
b.dataset.block = "true", b.innerHTML = "<br>", Z.after(b),
|
|
247
|
+
b.dataset.block = "true", b.innerHTML = "<br>", Z.after(b), z.remove(), Z.children.length === 0 && Z.remove(), L(b);
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
250
|
const m = document.createElement("li");
|
|
251
|
-
m.innerHTML = "<br>",
|
|
252
|
-
},
|
|
251
|
+
m.innerHTML = "<br>", z.after(m), L(m);
|
|
252
|
+
}, L = (p) => {
|
|
253
253
|
const x = document.createRange(), V = window.getSelection();
|
|
254
254
|
x.selectNodeContents(p), x.collapse(!0), V?.removeAllRanges(), V?.addRange(x);
|
|
255
|
-
},
|
|
255
|
+
}, M = () => {
|
|
256
256
|
e instanceof Node && e.normalize();
|
|
257
257
|
}, u = (p) => {
|
|
258
258
|
const x = t.value;
|
|
259
259
|
if (!x) return !1;
|
|
260
260
|
let V = x.startContainer;
|
|
261
261
|
V.nodeType === Node.TEXT_NODE && (V = V.parentNode);
|
|
262
|
-
const
|
|
263
|
-
if (!
|
|
264
|
-
for (; V && V !==
|
|
262
|
+
const z = e;
|
|
263
|
+
if (!z) return !1;
|
|
264
|
+
for (; V && V !== z; ) {
|
|
265
265
|
if (V instanceof HTMLElement && V.tagName.toLowerCase() === p.toLowerCase()) return !0;
|
|
266
266
|
V = V.parentNode;
|
|
267
267
|
}
|
|
@@ -271,9 +271,9 @@ const n1 = (e) => {
|
|
|
271
271
|
if (!x) return !1;
|
|
272
272
|
let V = x.startContainer;
|
|
273
273
|
V.nodeType === Node.TEXT_NODE && (V = V.parentNode);
|
|
274
|
-
const
|
|
275
|
-
if (!
|
|
276
|
-
for (; V && V !==
|
|
274
|
+
const z = e;
|
|
275
|
+
if (!z) return !1;
|
|
276
|
+
for (; V && V !== z; ) {
|
|
277
277
|
if (V instanceof HTMLElement && V.dataset.block !== void 0 && V.tagName.toLowerCase() === p.toLowerCase()) return !0;
|
|
278
278
|
V = V.parentNode;
|
|
279
279
|
}
|
|
@@ -286,44 +286,44 @@ const n1 = (e) => {
|
|
|
286
286
|
if (!p || !t.value || !p || !p.contains(t.value.commonAncestorContainer)) return;
|
|
287
287
|
const x = window.getSelection();
|
|
288
288
|
x && (x.removeAllRanges(), x.addRange(t.value));
|
|
289
|
-
}, k = () =>
|
|
289
|
+
}, k = () => r.value?.focusFirstButton?.(), D = (p) => {
|
|
290
290
|
const x = window.getSelection();
|
|
291
291
|
if (!x || x.rangeCount === 0) return;
|
|
292
|
-
const V = x.getRangeAt(0),
|
|
293
|
-
if (!
|
|
292
|
+
const V = x.getRangeAt(0), z = c(V.startContainer);
|
|
293
|
+
if (!z) return;
|
|
294
294
|
const Z = V.cloneRange();
|
|
295
|
-
Z.selectNodeContents(
|
|
296
|
-
const
|
|
297
|
-
m.selectNodeContents(
|
|
298
|
-
const b = m.toString().length, T = V.collapsed, w = p(
|
|
299
|
-
|
|
295
|
+
Z.selectNodeContents(z), Z.setEnd(V.startContainer, V.startOffset);
|
|
296
|
+
const q = Z.toString().length, m = V.cloneRange();
|
|
297
|
+
m.selectNodeContents(z), m.setEnd(V.endContainer, V.endOffset);
|
|
298
|
+
const b = m.toString().length, T = V.collapsed, w = p(z);
|
|
299
|
+
z.replaceWith(w);
|
|
300
300
|
const A = document.createTreeWalker(
|
|
301
301
|
w,
|
|
302
302
|
NodeFilter.SHOW_TEXT,
|
|
303
303
|
null
|
|
304
304
|
);
|
|
305
|
-
let J = 0, ce = null, H = 0,
|
|
305
|
+
let J = 0, ce = null, H = 0, O = null, Q = 0;
|
|
306
306
|
for (; A.nextNode(); ) {
|
|
307
|
-
const
|
|
308
|
-
!ce && J +
|
|
307
|
+
const X = A.currentNode, re = X.textContent?.length ?? 0;
|
|
308
|
+
!ce && J + re >= q && (ce = X, H = q - J), !O && J + re >= b && (O = X, Q = b - J), J += re;
|
|
309
309
|
}
|
|
310
310
|
const S = document.createRange();
|
|
311
|
-
ce ? S.setStart(ce, H) : S.setStart(w, 0), !T &&
|
|
311
|
+
ce ? S.setStart(ce, H) : S.setStart(w, 0), !T && O ? S.setEnd(O, Q) : S.collapse(!0), x.removeAllRanges(), x.addRange(S), s(), M();
|
|
312
312
|
}, E = (p) => {
|
|
313
313
|
const x = e.parentElement?.querySelector("#editor-status");
|
|
314
314
|
x && (x.textContent = p, setTimeout(() => x.textContent = "", 2e3));
|
|
315
315
|
};
|
|
316
316
|
return e.addEventListener("keydown", h, { capture: !0 }), {
|
|
317
317
|
toggleInline: i,
|
|
318
|
-
toggleBlock:
|
|
319
|
-
normalize:
|
|
318
|
+
toggleBlock: l,
|
|
319
|
+
normalize: M,
|
|
320
320
|
rootElement: e,
|
|
321
321
|
saveSelection: s,
|
|
322
322
|
restoreSelection: B,
|
|
323
323
|
isInlineActive: u,
|
|
324
324
|
isBlockActive: y,
|
|
325
325
|
focus: I,
|
|
326
|
-
toolbarRef:
|
|
326
|
+
toolbarRef: r,
|
|
327
327
|
focusFirstToolbarButton: k,
|
|
328
328
|
replaceCurrentBlock: D,
|
|
329
329
|
buttons: a,
|
|
@@ -342,7 +342,7 @@ const n1 = (e) => {
|
|
|
342
342
|
ariaLabel: {}
|
|
343
343
|
},
|
|
344
344
|
setup(e, { expose: o }) {
|
|
345
|
-
const t = e, a = C(""),
|
|
345
|
+
const t = e, a = C(""), r = C(null), s = (n) => {
|
|
346
346
|
if (n.ctrlKey || n.metaKey)
|
|
347
347
|
switch (n.altKey && n.key === "F10" && (n.preventDefault(), t.editor?.restoreSelection(), t.editor?.focusFirstToolbarButton()), n.key.toLowerCase()) {
|
|
348
348
|
case "b":
|
|
@@ -358,17 +358,17 @@ const n1 = (e) => {
|
|
|
358
358
|
}, i = () => {
|
|
359
359
|
const n = window.getSelection();
|
|
360
360
|
if (!n || n.rangeCount === 0) return;
|
|
361
|
-
const
|
|
362
|
-
if (!
|
|
361
|
+
const l = r.value;
|
|
362
|
+
if (!l) return;
|
|
363
363
|
const c = n.getRangeAt(0);
|
|
364
|
-
|
|
364
|
+
l.contains(c.commonAncestorContainer) && t.editor?.saveSelection();
|
|
365
365
|
};
|
|
366
366
|
return te(() => document.addEventListener("selectionchange", i)), ge(() => document.removeEventListener("selectionchange", i)), o({
|
|
367
|
-
getRoot: () =>
|
|
368
|
-
}), (n,
|
|
367
|
+
getRoot: () => r
|
|
368
|
+
}), (n, l) => (v(), f(ae, null, [
|
|
369
369
|
g("div", {
|
|
370
370
|
ref_key: "rootRef",
|
|
371
|
-
ref:
|
|
371
|
+
ref: r,
|
|
372
372
|
class: "editor",
|
|
373
373
|
contenteditable: "",
|
|
374
374
|
id: e.editorId,
|
|
@@ -378,28 +378,28 @@ const n1 = (e) => {
|
|
|
378
378
|
"aria-describedby": "editor-help editor-status",
|
|
379
379
|
onKeydown: [
|
|
380
380
|
s,
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
l[0] || (l[0] = fe((c) => R(V1)(c, e.editor), ["enter"])),
|
|
382
|
+
l[1] || (l[1] = fe(
|
|
383
383
|
//@ts-ignore
|
|
384
|
-
(...c) => R(
|
|
384
|
+
(...c) => R(Ge) && R(Ge)(...c),
|
|
385
385
|
["backspace"]
|
|
386
386
|
))
|
|
387
387
|
],
|
|
388
|
-
onMouseup:
|
|
388
|
+
onMouseup: l[2] || (l[2] = //@ts-ignore
|
|
389
389
|
(...c) => e.editor?.saveSelection && e.editor?.saveSelection(...c)),
|
|
390
|
-
onKeyup:
|
|
390
|
+
onKeyup: l[3] || (l[3] = //@ts-ignore
|
|
391
391
|
(...c) => e.editor?.saveSelection && e.editor?.saveSelection(...c))
|
|
392
|
-
}, [...
|
|
392
|
+
}, [...l[4] || (l[4] = [
|
|
393
393
|
g("p", { "data-block": "" }, "Write here...", -1)
|
|
394
394
|
])], 40, Z1),
|
|
395
|
-
g("div", A1,
|
|
396
|
-
|
|
395
|
+
g("div", A1, P(a.value), 1),
|
|
396
|
+
l[5] || (l[5] = g("p", {
|
|
397
397
|
id: "editor-help",
|
|
398
398
|
class: "sr-only"
|
|
399
399
|
}, " Use Ctrl+B for bold, Ctrl+I for italic, Alt+Ctrl+1 for heading level 1. ", -1))
|
|
400
400
|
], 64));
|
|
401
401
|
}
|
|
402
|
-
}), T1 = /* @__PURE__ */
|
|
402
|
+
}), T1 = /* @__PURE__ */ j(S1, [["__scopeId", "data-v-445744be"]]), E1 = {
|
|
403
403
|
viewBox: "0 0 512 512",
|
|
404
404
|
paths: [
|
|
405
405
|
{
|
|
@@ -417,11 +417,11 @@ const n1 = (e) => {
|
|
|
417
417
|
d: "M12 2V4M21 5L19.5 6.5M2.99997 5L4.49997 6.5M12 22C15.6042 22 18.8134 19.6545 20.8772 17.6789C22.3743 16.2458 22.3743 13.7542 20.8772 12.3211C18.8134 10.3455 15.6042 8 12 8C8.3958 8 5.18661 10.3455 3.12281 12.3211C1.62573 13.7542 1.62573 16.2458 3.12281 17.6789C5.18661 19.6545 8.3958 22 12 22ZM15 15C15 16.6569 13.6568 18 12 18C10.3431 18 8.99997 16.6569 8.99997 15C8.99997 13.3431 10.3431 12 12 12C13.6568 12 15 13.3431 15 15Z",
|
|
418
418
|
fill: "none",
|
|
419
419
|
stroke: "currentColor",
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
"stroke-width": 1.5,
|
|
421
|
+
"stroke-linecap": "round"
|
|
422
422
|
}
|
|
423
423
|
]
|
|
424
|
-
},
|
|
424
|
+
}, O1 = {
|
|
425
425
|
viewBox: "0 0 24 24",
|
|
426
426
|
paths: [
|
|
427
427
|
{
|
|
@@ -431,30 +431,30 @@ const n1 = (e) => {
|
|
|
431
431
|
r: 3,
|
|
432
432
|
fill: "none",
|
|
433
433
|
stroke: "currentColor",
|
|
434
|
-
|
|
434
|
+
"stroke-width": 2
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
type: "path",
|
|
438
438
|
d: "M12 1v6M12 17v6M4.22 4.22l4.24 4.24M15.54 15.54l4.24 4.24M1 12h6M17 12h6M4.22 19.78l4.24-4.24M15.54 8.46l4.24-4.24",
|
|
439
439
|
fill: "none",
|
|
440
440
|
stroke: "currentColor",
|
|
441
|
-
|
|
441
|
+
"stroke-width": 2
|
|
442
442
|
}
|
|
443
443
|
]
|
|
444
|
-
},
|
|
444
|
+
}, z1 = {
|
|
445
445
|
viewBox: "0 0 24 24",
|
|
446
446
|
paths: [
|
|
447
447
|
{
|
|
448
448
|
type: "path",
|
|
449
449
|
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",
|
|
450
450
|
stroke: "currentColor",
|
|
451
|
-
|
|
451
|
+
"stroke-width": 2
|
|
452
452
|
},
|
|
453
453
|
{
|
|
454
454
|
type: "polyline",
|
|
455
455
|
points: "3.27,6.96 12,12.01 20.73,6.96",
|
|
456
456
|
stroke: "currentColor",
|
|
457
|
-
|
|
457
|
+
"stroke-width": 2
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
type: "line",
|
|
@@ -463,38 +463,38 @@ const n1 = (e) => {
|
|
|
463
463
|
x2: 12,
|
|
464
464
|
y2: 12,
|
|
465
465
|
stroke: "currentColor",
|
|
466
|
-
|
|
466
|
+
"stroke-width": 2
|
|
467
467
|
}
|
|
468
468
|
]
|
|
469
|
-
},
|
|
469
|
+
}, q1 = {
|
|
470
470
|
viewBox: "0 0 24 24",
|
|
471
471
|
paths: [
|
|
472
472
|
{
|
|
473
473
|
type: "path",
|
|
474
474
|
d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
|
|
475
475
|
stroke: "currentColor",
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
476
|
+
"stroke-width": 2,
|
|
477
|
+
"stroke-linecap": "round",
|
|
478
|
+
"stroke-linejoin": "round"
|
|
479
479
|
}
|
|
480
480
|
]
|
|
481
|
-
},
|
|
481
|
+
}, N1 = {
|
|
482
482
|
viewBox: "0 0 24 24",
|
|
483
483
|
paths: [
|
|
484
484
|
{
|
|
485
485
|
type: "path",
|
|
486
486
|
d: "M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9",
|
|
487
487
|
stroke: "currentColor",
|
|
488
|
-
|
|
488
|
+
"stroke-width": 2
|
|
489
489
|
},
|
|
490
490
|
{
|
|
491
491
|
type: "path",
|
|
492
492
|
d: "M13.73 21a2 2 0 0 1-3.46 0",
|
|
493
493
|
stroke: "currentColor",
|
|
494
|
-
|
|
494
|
+
"stroke-width": 2
|
|
495
495
|
}
|
|
496
496
|
]
|
|
497
|
-
},
|
|
497
|
+
}, F1 = {
|
|
498
498
|
viewBox: "0 0 24 24",
|
|
499
499
|
paths: [
|
|
500
500
|
{
|
|
@@ -506,7 +506,7 @@ const n1 = (e) => {
|
|
|
506
506
|
rx: 2,
|
|
507
507
|
ry: 2,
|
|
508
508
|
stroke: "currentColor",
|
|
509
|
-
|
|
509
|
+
"stroke-width": 2
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
type: "circle",
|
|
@@ -515,17 +515,17 @@ const n1 = (e) => {
|
|
|
515
515
|
r: 1,
|
|
516
516
|
fill: "none",
|
|
517
517
|
stroke: "currentColor",
|
|
518
|
-
|
|
518
|
+
"stroke-width": 2
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
521
|
type: "path",
|
|
522
522
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
523
523
|
fill: "none",
|
|
524
524
|
stroke: "currentColor",
|
|
525
|
-
|
|
525
|
+
"stroke-width": 2
|
|
526
526
|
}
|
|
527
527
|
]
|
|
528
|
-
},
|
|
528
|
+
}, K1 = {
|
|
529
529
|
viewBox: "0 0 24 24",
|
|
530
530
|
paths: [
|
|
531
531
|
{
|
|
@@ -533,11 +533,11 @@ const n1 = (e) => {
|
|
|
533
533
|
d: "M10.0328 3.27141C10.8375 1.5762 13.1625 1.57619 13.9672 3.27141L15.3579 6.20118C15.6774 6.87435 16.2951 7.34094 17.0096 7.44888L20.1193 7.91869C21.9187 8.19053 22.6371 10.4895 21.3351 11.8091L19.0849 14.0896C18.5679 14.6136 18.332 15.3685 18.454 16.1084L18.9852 19.3285C19.2926 21.1918 17.4116 22.6126 15.8022 21.7329L13.0208 20.2126C12.3817 19.8633 11.6183 19.8633 10.9792 20.2126L8.19776 21.7329C6.58839 22.6126 4.70742 21.1918 5.01479 19.3286L5.54599 16.1084C5.66804 15.3685 5.43211 14.6136 4.91508 14.0896L2.66488 11.8091C1.36287 10.4895 2.08133 8.19053 3.88066 7.91869L6.99037 7.44888C7.70489 7.34094 8.32257 6.87435 8.64211 6.20118L10.0328 3.27141Z",
|
|
534
534
|
fill: "none",
|
|
535
535
|
stroke: "currentColor",
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
"stroke-width": 1.5,
|
|
537
|
+
"stroke-linecap": "round"
|
|
538
538
|
}
|
|
539
539
|
]
|
|
540
|
-
},
|
|
540
|
+
}, P1 = {
|
|
541
541
|
viewBox: "0 0 24 24",
|
|
542
542
|
paths: [
|
|
543
543
|
{
|
|
@@ -545,11 +545,11 @@ const n1 = (e) => {
|
|
|
545
545
|
d: "M22 12V18C22 20.2091 20.2091 22 18 22H6C3.79086 22 2 20.2091 2 18V6C2 3.79086 3.79086 2 6 2H12M15.6864 4.02275C15.6864 4.02275 15.6864 5.45305 17.1167 6.88334C18.547 8.31364 19.9773 8.31364 19.9773 8.31364M9.15467 15.9896L12.1583 15.5605C12.5916 15.4986 12.9931 15.2978 13.3025 14.9884L21.4076 6.88334C22.1975 6.09341 22.1975 4.81268 21.4076 4.02275L19.9773 2.59245C19.1873 1.80252 17.9066 1.80252 17.1167 2.59245L9.01164 10.6975C8.70217 11.0069 8.50142 11.4084 8.43952 11.8417L8.01044 14.8453C7.91508 15.5128 8.4872 16.0849 9.15467 15.9896Z",
|
|
546
546
|
fill: "none",
|
|
547
547
|
stroke: "currentColor",
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
"stroke-width": 1.5,
|
|
549
|
+
"stroke-linecap": "round"
|
|
550
550
|
}
|
|
551
551
|
]
|
|
552
|
-
},
|
|
552
|
+
}, U1 = {
|
|
553
553
|
viewBox: "0 0 24 24",
|
|
554
554
|
paths: [
|
|
555
555
|
{
|
|
@@ -557,12 +557,12 @@ const n1 = (e) => {
|
|
|
557
557
|
d: "M10 18H14M16.1804 22H7.81965C5.5109 22 3.6393 20.214 3.6393 18.0108V13.133C3.6393 12.4248 3.34447 11.7456 2.81969 11.2448C1.60381 10.0845 1.76187 8.16205 3.15251 7.19692L9.54124 2.763C11.0071 1.74567 12.9929 1.74567 14.4588 2.763L20.8475 7.19691C22.2381 8.16205 22.3962 10.0845 21.1803 11.2448C20.6555 11.7456 20.3607 12.4248 20.3607 13.133V18.0108C20.3607 20.214 18.4891 22 16.1804 22Z",
|
|
558
558
|
fill: "none",
|
|
559
559
|
stroke: "currentColor",
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
560
|
+
"stroke-width": 1.5,
|
|
561
|
+
"stroke-linecap": "round",
|
|
562
|
+
"stroke-linejoin": "round"
|
|
563
563
|
}
|
|
564
564
|
]
|
|
565
|
-
},
|
|
565
|
+
}, j1 = {
|
|
566
566
|
viewBox: "0 0 24 24",
|
|
567
567
|
paths: [
|
|
568
568
|
{
|
|
@@ -578,7 +578,7 @@ const n1 = (e) => {
|
|
|
578
578
|
fill: "currentColor"
|
|
579
579
|
}
|
|
580
580
|
]
|
|
581
|
-
},
|
|
581
|
+
}, X1 = {
|
|
582
582
|
viewBox: "0 0 24 24",
|
|
583
583
|
paths: [
|
|
584
584
|
{
|
|
@@ -587,7 +587,7 @@ const n1 = (e) => {
|
|
|
587
587
|
fill: "currentColor"
|
|
588
588
|
}
|
|
589
589
|
]
|
|
590
|
-
},
|
|
590
|
+
}, G1 = {
|
|
591
591
|
viewBox: "0 0 24 24",
|
|
592
592
|
paths: [
|
|
593
593
|
{
|
|
@@ -596,7 +596,7 @@ const n1 = (e) => {
|
|
|
596
596
|
fill: "currentColor"
|
|
597
597
|
}
|
|
598
598
|
]
|
|
599
|
-
},
|
|
599
|
+
}, W1 = {
|
|
600
600
|
viewBox: "0 0 24 24",
|
|
601
601
|
paths: [
|
|
602
602
|
{
|
|
@@ -644,9 +644,9 @@ const n1 = (e) => {
|
|
|
644
644
|
d: "M5 13L8.52642 15.8211C9.35374 16.483 10.5536 16.3848 11.2624 15.5973L19 7",
|
|
645
645
|
fill: "none",
|
|
646
646
|
stroke: "currentColor",
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
647
|
+
"stroke-width": 1.5,
|
|
648
|
+
"stroke-linecap": "round",
|
|
649
|
+
"stroke-linejoin": "round"
|
|
650
650
|
}
|
|
651
651
|
]
|
|
652
652
|
}, et = {
|
|
@@ -670,7 +670,7 @@ const n1 = (e) => {
|
|
|
670
670
|
rx: 2,
|
|
671
671
|
ry: 2,
|
|
672
672
|
stroke: "currentColor",
|
|
673
|
-
|
|
673
|
+
"stroke-width": 2
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
676
|
type: "line",
|
|
@@ -679,7 +679,7 @@ const n1 = (e) => {
|
|
|
679
679
|
x2: 23,
|
|
680
680
|
y2: 10,
|
|
681
681
|
stroke: "currentColor",
|
|
682
|
-
|
|
682
|
+
"stroke-width": 2
|
|
683
683
|
}
|
|
684
684
|
]
|
|
685
685
|
}, at = {
|
|
@@ -764,12 +764,12 @@ const n1 = (e) => {
|
|
|
764
764
|
d: "M16.2427 7.75738L7.75739 16.2427M16.2427 16.2426L7.75739 7.75732",
|
|
765
765
|
fill: "none",
|
|
766
766
|
stroke: "currentColor",
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
767
|
+
"stroke-width": 1.5,
|
|
768
|
+
"stroke-linecap": "round",
|
|
769
|
+
"stroke-linejoin": "round"
|
|
770
770
|
}
|
|
771
771
|
]
|
|
772
|
-
},
|
|
772
|
+
}, lt = {
|
|
773
773
|
viewBox: "0 0 24 24",
|
|
774
774
|
paths: [
|
|
775
775
|
{
|
|
@@ -778,7 +778,7 @@ const n1 = (e) => {
|
|
|
778
778
|
fill: "currentColor"
|
|
779
779
|
}
|
|
780
780
|
]
|
|
781
|
-
},
|
|
781
|
+
}, rt = {
|
|
782
782
|
viewBox: "0 0 24 24",
|
|
783
783
|
paths: [
|
|
784
784
|
{
|
|
@@ -786,13 +786,13 @@ const n1 = (e) => {
|
|
|
786
786
|
d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",
|
|
787
787
|
fill: "none",
|
|
788
788
|
stroke: "currentColor",
|
|
789
|
-
|
|
789
|
+
"stroke-width": 2
|
|
790
790
|
},
|
|
791
791
|
{
|
|
792
792
|
type: "polyline",
|
|
793
793
|
points: "10,17 15,12 10,7",
|
|
794
794
|
stroke: "currentColor",
|
|
795
|
-
|
|
795
|
+
"stroke-width": 2
|
|
796
796
|
},
|
|
797
797
|
{
|
|
798
798
|
type: "line",
|
|
@@ -801,7 +801,7 @@ const n1 = (e) => {
|
|
|
801
801
|
x2: 3,
|
|
802
802
|
y2: 12,
|
|
803
803
|
stroke: "currentColor",
|
|
804
|
-
|
|
804
|
+
"stroke-width": 2
|
|
805
805
|
}
|
|
806
806
|
]
|
|
807
807
|
}, st = {
|
|
@@ -812,9 +812,9 @@ const n1 = (e) => {
|
|
|
812
812
|
d: "M19 9L18.2841 18.3068C18.1238 20.3908 16.386 22 14.2959 22H9.70412C7.61398 22 5.87621 20.3908 5.71591 18.3068L5 9M21 7C18.4021 5.73398 15.3137 5 12 5C8.68635 5 5.59792 5.73398 3 7M10 5V4C10 2.89543 10.8954 2 12 2C13.1046 2 14 2.89543 14 4V5M10 11V17M14 11V17",
|
|
813
813
|
fill: "none",
|
|
814
814
|
stroke: "currentColor",
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
815
|
+
"stroke-width": 1.5,
|
|
816
|
+
"stroke-linecap": "round",
|
|
817
|
+
"stroke-linejoin": "round"
|
|
818
818
|
}
|
|
819
819
|
]
|
|
820
820
|
}, it = {
|
|
@@ -846,7 +846,7 @@ const n1 = (e) => {
|
|
|
846
846
|
type: "path",
|
|
847
847
|
d: "M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",
|
|
848
848
|
stroke: "currentColor",
|
|
849
|
-
|
|
849
|
+
"stroke-width": 2
|
|
850
850
|
}
|
|
851
851
|
]
|
|
852
852
|
}, dt = {
|
|
@@ -858,7 +858,7 @@ const n1 = (e) => {
|
|
|
858
858
|
cy: 5,
|
|
859
859
|
r: 3,
|
|
860
860
|
stroke: "currentColor",
|
|
861
|
-
|
|
861
|
+
"stroke-width": 2
|
|
862
862
|
},
|
|
863
863
|
{
|
|
864
864
|
type: "circle",
|
|
@@ -866,7 +866,7 @@ const n1 = (e) => {
|
|
|
866
866
|
cy: 12,
|
|
867
867
|
r: 3,
|
|
868
868
|
stroke: "currentColor",
|
|
869
|
-
|
|
869
|
+
"stroke-width": 2
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
872
|
type: "circle",
|
|
@@ -874,7 +874,7 @@ const n1 = (e) => {
|
|
|
874
874
|
cy: 19,
|
|
875
875
|
r: 3,
|
|
876
876
|
stroke: "currentColor",
|
|
877
|
-
|
|
877
|
+
"stroke-width": 2
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
type: "line",
|
|
@@ -883,7 +883,7 @@ const n1 = (e) => {
|
|
|
883
883
|
x2: 15.42,
|
|
884
884
|
y2: 17.49,
|
|
885
885
|
stroke: "currentColor",
|
|
886
|
-
|
|
886
|
+
"stroke-width": 2
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
889
|
type: "line",
|
|
@@ -892,7 +892,7 @@ const n1 = (e) => {
|
|
|
892
892
|
x2: 8.59,
|
|
893
893
|
y2: 10.49,
|
|
894
894
|
stroke: "currentColor",
|
|
895
|
-
|
|
895
|
+
"stroke-width": 2
|
|
896
896
|
}
|
|
897
897
|
]
|
|
898
898
|
}, ct = {
|
|
@@ -902,7 +902,7 @@ const n1 = (e) => {
|
|
|
902
902
|
type: "path",
|
|
903
903
|
d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z",
|
|
904
904
|
stroke: "currentColor",
|
|
905
|
-
|
|
905
|
+
"stroke-width": 2
|
|
906
906
|
}
|
|
907
907
|
]
|
|
908
908
|
}, vt = {
|
|
@@ -953,7 +953,7 @@ const n1 = (e) => {
|
|
|
953
953
|
height: 7,
|
|
954
954
|
rx: 1,
|
|
955
955
|
stroke: "currentColor",
|
|
956
|
-
|
|
956
|
+
"stroke-width": 2
|
|
957
957
|
},
|
|
958
958
|
{
|
|
959
959
|
type: "rect",
|
|
@@ -963,7 +963,7 @@ const n1 = (e) => {
|
|
|
963
963
|
height: 7,
|
|
964
964
|
rx: 1,
|
|
965
965
|
stroke: "currentColor",
|
|
966
|
-
|
|
966
|
+
"stroke-width": 2
|
|
967
967
|
},
|
|
968
968
|
{
|
|
969
969
|
type: "rect",
|
|
@@ -973,7 +973,7 @@ const n1 = (e) => {
|
|
|
973
973
|
height: 7,
|
|
974
974
|
rx: 1,
|
|
975
975
|
stroke: "currentColor",
|
|
976
|
-
|
|
976
|
+
"stroke-width": 2
|
|
977
977
|
},
|
|
978
978
|
{
|
|
979
979
|
type: "rect",
|
|
@@ -983,7 +983,7 @@ const n1 = (e) => {
|
|
|
983
983
|
height: 7,
|
|
984
984
|
rx: 1,
|
|
985
985
|
stroke: "currentColor",
|
|
986
|
-
|
|
986
|
+
"stroke-width": 2
|
|
987
987
|
}
|
|
988
988
|
]
|
|
989
989
|
}, pt = {
|
|
@@ -994,14 +994,14 @@ const n1 = (e) => {
|
|
|
994
994
|
d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",
|
|
995
995
|
fill: "none",
|
|
996
996
|
stroke: "currentColor",
|
|
997
|
-
|
|
997
|
+
"stroke-width": 2
|
|
998
998
|
},
|
|
999
999
|
{
|
|
1000
1000
|
type: "path",
|
|
1001
1001
|
d: "M9 12l2 2 4-4",
|
|
1002
1002
|
fill: "none",
|
|
1003
1003
|
stroke: "currentColor",
|
|
1004
|
-
|
|
1004
|
+
"stroke-width": 2
|
|
1005
1005
|
}
|
|
1006
1006
|
]
|
|
1007
1007
|
}, mt = {
|
|
@@ -1036,13 +1036,13 @@ const n1 = (e) => {
|
|
|
1036
1036
|
d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",
|
|
1037
1037
|
fill: "none",
|
|
1038
1038
|
stroke: "currentColor",
|
|
1039
|
-
|
|
1039
|
+
"stroke-width": 2
|
|
1040
1040
|
},
|
|
1041
1041
|
{
|
|
1042
1042
|
type: "polyline",
|
|
1043
1043
|
points: "10,17 15,12 10,7",
|
|
1044
1044
|
stroke: "currentColor",
|
|
1045
|
-
|
|
1045
|
+
"stroke-width": 2
|
|
1046
1046
|
},
|
|
1047
1047
|
{
|
|
1048
1048
|
type: "line",
|
|
@@ -1051,7 +1051,7 @@ const n1 = (e) => {
|
|
|
1051
1051
|
x2: 3,
|
|
1052
1052
|
y2: 12,
|
|
1053
1053
|
stroke: "currentColor",
|
|
1054
|
-
|
|
1054
|
+
"stroke-width": 2
|
|
1055
1055
|
}
|
|
1056
1056
|
]
|
|
1057
1057
|
}, bt = {
|
|
@@ -1062,8 +1062,8 @@ const n1 = (e) => {
|
|
|
1062
1062
|
d: "M18 15.7661L19.5373 17.3034C20.1542 17.9203 20.1542 18.9204 19.5373 19.5373C18.9204 20.1542 17.9203 20.1542 17.3034 19.5373L15.766 18M4 10.8C4 7.04446 7.04446 4 10.8 4C14.5555 4 17.6 7.04446 17.6 10.8C17.6 14.5555 14.5555 17.6 10.8 17.6C7.04446 17.6 4 14.5555 4 10.8Z",
|
|
1063
1063
|
fill: "none",
|
|
1064
1064
|
stroke: "currentColor",
|
|
1065
|
-
|
|
1066
|
-
|
|
1065
|
+
"stroke-width": 1.5,
|
|
1066
|
+
"stroke-linecap": "round"
|
|
1067
1067
|
}
|
|
1068
1068
|
]
|
|
1069
1069
|
}, gt = {
|
|
@@ -1082,9 +1082,9 @@ const n1 = (e) => {
|
|
|
1082
1082
|
type: "path",
|
|
1083
1083
|
d: "M22 12h-4l-3 9L9 3l-3 9H2",
|
|
1084
1084
|
stroke: "currentColor",
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1085
|
+
"stroke-width": 2,
|
|
1086
|
+
"stroke-linecap": "round",
|
|
1087
|
+
"stroke-linejoin": "round"
|
|
1088
1088
|
}
|
|
1089
1089
|
]
|
|
1090
1090
|
}, wt = {
|
|
@@ -1095,21 +1095,21 @@ const n1 = (e) => {
|
|
|
1095
1095
|
d: "M4.00006 4L20.0001 20M14.0001 14.2361C13.4693 14.7111 12.7684 15 12.0001 15C10.3432 15 9.00006 13.6569 9.00006 12C9.00006 11.2316 9.28891 10.5308 9.76395 10M19.6078 15.6077C20.1792 15.1103 20.6903 14.6099 21.1304 14.1469C22.29 12.9268 22.29 11.0732 21.1304 9.8531C19.1746 7.79533 15.8156 5 12.0001 5C11.1087 5 10.2422 5.15256 9.41276 5.41264M6.50006 6.80338C5.0415 7.73444 3.7977 8.87678 2.86977 9.8531C1.71016 11.0732 1.71016 12.9268 2.86977 14.1469C4.82555 16.2047 8.18455 19 12.0001 19C13.8681 19 15.6268 18.3299 17.1649 17.4044",
|
|
1096
1096
|
fill: "none",
|
|
1097
1097
|
stroke: "currentColor",
|
|
1098
|
-
|
|
1099
|
-
|
|
1098
|
+
"stroke-width": 1.5,
|
|
1099
|
+
"stroke-linecap": "round"
|
|
1100
1100
|
}
|
|
1101
1101
|
]
|
|
1102
|
-
},
|
|
1102
|
+
}, Mt = {
|
|
1103
1103
|
viewBox: "0 0 24 24",
|
|
1104
1104
|
paths: [
|
|
1105
1105
|
{
|
|
1106
1106
|
type: "path",
|
|
1107
1107
|
d: "M20.38 3.46L16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",
|
|
1108
1108
|
stroke: "currentColor",
|
|
1109
|
-
|
|
1109
|
+
"stroke-width": 2
|
|
1110
1110
|
}
|
|
1111
1111
|
]
|
|
1112
|
-
},
|
|
1112
|
+
}, Lt = {
|
|
1113
1113
|
viewBox: "0 0 24 24",
|
|
1114
1114
|
paths: [
|
|
1115
1115
|
{
|
|
@@ -1117,7 +1117,7 @@ const n1 = (e) => {
|
|
|
1117
1117
|
d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2",
|
|
1118
1118
|
fill: "none",
|
|
1119
1119
|
stroke: "currentColor",
|
|
1120
|
-
|
|
1120
|
+
"stroke-width": 2
|
|
1121
1121
|
},
|
|
1122
1122
|
{
|
|
1123
1123
|
type: "circle",
|
|
@@ -1125,7 +1125,7 @@ const n1 = (e) => {
|
|
|
1125
1125
|
cy: 7.5,
|
|
1126
1126
|
r: 4,
|
|
1127
1127
|
stroke: "currentColor",
|
|
1128
|
-
|
|
1128
|
+
"stroke-width": 2
|
|
1129
1129
|
},
|
|
1130
1130
|
{
|
|
1131
1131
|
type: "line",
|
|
@@ -1134,7 +1134,7 @@ const n1 = (e) => {
|
|
|
1134
1134
|
x2: 20,
|
|
1135
1135
|
y2: 14,
|
|
1136
1136
|
stroke: "currentColor",
|
|
1137
|
-
|
|
1137
|
+
"stroke-width": 2
|
|
1138
1138
|
},
|
|
1139
1139
|
{
|
|
1140
1140
|
type: "line",
|
|
@@ -1143,7 +1143,7 @@ const n1 = (e) => {
|
|
|
1143
1143
|
x2: 17,
|
|
1144
1144
|
y2: 11,
|
|
1145
1145
|
stroke: "currentColor",
|
|
1146
|
-
|
|
1146
|
+
"stroke-width": 2
|
|
1147
1147
|
}
|
|
1148
1148
|
]
|
|
1149
1149
|
}, xt = {
|
|
@@ -1154,9 +1154,9 @@ const n1 = (e) => {
|
|
|
1154
1154
|
d: "M12 17H21M12 11H18M12 5H15M3 14.625L4.50518 16.3183C5.30076 17.2134 6.69924 17.2134 7.49482 16.3183L9 14.625M6 17V5",
|
|
1155
1155
|
fill: "none",
|
|
1156
1156
|
stroke: "currentColor",
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1157
|
+
"stroke-width": 1.5,
|
|
1158
|
+
"stroke-linecap": "round",
|
|
1159
|
+
"stroke-linejoin": "round"
|
|
1160
1160
|
}
|
|
1161
1161
|
]
|
|
1162
1162
|
}, $t = {
|
|
@@ -1167,9 +1167,9 @@ const n1 = (e) => {
|
|
|
1167
1167
|
d: "M12 5V2M12 22V19M7.05028 7.05024L4.92896 4.92892M19.0711 19.0711L16.9498 16.9497M19 12H22M2 12H5M16.9497 7.05024L19.071 4.92892M4.92891 19.0711L7.05023 16.9497",
|
|
1168
1168
|
fill: "none",
|
|
1169
1169
|
stroke: "currentColor",
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1170
|
+
"stroke-width": 1.5,
|
|
1171
|
+
"stroke-linecap": "round",
|
|
1172
|
+
"stroke-linejoin": "round"
|
|
1173
1173
|
}
|
|
1174
1174
|
]
|
|
1175
1175
|
}, It = {
|
|
@@ -1197,9 +1197,9 @@ const n1 = (e) => {
|
|
|
1197
1197
|
d: "M11.9999 8.99997V14M4.32789 21H19.6721C21.4445 21 22.5649 19.1433 21.7041 17.6324L14.032 4.16592C13.1464 2.61136 10.8536 2.61136 9.96798 4.16592L2.29587 17.6324C1.4351 19.1433 2.55546 21 4.32789 21Z",
|
|
1198
1198
|
fill: "none",
|
|
1199
1199
|
stroke: "currentColor",
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1200
|
+
"stroke-width": 1.5,
|
|
1201
|
+
"stroke-linecap": "round",
|
|
1202
|
+
"stroke-linejoin": "round"
|
|
1203
1203
|
}
|
|
1204
1204
|
]
|
|
1205
1205
|
}, Ht = {
|
|
@@ -1209,13 +1209,13 @@ const n1 = (e) => {
|
|
|
1209
1209
|
type: "path",
|
|
1210
1210
|
d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z",
|
|
1211
1211
|
stroke: "currentColor",
|
|
1212
|
-
|
|
1212
|
+
"stroke-width": 2
|
|
1213
1213
|
},
|
|
1214
1214
|
{
|
|
1215
1215
|
type: "polygon",
|
|
1216
1216
|
points: "9.75,15.02 15.5,11.75 9.75,8.48",
|
|
1217
1217
|
stroke: "currentColor",
|
|
1218
|
-
|
|
1218
|
+
"stroke-width": 2
|
|
1219
1219
|
}
|
|
1220
1220
|
]
|
|
1221
1221
|
}, Bt = {
|
|
@@ -1226,7 +1226,7 @@ const n1 = (e) => {
|
|
|
1226
1226
|
d: "M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",
|
|
1227
1227
|
fill: "none",
|
|
1228
1228
|
stroke: "currentColor",
|
|
1229
|
-
|
|
1229
|
+
"stroke-width": 2
|
|
1230
1230
|
},
|
|
1231
1231
|
{
|
|
1232
1232
|
type: "rect",
|
|
@@ -1235,7 +1235,7 @@ const n1 = (e) => {
|
|
|
1235
1235
|
width: 4,
|
|
1236
1236
|
height: 12,
|
|
1237
1237
|
stroke: "currentColor",
|
|
1238
|
-
|
|
1238
|
+
"stroke-width": 2
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
1241
|
type: "circle",
|
|
@@ -1244,7 +1244,7 @@ const n1 = (e) => {
|
|
|
1244
1244
|
r: 2,
|
|
1245
1245
|
fill: "none",
|
|
1246
1246
|
stroke: "currentColor",
|
|
1247
|
-
|
|
1247
|
+
"stroke-width": 2
|
|
1248
1248
|
}
|
|
1249
1249
|
]
|
|
1250
1250
|
}, _t = {
|
|
@@ -1259,7 +1259,7 @@ const n1 = (e) => {
|
|
|
1259
1259
|
rx: 2,
|
|
1260
1260
|
ry: 2,
|
|
1261
1261
|
stroke: "currentColor",
|
|
1262
|
-
|
|
1262
|
+
"stroke-width": 2
|
|
1263
1263
|
},
|
|
1264
1264
|
{
|
|
1265
1265
|
type: "line",
|
|
@@ -1268,7 +1268,7 @@ const n1 = (e) => {
|
|
|
1268
1268
|
x2: 16,
|
|
1269
1269
|
y2: 6,
|
|
1270
1270
|
stroke: "currentColor",
|
|
1271
|
-
|
|
1271
|
+
"stroke-width": 2
|
|
1272
1272
|
},
|
|
1273
1273
|
{
|
|
1274
1274
|
type: "line",
|
|
@@ -1277,7 +1277,7 @@ const n1 = (e) => {
|
|
|
1277
1277
|
x2: 8,
|
|
1278
1278
|
y2: 6,
|
|
1279
1279
|
stroke: "currentColor",
|
|
1280
|
-
|
|
1280
|
+
"stroke-width": 2
|
|
1281
1281
|
},
|
|
1282
1282
|
{
|
|
1283
1283
|
type: "line",
|
|
@@ -1286,7 +1286,7 @@ const n1 = (e) => {
|
|
|
1286
1286
|
x2: 21,
|
|
1287
1287
|
y2: 10,
|
|
1288
1288
|
stroke: "currentColor",
|
|
1289
|
-
|
|
1289
|
+
"stroke-width": 2
|
|
1290
1290
|
}
|
|
1291
1291
|
]
|
|
1292
1292
|
}, Rt = {
|
|
@@ -1296,7 +1296,7 @@ const n1 = (e) => {
|
|
|
1296
1296
|
type: "path",
|
|
1297
1297
|
d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z",
|
|
1298
1298
|
stroke: "currentColor",
|
|
1299
|
-
|
|
1299
|
+
"stroke-width": 2
|
|
1300
1300
|
}
|
|
1301
1301
|
]
|
|
1302
1302
|
}, Zt = {
|
|
@@ -1306,7 +1306,7 @@ const n1 = (e) => {
|
|
|
1306
1306
|
type: "path",
|
|
1307
1307
|
d: "M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",
|
|
1308
1308
|
stroke: "currentColor",
|
|
1309
|
-
|
|
1309
|
+
"stroke-width": 2
|
|
1310
1310
|
}
|
|
1311
1311
|
]
|
|
1312
1312
|
}, At = {
|
|
@@ -1339,13 +1339,14 @@ const n1 = (e) => {
|
|
|
1339
1339
|
type: "path",
|
|
1340
1340
|
d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z",
|
|
1341
1341
|
fill: "none",
|
|
1342
|
-
stroke: "currentColor"
|
|
1342
|
+
stroke: "currentColor",
|
|
1343
|
+
"stroke-width": 2
|
|
1343
1344
|
},
|
|
1344
1345
|
{
|
|
1345
1346
|
type: "polyline",
|
|
1346
1347
|
points: "22,6 12,13 2,6",
|
|
1347
1348
|
stroke: "currentColor",
|
|
1348
|
-
|
|
1349
|
+
"stroke-width": 2
|
|
1349
1350
|
}
|
|
1350
1351
|
]
|
|
1351
1352
|
}, Tt = {
|
|
@@ -1356,9 +1357,9 @@ const n1 = (e) => {
|
|
|
1356
1357
|
d: "M12 18H21M12 12H18M12 6H15M3 8.375L4.50518 6.68167C5.30076 5.78664 6.69924 5.78664 7.49482 6.68167L9 8.375M6 6V18",
|
|
1357
1358
|
fill: "none",
|
|
1358
1359
|
stroke: "currentColor",
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1360
|
+
"stroke-width": 1.5,
|
|
1361
|
+
"stroke-linecap": "round",
|
|
1362
|
+
"stroke-linejoin": "round"
|
|
1362
1363
|
}
|
|
1363
1364
|
]
|
|
1364
1365
|
}, Et = {
|
|
@@ -1382,13 +1383,13 @@ const n1 = (e) => {
|
|
|
1382
1383
|
rx: 5,
|
|
1383
1384
|
ry: 5,
|
|
1384
1385
|
stroke: "currentColor",
|
|
1385
|
-
|
|
1386
|
+
"stroke-width": 2
|
|
1386
1387
|
},
|
|
1387
1388
|
{
|
|
1388
1389
|
type: "path",
|
|
1389
1390
|
d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",
|
|
1390
1391
|
stroke: "currentColor",
|
|
1391
|
-
|
|
1392
|
+
"stroke-width": 2
|
|
1392
1393
|
},
|
|
1393
1394
|
{
|
|
1394
1395
|
type: "line",
|
|
@@ -1397,10 +1398,10 @@ const n1 = (e) => {
|
|
|
1397
1398
|
x2: 17.51,
|
|
1398
1399
|
y2: 6.5,
|
|
1399
1400
|
stroke: "currentColor",
|
|
1400
|
-
|
|
1401
|
+
"stroke-width": 2
|
|
1401
1402
|
}
|
|
1402
1403
|
]
|
|
1403
|
-
},
|
|
1404
|
+
}, Ot = {
|
|
1404
1405
|
viewBox: "0 0 24 24",
|
|
1405
1406
|
paths: [
|
|
1406
1407
|
{
|
|
@@ -1408,7 +1409,7 @@ const n1 = (e) => {
|
|
|
1408
1409
|
d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
|
|
1409
1410
|
fill: "none",
|
|
1410
1411
|
stroke: "currentColor",
|
|
1411
|
-
|
|
1412
|
+
"stroke-width": 2
|
|
1412
1413
|
},
|
|
1413
1414
|
{
|
|
1414
1415
|
type: "rect",
|
|
@@ -1420,78 +1421,78 @@ const n1 = (e) => {
|
|
|
1420
1421
|
ry: 1,
|
|
1421
1422
|
fill: "none",
|
|
1422
1423
|
stroke: "currentColor",
|
|
1423
|
-
|
|
1424
|
+
"stroke-width": 2
|
|
1424
1425
|
},
|
|
1425
1426
|
{
|
|
1426
1427
|
type: "path",
|
|
1427
1428
|
d: "M12 11h4",
|
|
1428
1429
|
fill: "none",
|
|
1429
1430
|
stroke: "currentColor",
|
|
1430
|
-
|
|
1431
|
+
"stroke-width": 2
|
|
1431
1432
|
},
|
|
1432
1433
|
{
|
|
1433
1434
|
type: "path",
|
|
1434
1435
|
d: "M12 16h4",
|
|
1435
1436
|
fill: "none",
|
|
1436
1437
|
stroke: "currentColor",
|
|
1437
|
-
|
|
1438
|
+
"stroke-width": 2
|
|
1438
1439
|
},
|
|
1439
1440
|
{
|
|
1440
1441
|
type: "path",
|
|
1441
1442
|
d: "M8 11h.01",
|
|
1442
1443
|
fill: "none",
|
|
1443
1444
|
stroke: "currentColor",
|
|
1444
|
-
|
|
1445
|
+
"stroke-width": 2
|
|
1445
1446
|
},
|
|
1446
1447
|
{
|
|
1447
1448
|
type: "path",
|
|
1448
1449
|
d: "M8 16h.01",
|
|
1449
1450
|
fill: "none",
|
|
1450
1451
|
stroke: "currentColor",
|
|
1451
|
-
|
|
1452
|
+
"stroke-width": 2
|
|
1452
1453
|
}
|
|
1453
1454
|
]
|
|
1454
|
-
},
|
|
1455
|
+
}, zt = {
|
|
1455
1456
|
viewBox: "0 0 24 24",
|
|
1456
1457
|
paths: [
|
|
1457
1458
|
{
|
|
1458
1459
|
type: "path",
|
|
1459
1460
|
d: "M3 21h18",
|
|
1460
1461
|
stroke: "currentColor",
|
|
1461
|
-
|
|
1462
|
+
"stroke-width": 2
|
|
1462
1463
|
},
|
|
1463
1464
|
{
|
|
1464
1465
|
type: "path",
|
|
1465
1466
|
d: "M5 21V7l8-4v18",
|
|
1466
1467
|
stroke: "currentColor",
|
|
1467
|
-
|
|
1468
|
+
"stroke-width": 2
|
|
1468
1469
|
},
|
|
1469
1470
|
{
|
|
1470
1471
|
type: "path",
|
|
1471
1472
|
d: "M19 21V11l-6-4",
|
|
1472
1473
|
stroke: "currentColor",
|
|
1473
|
-
|
|
1474
|
+
"stroke-width": 2
|
|
1474
1475
|
},
|
|
1475
1476
|
{
|
|
1476
1477
|
type: "path",
|
|
1477
1478
|
d: "M9 9v.01",
|
|
1478
1479
|
stroke: "currentColor",
|
|
1479
|
-
|
|
1480
|
+
"stroke-width": 2
|
|
1480
1481
|
},
|
|
1481
1482
|
{
|
|
1482
1483
|
type: "path",
|
|
1483
1484
|
d: "M9 12v.01",
|
|
1484
1485
|
stroke: "currentColor",
|
|
1485
|
-
|
|
1486
|
+
"stroke-width": 2
|
|
1486
1487
|
},
|
|
1487
1488
|
{
|
|
1488
1489
|
type: "path",
|
|
1489
1490
|
d: "M9 15v.01",
|
|
1490
1491
|
stroke: "currentColor",
|
|
1491
|
-
|
|
1492
|
+
"stroke-width": 2
|
|
1492
1493
|
}
|
|
1493
1494
|
]
|
|
1494
|
-
},
|
|
1495
|
+
}, qt = {
|
|
1495
1496
|
viewBox: "0 0 24 24",
|
|
1496
1497
|
paths: [
|
|
1497
1498
|
{
|
|
@@ -1499,10 +1500,10 @@ const n1 = (e) => {
|
|
|
1499
1500
|
d: "M19 12H5M12 19l-7-7 7-7",
|
|
1500
1501
|
fill: "none",
|
|
1501
1502
|
stroke: "currentColor",
|
|
1502
|
-
|
|
1503
|
+
"stroke-width": 2
|
|
1503
1504
|
}
|
|
1504
1505
|
]
|
|
1505
|
-
},
|
|
1506
|
+
}, Nt = {
|
|
1506
1507
|
viewBox: "0 0 24 24",
|
|
1507
1508
|
paths: [
|
|
1508
1509
|
{
|
|
@@ -1511,7 +1512,7 @@ const n1 = (e) => {
|
|
|
1511
1512
|
fill: "currentColor"
|
|
1512
1513
|
}
|
|
1513
1514
|
]
|
|
1514
|
-
},
|
|
1515
|
+
}, Ft = {
|
|
1515
1516
|
viewBox: "0 0 24 24",
|
|
1516
1517
|
paths: [
|
|
1517
1518
|
{
|
|
@@ -1520,16 +1521,16 @@ const n1 = (e) => {
|
|
|
1520
1521
|
cy: 12,
|
|
1521
1522
|
r: 10,
|
|
1522
1523
|
stroke: "currentColor",
|
|
1523
|
-
|
|
1524
|
+
"stroke-width": 2
|
|
1524
1525
|
},
|
|
1525
1526
|
{
|
|
1526
1527
|
type: "path",
|
|
1527
1528
|
d: "M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32",
|
|
1528
1529
|
stroke: "currentColor",
|
|
1529
|
-
|
|
1530
|
+
"stroke-width": 2
|
|
1530
1531
|
}
|
|
1531
1532
|
]
|
|
1532
|
-
},
|
|
1533
|
+
}, Kt = {
|
|
1533
1534
|
viewBox: "0 0 24 24",
|
|
1534
1535
|
paths: [
|
|
1535
1536
|
{
|
|
@@ -1538,44 +1539,44 @@ const n1 = (e) => {
|
|
|
1538
1539
|
fill: "currentColor"
|
|
1539
1540
|
}
|
|
1540
1541
|
]
|
|
1541
|
-
},
|
|
1542
|
+
}, Pt = {
|
|
1542
1543
|
viewBox: "0 0 24 24",
|
|
1543
1544
|
paths: [
|
|
1544
1545
|
{
|
|
1545
1546
|
type: "path",
|
|
1546
1547
|
d: "M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",
|
|
1547
1548
|
stroke: "currentColor",
|
|
1548
|
-
|
|
1549
|
+
"stroke-width": 2
|
|
1549
1550
|
},
|
|
1550
1551
|
{
|
|
1551
1552
|
type: "path",
|
|
1552
1553
|
d: "M7 2v20",
|
|
1553
1554
|
stroke: "currentColor",
|
|
1554
|
-
|
|
1555
|
+
"stroke-width": 2
|
|
1555
1556
|
},
|
|
1556
1557
|
{
|
|
1557
1558
|
type: "path",
|
|
1558
1559
|
d: "M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3z",
|
|
1559
1560
|
stroke: "currentColor",
|
|
1560
|
-
|
|
1561
|
+
"stroke-width": 2
|
|
1561
1562
|
},
|
|
1562
1563
|
{
|
|
1563
1564
|
type: "path",
|
|
1564
1565
|
d: "M19 22v-7",
|
|
1565
1566
|
stroke: "currentColor",
|
|
1566
|
-
|
|
1567
|
+
"stroke-width": 2
|
|
1567
1568
|
}
|
|
1568
1569
|
]
|
|
1569
|
-
},
|
|
1570
|
+
}, Ut = {
|
|
1570
1571
|
viewBox: "0 0 24 24",
|
|
1571
1572
|
paths: [
|
|
1572
1573
|
{
|
|
1573
1574
|
type: "path",
|
|
1574
1575
|
d: "M9 18V5l12-2v13",
|
|
1575
1576
|
stroke: "currentColor",
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1577
|
+
"stroke-width": 2,
|
|
1578
|
+
"stroke-linecap": "round",
|
|
1579
|
+
"stroke-linejoin": "round"
|
|
1579
1580
|
},
|
|
1580
1581
|
{
|
|
1581
1582
|
type: "circle",
|
|
@@ -1583,7 +1584,7 @@ const n1 = (e) => {
|
|
|
1583
1584
|
cy: 18,
|
|
1584
1585
|
r: 3,
|
|
1585
1586
|
stroke: "currentColor",
|
|
1586
|
-
|
|
1587
|
+
"stroke-width": 2
|
|
1587
1588
|
},
|
|
1588
1589
|
{
|
|
1589
1590
|
type: "circle",
|
|
@@ -1591,10 +1592,10 @@ const n1 = (e) => {
|
|
|
1591
1592
|
cy: 16,
|
|
1592
1593
|
r: 3,
|
|
1593
1594
|
stroke: "currentColor",
|
|
1594
|
-
|
|
1595
|
+
"stroke-width": 2
|
|
1595
1596
|
}
|
|
1596
1597
|
]
|
|
1597
|
-
},
|
|
1598
|
+
}, jt = {
|
|
1598
1599
|
viewBox: "0 0 24 24",
|
|
1599
1600
|
paths: [
|
|
1600
1601
|
{
|
|
@@ -1602,12 +1603,12 @@ const n1 = (e) => {
|
|
|
1602
1603
|
d: "M16 6C16 3.79086 14.2091 2 12 2C9.79085 2 7.99999 3.79086 7.99999 6M6.8197 22H17.1803C19.6848 22 21.5733 19.7245 21.1118 17.2628L19.6118 9.26285C19.257 7.37095 17.6051 6 15.6803 6H8.3197C6.39484 6 4.74294 7.37096 4.38821 9.26285L2.88821 17.2628C2.42665 19.7245 4.31515 22 6.8197 22Z",
|
|
1603
1604
|
fill: "none",
|
|
1604
1605
|
stroke: "currentColor",
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1606
|
+
"stroke-width": 1.5,
|
|
1607
|
+
"stroke-linecap": "round",
|
|
1608
|
+
"stroke-linejoin": "round"
|
|
1608
1609
|
}
|
|
1609
1610
|
]
|
|
1610
|
-
},
|
|
1611
|
+
}, Xt = {
|
|
1611
1612
|
viewBox: "0 0 24 24",
|
|
1612
1613
|
paths: [
|
|
1613
1614
|
{
|
|
@@ -1618,7 +1619,7 @@ const n1 = (e) => {
|
|
|
1618
1619
|
clipRule: "evenodd"
|
|
1619
1620
|
}
|
|
1620
1621
|
]
|
|
1621
|
-
},
|
|
1622
|
+
}, Gt = {
|
|
1622
1623
|
viewBox: "0 0 24 24",
|
|
1623
1624
|
paths: [
|
|
1624
1625
|
{
|
|
@@ -1626,37 +1627,37 @@ const n1 = (e) => {
|
|
|
1626
1627
|
d: "M2.58683 10H21.4132M8 14H16M9 18H15M9 2L6 6M15 2L18 6M18.0351 6L5.96486 6C3.45403 6 1.57594 8.32624 2.08312 10.808L3.71804 18.808C4.09787 20.6666 5.71942 22 7.59978 22H16.4002C18.2806 22 19.9021 20.6666 20.282 18.808L21.9169 10.808C22.4241 8.32624 20.546 6 18.0351 6Z",
|
|
1627
1628
|
fill: "none",
|
|
1628
1629
|
stroke: "currentColor",
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1630
|
+
"stroke-width": 1.5,
|
|
1631
|
+
"stroke-linecap": "round",
|
|
1632
|
+
"stroke-linejoin": "round"
|
|
1632
1633
|
}
|
|
1633
1634
|
]
|
|
1634
1635
|
}, Se = {
|
|
1635
1636
|
x: E1,
|
|
1636
1637
|
eye: D1,
|
|
1637
|
-
sun:
|
|
1638
|
-
box:
|
|
1639
|
-
art:
|
|
1640
|
-
bell:
|
|
1641
|
-
lock:
|
|
1642
|
-
star:
|
|
1643
|
-
home:
|
|
1644
|
-
edit:
|
|
1638
|
+
sun: O1,
|
|
1639
|
+
box: z1,
|
|
1640
|
+
art: q1,
|
|
1641
|
+
bell: N1,
|
|
1642
|
+
lock: F1,
|
|
1643
|
+
star: K1,
|
|
1644
|
+
home: U1,
|
|
1645
|
+
edit: P1,
|
|
1645
1646
|
disk: J1,
|
|
1646
1647
|
user: Y1,
|
|
1647
|
-
info:
|
|
1648
|
-
sort:
|
|
1648
|
+
info: j1,
|
|
1649
|
+
sort: W1,
|
|
1649
1650
|
tick: Q1,
|
|
1650
|
-
link:
|
|
1651
|
-
head:
|
|
1651
|
+
link: X1,
|
|
1652
|
+
head: G1,
|
|
1652
1653
|
bold: et,
|
|
1653
1654
|
card: tt,
|
|
1654
1655
|
heart: ct,
|
|
1655
1656
|
oList: at,
|
|
1656
1657
|
uList: ot,
|
|
1657
1658
|
close: nt,
|
|
1658
|
-
clock:
|
|
1659
|
-
login:
|
|
1659
|
+
clock: lt,
|
|
1660
|
+
login: rt,
|
|
1660
1661
|
image: it,
|
|
1661
1662
|
phone: ut,
|
|
1662
1663
|
trash: st,
|
|
@@ -1672,8 +1673,8 @@ const n1 = (e) => {
|
|
|
1672
1673
|
ticket: gt,
|
|
1673
1674
|
search: bt,
|
|
1674
1675
|
eyeOff: wt,
|
|
1675
|
-
fashion:
|
|
1676
|
-
addUser:
|
|
1676
|
+
fashion: Mt,
|
|
1677
|
+
addUser: Lt,
|
|
1677
1678
|
loading: $t,
|
|
1678
1679
|
sortAsc: xt,
|
|
1679
1680
|
profile: It,
|
|
@@ -1687,19 +1688,19 @@ const n1 = (e) => {
|
|
|
1687
1688
|
envelope: St,
|
|
1688
1689
|
sortDesc: Tt,
|
|
1689
1690
|
location: Et,
|
|
1690
|
-
clipboard:
|
|
1691
|
-
corporate:
|
|
1691
|
+
clipboard: Ot,
|
|
1692
|
+
corporate: zt,
|
|
1692
1693
|
instagram: Dt,
|
|
1693
|
-
arrowLeft:
|
|
1694
|
-
starSolid:
|
|
1695
|
-
basketball:
|
|
1696
|
-
gastronomy:
|
|
1697
|
-
closeSolid:
|
|
1698
|
-
musicalNote:
|
|
1699
|
-
shoppingBag:
|
|
1700
|
-
directionDown:
|
|
1701
|
-
shoppingBasket:
|
|
1702
|
-
},
|
|
1694
|
+
arrowLeft: qt,
|
|
1695
|
+
starSolid: Nt,
|
|
1696
|
+
basketball: Ft,
|
|
1697
|
+
gastronomy: Pt,
|
|
1698
|
+
closeSolid: Kt,
|
|
1699
|
+
musicalNote: Ut,
|
|
1700
|
+
shoppingBag: jt,
|
|
1701
|
+
directionDown: Xt,
|
|
1702
|
+
shoppingBasket: Gt
|
|
1703
|
+
}, Wt = ["viewBox", "transform", "width", "height"], Jt = /* @__PURE__ */ _({
|
|
1703
1704
|
__name: "Icon",
|
|
1704
1705
|
props: {
|
|
1705
1706
|
name: {},
|
|
@@ -1717,35 +1718,35 @@ const n1 = (e) => {
|
|
|
1717
1718
|
fill: "none",
|
|
1718
1719
|
"aria-hidden": "true"
|
|
1719
1720
|
}, [
|
|
1720
|
-
(v(!0), f(ae, null, de(R(Se)[e.name].paths, (a,
|
|
1721
|
+
(v(!0), f(ae, null, de(R(Se)[e.name].paths, (a, r) => (v(), f(ae, { key: r }, [
|
|
1721
1722
|
a.type === "path" ? (v(), f("path", Ce({
|
|
1722
1723
|
key: 0,
|
|
1723
1724
|
ref_for: !0
|
|
1724
|
-
}, a), null, 16)) :
|
|
1725
|
+
}, a), null, 16)) : F("", !0),
|
|
1725
1726
|
a.type === "circle" ? (v(), f("circle", Ce({
|
|
1726
1727
|
key: 1,
|
|
1727
1728
|
ref_for: !0
|
|
1728
|
-
}, a), null, 16)) :
|
|
1729
|
+
}, a), null, 16)) : F("", !0),
|
|
1729
1730
|
a.type === "line" ? (v(), f("line", Ce({
|
|
1730
1731
|
key: 2,
|
|
1731
1732
|
ref_for: !0
|
|
1732
|
-
}, a), null, 16)) :
|
|
1733
|
+
}, a), null, 16)) : F("", !0),
|
|
1733
1734
|
a.type === "polyline" ? (v(), f("polyline", Ce({
|
|
1734
1735
|
key: 3,
|
|
1735
1736
|
ref_for: !0
|
|
1736
|
-
}, a), null, 16)) :
|
|
1737
|
+
}, a), null, 16)) : F("", !0),
|
|
1737
1738
|
a.type === "rect" ? (v(), f("rect", Ce({
|
|
1738
1739
|
key: 4,
|
|
1739
1740
|
ref_for: !0
|
|
1740
|
-
}, a), null, 16)) :
|
|
1741
|
+
}, a), null, 16)) : F("", !0),
|
|
1741
1742
|
a.type === "polygon" ? (v(), f("polygon", Ce({
|
|
1742
1743
|
key: 5,
|
|
1743
1744
|
ref_for: !0
|
|
1744
|
-
}, a), null, 16)) :
|
|
1745
|
+
}, a), null, 16)) : F("", !0)
|
|
1745
1746
|
], 64))), 128))
|
|
1746
|
-
], 10,
|
|
1747
|
+
], 10, Wt));
|
|
1747
1748
|
}
|
|
1748
|
-
}), ue = /* @__PURE__ */
|
|
1749
|
+
}), ue = /* @__PURE__ */ j(Jt, [["__scopeId", "data-v-dd8423eb"]]), Yt = ["aria-controls"], Qt = ["aria-pressed", "onMousedown", "aria-label"], e2 = { key: 1 }, t2 = /* @__PURE__ */ _({
|
|
1749
1750
|
__name: "FloatingToolbar",
|
|
1750
1751
|
props: {
|
|
1751
1752
|
editor: {},
|
|
@@ -1753,15 +1754,15 @@ const n1 = (e) => {
|
|
|
1753
1754
|
buttons: {}
|
|
1754
1755
|
},
|
|
1755
1756
|
setup(e, { expose: o }) {
|
|
1756
|
-
const t = e, a = C(0),
|
|
1757
|
+
const t = e, a = C(0), r = C(0), s = C(!1), i = C([]);
|
|
1757
1758
|
Y(
|
|
1758
1759
|
s,
|
|
1759
1760
|
(u) => !u && (i.value = [])
|
|
1760
1761
|
);
|
|
1761
1762
|
const n = $(() => ({
|
|
1762
|
-
top: `${
|
|
1763
|
+
top: `${r.value}px`,
|
|
1763
1764
|
left: `${a.value}px`
|
|
1764
|
-
})),
|
|
1765
|
+
})), l = (u, y) => u && (i.value[y] = u), c = $(() => [
|
|
1765
1766
|
{
|
|
1766
1767
|
key: "strong",
|
|
1767
1768
|
label: "bold",
|
|
@@ -1817,8 +1818,8 @@ const n1 = (e) => {
|
|
|
1817
1818
|
...c.value,
|
|
1818
1819
|
...t.editor?.buttons ?? []
|
|
1819
1820
|
]), h = async () => {
|
|
1820
|
-
await
|
|
1821
|
-
},
|
|
1821
|
+
await Le(), i.value[0]?.focus();
|
|
1822
|
+
}, L = (u) => {
|
|
1822
1823
|
const y = i.value, I = y.indexOf(document.activeElement);
|
|
1823
1824
|
if (u.key === "ArrowRight") {
|
|
1824
1825
|
u.preventDefault();
|
|
@@ -1831,7 +1832,7 @@ const n1 = (e) => {
|
|
|
1831
1832
|
y[B]?.focus();
|
|
1832
1833
|
}
|
|
1833
1834
|
u.key === "Home" && (u.preventDefault(), y[0]?.focus()), u.key === "End" && (u.preventDefault(), y[y.length - 1]?.focus()), u.key === "Escape" && (u.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
|
|
1834
|
-
},
|
|
1835
|
+
}, M = () => {
|
|
1835
1836
|
const u = window.getSelection();
|
|
1836
1837
|
if (!u || u.rangeCount === 0) {
|
|
1837
1838
|
s.value = !1;
|
|
@@ -1845,16 +1846,16 @@ const n1 = (e) => {
|
|
|
1845
1846
|
return;
|
|
1846
1847
|
}
|
|
1847
1848
|
const B = I.getBoundingClientRect();
|
|
1848
|
-
a.value = B.left + B.width / 2,
|
|
1849
|
+
a.value = B.left + B.width / 2, r.value = B.top - 45, s.value = !0;
|
|
1849
1850
|
};
|
|
1850
1851
|
return te(() => {
|
|
1851
|
-
document.addEventListener("selectionchange",
|
|
1852
|
+
document.addEventListener("selectionchange", M), window.addEventListener("scroll", M, !0), window.addEventListener("resize", M);
|
|
1852
1853
|
}), ge(() => {
|
|
1853
|
-
document.removeEventListener("selectionchange",
|
|
1854
|
+
document.removeEventListener("selectionchange", M), window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
1854
1855
|
}), o({
|
|
1855
1856
|
focusFirstButton: h
|
|
1856
|
-
}), (u, y) => (v(),
|
|
1857
|
-
default:
|
|
1857
|
+
}), (u, y) => (v(), W($e, { name: "tooltip-fade" }, {
|
|
1858
|
+
default: G(() => [
|
|
1858
1859
|
s.value ? (v(), f("div", {
|
|
1859
1860
|
key: 0,
|
|
1860
1861
|
class: "toolbar",
|
|
@@ -1863,31 +1864,31 @@ const n1 = (e) => {
|
|
|
1863
1864
|
"aria-controls": e.editorId,
|
|
1864
1865
|
style: ye(n.value),
|
|
1865
1866
|
tabindex: "-1",
|
|
1866
|
-
onKeydown:
|
|
1867
|
+
onKeydown: L
|
|
1867
1868
|
}, [
|
|
1868
1869
|
y[0] || (y[0] = g("div", { class: "arrow" }, null, -1)),
|
|
1869
1870
|
(v(!0), f(ae, null, de(d.value, (I, B) => (v(), f("button", {
|
|
1870
1871
|
key: I.key ?? B,
|
|
1871
1872
|
type: "button",
|
|
1872
1873
|
ref_for: !0,
|
|
1873
|
-
ref: (k) =>
|
|
1874
|
+
ref: (k) => l(k, B),
|
|
1874
1875
|
class: se({ "is-active": I.isActive?.(t.editor) }),
|
|
1875
1876
|
"aria-pressed": I.isActive?.(t.editor),
|
|
1876
1877
|
onMousedown: ne((k) => I.action(t.editor), ["prevent"]),
|
|
1877
1878
|
"aria-label": I.ariaLabel
|
|
1878
1879
|
}, [
|
|
1879
|
-
I.type === "icon" ? (v(),
|
|
1880
|
+
I.type === "icon" ? (v(), W(ue, {
|
|
1880
1881
|
key: 0,
|
|
1881
1882
|
name: I.label,
|
|
1882
1883
|
size: I.size ?? 14
|
|
1883
|
-
}, null, 8, ["name", "size"])) : (v(), f("span", e2,
|
|
1884
|
+
}, null, 8, ["name", "size"])) : (v(), f("span", e2, P(I.label), 1))
|
|
1884
1885
|
], 42, Qt))), 128))
|
|
1885
|
-
], 44, Yt)) :
|
|
1886
|
+
], 44, Yt)) : F("", !0)
|
|
1886
1887
|
]),
|
|
1887
1888
|
_: 1
|
|
1888
1889
|
}));
|
|
1889
1890
|
}
|
|
1890
|
-
}), a2 = /* @__PURE__ */
|
|
1891
|
+
}), a2 = /* @__PURE__ */ j(t2, [["__scopeId", "data-v-3f279ebe"]]), o2 = { class: "editor" }, We = /* @__PURE__ */ _({
|
|
1891
1892
|
__name: "Editor",
|
|
1892
1893
|
props: /* @__PURE__ */ oe({
|
|
1893
1894
|
ariaLabel: {},
|
|
@@ -1900,40 +1901,40 @@ const n1 = (e) => {
|
|
|
1900
1901
|
}),
|
|
1901
1902
|
emits: ["update:modelValue"],
|
|
1902
1903
|
setup(e) {
|
|
1903
|
-
const o = pe(e, "modelValue"), t = e, a = ie(),
|
|
1904
|
+
const o = pe(e, "modelValue"), t = e, a = ie(), r = C(), s = C(null), i = C(null);
|
|
1904
1905
|
return Y(
|
|
1905
1906
|
() => o.value,
|
|
1906
1907
|
(n) => {
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1908
|
+
const l = i.value?.getRoot()?.value;
|
|
1909
|
+
l && l.innerHTML !== n && (l.innerHTML = n, s.value?.normalize());
|
|
1909
1910
|
}
|
|
1910
1911
|
), te(() => {
|
|
1911
|
-
const
|
|
1912
|
-
if (!
|
|
1913
|
-
s.value = R1(
|
|
1914
|
-
const c = () => o.value =
|
|
1915
|
-
|
|
1916
|
-
}), be("announce", (n) => s.value?.announce(n)), (n,
|
|
1917
|
-
|
|
1912
|
+
const l = i.value?.getRoot()?.value;
|
|
1913
|
+
if (!l) return;
|
|
1914
|
+
s.value = R1(l, { buttons: t.buttons ?? [] }), s.value && (s.value.toolbarRef = r);
|
|
1915
|
+
const c = () => o.value = l.innerHTML;
|
|
1916
|
+
l.addEventListener("input", c), ge(() => l.removeEventListener("input", c));
|
|
1917
|
+
}), be("announce", (n) => s.value?.announce(n)), (n, l) => (v(), f("section", o2, [
|
|
1918
|
+
K(T1, {
|
|
1918
1919
|
ref_key: "contentRef",
|
|
1919
1920
|
ref: i,
|
|
1920
1921
|
editor: s.value,
|
|
1921
1922
|
"editor-id": R(a),
|
|
1922
1923
|
"aria-label": e.ariaLabel
|
|
1923
1924
|
}, null, 8, ["editor", "editor-id", "aria-label"]),
|
|
1924
|
-
|
|
1925
|
+
K(a2, {
|
|
1925
1926
|
ref_key: "toolbarRef",
|
|
1926
|
-
ref:
|
|
1927
|
+
ref: r,
|
|
1927
1928
|
editor: s.value,
|
|
1928
1929
|
"editor-id": R(a)
|
|
1929
1930
|
}, null, 8, ["editor", "editor-id"])
|
|
1930
1931
|
]));
|
|
1931
1932
|
}
|
|
1932
1933
|
});
|
|
1933
|
-
|
|
1934
|
-
e.component("Editor",
|
|
1934
|
+
We.install = (e) => {
|
|
1935
|
+
e.component("Editor", We);
|
|
1935
1936
|
};
|
|
1936
|
-
const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"],
|
|
1937
|
+
const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"], l2 = ["multiple", "accept", "disabled"], r2 = {
|
|
1937
1938
|
key: 1,
|
|
1938
1939
|
class: "ui-upload__list"
|
|
1939
1940
|
}, s2 = { class: "ui-upload__item--default" }, i2 = { class: "ui-upload__file-name" }, u2 = { class: "ui-upload__file-size" }, d2 = {
|
|
@@ -1974,7 +1975,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
1974
1975
|
}),
|
|
1975
1976
|
emits: /* @__PURE__ */ oe(["select", "upload", "remove"], ["update:modelValue"]),
|
|
1976
1977
|
setup(e, { emit: o }) {
|
|
1977
|
-
const t = pe(e, "modelValue"), a = e,
|
|
1978
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = C(0), i = C(""), n = C(!1), l = ie(), c = C(), d = $(() => t.value), h = $(() => a.maxSize === 1 / 0 ? "Unlimited" : z(a.maxSize)), L = $(() => !a.disabled && (a.multiple || t.value.length === 0)), M = $(() => d.value.some((m) => m.status === "uploading")), u = () => L.value && c.value?.click(), y = () => {
|
|
1978
1979
|
a.disabled || (s.value++, n.value = !0);
|
|
1979
1980
|
}, I = () => {
|
|
1980
1981
|
s.value = Math.max(0, s.value - 1), s.value === 0 && (n.value = !1);
|
|
@@ -2002,7 +2003,7 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2002
2003
|
});
|
|
2003
2004
|
}
|
|
2004
2005
|
if (!b.length) return;
|
|
2005
|
-
|
|
2006
|
+
r("select", b.map((w) => w.file));
|
|
2006
2007
|
const T = [...d.value, ...b];
|
|
2007
2008
|
t.value = T, a.autoUpload && b.forEach(E);
|
|
2008
2009
|
}, E = (m) => {
|
|
@@ -2024,12 +2025,12 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2024
2025
|
m.status = "error", m.error = A, m.controller = void 0, Z(`Failed to upload ${m.file.name}: ${A}`), V();
|
|
2025
2026
|
}
|
|
2026
2027
|
};
|
|
2027
|
-
|
|
2028
|
+
r("upload", m, w);
|
|
2028
2029
|
}, p = (m) => {
|
|
2029
2030
|
m.controller && (m.controller.abort(), m.status = "canceled", m.controller = void 0, Z(`Canceled uploading ${m.file.name}`), V());
|
|
2030
2031
|
}, x = (m) => {
|
|
2031
2032
|
m.status !== "error" && m.status !== "canceled" || E(m);
|
|
2032
|
-
}, V = () => t.value = [...d.value],
|
|
2033
|
+
}, V = () => t.value = [...d.value], z = (m) => {
|
|
2033
2034
|
const b = ["B", "KB", "MB", "GB", "TB"];
|
|
2034
2035
|
let T = 0;
|
|
2035
2036
|
for (; m >= 1024 && T < b.length - 1; )
|
|
@@ -2039,16 +2040,16 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2039
2040
|
i.value = "", requestAnimationFrame(() => {
|
|
2040
2041
|
i.value = m;
|
|
2041
2042
|
});
|
|
2042
|
-
},
|
|
2043
|
-
m.controller && m.controller.abort(),
|
|
2043
|
+
}, q = (m) => {
|
|
2044
|
+
m.controller && m.controller.abort(), r("remove", m), t.value = d.value.filter((b) => b.id !== m.id);
|
|
2044
2045
|
};
|
|
2045
2046
|
return (m, b) => (v(), f("div", {
|
|
2046
2047
|
role: "button",
|
|
2047
2048
|
class: "ui-upload",
|
|
2048
2049
|
tabindex: e.disabled ? -1 : 0,
|
|
2049
2050
|
"aria-label": e.ariaLabel || "File upload area",
|
|
2050
|
-
"aria-describedby": n.value ? R(
|
|
2051
|
-
"aria-busy":
|
|
2051
|
+
"aria-describedby": n.value ? R(l) : void 0,
|
|
2052
|
+
"aria-busy": M.value ? "true" : void 0,
|
|
2052
2053
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
2053
2054
|
"data-disabled": e.disabled || void 0,
|
|
2054
2055
|
"data-dragging": n.value || void 0,
|
|
@@ -2070,102 +2071,102 @@ const n2 = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
|
|
|
2070
2071
|
accept: e.accept,
|
|
2071
2072
|
disabled: e.disabled,
|
|
2072
2073
|
onChange: k
|
|
2073
|
-
}, null, 40,
|
|
2074
|
-
e.multiple || !e.multiple && t.value.length === 0 ?
|
|
2074
|
+
}, null, 40, l2),
|
|
2075
|
+
e.multiple || !e.multiple && t.value.length === 0 ? U(m.$slots, "default", {
|
|
2075
2076
|
key: 0,
|
|
2076
2077
|
dragging: n.value
|
|
2077
2078
|
}, () => [
|
|
2078
|
-
|
|
2079
|
+
K(ue, {
|
|
2079
2080
|
name: "upload",
|
|
2080
2081
|
size: 32
|
|
2081
2082
|
}),
|
|
2082
2083
|
b[6] || (b[6] = g("p", null, "Drag and Drop files here", -1)),
|
|
2083
2084
|
b[7] || (b[7] = g("span", null, "or", -1)),
|
|
2084
|
-
|
|
2085
|
+
K(he, {
|
|
2085
2086
|
type: "button",
|
|
2086
2087
|
class: "btn btn-outline"
|
|
2087
2088
|
}, {
|
|
2088
|
-
default:
|
|
2089
|
+
default: G(() => [...b[5] || (b[5] = [
|
|
2089
2090
|
me("Choose File", -1)
|
|
2090
2091
|
])]),
|
|
2091
2092
|
_: 1
|
|
2092
2093
|
}),
|
|
2093
|
-
g("span", null, "Maximum size: " +
|
|
2094
|
-
], !0) :
|
|
2095
|
-
d.value?.length ? (v(), f("ul",
|
|
2094
|
+
g("span", null, "Maximum size: " + P(h.value), 1)
|
|
2095
|
+
], !0) : F("", !0),
|
|
2096
|
+
d.value?.length ? (v(), f("ul", r2, [
|
|
2096
2097
|
(v(!0), f(ae, null, de(d.value, (T) => (v(), f("li", {
|
|
2097
2098
|
key: T.id,
|
|
2098
2099
|
class: "ui-upload__item"
|
|
2099
2100
|
}, [
|
|
2100
|
-
|
|
2101
|
+
U(m.$slots, "file", {
|
|
2101
2102
|
file: T,
|
|
2102
|
-
remove: () =>
|
|
2103
|
+
remove: () => q(T),
|
|
2103
2104
|
cancel: () => p(T),
|
|
2104
2105
|
retry: () => x(T)
|
|
2105
2106
|
}, () => [
|
|
2106
2107
|
g("div", s2, [
|
|
2107
|
-
g("span", i2,
|
|
2108
|
-
g("span", u2,
|
|
2108
|
+
g("span", i2, P(T.file.name), 1),
|
|
2109
|
+
g("span", u2, P(z(T.file.size)), 1)
|
|
2109
2110
|
]),
|
|
2110
2111
|
T.status === "uploading" ? (v(), f("div", d2, [
|
|
2111
|
-
g("span", c2,
|
|
2112
|
+
g("span", c2, P(T.progress) + "% ", 1),
|
|
2112
2113
|
g("progress", {
|
|
2113
2114
|
class: "ui-upload__progress",
|
|
2114
2115
|
value: T.progress,
|
|
2115
2116
|
max: "100",
|
|
2116
2117
|
"aria-label": `Upload progress for ${T.file.name}`
|
|
2117
2118
|
}, null, 8, v2)
|
|
2118
|
-
])) :
|
|
2119
|
-
T.status === "success" ? (v(), f("span", f2, " Uploaded successful ")) :
|
|
2120
|
-
T.status === "error" ? (v(), f("span", C2,
|
|
2121
|
-
T.status === "canceled" ? (v(), f("span", p2, " Upload canceled ")) :
|
|
2119
|
+
])) : F("", !0),
|
|
2120
|
+
T.status === "success" ? (v(), f("span", f2, " Uploaded successful ")) : F("", !0),
|
|
2121
|
+
T.status === "error" ? (v(), f("span", C2, P(T.error || "Upload failed"), 1)) : F("", !0),
|
|
2122
|
+
T.status === "canceled" ? (v(), f("span", p2, " Upload canceled ")) : F("", !0),
|
|
2122
2123
|
g("div", m2, [
|
|
2123
|
-
T.status === "uploading" ? (v(),
|
|
2124
|
+
T.status === "uploading" ? (v(), W(he, {
|
|
2124
2125
|
key: 0,
|
|
2125
2126
|
type: "button",
|
|
2126
2127
|
class: "btn-danger btn-xs",
|
|
2127
2128
|
onClick: ne((w) => p(T), ["stop"])
|
|
2128
2129
|
}, {
|
|
2129
|
-
default:
|
|
2130
|
+
default: G(() => [...b[8] || (b[8] = [
|
|
2130
2131
|
me(" Cancel ", -1)
|
|
2131
2132
|
])]),
|
|
2132
2133
|
_: 1
|
|
2133
|
-
}, 8, ["onClick"])) :
|
|
2134
|
-
T.status === "error" || T.status === "canceled" ? (v(),
|
|
2134
|
+
}, 8, ["onClick"])) : F("", !0),
|
|
2135
|
+
T.status === "error" || T.status === "canceled" ? (v(), W(he, {
|
|
2135
2136
|
key: 1,
|
|
2136
2137
|
type: "button",
|
|
2137
2138
|
class: "btn-info btn-xs",
|
|
2138
2139
|
onClick: ne((w) => x(T), ["stop"])
|
|
2139
2140
|
}, {
|
|
2140
|
-
default:
|
|
2141
|
+
default: G(() => [...b[9] || (b[9] = [
|
|
2141
2142
|
me(" Retry ", -1)
|
|
2142
2143
|
])]),
|
|
2143
2144
|
_: 1
|
|
2144
|
-
}, 8, ["onClick"])) :
|
|
2145
|
-
T.status !== "uploading" ? (v(),
|
|
2145
|
+
}, 8, ["onClick"])) : F("", !0),
|
|
2146
|
+
T.status !== "uploading" ? (v(), W(he, {
|
|
2146
2147
|
key: 2,
|
|
2147
2148
|
type: "button",
|
|
2148
2149
|
class: "btn-outline btn-xs",
|
|
2149
|
-
onClick: ne((w) =>
|
|
2150
|
+
onClick: ne((w) => q(T), ["stop"]),
|
|
2150
2151
|
"aria-label": "Remove file"
|
|
2151
2152
|
}, {
|
|
2152
|
-
default:
|
|
2153
|
+
default: G(() => [...b[10] || (b[10] = [
|
|
2153
2154
|
me(" Remove ", -1)
|
|
2154
2155
|
])]),
|
|
2155
2156
|
_: 1
|
|
2156
|
-
}, 8, ["onClick"])) :
|
|
2157
|
+
}, 8, ["onClick"])) : F("", !0)
|
|
2157
2158
|
])
|
|
2158
2159
|
], !0)
|
|
2159
2160
|
]))), 128))
|
|
2160
|
-
])) :
|
|
2161
|
-
g("div", h2,
|
|
2161
|
+
])) : F("", !0),
|
|
2162
|
+
g("div", h2, P(i.value), 1),
|
|
2162
2163
|
g("p", {
|
|
2163
|
-
id: R(
|
|
2164
|
+
id: R(l),
|
|
2164
2165
|
class: "sr-only"
|
|
2165
2166
|
}, " Drop files to upload ", 8, y2)
|
|
2166
2167
|
], 40, n2));
|
|
2167
2168
|
}
|
|
2168
|
-
}), Je = /* @__PURE__ */
|
|
2169
|
+
}), Je = /* @__PURE__ */ j(b2, [["__scopeId", "data-v-041ff337"]]);
|
|
2169
2170
|
Je.install = (e) => {
|
|
2170
2171
|
e.component("Upload", Je);
|
|
2171
2172
|
};
|
|
@@ -2174,7 +2175,7 @@ const g2 = (e) => {
|
|
|
2174
2175
|
return window.addEventListener("scroll", o, !0), window.addEventListener("resize", t), () => {
|
|
2175
2176
|
window.removeEventListener("scroll", o, !0), window.removeEventListener("resize", t);
|
|
2176
2177
|
};
|
|
2177
|
-
}, k2 = ["aria-describedby", "aria-disabled", "aria-expanded"], w2 = ["aria-hidden", "data-placement"],
|
|
2178
|
+
}, k2 = ["aria-describedby", "aria-disabled", "aria-expanded"], w2 = ["aria-hidden", "data-placement"], M2 = 8, L2 = 6, x2 = /* @__PURE__ */ _({
|
|
2178
2179
|
__name: "Tooltip",
|
|
2179
2180
|
props: {
|
|
2180
2181
|
content: {},
|
|
@@ -2183,15 +2184,15 @@ const g2 = (e) => {
|
|
|
2183
2184
|
disabled: { type: Boolean, default: !1 }
|
|
2184
2185
|
},
|
|
2185
2186
|
setup(e) {
|
|
2186
|
-
const o = e, t =
|
|
2187
|
-
let
|
|
2187
|
+
const o = e, t = M2 + L2, a = C(!1), r = `tooltip-${ie()}`, s = C(null), i = C(null), n = C({});
|
|
2188
|
+
let l = null, c = null, d = null;
|
|
2188
2189
|
const h = () => {
|
|
2189
|
-
o.disabled || (
|
|
2190
|
-
a.value = !0,
|
|
2190
|
+
o.disabled || (l && (clearTimeout(l), l = null), o.delay ? l = window.setTimeout(() => {
|
|
2191
|
+
a.value = !0, l = null;
|
|
2191
2192
|
}, o.delay) : a.value = !0);
|
|
2192
|
-
}, M = () => {
|
|
2193
|
-
r && (clearTimeout(r), r = null), a.value = !1;
|
|
2194
2193
|
}, L = () => {
|
|
2194
|
+
l && (clearTimeout(l), l = null), a.value = !1;
|
|
2195
|
+
}, M = () => {
|
|
2195
2196
|
if (!s.value || !i.value) return {};
|
|
2196
2197
|
const y = s.value.getBoundingClientRect(), I = i.value.getBoundingClientRect(), B = {
|
|
2197
2198
|
position: "fixed"
|
|
@@ -2212,14 +2213,14 @@ const g2 = (e) => {
|
|
|
2212
2213
|
}
|
|
2213
2214
|
return B;
|
|
2214
2215
|
}, u = () => {
|
|
2215
|
-
n.value =
|
|
2216
|
+
n.value = M();
|
|
2216
2217
|
};
|
|
2217
2218
|
return Y(a, async (y) => {
|
|
2218
2219
|
if (!y) {
|
|
2219
2220
|
c?.(), c = null, d?.disconnect(), d = null;
|
|
2220
2221
|
return;
|
|
2221
2222
|
}
|
|
2222
|
-
await
|
|
2223
|
+
await Le(), u(), c = g2(u), d = new ResizeObserver(u), i.value && d.observe(i.value), s.value && d.observe(s.value);
|
|
2223
2224
|
}), He(() => {
|
|
2224
2225
|
c?.(), d?.disconnect();
|
|
2225
2226
|
}), (y, I) => (v(), f(ae, null, [
|
|
@@ -2227,25 +2228,25 @@ const g2 = (e) => {
|
|
|
2227
2228
|
ref_key: "triggerRef",
|
|
2228
2229
|
ref: s,
|
|
2229
2230
|
class: "tooltip-trigger",
|
|
2230
|
-
"aria-describedby": a.value ?
|
|
2231
|
+
"aria-describedby": a.value ? r : void 0,
|
|
2231
2232
|
"aria-disabled": e.disabled || void 0,
|
|
2232
2233
|
"aria-expanded": a.value || void 0,
|
|
2233
2234
|
onMouseenter: h,
|
|
2234
|
-
onMouseleave:
|
|
2235
|
+
onMouseleave: L,
|
|
2235
2236
|
onFocus: h,
|
|
2236
|
-
onBlur:
|
|
2237
|
-
onKeydown: fe(
|
|
2237
|
+
onBlur: L,
|
|
2238
|
+
onKeydown: fe(L, ["esc"])
|
|
2238
2239
|
}, [
|
|
2239
|
-
|
|
2240
|
+
U(y.$slots, "default", {}, void 0, !0)
|
|
2240
2241
|
], 40, k2),
|
|
2241
|
-
(v(),
|
|
2242
|
-
|
|
2243
|
-
default:
|
|
2242
|
+
(v(), W(Be, { to: "body" }, [
|
|
2243
|
+
K($e, { name: "tooltip-fade" }, {
|
|
2244
|
+
default: G(() => [
|
|
2244
2245
|
a.value ? (v(), f("div", {
|
|
2245
2246
|
key: 0,
|
|
2246
2247
|
ref_key: "tooltipRef",
|
|
2247
2248
|
ref: i,
|
|
2248
|
-
id:
|
|
2249
|
+
id: r,
|
|
2249
2250
|
class: "tooltip-content",
|
|
2250
2251
|
role: "tooltip",
|
|
2251
2252
|
"aria-live": "polite",
|
|
@@ -2254,17 +2255,17 @@ const g2 = (e) => {
|
|
|
2254
2255
|
style: ye(n.value)
|
|
2255
2256
|
}, [
|
|
2256
2257
|
I[0] || (I[0] = g("div", { class: "tooltip-arrow" }, null, -1)),
|
|
2257
|
-
|
|
2258
|
-
me(
|
|
2258
|
+
U(y.$slots, "content", {}, () => [
|
|
2259
|
+
me(P(e.content), 1)
|
|
2259
2260
|
], !0)
|
|
2260
|
-
], 12, w2)) :
|
|
2261
|
+
], 12, w2)) : F("", !0)
|
|
2261
2262
|
]),
|
|
2262
2263
|
_: 3
|
|
2263
2264
|
})
|
|
2264
2265
|
]))
|
|
2265
2266
|
], 64));
|
|
2266
2267
|
}
|
|
2267
|
-
}), Ye = /* @__PURE__ */
|
|
2268
|
+
}), Ye = /* @__PURE__ */ j(x2, [["__scopeId", "data-v-c489ef7b"]]);
|
|
2268
2269
|
Ye.install = (e) => {
|
|
2269
2270
|
e.component("Tooltip", Ye);
|
|
2270
2271
|
};
|
|
@@ -2284,35 +2285,35 @@ const $2 = {
|
|
|
2284
2285
|
},
|
|
2285
2286
|
emits: ["click", "remove"],
|
|
2286
2287
|
setup(e, { emit: o }) {
|
|
2287
|
-
const t = e, a = o,
|
|
2288
|
+
const t = e, a = o, r = C(), s = $(() => t.clickable || t.as === "button" || t.as === "a"), i = $(() => [
|
|
2288
2289
|
`ui-tag--${t.variant}`,
|
|
2289
2290
|
`ui-tag--${t.size}`,
|
|
2290
2291
|
{
|
|
2291
2292
|
"is-clickable": t.clickable,
|
|
2292
2293
|
"is-removable": t.removable
|
|
2293
2294
|
}
|
|
2294
|
-
]), n = $(() => t.clickable && t.as !== "button" && t.as !== "a"),
|
|
2295
|
+
]), n = $(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (d) => {
|
|
2295
2296
|
t.disabled || !s.value || a("click", d);
|
|
2296
2297
|
}, c = () => a("remove");
|
|
2297
|
-
return (d, h) => (v(),
|
|
2298
|
+
return (d, h) => (v(), W(Ie(e.as), {
|
|
2298
2299
|
ref_key: "rootRef",
|
|
2299
|
-
ref:
|
|
2300
|
+
ref: r,
|
|
2300
2301
|
class: se(["ui-tag", i.value]),
|
|
2301
2302
|
"aria-disabled": e.disabled || void 0,
|
|
2302
2303
|
tabindex: e.disabled ? -1 : n.value ? 0 : void 0,
|
|
2303
2304
|
role: n.value ? "button" : void 0,
|
|
2304
|
-
onClick:
|
|
2305
|
+
onClick: l,
|
|
2305
2306
|
onKeydown: [
|
|
2306
|
-
h[0] || (h[0] = fe(ne((
|
|
2307
|
-
h[1] || (h[1] = fe(ne((
|
|
2307
|
+
h[0] || (h[0] = fe(ne((L) => !e.disabled && s.value && l(L), ["prevent"]), ["enter"])),
|
|
2308
|
+
h[1] || (h[1] = fe(ne((L) => !e.disabled && s.value && l(L), ["prevent"]), ["space"]))
|
|
2308
2309
|
]
|
|
2309
2310
|
}, {
|
|
2310
|
-
default:
|
|
2311
|
+
default: G(() => [
|
|
2311
2312
|
d.$slots.icon ? (v(), f("span", $2, [
|
|
2312
|
-
|
|
2313
|
-
])) :
|
|
2313
|
+
U(d.$slots, "icon", {}, void 0, !0)
|
|
2314
|
+
])) : F("", !0),
|
|
2314
2315
|
g("span", I2, [
|
|
2315
|
-
|
|
2316
|
+
U(d.$slots, "default", {}, void 0, !0)
|
|
2316
2317
|
]),
|
|
2317
2318
|
e.removable ? (v(), f("button", {
|
|
2318
2319
|
key: 1,
|
|
@@ -2321,16 +2322,16 @@ const $2 = {
|
|
|
2321
2322
|
"aria-label": `Remove ${e.textContent}`,
|
|
2322
2323
|
onClick: ne(c, ["stop"])
|
|
2323
2324
|
}, [
|
|
2324
|
-
|
|
2325
|
+
K(ue, {
|
|
2325
2326
|
name: "close",
|
|
2326
2327
|
size: 32
|
|
2327
2328
|
})
|
|
2328
|
-
], 8, V2)) :
|
|
2329
|
+
], 8, V2)) : F("", !0)
|
|
2329
2330
|
]),
|
|
2330
2331
|
_: 3
|
|
2331
2332
|
}, 40, ["class", "aria-disabled", "tabindex", "role"]));
|
|
2332
2333
|
}
|
|
2333
|
-
}), B2 = /* @__PURE__ */
|
|
2334
|
+
}), B2 = /* @__PURE__ */ j(H2, [["__scopeId", "data-v-ea48b943"]]), _2 = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], R2 = /* @__PURE__ */ _({
|
|
2334
2335
|
__name: "Link",
|
|
2335
2336
|
props: {
|
|
2336
2337
|
target: {},
|
|
@@ -2340,7 +2341,7 @@ const $2 = {
|
|
|
2340
2341
|
},
|
|
2341
2342
|
emits: ["click"],
|
|
2342
2343
|
setup(e, { emit: o }) {
|
|
2343
|
-
const t = e, a = o,
|
|
2344
|
+
const t = e, a = o, r = (s) => {
|
|
2344
2345
|
if (t.disabled || s.button !== 0) {
|
|
2345
2346
|
s.preventDefault();
|
|
2346
2347
|
return;
|
|
@@ -2352,24 +2353,24 @@ const $2 = {
|
|
|
2352
2353
|
href: e.disabled ? void 0 : e.href,
|
|
2353
2354
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
2354
2355
|
tabindex: e.disabled ? -1 : 0,
|
|
2355
|
-
onClick:
|
|
2356
|
+
onClick: r,
|
|
2356
2357
|
target: e.target,
|
|
2357
2358
|
"aria-current": e.ariaCurrent,
|
|
2358
2359
|
rel: e.target === "_blank" ? "noopener noreferrer" : void 0
|
|
2359
2360
|
}, [
|
|
2360
|
-
|
|
2361
|
+
U(s.$slots, "default", {}, void 0, !0)
|
|
2361
2362
|
], 8, _2));
|
|
2362
2363
|
}
|
|
2363
|
-
}), to = /* @__PURE__ */
|
|
2364
|
-
const
|
|
2365
|
-
return e.invalid && e.errorMessage &&
|
|
2366
|
-
}), _e = (e) => $(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0),
|
|
2364
|
+
}), to = /* @__PURE__ */ j(R2, [["__scopeId", "data-v-0f5d7308"]]), Ne = (e, o, t, a) => $(() => {
|
|
2365
|
+
const r = [];
|
|
2366
|
+
return e.invalid && e.errorMessage && r.push(t), o.hint && r.push(a), r.length > 0 ? r.join(" ") : void 0;
|
|
2367
|
+
}), _e = (e) => $(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), l1 = (e) => $(() => e.disabled === !0 ? "true" : void 0), Fe = (e, o, t) => {
|
|
2367
2368
|
o && (o.classList.add("focused"), t("focus", e));
|
|
2368
|
-
},
|
|
2369
|
+
}, Ke = (e, o, t, a) => {
|
|
2369
2370
|
we(o, t), t && (t?.classList.remove("focused"), a("blur", e));
|
|
2370
2371
|
}, we = (e, o) => {
|
|
2371
2372
|
!e || !o || (e.value.length > 0 ? o.classList.add("filled") : o.classList.remove("filled"));
|
|
2372
|
-
}, Z2 = ["id"],
|
|
2373
|
+
}, Z2 = ["id"], Pe = /* @__PURE__ */ _({
|
|
2373
2374
|
__name: "Hint",
|
|
2374
2375
|
props: {
|
|
2375
2376
|
hintId: {}
|
|
@@ -2380,10 +2381,10 @@ const $2 = {
|
|
|
2380
2381
|
id: e.hintId,
|
|
2381
2382
|
class: "visually-hidden"
|
|
2382
2383
|
}, [
|
|
2383
|
-
|
|
2384
|
-
], 8, Z2)) :
|
|
2384
|
+
U(o.$slots, "default")
|
|
2385
|
+
], 8, Z2)) : F("", !0);
|
|
2385
2386
|
}
|
|
2386
|
-
}), A2 = ["id"],
|
|
2387
|
+
}), A2 = ["id"], Ue = /* @__PURE__ */ _({
|
|
2387
2388
|
__name: "RequiredHint",
|
|
2388
2389
|
props: {
|
|
2389
2390
|
baseId: {},
|
|
@@ -2394,9 +2395,9 @@ const $2 = {
|
|
|
2394
2395
|
key: 0,
|
|
2395
2396
|
id: `${e.baseId}-required-hint`,
|
|
2396
2397
|
class: "visually-hidden"
|
|
2397
|
-
}, " Required field ", 8, A2)) :
|
|
2398
|
+
}, " Required field ", 8, A2)) : F("", !0);
|
|
2398
2399
|
}
|
|
2399
|
-
}), S2 = ["id"],
|
|
2400
|
+
}), S2 = ["id"], je = /* @__PURE__ */ _({
|
|
2400
2401
|
__name: "ErrorMessage",
|
|
2401
2402
|
props: {
|
|
2402
2403
|
errorId: {},
|
|
@@ -2409,7 +2410,7 @@ const $2 = {
|
|
|
2409
2410
|
id: e.errorId,
|
|
2410
2411
|
class: "error-text",
|
|
2411
2412
|
role: "alert"
|
|
2412
|
-
},
|
|
2413
|
+
}, P(e.errorMessage), 9, S2)) : F("", !0);
|
|
2413
2414
|
}
|
|
2414
2415
|
}), T2 = ["for"], E2 = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], D2 = /* @__PURE__ */ _({
|
|
2415
2416
|
__name: "Input",
|
|
@@ -2427,7 +2428,7 @@ const $2 = {
|
|
|
2427
2428
|
}),
|
|
2428
2429
|
emits: /* @__PURE__ */ oe(["focus", "blur"], ["update:modelValue"]),
|
|
2429
2430
|
setup(e, { emit: o }) {
|
|
2430
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2431
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = ze(), i = ie(), n = `${i}-error`, l = `${i}-hint`, c = _e(s).value, d = $(() => c ? `${l} ${i}-required-hint` : l), h = $(() => a.invalid === !0 && a.errorMessage ? n : void 0), L = $(() => a.type === "password" ? I.value ? "text" : "password" : a.type), M = $(() => {
|
|
2431
2432
|
const { type: D, ...E } = s;
|
|
2432
2433
|
return E;
|
|
2433
2434
|
}), u = C(null), y = C(null), I = C(!1), B = () => I.value = !I.value, k = (D) => {
|
|
@@ -2445,61 +2446,61 @@ const $2 = {
|
|
|
2445
2446
|
g("label", {
|
|
2446
2447
|
for: e.id,
|
|
2447
2448
|
class: "label"
|
|
2448
|
-
},
|
|
2449
|
+
}, P(e.label), 9, T2),
|
|
2449
2450
|
g("input", Ce({
|
|
2450
2451
|
id: e.id,
|
|
2451
|
-
type:
|
|
2452
|
-
},
|
|
2452
|
+
type: L.value
|
|
2453
|
+
}, M.value, {
|
|
2453
2454
|
class: "input",
|
|
2454
2455
|
onInput: k,
|
|
2455
|
-
onFocus: E[0] || (E[0] = (p) => R(
|
|
2456
|
-
onBlur: E[1] || (E[1] = (p) => R(
|
|
2456
|
+
onFocus: E[0] || (E[0] = (p) => R(Fe)(p, y.value, r)),
|
|
2457
|
+
onBlur: E[1] || (E[1] = (p) => R(Ke)(p, u.value, y.value, r)),
|
|
2457
2458
|
value: t.value,
|
|
2458
2459
|
required: R(c),
|
|
2459
2460
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2460
2461
|
"aria-errormessage": h.value,
|
|
2461
|
-
"aria-describedby": R(
|
|
2462
|
+
"aria-describedby": R(Ne)(D.$props, D.$slots, n, d.value).value,
|
|
2462
2463
|
ref_key: "inputRef",
|
|
2463
2464
|
ref: u
|
|
2464
2465
|
}), null, 16, E2),
|
|
2465
|
-
|
|
2466
|
-
default:
|
|
2467
|
-
|
|
2466
|
+
K(Pe, { hintId: l }, {
|
|
2467
|
+
default: G(() => [
|
|
2468
|
+
U(D.$slots, "hint", {}, void 0, !0)
|
|
2468
2469
|
]),
|
|
2469
2470
|
_: 3
|
|
2470
2471
|
}),
|
|
2471
|
-
|
|
2472
|
+
K(Ue, {
|
|
2472
2473
|
baseId: R(i),
|
|
2473
2474
|
isRequired: R(c)
|
|
2474
2475
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2475
|
-
|
|
2476
|
+
K(je, {
|
|
2476
2477
|
errorId: n,
|
|
2477
2478
|
invalid: e.invalid,
|
|
2478
2479
|
errorMessage: e.errorMessage
|
|
2479
2480
|
}, null, 8, ["invalid", "errorMessage"]),
|
|
2480
|
-
e.type === "password" ? (v(),
|
|
2481
|
+
e.type === "password" ? (v(), W(he, Ce({ key: 0 }, Object.keys(D.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
|
|
2481
2482
|
type: "button",
|
|
2482
2483
|
class: "btn-icon",
|
|
2483
2484
|
onClick: B,
|
|
2484
2485
|
"aria-label": I.value ? "Hide password" : "Show password"
|
|
2485
2486
|
}), {
|
|
2486
|
-
default:
|
|
2487
|
-
|
|
2487
|
+
default: G(() => [
|
|
2488
|
+
K(ue, {
|
|
2488
2489
|
name: I.value ? "eyeOff" : "eye"
|
|
2489
2490
|
}, null, 8, ["name"])
|
|
2490
2491
|
]),
|
|
2491
2492
|
_: 1
|
|
2492
|
-
}, 16, ["aria-label"])) :
|
|
2493
|
+
}, 16, ["aria-label"])) : F("", !0)
|
|
2493
2494
|
], 2));
|
|
2494
2495
|
}
|
|
2495
|
-
}), ao = /* @__PURE__ */
|
|
2496
|
+
}), ao = /* @__PURE__ */ j(D2, [["__scopeId", "data-v-a4f7bb5b"]]), O2 = ["data-size", "data-shape", "aria-label", "aria-busy"], z2 = {
|
|
2496
2497
|
key: 1,
|
|
2497
2498
|
class: "ui-avatar__loading"
|
|
2498
|
-
},
|
|
2499
|
+
}, q2 = {
|
|
2499
2500
|
key: 2,
|
|
2500
2501
|
class: "ui-avatar__fallback",
|
|
2501
2502
|
"aria-hidden": "true"
|
|
2502
|
-
},
|
|
2503
|
+
}, N2 = /* @__PURE__ */ _({
|
|
2503
2504
|
__name: "Avatar",
|
|
2504
2505
|
props: {
|
|
2505
2506
|
src: {},
|
|
@@ -2509,32 +2510,32 @@ const $2 = {
|
|
|
2509
2510
|
shape: { default: "circle" }
|
|
2510
2511
|
},
|
|
2511
2512
|
setup(e) {
|
|
2512
|
-
const o = e, t = C("loading"), a = $(() => o.src && t.value !== "error"),
|
|
2513
|
+
const o = e, t = C("loading"), a = $(() => o.src && t.value !== "error"), r = $(() => o.name ? o.name.split(" ").map((l) => l[0]).slice(0, 2).join("").toUpperCase() : ""), s = $(() => o.alt ? o.alt : o.name ? o.name : "Avatar"), i = () => t.value = "loaded", n = () => t.value = "error";
|
|
2513
2514
|
return Y(
|
|
2514
2515
|
() => o.src,
|
|
2515
2516
|
() => o.src && (t.value = "loading")
|
|
2516
|
-
), te(() => !o.src && (t.value = "error")), (
|
|
2517
|
+
), te(() => !o.src && (t.value = "error")), (l, c) => (v(), f("div", {
|
|
2517
2518
|
class: "ui-avatar",
|
|
2518
2519
|
"data-size": e.size,
|
|
2519
2520
|
"data-shape": e.shape,
|
|
2520
2521
|
"aria-label": a.value ? void 0 : s.value,
|
|
2521
2522
|
"aria-busy": t.value === "loading" || void 0
|
|
2522
2523
|
}, [
|
|
2523
|
-
a.value ? (v(),
|
|
2524
|
+
a.value ? (v(), W(xe, {
|
|
2524
2525
|
key: 0,
|
|
2525
2526
|
src: e.src,
|
|
2526
2527
|
alt: e.alt ?? "",
|
|
2527
2528
|
class: "ui-avatar__img",
|
|
2528
2529
|
onLoad: i,
|
|
2529
2530
|
onError: n
|
|
2530
|
-
}, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div",
|
|
2531
|
-
|
|
2532
|
-
me(
|
|
2531
|
+
}, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div", z2)) : (v(), f("div", q2, [
|
|
2532
|
+
U(l.$slots, "default", {}, () => [
|
|
2533
|
+
me(P(r.value), 1)
|
|
2533
2534
|
], !0)
|
|
2534
2535
|
]))
|
|
2535
|
-
], 8,
|
|
2536
|
+
], 8, O2));
|
|
2536
2537
|
}
|
|
2537
|
-
}), oo = /* @__PURE__ */
|
|
2538
|
+
}), oo = /* @__PURE__ */ j(N2, [["__scopeId", "data-v-e36c822a"]]), F2 = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled", "disabled"], K2 = ["innerHTML"], P2 = ["id", "aria-disabled", "aria-selected", "onClick"], U2 = ["innerHTML"], j2 = /* @__PURE__ */ _({
|
|
2538
2539
|
__name: "Select",
|
|
2539
2540
|
props: /* @__PURE__ */ oe({
|
|
2540
2541
|
id: {},
|
|
@@ -2548,28 +2549,28 @@ const $2 = {
|
|
|
2548
2549
|
}),
|
|
2549
2550
|
emits: /* @__PURE__ */ oe(["focus", "blur", "change", "click"], ["update:modelValue"]),
|
|
2550
2551
|
setup(e, { emit: o }) {
|
|
2551
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2552
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = C(!1);
|
|
2552
2553
|
Y(s, (w) => {
|
|
2553
2554
|
w ? document.addEventListener("mousedown", T) : document.removeEventListener("mousedown", T);
|
|
2554
2555
|
});
|
|
2555
|
-
const i =
|
|
2556
|
+
const i = ze(), n = C(null), l = $(() => a.id ?? ie()), c = `${l.value}-label`, d = `${l.value}-listbox`, h = `${l.value}-error`, L = `${l.value}-hint`, M = `${l.value}-value`, u = C(null), y = C(null), I = $(() => u.value !== null ? `${d}-option-${u.value}` : void 0), B = _e(i).value, k = $(() => B ? `${L} ${l.value}-required-hint` : L), D = $(() => s.value && I.value ? I.value : void 0), E = $(() => y.value !== null ? a.options[y.value]?.value : ""), p = (w) => {
|
|
2556
2557
|
const A = n.value;
|
|
2557
|
-
A && (A.classList.add("focused"),
|
|
2558
|
+
A && (A.classList.add("focused"), r("focus", w));
|
|
2558
2559
|
}, x = (w) => {
|
|
2559
2560
|
const A = w.relatedTarget, J = n.value;
|
|
2560
|
-
!J || J?.contains(A) || (J.classList.remove("focused"), s.value = !1,
|
|
2561
|
+
!J || J?.contains(A) || (J.classList.remove("focused"), s.value = !1, r("blur", w));
|
|
2561
2562
|
}, V = (w) => {
|
|
2562
|
-
s.value = !s.value, s.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) &&
|
|
2563
|
-
},
|
|
2563
|
+
s.value = !s.value, s.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) && r("click", w);
|
|
2564
|
+
}, z = (w, A) => {
|
|
2564
2565
|
const J = n.value;
|
|
2565
|
-
!J || w.disabled || (y.value = A, u.value = A, w && w.key && w.key.toString().length > 0 ? J.classList.add("filled") : J.classList.remove("filled"), t.value = w.key,
|
|
2566
|
+
!J || w.disabled || (y.value = A, u.value = A, w && w.key && w.key.toString().length > 0 ? J.classList.add("filled") : J.classList.remove("filled"), t.value = w.key, r("change", w.key));
|
|
2566
2567
|
}, Z = (w) => {
|
|
2567
2568
|
if (!s.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
|
|
2568
2569
|
s.value = !0, u.value = u.value ?? a.options.findIndex((A) => !A.disabled), w.preventDefault();
|
|
2569
2570
|
return;
|
|
2570
2571
|
}
|
|
2571
2572
|
if (s.value) {
|
|
2572
|
-
if (w.key === "ArrowDown" && (
|
|
2573
|
+
if (w.key === "ArrowDown" && (q(1), w.preventDefault()), w.key === "ArrowUp" && (q(-1), w.preventDefault()), w.key === "Home") {
|
|
2573
2574
|
const A = m();
|
|
2574
2575
|
A >= 0 && (u.value = A), w.preventDefault();
|
|
2575
2576
|
}
|
|
@@ -2581,11 +2582,11 @@ const $2 = {
|
|
|
2581
2582
|
if (u.value === null) return;
|
|
2582
2583
|
const A = a.options[u.value];
|
|
2583
2584
|
if (!A || A.disabled) return;
|
|
2584
|
-
|
|
2585
|
+
z(A, u.value), s.value = !1, w.preventDefault();
|
|
2585
2586
|
}
|
|
2586
2587
|
w.key === "Escape" && (s.value = !1);
|
|
2587
2588
|
}
|
|
2588
|
-
},
|
|
2589
|
+
}, q = (w) => {
|
|
2589
2590
|
if (u.value === null) return;
|
|
2590
2591
|
let A = u.value;
|
|
2591
2592
|
do
|
|
@@ -2614,7 +2615,7 @@ const $2 = {
|
|
|
2614
2615
|
class: se(["select-box", { required: Object.keys(w.$attrs).includes("required"), error: e.invalid }])
|
|
2615
2616
|
}, [
|
|
2616
2617
|
g("button", {
|
|
2617
|
-
id:
|
|
2618
|
+
id: l.value,
|
|
2618
2619
|
class: "select-btn",
|
|
2619
2620
|
role: "combobox",
|
|
2620
2621
|
type: "button",
|
|
@@ -2622,9 +2623,9 @@ const $2 = {
|
|
|
2622
2623
|
"aria-expanded": s.value,
|
|
2623
2624
|
"aria-controls": d,
|
|
2624
2625
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
2625
|
-
"aria-labelledby": `${c} ${
|
|
2626
|
+
"aria-labelledby": `${c} ${M}`,
|
|
2626
2627
|
"aria-required": R(B),
|
|
2627
|
-
"aria-describedby": R(
|
|
2628
|
+
"aria-describedby": R(Ne)(w.$props, w.$slots, h, k.value).value,
|
|
2628
2629
|
"aria-activedescendant": D.value,
|
|
2629
2630
|
"aria-disabled": w.$attrs.disabled ? "true" : void 0,
|
|
2630
2631
|
disabled: w.$attrs.disabled ? "true" : void 0,
|
|
@@ -2637,21 +2638,21 @@ const $2 = {
|
|
|
2637
2638
|
g("span", {
|
|
2638
2639
|
id: c,
|
|
2639
2640
|
class: "label"
|
|
2640
|
-
},
|
|
2641
|
+
}, P(e.label), 1),
|
|
2641
2642
|
g("span", {
|
|
2642
|
-
id:
|
|
2643
|
+
id: M,
|
|
2643
2644
|
class: "selected-object",
|
|
2644
2645
|
"aria-live": "polite",
|
|
2645
2646
|
"aria-atomic": "true",
|
|
2646
2647
|
innerHTML: E.value
|
|
2647
|
-
}, null, 8,
|
|
2648
|
-
|
|
2648
|
+
}, null, 8, K2),
|
|
2649
|
+
K(ue, {
|
|
2649
2650
|
name: "directionDown",
|
|
2650
2651
|
"aria-hidden": "true"
|
|
2651
2652
|
})
|
|
2652
|
-
], 40,
|
|
2653
|
-
|
|
2654
|
-
default:
|
|
2653
|
+
], 40, F2),
|
|
2654
|
+
K($e, { name: "select" }, {
|
|
2655
|
+
default: G(() => [
|
|
2655
2656
|
Ve(g("ul", {
|
|
2656
2657
|
id: d,
|
|
2657
2658
|
role: "listbox",
|
|
@@ -2664,37 +2665,37 @@ const $2 = {
|
|
|
2664
2665
|
class: se(["option", { "focus-visible": u.value === ce }]),
|
|
2665
2666
|
"aria-disabled": J.disabled,
|
|
2666
2667
|
"aria-selected": y.value === ce,
|
|
2667
|
-
onClick: (H) => !J.disabled &&
|
|
2668
|
+
onClick: (H) => !J.disabled && z(J, ce)
|
|
2668
2669
|
}, [
|
|
2669
2670
|
g("div", {
|
|
2670
2671
|
class: "option-value",
|
|
2671
2672
|
innerHTML: J.value
|
|
2672
|
-
}, null, 8,
|
|
2673
|
-
], 10,
|
|
2673
|
+
}, null, 8, U2)
|
|
2674
|
+
], 10, P2))), 128))
|
|
2674
2675
|
], 512), [
|
|
2675
|
-
[
|
|
2676
|
+
[Oe, s.value]
|
|
2676
2677
|
])
|
|
2677
2678
|
]),
|
|
2678
2679
|
_: 1
|
|
2679
2680
|
}),
|
|
2680
|
-
|
|
2681
|
-
default:
|
|
2682
|
-
|
|
2681
|
+
K(Pe, { hintId: L }, {
|
|
2682
|
+
default: G(() => [
|
|
2683
|
+
U(w.$slots, "hint", {}, void 0, !0)
|
|
2683
2684
|
]),
|
|
2684
2685
|
_: 3
|
|
2685
2686
|
}),
|
|
2686
|
-
|
|
2687
|
-
baseId:
|
|
2687
|
+
K(Ue, {
|
|
2688
|
+
baseId: l.value,
|
|
2688
2689
|
isRequired: R(B)
|
|
2689
2690
|
}, null, 8, ["baseId", "isRequired"]),
|
|
2690
|
-
|
|
2691
|
+
K(je, {
|
|
2691
2692
|
errorId: h,
|
|
2692
2693
|
invalid: e.invalid,
|
|
2693
2694
|
errorMessage: e.errorMessage
|
|
2694
2695
|
}, null, 8, ["invalid", "errorMessage"])
|
|
2695
2696
|
], 2));
|
|
2696
2697
|
}
|
|
2697
|
-
}), no = /* @__PURE__ */
|
|
2698
|
+
}), no = /* @__PURE__ */ j(j2, [["__scopeId", "data-v-7be7a049"]]), X2 = ["aria-label"], G2 = ["onKeydown"], W2 = {
|
|
2698
2699
|
key: 1,
|
|
2699
2700
|
class: "rs-gallery-thumbs"
|
|
2700
2701
|
}, J2 = ["aria-selected"], Y2 = ["onClick"], Q2 = /* @__PURE__ */ _({
|
|
@@ -2718,29 +2719,29 @@ const $2 = {
|
|
|
2718
2719
|
}),
|
|
2719
2720
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
2720
2721
|
setup(e, { emit: o }) {
|
|
2721
|
-
const t = pe(e, "modelValue"), a = e,
|
|
2722
|
+
const t = pe(e, "modelValue"), a = e, r = o, s = C([]), i = C("next"), n = C(null), l = `gallery-caption-${ie()}`, c = C(null), d = $(() => t.value), h = $(() => a.images[d.value]), L = (k, D) => {
|
|
2722
2723
|
k && (s.value[D] = k);
|
|
2723
|
-
},
|
|
2724
|
-
k !== d.value && (i.value = k > d.value ? "next" : "prev", t.value = k,
|
|
2724
|
+
}, M = (k) => {
|
|
2725
|
+
k !== d.value && (i.value = k > d.value ? "next" : "prev", t.value = k, r("change", k));
|
|
2725
2726
|
}, u = () => {
|
|
2726
2727
|
if (d.value === a.images.length - 1) {
|
|
2727
|
-
a.loop &&
|
|
2728
|
+
a.loop && M(0);
|
|
2728
2729
|
return;
|
|
2729
2730
|
}
|
|
2730
|
-
|
|
2731
|
+
M(d.value + 1);
|
|
2731
2732
|
}, y = () => {
|
|
2732
2733
|
if (d.value === 0) {
|
|
2733
|
-
a.loop &&
|
|
2734
|
+
a.loop && M(a.images.length - 1);
|
|
2734
2735
|
return;
|
|
2735
2736
|
}
|
|
2736
|
-
|
|
2737
|
+
M(d.value - 1);
|
|
2737
2738
|
}, I = () => {
|
|
2738
2739
|
c.value && (n.value = c.value.offsetHeight);
|
|
2739
2740
|
}, B = () => {
|
|
2740
2741
|
n.value = null;
|
|
2741
2742
|
};
|
|
2742
2743
|
return Y(d, async (k) => {
|
|
2743
|
-
await
|
|
2744
|
+
await Le();
|
|
2744
2745
|
const D = s.value[k];
|
|
2745
2746
|
D && D.scrollIntoView({
|
|
2746
2747
|
behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
|
|
@@ -2755,7 +2756,7 @@ const $2 = {
|
|
|
2755
2756
|
"aria-roledescription": "carousel",
|
|
2756
2757
|
"aria-label": e.ariaLabel || "Image gallery",
|
|
2757
2758
|
"aria-live": "polite",
|
|
2758
|
-
"aria-describedby":
|
|
2759
|
+
"aria-describedby": l
|
|
2759
2760
|
}, [
|
|
2760
2761
|
g("div", {
|
|
2761
2762
|
ref_key: "previewRef",
|
|
@@ -2768,55 +2769,55 @@ const $2 = {
|
|
|
2768
2769
|
fe(ne(u, ["prevent"]), ["right"])
|
|
2769
2770
|
]
|
|
2770
2771
|
}, [
|
|
2771
|
-
|
|
2772
|
+
K($e, {
|
|
2772
2773
|
name: `rs-gallery-slide-${i.value}`,
|
|
2773
2774
|
mode: "out-in",
|
|
2774
2775
|
onBeforeLeave: I,
|
|
2775
2776
|
onAfterEnter: B
|
|
2776
2777
|
}, {
|
|
2777
|
-
default:
|
|
2778
|
-
h.value ? (v(),
|
|
2778
|
+
default: G(() => [
|
|
2779
|
+
h.value ? (v(), W(xe, {
|
|
2779
2780
|
key: h.value.src,
|
|
2780
2781
|
src: h.value.src,
|
|
2781
2782
|
alt: h.value.alt || "",
|
|
2782
2783
|
transform: e.transform
|
|
2783
|
-
}, null, 8, ["src", "alt", "transform"])) :
|
|
2784
|
+
}, null, 8, ["src", "alt", "transform"])) : F("", !0)
|
|
2784
2785
|
]),
|
|
2785
2786
|
_: 1
|
|
2786
2787
|
}, 8, ["name"]),
|
|
2787
|
-
|
|
2788
|
+
U(k.$slots, "overlay", {
|
|
2788
2789
|
image: h.value,
|
|
2789
2790
|
index: d.value
|
|
2790
2791
|
}, void 0, !0)
|
|
2791
|
-
], 44,
|
|
2792
|
+
], 44, G2),
|
|
2792
2793
|
h.value?.title ? (v(), f("p", {
|
|
2793
2794
|
key: 0,
|
|
2794
|
-
id:
|
|
2795
|
+
id: l,
|
|
2795
2796
|
class: "rs-gallery-caption"
|
|
2796
|
-
},
|
|
2797
|
-
e.showThumbnails ? (v(), f("ul",
|
|
2797
|
+
}, P(h.value.title), 1)) : F("", !0),
|
|
2798
|
+
e.showThumbnails ? (v(), f("ul", W2, [
|
|
2798
2799
|
(v(!0), f(ae, null, de(e.images, (E, p) => (v(), f("li", {
|
|
2799
2800
|
key: E.src,
|
|
2800
2801
|
ref_for: !0,
|
|
2801
|
-
ref: (x) =>
|
|
2802
|
+
ref: (x) => L(x, p),
|
|
2802
2803
|
"aria-selected": d.value === p
|
|
2803
2804
|
}, [
|
|
2804
2805
|
g("button", {
|
|
2805
2806
|
type: "button",
|
|
2806
2807
|
class: se(["rs-gallery-thumb", { active: d.value === p }]),
|
|
2807
|
-
onClick: (x) =>
|
|
2808
|
+
onClick: (x) => M(p)
|
|
2808
2809
|
}, [
|
|
2809
|
-
|
|
2810
|
+
K(xe, {
|
|
2810
2811
|
src: E.src,
|
|
2811
2812
|
alt: `Select image ${p + 1}`,
|
|
2812
2813
|
transform: e.transformThumbnails
|
|
2813
2814
|
}, null, 8, ["src", "alt", "transform"])
|
|
2814
2815
|
], 10, Y2)
|
|
2815
2816
|
], 8, J2))), 128))
|
|
2816
|
-
])) :
|
|
2817
|
-
], 8,
|
|
2817
|
+
])) : F("", !0)
|
|
2818
|
+
], 8, X2));
|
|
2818
2819
|
}
|
|
2819
|
-
}),
|
|
2820
|
+
}), r1 = /* @__PURE__ */ j(Q2, [["__scopeId", "data-v-dcfacff6"]]), e5 = ["aria-label"], t5 = ["onClick"], a5 = /* @__PURE__ */ _({
|
|
2820
2821
|
__name: "GalleryGrid",
|
|
2821
2822
|
props: {
|
|
2822
2823
|
images: {},
|
|
@@ -2837,13 +2838,13 @@ const $2 = {
|
|
|
2837
2838
|
role: "list",
|
|
2838
2839
|
"aria-label": e.ariaLabel || "Image grid gallery"
|
|
2839
2840
|
}, [
|
|
2840
|
-
(v(!0), f(ae, null, de(e.images, (a,
|
|
2841
|
+
(v(!0), f(ae, null, de(e.images, (a, r) => (v(), f("button", {
|
|
2841
2842
|
key: a.src,
|
|
2842
2843
|
type: "button",
|
|
2843
2844
|
class: "grid-item",
|
|
2844
|
-
onClick: (s) => o.$emit("change",
|
|
2845
|
+
onClick: (s) => o.$emit("change", r)
|
|
2845
2846
|
}, [
|
|
2846
|
-
|
|
2847
|
+
K(xe, {
|
|
2847
2848
|
src: a.src,
|
|
2848
2849
|
alt: a.alt || "",
|
|
2849
2850
|
transform: e.transform
|
|
@@ -2851,7 +2852,7 @@ const $2 = {
|
|
|
2851
2852
|
], 8, t5))), 128))
|
|
2852
2853
|
], 12, e5));
|
|
2853
2854
|
}
|
|
2854
|
-
}), s1 = /* @__PURE__ */
|
|
2855
|
+
}), s1 = /* @__PURE__ */ j(a5, [["__scopeId", "data-v-17067a4b"]]), Re = /* @__PURE__ */ Symbol("ModalContext");
|
|
2855
2856
|
let Te = 0, Qe = 0, Ee = null;
|
|
2856
2857
|
const De = _({
|
|
2857
2858
|
name: "Modal",
|
|
@@ -2869,16 +2870,16 @@ const De = _({
|
|
|
2869
2870
|
},
|
|
2870
2871
|
emits: ["update:open", "opened", "closed"],
|
|
2871
2872
|
setup(e, { emit: o, slots: t }) {
|
|
2872
|
-
const a = C(!1),
|
|
2873
|
-
Y(() => e.open, (h) =>
|
|
2873
|
+
const a = C(!1), r = C(e.open), s = ie(), i = `modal-title-${s}`, n = `modal-desc-${s}`;
|
|
2874
|
+
Y(() => e.open, (h) => r.value = h), Y(r, (h) => {
|
|
2874
2875
|
o("update:open", h), o(h ? "opened" : "closed");
|
|
2875
2876
|
});
|
|
2876
|
-
const
|
|
2877
|
+
const l = () => r.value = !1, c = $(() => e.motion), d = $(() => e.size);
|
|
2877
2878
|
return be(Re, {
|
|
2878
|
-
isOpen:
|
|
2879
|
+
isOpen: r,
|
|
2879
2880
|
motion: c,
|
|
2880
2881
|
size: d,
|
|
2881
|
-
close:
|
|
2882
|
+
close: l,
|
|
2882
2883
|
closeOnOverlay: e.closeOnOverlay,
|
|
2883
2884
|
labelId: i,
|
|
2884
2885
|
descriptionId: n,
|
|
@@ -2888,10 +2889,10 @@ const De = _({
|
|
|
2888
2889
|
}), i1 = _({
|
|
2889
2890
|
name: "ModalContent",
|
|
2890
2891
|
setup(e, { slots: o }) {
|
|
2891
|
-
const t =
|
|
2892
|
+
const t = le(Re);
|
|
2892
2893
|
if (!t) throw new Error("ModalContent components must be used inside <Modal>");
|
|
2893
|
-
const a = C(null),
|
|
2894
|
-
d.key === "Escape" &&
|
|
2894
|
+
const a = C(null), r = ++Te, s = (d) => {
|
|
2895
|
+
d.key === "Escape" && r === Te && t.close();
|
|
2895
2896
|
};
|
|
2896
2897
|
let i = null;
|
|
2897
2898
|
const n = (d) => {
|
|
@@ -2904,27 +2905,27 @@ const De = _({
|
|
|
2904
2905
|
d.setAttribute("tabindex", "-1"), d.focus();
|
|
2905
2906
|
return;
|
|
2906
2907
|
}
|
|
2907
|
-
const
|
|
2908
|
-
y.key === "Tab" && (y.shiftKey && document.activeElement ===
|
|
2908
|
+
const L = h[0], M = h[h.length - 1], u = (y) => {
|
|
2909
|
+
y.key === "Tab" && (y.shiftKey && document.activeElement === L ? (y.preventDefault(), M?.focus()) : !y.shiftKey && document.activeElement === M && (y.preventDefault(), L?.focus()));
|
|
2909
2910
|
};
|
|
2910
|
-
d.addEventListener("keydown", u),
|
|
2911
|
+
d.addEventListener("keydown", u), L?.focus(), i = () => {
|
|
2911
2912
|
d.removeEventListener("keydown", u), i = null;
|
|
2912
2913
|
};
|
|
2913
|
-
},
|
|
2914
|
+
}, l = () => {
|
|
2914
2915
|
++Qe === 1 && (document.body.style.overflow = "hidden");
|
|
2915
2916
|
}, c = () => {
|
|
2916
2917
|
--Qe === 0 && (document.body.style.overflow = "");
|
|
2917
2918
|
};
|
|
2918
|
-
return () =>
|
|
2919
|
+
return () => N(
|
|
2919
2920
|
Be,
|
|
2920
2921
|
{ to: "body" },
|
|
2921
|
-
|
|
2922
|
+
N(
|
|
2922
2923
|
$e,
|
|
2923
2924
|
{
|
|
2924
2925
|
name: `modal-${t.motion.value}`,
|
|
2925
2926
|
appear: !0,
|
|
2926
2927
|
onEnter: () => {
|
|
2927
|
-
Ee = document.activeElement,
|
|
2928
|
+
Ee = document.activeElement, l();
|
|
2928
2929
|
},
|
|
2929
2930
|
onAfterEnter: () => {
|
|
2930
2931
|
a.value && (n(a.value), document.addEventListener("keydown", s));
|
|
@@ -2934,13 +2935,13 @@ const De = _({
|
|
|
2934
2935
|
}
|
|
2935
2936
|
},
|
|
2936
2937
|
{
|
|
2937
|
-
default: () => t.isOpen.value ?
|
|
2938
|
+
default: () => t.isOpen.value ? N(
|
|
2938
2939
|
"div",
|
|
2939
2940
|
{
|
|
2940
2941
|
class: "modal-overlay",
|
|
2941
2942
|
onClick: () => t.closeOnOverlay && t.close()
|
|
2942
2943
|
},
|
|
2943
|
-
|
|
2944
|
+
N(
|
|
2944
2945
|
"div",
|
|
2945
2946
|
{
|
|
2946
2947
|
ref: a,
|
|
@@ -2961,31 +2962,31 @@ const De = _({
|
|
|
2961
2962
|
}), u1 = _({
|
|
2962
2963
|
name: "ModalTitle",
|
|
2963
2964
|
setup(e, { slots: o }) {
|
|
2964
|
-
const t =
|
|
2965
|
+
const t = le(Re);
|
|
2965
2966
|
if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
|
|
2966
|
-
return t.hasTitle.value = !0, () =>
|
|
2967
|
+
return t.hasTitle.value = !0, () => N("h2", { id: t.labelId }, o.default?.());
|
|
2967
2968
|
}
|
|
2968
2969
|
}), d1 = _({
|
|
2969
2970
|
name: "ModalHeader",
|
|
2970
2971
|
setup(e, { slots: o }) {
|
|
2971
|
-
return () =>
|
|
2972
|
+
return () => N("div", { class: "modal-header" }, o.default?.());
|
|
2972
2973
|
}
|
|
2973
2974
|
}), c1 = _({
|
|
2974
2975
|
name: "ModalBody",
|
|
2975
2976
|
setup(e, { slots: o }) {
|
|
2976
|
-
return () =>
|
|
2977
|
+
return () => N("div", { class: "modal-body" }, o.default?.());
|
|
2977
2978
|
}
|
|
2978
|
-
}),
|
|
2979
|
+
}), lo = _({
|
|
2979
2980
|
name: "ModalFooter",
|
|
2980
2981
|
setup(e, { slots: o }) {
|
|
2981
|
-
return () =>
|
|
2982
|
+
return () => N("div", { class: "modal-footer" }, o.default?.());
|
|
2982
2983
|
}
|
|
2983
2984
|
}), v1 = _({
|
|
2984
2985
|
name: "ModalClose",
|
|
2985
2986
|
setup() {
|
|
2986
|
-
const e =
|
|
2987
|
+
const e = le(Re);
|
|
2987
2988
|
if (!e) throw new Error("ModalClose components must be used inside <Modal>");
|
|
2988
|
-
return () =>
|
|
2989
|
+
return () => N(
|
|
2989
2990
|
"button",
|
|
2990
2991
|
{
|
|
2991
2992
|
class: "modal-close",
|
|
@@ -2993,7 +2994,7 @@ const De = _({
|
|
|
2993
2994
|
"aria-label": "Close modal",
|
|
2994
2995
|
onClick: e.close
|
|
2995
2996
|
},
|
|
2996
|
-
|
|
2997
|
+
N(ue, { name: "close", size: 32 })
|
|
2997
2998
|
);
|
|
2998
2999
|
}
|
|
2999
3000
|
});
|
|
@@ -3019,43 +3020,43 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3019
3020
|
setup(e) {
|
|
3020
3021
|
const o = C(0), t = C(!1), a = (s) => {
|
|
3021
3022
|
o.value = s, t.value = !0;
|
|
3022
|
-
},
|
|
3023
|
+
}, r = () => t.value = !1;
|
|
3023
3024
|
return (s, i) => (v(), f(ae, null, [
|
|
3024
|
-
|
|
3025
|
+
K(s1, {
|
|
3025
3026
|
images: e.images,
|
|
3026
3027
|
onChange: a,
|
|
3027
3028
|
"aria-label": e.ariaLabel,
|
|
3028
3029
|
transform: e.transform
|
|
3029
3030
|
}, null, 8, ["images", "aria-label", "transform"]),
|
|
3030
|
-
|
|
3031
|
+
K(R(De), {
|
|
3031
3032
|
open: t.value,
|
|
3032
3033
|
"onUpdate:open": i[2] || (i[2] = (n) => t.value = n),
|
|
3033
3034
|
motion: "fade",
|
|
3034
3035
|
size: "xl"
|
|
3035
3036
|
}, {
|
|
3036
|
-
default:
|
|
3037
|
-
|
|
3038
|
-
default:
|
|
3039
|
-
|
|
3040
|
-
default:
|
|
3041
|
-
|
|
3042
|
-
default:
|
|
3037
|
+
default: G(() => [
|
|
3038
|
+
K(R(i1), null, {
|
|
3039
|
+
default: G(() => [
|
|
3040
|
+
K(R(d1), null, {
|
|
3041
|
+
default: G(() => [
|
|
3042
|
+
K(R(u1), null, {
|
|
3043
|
+
default: G(() => [...i[3] || (i[3] = [
|
|
3043
3044
|
me("Image Gallery", -1)
|
|
3044
3045
|
])]),
|
|
3045
3046
|
_: 1
|
|
3046
3047
|
}),
|
|
3047
|
-
|
|
3048
|
+
K(R(v1))
|
|
3048
3049
|
]),
|
|
3049
3050
|
_: 1
|
|
3050
3051
|
}),
|
|
3051
|
-
|
|
3052
|
-
default:
|
|
3053
|
-
|
|
3052
|
+
K(R(c1), null, {
|
|
3053
|
+
default: G(() => [
|
|
3054
|
+
K(r1, {
|
|
3054
3055
|
modelValue: o.value,
|
|
3055
3056
|
"onUpdate:modelValue": i[0] || (i[0] = (n) => o.value = n),
|
|
3056
3057
|
images: e.images,
|
|
3057
3058
|
onChange: i[1] || (i[1] = (n) => s.$emit("change", n)),
|
|
3058
|
-
onClose:
|
|
3059
|
+
onClose: r,
|
|
3059
3060
|
"aria-label": e.ariaLabel,
|
|
3060
3061
|
"transform-thumbnails": e.transform
|
|
3061
3062
|
}, null, 8, ["modelValue", "images", "aria-label", "transform-thumbnails"])
|
|
@@ -3070,7 +3071,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3070
3071
|
}, 8, ["open"])
|
|
3071
3072
|
], 64));
|
|
3072
3073
|
}
|
|
3073
|
-
}), n5 = { class: "rs-gallery-masonry" },
|
|
3074
|
+
}), n5 = { class: "rs-gallery-masonry" }, l5 = /* @__PURE__ */ _({
|
|
3074
3075
|
__name: "GalleryMasonry",
|
|
3075
3076
|
props: {
|
|
3076
3077
|
images: {},
|
|
@@ -3089,7 +3090,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3089
3090
|
key: a.src,
|
|
3090
3091
|
class: "masonry-item"
|
|
3091
3092
|
}, [
|
|
3092
|
-
|
|
3093
|
+
K(xe, {
|
|
3093
3094
|
src: a.src,
|
|
3094
3095
|
alt: a.alt || "",
|
|
3095
3096
|
transform: e.transform
|
|
@@ -3097,7 +3098,7 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3097
3098
|
]))), 128))
|
|
3098
3099
|
]));
|
|
3099
3100
|
}
|
|
3100
|
-
}),
|
|
3101
|
+
}), r5 = /* @__PURE__ */ j(l5, [["__scopeId", "data-v-afb75845"]]), s5 = {
|
|
3101
3102
|
class: "rs-image-gallery",
|
|
3102
3103
|
role: "region",
|
|
3103
3104
|
"aria-label": "Image gallery"
|
|
@@ -3122,51 +3123,51 @@ const o5 = /* @__PURE__ */ _({
|
|
|
3122
3123
|
}),
|
|
3123
3124
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3124
3125
|
setup(e, { emit: o }) {
|
|
3125
|
-
const t = pe(e, "modelValue"), a = o,
|
|
3126
|
+
const t = pe(e, "modelValue"), a = o, r = $({
|
|
3126
3127
|
get: () => t.value ?? 0,
|
|
3127
3128
|
set: (i) => {
|
|
3128
3129
|
t.value = i, a("change", i);
|
|
3129
3130
|
}
|
|
3130
|
-
}), s = (i) =>
|
|
3131
|
+
}), s = (i) => r.value = i;
|
|
3131
3132
|
return (i, n) => (v(), f("section", s5, [
|
|
3132
|
-
e.layout === "carousel" ? (v(),
|
|
3133
|
+
e.layout === "carousel" ? (v(), W(r1, {
|
|
3133
3134
|
key: 0,
|
|
3134
|
-
modelValue:
|
|
3135
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3135
|
+
modelValue: r.value,
|
|
3136
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => r.value = l),
|
|
3136
3137
|
images: e.images,
|
|
3137
3138
|
loop: e.loop,
|
|
3138
3139
|
"aria-label": e.ariaLabel,
|
|
3139
3140
|
transform: e.transform,
|
|
3140
3141
|
"transform-thumbnails": e.transformThumbnails,
|
|
3141
3142
|
"show-thumbnails": e.showThumbnails
|
|
3142
|
-
}, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(),
|
|
3143
|
+
}, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), W(s1, {
|
|
3143
3144
|
key: 1,
|
|
3144
|
-
modelValue:
|
|
3145
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
3145
|
+
modelValue: r.value,
|
|
3146
|
+
"onUpdate:modelValue": n[1] || (n[1] = (l) => r.value = l),
|
|
3146
3147
|
images: e.images,
|
|
3147
3148
|
onSelect: s,
|
|
3148
3149
|
columns: e.columns,
|
|
3149
3150
|
gap: e.gap,
|
|
3150
3151
|
transform: e.transform,
|
|
3151
3152
|
"aria-label": e.ariaLabel
|
|
3152
|
-
}, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(),
|
|
3153
|
+
}, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), W(o5, {
|
|
3153
3154
|
key: 2,
|
|
3154
|
-
modelValue:
|
|
3155
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
3155
|
+
modelValue: r.value,
|
|
3156
|
+
"onUpdate:modelValue": n[2] || (n[2] = (l) => r.value = l),
|
|
3156
3157
|
images: e.images,
|
|
3157
3158
|
transform: e.transform,
|
|
3158
3159
|
"aria-label": e.ariaLabel
|
|
3159
|
-
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(),
|
|
3160
|
+
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), W(r5, {
|
|
3160
3161
|
key: 3,
|
|
3161
|
-
modelValue:
|
|
3162
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
3162
|
+
modelValue: r.value,
|
|
3163
|
+
"onUpdate:modelValue": n[3] || (n[3] = (l) => r.value = l),
|
|
3163
3164
|
images: e.images,
|
|
3164
3165
|
transform: e.transform,
|
|
3165
3166
|
"aria-label": e.ariaLabel
|
|
3166
|
-
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) :
|
|
3167
|
+
}, null, 8, ["modelValue", "images", "transform", "aria-label"])) : F("", !0)
|
|
3167
3168
|
]));
|
|
3168
3169
|
}
|
|
3169
|
-
}), e1 = /* @__PURE__ */
|
|
3170
|
+
}), e1 = /* @__PURE__ */ j(i5, [["__scopeId", "data-v-d6be1b96"]]);
|
|
3170
3171
|
e1.install = (e) => e.component("ImageGallery", e1);
|
|
3171
3172
|
const u5 = ["aria-busy"], d5 = {
|
|
3172
3173
|
key: 0,
|
|
@@ -3181,33 +3182,33 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3181
3182
|
message: {}
|
|
3182
3183
|
},
|
|
3183
3184
|
setup(e) {
|
|
3184
|
-
const o = e, t = C(0), a = C(null),
|
|
3185
|
-
!o.message || a.value !== null ||
|
|
3186
|
-
t.value = t.value % 3 + 1,
|
|
3185
|
+
const o = e, t = C(0), a = C(null), r = C(o.message || ""), s = () => {
|
|
3186
|
+
!o.message || a.value !== null || r.value.length > 0 && (a.value = window.setInterval(() => {
|
|
3187
|
+
t.value = t.value % 3 + 1, r.value = `${o.message}${".".repeat(t.value)}`;
|
|
3187
3188
|
}, 750));
|
|
3188
3189
|
}, i = () => {
|
|
3189
3190
|
a.value !== null && (clearInterval(a.value), a.value = null);
|
|
3190
3191
|
};
|
|
3191
3192
|
return Y(
|
|
3192
3193
|
() => o.message,
|
|
3193
|
-
(n,
|
|
3194
|
-
n !==
|
|
3194
|
+
(n, l) => {
|
|
3195
|
+
n !== l && (r.value = n || "", i());
|
|
3195
3196
|
}
|
|
3196
|
-
), te(s), ge(i), (n,
|
|
3197
|
+
), te(s), ge(i), (n, l) => (v(), f("div", {
|
|
3197
3198
|
class: "spinner-container",
|
|
3198
3199
|
role: "status",
|
|
3199
3200
|
"aria-live": "polite",
|
|
3200
3201
|
"aria-busy": !!e.message
|
|
3201
3202
|
}, [
|
|
3202
|
-
|
|
3203
|
+
l[0] || (l[0] = g("div", {
|
|
3203
3204
|
class: "spinner",
|
|
3204
3205
|
"aria-hidden": "true"
|
|
3205
3206
|
}, null, -1)),
|
|
3206
|
-
e.message ? (v(), f("span", d5,
|
|
3207
|
-
g("span", c5,
|
|
3207
|
+
e.message ? (v(), f("span", d5, P(r.value), 1)) : F("", !0),
|
|
3208
|
+
g("span", c5, P(e.message || "Loading"), 1)
|
|
3208
3209
|
], 8, u5));
|
|
3209
3210
|
}
|
|
3210
|
-
}), f1 = /* @__PURE__ */
|
|
3211
|
+
}), f1 = /* @__PURE__ */ j(v5, [["__scopeId", "data-v-e61a1cf5"]]), f5 = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], C5 = {
|
|
3211
3212
|
class: "checkbox-control",
|
|
3212
3213
|
"aria-hidden": "true"
|
|
3213
3214
|
}, p5 = {
|
|
@@ -3231,25 +3232,25 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3231
3232
|
}),
|
|
3232
3233
|
emits: /* @__PURE__ */ oe(["change"], ["update:modelValue"]),
|
|
3233
3234
|
setup(e, { emit: o }) {
|
|
3234
|
-
const t = o, a = pe(e, "modelValue"),
|
|
3235
|
+
const t = o, a = pe(e, "modelValue"), r = e, s = ie(), i = $(() => r.id ?? `checkbox-${s}`), n = C(null), l = l1(r).value, c = $(() => r.required ? !0 : void 0), d = $(() => r.triState && a.value === void 0 ? "mixed" : void 0);
|
|
3235
3236
|
Y(
|
|
3236
3237
|
() => a.value,
|
|
3237
|
-
(
|
|
3238
|
-
n.value && (n.value.indeterminate =
|
|
3238
|
+
(L) => {
|
|
3239
|
+
n.value && (n.value.indeterminate = L === void 0, n.value.checked = L === !0);
|
|
3239
3240
|
},
|
|
3240
3241
|
{ immediate: !0 }
|
|
3241
3242
|
);
|
|
3242
|
-
const h = (
|
|
3243
|
-
if (!
|
|
3244
|
-
if (!
|
|
3245
|
-
const
|
|
3246
|
-
a.value =
|
|
3243
|
+
const h = (L) => {
|
|
3244
|
+
if (!r.disabled) {
|
|
3245
|
+
if (!r.triState) {
|
|
3246
|
+
const M = L.target.checked;
|
|
3247
|
+
a.value = M, t("change", a.value);
|
|
3247
3248
|
return;
|
|
3248
3249
|
}
|
|
3249
3250
|
a.value === !1 ? a.value = !0 : a.value === !0 ? a.value = void 0 : a.value = !1, t("change", a.value);
|
|
3250
3251
|
}
|
|
3251
3252
|
};
|
|
3252
|
-
return (
|
|
3253
|
+
return (L, M) => (v(), f("label", {
|
|
3253
3254
|
class: se(["checkbox-root", { required: c.value, error: e.invalid }])
|
|
3254
3255
|
}, [
|
|
3255
3256
|
g("input", {
|
|
@@ -3260,32 +3261,32 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3260
3261
|
checked: a.value === !0,
|
|
3261
3262
|
disabled: e.disabled,
|
|
3262
3263
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3263
|
-
"aria-disabled": R(
|
|
3264
|
+
"aria-disabled": R(l),
|
|
3264
3265
|
"aria-checked": d.value,
|
|
3265
|
-
onClick:
|
|
3266
|
-
onChange:
|
|
3266
|
+
onClick: M[0] || (M[0] = (u) => e.triState ? h(u) : void 0),
|
|
3267
|
+
onChange: M[1] || (M[1] = (u) => e.triState ? void 0 : h(u)),
|
|
3267
3268
|
ref_key: "inputRef",
|
|
3268
3269
|
ref: n
|
|
3269
3270
|
}, null, 40, f5),
|
|
3270
3271
|
g("span", C5, [
|
|
3271
|
-
a.value === !0 ? (v(), f("svg", p5, [...
|
|
3272
|
+
a.value === !0 ? (v(), f("svg", p5, [...M[2] || (M[2] = [
|
|
3272
3273
|
g("path", {
|
|
3273
3274
|
d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
|
|
3274
3275
|
fill: "currentColor"
|
|
3275
3276
|
}, null, -1)
|
|
3276
|
-
])])) : a.value === void 0 ? (v(), f("svg", m5, [...
|
|
3277
|
+
])])) : a.value === void 0 ? (v(), f("svg", m5, [...M[3] || (M[3] = [
|
|
3277
3278
|
g("path", {
|
|
3278
3279
|
d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
|
|
3279
3280
|
fill: "currentColor"
|
|
3280
3281
|
}, null, -1)
|
|
3281
|
-
])])) :
|
|
3282
|
+
])])) : F("", !0)
|
|
3282
3283
|
]),
|
|
3283
3284
|
g("span", h5, [
|
|
3284
|
-
|
|
3285
|
+
U(L.$slots, "default", {}, void 0, !0)
|
|
3285
3286
|
])
|
|
3286
3287
|
], 2));
|
|
3287
3288
|
}
|
|
3288
|
-
}),
|
|
3289
|
+
}), ro = /* @__PURE__ */ j(y5, [["__scopeId", "data-v-3a0c4f73"]]), b5 = ["for"], g5 = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], k5 = /* @__PURE__ */ _({
|
|
3289
3290
|
__name: "Textarea",
|
|
3290
3291
|
props: /* @__PURE__ */ oe({
|
|
3291
3292
|
id: {},
|
|
@@ -3301,53 +3302,53 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3301
3302
|
}),
|
|
3302
3303
|
emits: /* @__PURE__ */ oe(["focus", "blur"], ["update:modelValue"]),
|
|
3303
3304
|
setup(e, { emit: o }) {
|
|
3304
|
-
const t = pe(e, "modelValue"), a =
|
|
3305
|
-
we(n.value,
|
|
3305
|
+
const t = pe(e, "modelValue"), a = ze(), r = qe(), s = o, i = e, n = C(null), l = C(null), c = ie(), d = `${c}-error`, h = `${c}-hint`, L = _e(a).value, M = $(() => L ? `${h} ${c}-required-hint` : h), u = Ne(i, r, d, M.value).value, y = (B) => {
|
|
3306
|
+
we(n.value, l.value);
|
|
3306
3307
|
const k = B.target;
|
|
3307
3308
|
t.value = i.type === "number" ? Number(k.value) : k.value;
|
|
3308
3309
|
}, I = $(() => i.invalid === !0 && i.errorMessage ? d : void 0);
|
|
3309
3310
|
return te(() => {
|
|
3310
|
-
we(n.value,
|
|
3311
|
+
we(n.value, l.value);
|
|
3311
3312
|
}), (B, k) => (v(), f("div", {
|
|
3312
|
-
class: se(["textarea-box", { required: R(
|
|
3313
|
+
class: se(["textarea-box", { required: R(L), error: e.invalid }]),
|
|
3313
3314
|
ref_key: "inputBoxRef",
|
|
3314
|
-
ref:
|
|
3315
|
+
ref: l
|
|
3315
3316
|
}, [
|
|
3316
3317
|
g("label", {
|
|
3317
3318
|
for: e.id,
|
|
3318
3319
|
class: "label"
|
|
3319
|
-
},
|
|
3320
|
+
}, P(e.label), 9, b5),
|
|
3320
3321
|
g("textarea", Ce({ id: e.id }, B.$attrs, {
|
|
3321
3322
|
class: "custom-textarea",
|
|
3322
|
-
onFocus: k[0] || (k[0] = (D) => R(
|
|
3323
|
-
onBlur: k[1] || (k[1] = (D) => R(
|
|
3323
|
+
onFocus: k[0] || (k[0] = (D) => R(Fe)(D, l.value, s)),
|
|
3324
|
+
onBlur: k[1] || (k[1] = (D) => R(Ke)(D, n.value, l.value, s)),
|
|
3324
3325
|
onInput: y,
|
|
3325
3326
|
value: t.value,
|
|
3326
|
-
required: R(
|
|
3327
|
+
required: R(L),
|
|
3327
3328
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3328
3329
|
"aria-errormessage": I.value,
|
|
3329
3330
|
"aria-describedby": R(u),
|
|
3330
3331
|
ref_key: "textareaRef",
|
|
3331
3332
|
ref: n
|
|
3332
3333
|
}), " ", 16, g5),
|
|
3333
|
-
|
|
3334
|
-
default:
|
|
3335
|
-
|
|
3334
|
+
K(Pe, { hintId: h }, {
|
|
3335
|
+
default: G(() => [
|
|
3336
|
+
U(B.$slots, "hint", {}, void 0, !0)
|
|
3336
3337
|
]),
|
|
3337
3338
|
_: 3
|
|
3338
3339
|
}),
|
|
3339
|
-
|
|
3340
|
+
K(Ue, {
|
|
3340
3341
|
baseId: R(c),
|
|
3341
|
-
isRequired: R(
|
|
3342
|
+
isRequired: R(L)
|
|
3342
3343
|
}, null, 8, ["baseId", "isRequired"]),
|
|
3343
|
-
|
|
3344
|
+
K(je, {
|
|
3344
3345
|
errorId: d,
|
|
3345
3346
|
invalid: e.invalid,
|
|
3346
3347
|
errorMessage: e.errorMessage
|
|
3347
3348
|
}, null, 8, ["invalid", "errorMessage"])
|
|
3348
3349
|
], 2));
|
|
3349
3350
|
}
|
|
3350
|
-
}), so = /* @__PURE__ */
|
|
3351
|
+
}), so = /* @__PURE__ */ j(k5, [["__scopeId", "data-v-3615613f"]]), w5 = { key: 0 }, M5 = { key: 1 }, L5 = /* @__PURE__ */ _({
|
|
3351
3352
|
__name: "Highlight",
|
|
3352
3353
|
props: {
|
|
3353
3354
|
text: {},
|
|
@@ -3356,15 +3357,15 @@ const u5 = ["aria-busy"], d5 = {
|
|
|
3356
3357
|
setup(e) {
|
|
3357
3358
|
const o = (t, a) => {
|
|
3358
3359
|
if (!a) return [{ text: t, match: !1 }];
|
|
3359
|
-
const
|
|
3360
|
+
const r = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(r, "ig"), i = [];
|
|
3360
3361
|
let n = 0;
|
|
3361
|
-
return t.replace(s, (
|
|
3362
|
+
return t.replace(s, (l, c) => (c > n && i.push({ text: t.slice(n, c), match: !1 }), i.push({ text: l, match: !0 }), n = c + l.length, l)), n < t.length && i.push({ text: t.slice(n), match: !1 }), i;
|
|
3362
3363
|
};
|
|
3363
|
-
return (t, a) => (v(!0), f(ae, null, de(o(e.text, e.query), (
|
|
3364
|
-
|
|
3364
|
+
return (t, a) => (v(!0), f(ae, null, de(o(e.text, e.query), (r, s) => (v(), f(ae, { key: s }, [
|
|
3365
|
+
r.match ? (v(), f("mark", w5, P(r.text), 1)) : (v(), f("span", M5, P(r.text), 1))
|
|
3365
3366
|
], 64))), 128));
|
|
3366
3367
|
}
|
|
3367
|
-
}), x5 = /* @__PURE__ */
|
|
3368
|
+
}), x5 = /* @__PURE__ */ j(L5, [["__scopeId", "data-v-edfa70b3"]]);
|
|
3368
3369
|
process.env.NODE_ENV;
|
|
3369
3370
|
process.env.NODE_ENV;
|
|
3370
3371
|
process.env.NODE_ENV;
|
|
@@ -3385,39 +3386,39 @@ const I5 = {
|
|
|
3385
3386
|
separator: { default: "/" }
|
|
3386
3387
|
},
|
|
3387
3388
|
setup(e) {
|
|
3388
|
-
const o = e, t =
|
|
3389
|
+
const o = e, t = le($5), a = (n) => n === o.items.length - 1, r = (n, l) => s(n, l), s = (n, l) => a(l) || n.disabled ? "span" : n.to && t ? C1("RouterLink") : n.href ? "a" : "span", i = (n, l) => a(l) || n.disabled ? { "data-disabled": n.disabled || void 0 } : n.to ? { to: n.to } : n.href ? {
|
|
3389
3390
|
href: n.href,
|
|
3390
3391
|
target: n.external ? "_blank" : void 0,
|
|
3391
3392
|
rel: n.external ? "noopener noreferrer" : void 0,
|
|
3392
3393
|
"aria-label": n.external ? `${n.label} (opens in a new tab)` : void 0
|
|
3393
3394
|
} : {};
|
|
3394
|
-
return (n,
|
|
3395
|
+
return (n, l) => (v(), f("nav", I5, [
|
|
3395
3396
|
g("ol", V5, [
|
|
3396
3397
|
(v(!0), f(ae, null, de(e.items, (c, d) => (v(), f("li", {
|
|
3397
3398
|
key: c.to ?? c.href ?? `${c.label}-${d}`,
|
|
3398
3399
|
class: "ui-breadcrumb__item"
|
|
3399
3400
|
}, [
|
|
3400
|
-
(v(),
|
|
3401
|
+
(v(), W(Ie(r(c, d)), Ce({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(c, d), {
|
|
3401
3402
|
"aria-posinset": d + 1,
|
|
3402
3403
|
"aria-setsize": e.items.length,
|
|
3403
3404
|
"aria-current": a(d) ? "page" : void 0,
|
|
3404
|
-
tabindex: a(d) ||
|
|
3405
|
+
tabindex: a(d) || r(c, d) === "span" ? -1 : void 0
|
|
3405
3406
|
}), {
|
|
3406
|
-
default:
|
|
3407
|
-
me(
|
|
3407
|
+
default: G(() => [
|
|
3408
|
+
me(P(c.label), 1)
|
|
3408
3409
|
]),
|
|
3409
3410
|
_: 2
|
|
3410
3411
|
}, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
|
|
3411
|
-
a(d) ?
|
|
3412
|
-
|
|
3413
|
-
me(
|
|
3412
|
+
a(d) ? F("", !0) : (v(), f("span", H5, [
|
|
3413
|
+
U(n.$slots, "separator", {}, () => [
|
|
3414
|
+
me(P(e.separator), 1)
|
|
3414
3415
|
], !0)
|
|
3415
3416
|
]))
|
|
3416
3417
|
]))), 128))
|
|
3417
3418
|
])
|
|
3418
3419
|
]));
|
|
3419
3420
|
}
|
|
3420
|
-
}), io = /* @__PURE__ */
|
|
3421
|
+
}), io = /* @__PURE__ */ j(B5, [["__scopeId", "data-v-baed1592"]]), _5 = ["aria-invalid", "aria-required", "disabled"], R5 = { class: "sr-only" }, Z5 = ["name", "value", "disabled", "required"], A5 = {
|
|
3421
3422
|
key: 0,
|
|
3422
3423
|
class: "radio-control",
|
|
3423
3424
|
"aria-hidden": "true"
|
|
@@ -3439,51 +3440,51 @@ const I5 = {
|
|
|
3439
3440
|
}),
|
|
3440
3441
|
emits: ["update:modelValue"],
|
|
3441
3442
|
setup(e) {
|
|
3442
|
-
const o = e, t = pe(e, "modelValue"), a = $(() => o.invalid ? "true" : void 0),
|
|
3443
|
+
const o = e, t = pe(e, "modelValue"), a = $(() => o.invalid ? "true" : void 0), r = $(() => o.required && !o.disabled ? "true" : void 0), s = $(() => o.disabled ? !0 : void 0);
|
|
3443
3444
|
return (i, n) => (v(), f("fieldset", {
|
|
3444
3445
|
class: se(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
|
|
3445
3446
|
"aria-invalid": a.value,
|
|
3446
|
-
"aria-required":
|
|
3447
|
+
"aria-required": r.value,
|
|
3447
3448
|
disabled: s.value
|
|
3448
3449
|
}, [
|
|
3449
|
-
g("legend", R5,
|
|
3450
|
-
(v(!0), f(ae, null, de(e.options, (
|
|
3451
|
-
key:
|
|
3452
|
-
class: se(["radio", { checked: t.value ===
|
|
3450
|
+
g("legend", R5, P(e.name), 1),
|
|
3451
|
+
(v(!0), f(ae, null, de(e.options, (l) => (v(), f("label", {
|
|
3452
|
+
key: l.key,
|
|
3453
|
+
class: se(["radio", { checked: t.value === l.key, disabled: e.disabled || l.disabled }])
|
|
3453
3454
|
}, [
|
|
3454
3455
|
Ve(g("input", {
|
|
3455
3456
|
type: "radio",
|
|
3456
3457
|
class: "radio-input",
|
|
3457
3458
|
name: e.name,
|
|
3458
|
-
value:
|
|
3459
|
-
disabled: e.disabled ||
|
|
3459
|
+
value: l.key,
|
|
3460
|
+
disabled: e.disabled || l.disabled,
|
|
3460
3461
|
required: e.required,
|
|
3461
3462
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
|
|
3462
3463
|
}, null, 8, Z5), [
|
|
3463
3464
|
[p1, t.value]
|
|
3464
3465
|
]),
|
|
3465
|
-
e.mode === "standard" ? (v(), f("span", A5)) :
|
|
3466
|
-
g("span", S5,
|
|
3466
|
+
e.mode === "standard" ? (v(), f("span", A5)) : F("", !0),
|
|
3467
|
+
g("span", S5, P(l.label), 1)
|
|
3467
3468
|
], 2))), 128))
|
|
3468
3469
|
], 10, _5));
|
|
3469
3470
|
}
|
|
3470
|
-
}), uo = /* @__PURE__ */
|
|
3471
|
+
}), uo = /* @__PURE__ */ j(T5, [["__scopeId", "data-v-8f76f7f0"]]), E5 = ["for"], D5 = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled"], O5 = ["id", "aria-disabled", "aria-selected", "onClick"], z5 = {
|
|
3471
3472
|
class: "option-value",
|
|
3472
3473
|
"aria-hidden": "true"
|
|
3473
|
-
},
|
|
3474
|
+
}, q5 = { class: "option-value sr-only" }, N5 = {
|
|
3474
3475
|
key: 1,
|
|
3475
3476
|
class: "option no-found",
|
|
3476
3477
|
"aria-disabled": "true"
|
|
3477
|
-
},
|
|
3478
|
+
}, F5 = {
|
|
3478
3479
|
key: 3,
|
|
3479
3480
|
class: "option recents",
|
|
3480
3481
|
"aria-disabled": "true",
|
|
3481
3482
|
"aria-hidden": "true"
|
|
3482
|
-
},
|
|
3483
|
+
}, K5 = ["onClick"], P5 = { class: "option-value" }, U5 = {
|
|
3483
3484
|
key: 0,
|
|
3484
3485
|
class: "start-icon",
|
|
3485
3486
|
"aria-hidden": "true"
|
|
3486
|
-
},
|
|
3487
|
+
}, j5 = /* @__PURE__ */ _({
|
|
3487
3488
|
__name: "Autocomplete",
|
|
3488
3489
|
props: /* @__PURE__ */ oe({
|
|
3489
3490
|
id: {},
|
|
@@ -3509,13 +3510,13 @@ const I5 = {
|
|
|
3509
3510
|
}),
|
|
3510
3511
|
emits: /* @__PURE__ */ oe(["change", "select", "focus", "blur"], ["update:modelValue"]),
|
|
3511
3512
|
setup(e, { emit: o }) {
|
|
3512
|
-
const t = e, a = o,
|
|
3513
|
+
const t = e, a = o, r = pe(e, "modelValue"), s = C(null), i = C(null), n = C(""), l = C(!1), c = C([]), d = C(null), h = C(null), L = $(() => t.id ? `${t.id}-search-history` : "search-history"), u = `${ie()}-list`, y = $(() => d.value !== null ? `${u}-option-${d.value}` : void 0), I = $(() => l.value && y.value ? y.value : void 0), B = $(() => c.value.length > 0), k = $(() => {
|
|
3513
3514
|
if (!t.filterable) return t.options;
|
|
3514
3515
|
const H = n.value.toLowerCase();
|
|
3515
|
-
return t.options.filter((
|
|
3516
|
-
}), D =
|
|
3516
|
+
return t.options.filter((O) => t.getValue(O).toLowerCase().includes(H));
|
|
3517
|
+
}), D = l1(t).value, E = _e(t).value;
|
|
3517
3518
|
Y(n, () => we(s.value, i.value)), Y(
|
|
3518
|
-
() =>
|
|
3519
|
+
() => L.value,
|
|
3519
3520
|
(H) => {
|
|
3520
3521
|
if (H)
|
|
3521
3522
|
try {
|
|
@@ -3525,16 +3526,16 @@ const I5 = {
|
|
|
3525
3526
|
}
|
|
3526
3527
|
},
|
|
3527
3528
|
{ immediate: !0 }
|
|
3528
|
-
), Y(
|
|
3529
|
+
), Y(l, async (H) => {
|
|
3529
3530
|
if (!H) {
|
|
3530
3531
|
d.value = null;
|
|
3531
3532
|
return;
|
|
3532
3533
|
}
|
|
3533
|
-
k.value.length !== 0 && (await
|
|
3534
|
+
k.value.length !== 0 && (await Le(), A());
|
|
3534
3535
|
}), Y(
|
|
3535
3536
|
() => t.loading,
|
|
3536
3537
|
async (H) => {
|
|
3537
|
-
H ||
|
|
3538
|
+
H || l.value && k.value.length !== 0 && (await Le(), A());
|
|
3538
3539
|
}
|
|
3539
3540
|
), Y(
|
|
3540
3541
|
() => t.options,
|
|
@@ -3543,60 +3544,60 @@ const I5 = {
|
|
|
3543
3544
|
}
|
|
3544
3545
|
);
|
|
3545
3546
|
const p = (H) => {
|
|
3546
|
-
n.value.length >= t.minChars && !t.filterable && !t.loading && (
|
|
3547
|
+
n.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), Fe(H, i.value, a);
|
|
3547
3548
|
}, x = (H) => {
|
|
3548
|
-
const
|
|
3549
|
-
i.value?.contains(
|
|
3550
|
-
}, V = (H,
|
|
3549
|
+
const O = H.relatedTarget;
|
|
3550
|
+
i.value?.contains(O) || (l.value = !1, r.value ? m() : n.value = "", Ke(H, s.value, i.value, a));
|
|
3551
|
+
}, V = (H, O) => {
|
|
3551
3552
|
const Q = i.value;
|
|
3552
3553
|
if (!Q || t.isDisabled(H)) return;
|
|
3553
|
-
|
|
3554
|
+
l.value = !1, T(n.value), h.value = O, d.value = O;
|
|
3554
3555
|
const S = t.getKey(H);
|
|
3555
|
-
S && S.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), n.value = t.getValue(H),
|
|
3556
|
-
},
|
|
3557
|
-
if (!
|
|
3558
|
-
|
|
3556
|
+
S && S.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), n.value = t.getValue(H), r.value = S, a("select", S);
|
|
3557
|
+
}, z = (H) => {
|
|
3558
|
+
if (!l.value && ["ArrowDown", "ArrowUp"].includes(H.key)) {
|
|
3559
|
+
l.value = !0, d.value = d.value ?? k.value.findIndex((O) => !t.isDisabled(O)), H.preventDefault();
|
|
3559
3560
|
return;
|
|
3560
3561
|
}
|
|
3561
|
-
if (
|
|
3562
|
+
if (l.value) {
|
|
3562
3563
|
if (H.key === "ArrowDown" && (Z(1), H.preventDefault()), H.key === "ArrowUp" && (Z(-1), H.preventDefault()), H.key === "Home") {
|
|
3563
|
-
const
|
|
3564
|
-
|
|
3564
|
+
const O = J();
|
|
3565
|
+
O >= 0 && (d.value = O), H.preventDefault();
|
|
3565
3566
|
}
|
|
3566
3567
|
if (H.key === "End") {
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3568
|
+
const O = ce();
|
|
3569
|
+
O >= 0 && (d.value = O), H.preventDefault();
|
|
3569
3570
|
}
|
|
3570
3571
|
if (H.key === "Enter") {
|
|
3571
3572
|
if (d.value === null) return;
|
|
3572
|
-
const
|
|
3573
|
-
if (!
|
|
3574
|
-
V(
|
|
3573
|
+
const O = k.value[d.value];
|
|
3574
|
+
if (!O || t.isDisabled(O)) return;
|
|
3575
|
+
V(O, d.value), l.value = !1, H.preventDefault();
|
|
3575
3576
|
}
|
|
3576
|
-
H.key === "Escape" && (
|
|
3577
|
+
H.key === "Escape" && (l.value = !1);
|
|
3577
3578
|
}
|
|
3578
3579
|
}, Z = (H) => {
|
|
3579
3580
|
if (d.value === null) return;
|
|
3580
|
-
let
|
|
3581
|
+
let O = d.value;
|
|
3581
3582
|
do
|
|
3582
|
-
|
|
3583
|
-
while (
|
|
3584
|
-
|
|
3585
|
-
},
|
|
3586
|
-
n.value.length === 0 && (
|
|
3583
|
+
O += H;
|
|
3584
|
+
while (O >= 0 && O < k.value.length && t.isDisabled(k.value[O]));
|
|
3585
|
+
O >= 0 && O < k.value.length && (d.value = O);
|
|
3586
|
+
}, q = () => {
|
|
3587
|
+
n.value.length === 0 && (r.value = ""), we(s.value, i.value), n.value.length >= t.minChars ? (a("change", n.value), l.value = !0) : l.value = !1;
|
|
3587
3588
|
}, m = () => {
|
|
3588
|
-
if (
|
|
3589
|
-
const H = t.options.findIndex((
|
|
3589
|
+
if (r.value.toString().length === 0 || !t.options || t.options.length === 0) return;
|
|
3590
|
+
const H = t.options.findIndex((O) => t.getKey(O) === r.value);
|
|
3590
3591
|
H > -1 && (d.value = H, h.value = H, n.value = t.getValue(t.options[H]), we(s.value, i.value));
|
|
3591
3592
|
}, b = () => {
|
|
3592
|
-
n.value = "",
|
|
3593
|
+
n.value = "", r.value = "";
|
|
3593
3594
|
}, T = (H) => {
|
|
3594
3595
|
!H || H.trim().length === 0 || (c.value = [
|
|
3595
3596
|
H,
|
|
3596
|
-
...c.value.filter((
|
|
3597
|
-
].slice(0, t.suggestionsLimit), localStorage.setItem(
|
|
3597
|
+
...c.value.filter((O) => O !== H)
|
|
3598
|
+
].slice(0, t.suggestionsLimit), localStorage.setItem(L.value, JSON.stringify(c.value)));
|
|
3598
3599
|
}, w = (H) => {
|
|
3599
|
-
n.value = H,
|
|
3600
|
+
n.value = H, q();
|
|
3600
3601
|
}, A = () => {
|
|
3601
3602
|
const H = J();
|
|
3602
3603
|
H >= 0 && (d.value = H);
|
|
@@ -3606,7 +3607,7 @@ const I5 = {
|
|
|
3606
3607
|
};
|
|
3607
3608
|
return te(() => {
|
|
3608
3609
|
m(), we(s.value, i.value);
|
|
3609
|
-
}), (H,
|
|
3610
|
+
}), (H, O) => (v(), f("div", {
|
|
3610
3611
|
class: se(["autocomplete", { required: R(E), error: e.invalid, "has-icon": Object.keys(H.$slots).includes("icon") }]),
|
|
3611
3612
|
ref_key: "autocompleteRef",
|
|
3612
3613
|
ref: i
|
|
@@ -3614,7 +3615,7 @@ const I5 = {
|
|
|
3614
3615
|
g("label", {
|
|
3615
3616
|
for: e.id,
|
|
3616
3617
|
class: "label"
|
|
3617
|
-
},
|
|
3618
|
+
}, P(e.label), 9, E5),
|
|
3618
3619
|
Ve(g("input", Ce({
|
|
3619
3620
|
id: e.id,
|
|
3620
3621
|
type: e.type
|
|
@@ -3623,22 +3624,22 @@ const I5 = {
|
|
|
3623
3624
|
ref: s,
|
|
3624
3625
|
role: "combobox",
|
|
3625
3626
|
"aria-autocomplete": "list",
|
|
3626
|
-
"aria-expanded":
|
|
3627
|
+
"aria-expanded": l.value,
|
|
3627
3628
|
"aria-controls": u,
|
|
3628
3629
|
"aria-activedescendant": I.value,
|
|
3629
3630
|
"aria-required": R(E),
|
|
3630
3631
|
"aria-invalid": e.invalid ? "true" : void 0,
|
|
3631
3632
|
disabled: R(D),
|
|
3632
|
-
"onUpdate:modelValue":
|
|
3633
|
+
"onUpdate:modelValue": O[0] || (O[0] = (Q) => n.value = Q),
|
|
3633
3634
|
onFocus: p,
|
|
3634
3635
|
onBlur: x,
|
|
3635
|
-
onInput:
|
|
3636
|
-
onKeydown:
|
|
3636
|
+
onInput: q,
|
|
3637
|
+
onKeydown: z
|
|
3637
3638
|
}), null, 16, D5), [
|
|
3638
3639
|
[m1, n.value]
|
|
3639
3640
|
]),
|
|
3640
|
-
|
|
3641
|
-
default:
|
|
3641
|
+
K($e, { name: "select" }, {
|
|
3642
|
+
default: G(() => [
|
|
3642
3643
|
Ve(g("ul", {
|
|
3643
3644
|
id: u,
|
|
3644
3645
|
role: "listbox",
|
|
@@ -3651,41 +3652,41 @@ const I5 = {
|
|
|
3651
3652
|
class: se(["option", { "focus-visible": d.value === S }]),
|
|
3652
3653
|
"aria-disabled": t.isDisabled(Q) || void 0,
|
|
3653
3654
|
"aria-selected": S === h.value,
|
|
3654
|
-
onMousedown:
|
|
3655
|
+
onMousedown: O[1] || (O[1] = ne(() => {
|
|
3655
3656
|
}, ["prevent"])),
|
|
3656
|
-
onClick: (
|
|
3657
|
+
onClick: (X) => !t.isDisabled(Q) && V(Q, S)
|
|
3657
3658
|
}, [
|
|
3658
|
-
t.isDisabled(Q) ?
|
|
3659
|
+
t.isDisabled(Q) ? F("", !0) : (v(), W(ue, {
|
|
3659
3660
|
key: 0,
|
|
3660
3661
|
name: "search",
|
|
3661
3662
|
size: 22
|
|
3662
3663
|
})),
|
|
3663
|
-
|
|
3664
|
+
U(H.$slots, "option", {
|
|
3664
3665
|
option: Q,
|
|
3665
3666
|
value: e.getValue(Q),
|
|
3666
3667
|
query: n.value,
|
|
3667
3668
|
selected: S === h.value,
|
|
3668
3669
|
active: S === d.value
|
|
3669
3670
|
}, () => [
|
|
3670
|
-
g("div",
|
|
3671
|
-
|
|
3671
|
+
g("div", z5, [
|
|
3672
|
+
K(x5, {
|
|
3672
3673
|
text: e.getValue(Q),
|
|
3673
3674
|
query: n.value
|
|
3674
3675
|
}, null, 8, ["text", "query"])
|
|
3675
3676
|
])
|
|
3676
3677
|
], !0),
|
|
3677
|
-
g("div",
|
|
3678
|
-
], 42,
|
|
3678
|
+
g("div", q5, P(e.getValue(Q)), 1)
|
|
3679
|
+
], 42, O5))), 128)) : k.value.length === 0 && !e.loading ? (v(), f("li", N5, [...O[3] || (O[3] = [
|
|
3679
3680
|
g("div", { class: "option-value" }, "No results found", -1)
|
|
3680
|
-
])])) : (v(),
|
|
3681
|
+
])])) : (v(), W(f1, {
|
|
3681
3682
|
key: 2,
|
|
3682
3683
|
"aria-live": "polite",
|
|
3683
3684
|
role: "status",
|
|
3684
3685
|
message: "Loading"
|
|
3685
3686
|
})),
|
|
3686
|
-
B.value ? (v(), f("li",
|
|
3687
|
+
B.value ? (v(), f("li", F5, [...O[4] || (O[4] = [
|
|
3687
3688
|
g("div", { class: "option-value" }, " Recents ", -1)
|
|
3688
|
-
])])) :
|
|
3689
|
+
])])) : F("", !0),
|
|
3689
3690
|
(v(!0), f(ae, null, de(c.value, (Q) => (v(), f("li", {
|
|
3690
3691
|
key: Q,
|
|
3691
3692
|
role: "presentation",
|
|
@@ -3693,30 +3694,30 @@ const I5 = {
|
|
|
3693
3694
|
class: "option recent-item",
|
|
3694
3695
|
onClick: (S) => w(Q)
|
|
3695
3696
|
}, [
|
|
3696
|
-
|
|
3697
|
-
g("div",
|
|
3698
|
-
], 8,
|
|
3697
|
+
K(ue, { name: "clock" }),
|
|
3698
|
+
g("div", P5, P(Q), 1)
|
|
3699
|
+
], 8, K5))), 128))
|
|
3699
3700
|
], 512), [
|
|
3700
|
-
[
|
|
3701
|
+
[Oe, l.value]
|
|
3701
3702
|
])
|
|
3702
3703
|
]),
|
|
3703
3704
|
_: 3
|
|
3704
3705
|
}),
|
|
3705
|
-
H.$slots.icon ? (v(), f("span",
|
|
3706
|
-
|
|
3707
|
-
])) :
|
|
3708
|
-
n.value.length > 0 ? (v(),
|
|
3706
|
+
H.$slots.icon ? (v(), f("span", U5, [
|
|
3707
|
+
U(H.$slots, "icon", {}, void 0, !0)
|
|
3708
|
+
])) : F("", !0),
|
|
3709
|
+
n.value.length > 0 ? (v(), W(he, {
|
|
3709
3710
|
key: 1,
|
|
3710
3711
|
type: "button",
|
|
3711
3712
|
class: "btn btn-icon",
|
|
3712
3713
|
"aria-label": "Clear search query",
|
|
3713
3714
|
title: "Clear search query",
|
|
3714
|
-
onMousedown:
|
|
3715
|
+
onMousedown: O[2] || (O[2] = ne(() => {
|
|
3715
3716
|
}, ["prevent"])),
|
|
3716
3717
|
onClick: b
|
|
3717
3718
|
}, {
|
|
3718
|
-
default:
|
|
3719
|
-
|
|
3719
|
+
default: G(() => [
|
|
3720
|
+
K(ue, {
|
|
3720
3721
|
class: "clear-search",
|
|
3721
3722
|
"aria-hidden": "true",
|
|
3722
3723
|
name: "close",
|
|
@@ -3724,33 +3725,33 @@ const I5 = {
|
|
|
3724
3725
|
})
|
|
3725
3726
|
]),
|
|
3726
3727
|
_: 1
|
|
3727
|
-
})) :
|
|
3728
|
+
})) : F("", !0)
|
|
3728
3729
|
], 2));
|
|
3729
3730
|
}
|
|
3730
|
-
}), co = /* @__PURE__ */
|
|
3731
|
+
}), co = /* @__PURE__ */ j(j5, [["__scopeId", "data-v-aefb7615"]]), X5 = 5, ve = o1({
|
|
3731
3732
|
toasts: []
|
|
3732
3733
|
});
|
|
3733
|
-
let
|
|
3734
|
-
const
|
|
3734
|
+
let G5 = 0;
|
|
3735
|
+
const Me = (e, o = "info") => {
|
|
3735
3736
|
const t = {
|
|
3736
|
-
id: `toast-${
|
|
3737
|
+
id: `toast-${G5++}`,
|
|
3737
3738
|
duration: 4e3,
|
|
3738
3739
|
...typeof e == "string" ? { description: e } : e,
|
|
3739
3740
|
variant: o
|
|
3740
3741
|
};
|
|
3741
|
-
return ve.toasts.push(t), ve.toasts.length >
|
|
3742
|
-
},
|
|
3743
|
-
(e) =>
|
|
3742
|
+
return ve.toasts.push(t), ve.toasts.length > X5 && ve.toasts.shift(), t.id;
|
|
3743
|
+
}, W5 = (e, o) => ve.toasts = ve.toasts.map((t) => t.id === e ? { ...t, ...o, loading: !1 } : t), vo = Object.assign(
|
|
3744
|
+
(e) => Me(e),
|
|
3744
3745
|
{
|
|
3745
|
-
update:
|
|
3746
|
-
success: (e) =>
|
|
3747
|
-
error: (e) =>
|
|
3748
|
-
info: (e) =>
|
|
3749
|
-
warning: (e) =>
|
|
3750
|
-
loading: (e) =>
|
|
3746
|
+
update: W5,
|
|
3747
|
+
success: (e) => Me(e, "success"),
|
|
3748
|
+
error: (e) => Me(e, "error"),
|
|
3749
|
+
info: (e) => Me(e, "info"),
|
|
3750
|
+
warning: (e) => Me(e, "warning"),
|
|
3751
|
+
loading: (e) => Me({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
|
|
3751
3752
|
dismiss: (e) => ve.toasts = ve.toasts.filter((o) => o.id !== e),
|
|
3752
3753
|
promise(e, o) {
|
|
3753
|
-
const t =
|
|
3754
|
+
const t = Me({ loading: !0, description: o.loading, duration: 1 / 0 });
|
|
3754
3755
|
return e.then(() => ve.toasts = ve.toasts.map((a) => a.id === t ? { ...a, description: o.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => ve.toasts = ve.toasts.map((a) => a.id === t ? { ...a, description: o.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
|
|
3755
3756
|
}
|
|
3756
3757
|
}
|
|
@@ -3767,25 +3768,25 @@ const Le = (e, o = "info") => {
|
|
|
3767
3768
|
focus: { type: Boolean }
|
|
3768
3769
|
},
|
|
3769
3770
|
setup(e) {
|
|
3770
|
-
const o = e, t = C(null), a = C("open"),
|
|
3771
|
+
const o = e, t = C(null), a = C("open"), r = C(100);
|
|
3771
3772
|
let s = Date.now(), i;
|
|
3772
3773
|
const n = () => {
|
|
3773
3774
|
const d = Date.now() - s;
|
|
3774
|
-
if (
|
|
3775
|
+
if (r.value = Math.max(0, 100 - d / o.duration * 100), r.value <= 0) {
|
|
3775
3776
|
c();
|
|
3776
3777
|
return;
|
|
3777
3778
|
}
|
|
3778
3779
|
i = requestAnimationFrame(n);
|
|
3779
|
-
},
|
|
3780
|
+
}, l = () => {
|
|
3780
3781
|
if (cancelAnimationFrame(i), o.duration === 1 / 0) {
|
|
3781
|
-
|
|
3782
|
+
r.value = 100;
|
|
3782
3783
|
return;
|
|
3783
3784
|
}
|
|
3784
3785
|
s = Date.now(), i = requestAnimationFrame(n);
|
|
3785
3786
|
};
|
|
3786
3787
|
Y(
|
|
3787
3788
|
() => o.duration,
|
|
3788
|
-
() =>
|
|
3789
|
+
() => l(),
|
|
3789
3790
|
{ immediate: !0 }
|
|
3790
3791
|
);
|
|
3791
3792
|
const c = () => {
|
|
@@ -3804,15 +3805,15 @@ const Le = (e, o = "info") => {
|
|
|
3804
3805
|
"aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
|
|
3805
3806
|
}, [
|
|
3806
3807
|
g("div", Y5, [
|
|
3807
|
-
|
|
3808
|
-
|
|
3808
|
+
U(d.$slots, "default", {}, void 0, !0),
|
|
3809
|
+
K(he, {
|
|
3809
3810
|
type: "button",
|
|
3810
3811
|
onClick: c,
|
|
3811
3812
|
"aria-label": `Close ${e.variant} notification`,
|
|
3812
3813
|
class: "btn-sm"
|
|
3813
3814
|
}, {
|
|
3814
|
-
default:
|
|
3815
|
-
|
|
3815
|
+
default: G(() => [
|
|
3816
|
+
K(ue, {
|
|
3816
3817
|
name: "close",
|
|
3817
3818
|
size: 32
|
|
3818
3819
|
})
|
|
@@ -3823,36 +3824,36 @@ const Le = (e, o = "info") => {
|
|
|
3823
3824
|
e.duration !== 1 / 0 ? (v(), f("div", Q5, [
|
|
3824
3825
|
g("div", {
|
|
3825
3826
|
class: "bar",
|
|
3826
|
-
style: ye({ width:
|
|
3827
|
+
style: ye({ width: r.value + "%" })
|
|
3827
3828
|
}, null, 4)
|
|
3828
|
-
])) :
|
|
3829
|
+
])) : F("", !0)
|
|
3829
3830
|
], 8, J5));
|
|
3830
3831
|
}
|
|
3831
|
-
}), aa = /* @__PURE__ */
|
|
3832
|
+
}), aa = /* @__PURE__ */ j(ta, [["__scopeId", "data-v-f9e75b9d"]]), oa = { class: "toast-viewport" }, na = { class: "toast-message" }, la = { key: 0 }, ra = ["id"], sa = /* @__PURE__ */ _({
|
|
3832
3833
|
__name: "ToastViewport",
|
|
3833
3834
|
setup(e) {
|
|
3834
|
-
return (o, t) => (v(),
|
|
3835
|
+
return (o, t) => (v(), W(Be, { to: "body" }, [
|
|
3835
3836
|
g("div", oa, [
|
|
3836
|
-
|
|
3837
|
-
default:
|
|
3838
|
-
(v(!0), f(ae, null, de(R(ve).toasts, (a) => (v(),
|
|
3837
|
+
K(h1, { name: "toast-stack" }, {
|
|
3838
|
+
default: G(() => [
|
|
3839
|
+
(v(!0), f(ae, null, de(R(ve).toasts, (a) => (v(), W(aa, {
|
|
3839
3840
|
key: a.id,
|
|
3840
3841
|
id: a.id,
|
|
3841
3842
|
duration: a.duration,
|
|
3842
3843
|
variant: a.variant,
|
|
3843
3844
|
loading: a.loading
|
|
3844
3845
|
}, {
|
|
3845
|
-
default:
|
|
3846
|
+
default: G(() => [
|
|
3846
3847
|
g("div", na, [
|
|
3847
|
-
a.title ? (v(), f("strong",
|
|
3848
|
-
a.loading ? (v(),
|
|
3848
|
+
a.title ? (v(), f("strong", la, P(a.title), 1)) : F("", !0),
|
|
3849
|
+
a.loading ? (v(), W(f1, {
|
|
3849
3850
|
key: 1,
|
|
3850
3851
|
message: a.description,
|
|
3851
3852
|
"aria-hidden": "true"
|
|
3852
3853
|
}, null, 8, ["message"])) : (v(), f("p", {
|
|
3853
3854
|
key: 2,
|
|
3854
3855
|
id: `toast-desc-${a.id}`
|
|
3855
|
-
},
|
|
3856
|
+
}, P(a.description), 9, ra))
|
|
3856
3857
|
])
|
|
3857
3858
|
]),
|
|
3858
3859
|
_: 2
|
|
@@ -3863,7 +3864,7 @@ const Le = (e, o = "info") => {
|
|
|
3863
3864
|
])
|
|
3864
3865
|
]));
|
|
3865
3866
|
}
|
|
3866
|
-
}), t1 = /* @__PURE__ */
|
|
3867
|
+
}), t1 = /* @__PURE__ */ j(sa, [["__scopeId", "data-v-afe47f2a"]]);
|
|
3867
3868
|
let a1 = !1;
|
|
3868
3869
|
const fo = {
|
|
3869
3870
|
install(e, o = {}) {
|
|
@@ -3882,10 +3883,10 @@ const fo = {
|
|
|
3882
3883
|
},
|
|
3883
3884
|
emits: ["click"],
|
|
3884
3885
|
setup(e, { emit: o }) {
|
|
3885
|
-
const t = e, a = o,
|
|
3886
|
-
be("card:labelId",
|
|
3886
|
+
const t = e, a = o, r = C(), s = C();
|
|
3887
|
+
be("card:labelId", r), be("card:descriptionId", s);
|
|
3887
3888
|
const i = $(() => t.clickable && t.as !== "button" && t.as !== "a"), n = () => t.clickable && a("click");
|
|
3888
|
-
return (
|
|
3889
|
+
return (l, c) => (v(), W(Ie(e.as), {
|
|
3889
3890
|
class: se(["rs-card", { clickable: e.clickable }]),
|
|
3890
3891
|
tabindex: i.value ? 0 : void 0,
|
|
3891
3892
|
role: i.value ? "button" : void 0,
|
|
@@ -3894,57 +3895,57 @@ const fo = {
|
|
|
3894
3895
|
c[0] || (c[0] = fe(ne((d) => i.value && n(), ["prevent"]), ["enter"])),
|
|
3895
3896
|
c[1] || (c[1] = fe(ne((d) => i.value && n(), ["prevent"]), ["space"]))
|
|
3896
3897
|
],
|
|
3897
|
-
"aria-labelledby":
|
|
3898
|
+
"aria-labelledby": r.value,
|
|
3898
3899
|
"aria-describedby": s.value
|
|
3899
3900
|
}, {
|
|
3900
|
-
default:
|
|
3901
|
-
|
|
3901
|
+
default: G(() => [
|
|
3902
|
+
U(l.$slots, "default", {}, void 0, !0)
|
|
3902
3903
|
]),
|
|
3903
3904
|
_: 3
|
|
3904
3905
|
}, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
|
|
3905
3906
|
}
|
|
3906
|
-
}), Co = /* @__PURE__ */
|
|
3907
|
+
}), Co = /* @__PURE__ */ j(ia, [["__scopeId", "data-v-e892a9f2"]]), ua = /* @__PURE__ */ _({
|
|
3907
3908
|
__name: "CardHeader",
|
|
3908
3909
|
props: {
|
|
3909
3910
|
as: { default: "div" }
|
|
3910
3911
|
},
|
|
3911
3912
|
setup(e) {
|
|
3912
|
-
const o =
|
|
3913
|
-
return te(() => o && (o.value = t)), (a,
|
|
3913
|
+
const o = le("card:labelId", void 0), t = `rs-card-label-${ie()}`;
|
|
3914
|
+
return te(() => o && (o.value = t)), (a, r) => (v(), W(Ie(e.as), {
|
|
3914
3915
|
id: t,
|
|
3915
3916
|
class: "rs-card-header"
|
|
3916
3917
|
}, {
|
|
3917
|
-
default:
|
|
3918
|
-
|
|
3918
|
+
default: G(() => [
|
|
3919
|
+
U(a.$slots, "default", {}, void 0, !0)
|
|
3919
3920
|
]),
|
|
3920
3921
|
_: 3
|
|
3921
3922
|
}));
|
|
3922
3923
|
}
|
|
3923
|
-
}), po = /* @__PURE__ */
|
|
3924
|
+
}), po = /* @__PURE__ */ j(ua, [["__scopeId", "data-v-570794b4"]]), da = /* @__PURE__ */ _({
|
|
3924
3925
|
__name: "CardBody",
|
|
3925
3926
|
setup(e) {
|
|
3926
|
-
const o =
|
|
3927
|
-
return te(() => o && (o.value = t)), (a,
|
|
3927
|
+
const o = le("card:descriptionId", void 0), t = `rs-card-desc-${ie()}`;
|
|
3928
|
+
return te(() => o && (o.value = t)), (a, r) => (v(), f("div", {
|
|
3928
3929
|
id: t,
|
|
3929
3930
|
class: "rs-card-body"
|
|
3930
3931
|
}, [
|
|
3931
|
-
|
|
3932
|
+
U(a.$slots, "default", {}, void 0, !0)
|
|
3932
3933
|
]));
|
|
3933
3934
|
}
|
|
3934
|
-
}), mo = /* @__PURE__ */
|
|
3935
|
+
}), mo = /* @__PURE__ */ j(da, [["__scopeId", "data-v-f0380fda"]]), ca = /* @__PURE__ */ _({
|
|
3935
3936
|
__name: "CardFooter",
|
|
3936
3937
|
props: {
|
|
3937
3938
|
as: { default: "div" }
|
|
3938
3939
|
},
|
|
3939
3940
|
setup(e) {
|
|
3940
|
-
return (o, t) => (v(),
|
|
3941
|
-
default:
|
|
3942
|
-
|
|
3941
|
+
return (o, t) => (v(), W(Ie(e.as), { class: "rs-card-footer" }, {
|
|
3942
|
+
default: G(() => [
|
|
3943
|
+
U(o.$slots, "default", {}, void 0, !0)
|
|
3943
3944
|
]),
|
|
3944
3945
|
_: 3
|
|
3945
3946
|
}));
|
|
3946
3947
|
}
|
|
3947
|
-
}), ho = /* @__PURE__ */
|
|
3948
|
+
}), ho = /* @__PURE__ */ j(ca, [["__scopeId", "data-v-9b223473"]]), va = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], fa = {
|
|
3948
3949
|
key: 2,
|
|
3949
3950
|
class: "icon",
|
|
3950
3951
|
"aria-hidden": "true",
|
|
@@ -3969,13 +3970,13 @@ const fo = {
|
|
|
3969
3970
|
size: {}
|
|
3970
3971
|
},
|
|
3971
3972
|
setup(e) {
|
|
3972
|
-
const o = e, t =
|
|
3973
|
+
const o = e, t = le("StepsContext");
|
|
3973
3974
|
if (!t) throw new Error("Step component must be used inside Steps.");
|
|
3974
|
-
const a =
|
|
3975
|
-
let n = null,
|
|
3976
|
-
const c =
|
|
3975
|
+
const a = qe(), r = C(null), s = C(null), i = $(() => t.orientation ?? "horizontal");
|
|
3976
|
+
let n = null, l = null;
|
|
3977
|
+
const c = le("StepIndex");
|
|
3977
3978
|
if (c == null) throw new Error("StepIndex component must be used inside Steps.");
|
|
3978
|
-
const d = $(() => o.status ? o.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = $(() => t?.icons?.[d.value]),
|
|
3979
|
+
const d = $(() => o.status ? o.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), h = $(() => t?.icons?.[d.value]), L = $(() => a.icon ? "slot" : o.icon ? o.icon : h.value), M = $(() => {
|
|
3979
3980
|
switch (d.value) {
|
|
3980
3981
|
case "completed":
|
|
3981
3982
|
return "Stage completed";
|
|
@@ -4019,7 +4020,7 @@ const fo = {
|
|
|
4019
4020
|
n = null, k();
|
|
4020
4021
|
}));
|
|
4021
4022
|
}, k = () => {
|
|
4022
|
-
if (!
|
|
4023
|
+
if (!r.value || !s.value) return;
|
|
4023
4024
|
const E = s.value.getBoundingClientRect(), p = t.stepsRef.value.getBoundingClientRect(), x = t.orientation === "vertical" ? E.top + E.height / 2 - p.top : E.left + E.width / 2 - p.left;
|
|
4024
4025
|
t.registerIndicatorCenter(c, x);
|
|
4025
4026
|
}, D = (E) => {
|
|
@@ -4049,16 +4050,16 @@ const fo = {
|
|
|
4049
4050
|
E.preventDefault();
|
|
4050
4051
|
};
|
|
4051
4052
|
return te(() => {
|
|
4052
|
-
!
|
|
4053
|
+
!r.value || !s.value || (requestAnimationFrame(() => {
|
|
4053
4054
|
requestAnimationFrame(k);
|
|
4054
|
-
}),
|
|
4055
|
+
}), l = new ResizeObserver(() => {
|
|
4055
4056
|
B();
|
|
4056
|
-
}),
|
|
4057
|
+
}), l.observe(r.value), l.observe(s.value), t.stepsRef.value && l.observe(t.stepsRef.value), t.registerStep(r.value));
|
|
4057
4058
|
}), ge(() => {
|
|
4058
|
-
|
|
4059
|
+
l?.disconnect(), t.unregisterStep(r.value), n != null && cancelAnimationFrame(n);
|
|
4059
4060
|
}), (E, p) => (v(), f("li", {
|
|
4060
4061
|
ref_key: "stepRef",
|
|
4061
|
-
ref:
|
|
4062
|
+
ref: r,
|
|
4062
4063
|
class: se(["step", `step__${y.value}`]),
|
|
4063
4064
|
role: "listitem",
|
|
4064
4065
|
"data-status": d.value,
|
|
@@ -4079,14 +4080,14 @@ const fo = {
|
|
|
4079
4080
|
class: "indicator",
|
|
4080
4081
|
"aria-hidden": "true"
|
|
4081
4082
|
}, [
|
|
4082
|
-
E.$slots.icon ?
|
|
4083
|
+
E.$slots.icon ? U(E.$slots, "icon", {
|
|
4083
4084
|
key: 0,
|
|
4084
4085
|
status: d.value
|
|
4085
|
-
}, void 0, !0) :
|
|
4086
|
+
}, void 0, !0) : L.value ? (v(), W(ue, {
|
|
4086
4087
|
key: 1,
|
|
4087
|
-
name:
|
|
4088
|
+
name: L.value,
|
|
4088
4089
|
class: "icon"
|
|
4089
|
-
}, null, 8, ["name"])) :
|
|
4090
|
+
}, null, 8, ["name"])) : F("", !0),
|
|
4090
4091
|
d.value === "completed" ? (v(), f("svg", fa, [...p[0] || (p[0] = [
|
|
4091
4092
|
g("path", {
|
|
4092
4093
|
d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
|
|
@@ -4097,41 +4098,41 @@ const fo = {
|
|
|
4097
4098
|
d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
|
|
4098
4099
|
fill: "currentColor"
|
|
4099
4100
|
}, null, -1)
|
|
4100
|
-
])])) : d.value === "active" ? (v(), f("span", pa)) :
|
|
4101
|
+
])])) : d.value === "active" ? (v(), f("span", pa)) : F("", !0)
|
|
4101
4102
|
], 512),
|
|
4102
4103
|
g("span", {
|
|
4103
4104
|
id: `step-status-${R(c)}`,
|
|
4104
4105
|
class: "sr-only"
|
|
4105
|
-
},
|
|
4106
|
+
}, P(M.value), 9, ma),
|
|
4106
4107
|
g("div", ha, [
|
|
4107
4108
|
g("span", {
|
|
4108
4109
|
id: `step-title-${R(c)}`,
|
|
4109
4110
|
class: "title"
|
|
4110
|
-
},
|
|
4111
|
-
|
|
4111
|
+
}, P(e.title), 9, ya),
|
|
4112
|
+
K(B2, {
|
|
4112
4113
|
variant: u.value,
|
|
4113
4114
|
size: "sm"
|
|
4114
4115
|
}, {
|
|
4115
|
-
default:
|
|
4116
|
-
me(
|
|
4116
|
+
default: G(() => [
|
|
4117
|
+
me(P(I.value), 1)
|
|
4117
4118
|
]),
|
|
4118
4119
|
_: 1
|
|
4119
4120
|
}, 8, ["variant"]),
|
|
4120
4121
|
E.$slots.default ? (v(), f("span", ba, [
|
|
4121
|
-
|
|
4122
|
-
])) :
|
|
4122
|
+
U(E.$slots, "default", {}, void 0, !0)
|
|
4123
|
+
])) : F("", !0)
|
|
4123
4124
|
])
|
|
4124
4125
|
], 42, va));
|
|
4125
4126
|
}
|
|
4126
|
-
}), yo = /* @__PURE__ */
|
|
4127
|
+
}), yo = /* @__PURE__ */ j(ga, [["__scopeId", "data-v-5c2d8caa"]]), ka = /* @__PURE__ */ _({
|
|
4127
4128
|
__name: "StepsItem",
|
|
4128
4129
|
props: {
|
|
4129
4130
|
index: {}
|
|
4130
4131
|
},
|
|
4131
4132
|
setup(e) {
|
|
4132
|
-
return be("StepIndex", e.index), (t, a) =>
|
|
4133
|
+
return be("StepIndex", e.index), (t, a) => U(t.$slots, "default");
|
|
4133
4134
|
}
|
|
4134
|
-
}), wa = ["data-size", "data-orientation"],
|
|
4135
|
+
}), wa = ["data-size", "data-orientation"], Ma = ["data-error", "data-completed"], La = {
|
|
4135
4136
|
"aria-live": "polite",
|
|
4136
4137
|
"aria-atomic": "true",
|
|
4137
4138
|
class: "sr-only"
|
|
@@ -4150,13 +4151,13 @@ const fo = {
|
|
|
4150
4151
|
}),
|
|
4151
4152
|
emits: ["update:modelValue"],
|
|
4152
4153
|
setup(e) {
|
|
4153
|
-
const o = e, t = C(0), a =
|
|
4154
|
+
const o = e, t = C(0), a = qe(), r = pe(e, "modelValue"), s = C([]), i = C(null), n = $(() => r.value ?? 0), l = `steps-description-${ie()}`, c = b1({}), d = o1({});
|
|
4154
4155
|
let h = null;
|
|
4155
|
-
const
|
|
4156
|
+
const L = $(() => (a.default?.() ?? [])[n.value]?.props?.title ?? ""), M = $(() => Object.entries(d).filter(([, Z]) => Z !== "completed").length === 0), u = $(
|
|
4156
4157
|
() => Object.values(d).includes("error")
|
|
4157
4158
|
), y = $(() => {
|
|
4158
|
-
const Z = n.value,
|
|
4159
|
-
if (
|
|
4159
|
+
const Z = n.value, q = c;
|
|
4160
|
+
if (q.value[0] == null || q.value[Z] == null)
|
|
4160
4161
|
return o.orientation === "vertical" ? {
|
|
4161
4162
|
height: "100%",
|
|
4162
4163
|
top: "0px"
|
|
@@ -4164,7 +4165,7 @@ const fo = {
|
|
|
4164
4165
|
width: "100%",
|
|
4165
4166
|
left: "0px"
|
|
4166
4167
|
};
|
|
4167
|
-
const m =
|
|
4168
|
+
const m = q.value[0], b = q.value[Z];
|
|
4168
4169
|
return o.orientation === "vertical" ? {
|
|
4169
4170
|
top: `${m}px`,
|
|
4170
4171
|
height: `${b - m}px`
|
|
@@ -4175,50 +4176,50 @@ const fo = {
|
|
|
4175
4176
|
}), I = $(() => {
|
|
4176
4177
|
const Z = Object.values(c.value).sort((b, T) => b - T);
|
|
4177
4178
|
if (Z.length < 2) return {};
|
|
4178
|
-
const
|
|
4179
|
+
const q = Z[0], m = Z[Z.length - 1];
|
|
4179
4180
|
return o.orientation === "vertical" ? {
|
|
4180
|
-
top: `${
|
|
4181
|
-
height: `${m -
|
|
4181
|
+
top: `${q}px`,
|
|
4182
|
+
height: `${m - q}px`
|
|
4182
4183
|
} : {
|
|
4183
|
-
left: `${
|
|
4184
|
+
left: `${q}px`,
|
|
4184
4185
|
right: `calc(100% - ${m}px)`
|
|
4185
4186
|
};
|
|
4186
|
-
}), B = (Z,
|
|
4187
|
+
}), B = (Z, q) => c.value = { ...c.value, [Z]: q };
|
|
4187
4188
|
function k(Z) {
|
|
4188
4189
|
s.value.push(Z), t.value = s.value.length;
|
|
4189
4190
|
}
|
|
4190
4191
|
function D(Z) {
|
|
4191
|
-
s.value = s.value.filter((
|
|
4192
|
+
s.value = s.value.filter((q) => q !== Z), t.value = s.value.length;
|
|
4192
4193
|
}
|
|
4193
4194
|
function E(Z) {
|
|
4194
|
-
Z < 0 || Z >= s.value.length || (
|
|
4195
|
+
Z < 0 || Z >= s.value.length || (r.value = Z, s.value[Z]?.focus());
|
|
4195
4196
|
}
|
|
4196
4197
|
function p() {
|
|
4197
|
-
E(
|
|
4198
|
+
E(r.value + 1);
|
|
4198
4199
|
}
|
|
4199
4200
|
function x() {
|
|
4200
|
-
E(
|
|
4201
|
+
E(r.value - 1);
|
|
4201
4202
|
}
|
|
4202
4203
|
function V() {
|
|
4203
4204
|
E(0);
|
|
4204
4205
|
}
|
|
4205
|
-
function
|
|
4206
|
+
function z() {
|
|
4206
4207
|
E(t.value - 1);
|
|
4207
4208
|
}
|
|
4208
4209
|
return te(() => {
|
|
4209
4210
|
i.value && (h = new ResizeObserver(() => {
|
|
4210
4211
|
}), h.observe(i.value));
|
|
4211
4212
|
}), ge(() => h?.disconnect()), be("StepsContext", {
|
|
4212
|
-
current: $(() =>
|
|
4213
|
-
update: (Z) =>
|
|
4213
|
+
current: $(() => r.value),
|
|
4214
|
+
update: (Z) => r.value = Z,
|
|
4214
4215
|
stepsCount: t,
|
|
4215
4216
|
icons: o.icons,
|
|
4216
4217
|
size: o.size,
|
|
4217
4218
|
orientation: o.orientation,
|
|
4218
4219
|
stepStatusMap: d,
|
|
4219
4220
|
stepsRef: i,
|
|
4220
|
-
registerStepStatus: (Z,
|
|
4221
|
-
d[Z] =
|
|
4221
|
+
registerStepStatus: (Z, q) => {
|
|
4222
|
+
d[Z] = q;
|
|
4222
4223
|
},
|
|
4223
4224
|
registerIndicatorCenter: B,
|
|
4224
4225
|
registerStep: k,
|
|
@@ -4226,8 +4227,8 @@ const fo = {
|
|
|
4226
4227
|
focusNext: p,
|
|
4227
4228
|
focusPrev: x,
|
|
4228
4229
|
focusFirst: V,
|
|
4229
|
-
focusLast:
|
|
4230
|
-
}), (Z,
|
|
4230
|
+
focusLast: z
|
|
4231
|
+
}), (Z, q) => (v(), f(ae, null, [
|
|
4231
4232
|
g("ol", {
|
|
4232
4233
|
ref_key: "stepsRef",
|
|
4233
4234
|
ref: i,
|
|
@@ -4235,10 +4236,10 @@ const fo = {
|
|
|
4235
4236
|
role: "list",
|
|
4236
4237
|
"data-size": e.size,
|
|
4237
4238
|
"data-orientation": o.orientation,
|
|
4238
|
-
"aria-describedby":
|
|
4239
|
+
"aria-describedby": l
|
|
4239
4240
|
}, [
|
|
4240
4241
|
g("p", {
|
|
4241
|
-
id:
|
|
4242
|
+
id: l,
|
|
4242
4243
|
class: "sr-only"
|
|
4243
4244
|
}, " This is a multi-step process. Use arrow keys to navigate between steps. "),
|
|
4244
4245
|
g("div", {
|
|
@@ -4249,24 +4250,24 @@ const fo = {
|
|
|
4249
4250
|
g("div", {
|
|
4250
4251
|
class: "track-progress",
|
|
4251
4252
|
"data-error": u.value,
|
|
4252
|
-
"data-completed":
|
|
4253
|
+
"data-completed": M.value,
|
|
4253
4254
|
style: ye(y.value)
|
|
4254
|
-
}, null, 12,
|
|
4255
|
+
}, null, 12, Ma)
|
|
4255
4256
|
], 4),
|
|
4256
|
-
(v(!0), f(ae, null, de(Z.$slots.default?.(), (m, b) => (v(),
|
|
4257
|
+
(v(!0), f(ae, null, de(Z.$slots.default?.(), (m, b) => (v(), W(ka, {
|
|
4257
4258
|
key: b,
|
|
4258
4259
|
index: b
|
|
4259
4260
|
}, {
|
|
4260
|
-
default:
|
|
4261
|
-
(v(),
|
|
4261
|
+
default: G(() => [
|
|
4262
|
+
(v(), W(Ie(m)))
|
|
4262
4263
|
]),
|
|
4263
4264
|
_: 2
|
|
4264
4265
|
}, 1032, ["index"]))), 128))
|
|
4265
4266
|
], 8, wa),
|
|
4266
|
-
g("div",
|
|
4267
|
+
g("div", La, " Step " + P(n.value + 1) + " of " + P(t.value) + ": " + P(L.value), 1)
|
|
4267
4268
|
], 64));
|
|
4268
4269
|
}
|
|
4269
|
-
}), bo = /* @__PURE__ */
|
|
4270
|
+
}), bo = /* @__PURE__ */ j(xa, [["__scopeId", "data-v-8697173d"]]), $a = ["data-align"], Ia = /* @__PURE__ */ _({
|
|
4270
4271
|
__name: "Timeline",
|
|
4271
4272
|
props: {
|
|
4272
4273
|
align: { default: "left" }
|
|
@@ -4277,10 +4278,10 @@ const fo = {
|
|
|
4277
4278
|
class: "ui-timeline",
|
|
4278
4279
|
"data-align": e.align
|
|
4279
4280
|
}, [
|
|
4280
|
-
|
|
4281
|
+
U(t.$slots, "default", {}, void 0, !0)
|
|
4281
4282
|
], 8, $a));
|
|
4282
4283
|
}
|
|
4283
|
-
}), go = /* @__PURE__ */
|
|
4284
|
+
}), go = /* @__PURE__ */ j(Ia, [["__scopeId", "data-v-d56deb2b"]]), Va = ["data-align", "aria-labelledby", "aria-describedby"], Ha = { class: "ui-timeline-content" }, Ba = ["datetime"], _a = { class: "ui-timeline-date--month" }, Ra = { class: "ui-timeline-date--day" }, Za = { class: "ui-timeline-date--year" }, Aa = ["data-direction"], Sa = { class: "info" }, Ta = ["id"], Ea = { class: "addons" }, Da = /* @__PURE__ */ _({
|
|
4284
4285
|
__name: "TimelineItem",
|
|
4285
4286
|
props: {
|
|
4286
4287
|
date: {},
|
|
@@ -4291,18 +4292,18 @@ const fo = {
|
|
|
4291
4292
|
titleAs: {}
|
|
4292
4293
|
},
|
|
4293
4294
|
setup(e) {
|
|
4294
|
-
const o = e, t =
|
|
4295
|
+
const o = e, t = le("TimelineContext");
|
|
4295
4296
|
if (!t) throw new Error("TimelineItem must be used within a Timeline component");
|
|
4296
|
-
const a = ie(),
|
|
4297
|
+
const a = ie(), r = ie(), s = $(() => t.align === "alternate" ? (o.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (c) => {
|
|
4297
4298
|
const d = new Date(c).getDay();
|
|
4298
4299
|
return d < 10 ? `0${d}` : d;
|
|
4299
|
-
}, n = (c) => new Date(c).toLocaleString("default", { month: "short" }),
|
|
4300
|
+
}, n = (c) => new Date(c).toLocaleString("default", { month: "short" }), l = (c) => new Date(c).getFullYear();
|
|
4300
4301
|
return (c, d) => (v(), f("li", {
|
|
4301
4302
|
tabindex: "0",
|
|
4302
4303
|
class: se([s.value, "ui-timeline-item"]),
|
|
4303
4304
|
"data-align": R(t).align,
|
|
4304
4305
|
"aria-labelledby": e.title ? R(a) : void 0,
|
|
4305
|
-
"aria-describedby": e.description ? R(
|
|
4306
|
+
"aria-describedby": e.description ? R(r) : void 0
|
|
4306
4307
|
}, [
|
|
4307
4308
|
d[0] || (d[0] = g("div", {
|
|
4308
4309
|
class: "ui-timeline-marker",
|
|
@@ -4314,49 +4315,49 @@ const fo = {
|
|
|
4314
4315
|
class: "ui-timeline-date",
|
|
4315
4316
|
datetime: e.date
|
|
4316
4317
|
}, [
|
|
4317
|
-
g("span", _a,
|
|
4318
|
-
g("span", Ra,
|
|
4319
|
-
g("span", Za,
|
|
4320
|
-
], 8, Ba)) :
|
|
4318
|
+
g("span", _a, P(n(e.date)), 1),
|
|
4319
|
+
g("span", Ra, P(i(e.date)), 1),
|
|
4320
|
+
g("span", Za, P(l(e.date)), 1)
|
|
4321
|
+
], 8, Ba)) : F("", !0),
|
|
4321
4322
|
g("div", {
|
|
4322
4323
|
class: "ui-timeline-body",
|
|
4323
4324
|
"data-direction": e.flexDirection
|
|
4324
4325
|
}, [
|
|
4325
4326
|
g("div", Sa, [
|
|
4326
|
-
|
|
4327
|
-
(v(),
|
|
4327
|
+
U(c.$slots, "title", {}, () => [
|
|
4328
|
+
(v(), W(Ie(e.titleAs ?? "h3"), {
|
|
4328
4329
|
id: R(a),
|
|
4329
4330
|
class: "ui-timeline-title"
|
|
4330
4331
|
}, {
|
|
4331
|
-
default:
|
|
4332
|
-
me(
|
|
4332
|
+
default: G(() => [
|
|
4333
|
+
me(P(e.title), 1)
|
|
4333
4334
|
]),
|
|
4334
4335
|
_: 1
|
|
4335
4336
|
}, 8, ["id"]))
|
|
4336
4337
|
], !0),
|
|
4337
|
-
|
|
4338
|
+
U(c.$slots, "description", {}, () => [
|
|
4338
4339
|
e.description ? (v(), f("p", {
|
|
4339
4340
|
key: 0,
|
|
4340
|
-
id: R(
|
|
4341
|
+
id: R(r),
|
|
4341
4342
|
class: "ui-timeline-description"
|
|
4342
|
-
},
|
|
4343
|
+
}, P(e.description), 9, Ta)) : F("", !0)
|
|
4343
4344
|
], !0)
|
|
4344
4345
|
]),
|
|
4345
4346
|
g("div", Ea, [
|
|
4346
|
-
|
|
4347
|
+
U(c.$slots, "default", {}, void 0, !0)
|
|
4347
4348
|
])
|
|
4348
4349
|
], 8, Aa)
|
|
4349
4350
|
])
|
|
4350
4351
|
], 10, Va));
|
|
4351
4352
|
}
|
|
4352
|
-
}), ko = /* @__PURE__ */
|
|
4353
|
+
}), ko = /* @__PURE__ */ j(Da, [["__scopeId", "data-v-10599410"]]), Oa = ["aria-label", "aria-activedescendant"], za = { class: "carousel-viewport" }, qa = {
|
|
4353
4354
|
class: "sr-only",
|
|
4354
4355
|
"aria-live": "polite"
|
|
4355
|
-
},
|
|
4356
|
+
}, Na = {
|
|
4356
4357
|
key: 0,
|
|
4357
4358
|
role: "tablist",
|
|
4358
4359
|
class: "carousel-indicators"
|
|
4359
|
-
},
|
|
4360
|
+
}, Fa = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], Ka = 0.35, Pa = 0.2, Ua = /* @__PURE__ */ _({
|
|
4360
4361
|
__name: "Carousel",
|
|
4361
4362
|
props: /* @__PURE__ */ oe({
|
|
4362
4363
|
ariaLabel: { default: "Carousel" },
|
|
@@ -4378,32 +4379,32 @@ const fo = {
|
|
|
4378
4379
|
}),
|
|
4379
4380
|
emits: ["update:modelValue"],
|
|
4380
4381
|
setup(e) {
|
|
4381
|
-
const o = pe(e, "modelValue"), t = e, a = C(0),
|
|
4382
|
+
const o = pe(e, "modelValue"), t = e, a = C(0), r = C(0), s = C(0), i = C(0), n = C(0), l = C(0), c = C(!1), d = C(!1), h = C(0), L = C([]), M = C(1), u = C(o.value), y = C(null), I = C(null);
|
|
4382
4383
|
let B = null, k = null;
|
|
4383
4384
|
Y(
|
|
4384
4385
|
() => o.value,
|
|
4385
4386
|
(S) => u.value = S
|
|
4386
4387
|
);
|
|
4387
|
-
const D = $(() =>
|
|
4388
|
-
const S = u.value * (100 /
|
|
4388
|
+
const D = $(() => L.value[u.value] ?? void 0), E = $(() => Math.floor(u.value / M.value)), p = $(() => Math.ceil(w.value / M.value)), x = $(() => Math.max(0, w.value - M.value)), V = $(() => {
|
|
4389
|
+
const S = u.value * (100 / M.value), X = d.value && I.value ? s.value / I.value.clientWidth * 100 : 0;
|
|
4389
4390
|
return {
|
|
4390
|
-
transform: `translateX(calc(-${S}% + ${
|
|
4391
|
+
transform: `translateX(calc(-${S}% + ${X}%))`,
|
|
4391
4392
|
transition: d.value ? "none" : "transform 300ms ease"
|
|
4392
4393
|
};
|
|
4393
|
-
}),
|
|
4394
|
-
let
|
|
4394
|
+
}), z = (S) => {
|
|
4395
|
+
let X = S;
|
|
4395
4396
|
if (t.loop) {
|
|
4396
|
-
const
|
|
4397
|
-
|
|
4397
|
+
const re = Math.round(S / M.value), ee = p.value;
|
|
4398
|
+
X = (re % ee + ee) % ee * M.value;
|
|
4398
4399
|
} else
|
|
4399
|
-
|
|
4400
|
+
X = Math.min(
|
|
4400
4401
|
Math.max(S, 0),
|
|
4401
4402
|
x.value
|
|
4402
4403
|
);
|
|
4403
|
-
u.value =
|
|
4404
|
-
}, Z = () =>
|
|
4405
|
-
S.key === "ArrowRight" ? Z() : S.key === "ArrowLeft" &&
|
|
4406
|
-
}, b = (S) => (
|
|
4404
|
+
u.value = X, o.value = X;
|
|
4405
|
+
}, Z = () => z(u.value + M.value), q = () => z(u.value - M.value), m = (S) => {
|
|
4406
|
+
S.key === "ArrowRight" ? Z() : S.key === "ArrowLeft" && q();
|
|
4407
|
+
}, b = (S) => (L.value.includes(S) || L.value.push(S), L.value.indexOf(S)), T = (S) => L.value = L.value.filter((X) => X !== S), w = $(() => L.value.length), A = () => {
|
|
4407
4408
|
!t.autoplay || B !== null || (B = window.setInterval(() => {
|
|
4408
4409
|
c.value || Z();
|
|
4409
4410
|
}, t.autoplayDelay));
|
|
@@ -4412,26 +4413,26 @@ const fo = {
|
|
|
4412
4413
|
}, ce = (S) => {
|
|
4413
4414
|
if (typeof t.itemsPerView == "number")
|
|
4414
4415
|
return t.itemsPerView;
|
|
4415
|
-
const
|
|
4416
|
-
let
|
|
4417
|
-
for (const [ee, ke] of
|
|
4418
|
-
return
|
|
4416
|
+
const X = Object.entries(t.itemsPerView).map(([ee, ke]) => [Number(ee), ke]).sort((ee, ke) => ee[0] - ke[0]);
|
|
4417
|
+
let re = X[0]?.[1] ?? 1;
|
|
4418
|
+
for (const [ee, ke] of X) S >= ee && (re = ke);
|
|
4419
|
+
return re;
|
|
4419
4420
|
}, H = (S) => {
|
|
4420
|
-
S.button === 0 && (d.value = !0,
|
|
4421
|
-
},
|
|
4421
|
+
S.button === 0 && (d.value = !0, r.value = S.clientX, a.value = S.clientX, l.value = S.clientX, s.value = 0, i.value = performance.now(), n.value = 0, h.value = u.value, I.value?.setPointerCapture(S.pointerId), J(), I.value.style.userSelect = "");
|
|
4422
|
+
}, O = (S) => {
|
|
4422
4423
|
if (!d.value) return;
|
|
4423
|
-
const
|
|
4424
|
-
ee > 0 && (n.value =
|
|
4424
|
+
const X = performance.now(), re = S.clientX - a.value, ee = X - i.value;
|
|
4425
|
+
ee > 0 && (n.value = re / ee), a.value = S.clientX, i.value = X, l.value = S.clientX, s.value = l.value - r.value;
|
|
4425
4426
|
}, Q = (S) => {
|
|
4426
4427
|
if (!d.value) return;
|
|
4427
4428
|
d.value = !1, I.value?.releasePointerCapture(S.pointerId), I.value.style.userSelect = "";
|
|
4428
|
-
const
|
|
4429
|
-
Math.abs(n.value) >
|
|
4429
|
+
const X = I.value.clientWidth / M.value, re = s.value / X;
|
|
4430
|
+
Math.abs(n.value) > Ka ? n.value < 0 ? Z() : q() : Math.abs(re) > Pa ? re < 0 ? Z() : q() : z(h.value), s.value = 0, n.value = 0, A();
|
|
4430
4431
|
};
|
|
4431
4432
|
return te(() => {
|
|
4432
4433
|
A(), y.value && (k = new ResizeObserver((S) => {
|
|
4433
|
-
const
|
|
4434
|
-
|
|
4434
|
+
const X = S[0]?.contentRect.width;
|
|
4435
|
+
X !== void 0 && (M.value = ce(X));
|
|
4435
4436
|
}), k.observe(y.value));
|
|
4436
4437
|
}), ge(() => {
|
|
4437
4438
|
J(), k?.disconnect();
|
|
@@ -4441,14 +4442,14 @@ const fo = {
|
|
|
4441
4442
|
S ? A() : J();
|
|
4442
4443
|
},
|
|
4443
4444
|
{ immediate: !0 }
|
|
4444
|
-
), Y(
|
|
4445
|
+
), Y(M, () => u.value = Math.min(u.value, x.value)), be("CarouselContext", {
|
|
4445
4446
|
register: b,
|
|
4446
4447
|
unregister: T,
|
|
4447
4448
|
activeIndex: u,
|
|
4448
4449
|
slideCount: w,
|
|
4449
4450
|
deltaX: s,
|
|
4450
|
-
itemsPerView: t.itemsPerView instanceof Object ?
|
|
4451
|
-
}), (S,
|
|
4451
|
+
itemsPerView: t.itemsPerView instanceof Object ? M : C(t.itemsPerView)
|
|
4452
|
+
}), (S, X) => (v(), f("div", {
|
|
4452
4453
|
ref_key: "rootRef",
|
|
4453
4454
|
ref: y,
|
|
4454
4455
|
role: "region",
|
|
@@ -4457,39 +4458,39 @@ const fo = {
|
|
|
4457
4458
|
"aria-label": e.ariaLabel,
|
|
4458
4459
|
tabindex: "0",
|
|
4459
4460
|
"aria-activedescendant": D.value,
|
|
4460
|
-
style: ye({ "--items-per-view":
|
|
4461
|
+
style: ye({ "--items-per-view": M.value }),
|
|
4461
4462
|
onKeydown: m,
|
|
4462
|
-
onMouseenter:
|
|
4463
|
-
onMouseleave:
|
|
4464
|
-
onFocusin:
|
|
4465
|
-
onFocusout:
|
|
4463
|
+
onMouseenter: X[0] || (X[0] = (re) => c.value = !0),
|
|
4464
|
+
onMouseleave: X[1] || (X[1] = (re) => c.value = !1),
|
|
4465
|
+
onFocusin: X[2] || (X[2] = (re) => c.value = !0),
|
|
4466
|
+
onFocusout: X[3] || (X[3] = (re) => c.value = !1)
|
|
4466
4467
|
}, [
|
|
4467
|
-
|
|
4468
|
+
X[4] || (X[4] = g("span", {
|
|
4468
4469
|
id: "carousel-instructions",
|
|
4469
4470
|
class: "sr-only"
|
|
4470
4471
|
}, " Use left and right arrow keys to navigate slides ", -1)),
|
|
4471
|
-
g("div",
|
|
4472
|
+
g("div", za, [
|
|
4472
4473
|
g("div", {
|
|
4473
4474
|
ref_key: "trackRef",
|
|
4474
4475
|
ref: I,
|
|
4475
4476
|
class: "carousel-track",
|
|
4476
4477
|
style: ye(V.value),
|
|
4477
4478
|
onPointerdown: H,
|
|
4478
|
-
onPointermove:
|
|
4479
|
+
onPointermove: O,
|
|
4479
4480
|
onPointerup: Q,
|
|
4480
4481
|
onPointercancel: Q
|
|
4481
4482
|
}, [
|
|
4482
|
-
|
|
4483
|
+
U(S.$slots, "default", {}, void 0, !0)
|
|
4483
4484
|
], 36)
|
|
4484
4485
|
]),
|
|
4485
|
-
g("span",
|
|
4486
|
+
g("span", qa, " Slide " + P(Math.floor(u.value / M.value) + 1) + " of " + P(p.value), 1),
|
|
4486
4487
|
g("button", {
|
|
4487
4488
|
type: "button",
|
|
4488
4489
|
class: "carousel-control prev",
|
|
4489
4490
|
"aria-label": "Previous slide",
|
|
4490
|
-
onClick:
|
|
4491
|
+
onClick: q
|
|
4491
4492
|
}, [
|
|
4492
|
-
|
|
4493
|
+
K(ue, { name: "directionDown" })
|
|
4493
4494
|
]),
|
|
4494
4495
|
g("button", {
|
|
4495
4496
|
type: "button",
|
|
@@ -4497,32 +4498,32 @@ const fo = {
|
|
|
4497
4498
|
"aria-label": "Next slide",
|
|
4498
4499
|
onClick: Z
|
|
4499
4500
|
}, [
|
|
4500
|
-
|
|
4501
|
+
K(ue, { name: "directionDown" })
|
|
4501
4502
|
]),
|
|
4502
|
-
e.showIndicators ? (v(), f("div",
|
|
4503
|
-
(v(!0), f(ae, null, de(p.value, (
|
|
4503
|
+
e.showIndicators ? (v(), f("div", Na, [
|
|
4504
|
+
(v(!0), f(ae, null, de(p.value, (re, ee) => (v(), f("button", {
|
|
4504
4505
|
role: "tab",
|
|
4505
4506
|
type: "button",
|
|
4506
4507
|
key: ee,
|
|
4507
|
-
class: se(["indicator", { active: ee === Math.floor(u.value /
|
|
4508
|
+
class: se(["indicator", { active: ee === Math.floor(u.value / M.value) }]),
|
|
4508
4509
|
"aria-label": `Go to slide ${ee + 1}`,
|
|
4509
4510
|
"aria-selected": ee === E.value,
|
|
4510
4511
|
"aria-current": ee === E.value,
|
|
4511
|
-
onClick: (ke) =>
|
|
4512
|
+
onClick: (ke) => z(ee * M.value),
|
|
4512
4513
|
onKeydown: [
|
|
4513
|
-
fe(ne((ke) =>
|
|
4514
|
-
fe(ne((ke) =>
|
|
4514
|
+
fe(ne((ke) => z((ee - 1 + p.value) % p.value * M.value), ["prevent"]), ["left"]),
|
|
4515
|
+
fe(ne((ke) => z((ee + 1) % p.value * M.value), ["prevent"]), ["right"])
|
|
4515
4516
|
]
|
|
4516
|
-
}, null, 42,
|
|
4517
|
-
])) :
|
|
4518
|
-
], 44,
|
|
4517
|
+
}, null, 42, Fa))), 128))
|
|
4518
|
+
])) : F("", !0)
|
|
4519
|
+
], 44, Oa));
|
|
4519
4520
|
}
|
|
4520
|
-
}), wo = /* @__PURE__ */
|
|
4521
|
+
}), wo = /* @__PURE__ */ j(Ua, [["__scopeId", "data-v-30cdfc00"]]), ja = ["aria-hidden", "aria-label"], Xa = /* @__PURE__ */ _({
|
|
4521
4522
|
__name: "CarouselItem",
|
|
4522
4523
|
setup(e) {
|
|
4523
|
-
const o =
|
|
4524
|
+
const o = le("CarouselContext");
|
|
4524
4525
|
if (!o) throw new Error("CarouselItem must be used inside a Carousel");
|
|
4525
|
-
const t = "carousel-item-" + ie(), a = C(0),
|
|
4526
|
+
const t = "carousel-item-" + ie(), a = C(0), r = $(() => Math.abs(o.deltaX.value) > 5), s = $(() => Math.floor(a.value / o.itemsPerView.value) === Math.floor(o.activeIndex.value / o.itemsPerView.value));
|
|
4526
4527
|
return te(() => a.value = o.register(t)), ge(() => o.unregister(t)), (i, n) => (v(), f("div", {
|
|
4527
4528
|
role: "group",
|
|
4528
4529
|
class: "carousel-item",
|
|
@@ -4530,12 +4531,12 @@ const fo = {
|
|
|
4530
4531
|
"aria-roledescription": "slide",
|
|
4531
4532
|
"aria-hidden": !s.value,
|
|
4532
4533
|
"aria-label": `Slide ${a.value + 1}`,
|
|
4533
|
-
onClickCapture: n[0] || (n[0] = (
|
|
4534
|
+
onClickCapture: n[0] || (n[0] = (l) => r.value && l.preventDefault())
|
|
4534
4535
|
}, [
|
|
4535
|
-
|
|
4536
|
-
], 40,
|
|
4536
|
+
U(i.$slots, "default", {}, void 0, !0)
|
|
4537
|
+
], 40, ja));
|
|
4537
4538
|
}
|
|
4538
|
-
}),
|
|
4539
|
+
}), Mo = /* @__PURE__ */ j(Xa, [["__scopeId", "data-v-a569d055"]]), Ze = /* @__PURE__ */ Symbol("TabsContext"), Lo = _({
|
|
4539
4540
|
name: "Tabs",
|
|
4540
4541
|
props: {
|
|
4541
4542
|
modelValue: String,
|
|
@@ -4551,10 +4552,10 @@ const fo = {
|
|
|
4551
4552
|
},
|
|
4552
4553
|
emits: ["update:modelValue"],
|
|
4553
4554
|
setup(e, { emit: o, slots: t }) {
|
|
4554
|
-
const a = C(e.modelValue ?? e.defaultValue),
|
|
4555
|
+
const a = C(e.modelValue ?? e.defaultValue), r = C(!1), s = C([]), i = C("forward"), n = C();
|
|
4555
4556
|
Y(a, (u) => {
|
|
4556
|
-
!u || !
|
|
4557
|
-
document.getElementById(`tab-${u}`)?.focus(),
|
|
4557
|
+
!u || !r.value || requestAnimationFrame(() => {
|
|
4558
|
+
document.getElementById(`tab-${u}`)?.focus(), r.value = !1;
|
|
4558
4559
|
});
|
|
4559
4560
|
}), Y(
|
|
4560
4561
|
() => e.modelValue,
|
|
@@ -4564,7 +4565,7 @@ const fo = {
|
|
|
4564
4565
|
), Y(s, (u) => {
|
|
4565
4566
|
!a.value && u.length && (a.value = u[0]);
|
|
4566
4567
|
});
|
|
4567
|
-
const
|
|
4568
|
+
const l = (u, y) => s.value[y] = u, c = (u) => {
|
|
4568
4569
|
const y = s.value.filter(Boolean);
|
|
4569
4570
|
if (!y.length) return;
|
|
4570
4571
|
const I = a.value;
|
|
@@ -4580,26 +4581,26 @@ const fo = {
|
|
|
4580
4581
|
B !== -1 && k !== -1 && (i.value = k > B ? "forward" : "backward"), I !== u && (a.value = u, o("update:modelValue", u));
|
|
4581
4582
|
}, d = $(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), h = (u) => {
|
|
4582
4583
|
u instanceof HTMLElement && n.value && (n.value.style.height = `${u.offsetHeight}px`);
|
|
4583
|
-
},
|
|
4584
|
+
}, L = (u) => {
|
|
4584
4585
|
if (u instanceof HTMLElement && n.value) {
|
|
4585
4586
|
const y = u.offsetHeight;
|
|
4586
4587
|
requestAnimationFrame(() => {
|
|
4587
4588
|
n.value && (n.value.style.height = `${y}px`);
|
|
4588
4589
|
});
|
|
4589
4590
|
}
|
|
4590
|
-
},
|
|
4591
|
+
}, M = () => {
|
|
4591
4592
|
n.value && (n.value.style.height = "");
|
|
4592
4593
|
};
|
|
4593
4594
|
return be(Ze, {
|
|
4594
4595
|
activeValue: a,
|
|
4595
4596
|
setValue: c,
|
|
4596
|
-
registerTrigger:
|
|
4597
|
+
registerTrigger: l,
|
|
4597
4598
|
direction: i,
|
|
4598
4599
|
activationMode: C(e.activationMode),
|
|
4599
4600
|
orientation: C(e.orientation),
|
|
4600
4601
|
triggers: s,
|
|
4601
4602
|
contentWrapperRef: n,
|
|
4602
|
-
focusOnChange:
|
|
4603
|
+
focusOnChange: r
|
|
4603
4604
|
}), () => {
|
|
4604
4605
|
const u = t.default?.() || [], y = [], I = [];
|
|
4605
4606
|
u.forEach((k) => {
|
|
@@ -4608,22 +4609,22 @@ const fo = {
|
|
|
4608
4609
|
const B = I.find((k) => k.props?.value === a.value);
|
|
4609
4610
|
return [
|
|
4610
4611
|
...y,
|
|
4611
|
-
|
|
4612
|
+
N(
|
|
4612
4613
|
"div",
|
|
4613
4614
|
{
|
|
4614
4615
|
class: "tabs-content-wrapper",
|
|
4615
4616
|
ref: n
|
|
4616
4617
|
},
|
|
4617
|
-
|
|
4618
|
+
N(
|
|
4618
4619
|
$e,
|
|
4619
4620
|
{
|
|
4620
4621
|
name: d.value,
|
|
4621
4622
|
mode: "out-in",
|
|
4622
4623
|
onBeforeLeave: h,
|
|
4623
|
-
onEnter:
|
|
4624
|
-
onAfterEnter:
|
|
4624
|
+
onEnter: L,
|
|
4625
|
+
onAfterEnter: M
|
|
4625
4626
|
},
|
|
4626
|
-
() => B ? [
|
|
4627
|
+
() => B ? [N(B.type, {
|
|
4627
4628
|
...B.props,
|
|
4628
4629
|
key: B.props.value
|
|
4629
4630
|
}, B.children)] : []
|
|
@@ -4635,9 +4636,9 @@ const fo = {
|
|
|
4635
4636
|
}), xo = _({
|
|
4636
4637
|
name: "TabsList",
|
|
4637
4638
|
setup(e, { slots: o }) {
|
|
4638
|
-
const t =
|
|
4639
|
+
const t = le(Ze);
|
|
4639
4640
|
if (!t) throw new Error("TabsList components must be used inside <Tabs>");
|
|
4640
|
-
return () =>
|
|
4641
|
+
return () => N(
|
|
4641
4642
|
"div",
|
|
4642
4643
|
{
|
|
4643
4644
|
role: "tablist",
|
|
@@ -4664,13 +4665,13 @@ const fo = {
|
|
|
4664
4665
|
}
|
|
4665
4666
|
},
|
|
4666
4667
|
setup(e, { slots: o }) {
|
|
4667
|
-
const t =
|
|
4668
|
+
const t = le(Ze);
|
|
4668
4669
|
if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
|
|
4669
|
-
const a = $(() => t.activeValue.value === e.value),
|
|
4670
|
+
const a = $(() => t.activeValue.value === e.value), r = () => !e.disabled && t.setValue(e.value), s = (i) => {
|
|
4670
4671
|
if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
|
|
4671
4672
|
i.preventDefault();
|
|
4672
|
-
const
|
|
4673
|
-
let d =
|
|
4673
|
+
const l = t.triggers.value.filter(Boolean);
|
|
4674
|
+
let d = l.indexOf(e.value);
|
|
4674
4675
|
const h = t.orientation.value === "horizontal";
|
|
4675
4676
|
switch (i.key) {
|
|
4676
4677
|
case "ArrowRight":
|
|
@@ -4689,16 +4690,16 @@ const fo = {
|
|
|
4689
4690
|
d = 0;
|
|
4690
4691
|
break;
|
|
4691
4692
|
case "End":
|
|
4692
|
-
d =
|
|
4693
|
+
d = l.length - 1;
|
|
4693
4694
|
break;
|
|
4694
4695
|
}
|
|
4695
|
-
d = (d +
|
|
4696
|
-
const
|
|
4697
|
-
t.activationMode.value === "auto" && t.setValue(
|
|
4698
|
-
document.getElementById(`tab-${
|
|
4696
|
+
d = (d + l.length) % l.length;
|
|
4697
|
+
const L = l[d];
|
|
4698
|
+
t.activationMode.value === "auto" && t.setValue(L), requestAnimationFrame(() => {
|
|
4699
|
+
document.getElementById(`tab-${L}`)?.focus();
|
|
4699
4700
|
});
|
|
4700
4701
|
};
|
|
4701
|
-
return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ge(() => t.triggers.value[e.index] = void 0), () =>
|
|
4702
|
+
return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ge(() => t.triggers.value[e.index] = void 0), () => N(
|
|
4702
4703
|
he,
|
|
4703
4704
|
{
|
|
4704
4705
|
role: "tab",
|
|
@@ -4709,7 +4710,7 @@ const fo = {
|
|
|
4709
4710
|
tabindex: a.value ? 0 : -1,
|
|
4710
4711
|
disabled: e.disabled ?? void 0,
|
|
4711
4712
|
class: "tabs-trigger",
|
|
4712
|
-
onClick:
|
|
4713
|
+
onClick: r,
|
|
4713
4714
|
onKeydown: s
|
|
4714
4715
|
},
|
|
4715
4716
|
{ default: () => o.default?.() }
|
|
@@ -4724,8 +4725,8 @@ const fo = {
|
|
|
4724
4725
|
}
|
|
4725
4726
|
},
|
|
4726
4727
|
setup(e, { slots: o }) {
|
|
4727
|
-
if (!
|
|
4728
|
-
return () =>
|
|
4728
|
+
if (!le(Ze)) throw new Error("TabsContent components must be used inside <Tabs>");
|
|
4729
|
+
return () => N(
|
|
4729
4730
|
"div",
|
|
4730
4731
|
{
|
|
4731
4732
|
id: `panel-${e.value}`,
|
|
@@ -4737,58 +4738,58 @@ const fo = {
|
|
|
4737
4738
|
o.default?.()
|
|
4738
4739
|
);
|
|
4739
4740
|
}
|
|
4740
|
-
}),
|
|
4741
|
+
}), Ga = { class: "ui-dropdown" }, Vo = /* @__PURE__ */ _({
|
|
4741
4742
|
__name: "Dropdown",
|
|
4742
4743
|
setup(e) {
|
|
4743
4744
|
let o = 0;
|
|
4744
|
-
const t = C(!1), a = C(null),
|
|
4745
|
-
t.value = !1,
|
|
4745
|
+
const t = C(!1), a = C(null), r = C({}), s = `dropdown-${ie()}`, i = `${s}-menu`, n = `${s}-trigger`, l = () => t.value = !0, c = () => {
|
|
4746
|
+
t.value = !1, r.value = {}, o = 0, a.value?.focus({ preventScroll: !0 });
|
|
4746
4747
|
}, d = () => t.value = !t.value, h = (k) => {
|
|
4747
4748
|
const D = `dropdown-item-${o++}`;
|
|
4748
|
-
return
|
|
4749
|
-
},
|
|
4750
|
-
const D =
|
|
4749
|
+
return r.value[D] = k, D;
|
|
4750
|
+
}, L = (k) => {
|
|
4751
|
+
const D = r.value[k];
|
|
4751
4752
|
D && D.focus();
|
|
4752
|
-
},
|
|
4753
|
-
const k = Object.keys(
|
|
4754
|
-
k &&
|
|
4753
|
+
}, M = () => {
|
|
4754
|
+
const k = Object.keys(r.value)[0];
|
|
4755
|
+
k && L(k);
|
|
4755
4756
|
}, u = () => {
|
|
4756
|
-
const k = Object.keys(
|
|
4757
|
-
D &&
|
|
4757
|
+
const k = Object.keys(r.value), D = k[k.length - 1];
|
|
4758
|
+
D && L(D);
|
|
4758
4759
|
}, y = (k) => {
|
|
4759
|
-
const D = Object.keys(
|
|
4760
|
-
E >= 0 && E < D.length - 1 && p &&
|
|
4760
|
+
const D = Object.keys(r.value), E = B(k), p = D[E + 1];
|
|
4761
|
+
E >= 0 && E < D.length - 1 && p && L(p);
|
|
4761
4762
|
}, I = (k) => {
|
|
4762
|
-
const D = Object.keys(
|
|
4763
|
-
E > 0 && p &&
|
|
4764
|
-
}, B = (k) => Object.keys(
|
|
4763
|
+
const D = Object.keys(r.value), E = B(k), p = D[E - 1];
|
|
4764
|
+
E > 0 && p && L(p);
|
|
4765
|
+
}, B = (k) => Object.keys(r.value).indexOf(k);
|
|
4765
4766
|
return be("DropdownContext", {
|
|
4766
|
-
open:
|
|
4767
|
+
open: l,
|
|
4767
4768
|
close: c,
|
|
4768
4769
|
toggle: d,
|
|
4769
4770
|
isOpen: t,
|
|
4770
4771
|
registerItem: h,
|
|
4771
|
-
focusItem:
|
|
4772
|
+
focusItem: L,
|
|
4772
4773
|
focusNextItem: y,
|
|
4773
4774
|
focusPrevItem: I,
|
|
4774
|
-
focusFirstItem:
|
|
4775
|
+
focusFirstItem: M,
|
|
4775
4776
|
focusLastItem: u,
|
|
4776
4777
|
triggerRef: a,
|
|
4777
4778
|
menuId: i,
|
|
4778
4779
|
triggerId: n
|
|
4779
|
-
}), (k, D) => (v(), f("div",
|
|
4780
|
-
|
|
4780
|
+
}), (k, D) => (v(), f("div", Ga, [
|
|
4781
|
+
U(k.$slots, "default")
|
|
4781
4782
|
]));
|
|
4782
4783
|
}
|
|
4783
|
-
}),
|
|
4784
|
+
}), Wa = /* @__PURE__ */ _({
|
|
4784
4785
|
__name: "DropdownTrigger",
|
|
4785
4786
|
setup(e) {
|
|
4786
|
-
const o =
|
|
4787
|
+
const o = le("DropdownContext");
|
|
4787
4788
|
if (!o) throw new Error("DropdownTrigger must be used within a Dropdown");
|
|
4788
|
-
const t = C(), a = (
|
|
4789
|
-
|
|
4789
|
+
const t = C(), a = (r) => {
|
|
4790
|
+
r.key === "ArrowDown" && (r.preventDefault(), o.open(), Le(() => o.focusFirstItem())), r.key === "ArrowUp" && (r.preventDefault(), o.open(), Le(() => o.focusLastItem()));
|
|
4790
4791
|
};
|
|
4791
|
-
return te(() => o.triggerRef.value = t.value?.el), (
|
|
4792
|
+
return te(() => o.triggerRef.value = t.value?.el), (r, s) => (v(), W(he, {
|
|
4792
4793
|
ref_key: "btn",
|
|
4793
4794
|
ref: t,
|
|
4794
4795
|
id: R(o).triggerId,
|
|
@@ -4799,29 +4800,29 @@ const fo = {
|
|
|
4799
4800
|
onClick: R(o).toggle,
|
|
4800
4801
|
onKeydown: a
|
|
4801
4802
|
}, {
|
|
4802
|
-
default:
|
|
4803
|
-
|
|
4804
|
-
|
|
4803
|
+
default: G(() => [
|
|
4804
|
+
U(r.$slots, "default", {}, void 0, !0),
|
|
4805
|
+
K(ue, { name: "directionDown" })
|
|
4805
4806
|
]),
|
|
4806
4807
|
_: 3
|
|
4807
4808
|
}, 8, ["id", "aria-controls", "aria-expanded", "onClick"]));
|
|
4808
4809
|
}
|
|
4809
|
-
}), Ho = /* @__PURE__ */
|
|
4810
|
+
}), Ho = /* @__PURE__ */ j(Wa, [["__scopeId", "data-v-b8f0b77e"]]), Ja = ["id", "aria-labelledby"], Ya = /* @__PURE__ */ _({
|
|
4810
4811
|
__name: "DropdownMenu",
|
|
4811
4812
|
setup(e) {
|
|
4812
|
-
const o =
|
|
4813
|
+
const o = le("DropdownContext");
|
|
4813
4814
|
if (!o) throw new Error("DropdownMenu must be used within a Dropdown");
|
|
4814
|
-
const t = C(), a = C({}),
|
|
4815
|
-
const
|
|
4816
|
-
t.value?.contains(
|
|
4815
|
+
const t = C(), a = C({}), r = (n) => {
|
|
4816
|
+
const l = n.target;
|
|
4817
|
+
t.value?.contains(l) || o.triggerRef.value?.contains(l) || o.close();
|
|
4817
4818
|
}, s = (n) => n.key === "Escape" && o.close(), i = () => {
|
|
4818
4819
|
const n = o.triggerRef.value;
|
|
4819
4820
|
if (!n) return;
|
|
4820
|
-
const
|
|
4821
|
+
const l = n.getBoundingClientRect();
|
|
4821
4822
|
a.value = {
|
|
4822
4823
|
position: "fixed",
|
|
4823
|
-
top: `${
|
|
4824
|
-
left: `${
|
|
4824
|
+
top: `${l.bottom}px`,
|
|
4825
|
+
left: `${l.left}px`
|
|
4825
4826
|
};
|
|
4826
4827
|
};
|
|
4827
4828
|
return Y(
|
|
@@ -4832,13 +4833,13 @@ const fo = {
|
|
|
4832
4833
|
), Y(
|
|
4833
4834
|
() => o.isOpen.value,
|
|
4834
4835
|
(n) => {
|
|
4835
|
-
n ? document.addEventListener("pointerdown",
|
|
4836
|
+
n ? document.addEventListener("pointerdown", r, !0) : document.removeEventListener("pointerdown", r, !0);
|
|
4836
4837
|
}
|
|
4837
4838
|
), te(() => {
|
|
4838
4839
|
window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
|
|
4839
4840
|
}), ge(() => {
|
|
4840
4841
|
window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
|
|
4841
|
-
}), (n,
|
|
4842
|
+
}), (n, l) => (v(), W(Be, { to: "body" }, [
|
|
4842
4843
|
R(o).isOpen.value ? (v(), f("div", {
|
|
4843
4844
|
key: 0,
|
|
4844
4845
|
role: "menu",
|
|
@@ -4851,17 +4852,17 @@ const fo = {
|
|
|
4851
4852
|
class: "ui-dropdown-menu",
|
|
4852
4853
|
onKeydown: s
|
|
4853
4854
|
}, [
|
|
4854
|
-
|
|
4855
|
-
], 44, Ja)) :
|
|
4855
|
+
U(n.$slots, "default", {}, void 0, !0)
|
|
4856
|
+
], 44, Ja)) : F("", !0)
|
|
4856
4857
|
]));
|
|
4857
4858
|
}
|
|
4858
|
-
}), Bo = /* @__PURE__ */
|
|
4859
|
+
}), Bo = /* @__PURE__ */ j(Ya, [["__scopeId", "data-v-3b7b0ae5"]]), Qa = /* @__PURE__ */ _({
|
|
4859
4860
|
__name: "DropdownItem",
|
|
4860
4861
|
setup(e) {
|
|
4861
|
-
const o =
|
|
4862
|
+
const o = le("DropdownContext");
|
|
4862
4863
|
if (!o) throw new Error("DropdownItem must be used within a Dropdown");
|
|
4863
4864
|
let t;
|
|
4864
|
-
const a = C(),
|
|
4865
|
+
const a = C(), r = (s) => {
|
|
4865
4866
|
s.key === "ArrowDown" && (s.preventDefault(), o.focusNextItem(t)), s.key === "ArrowUp" && (s.preventDefault(), o.focusPrevItem(t)), (s.key === "Enter" || s.key === " ") && (s.preventDefault(), a.value?.click(), o.close());
|
|
4866
4867
|
};
|
|
4867
4868
|
return te(() => t = o.registerItem(a.value)), (s, i) => (v(), f("div", {
|
|
@@ -4870,15 +4871,15 @@ const fo = {
|
|
|
4870
4871
|
role: "menuitem",
|
|
4871
4872
|
class: "ui-dropdown-item",
|
|
4872
4873
|
tabindex: "-1",
|
|
4873
|
-
onKeydown:
|
|
4874
|
+
onKeydown: r,
|
|
4874
4875
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
4875
4876
|
(...n) => R(o).close && R(o).close(...n)),
|
|
4876
4877
|
onPointerenter: i[1] || (i[1] = (n) => a.value?.focus())
|
|
4877
4878
|
}, [
|
|
4878
|
-
|
|
4879
|
+
U(s.$slots, "default", {}, void 0, !0)
|
|
4879
4880
|
], 544));
|
|
4880
4881
|
}
|
|
4881
|
-
}), _o = /* @__PURE__ */
|
|
4882
|
+
}), _o = /* @__PURE__ */ j(Qa, [["__scopeId", "data-v-69de3d9c"]]), Ro = _({
|
|
4882
4883
|
name: "Table",
|
|
4883
4884
|
props: {
|
|
4884
4885
|
columns: {
|
|
@@ -4907,9 +4908,9 @@ const fo = {
|
|
|
4907
4908
|
setup(e, { emit: o, slots: t }) {
|
|
4908
4909
|
const a = (n) => {
|
|
4909
4910
|
if (!n.sortable) return;
|
|
4910
|
-
const
|
|
4911
|
-
o("update:sort", { key: n.key, direction:
|
|
4912
|
-
},
|
|
4911
|
+
const l = e.sort?.key === n.key && e.sort.direction === "asc" ? "desc" : "asc";
|
|
4912
|
+
o("update:sort", { key: n.key, direction: l });
|
|
4913
|
+
}, r = () => window.matchMedia("(max-width: 640px)").matches, s = () => N(
|
|
4913
4914
|
"div",
|
|
4914
4915
|
{
|
|
4915
4916
|
class: "rs-table-mobile",
|
|
@@ -4917,10 +4918,10 @@ const fo = {
|
|
|
4917
4918
|
"aria-busy": e.loading || void 0
|
|
4918
4919
|
},
|
|
4919
4920
|
e.loading ? t.loading?.() ?? "Loading..." : e.data.length === 0 ? t.empty?.() ?? "No data available." : e.data.map(
|
|
4920
|
-
(n,
|
|
4921
|
+
(n, l) => N(
|
|
4921
4922
|
"div",
|
|
4922
4923
|
{
|
|
4923
|
-
key: n.id ??
|
|
4924
|
+
key: n.id ?? l,
|
|
4924
4925
|
class: "rs-table-card",
|
|
4925
4926
|
role: e.rowClickable ? "button" : "listitem",
|
|
4926
4927
|
tabindex: e.rowClickable ? 0 : void 0,
|
|
@@ -4930,16 +4931,16 @@ const fo = {
|
|
|
4930
4931
|
} : void 0
|
|
4931
4932
|
},
|
|
4932
4933
|
e.columns.map(
|
|
4933
|
-
(c) =>
|
|
4934
|
+
(c) => N(
|
|
4934
4935
|
"div",
|
|
4935
4936
|
{ class: "rs-table-card-row" },
|
|
4936
4937
|
[
|
|
4937
|
-
|
|
4938
|
+
N(
|
|
4938
4939
|
"span",
|
|
4939
4940
|
{ class: "rs-table-card-label" },
|
|
4940
4941
|
c.header
|
|
4941
4942
|
),
|
|
4942
|
-
|
|
4943
|
+
N(
|
|
4943
4944
|
"span",
|
|
4944
4945
|
{ class: "rs-table-card-value" },
|
|
4945
4946
|
t.cell?.({
|
|
@@ -4953,27 +4954,27 @@ const fo = {
|
|
|
4953
4954
|
)
|
|
4954
4955
|
)
|
|
4955
4956
|
)
|
|
4956
|
-
), i = () =>
|
|
4957
|
+
), i = () => N(
|
|
4957
4958
|
"div",
|
|
4958
4959
|
{ class: "rs-table-container" },
|
|
4959
|
-
|
|
4960
|
+
N(
|
|
4960
4961
|
"div",
|
|
4961
4962
|
{ class: "rs-table-scroll" },
|
|
4962
|
-
|
|
4963
|
+
N(
|
|
4963
4964
|
"table",
|
|
4964
4965
|
{
|
|
4965
4966
|
class: "rs-table",
|
|
4966
4967
|
"aria-busy": e.loading || void 0
|
|
4967
4968
|
},
|
|
4968
4969
|
[
|
|
4969
|
-
|
|
4970
|
+
N(
|
|
4970
4971
|
"thead",
|
|
4971
4972
|
null,
|
|
4972
|
-
|
|
4973
|
+
N(
|
|
4973
4974
|
"tr",
|
|
4974
4975
|
null,
|
|
4975
4976
|
e.columns.map(
|
|
4976
|
-
(n) =>
|
|
4977
|
+
(n) => N(
|
|
4977
4978
|
"th",
|
|
4978
4979
|
{
|
|
4979
4980
|
key: n.key,
|
|
@@ -4984,20 +4985,20 @@ const fo = {
|
|
|
4984
4985
|
"aria-sort": n.sortable ? e.sort?.key === n.key ? e.sort.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
|
|
4985
4986
|
tabindex: n.sortable ? 0 : void 0,
|
|
4986
4987
|
onClick: n.sortable ? () => a(n) : void 0,
|
|
4987
|
-
onKeydown: n.sortable ? (
|
|
4988
|
-
(
|
|
4988
|
+
onKeydown: n.sortable ? (l) => {
|
|
4989
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), a(n));
|
|
4989
4990
|
} : void 0,
|
|
4990
4991
|
scope: "col"
|
|
4991
4992
|
},
|
|
4992
|
-
|
|
4993
|
+
N(
|
|
4993
4994
|
"div",
|
|
4994
4995
|
{ class: "rs-table-th-content" },
|
|
4995
4996
|
[
|
|
4996
|
-
|
|
4997
|
+
N(
|
|
4997
4998
|
"span",
|
|
4998
4999
|
n.header
|
|
4999
5000
|
),
|
|
5000
|
-
n.sortable ?
|
|
5001
|
+
n.sortable ? N(
|
|
5001
5002
|
ue,
|
|
5002
5003
|
{
|
|
5003
5004
|
name: e.sort?.key === n.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
|
|
@@ -5010,15 +5011,15 @@ const fo = {
|
|
|
5010
5011
|
)
|
|
5011
5012
|
)
|
|
5012
5013
|
),
|
|
5013
|
-
|
|
5014
|
+
N(
|
|
5014
5015
|
"tbody",
|
|
5015
5016
|
null,
|
|
5016
5017
|
e.loading ? [
|
|
5017
|
-
|
|
5018
|
+
N(
|
|
5018
5019
|
"tr",
|
|
5019
5020
|
null,
|
|
5020
5021
|
[
|
|
5021
|
-
|
|
5022
|
+
N(
|
|
5022
5023
|
"td",
|
|
5023
5024
|
{ colspan: e.columns.length },
|
|
5024
5025
|
t.loading?.() ?? "Loading..."
|
|
@@ -5026,11 +5027,11 @@ const fo = {
|
|
|
5026
5027
|
]
|
|
5027
5028
|
)
|
|
5028
5029
|
] : e.data.length === 0 ? [
|
|
5029
|
-
|
|
5030
|
+
N(
|
|
5030
5031
|
"tr",
|
|
5031
5032
|
null,
|
|
5032
5033
|
[
|
|
5033
|
-
|
|
5034
|
+
N(
|
|
5034
5035
|
"td",
|
|
5035
5036
|
{ colspan: e.columns.length },
|
|
5036
5037
|
t.empty?.() ?? "No data available."
|
|
@@ -5038,10 +5039,10 @@ const fo = {
|
|
|
5038
5039
|
]
|
|
5039
5040
|
)
|
|
5040
5041
|
] : e.data.map(
|
|
5041
|
-
(n,
|
|
5042
|
+
(n, l) => N(
|
|
5042
5043
|
"tr",
|
|
5043
5044
|
{
|
|
5044
|
-
key: n.id ??
|
|
5045
|
+
key: n.id ?? l,
|
|
5045
5046
|
tabindex: e.rowClickable ? 0 : void 0,
|
|
5046
5047
|
role: e.rowClickable ? "button" : void 0,
|
|
5047
5048
|
onClick: e.rowClickable ? () => o("rowClick", n) : void 0,
|
|
@@ -5051,7 +5052,7 @@ const fo = {
|
|
|
5051
5052
|
"data-clickable": e.rowClickable || void 0
|
|
5052
5053
|
},
|
|
5053
5054
|
e.columns.map(
|
|
5054
|
-
(c) =>
|
|
5055
|
+
(c) => N(
|
|
5055
5056
|
"td",
|
|
5056
5057
|
{
|
|
5057
5058
|
key: c.key,
|
|
@@ -5074,8 +5075,8 @@ const fo = {
|
|
|
5074
5075
|
)
|
|
5075
5076
|
);
|
|
5076
5077
|
return () => {
|
|
5077
|
-
const n = e.responsive === "card" || e.responsive === "auto" &&
|
|
5078
|
-
return
|
|
5078
|
+
const n = e.responsive === "card" || e.responsive === "auto" && r();
|
|
5079
|
+
return N(
|
|
5079
5080
|
"div",
|
|
5080
5081
|
{ class: "rs-table-container" },
|
|
5081
5082
|
n ? s() : i()
|
|
@@ -5092,20 +5093,20 @@ const fo = {
|
|
|
5092
5093
|
}
|
|
5093
5094
|
},
|
|
5094
5095
|
setup(e, { slots: o }) {
|
|
5095
|
-
const t = C([]), a = C(new Set(e.defaultOpen)),
|
|
5096
|
+
const t = C([]), a = C(new Set(e.defaultOpen)), r = (h) => {
|
|
5096
5097
|
if (a.value.has(h)) {
|
|
5097
5098
|
a.value.delete(h);
|
|
5098
5099
|
return;
|
|
5099
5100
|
}
|
|
5100
5101
|
e.multiple || a.value.clear(), a.value.add(h);
|
|
5101
5102
|
}, s = (h) => {
|
|
5102
|
-
h.disabled || t.value.includes(h) || (t.value.push(h), t.value.sort((
|
|
5103
|
-
}, i = (h) => t.value = t.value.filter((
|
|
5104
|
-
const
|
|
5105
|
-
t.value[(
|
|
5106
|
-
},
|
|
5107
|
-
const
|
|
5108
|
-
t.value[(
|
|
5103
|
+
h.disabled || t.value.includes(h) || (t.value.push(h), t.value.sort((L, M) => L.offsetTop - M.offsetTop));
|
|
5104
|
+
}, i = (h) => t.value = t.value.filter((L) => L !== h), n = (h) => {
|
|
5105
|
+
const L = t.value.indexOf(h);
|
|
5106
|
+
t.value[(L + 1) % t.value.length]?.focus();
|
|
5107
|
+
}, l = (h) => {
|
|
5108
|
+
const L = t.value.indexOf(h);
|
|
5109
|
+
t.value[(L - 1 + t.value.length) % t.value.length]?.focus();
|
|
5109
5110
|
}, c = () => t.value[0]?.focus(), d = () => {
|
|
5110
5111
|
const h = t.value;
|
|
5111
5112
|
h.length && h[h.length - 1]?.focus();
|
|
@@ -5113,11 +5114,11 @@ const fo = {
|
|
|
5113
5114
|
return be(Ae, {
|
|
5114
5115
|
multiple: e.multiple,
|
|
5115
5116
|
openItems: a,
|
|
5116
|
-
toggle:
|
|
5117
|
+
toggle: r,
|
|
5117
5118
|
registerHeader: s,
|
|
5118
5119
|
unregisterHeader: i,
|
|
5119
5120
|
focusNext: n,
|
|
5120
|
-
focusPrev:
|
|
5121
|
+
focusPrev: l,
|
|
5121
5122
|
focusFirst: c,
|
|
5122
5123
|
focusLast: d
|
|
5123
5124
|
}), () => o.default?.();
|
|
@@ -5129,10 +5130,10 @@ const fo = {
|
|
|
5129
5130
|
disabled: { type: Boolean, default: !1 }
|
|
5130
5131
|
},
|
|
5131
5132
|
setup(e, { slots: o }) {
|
|
5132
|
-
const t =
|
|
5133
|
+
const t = le(Ae);
|
|
5133
5134
|
if (!t) throw new Error("AccordionItem must be used inside Accordion");
|
|
5134
5135
|
const a = $(() => t.openItems.value.has(e.id));
|
|
5135
|
-
return () =>
|
|
5136
|
+
return () => N(
|
|
5136
5137
|
"div",
|
|
5137
5138
|
{
|
|
5138
5139
|
class: "rs-accordion-item",
|
|
@@ -5148,9 +5149,9 @@ const fo = {
|
|
|
5148
5149
|
disabled: { type: Boolean, default: !1 }
|
|
5149
5150
|
},
|
|
5150
5151
|
setup(e, { slots: o }) {
|
|
5151
|
-
const t =
|
|
5152
|
+
const t = le(Ae), a = C(null);
|
|
5152
5153
|
if (!t) throw new Error("AccordionHeader must be used inside Accordion");
|
|
5153
|
-
const
|
|
5154
|
+
const r = $(() => t.openItems.value.has(e.id)), s = () => {
|
|
5154
5155
|
e.disabled || t.toggle?.(e.id);
|
|
5155
5156
|
}, i = (n) => {
|
|
5156
5157
|
if (a.value)
|
|
@@ -5173,30 +5174,30 @@ const fo = {
|
|
|
5173
5174
|
a.value && t.registerHeader(a.value);
|
|
5174
5175
|
}), He(() => {
|
|
5175
5176
|
a.value && t.unregisterHeader(a.value);
|
|
5176
|
-
}), () =>
|
|
5177
|
+
}), () => N(
|
|
5177
5178
|
"button",
|
|
5178
5179
|
{
|
|
5179
5180
|
ref: a,
|
|
5180
5181
|
id: `header-${e.id}`,
|
|
5181
5182
|
type: "button",
|
|
5182
5183
|
class: "rs-accordion-trigger",
|
|
5183
|
-
"aria-expanded":
|
|
5184
|
+
"aria-expanded": r.value,
|
|
5184
5185
|
"aria-controls": `panel-${e.id}`,
|
|
5185
5186
|
disabled: e.disabled,
|
|
5186
|
-
"data-state":
|
|
5187
|
+
"data-state": r.value ? "open" : "closed",
|
|
5187
5188
|
onClick: s,
|
|
5188
5189
|
onKeydown: i
|
|
5189
5190
|
},
|
|
5190
5191
|
[
|
|
5191
|
-
|
|
5192
|
+
N(
|
|
5192
5193
|
"span",
|
|
5193
5194
|
{ class: "rs-accordion-trigger__label" },
|
|
5194
5195
|
o.default?.()
|
|
5195
5196
|
),
|
|
5196
|
-
|
|
5197
|
+
N(
|
|
5197
5198
|
"span",
|
|
5198
5199
|
{ class: "rs-accordion-trigger__icon", "aria-hidden": "true" },
|
|
5199
|
-
|
|
5200
|
+
N(ue, { name: "directionDown" })
|
|
5200
5201
|
)
|
|
5201
5202
|
]
|
|
5202
5203
|
);
|
|
@@ -5207,10 +5208,10 @@ const fo = {
|
|
|
5207
5208
|
id: { type: String, required: !0 }
|
|
5208
5209
|
},
|
|
5209
5210
|
setup(e, { slots: o }) {
|
|
5210
|
-
const t =
|
|
5211
|
+
const t = le(Ae);
|
|
5211
5212
|
if (!t) throw new Error("AccordionPanel must be used inside Accordion");
|
|
5212
5213
|
const a = $(() => t.openItems.value.has(e.id));
|
|
5213
|
-
return () =>
|
|
5214
|
+
return () => N(
|
|
5214
5215
|
"div",
|
|
5215
5216
|
{
|
|
5216
5217
|
id: `panel-${e.id}`,
|
|
@@ -5220,7 +5221,7 @@ const fo = {
|
|
|
5220
5221
|
"data-state": a.value ? "open" : "closed",
|
|
5221
5222
|
"aria-labelledby": `header-${e.id}`
|
|
5222
5223
|
},
|
|
5223
|
-
|
|
5224
|
+
N(
|
|
5224
5225
|
"div",
|
|
5225
5226
|
{ class: "rs-accordion-panel__inner" },
|
|
5226
5227
|
o.default?.()
|
|
@@ -5242,13 +5243,13 @@ export {
|
|
|
5242
5243
|
ho as CardFooter,
|
|
5243
5244
|
po as CardHeader,
|
|
5244
5245
|
wo as Carousel,
|
|
5245
|
-
|
|
5246
|
-
|
|
5246
|
+
Mo as CarouselItem,
|
|
5247
|
+
ro as Checkbox,
|
|
5247
5248
|
Vo as Dropdown,
|
|
5248
5249
|
_o as DropdownItem,
|
|
5249
5250
|
Bo as DropdownMenu,
|
|
5250
5251
|
Ho as DropdownTrigger,
|
|
5251
|
-
|
|
5252
|
+
We as Editor,
|
|
5252
5253
|
x5 as Highlight,
|
|
5253
5254
|
ue as Icon,
|
|
5254
5255
|
xe as Image,
|
|
@@ -5259,7 +5260,7 @@ export {
|
|
|
5259
5260
|
c1 as ModalBody,
|
|
5260
5261
|
v1 as ModalClose,
|
|
5261
5262
|
i1 as ModalContent,
|
|
5262
|
-
|
|
5263
|
+
lo as ModalFooter,
|
|
5263
5264
|
d1 as ModalHeader,
|
|
5264
5265
|
u1 as ModalTitle,
|
|
5265
5266
|
uo as RadioButton,
|
|
@@ -5268,7 +5269,7 @@ export {
|
|
|
5268
5269
|
yo as Step,
|
|
5269
5270
|
bo as Steps,
|
|
5270
5271
|
Ro as Table,
|
|
5271
|
-
|
|
5272
|
+
Lo as Tabs,
|
|
5272
5273
|
Io as TabsContent,
|
|
5273
5274
|
xo as TabsList,
|
|
5274
5275
|
$o as TabsTrigger,
|