@rock10/ui 1.0.8 → 1.0.10
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/Tabs.d.ts +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +252 -230
- package/dist/index.umd.js +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3,13 +3,13 @@ function vr(e) {
|
|
|
3
3
|
var a, o, t = "";
|
|
4
4
|
if (typeof e == "string" || typeof e == "number") t += e;
|
|
5
5
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
6
|
-
var
|
|
7
|
-
for (a = 0; a <
|
|
6
|
+
var i = e.length;
|
|
7
|
+
for (a = 0; a < i; a++) e[a] && (o = vr(e[a])) && (t && (t += " "), t += o);
|
|
8
8
|
} else for (o in e) e[o] && (t && (t += " "), t += o);
|
|
9
9
|
return t;
|
|
10
10
|
}
|
|
11
11
|
function st() {
|
|
12
|
-
for (var e, a, o = 0, t = "",
|
|
12
|
+
for (var e, a, o = 0, t = "", i = arguments.length; o < i; o++) (e = arguments[o]) && (a = vr(e)) && (t && (t += " "), t += a);
|
|
13
13
|
return t;
|
|
14
14
|
}
|
|
15
15
|
const nt = (e, a) => {
|
|
@@ -49,9 +49,9 @@ const nt = (e, a) => {
|
|
|
49
49
|
}, wr = (e, a, o) => {
|
|
50
50
|
if (e.length - a === 0)
|
|
51
51
|
return o.classGroupId;
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
const d = wr(e, a + 1,
|
|
52
|
+
const i = e[a], l = o.nextPart.get(i);
|
|
53
|
+
if (l) {
|
|
54
|
+
const d = wr(e, a + 1, l);
|
|
55
55
|
if (d) return d;
|
|
56
56
|
}
|
|
57
57
|
const s = o.validators;
|
|
@@ -75,14 +75,14 @@ const nt = (e, a) => {
|
|
|
75
75
|
}, mt = (e, a) => {
|
|
76
76
|
const o = kr();
|
|
77
77
|
for (const t in e) {
|
|
78
|
-
const
|
|
79
|
-
Ye(
|
|
78
|
+
const i = e[t];
|
|
79
|
+
Ye(i, o, t, a);
|
|
80
80
|
}
|
|
81
81
|
return o;
|
|
82
82
|
}, Ye = (e, a, o, t) => {
|
|
83
|
-
const
|
|
84
|
-
for (let
|
|
85
|
-
const s = e[
|
|
83
|
+
const i = e.length;
|
|
84
|
+
for (let l = 0; l < i; l++) {
|
|
85
|
+
const s = e[l];
|
|
86
86
|
ft(s, a, o, t);
|
|
87
87
|
}
|
|
88
88
|
}, ft = (e, a, o, t) => {
|
|
@@ -105,16 +105,16 @@ const nt = (e, a) => {
|
|
|
105
105
|
}
|
|
106
106
|
a.validators === null && (a.validators = []), a.validators.push(it(o, e));
|
|
107
107
|
}, gt = (e, a, o, t) => {
|
|
108
|
-
const
|
|
109
|
-
for (let s = 0; s <
|
|
110
|
-
const [u, m] =
|
|
108
|
+
const i = Object.entries(e), l = i.length;
|
|
109
|
+
for (let s = 0; s < l; s++) {
|
|
110
|
+
const [u, m] = i[s];
|
|
111
111
|
Ye(m, jr(a, u), o, t);
|
|
112
112
|
}
|
|
113
113
|
}, jr = (e, a) => {
|
|
114
114
|
let o = e;
|
|
115
|
-
const t = a.split(Fe),
|
|
116
|
-
for (let
|
|
117
|
-
const s = t[
|
|
115
|
+
const t = a.split(Fe), i = t.length;
|
|
116
|
+
for (let l = 0; l < i; l++) {
|
|
117
|
+
const s = t[l];
|
|
118
118
|
let u = o.nextPart.get(s);
|
|
119
119
|
u || (u = kr(), o.nextPart.set(s, u)), o = u;
|
|
120
120
|
}
|
|
@@ -128,41 +128,41 @@ const nt = (e, a) => {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
let a = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
131
|
-
const
|
|
132
|
-
o[
|
|
131
|
+
const i = (l, s) => {
|
|
132
|
+
o[l] = s, a++, a > e && (a = 0, t = o, o = /* @__PURE__ */ Object.create(null));
|
|
133
133
|
};
|
|
134
134
|
return {
|
|
135
|
-
get(
|
|
136
|
-
let s = o[
|
|
135
|
+
get(l) {
|
|
136
|
+
let s = o[l];
|
|
137
137
|
if (s !== void 0)
|
|
138
138
|
return s;
|
|
139
|
-
if ((s = t[
|
|
140
|
-
return
|
|
139
|
+
if ((s = t[l]) !== void 0)
|
|
140
|
+
return i(l, s), s;
|
|
141
141
|
},
|
|
142
|
-
set(
|
|
143
|
-
|
|
142
|
+
set(l, s) {
|
|
143
|
+
l in o ? o[l] = s : i(l, s);
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
}, Be = "!", ur = ":", yt = [], mr = (e, a, o, t,
|
|
146
|
+
}, Be = "!", ur = ":", yt = [], mr = (e, a, o, t, i) => ({
|
|
147
147
|
modifiers: e,
|
|
148
148
|
hasImportantModifier: a,
|
|
149
149
|
baseClassName: o,
|
|
150
150
|
maybePostfixModifierPosition: t,
|
|
151
|
-
isExternal:
|
|
151
|
+
isExternal: i
|
|
152
152
|
}), vt = (e) => {
|
|
153
153
|
const {
|
|
154
154
|
prefix: a,
|
|
155
155
|
experimentalParseClassName: o
|
|
156
156
|
} = e;
|
|
157
|
-
let t = (
|
|
158
|
-
const
|
|
157
|
+
let t = (i) => {
|
|
158
|
+
const l = [];
|
|
159
159
|
let s = 0, u = 0, m = 0, d;
|
|
160
|
-
const x =
|
|
160
|
+
const x = i.length;
|
|
161
161
|
for (let N = 0; N < x; N++) {
|
|
162
|
-
const z =
|
|
162
|
+
const z = i[N];
|
|
163
163
|
if (s === 0 && u === 0) {
|
|
164
164
|
if (z === ur) {
|
|
165
|
-
|
|
165
|
+
l.push(i.slice(m, N)), m = N + 1;
|
|
166
166
|
continue;
|
|
167
167
|
}
|
|
168
168
|
if (z === "/") {
|
|
@@ -172,7 +172,7 @@ const nt = (e, a) => {
|
|
|
172
172
|
}
|
|
173
173
|
z === "[" ? s++ : z === "]" ? s-- : z === "(" ? u++ : z === ")" && u--;
|
|
174
174
|
}
|
|
175
|
-
const v =
|
|
175
|
+
const v = l.length === 0 ? i : i.slice(m);
|
|
176
176
|
let S = v, w = !1;
|
|
177
177
|
v.endsWith(Be) ? (S = v.slice(0, -1), w = !0) : (
|
|
178
178
|
/**
|
|
@@ -181,18 +181,18 @@ const nt = (e, a) => {
|
|
|
181
181
|
*/
|
|
182
182
|
v.startsWith(Be) && (S = v.slice(1), w = !0)
|
|
183
183
|
);
|
|
184
|
-
const
|
|
185
|
-
return mr(
|
|
184
|
+
const A = d && d > m ? d - m : void 0;
|
|
185
|
+
return mr(l, w, S, A);
|
|
186
186
|
};
|
|
187
187
|
if (a) {
|
|
188
|
-
const
|
|
189
|
-
t = (s) => s.startsWith(
|
|
188
|
+
const i = a + ur, l = t;
|
|
189
|
+
t = (s) => s.startsWith(i) ? l(s.slice(i.length)) : mr(yt, !1, s, void 0, !0);
|
|
190
190
|
}
|
|
191
191
|
if (o) {
|
|
192
|
-
const
|
|
193
|
-
t = (
|
|
194
|
-
className:
|
|
195
|
-
parseClassName:
|
|
192
|
+
const i = t;
|
|
193
|
+
t = (l) => o({
|
|
194
|
+
className: l,
|
|
195
|
+
parseClassName: i
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
return t;
|
|
@@ -202,12 +202,12 @@ const nt = (e, a) => {
|
|
|
202
202
|
a.set(o, 1e6 + t);
|
|
203
203
|
}), (o) => {
|
|
204
204
|
const t = [];
|
|
205
|
-
let
|
|
206
|
-
for (let
|
|
207
|
-
const s = o[
|
|
208
|
-
u || m ? (
|
|
205
|
+
let i = [];
|
|
206
|
+
for (let l = 0; l < o.length; l++) {
|
|
207
|
+
const s = o[l], u = s[0] === "[", m = a.has(s);
|
|
208
|
+
u || m ? (i.length > 0 && (i.sort(), t.push(...i), i = []), t.push(s)) : i.push(s);
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return i.length > 0 && (i.sort(), t.push(...i)), t;
|
|
211
211
|
};
|
|
212
212
|
}, wt = (e) => ({
|
|
213
213
|
cache: xt(e.cacheSize),
|
|
@@ -225,8 +225,8 @@ const nt = (e, a) => {
|
|
|
225
225
|
const {
|
|
226
226
|
parseClassName: o,
|
|
227
227
|
getClassGroupId: t,
|
|
228
|
-
getConflictingClassGroupIds:
|
|
229
|
-
sortModifiers:
|
|
228
|
+
getConflictingClassGroupIds: i,
|
|
229
|
+
sortModifiers: l,
|
|
230
230
|
postfixLookupClassGroupIds: s
|
|
231
231
|
} = a, u = [], m = e.trim().split(Ct);
|
|
232
232
|
let d = "";
|
|
@@ -234,7 +234,7 @@ const nt = (e, a) => {
|
|
|
234
234
|
const v = m[x], {
|
|
235
235
|
isExternal: S,
|
|
236
236
|
modifiers: w,
|
|
237
|
-
hasImportantModifier:
|
|
237
|
+
hasImportantModifier: A,
|
|
238
238
|
baseClassName: N,
|
|
239
239
|
maybePostfixModifierPosition: z
|
|
240
240
|
} = o(v);
|
|
@@ -261,11 +261,11 @@ const nt = (e, a) => {
|
|
|
261
261
|
}
|
|
262
262
|
$ = !1;
|
|
263
263
|
}
|
|
264
|
-
const H = w.length === 0 ? "" : w.length === 1 ? w[0] :
|
|
264
|
+
const H = w.length === 0 ? "" : w.length === 1 ? w[0] : l(w).join(":"), W = A ? H + Be : H, q = W + C;
|
|
265
265
|
if (u.indexOf(q) > -1)
|
|
266
266
|
continue;
|
|
267
267
|
u.push(q);
|
|
268
|
-
const _ =
|
|
268
|
+
const _ = i(C, $);
|
|
269
269
|
for (let O = 0; O < _.length; ++O) {
|
|
270
270
|
const g = _[O];
|
|
271
271
|
u.push(W + g);
|
|
@@ -274,10 +274,10 @@ const nt = (e, a) => {
|
|
|
274
274
|
}
|
|
275
275
|
return d;
|
|
276
276
|
}, _t = (...e) => {
|
|
277
|
-
let a = 0, o, t,
|
|
277
|
+
let a = 0, o, t, i = "";
|
|
278
278
|
for (; a < e.length; )
|
|
279
|
-
(o = e[a++]) && (t = Cr(o)) && (
|
|
280
|
-
return
|
|
279
|
+
(o = e[a++]) && (t = Cr(o)) && (i && (i += " "), i += t);
|
|
280
|
+
return i;
|
|
281
281
|
}, Cr = (e) => {
|
|
282
282
|
if (typeof e == "string")
|
|
283
283
|
return e;
|
|
@@ -286,34 +286,34 @@ const nt = (e, a) => {
|
|
|
286
286
|
e[t] && (a = Cr(e[t])) && (o && (o += " "), o += a);
|
|
287
287
|
return o;
|
|
288
288
|
}, St = (e, ...a) => {
|
|
289
|
-
let o, t,
|
|
289
|
+
let o, t, i, l;
|
|
290
290
|
const s = (m) => {
|
|
291
291
|
const d = a.reduce((x, v) => v(x), e());
|
|
292
|
-
return o = wt(d), t = o.cache.get,
|
|
292
|
+
return o = wt(d), t = o.cache.get, i = o.cache.set, l = u, u(m);
|
|
293
293
|
}, u = (m) => {
|
|
294
294
|
const d = t(m);
|
|
295
295
|
if (d)
|
|
296
296
|
return d;
|
|
297
297
|
const x = Rt(m, o);
|
|
298
|
-
return
|
|
298
|
+
return i(m, x), x;
|
|
299
299
|
};
|
|
300
|
-
return
|
|
300
|
+
return l = s, (...m) => l(_t(...m));
|
|
301
301
|
}, Et = [], V = (e) => {
|
|
302
302
|
const a = (o) => o[e] || Et;
|
|
303
303
|
return a.isThemeGetter = !0, a;
|
|
304
|
-
}, Rr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _r = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Nt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,
|
|
304
|
+
}, Rr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _r = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Nt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, At = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ot = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, se = (e) => Nt.test(e), k = (e) => !!e && !Number.isNaN(Number(e)), re = (e) => !!e && Number.isInteger(Number(e)), Ge = (e) => e.endsWith("%") && k(e.slice(0, -1)), oe = (e) => Tt.test(e), Sr = () => !0, It = (e) => (
|
|
305
305
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
306
306
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
307
307
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
308
|
-
Pt.test(e) && !
|
|
309
|
-
), qe = () => !1, Ft = (e) =>
|
|
308
|
+
Pt.test(e) && !At.test(e)
|
|
309
|
+
), qe = () => !1, Ft = (e) => Ot.test(e), Mt = (e) => zt.test(e), Dt = (e) => !p(e) && !b(e), $t = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Lt = (e) => ne(e, Tr, qe), p = (e) => Rr.test(e), me = (e) => ne(e, Pr, It), fr = (e) => ne(e, Kt, k), Wt = (e) => ne(e, Or, Sr), Gt = (e) => ne(e, Ar, qe), pr = (e) => ne(e, Er, qe), Vt = (e) => ne(e, Nr, Mt), Oe = (e) => ne(e, zr, Ft), b = (e) => _r.test(e), Ee = (e) => fe(e, Pr), Bt = (e) => fe(e, Ar), br = (e) => fe(e, Er), Ut = (e) => fe(e, Tr), Yt = (e) => fe(e, Nr), ze = (e) => fe(e, zr, !0), qt = (e) => fe(e, Or, !0), ne = (e, a, o) => {
|
|
310
310
|
const t = Rr.exec(e);
|
|
311
311
|
return t ? t[1] ? a(t[1]) : o(t[2]) : !1;
|
|
312
312
|
}, fe = (e, a, o = !1) => {
|
|
313
313
|
const t = _r.exec(e);
|
|
314
314
|
return t ? t[1] ? a(t[1]) : o : !1;
|
|
315
|
-
}, Er = (e) => e === "position" || e === "percentage", Nr = (e) => e === "image" || e === "url", Tr = (e) => e === "length" || e === "size" || e === "bg-size", Pr = (e) => e === "length", Kt = (e) => e === "number",
|
|
316
|
-
const e = V("color"), a = V("font"), o = V("text"), t = V("font-weight"),
|
|
315
|
+
}, Er = (e) => e === "position" || e === "percentage", Nr = (e) => e === "image" || e === "url", Tr = (e) => e === "length" || e === "size" || e === "bg-size", Pr = (e) => e === "length", Kt = (e) => e === "number", Ar = (e) => e === "family-name", Or = (e) => e === "number" || e === "weight", zr = (e) => e === "shadow", Jt = () => {
|
|
316
|
+
const e = V("color"), a = V("font"), o = V("text"), t = V("font-weight"), i = V("tracking"), l = V("leading"), s = V("breakpoint"), u = V("container"), m = V("spacing"), d = V("radius"), x = V("shadow"), v = V("inset-shadow"), S = V("text-shadow"), w = V("drop-shadow"), A = V("blur"), N = V("perspective"), z = V("aspect"), $ = V("ease"), C = V("animate"), H = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [
|
|
317
317
|
"center",
|
|
318
318
|
"top",
|
|
319
319
|
"bottom",
|
|
@@ -351,7 +351,7 @@ const nt = (e, a) => {
|
|
|
351
351
|
// Deprecated since Tailwind CSS v4.0.0
|
|
352
352
|
"",
|
|
353
353
|
"none",
|
|
354
|
-
|
|
354
|
+
A,
|
|
355
355
|
b,
|
|
356
356
|
p
|
|
357
357
|
], he = () => ["none", k, b, p], de = () => ["none", k, b, p], _e = () => [k, b, p], xe = () => [se, "full", ...g()];
|
|
@@ -1230,7 +1230,7 @@ const nt = (e, a) => {
|
|
|
1230
1230
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1231
1231
|
*/
|
|
1232
1232
|
tracking: [{
|
|
1233
|
-
tracking: [
|
|
1233
|
+
tracking: [i, b, p]
|
|
1234
1234
|
}],
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Line Clamp
|
|
@@ -1246,7 +1246,7 @@ const nt = (e, a) => {
|
|
|
1246
1246
|
leading: [{
|
|
1247
1247
|
leading: [
|
|
1248
1248
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1249
|
-
|
|
1249
|
+
l,
|
|
1250
1250
|
...g()
|
|
1251
1251
|
]
|
|
1252
1252
|
}],
|
|
@@ -1855,7 +1855,7 @@ const nt = (e, a) => {
|
|
|
1855
1855
|
"none",
|
|
1856
1856
|
x,
|
|
1857
1857
|
ze,
|
|
1858
|
-
|
|
1858
|
+
Oe
|
|
1859
1859
|
]
|
|
1860
1860
|
}],
|
|
1861
1861
|
/**
|
|
@@ -1870,7 +1870,7 @@ const nt = (e, a) => {
|
|
|
1870
1870
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1871
1871
|
*/
|
|
1872
1872
|
"inset-shadow": [{
|
|
1873
|
-
"inset-shadow": ["none", v, ze,
|
|
1873
|
+
"inset-shadow": ["none", v, ze, Oe]
|
|
1874
1874
|
}],
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Inset Box Shadow Color
|
|
@@ -1937,7 +1937,7 @@ const nt = (e, a) => {
|
|
|
1937
1937
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1938
1938
|
*/
|
|
1939
1939
|
"text-shadow": [{
|
|
1940
|
-
"text-shadow": ["none", S, ze,
|
|
1940
|
+
"text-shadow": ["none", S, ze, Oe]
|
|
1941
1941
|
}],
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Text Shadow Color
|
|
@@ -2211,7 +2211,7 @@ const nt = (e, a) => {
|
|
|
2211
2211
|
"none",
|
|
2212
2212
|
w,
|
|
2213
2213
|
ze,
|
|
2214
|
-
|
|
2214
|
+
Oe
|
|
2215
2215
|
]
|
|
2216
2216
|
}],
|
|
2217
2217
|
/**
|
|
@@ -2998,7 +2998,7 @@ const nt = (e, a) => {
|
|
|
2998
2998
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2999
2999
|
};
|
|
3000
3000
|
}, Xt = /* @__PURE__ */ St(Jt);
|
|
3001
|
-
function
|
|
3001
|
+
function P(...e) {
|
|
3002
3002
|
return Xt(st(e));
|
|
3003
3003
|
}
|
|
3004
3004
|
var Ue = { exports: {} }, Ne = {};
|
|
@@ -3015,13 +3015,13 @@ var gr;
|
|
|
3015
3015
|
function Ht() {
|
|
3016
3016
|
if (gr) return Ne;
|
|
3017
3017
|
gr = 1;
|
|
3018
|
-
var e = xr, a = Symbol.for("react.element"), o = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty,
|
|
3018
|
+
var e = xr, a = Symbol.for("react.element"), o = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3019
3019
|
function s(u, m, d) {
|
|
3020
3020
|
var x, v = {}, S = null, w = null;
|
|
3021
3021
|
d !== void 0 && (S = "" + d), m.key !== void 0 && (S = "" + m.key), m.ref !== void 0 && (w = m.ref);
|
|
3022
|
-
for (x in m) t.call(m, x) && !
|
|
3022
|
+
for (x in m) t.call(m, x) && !l.hasOwnProperty(x) && (v[x] = m[x]);
|
|
3023
3023
|
if (u && u.defaultProps) for (x in m = u.defaultProps, m) v[x] === void 0 && (v[x] = m[x]);
|
|
3024
|
-
return { $$typeof: a, type: u, key: S, ref: w, props: v, _owner:
|
|
3024
|
+
return { $$typeof: a, type: u, key: S, ref: w, props: v, _owner: i.current };
|
|
3025
3025
|
}
|
|
3026
3026
|
return Ne.Fragment = o, Ne.jsx = s, Ne.jsxs = s, Ne;
|
|
3027
3027
|
}
|
|
@@ -3038,11 +3038,11 @@ var Te = {};
|
|
|
3038
3038
|
var hr;
|
|
3039
3039
|
function Zt() {
|
|
3040
3040
|
return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3041
|
-
var e = xr, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"),
|
|
3041
|
+
var e = xr, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), A = Symbol.iterator, N = "@@iterator";
|
|
3042
3042
|
function z(r) {
|
|
3043
3043
|
if (r === null || typeof r != "object")
|
|
3044
3044
|
return null;
|
|
3045
|
-
var n =
|
|
3045
|
+
var n = A && r[A] || r[N];
|
|
3046
3046
|
return typeof n == "function" ? n : null;
|
|
3047
3047
|
}
|
|
3048
3048
|
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -3066,7 +3066,7 @@ function Zt() {
|
|
|
3066
3066
|
var W = !1, q = !1, _ = !1, O = !1, g = !1, M;
|
|
3067
3067
|
M = Symbol.for("react.module.reference");
|
|
3068
3068
|
function ie(r) {
|
|
3069
|
-
return !!(typeof r == "string" || typeof r == "function" || r === t || r ===
|
|
3069
|
+
return !!(typeof r == "string" || typeof r == "function" || r === t || r === l || g || r === i || r === d || r === x || O || r === w || W || q || _ || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === v || r.$$typeof === s || r.$$typeof === u || r.$$typeof === m || // This needs to include all possible module reference object
|
|
3070
3070
|
// types supported by any Flight configuration anywhere since
|
|
3071
3071
|
// we don't know which Flight build this will end up being used
|
|
3072
3072
|
// with.
|
|
@@ -3094,9 +3094,9 @@ function Zt() {
|
|
|
3094
3094
|
return "Fragment";
|
|
3095
3095
|
case o:
|
|
3096
3096
|
return "Portal";
|
|
3097
|
-
case
|
|
3097
|
+
case l:
|
|
3098
3098
|
return "Profiler";
|
|
3099
|
-
case
|
|
3099
|
+
case i:
|
|
3100
3100
|
return "StrictMode";
|
|
3101
3101
|
case d:
|
|
3102
3102
|
return "Suspense";
|
|
@@ -3316,7 +3316,7 @@ function Zt() {
|
|
|
3316
3316
|
return "";
|
|
3317
3317
|
}
|
|
3318
3318
|
var Se = Object.prototype.hasOwnProperty, Je = {}, Xe = $.ReactDebugCurrentFrame;
|
|
3319
|
-
function
|
|
3319
|
+
function Ae(r) {
|
|
3320
3320
|
if (r) {
|
|
3321
3321
|
var n = r._owner, f = Pe(r.type, r._source, n ? n.type : null);
|
|
3322
3322
|
Xe.setExtraStackFrame(f);
|
|
@@ -3338,7 +3338,7 @@ function Zt() {
|
|
|
3338
3338
|
} catch (D) {
|
|
3339
3339
|
j = D;
|
|
3340
3340
|
}
|
|
3341
|
-
j && !(j instanceof Error) && (
|
|
3341
|
+
j && !(j instanceof Error) && (Ae(E), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", f, R, typeof j), Ae(null)), j instanceof Error && !(j.message in Je) && (Je[j.message] = !0, Ae(E), C("Failed %s type: %s", f, j.message), Ae(null));
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
@@ -3626,7 +3626,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3626
3626
|
}()), Te;
|
|
3627
3627
|
}
|
|
3628
3628
|
process.env.NODE_ENV === "production" ? Ue.exports = Ht() : Ue.exports = Zt();
|
|
3629
|
-
var
|
|
3629
|
+
var c = Ue.exports;
|
|
3630
3630
|
/**
|
|
3631
3631
|
* @license lucide-react v0.475.0 - ISC
|
|
3632
3632
|
*
|
|
@@ -3663,8 +3663,8 @@ const ro = yr(
|
|
|
3663
3663
|
size: a = 24,
|
|
3664
3664
|
strokeWidth: o = 2,
|
|
3665
3665
|
absoluteStrokeWidth: t,
|
|
3666
|
-
className:
|
|
3667
|
-
children:
|
|
3666
|
+
className: i = "",
|
|
3667
|
+
children: l,
|
|
3668
3668
|
iconNode: s,
|
|
3669
3669
|
...u
|
|
3670
3670
|
}, m) => Ve(
|
|
@@ -3676,12 +3676,12 @@ const ro = yr(
|
|
|
3676
3676
|
height: a,
|
|
3677
3677
|
stroke: e,
|
|
3678
3678
|
strokeWidth: t ? Number(o) * 24 / Number(a) : o,
|
|
3679
|
-
className: Ir("lucide",
|
|
3679
|
+
className: Ir("lucide", i),
|
|
3680
3680
|
...u
|
|
3681
3681
|
},
|
|
3682
3682
|
[
|
|
3683
3683
|
...s.map(([d, x]) => Ve(d, x)),
|
|
3684
|
-
...Array.isArray(
|
|
3684
|
+
...Array.isArray(l) ? l : [l]
|
|
3685
3685
|
]
|
|
3686
3686
|
)
|
|
3687
3687
|
);
|
|
@@ -3693,11 +3693,11 @@ const ro = yr(
|
|
|
3693
3693
|
*/
|
|
3694
3694
|
const ke = (e, a) => {
|
|
3695
3695
|
const o = yr(
|
|
3696
|
-
({ className: t, ...
|
|
3697
|
-
ref:
|
|
3696
|
+
({ className: t, ...i }, l) => Ve(ro, {
|
|
3697
|
+
ref: l,
|
|
3698
3698
|
iconNode: a,
|
|
3699
3699
|
className: Ir(`lucide-${Qt(e)}`, t),
|
|
3700
|
-
...
|
|
3700
|
+
...i
|
|
3701
3701
|
})
|
|
3702
3702
|
);
|
|
3703
3703
|
return o.displayName = `${e}`, o;
|
|
@@ -3770,53 +3770,53 @@ const mo = [
|
|
|
3770
3770
|
text: o,
|
|
3771
3771
|
fullScreen: t = !1
|
|
3772
3772
|
}) => {
|
|
3773
|
-
const
|
|
3773
|
+
const i = {
|
|
3774
3774
|
sm: "w-6 h-6",
|
|
3775
3775
|
md: "w-10 h-10",
|
|
3776
3776
|
lg: "w-16 h-16"
|
|
3777
|
-
},
|
|
3777
|
+
}, l = {
|
|
3778
3778
|
sm: "text-xs",
|
|
3779
3779
|
md: "text-sm font-medium",
|
|
3780
3780
|
lg: "text-base font-semibold"
|
|
3781
3781
|
};
|
|
3782
3782
|
if (e === "skeleton")
|
|
3783
|
-
return /* @__PURE__ */
|
|
3783
|
+
return /* @__PURE__ */ c.jsxs(
|
|
3784
3784
|
"div",
|
|
3785
3785
|
{
|
|
3786
|
-
className:
|
|
3786
|
+
className: P(
|
|
3787
3787
|
"w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl overflow-hidden shadow-sm animate-pulse",
|
|
3788
3788
|
a === "sm" ? "max-w-xs" : a === "md" ? "max-w-sm" : "max-w-md"
|
|
3789
3789
|
),
|
|
3790
3790
|
children: [
|
|
3791
|
-
/* @__PURE__ */
|
|
3792
|
-
/* @__PURE__ */
|
|
3793
|
-
/* @__PURE__ */
|
|
3794
|
-
/* @__PURE__ */
|
|
3795
|
-
/* @__PURE__ */
|
|
3791
|
+
/* @__PURE__ */ c.jsx("div", { className: "aspect-video bg-gray-200 dark:bg-dark-surface-light w-full" }),
|
|
3792
|
+
/* @__PURE__ */ c.jsxs("div", { className: "p-4 space-y-3", children: [
|
|
3793
|
+
/* @__PURE__ */ c.jsx("div", { className: "h-4 bg-gray-200 dark:bg-dark-surface-light rounded w-3/4" }),
|
|
3794
|
+
/* @__PURE__ */ c.jsx("div", { className: "h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-1/2" }),
|
|
3795
|
+
/* @__PURE__ */ c.jsx("div", { className: "h-3 bg-gray-200 dark:bg-dark-surface-light rounded w-5/6" })
|
|
3796
3796
|
] })
|
|
3797
3797
|
]
|
|
3798
3798
|
}
|
|
3799
3799
|
);
|
|
3800
|
-
const s = /* @__PURE__ */
|
|
3801
|
-
/* @__PURE__ */
|
|
3800
|
+
const s = /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col items-center justify-center space-y-3 p-4", children: [
|
|
3801
|
+
/* @__PURE__ */ c.jsx(
|
|
3802
3802
|
Fr,
|
|
3803
3803
|
{
|
|
3804
|
-
className:
|
|
3804
|
+
className: P(
|
|
3805
3805
|
"text-primary-500 animate-spin",
|
|
3806
|
-
|
|
3806
|
+
i[a]
|
|
3807
3807
|
)
|
|
3808
3808
|
}
|
|
3809
3809
|
),
|
|
3810
|
-
o && /* @__PURE__ */
|
|
3810
|
+
o && /* @__PURE__ */ c.jsx("p", { className: P("text-gray-500 dark:text-dark-text-muted select-none", l[a]), children: o })
|
|
3811
3811
|
] });
|
|
3812
|
-
return t ? /* @__PURE__ */
|
|
3812
|
+
return t ? /* @__PURE__ */ c.jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-dark-bg/80 backdrop-blur-sm", children: s }) : /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center w-full", children: s });
|
|
3813
3813
|
}, go = ({
|
|
3814
3814
|
icon: e,
|
|
3815
3815
|
variant: a = "primary",
|
|
3816
3816
|
size: o = "md",
|
|
3817
3817
|
rounded: t = !1,
|
|
3818
|
-
ariaLabel:
|
|
3819
|
-
disabled:
|
|
3818
|
+
ariaLabel: i,
|
|
3819
|
+
disabled: l = !1,
|
|
3820
3820
|
loading: s = !1,
|
|
3821
3821
|
className: u = "",
|
|
3822
3822
|
...m
|
|
@@ -3839,24 +3839,24 @@ const mo = [
|
|
|
3839
3839
|
lg: "px-6 py-3 text-lg rounded-lg min-h-[48px] sm:min-h-[52px]"
|
|
3840
3840
|
// larger tap targets for key actions
|
|
3841
3841
|
};
|
|
3842
|
-
return /* @__PURE__ */
|
|
3842
|
+
return /* @__PURE__ */ c.jsx(
|
|
3843
3843
|
"button",
|
|
3844
3844
|
{
|
|
3845
|
-
className:
|
|
3845
|
+
className: P(
|
|
3846
3846
|
d,
|
|
3847
3847
|
x[a],
|
|
3848
3848
|
v[o],
|
|
3849
3849
|
s && "pointer-events-none",
|
|
3850
3850
|
u
|
|
3851
3851
|
),
|
|
3852
|
-
"aria-label":
|
|
3853
|
-
disabled:
|
|
3852
|
+
"aria-label": i,
|
|
3853
|
+
disabled: l || s,
|
|
3854
3854
|
...m,
|
|
3855
|
-
children: s ? /* @__PURE__ */
|
|
3855
|
+
children: s ? /* @__PURE__ */ c.jsx(Fr, { className: "w-4 h-4 animate-spin", role: "status", "aria-hidden": "true" }) : /* @__PURE__ */ c.jsx("span", { className: "flex items-center justify-center leading-none", children: e })
|
|
3856
3856
|
}
|
|
3857
3857
|
);
|
|
3858
3858
|
};
|
|
3859
|
-
function fo({ isOpen: e, onClose: a, title: o, children: t, footer:
|
|
3859
|
+
function fo({ isOpen: e, onClose: a, title: o, children: t, footer: i, size: l = "md", closeOnOutsideClick: s = !1 }) {
|
|
3860
3860
|
if (Ie(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
3861
3861
|
document.body.style.overflow = "unset";
|
|
3862
3862
|
}), [e]), !e) return null;
|
|
@@ -3866,29 +3866,29 @@ function fo({ isOpen: e, onClose: a, title: o, children: t, footer: c, size: i =
|
|
|
3866
3866
|
lg: "max-w-2xl",
|
|
3867
3867
|
xl: "max-w-4xl"
|
|
3868
3868
|
};
|
|
3869
|
-
return /* @__PURE__ */
|
|
3870
|
-
/* @__PURE__ */
|
|
3871
|
-
/* @__PURE__ */
|
|
3869
|
+
return /* @__PURE__ */ c.jsxs("div", { className: "fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]", children: [
|
|
3870
|
+
/* @__PURE__ */ c.jsx("div", { className: "fixed inset-0", onClick: s ? a : void 0 }),
|
|
3871
|
+
/* @__PURE__ */ c.jsxs(
|
|
3872
3872
|
"div",
|
|
3873
3873
|
{
|
|
3874
|
-
className:
|
|
3874
|
+
className: P(
|
|
3875
3875
|
"relative w-full bg-white dark:bg-dark-surface border border-gray-150 dark:border-dark-border rounded-xl shadow-xl overflow-hidden flex flex-col max-h-[90vh] z-10 animate-[slideUp_0.2s_ease-out]",
|
|
3876
|
-
u[
|
|
3876
|
+
u[l]
|
|
3877
3877
|
),
|
|
3878
3878
|
children: [
|
|
3879
|
-
/* @__PURE__ */
|
|
3880
|
-
/* @__PURE__ */
|
|
3881
|
-
/* @__PURE__ */
|
|
3879
|
+
/* @__PURE__ */ c.jsxs("div", { className: "flex justify-between items-center px-6 py-4 border-b border-gray-100 dark:border-dark-border", children: [
|
|
3880
|
+
/* @__PURE__ */ c.jsx("h2", { className: "text-lg font-bold text-gray-900 dark:text-dark-text", children: o }),
|
|
3881
|
+
/* @__PURE__ */ c.jsx(
|
|
3882
3882
|
"button",
|
|
3883
3883
|
{
|
|
3884
3884
|
className: "text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors p-1.5 hover:bg-gray-100 dark:hover:bg-dark-surface-light rounded-lg cursor-pointer",
|
|
3885
3885
|
onClick: a,
|
|
3886
|
-
children: /* @__PURE__ */
|
|
3886
|
+
children: /* @__PURE__ */ c.jsx(Ke, { className: "w-5 h-5" })
|
|
3887
3887
|
}
|
|
3888
3888
|
)
|
|
3889
3889
|
] }),
|
|
3890
|
-
/* @__PURE__ */
|
|
3891
|
-
|
|
3890
|
+
/* @__PURE__ */ c.jsx("div", { className: "p-6 overflow-y-auto flex-1 text-sm text-gray-700 dark:text-dark-text-muted", children: t }),
|
|
3891
|
+
i && /* @__PURE__ */ c.jsx("div", { className: "flex justify-end items-center gap-3 px-6 py-4 border-t border-gray-100 dark:border-dark-border bg-gray-50/50 dark:bg-dark-surface/50", children: i })
|
|
3892
3892
|
]
|
|
3893
3893
|
}
|
|
3894
3894
|
)
|
|
@@ -3899,20 +3899,20 @@ function ho({
|
|
|
3899
3899
|
onClose: a,
|
|
3900
3900
|
onConfirm: o,
|
|
3901
3901
|
title: t,
|
|
3902
|
-
message:
|
|
3903
|
-
confirmText:
|
|
3902
|
+
message: i,
|
|
3903
|
+
confirmText: l = "Confirmar",
|
|
3904
3904
|
cancelText: s = "Cancelar",
|
|
3905
3905
|
isLoading: u = !1
|
|
3906
3906
|
}) {
|
|
3907
|
-
return /* @__PURE__ */
|
|
3907
|
+
return /* @__PURE__ */ c.jsx(
|
|
3908
3908
|
fo,
|
|
3909
3909
|
{
|
|
3910
3910
|
isOpen: e,
|
|
3911
3911
|
onClose: a,
|
|
3912
3912
|
title: t,
|
|
3913
3913
|
size: "sm",
|
|
3914
|
-
footer: /* @__PURE__ */
|
|
3915
|
-
/* @__PURE__ */
|
|
3914
|
+
footer: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3915
|
+
/* @__PURE__ */ c.jsx(
|
|
3916
3916
|
"button",
|
|
3917
3917
|
{
|
|
3918
3918
|
className: "px-4 py-2 text-sm font-semibold text-gray-700 dark:text-dark-text bg-gray-100 hover:bg-gray-200 dark:bg-dark-surface-light dark:hover:bg-gray-700 rounded-lg transition-all disabled:opacity-50 cursor-pointer",
|
|
@@ -3921,19 +3921,19 @@ function ho({
|
|
|
3921
3921
|
children: s
|
|
3922
3922
|
}
|
|
3923
3923
|
),
|
|
3924
|
-
/* @__PURE__ */
|
|
3924
|
+
/* @__PURE__ */ c.jsx(
|
|
3925
3925
|
"button",
|
|
3926
3926
|
{
|
|
3927
3927
|
className: "px-4 py-2 text-sm font-semibold text-white bg-red-600 hover:bg-red-700 active:scale-[0.98] rounded-lg shadow-sm transition-all disabled:opacity-50 cursor-pointer",
|
|
3928
3928
|
onClick: o,
|
|
3929
3929
|
disabled: u,
|
|
3930
|
-
children: u ? "Aguarde..." :
|
|
3930
|
+
children: u ? "Aguarde..." : l
|
|
3931
3931
|
}
|
|
3932
3932
|
)
|
|
3933
3933
|
] }),
|
|
3934
|
-
children: /* @__PURE__ */
|
|
3935
|
-
/* @__PURE__ */
|
|
3936
|
-
/* @__PURE__ */
|
|
3934
|
+
children: /* @__PURE__ */ c.jsxs("div", { className: "flex gap-4 items-start", children: [
|
|
3935
|
+
/* @__PURE__ */ c.jsx("div", { className: "p-2.5 bg-red-50 dark:bg-red-950/20 text-red-600 dark:text-red-400 rounded-xl", children: /* @__PURE__ */ c.jsx(uo, { className: "w-6 h-6 flex-shrink-0" }) }),
|
|
3936
|
+
/* @__PURE__ */ c.jsx("div", { children: /* @__PURE__ */ c.jsx("p", { className: "text-gray-600 dark:text-dark-text-muted mt-1 leading-relaxed", children: i }) })
|
|
3937
3937
|
] })
|
|
3938
3938
|
}
|
|
3939
3939
|
);
|
|
@@ -3943,25 +3943,25 @@ const xo = ({
|
|
|
3943
3943
|
title: a,
|
|
3944
3944
|
description: o,
|
|
3945
3945
|
action: t,
|
|
3946
|
-
variant:
|
|
3946
|
+
variant: i = "default"
|
|
3947
3947
|
}) => {
|
|
3948
|
-
const
|
|
3948
|
+
const l = {
|
|
3949
3949
|
default: "text-primary-500 bg-primary-50 dark:bg-primary-950/20",
|
|
3950
3950
|
error: "text-red-500 bg-red-50 dark:bg-red-950/20",
|
|
3951
3951
|
search: "text-secondary-500 bg-secondary-50 dark:bg-secondary-950/20"
|
|
3952
3952
|
};
|
|
3953
|
-
return /* @__PURE__ */
|
|
3953
|
+
return /* @__PURE__ */ c.jsxs("div", { className: P(
|
|
3954
3954
|
"flex flex-col items-center justify-center p-8 sm:p-12 text-center min-h-[300px] sm:min-h-[400px] animate-fadeIn group"
|
|
3955
3955
|
), children: [
|
|
3956
|
-
e && /* @__PURE__ */
|
|
3956
|
+
e && /* @__PURE__ */ c.jsx("div", { className: P(
|
|
3957
3957
|
"flex items-center justify-center w-16 h-16 sm:w-20 sm:h-20 mb-6 text-4xl sm:text-[48px] rounded-full transition-all duration-200 group-hover:scale-105 group-hover:bg-opacity-80",
|
|
3958
|
-
i
|
|
3958
|
+
l[i]
|
|
3959
3959
|
), children: e }),
|
|
3960
|
-
/* @__PURE__ */
|
|
3961
|
-
/* @__PURE__ */
|
|
3962
|
-
o && /* @__PURE__ */
|
|
3960
|
+
/* @__PURE__ */ c.jsxs("div", { className: "max-w-[500px] mb-6 space-y-2", children: [
|
|
3961
|
+
/* @__PURE__ */ c.jsx("h3", { className: "text-xl sm:text-2xl font-bold font-heading text-gray-900 dark:text-dark-text leading-tight", children: a }),
|
|
3962
|
+
o && /* @__PURE__ */ c.jsx("p", { className: "text-sm sm:text-base text-gray-600 dark:text-dark-text-muted leading-relaxed", children: o })
|
|
3963
3963
|
] }),
|
|
3964
|
-
t && /* @__PURE__ */
|
|
3964
|
+
t && /* @__PURE__ */ c.jsx(
|
|
3965
3965
|
"button",
|
|
3966
3966
|
{
|
|
3967
3967
|
className: "inline-flex items-center justify-center px-6 py-3 font-semibold text-white bg-gradient-to-br from-primary-500 to-primary-600 rounded-lg shadow-md transition-all duration-200 cursor-pointer hover:from-primary-600 hover:to-primary-700 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 active:translate-y-0 min-h-[44px]",
|
|
@@ -3975,19 +3975,19 @@ const xo = ({
|
|
|
3975
3975
|
debounceMs: a = 300,
|
|
3976
3976
|
placeholder: o = "Pesquisar vídeos...",
|
|
3977
3977
|
initialValue: t = "",
|
|
3978
|
-
showClear:
|
|
3979
|
-
autoFocus:
|
|
3978
|
+
showClear: i = !0,
|
|
3979
|
+
autoFocus: l = !1,
|
|
3980
3980
|
size: s = "md",
|
|
3981
3981
|
className: u = "",
|
|
3982
3982
|
...m
|
|
3983
3983
|
}) => {
|
|
3984
|
-
const [d, x] = ee(t), [v, S] = ee(!1), w = cr(null),
|
|
3984
|
+
const [d, x] = ee(t), [v, S] = ee(!1), w = cr(null), A = cr();
|
|
3985
3985
|
Ie(() => {
|
|
3986
|
-
|
|
3987
|
-
}, [
|
|
3986
|
+
l && w.current && w.current.focus();
|
|
3987
|
+
}, [l]), Ie(() => (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
3988
3988
|
e(d);
|
|
3989
3989
|
}, a), () => {
|
|
3990
|
-
|
|
3990
|
+
A.current && clearTimeout(A.current);
|
|
3991
3991
|
}), [d, e, a]);
|
|
3992
3992
|
const N = (W) => {
|
|
3993
3993
|
x(W.target.value);
|
|
@@ -4006,18 +4006,18 @@ const xo = ({
|
|
|
4006
4006
|
md: "w-5 h-5 ml-4",
|
|
4007
4007
|
lg: "w-6 h-6 ml-5"
|
|
4008
4008
|
};
|
|
4009
|
-
return /* @__PURE__ */
|
|
4009
|
+
return /* @__PURE__ */ c.jsxs(
|
|
4010
4010
|
"div",
|
|
4011
4011
|
{
|
|
4012
|
-
className:
|
|
4012
|
+
className: P(
|
|
4013
4013
|
"relative flex items-center w-full max-w-[600px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border shadow-sm transition-all duration-150 overflow-hidden",
|
|
4014
4014
|
v ? "border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30" : "hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow",
|
|
4015
4015
|
C[s],
|
|
4016
4016
|
u
|
|
4017
4017
|
),
|
|
4018
4018
|
children: [
|
|
4019
|
-
/* @__PURE__ */
|
|
4020
|
-
/* @__PURE__ */
|
|
4019
|
+
/* @__PURE__ */ c.jsx(lo, { className: P("text-gray-400 dark:text-dark-text-muted flex-shrink-0", H[s]), "aria-hidden": "true" }),
|
|
4020
|
+
/* @__PURE__ */ c.jsx(
|
|
4021
4021
|
"input",
|
|
4022
4022
|
{
|
|
4023
4023
|
ref: w,
|
|
@@ -4033,17 +4033,17 @@ const xo = ({
|
|
|
4033
4033
|
...m
|
|
4034
4034
|
}
|
|
4035
4035
|
),
|
|
4036
|
-
|
|
4036
|
+
i && d && /* @__PURE__ */ c.jsx(
|
|
4037
4037
|
"button",
|
|
4038
4038
|
{
|
|
4039
4039
|
type: "button",
|
|
4040
|
-
className:
|
|
4040
|
+
className: P(
|
|
4041
4041
|
"flex items-center justify-center mr-3 bg-gray-150 dark:bg-dark-surface-light border-none rounded-full cursor-pointer text-gray-500 dark:text-dark-text-muted transition-all duration-150 flex-shrink-0 hover:bg-gray-200 dark:hover:bg-dark-surface-light/80 hover:scale-105 active:scale-95",
|
|
4042
4042
|
s === "sm" ? "w-5 h-5 p-0.5" : s === "md" ? "w-6 h-6 p-1" : "w-7 h-7 p-1.5"
|
|
4043
4043
|
),
|
|
4044
4044
|
onClick: z,
|
|
4045
4045
|
"aria-label": "Limpar busca",
|
|
4046
|
-
children: /* @__PURE__ */
|
|
4046
|
+
children: /* @__PURE__ */ c.jsx(Ke, { className: "w-full h-full" })
|
|
4047
4047
|
}
|
|
4048
4048
|
)
|
|
4049
4049
|
]
|
|
@@ -4054,28 +4054,28 @@ const xo = ({
|
|
|
4054
4054
|
label: a = "Selecione uma data",
|
|
4055
4055
|
maxDate: o,
|
|
4056
4056
|
minDate: t,
|
|
4057
|
-
initialDate:
|
|
4057
|
+
initialDate: i
|
|
4058
4058
|
}) => {
|
|
4059
|
-
const [
|
|
4059
|
+
const [l, s] = ee(i || "");
|
|
4060
4060
|
Ie(() => {
|
|
4061
|
-
s(
|
|
4062
|
-
}, [
|
|
4061
|
+
s(i || "");
|
|
4062
|
+
}, [i]);
|
|
4063
4063
|
const u = (m) => {
|
|
4064
4064
|
const d = m.target.value;
|
|
4065
4065
|
s(d), e(d);
|
|
4066
4066
|
};
|
|
4067
|
-
return /* @__PURE__ */
|
|
4068
|
-
/* @__PURE__ */
|
|
4069
|
-
/* @__PURE__ */
|
|
4067
|
+
return /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-2.5 w-full max-w-[400px] md:max-w-full", children: [
|
|
4068
|
+
/* @__PURE__ */ c.jsx("label", { htmlFor: "date-picker", className: "font-sans text-xs font-semibold text-gray-700 dark:text-dark-text-muted uppercase tracking-wider", children: a }),
|
|
4069
|
+
/* @__PURE__ */ c.jsx(
|
|
4070
4070
|
"input",
|
|
4071
4071
|
{
|
|
4072
4072
|
id: "date-picker",
|
|
4073
4073
|
type: "date",
|
|
4074
|
-
value:
|
|
4074
|
+
value: l,
|
|
4075
4075
|
onChange: u,
|
|
4076
4076
|
max: o,
|
|
4077
4077
|
min: t,
|
|
4078
|
-
className:
|
|
4078
|
+
className: P(
|
|
4079
4079
|
"w-full px-4 py-3 font-sans text-base font-medium border-2 border-gray-300 dark:border-dark-border rounded-xl bg-white dark:bg-dark-surface text-gray-900 dark:text-dark-text shadow-sm cursor-pointer outline-none transition-all duration-200",
|
|
4080
4080
|
"hover:border-primary-400 hover:shadow-md focus:border-primary-500 focus:ring-3 focus:ring-primary-100 dark:focus:ring-primary-900/30",
|
|
4081
4081
|
"webkit-calendar-picker-indicator:cursor-pointer webkit-calendar-picker-indicator:p-1 webkit-calendar-picker-indicator:rounded-md webkit-calendar-picker-indicator:transition-colors hover:webkit-calendar-picker-indicator:bg-primary-50"
|
|
@@ -4088,9 +4088,9 @@ const xo = ({
|
|
|
4088
4088
|
initialStartDate: a,
|
|
4089
4089
|
initialEndDate: o,
|
|
4090
4090
|
allowRange: t = !0,
|
|
4091
|
-
placeholder:
|
|
4091
|
+
placeholder: i = "Selecionar data"
|
|
4092
4092
|
}) => {
|
|
4093
|
-
const [
|
|
4093
|
+
const [l, s] = ee(a || ""), [u, m] = ee(o || ""), [d, x] = ee(null), [v, S] = ee(!1), w = () => (/* @__PURE__ */ new Date()).toISOString().split("T")[0], A = () => {
|
|
4094
4094
|
const _ = /* @__PURE__ */ new Date();
|
|
4095
4095
|
return _.setDate(_.getDate() - 1), _.toISOString().split("T")[0];
|
|
4096
4096
|
}, N = (_) => {
|
|
@@ -4102,7 +4102,7 @@ const xo = ({
|
|
|
4102
4102
|
s(w()), m(w()), e(w(), w());
|
|
4103
4103
|
break;
|
|
4104
4104
|
case "yesterday":
|
|
4105
|
-
s(
|
|
4105
|
+
s(A()), m(A()), e(A(), A());
|
|
4106
4106
|
break;
|
|
4107
4107
|
case "last7days":
|
|
4108
4108
|
s(N(7)), m(w()), e(N(7), w());
|
|
@@ -4120,25 +4120,25 @@ const xo = ({
|
|
|
4120
4120
|
s(O), x("custom"), e(O, t ? u : null);
|
|
4121
4121
|
}, C = (_) => {
|
|
4122
4122
|
const O = _.target.value;
|
|
4123
|
-
m(O), x("custom"), e(
|
|
4123
|
+
m(O), x("custom"), e(l, O);
|
|
4124
4124
|
}, H = () => {
|
|
4125
4125
|
s(""), m(""), x(null), e(null, null);
|
|
4126
|
-
}, W = () =>
|
|
4126
|
+
}, W = () => l ? d && d !== "custom" ? {
|
|
4127
4127
|
today: "Hoje",
|
|
4128
4128
|
yesterday: "Ontem",
|
|
4129
4129
|
last7days: "Últimos 7 dias",
|
|
4130
4130
|
last30days: "Últimos 30 dias",
|
|
4131
4131
|
custom: "Personalizado"
|
|
4132
|
-
}[d] : t && u &&
|
|
4132
|
+
}[d] : t && u && l !== u ? `${q(l)} - ${q(u)}` : q(l) : i, q = (_) => {
|
|
4133
4133
|
const [O, g, M] = _.split("-");
|
|
4134
4134
|
return `${M}/${g}/${O}`;
|
|
4135
4135
|
};
|
|
4136
|
-
return /* @__PURE__ */
|
|
4137
|
-
/* @__PURE__ */
|
|
4136
|
+
return /* @__PURE__ */ c.jsxs("div", { className: "relative inline-block w-full sm:w-auto", children: [
|
|
4137
|
+
/* @__PURE__ */ c.jsxs(
|
|
4138
4138
|
"button",
|
|
4139
4139
|
{
|
|
4140
4140
|
type: "button",
|
|
4141
|
-
className:
|
|
4141
|
+
className: P(
|
|
4142
4142
|
"w-full sm:w-auto min-w-[200px] h-11 sm:h-12 px-4 flex items-center gap-2.5 bg-white dark:bg-dark-surface border-2 border-gray-300 dark:border-dark-border rounded-xl font-sans font-medium text-base text-gray-700 dark:text-dark-text cursor-pointer transition-all duration-200 outline-none select-none hover:border-gray-400 dark:hover:border-dark-border/80 hover:shadow-sm focus-visible:ring-3 focus-visible:ring-primary-300",
|
|
4143
4143
|
v && "border-primary-500 ring-3 ring-primary-100 dark:ring-primary-900/30"
|
|
4144
4144
|
),
|
|
@@ -4146,9 +4146,9 @@ const xo = ({
|
|
|
4146
4146
|
"aria-label": "Selecionar data",
|
|
4147
4147
|
"aria-expanded": v,
|
|
4148
4148
|
children: [
|
|
4149
|
-
/* @__PURE__ */
|
|
4150
|
-
/* @__PURE__ */
|
|
4151
|
-
|
|
4149
|
+
/* @__PURE__ */ c.jsx(oo, { className: "w-5 h-5 text-gray-400 dark:text-dark-text-muted flex-shrink-0" }),
|
|
4150
|
+
/* @__PURE__ */ c.jsx("span", { className: "flex-1 text-left whitespace-nowrap overflow-hidden text-ellipsis", children: W() }),
|
|
4151
|
+
l || u ? /* @__PURE__ */ c.jsx(
|
|
4152
4152
|
"button",
|
|
4153
4153
|
{
|
|
4154
4154
|
type: "button",
|
|
@@ -4157,25 +4157,25 @@ const xo = ({
|
|
|
4157
4157
|
_.stopPropagation(), H();
|
|
4158
4158
|
},
|
|
4159
4159
|
"aria-label": "Limpar seleção",
|
|
4160
|
-
children: /* @__PURE__ */
|
|
4160
|
+
children: /* @__PURE__ */ c.jsx(Ke, { className: "w-3 h-3" })
|
|
4161
4161
|
}
|
|
4162
|
-
) : /* @__PURE__ */
|
|
4162
|
+
) : /* @__PURE__ */ c.jsx(so, { className: "w-4 h-4 text-gray-400 dark:text-dark-text-muted flex-shrink-0" })
|
|
4163
4163
|
]
|
|
4164
4164
|
}
|
|
4165
4165
|
),
|
|
4166
|
-
v && /* @__PURE__ */
|
|
4167
|
-
/* @__PURE__ */
|
|
4168
|
-
/* @__PURE__ */
|
|
4166
|
+
v && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4167
|
+
/* @__PURE__ */ c.jsx("div", { className: "fixed inset-0 z-40 sm:hidden", onClick: () => S(!1) }),
|
|
4168
|
+
/* @__PURE__ */ c.jsxs("div", { className: P(
|
|
4169
4169
|
"absolute top-[calc(100%+8px)] left-0 sm:left-auto z-50 min-w-[280px] bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-2xl shadow-xl animate-slideUp sm:animate-slideDown",
|
|
4170
4170
|
"w-[calc(100vw-32px)] max-w-[340px] left-1/2 -translate-x-1/2 sm:left-0 sm:translate-x-0"
|
|
4171
4171
|
// mobile centering
|
|
4172
4172
|
), children: [
|
|
4173
|
-
/* @__PURE__ */
|
|
4174
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-1 p-3", children: [
|
|
4174
|
+
/* @__PURE__ */ c.jsx(
|
|
4175
4175
|
"button",
|
|
4176
4176
|
{
|
|
4177
4177
|
type: "button",
|
|
4178
|
-
className:
|
|
4178
|
+
className: P(
|
|
4179
4179
|
"w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",
|
|
4180
4180
|
d === "today" && "bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"
|
|
4181
4181
|
),
|
|
@@ -4183,11 +4183,11 @@ const xo = ({
|
|
|
4183
4183
|
children: "Hoje"
|
|
4184
4184
|
}
|
|
4185
4185
|
),
|
|
4186
|
-
/* @__PURE__ */
|
|
4186
|
+
/* @__PURE__ */ c.jsx(
|
|
4187
4187
|
"button",
|
|
4188
4188
|
{
|
|
4189
4189
|
type: "button",
|
|
4190
|
-
className:
|
|
4190
|
+
className: P(
|
|
4191
4191
|
"w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",
|
|
4192
4192
|
d === "yesterday" && "bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"
|
|
4193
4193
|
),
|
|
@@ -4195,11 +4195,11 @@ const xo = ({
|
|
|
4195
4195
|
children: "Ontem"
|
|
4196
4196
|
}
|
|
4197
4197
|
),
|
|
4198
|
-
/* @__PURE__ */
|
|
4198
|
+
/* @__PURE__ */ c.jsx(
|
|
4199
4199
|
"button",
|
|
4200
4200
|
{
|
|
4201
4201
|
type: "button",
|
|
4202
|
-
className:
|
|
4202
|
+
className: P(
|
|
4203
4203
|
"w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",
|
|
4204
4204
|
d === "last7days" && "bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"
|
|
4205
4205
|
),
|
|
@@ -4207,11 +4207,11 @@ const xo = ({
|
|
|
4207
4207
|
children: "Últimos 7 dias"
|
|
4208
4208
|
}
|
|
4209
4209
|
),
|
|
4210
|
-
/* @__PURE__ */
|
|
4210
|
+
/* @__PURE__ */ c.jsx(
|
|
4211
4211
|
"button",
|
|
4212
4212
|
{
|
|
4213
4213
|
type: "button",
|
|
4214
|
-
className:
|
|
4214
|
+
className: P(
|
|
4215
4215
|
"w-full px-3 py-2 text-left font-sans text-sm font-medium text-gray-700 dark:text-dark-text rounded-xl border-none bg-transparent cursor-pointer transition-all hover:bg-gray-150 dark:hover:bg-dark-surface-light min-h-[40px]",
|
|
4216
4216
|
d === "last30days" && "bg-primary-50 dark:bg-primary-950/20 text-primary-700 dark:text-primary-400 font-semibold"
|
|
4217
4217
|
),
|
|
@@ -4220,31 +4220,31 @@ const xo = ({
|
|
|
4220
4220
|
}
|
|
4221
4221
|
)
|
|
4222
4222
|
] }),
|
|
4223
|
-
/* @__PURE__ */
|
|
4224
|
-
/* @__PURE__ */
|
|
4225
|
-
/* @__PURE__ */
|
|
4223
|
+
/* @__PURE__ */ c.jsx("div", { className: "h-[1px] mx-3 my-1 bg-gray-200 dark:bg-dark-border" }),
|
|
4224
|
+
/* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-3.5 p-4 bg-gray-50/50 dark:bg-dark-bg/20 rounded-b-2xl", children: [
|
|
4225
|
+
/* @__PURE__ */ c.jsxs("label", { className: "flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider", children: [
|
|
4226
4226
|
"Data inicial",
|
|
4227
|
-
/* @__PURE__ */
|
|
4227
|
+
/* @__PURE__ */ c.jsx(
|
|
4228
4228
|
"input",
|
|
4229
4229
|
{
|
|
4230
4230
|
type: "date",
|
|
4231
4231
|
className: "w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",
|
|
4232
|
-
value:
|
|
4232
|
+
value: l,
|
|
4233
4233
|
onChange: $,
|
|
4234
4234
|
max: w()
|
|
4235
4235
|
}
|
|
4236
4236
|
)
|
|
4237
4237
|
] }),
|
|
4238
|
-
t && /* @__PURE__ */
|
|
4238
|
+
t && /* @__PURE__ */ c.jsxs("label", { className: "flex flex-col gap-1.5 font-sans text-xs font-semibold text-gray-500 dark:text-dark-text-muted uppercase tracking-wider", children: [
|
|
4239
4239
|
"Data final",
|
|
4240
|
-
/* @__PURE__ */
|
|
4240
|
+
/* @__PURE__ */ c.jsx(
|
|
4241
4241
|
"input",
|
|
4242
4242
|
{
|
|
4243
4243
|
type: "date",
|
|
4244
4244
|
className: "w-full px-3 py-2 bg-white dark:bg-dark-surface border border-gray-300 dark:border-dark-border rounded-lg font-sans text-sm text-gray-900 dark:text-dark-text cursor-pointer outline-none transition-colors hover:border-gray-400 focus:border-primary-500",
|
|
4245
4245
|
value: u,
|
|
4246
4246
|
onChange: C,
|
|
4247
|
-
min:
|
|
4247
|
+
min: l,
|
|
4248
4248
|
max: w()
|
|
4249
4249
|
}
|
|
4250
4250
|
)
|
|
@@ -4258,16 +4258,16 @@ const xo = ({
|
|
|
4258
4258
|
onLike: a,
|
|
4259
4259
|
onLikeChange: o,
|
|
4260
4260
|
size: t = "md",
|
|
4261
|
-
iconOnly:
|
|
4262
|
-
disabled:
|
|
4261
|
+
iconOnly: i = !1,
|
|
4262
|
+
disabled: l = !1
|
|
4263
4263
|
}) => {
|
|
4264
4264
|
const [s, u] = ee(e), [m, d] = ee(!1), x = async () => {
|
|
4265
|
-
if (
|
|
4266
|
-
const
|
|
4267
|
-
d(!0), u(
|
|
4265
|
+
if (l || m) return;
|
|
4266
|
+
const A = s + 1;
|
|
4267
|
+
d(!0), u(A), o == null || o(A);
|
|
4268
4268
|
try {
|
|
4269
4269
|
const N = await a();
|
|
4270
|
-
u(N), N !==
|
|
4270
|
+
u(N), N !== A && (o == null || o(N));
|
|
4271
4271
|
} catch {
|
|
4272
4272
|
u(s), o == null || o(s);
|
|
4273
4273
|
} finally {
|
|
@@ -4287,31 +4287,31 @@ const xo = ({
|
|
|
4287
4287
|
md: "min-w-[20px] h-5 text-xs px-1.5",
|
|
4288
4288
|
lg: "min-w-[22px] h-[22px] text-xs px-2"
|
|
4289
4289
|
};
|
|
4290
|
-
return /* @__PURE__ */
|
|
4290
|
+
return /* @__PURE__ */ c.jsxs(
|
|
4291
4291
|
"button",
|
|
4292
4292
|
{
|
|
4293
|
-
className:
|
|
4293
|
+
className: P(
|
|
4294
4294
|
"relative inline-flex items-center justify-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none rounded-lg border focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4295
4295
|
"bg-primary-50 border-primary-300 text-primary-700 hover:bg-primary-100 hover:border-primary-400 active:scale-95",
|
|
4296
4296
|
v[t],
|
|
4297
4297
|
m && "animate-heartBeat"
|
|
4298
4298
|
),
|
|
4299
4299
|
onClick: x,
|
|
4300
|
-
disabled:
|
|
4300
|
+
disabled: l,
|
|
4301
4301
|
"aria-label": "Curtir vídeo",
|
|
4302
4302
|
"aria-pressed": !0,
|
|
4303
4303
|
children: [
|
|
4304
|
-
/* @__PURE__ */
|
|
4305
|
-
/* @__PURE__ */
|
|
4306
|
-
m && /* @__PURE__ */
|
|
4307
|
-
/* @__PURE__ */
|
|
4308
|
-
/* @__PURE__ */
|
|
4309
|
-
/* @__PURE__ */
|
|
4304
|
+
/* @__PURE__ */ c.jsxs("span", { className: "relative flex items-center justify-center leading-none flex-shrink-0", children: [
|
|
4305
|
+
/* @__PURE__ */ c.jsx("span", { className: P("flex items-center justify-center transition-transform duration-150", m && "animate-iconPop"), children: "❤️" }),
|
|
4306
|
+
m && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4307
|
+
/* @__PURE__ */ c.jsx("span", { className: P("absolute text-sm pointer-events-none opacity-0 animate-heartFloat1", S[t]), children: "❤️" }),
|
|
4308
|
+
/* @__PURE__ */ c.jsx("span", { className: P("absolute text-sm pointer-events-none opacity-0 animate-heartFloat2", S[t]), children: "❤️" }),
|
|
4309
|
+
/* @__PURE__ */ c.jsx("span", { className: P("absolute text-sm pointer-events-none opacity-0 animate-heartFloat3", S[t]), children: "❤️" })
|
|
4310
4310
|
] })
|
|
4311
4311
|
] }),
|
|
4312
|
-
!
|
|
4313
|
-
/* @__PURE__ */
|
|
4314
|
-
s > 0 && /* @__PURE__ */
|
|
4312
|
+
!i && /* @__PURE__ */ c.jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
4313
|
+
/* @__PURE__ */ c.jsx("span", { className: "whitespace-nowrap", children: "Curtido" }),
|
|
4314
|
+
s > 0 && /* @__PURE__ */ c.jsx("span", { className: P(
|
|
4315
4315
|
"inline-flex items-center justify-center rounded-full bg-primary-600 text-white font-bold transition-all duration-150 animate-countBounce",
|
|
4316
4316
|
w[t]
|
|
4317
4317
|
), children: s })
|
|
@@ -4324,13 +4324,13 @@ const xo = ({
|
|
|
4324
4324
|
fileName: a,
|
|
4325
4325
|
downloadCount: o = 0,
|
|
4326
4326
|
onDownloadIncrement: t,
|
|
4327
|
-
onDownloadComplete:
|
|
4328
|
-
onDownloadChange:
|
|
4327
|
+
onDownloadComplete: i,
|
|
4328
|
+
onDownloadChange: l,
|
|
4329
4329
|
onError: s,
|
|
4330
4330
|
size: u = "md",
|
|
4331
4331
|
iconOnly: m = !1
|
|
4332
4332
|
}) => {
|
|
4333
|
-
const [d, x] = ee("idle"), [v, S] = ee(0), [w,
|
|
4333
|
+
const [d, x] = ee("idle"), [v, S] = ee(0), [w, A] = ee(o), N = async () => {
|
|
4334
4334
|
var q;
|
|
4335
4335
|
try {
|
|
4336
4336
|
x("downloading"), S(0);
|
|
@@ -4354,16 +4354,16 @@ const xo = ({
|
|
|
4354
4354
|
const te = new Blob(ie), J = window.URL.createObjectURL(te), B = document.createElement("a");
|
|
4355
4355
|
B.href = J, B.download = a, document.body.appendChild(B), B.click(), document.body.removeChild(B), window.URL.revokeObjectURL(J), x("success");
|
|
4356
4356
|
const Y = w + 1;
|
|
4357
|
-
if (
|
|
4357
|
+
if (A(Y), l == null || l(Y), setTimeout(() => {
|
|
4358
4358
|
x("idle"), S(0);
|
|
4359
4359
|
}, 2e3), t)
|
|
4360
4360
|
try {
|
|
4361
4361
|
const I = await t();
|
|
4362
|
-
I !== Y && (
|
|
4362
|
+
I !== Y && (A(I), l == null || l(I));
|
|
4363
4363
|
} catch (I) {
|
|
4364
4364
|
s == null || s(I);
|
|
4365
4365
|
}
|
|
4366
|
-
|
|
4366
|
+
i == null || i();
|
|
4367
4367
|
} catch (_) {
|
|
4368
4368
|
x("error"), s == null || s(_), setTimeout(() => {
|
|
4369
4369
|
x("idle"), S(0);
|
|
@@ -4406,10 +4406,10 @@ const xo = ({
|
|
|
4406
4406
|
md: "min-w-[20px] h-5 text-xs px-1.5",
|
|
4407
4407
|
lg: "min-w-[22px] h-[22px] text-xs px-2"
|
|
4408
4408
|
};
|
|
4409
|
-
return /* @__PURE__ */
|
|
4409
|
+
return /* @__PURE__ */ c.jsxs(
|
|
4410
4410
|
"button",
|
|
4411
4411
|
{
|
|
4412
|
-
className:
|
|
4412
|
+
className: P(
|
|
4413
4413
|
"relative inline-flex items-center gap-2 font-semibold cursor-pointer transition-all duration-200 select-none border overflow-hidden focus-visible:ring-3 focus-visible:ring-primary-300 focus-visible:ring-offset-2 disabled:opacity-75 disabled:cursor-not-allowed",
|
|
4414
4414
|
C[d],
|
|
4415
4415
|
H[u]
|
|
@@ -4418,15 +4418,15 @@ const xo = ({
|
|
|
4418
4418
|
disabled: d === "downloading",
|
|
4419
4419
|
"aria-label": `Baixar vídeo ${a}`,
|
|
4420
4420
|
children: [
|
|
4421
|
-
/* @__PURE__ */
|
|
4422
|
-
!m && /* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
w > 0 && /* @__PURE__ */
|
|
4421
|
+
/* @__PURE__ */ c.jsx("span", { className: "flex items-center justify-center leading-none flex-shrink-0", children: z() }),
|
|
4422
|
+
!m && /* @__PURE__ */ c.jsxs("span", { className: "flex items-center gap-1.5 z-10", children: [
|
|
4423
|
+
/* @__PURE__ */ c.jsx("span", { className: "whitespace-nowrap", children: $() }),
|
|
4424
|
+
w > 0 && /* @__PURE__ */ c.jsx("span", { className: P(
|
|
4425
4425
|
"inline-flex items-center justify-center rounded-full bg-primary-500 text-white font-bold",
|
|
4426
4426
|
W[u]
|
|
4427
4427
|
), children: w })
|
|
4428
4428
|
] }),
|
|
4429
|
-
d === "downloading" && /* @__PURE__ */
|
|
4429
|
+
d === "downloading" && /* @__PURE__ */ c.jsx("div", { className: "absolute bottom-0 left-0 right-0 h-[3px] bg-primary-100 dark:bg-primary-900 overflow-hidden", children: /* @__PURE__ */ c.jsx(
|
|
4430
4430
|
"div",
|
|
4431
4431
|
{
|
|
4432
4432
|
className: "h-full bg-gradient-to-r from-primary-500 to-primary-600 transition-all duration-250 ease-out",
|
|
@@ -4437,6 +4437,27 @@ const xo = ({
|
|
|
4437
4437
|
}
|
|
4438
4438
|
);
|
|
4439
4439
|
};
|
|
4440
|
+
function Co({ tabs: e, activeTab: a, onChange: o, className: t }) {
|
|
4441
|
+
return /* @__PURE__ */ c.jsx("div", { className: P("border-b border-gray-150 dark:border-dark-border/40 flex gap-2 overflow-x-auto select-none", t), children: e.map((i) => {
|
|
4442
|
+
const l = i.id === a;
|
|
4443
|
+
return /* @__PURE__ */ c.jsxs(
|
|
4444
|
+
"button",
|
|
4445
|
+
{
|
|
4446
|
+
type: "button",
|
|
4447
|
+
onClick: () => o(i.id),
|
|
4448
|
+
className: P(
|
|
4449
|
+
"flex items-center gap-2 px-4 py-3 text-xs font-bold uppercase tracking-wider border-b-2 transition-all cursor-pointer whitespace-nowrap outline-none",
|
|
4450
|
+
l ? "border-primary-500 text-primary-500 font-extrabold" : "border-transparent text-gray-500 hover:text-gray-700 dark:text-dark-text-muted dark:hover:text-dark-text"
|
|
4451
|
+
),
|
|
4452
|
+
children: [
|
|
4453
|
+
i.icon,
|
|
4454
|
+
i.label
|
|
4455
|
+
]
|
|
4456
|
+
},
|
|
4457
|
+
i.id
|
|
4458
|
+
);
|
|
4459
|
+
}) });
|
|
4460
|
+
}
|
|
4440
4461
|
export {
|
|
4441
4462
|
ho as ConfirmDialog,
|
|
4442
4463
|
vo as DatePicker,
|
|
@@ -4448,5 +4469,6 @@ export {
|
|
|
4448
4469
|
bo as Loading,
|
|
4449
4470
|
fo as Modal,
|
|
4450
4471
|
yo as SearchBar,
|
|
4451
|
-
|
|
4472
|
+
Co as Tabs,
|
|
4473
|
+
P as cn
|
|
4452
4474
|
};
|