tempest-react-sdk 0.1.2 → 0.1.3
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/README.md +41 -5
- package/dist/index.d.ts +57 -0
- package/dist/tempest-react-sdk.cjs +3 -3
- package/dist/tempest-react-sdk.cjs.map +1 -1
- package/dist/tempest-react-sdk.js +392 -355
- package/dist/tempest-react-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { create as nt } from "zustand";
|
|
|
6
6
|
import { persist as rt, createJSONStorage as st } from "zustand/middleware";
|
|
7
7
|
import ot from "dexie";
|
|
8
8
|
import { useForm as it } from "react-hook-form";
|
|
9
|
-
function
|
|
9
|
+
function _(...e) {
|
|
10
10
|
const t = [];
|
|
11
11
|
for (const n of e)
|
|
12
12
|
if (!(n == null || n === !1 || n === !0)) {
|
|
@@ -15,13 +15,13 @@ function g(...e) {
|
|
|
15
15
|
else if (typeof n == "number" || typeof n == "bigint")
|
|
16
16
|
t.push(String(n));
|
|
17
17
|
else if (Array.isArray(n)) {
|
|
18
|
-
const r =
|
|
18
|
+
const r = _(...n);
|
|
19
19
|
r && t.push(r);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
return t.join(" ");
|
|
23
23
|
}
|
|
24
|
-
const at = "tempest_avatar_3xMuZ", ct = "tempest_image_ieqGp", lt = "tempest_xs_oSaLL", ut = "tempest_sm_sZ2bk", dt = "tempest_md_Fdkbz", pt = "tempest_lg_pTTUA", ft = "tempest_xl_mW58F", mt = "tempest_status_ISBnL", ht = "tempest_dot_Wgfo-",
|
|
24
|
+
const at = "tempest_avatar_3xMuZ", ct = "tempest_image_ieqGp", lt = "tempest_xs_oSaLL", ut = "tempest_sm_sZ2bk", dt = "tempest_md_Fdkbz", pt = "tempest_lg_pTTUA", ft = "tempest_xl_mW58F", mt = "tempest_status_ISBnL", ht = "tempest_dot_Wgfo-", gt = "tempest_online_-aWoW", _t = "tempest_offline_-StX3", yt = "tempest_busy_TbwuF", Q = {
|
|
25
25
|
avatar: at,
|
|
26
26
|
image: ct,
|
|
27
27
|
xs: lt,
|
|
@@ -31,15 +31,15 @@ const at = "tempest_avatar_3xMuZ", ct = "tempest_image_ieqGp", lt = "tempest_xs_
|
|
|
31
31
|
xl: ft,
|
|
32
32
|
status: mt,
|
|
33
33
|
dot: ht,
|
|
34
|
-
online:
|
|
35
|
-
offline:
|
|
34
|
+
online: gt,
|
|
35
|
+
offline: _t,
|
|
36
36
|
busy: yt
|
|
37
37
|
};
|
|
38
38
|
function wt(e) {
|
|
39
39
|
const t = e.trim().split(/\s+/).filter(Boolean);
|
|
40
40
|
return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2) : `${t[0].charAt(0)}${t[t.length - 1].charAt(0)}`;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ea({
|
|
43
43
|
src: e,
|
|
44
44
|
alt: t,
|
|
45
45
|
name: n = "",
|
|
@@ -52,7 +52,7 @@ function Zi({
|
|
|
52
52
|
return /* @__PURE__ */ w(
|
|
53
53
|
"span",
|
|
54
54
|
{
|
|
55
|
-
className:
|
|
55
|
+
className: _(Q.avatar, Q[r], s && Q.status, o),
|
|
56
56
|
role: p,
|
|
57
57
|
tabIndex: f,
|
|
58
58
|
onClick: i,
|
|
@@ -69,7 +69,7 @@ function Zi({
|
|
|
69
69
|
onError: () => a(!0)
|
|
70
70
|
}
|
|
71
71
|
) : /* @__PURE__ */ l("span", { "aria-label": t ?? n, children: u }),
|
|
72
|
-
s && /* @__PURE__ */ l("span", { className:
|
|
72
|
+
s && /* @__PURE__ */ l("span", { className: _(Q.dot, Q[s]), "aria-hidden": !0 })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
);
|
|
@@ -82,8 +82,8 @@ const bt = "tempest_badge_RsuMz", vt = "tempest_neutral_lulSm", Nt = "tempest_su
|
|
|
82
82
|
danger: kt,
|
|
83
83
|
info: St
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
return /* @__PURE__ */ l("span", { className:
|
|
85
|
+
function ta({ variant: e = "neutral", className: t, children: n, ...r }) {
|
|
86
|
+
return /* @__PURE__ */ l("span", { className: _(Te.badge, Te[e], t), ...r, children: n });
|
|
87
87
|
}
|
|
88
88
|
const xt = "tempest_nav_H4g6P", Tt = "tempest_item_O4g3P", Et = "tempest_link_7WM67", Ct = "tempest_current_JdlcS", Lt = "tempest_separator_zGWyJ", re = {
|
|
89
89
|
nav: xt,
|
|
@@ -92,8 +92,8 @@ const xt = "tempest_nav_H4g6P", Tt = "tempest_item_O4g3P", Et = "tempest_link_7W
|
|
|
92
92
|
current: Ct,
|
|
93
93
|
separator: Lt
|
|
94
94
|
};
|
|
95
|
-
function
|
|
96
|
-
return /* @__PURE__ */ l("nav", { "aria-label": "breadcrumb", className:
|
|
95
|
+
function na({ items: e, separator: t = "/", className: n }) {
|
|
96
|
+
return /* @__PURE__ */ l("nav", { "aria-label": "breadcrumb", className: _(re.nav, n), children: e.map((r, s) => {
|
|
97
97
|
const o = s === e.length - 1, i = !o && (r.href || r.onClick);
|
|
98
98
|
return /* @__PURE__ */ w(Re, { children: [
|
|
99
99
|
/* @__PURE__ */ l("span", { className: re.item, children: i ? /* @__PURE__ */ l(
|
|
@@ -148,7 +148,7 @@ function ve({
|
|
|
148
148
|
return /* @__PURE__ */ w(
|
|
149
149
|
"button",
|
|
150
150
|
{
|
|
151
|
-
className:
|
|
151
|
+
className: _(
|
|
152
152
|
H.button,
|
|
153
153
|
H[e],
|
|
154
154
|
H[t],
|
|
@@ -160,7 +160,7 @@ function ve({
|
|
|
160
160
|
...u,
|
|
161
161
|
children: [
|
|
162
162
|
n && /* @__PURE__ */ l("span", { className: H.spinner, "aria-hidden": !0, children: /* @__PURE__ */ l(Jt, {}) }),
|
|
163
|
-
/* @__PURE__ */ w("span", { className:
|
|
163
|
+
/* @__PURE__ */ w("span", { className: _(n && H.hiddenText), children: [
|
|
164
164
|
s,
|
|
165
165
|
a,
|
|
166
166
|
o
|
|
@@ -198,12 +198,12 @@ const qt = "tempest_card_Cb1o4", Gt = "tempest_padded_oOxwN", Ht = "tempest_flus
|
|
|
198
198
|
title: Vt,
|
|
199
199
|
body: Qt
|
|
200
200
|
};
|
|
201
|
-
function
|
|
201
|
+
function ra({ title: e, actions: t, flush: n = !1, className: r, children: s, ...o }) {
|
|
202
202
|
const i = e || t;
|
|
203
203
|
return /* @__PURE__ */ w(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: _(
|
|
207
207
|
Y.card,
|
|
208
208
|
!i && !n && Y.padded,
|
|
209
209
|
n && Y.flush,
|
|
@@ -228,7 +228,7 @@ const Yt = "tempest_wrapper_rpthW", Xt = "tempest_disabled_x7-eg", Zt = "tempest
|
|
|
228
228
|
labelWrap: tn,
|
|
229
229
|
label: nn,
|
|
230
230
|
description: rn
|
|
231
|
-
},
|
|
231
|
+
}, sa = O(function({ label: t, description: n, indeterminate: r, disabled: s, wrapperClassName: o, className: i, ...c }, a) {
|
|
232
232
|
const u = T(null);
|
|
233
233
|
k(() => {
|
|
234
234
|
u.current && (u.current.indeterminate = !!r);
|
|
@@ -236,14 +236,14 @@ const Yt = "tempest_wrapper_rpthW", Xt = "tempest_disabled_x7-eg", Zt = "tempest
|
|
|
236
236
|
function d(p) {
|
|
237
237
|
u.current = p, typeof a == "function" ? a(p) : a && (a.current = p);
|
|
238
238
|
}
|
|
239
|
-
return /* @__PURE__ */ w("label", { className:
|
|
239
|
+
return /* @__PURE__ */ w("label", { className: _(K.wrapper, s && K.disabled, o), children: [
|
|
240
240
|
/* @__PURE__ */ l(
|
|
241
241
|
"input",
|
|
242
242
|
{
|
|
243
243
|
ref: d,
|
|
244
244
|
type: "checkbox",
|
|
245
245
|
disabled: s,
|
|
246
|
-
className:
|
|
246
|
+
className: _(K.input, i),
|
|
247
247
|
...c
|
|
248
248
|
}
|
|
249
249
|
),
|
|
@@ -280,7 +280,7 @@ const an = "tempest_wrapper_KR4-F", cn = "tempest_label_Mz-wX", ln = "tempest_fi
|
|
|
280
280
|
helper: mn,
|
|
281
281
|
errorText: hn
|
|
282
282
|
};
|
|
283
|
-
function
|
|
283
|
+
function oa({
|
|
284
284
|
value: e,
|
|
285
285
|
onChange: t,
|
|
286
286
|
label: n,
|
|
@@ -309,11 +309,11 @@ function sa({
|
|
|
309
309
|
}
|
|
310
310
|
h.key === "Backspace" && !u && e.length > 0 && t(e.slice(0, -1));
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function g(h) {
|
|
313
313
|
const b = e.slice();
|
|
314
314
|
b.splice(h, 1), t(b);
|
|
315
315
|
}
|
|
316
|
-
return /* @__PURE__ */ w("div", { className:
|
|
316
|
+
return /* @__PURE__ */ w("div", { className: _(B.wrapper, o && B.error, a), children: [
|
|
317
317
|
n && /* @__PURE__ */ l("label", { className: B.label, children: n }),
|
|
318
318
|
/* @__PURE__ */ w("div", { className: B.field, onClick: () => p.current?.focus(), children: [
|
|
319
319
|
e.map((h, b) => /* @__PURE__ */ w("span", { className: B.chip, children: [
|
|
@@ -324,7 +324,7 @@ function sa({
|
|
|
324
324
|
type: "button",
|
|
325
325
|
className: B.remove,
|
|
326
326
|
"aria-label": `Remover ${h}`,
|
|
327
|
-
onClick: () =>
|
|
327
|
+
onClick: () => g(b),
|
|
328
328
|
children: "×"
|
|
329
329
|
}
|
|
330
330
|
)
|
|
@@ -345,9 +345,9 @@ function sa({
|
|
|
345
345
|
o ? /* @__PURE__ */ l("span", { className: B.errorText, children: o }) : s ? /* @__PURE__ */ l("span", { className: B.helper, children: s }) : null
|
|
346
346
|
] });
|
|
347
347
|
}
|
|
348
|
-
const
|
|
349
|
-
overlay:
|
|
350
|
-
tempestFadeIn:
|
|
348
|
+
const gn = "tempest_overlay_dd9h1", _n = "tempest_tempest-fade-in_DvgSp", yn = "tempest_dialog_ptM-K", wn = "tempest_tempest-modal-in_UoxQC", bn = "tempest_sm_K5k3W", vn = "tempest_md_gvyR7", Nn = "tempest_lg_BgB1a", $n = "tempest_xl_MR-68", kn = "tempest_header_ILG9i", Sn = "tempest_title_A5OeE", xn = "tempest_close_-ER1C", Tn = "tempest_body_lVhql", En = "tempest_footer_rro2w", J = {
|
|
349
|
+
overlay: gn,
|
|
350
|
+
tempestFadeIn: _n,
|
|
351
351
|
dialog: yn,
|
|
352
352
|
tempestModalIn: wn,
|
|
353
353
|
sm: bn,
|
|
@@ -396,7 +396,7 @@ function Cn({
|
|
|
396
396
|
{
|
|
397
397
|
role: "dialog",
|
|
398
398
|
"aria-modal": "true",
|
|
399
|
-
className:
|
|
399
|
+
className: _(J.dialog, J[o], a),
|
|
400
400
|
onClick: (d) => d.stopPropagation(),
|
|
401
401
|
children: [
|
|
402
402
|
(n || !u) && /* @__PURE__ */ w("header", { className: J.header, children: [
|
|
@@ -433,7 +433,7 @@ function Ln() {
|
|
|
433
433
|
}
|
|
434
434
|
) });
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ia({
|
|
437
437
|
open: e,
|
|
438
438
|
title: t,
|
|
439
439
|
description: n,
|
|
@@ -486,8 +486,8 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
|
|
|
486
486
|
required: u,
|
|
487
487
|
...d
|
|
488
488
|
}, p) {
|
|
489
|
-
const f = ae(), m = a ?? f,
|
|
490
|
-
return /* @__PURE__ */ w("div", { className:
|
|
489
|
+
const f = ae(), m = a ?? f, g = r ? `${m}-error` : n ? `${m}-helper` : void 0;
|
|
490
|
+
return /* @__PURE__ */ w("div", { className: _(P.wrapper, r && P.error, i), children: [
|
|
491
491
|
t && /* @__PURE__ */ w("label", { htmlFor: m, className: P.label, children: [
|
|
492
492
|
t,
|
|
493
493
|
u && /* @__PURE__ */ l("span", { className: P.required, children: "*" })
|
|
@@ -500,9 +500,9 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
|
|
|
500
500
|
ref: p,
|
|
501
501
|
id: m,
|
|
502
502
|
"aria-invalid": !!r,
|
|
503
|
-
"aria-describedby":
|
|
503
|
+
"aria-describedby": g,
|
|
504
504
|
required: u,
|
|
505
|
-
className:
|
|
505
|
+
className: _(
|
|
506
506
|
P.input,
|
|
507
507
|
s && P.hasLeftIcon,
|
|
508
508
|
o && P.hasRightIcon,
|
|
@@ -515,7 +515,7 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
|
|
|
515
515
|
] }),
|
|
516
516
|
r ? /* @__PURE__ */ l("span", { id: `${m}-error`, className: P.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { id: `${m}-helper`, className: P.helper, children: n }) : null
|
|
517
517
|
] });
|
|
518
|
-
}),
|
|
518
|
+
}), aa = O(function({ value: t, onChange: n, mode: r = "date", ...s }, o) {
|
|
519
519
|
return /* @__PURE__ */ l(
|
|
520
520
|
Se,
|
|
521
521
|
{
|
|
@@ -544,7 +544,7 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
|
|
|
544
544
|
body: rr,
|
|
545
545
|
footer: sr
|
|
546
546
|
};
|
|
547
|
-
function
|
|
547
|
+
function ca({
|
|
548
548
|
open: e,
|
|
549
549
|
onClose: t,
|
|
550
550
|
placement: n = "right",
|
|
@@ -582,7 +582,7 @@ function aa({
|
|
|
582
582
|
{
|
|
583
583
|
role: "dialog",
|
|
584
584
|
"aria-modal": "true",
|
|
585
|
-
className:
|
|
585
|
+
className: _(q.panel, q[n], u),
|
|
586
586
|
children: [
|
|
587
587
|
(r || !a) && /* @__PURE__ */ w("header", { className: q.header, children: [
|
|
588
588
|
/* @__PURE__ */ l("h3", { className: q.title, children: r }),
|
|
@@ -624,8 +624,8 @@ const ir = "tempest_wrapper_gzyTd", ar = "tempest_icon_qVCyh", cr = "tempest_tit
|
|
|
624
624
|
description: lr,
|
|
625
625
|
action: ur
|
|
626
626
|
};
|
|
627
|
-
function
|
|
628
|
-
return /* @__PURE__ */ w("div", { className:
|
|
627
|
+
function la({ icon: e, title: t, description: n, action: r, className: s }) {
|
|
628
|
+
return /* @__PURE__ */ w("div", { className: _(se.wrapper, s), children: [
|
|
629
629
|
e && /* @__PURE__ */ l("div", { className: se.icon, children: e }),
|
|
630
630
|
/* @__PURE__ */ l("h4", { className: se.title, children: t }),
|
|
631
631
|
n && /* @__PURE__ */ l("p", { className: se.description, children: n }),
|
|
@@ -639,7 +639,7 @@ const dr = "tempest_wrapper_luRyF", pr = "tempest_icon_dEdBl", fr = "tempest_tit
|
|
|
639
639
|
description: mr,
|
|
640
640
|
action: hr
|
|
641
641
|
};
|
|
642
|
-
function
|
|
642
|
+
function ua({
|
|
643
643
|
title: e = "Algo deu errado",
|
|
644
644
|
description: t = "Não foi possível carregar essas informações.",
|
|
645
645
|
onRetry: n,
|
|
@@ -647,14 +647,14 @@ function la({
|
|
|
647
647
|
icon: s,
|
|
648
648
|
className: o
|
|
649
649
|
}) {
|
|
650
|
-
return /* @__PURE__ */ w("div", { className:
|
|
651
|
-
/* @__PURE__ */ l("div", { className: oe.icon, children: s ?? /* @__PURE__ */ l(
|
|
650
|
+
return /* @__PURE__ */ w("div", { className: _(oe.wrapper, o), children: [
|
|
651
|
+
/* @__PURE__ */ l("div", { className: oe.icon, children: s ?? /* @__PURE__ */ l(gr, {}) }),
|
|
652
652
|
/* @__PURE__ */ l("h4", { className: oe.title, children: e }),
|
|
653
653
|
t && /* @__PURE__ */ l("p", { className: oe.description, children: t }),
|
|
654
654
|
n && /* @__PURE__ */ l("div", { className: oe.action, children: /* @__PURE__ */ l(ve, { variant: "secondary", onClick: n, children: r }) })
|
|
655
655
|
] });
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function gr() {
|
|
658
658
|
return /* @__PURE__ */ l("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
659
659
|
"path",
|
|
660
660
|
{
|
|
@@ -666,8 +666,8 @@ function _r() {
|
|
|
666
666
|
}
|
|
667
667
|
) });
|
|
668
668
|
}
|
|
669
|
-
const
|
|
670
|
-
wrapper:
|
|
669
|
+
const _r = "tempest_wrapper_E0qHs", yr = "tempest_label_lbMkx", wr = "tempest_dropzone_jqua0", br = "tempest_active_CG9Uk", vr = "tempest_disabled_WNUUl", Nr = "tempest_icon_i9fGH", $r = "tempest_title_bTVFl", kr = "tempest_subtitle_S54OV", Sr = "tempest_files_WljYm", xr = "tempest_file_Lp-dR", Tr = "tempest_fileMeta_LTnN2", Er = "tempest_remove_jskra", Cr = "tempest_hidden_ReEq6", D = {
|
|
670
|
+
wrapper: _r,
|
|
671
671
|
label: yr,
|
|
672
672
|
dropzone: wr,
|
|
673
673
|
active: br,
|
|
@@ -689,7 +689,7 @@ function Ir(e, t) {
|
|
|
689
689
|
const n = t.split(",").map((o) => o.trim().toLowerCase()), r = e.name.toLowerCase(), s = e.type.toLowerCase();
|
|
690
690
|
return n.some((o) => o.startsWith(".") ? r.endsWith(o) : o.endsWith("/*") ? s.startsWith(o.replace("/*", "/")) : s === o);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function da({
|
|
693
693
|
value: e,
|
|
694
694
|
onChange: t,
|
|
695
695
|
label: n,
|
|
@@ -703,7 +703,7 @@ function ua({
|
|
|
703
703
|
className: d
|
|
704
704
|
}) {
|
|
705
705
|
const [p, f] = v(!1), m = T(null);
|
|
706
|
-
function
|
|
706
|
+
function g(y) {
|
|
707
707
|
const N = [], $ = [];
|
|
708
708
|
for (const I of Array.from(y)) {
|
|
709
709
|
if (!Ir(I, r)) {
|
|
@@ -721,18 +721,18 @@ function ua({
|
|
|
721
721
|
t(C);
|
|
722
722
|
}
|
|
723
723
|
function h(y) {
|
|
724
|
-
y.preventDefault(), f(!1), !c && y.dataTransfer?.files &&
|
|
724
|
+
y.preventDefault(), f(!1), !c && y.dataTransfer?.files && g(y.dataTransfer.files);
|
|
725
725
|
}
|
|
726
726
|
function b(y) {
|
|
727
727
|
const N = e.slice();
|
|
728
728
|
N.splice(y, 1), t(N);
|
|
729
729
|
}
|
|
730
|
-
return /* @__PURE__ */ w("div", { className:
|
|
730
|
+
return /* @__PURE__ */ w("div", { className: _(D.wrapper, d), children: [
|
|
731
731
|
n && /* @__PURE__ */ l("label", { className: D.label, children: n }),
|
|
732
732
|
/* @__PURE__ */ w(
|
|
733
733
|
"div",
|
|
734
734
|
{
|
|
735
|
-
className:
|
|
735
|
+
className: _(
|
|
736
736
|
D.dropzone,
|
|
737
737
|
p && D.active,
|
|
738
738
|
c && D.disabled
|
|
@@ -763,7 +763,7 @@ function ua({
|
|
|
763
763
|
disabled: c,
|
|
764
764
|
className: D.hidden,
|
|
765
765
|
onChange: (y) => {
|
|
766
|
-
y.target.files &&
|
|
766
|
+
y.target.files && g(y.target.files), y.target.value = "";
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
)
|
|
@@ -823,7 +823,7 @@ function de(e, t) {
|
|
|
823
823
|
function Oe(e) {
|
|
824
824
|
return e === void 0 ? "repeat(2, minmax(0, 1fr))" : typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
|
|
825
825
|
}
|
|
826
|
-
const
|
|
826
|
+
const pa = O(function({ layout: t = "stack", columns: n, gap: r, className: s, style: o, children: i, ...c }, a) {
|
|
827
827
|
const u = {
|
|
828
828
|
gap: de(r, 4),
|
|
829
829
|
...t === "grid" ? { gridTemplateColumns: Oe(n) } : null,
|
|
@@ -833,14 +833,14 @@ const da = O(function({ layout: t = "stack", columns: n, gap: r, className: s, s
|
|
|
833
833
|
"form",
|
|
834
834
|
{
|
|
835
835
|
ref: a,
|
|
836
|
-
className:
|
|
836
|
+
className: _(F.form, F[t], s),
|
|
837
837
|
style: u,
|
|
838
838
|
...c,
|
|
839
839
|
children: i
|
|
840
840
|
}
|
|
841
841
|
);
|
|
842
842
|
});
|
|
843
|
-
function
|
|
843
|
+
function fa({
|
|
844
844
|
title: e,
|
|
845
845
|
description: t,
|
|
846
846
|
layout: n = "stack",
|
|
@@ -855,19 +855,19 @@ function pa({
|
|
|
855
855
|
gap: de(s, 4),
|
|
856
856
|
...n === "grid" ? { gridTemplateColumns: Oe(r) } : null
|
|
857
857
|
};
|
|
858
|
-
return /* @__PURE__ */ w("section", { className:
|
|
858
|
+
return /* @__PURE__ */ w("section", { className: _(F.section, o), style: i, ...a, children: [
|
|
859
859
|
(e || t) && /* @__PURE__ */ w("header", { className: F.sectionHeader, children: [
|
|
860
860
|
e && /* @__PURE__ */ l("h3", { className: F.sectionTitle, children: e }),
|
|
861
861
|
t && /* @__PURE__ */ l("p", { className: F.sectionDescription, children: t })
|
|
862
862
|
] }),
|
|
863
|
-
/* @__PURE__ */ l("div", { className:
|
|
863
|
+
/* @__PURE__ */ l("div", { className: _(F.sectionBody, F[n]), style: u, children: c })
|
|
864
864
|
] });
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function ma({ gap: e, className: t, style: n, children: r, ...s }) {
|
|
867
867
|
const o = { gap: de(e, 3), ...n };
|
|
868
|
-
return /* @__PURE__ */ l("div", { className:
|
|
868
|
+
return /* @__PURE__ */ l("div", { className: _(F.row, t), style: o, ...s, children: r });
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function ha({
|
|
871
871
|
align: e = "end",
|
|
872
872
|
gap: t,
|
|
873
873
|
className: n,
|
|
@@ -876,7 +876,7 @@ function ma({
|
|
|
876
876
|
...o
|
|
877
877
|
}) {
|
|
878
878
|
const i = { gap: de(t, 2), ...r };
|
|
879
|
-
return /* @__PURE__ */ l("div", { className:
|
|
879
|
+
return /* @__PURE__ */ l("div", { className: _(F.actions, F[e], n), style: i, ...o, children: s });
|
|
880
880
|
}
|
|
881
881
|
const Kr = "tempest_container_fJfOt", Vr = "tempest_sm_k8D4-", Qr = "tempest_md_EnpYy", Yr = "tempest_lg_UU-Ig", Xr = "tempest_xl_2TEWj", Zr = "tempest_full_l8bvG", es = "tempest_stack_sxR8u", ts = "tempest_vertical_2TMf5", ns = "tempest_horizontal_r7-c-", rs = "tempest_center_EDSAh", ss = "tempest_start_ucQ-K", os = "tempest_end_pnKlF", is = "tempest_stretch_pX6l7", as = "tempest_justifyStart_lHYsS", cs = "tempest_justifyCenter_JH2m6", ls = "tempest_justifyEnd_EBisT", us = "tempest_justifyBetween_mAJwT", ds = "tempest_wrap_-xxOh", ps = "tempest_grid_o-JIX", A = {
|
|
882
882
|
container: Kr,
|
|
@@ -899,8 +899,8 @@ const Kr = "tempest_container_fJfOt", Vr = "tempest_sm_k8D4-", Qr = "tempest_md_
|
|
|
899
899
|
wrap: ds,
|
|
900
900
|
grid: ps
|
|
901
901
|
};
|
|
902
|
-
function
|
|
903
|
-
return /* @__PURE__ */ l("div", { className:
|
|
902
|
+
function ga({ size: e = "lg", className: t, children: n, ...r }) {
|
|
903
|
+
return /* @__PURE__ */ l("div", { className: _(A.container, A[e], t), ...r, children: n });
|
|
904
904
|
}
|
|
905
905
|
function _a({
|
|
906
906
|
direction: e = "vertical",
|
|
@@ -917,7 +917,7 @@ function _a({
|
|
|
917
917
|
return /* @__PURE__ */ l(
|
|
918
918
|
"div",
|
|
919
919
|
{
|
|
920
|
-
className:
|
|
920
|
+
className: _(
|
|
921
921
|
A.stack,
|
|
922
922
|
e === "vertical" ? A.vertical : A.horizontal,
|
|
923
923
|
n && A[n],
|
|
@@ -931,24 +931,24 @@ function _a({
|
|
|
931
931
|
}
|
|
932
932
|
);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function ya({ columns: e = 2, gap: t = 4, className: n, style: r, children: s, ...o }) {
|
|
935
935
|
const i = typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e, c = typeof t == "number" ? `${t * 4}px` : t;
|
|
936
936
|
return /* @__PURE__ */ l(
|
|
937
937
|
"div",
|
|
938
938
|
{
|
|
939
|
-
className:
|
|
939
|
+
className: _(A.grid, n),
|
|
940
940
|
style: { gridTemplateColumns: i, gap: c, ...r },
|
|
941
941
|
...o,
|
|
942
942
|
children: s
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
945
|
}
|
|
946
|
-
const fs = "tempest_wrapper_cRGQm", ms = "tempest_controls_fdL-y", hs = "tempest_page_WjG0l",
|
|
946
|
+
const fs = "tempest_wrapper_cRGQm", ms = "tempest_controls_fdL-y", hs = "tempest_page_WjG0l", gs = "tempest_active_1kqsJ", _s = "tempest_ellipsis_V294k", ys = "tempest_sizeSelect_ZayTo", G = {
|
|
947
947
|
wrapper: fs,
|
|
948
948
|
controls: ms,
|
|
949
949
|
page: hs,
|
|
950
|
-
active:
|
|
951
|
-
ellipsis:
|
|
950
|
+
active: gs,
|
|
951
|
+
ellipsis: _s,
|
|
952
952
|
sizeSelect: ys
|
|
953
953
|
};
|
|
954
954
|
function ws(e, t, n) {
|
|
@@ -960,7 +960,7 @@ function ws(e, t, n) {
|
|
|
960
960
|
for (let c = s; c <= o; c++) i.push(c);
|
|
961
961
|
return o < t - 1 && i.push("..."), i.push(t), i;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function wa({
|
|
964
964
|
page: e,
|
|
965
965
|
totalPages: t,
|
|
966
966
|
onPageChange: n,
|
|
@@ -975,7 +975,7 @@ function ya({
|
|
|
975
975
|
() => ws(e, t, c),
|
|
976
976
|
[e, t, c]
|
|
977
977
|
);
|
|
978
|
-
return t <= 1 && !s ? null : /* @__PURE__ */ w("div", { className:
|
|
978
|
+
return t <= 1 && !s ? null : /* @__PURE__ */ w("div", { className: _(G.wrapper, a), children: [
|
|
979
979
|
/* @__PURE__ */ l("div", { children: typeof i == "number" ? `${i} resultado${i === 1 ? "" : "s"}` : null }),
|
|
980
980
|
/* @__PURE__ */ w("div", { className: G.controls, children: [
|
|
981
981
|
/* @__PURE__ */ l(
|
|
@@ -994,7 +994,7 @@ function ya({
|
|
|
994
994
|
"button",
|
|
995
995
|
{
|
|
996
996
|
type: "button",
|
|
997
|
-
className:
|
|
997
|
+
className: _(G.page, d === e && G.active),
|
|
998
998
|
onClick: () => n(d),
|
|
999
999
|
"aria-current": d === e ? "page" : void 0,
|
|
1000
1000
|
children: d
|
|
@@ -1040,7 +1040,7 @@ const bs = "tempest_wrapper_BQek1", vs = "tempest_bar_uC-0x", Ns = "tempest_fill
|
|
|
1040
1040
|
tempestProgressLoop: Ts,
|
|
1041
1041
|
label: Es
|
|
1042
1042
|
};
|
|
1043
|
-
function
|
|
1043
|
+
function ba({
|
|
1044
1044
|
value: e = 0,
|
|
1045
1045
|
max: t = 100,
|
|
1046
1046
|
variant: n = "primary",
|
|
@@ -1050,7 +1050,7 @@ function wa({
|
|
|
1050
1050
|
className: i
|
|
1051
1051
|
}) {
|
|
1052
1052
|
const c = r ? 0 : Math.max(0, Math.min(100, e / t * 100));
|
|
1053
|
-
return /* @__PURE__ */ w("div", { className:
|
|
1053
|
+
return /* @__PURE__ */ w("div", { className: _(X.wrapper, i), children: [
|
|
1054
1054
|
(s || o) && /* @__PURE__ */ w("div", { className: X.label, children: [
|
|
1055
1055
|
o && /* @__PURE__ */ l("span", { children: o }),
|
|
1056
1056
|
s && !r && /* @__PURE__ */ w("span", { children: [
|
|
@@ -1065,11 +1065,11 @@ function wa({
|
|
|
1065
1065
|
"aria-valuemin": 0,
|
|
1066
1066
|
"aria-valuemax": t,
|
|
1067
1067
|
"aria-valuenow": r ? void 0 : e,
|
|
1068
|
-
className:
|
|
1068
|
+
className: _(X.bar, r && X.indeterminate),
|
|
1069
1069
|
children: /* @__PURE__ */ l(
|
|
1070
1070
|
"div",
|
|
1071
1071
|
{
|
|
1072
|
-
className:
|
|
1072
|
+
className: _(X.fill, n !== "primary" && X[n]),
|
|
1073
1073
|
style: { width: r ? void 0 : `${c}%` }
|
|
1074
1074
|
}
|
|
1075
1075
|
)
|
|
@@ -1087,7 +1087,7 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
|
|
|
1087
1087
|
description: As,
|
|
1088
1088
|
group: Rs,
|
|
1089
1089
|
horizontal: Fs
|
|
1090
|
-
}, We = ne(null),
|
|
1090
|
+
}, We = ne(null), va = O(function({
|
|
1091
1091
|
label: t,
|
|
1092
1092
|
description: n,
|
|
1093
1093
|
value: r,
|
|
@@ -1099,14 +1099,14 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
|
|
|
1099
1099
|
className: u,
|
|
1100
1100
|
...d
|
|
1101
1101
|
}, p) {
|
|
1102
|
-
const f = te(We), m = f?.name ?? o,
|
|
1102
|
+
const f = te(We), m = f?.name ?? o, g = f?.disabled ?? s, h = f ? f.value === r : i;
|
|
1103
1103
|
function b(y) {
|
|
1104
1104
|
f && f.onChange?.(r), c?.(y);
|
|
1105
1105
|
}
|
|
1106
1106
|
return /* @__PURE__ */ w(
|
|
1107
1107
|
"label",
|
|
1108
1108
|
{
|
|
1109
|
-
className:
|
|
1109
|
+
className: _(z.wrapper, g && z.disabled, a),
|
|
1110
1110
|
children: [
|
|
1111
1111
|
/* @__PURE__ */ l(
|
|
1112
1112
|
"input",
|
|
@@ -1116,9 +1116,9 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
|
|
|
1116
1116
|
name: m,
|
|
1117
1117
|
value: r,
|
|
1118
1118
|
checked: h,
|
|
1119
|
-
disabled:
|
|
1119
|
+
disabled: g,
|
|
1120
1120
|
onChange: b,
|
|
1121
|
-
className:
|
|
1121
|
+
className: _(z.input, u),
|
|
1122
1122
|
...d
|
|
1123
1123
|
}
|
|
1124
1124
|
),
|
|
@@ -1131,7 +1131,7 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
|
|
|
1131
1131
|
}
|
|
1132
1132
|
);
|
|
1133
1133
|
});
|
|
1134
|
-
function
|
|
1134
|
+
function Na({
|
|
1135
1135
|
value: e,
|
|
1136
1136
|
defaultValue: t,
|
|
1137
1137
|
onChange: n,
|
|
@@ -1142,18 +1142,18 @@ function va({
|
|
|
1142
1142
|
children: c
|
|
1143
1143
|
}) {
|
|
1144
1144
|
const a = ae(), u = r ?? a, [d, p] = v(t), f = e !== void 0, m = f ? e : d;
|
|
1145
|
-
function
|
|
1145
|
+
function g(h) {
|
|
1146
1146
|
f || p(h), n?.(h);
|
|
1147
1147
|
}
|
|
1148
1148
|
return /* @__PURE__ */ l(
|
|
1149
1149
|
We.Provider,
|
|
1150
1150
|
{
|
|
1151
|
-
value: { name: u, value: m, onChange:
|
|
1151
|
+
value: { name: u, value: m, onChange: g, disabled: s },
|
|
1152
1152
|
children: /* @__PURE__ */ l(
|
|
1153
1153
|
"div",
|
|
1154
1154
|
{
|
|
1155
1155
|
role: "radiogroup",
|
|
1156
|
-
className:
|
|
1156
|
+
className: _(z.group, o && z.horizontal, i),
|
|
1157
1157
|
children: c
|
|
1158
1158
|
}
|
|
1159
1159
|
)
|
|
@@ -1165,11 +1165,11 @@ const Os = "tempest_wrapper_dKXJJ", Ws = "tempest_input_m0lPc", Bs = "tempest_ic
|
|
|
1165
1165
|
input: Ws,
|
|
1166
1166
|
iconLeft: Bs,
|
|
1167
1167
|
clear: js
|
|
1168
|
-
},
|
|
1168
|
+
}, $a = O(function({ value: t, onChange: n, onClear: r, wrapperClassName: s, placeholder: o = "Buscar...", className: i, ...c }, a) {
|
|
1169
1169
|
function u() {
|
|
1170
1170
|
n(""), r?.();
|
|
1171
1171
|
}
|
|
1172
|
-
return /* @__PURE__ */ w("div", { className:
|
|
1172
|
+
return /* @__PURE__ */ w("div", { className: _(le.wrapper, s), children: [
|
|
1173
1173
|
/* @__PURE__ */ l("span", { className: le.iconLeft, "aria-hidden": !0, children: /* @__PURE__ */ l(Us, {}) }),
|
|
1174
1174
|
/* @__PURE__ */ l(
|
|
1175
1175
|
"input",
|
|
@@ -1179,7 +1179,7 @@ const Os = "tempest_wrapper_dKXJJ", Ws = "tempest_input_m0lPc", Bs = "tempest_ic
|
|
|
1179
1179
|
value: t,
|
|
1180
1180
|
onChange: (d) => n(d.target.value),
|
|
1181
1181
|
placeholder: o,
|
|
1182
|
-
className:
|
|
1182
|
+
className: _(le.input, i),
|
|
1183
1183
|
...c
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
@@ -1222,7 +1222,7 @@ const Js = "tempest_wrapper_KS2K3", qs = "tempest_label_Lmgos", Gs = "tempest_re
|
|
|
1222
1222
|
error: Qs,
|
|
1223
1223
|
helper: Ys,
|
|
1224
1224
|
errorText: Xs
|
|
1225
|
-
},
|
|
1225
|
+
}, ka = O(function({
|
|
1226
1226
|
label: t,
|
|
1227
1227
|
helperText: n,
|
|
1228
1228
|
error: r,
|
|
@@ -1235,9 +1235,9 @@ const Js = "tempest_wrapper_KS2K3", qs = "tempest_label_Lmgos", Gs = "tempest_re
|
|
|
1235
1235
|
required: d,
|
|
1236
1236
|
...p
|
|
1237
1237
|
}, f) {
|
|
1238
|
-
const m = ae(),
|
|
1239
|
-
return /* @__PURE__ */ w("div", { className:
|
|
1240
|
-
t && /* @__PURE__ */ w("label", { htmlFor:
|
|
1238
|
+
const m = ae(), g = u ?? m;
|
|
1239
|
+
return /* @__PURE__ */ w("div", { className: _(j.wrapper, r && j.error, i), children: [
|
|
1240
|
+
t && /* @__PURE__ */ w("label", { htmlFor: g, className: j.label, children: [
|
|
1241
1241
|
t,
|
|
1242
1242
|
d && /* @__PURE__ */ l("span", { className: j.required, children: "*" })
|
|
1243
1243
|
] }),
|
|
@@ -1246,10 +1246,10 @@ const Js = "tempest_wrapper_KS2K3", qs = "tempest_label_Lmgos", Gs = "tempest_re
|
|
|
1246
1246
|
"select",
|
|
1247
1247
|
{
|
|
1248
1248
|
ref: f,
|
|
1249
|
-
id:
|
|
1249
|
+
id: g,
|
|
1250
1250
|
"aria-invalid": !!r,
|
|
1251
1251
|
required: d,
|
|
1252
|
-
className:
|
|
1252
|
+
className: _(j.select, c),
|
|
1253
1253
|
...p,
|
|
1254
1254
|
children: [
|
|
1255
1255
|
o && /* @__PURE__ */ l("option", { value: "", disabled: !0, hidden: !0, children: o }),
|
|
@@ -1275,20 +1275,20 @@ function Zs() {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
) });
|
|
1277
1277
|
}
|
|
1278
|
-
const eo = "tempest_skeleton_CB4uF", to = "tempest_text_-A8IF", no = "tempest_circle_DYcl8",
|
|
1278
|
+
const eo = "tempest_skeleton_CB4uF", to = "tempest_text_-A8IF", no = "tempest_circle_DYcl8", ge = {
|
|
1279
1279
|
skeleton: eo,
|
|
1280
1280
|
text: to,
|
|
1281
1281
|
circle: no
|
|
1282
1282
|
};
|
|
1283
|
-
function
|
|
1283
|
+
function Sa({ variant: e = "rect", width: t, height: n, className: r, style: s }) {
|
|
1284
1284
|
return /* @__PURE__ */ l(
|
|
1285
1285
|
"span",
|
|
1286
1286
|
{
|
|
1287
1287
|
"aria-hidden": !0,
|
|
1288
|
-
className:
|
|
1289
|
-
|
|
1290
|
-
e === "text" &&
|
|
1291
|
-
e === "circle" &&
|
|
1288
|
+
className: _(
|
|
1289
|
+
ge.skeleton,
|
|
1290
|
+
e === "text" && ge.text,
|
|
1291
|
+
e === "circle" && ge.circle,
|
|
1292
1292
|
r
|
|
1293
1293
|
),
|
|
1294
1294
|
style: { width: t, height: n, ...s }
|
|
@@ -1302,17 +1302,17 @@ const ro = "tempest_spinner_GpFZS", so = "tempest_tempest-spinner_wKVCY", oo = "
|
|
|
1302
1302
|
md: io,
|
|
1303
1303
|
lg: ao
|
|
1304
1304
|
};
|
|
1305
|
-
function
|
|
1305
|
+
function xa({ size: e = "md", className: t, label: n = "Carregando" }) {
|
|
1306
1306
|
return /* @__PURE__ */ l(
|
|
1307
1307
|
"span",
|
|
1308
1308
|
{
|
|
1309
1309
|
role: "status",
|
|
1310
1310
|
"aria-label": n,
|
|
1311
|
-
className:
|
|
1311
|
+
className: _(Ee.spinner, Ee[e], t)
|
|
1312
1312
|
}
|
|
1313
1313
|
);
|
|
1314
1314
|
}
|
|
1315
|
-
const co = "tempest_stepper_w3qjQ", lo = "tempest_vertical_d4mOs", uo = "tempest_step_s2nqL", po = "tempest_dot_d1bSL", fo = "tempest_completed_gcFHM", mo = "tempest_active_kL-CH", ho = "tempest_label_8irAI",
|
|
1315
|
+
const co = "tempest_stepper_w3qjQ", lo = "tempest_vertical_d4mOs", uo = "tempest_step_s2nqL", po = "tempest_dot_d1bSL", fo = "tempest_completed_gcFHM", mo = "tempest_active_kL-CH", ho = "tempest_label_8irAI", go = "tempest_connector_lyeWp", U = {
|
|
1316
1316
|
stepper: co,
|
|
1317
1317
|
vertical: lo,
|
|
1318
1318
|
step: uo,
|
|
@@ -1320,20 +1320,20 @@ const co = "tempest_stepper_w3qjQ", lo = "tempest_vertical_d4mOs", uo = "tempest
|
|
|
1320
1320
|
completed: fo,
|
|
1321
1321
|
active: mo,
|
|
1322
1322
|
label: ho,
|
|
1323
|
-
connector:
|
|
1323
|
+
connector: go
|
|
1324
1324
|
};
|
|
1325
|
-
function
|
|
1325
|
+
function Ta({ steps: e, current: t, orientation: n = "horizontal", className: r }) {
|
|
1326
1326
|
return /* @__PURE__ */ l(
|
|
1327
1327
|
"ol",
|
|
1328
1328
|
{
|
|
1329
|
-
className:
|
|
1329
|
+
className: _(U.stepper, n === "vertical" && U.vertical, r),
|
|
1330
1330
|
children: e.map((s, o) => {
|
|
1331
1331
|
const i = o < t, c = o === t;
|
|
1332
1332
|
return /* @__PURE__ */ w(Re, { children: [
|
|
1333
1333
|
/* @__PURE__ */ w(
|
|
1334
1334
|
"li",
|
|
1335
1335
|
{
|
|
1336
|
-
className:
|
|
1336
|
+
className: _(
|
|
1337
1337
|
U.step,
|
|
1338
1338
|
i && U.completed,
|
|
1339
1339
|
c && U.active
|
|
@@ -1348,7 +1348,7 @@ function xa({ steps: e, current: t, orientation: n = "horizontal", className: r
|
|
|
1348
1348
|
o < e.length - 1 && /* @__PURE__ */ l(
|
|
1349
1349
|
"span",
|
|
1350
1350
|
{
|
|
1351
|
-
className:
|
|
1351
|
+
className: _(U.connector, i && U.completed),
|
|
1352
1352
|
"aria-hidden": !0
|
|
1353
1353
|
}
|
|
1354
1354
|
)
|
|
@@ -1357,15 +1357,15 @@ function xa({ steps: e, current: t, orientation: n = "horizontal", className: r
|
|
|
1357
1357
|
}
|
|
1358
1358
|
);
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1361
|
-
wrapper:
|
|
1360
|
+
const _o = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest_input_5BPNu", bo = "tempest_track_7ObdZ", vo = "tempest_thumb_-FTeK", No = "tempest_label_LrH7V", Z = {
|
|
1361
|
+
wrapper: _o,
|
|
1362
1362
|
disabled: yo,
|
|
1363
1363
|
input: wo,
|
|
1364
1364
|
track: bo,
|
|
1365
1365
|
thumb: vo,
|
|
1366
1366
|
label: No
|
|
1367
|
-
},
|
|
1368
|
-
return /* @__PURE__ */ w("label", { className:
|
|
1367
|
+
}, Ea = O(function({ label: t, disabled: n, wrapperClassName: r, className: s, ...o }, i) {
|
|
1368
|
+
return /* @__PURE__ */ w("label", { className: _(Z.wrapper, n && Z.disabled, r), children: [
|
|
1369
1369
|
/* @__PURE__ */ l(
|
|
1370
1370
|
"input",
|
|
1371
1371
|
{
|
|
@@ -1373,7 +1373,7 @@ const go = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest
|
|
|
1373
1373
|
type: "checkbox",
|
|
1374
1374
|
role: "switch",
|
|
1375
1375
|
disabled: n,
|
|
1376
|
-
className:
|
|
1376
|
+
className: _(Z.input, s),
|
|
1377
1377
|
...o
|
|
1378
1378
|
}
|
|
1379
1379
|
),
|
|
@@ -1391,7 +1391,7 @@ const go = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest
|
|
|
1391
1391
|
alignCenter: Lo,
|
|
1392
1392
|
emptyRow: Io
|
|
1393
1393
|
};
|
|
1394
|
-
function
|
|
1394
|
+
function Ca({
|
|
1395
1395
|
columns: e,
|
|
1396
1396
|
data: t,
|
|
1397
1397
|
rowKey: n,
|
|
@@ -1399,11 +1399,11 @@ function Ea({
|
|
|
1399
1399
|
emptyMessage: s = "Nenhum registro encontrado.",
|
|
1400
1400
|
className: o
|
|
1401
1401
|
}) {
|
|
1402
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1402
|
+
return /* @__PURE__ */ l("div", { className: _(R.scroll, o), children: /* @__PURE__ */ w("table", { className: R.table, children: [
|
|
1403
1403
|
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((i) => /* @__PURE__ */ l(
|
|
1404
1404
|
"th",
|
|
1405
1405
|
{
|
|
1406
|
-
className:
|
|
1406
|
+
className: _(
|
|
1407
1407
|
R.th,
|
|
1408
1408
|
i.align === "right" && R.alignRight,
|
|
1409
1409
|
i.align === "center" && R.alignCenter
|
|
@@ -1416,14 +1416,14 @@ function Ea({
|
|
|
1416
1416
|
/* @__PURE__ */ l("tbody", { children: t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { className: R.emptyRow, colSpan: e.length, children: s }) }) : t.map((i, c) => /* @__PURE__ */ l(
|
|
1417
1417
|
"tr",
|
|
1418
1418
|
{
|
|
1419
|
-
className:
|
|
1419
|
+
className: _(R.tr, r && R.clickable),
|
|
1420
1420
|
onClick: r ? () => r(i) : void 0,
|
|
1421
1421
|
children: e.map((a) => {
|
|
1422
1422
|
const u = a.render ? a.render(i, c) : i[a.key];
|
|
1423
1423
|
return /* @__PURE__ */ l(
|
|
1424
1424
|
"td",
|
|
1425
1425
|
{
|
|
1426
|
-
className:
|
|
1426
|
+
className: _(
|
|
1427
1427
|
R.td,
|
|
1428
1428
|
a.align === "right" && R.alignRight,
|
|
1429
1429
|
a.align === "center" && R.alignCenter,
|
|
@@ -1446,7 +1446,7 @@ const Do = "tempest_tablist_WR6ag", Mo = "tempest_tab_IdDYc", Po = "tempest_acti
|
|
|
1446
1446
|
panel: Ao,
|
|
1447
1447
|
pill: Ro
|
|
1448
1448
|
};
|
|
1449
|
-
function
|
|
1449
|
+
function La({
|
|
1450
1450
|
items: e,
|
|
1451
1451
|
defaultId: t,
|
|
1452
1452
|
activeId: n,
|
|
@@ -1459,18 +1459,18 @@ function Ca({
|
|
|
1459
1459
|
u || a(m), r?.(m);
|
|
1460
1460
|
}
|
|
1461
1461
|
return /* @__PURE__ */ w("div", { className: o, children: [
|
|
1462
|
-
/* @__PURE__ */ l("div", { role: "tablist", className:
|
|
1463
|
-
const
|
|
1462
|
+
/* @__PURE__ */ l("div", { role: "tablist", className: _(ie.tablist, s === "pill" && ie.pill), children: e.map((m) => {
|
|
1463
|
+
const g = m.id === p?.id;
|
|
1464
1464
|
return /* @__PURE__ */ l(
|
|
1465
1465
|
"button",
|
|
1466
1466
|
{
|
|
1467
1467
|
type: "button",
|
|
1468
1468
|
role: "tab",
|
|
1469
|
-
"aria-selected":
|
|
1469
|
+
"aria-selected": g,
|
|
1470
1470
|
"aria-controls": `panel-${m.id}`,
|
|
1471
1471
|
id: `tab-${m.id}`,
|
|
1472
1472
|
disabled: m.disabled,
|
|
1473
|
-
className:
|
|
1473
|
+
className: _(ie.tab, g && ie.active),
|
|
1474
1474
|
onClick: () => f(m.id),
|
|
1475
1475
|
children: m.label
|
|
1476
1476
|
},
|
|
@@ -1497,9 +1497,9 @@ const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_re
|
|
|
1497
1497
|
error: jo,
|
|
1498
1498
|
helper: Uo,
|
|
1499
1499
|
errorText: zo
|
|
1500
|
-
},
|
|
1500
|
+
}, Ia = O(function({ label: t, helperText: n, error: r, wrapperClassName: s, className: o, id: i, required: c, ...a }, u) {
|
|
1501
1501
|
const d = ae(), p = i ?? d;
|
|
1502
|
-
return /* @__PURE__ */ w("div", { className:
|
|
1502
|
+
return /* @__PURE__ */ w("div", { className: _(V.wrapper, r && V.error, s), children: [
|
|
1503
1503
|
t && /* @__PURE__ */ w("label", { htmlFor: p, className: V.label, children: [
|
|
1504
1504
|
t,
|
|
1505
1505
|
c && /* @__PURE__ */ l("span", { className: V.required, children: "*" })
|
|
@@ -1511,13 +1511,13 @@ const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_re
|
|
|
1511
1511
|
id: p,
|
|
1512
1512
|
"aria-invalid": !!r,
|
|
1513
1513
|
required: c,
|
|
1514
|
-
className:
|
|
1514
|
+
className: _(V.textarea, o),
|
|
1515
1515
|
...a
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
1518
1518
|
r ? /* @__PURE__ */ l("span", { className: V.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { className: V.helper, children: n }) : null
|
|
1519
1519
|
] });
|
|
1520
|
-
}), Jo = "tempest_trigger_Dmc5E", qo = "tempest_bubble_TPGHB", Go = "tempest_tempest-tooltip-in_csYeZ", Ho = "tempest_top_m2tnn", Ko = "tempest_bottom_9Twz4", Vo = "tempest_left_UPdrG", Qo = "tempest_right_CV--T",
|
|
1520
|
+
}), Jo = "tempest_trigger_Dmc5E", qo = "tempest_bubble_TPGHB", Go = "tempest_tempest-tooltip-in_csYeZ", Ho = "tempest_top_m2tnn", Ko = "tempest_bottom_9Twz4", Vo = "tempest_left_UPdrG", Qo = "tempest_right_CV--T", _e = {
|
|
1521
1521
|
trigger: Jo,
|
|
1522
1522
|
bubble: qo,
|
|
1523
1523
|
tempestTooltipIn: Go,
|
|
@@ -1526,7 +1526,7 @@ const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_re
|
|
|
1526
1526
|
left: Vo,
|
|
1527
1527
|
right: Qo
|
|
1528
1528
|
};
|
|
1529
|
-
function
|
|
1529
|
+
function Da({
|
|
1530
1530
|
content: e,
|
|
1531
1531
|
placement: t = "top",
|
|
1532
1532
|
children: n,
|
|
@@ -1548,14 +1548,14 @@ function Ia({
|
|
|
1548
1548
|
onBlur: d,
|
|
1549
1549
|
"aria-describedby": o ? c : void 0
|
|
1550
1550
|
});
|
|
1551
|
-
return /* @__PURE__ */ w("span", { className:
|
|
1551
|
+
return /* @__PURE__ */ w("span", { className: _e.trigger, children: [
|
|
1552
1552
|
p,
|
|
1553
1553
|
o && /* @__PURE__ */ l(
|
|
1554
1554
|
"span",
|
|
1555
1555
|
{
|
|
1556
1556
|
id: c,
|
|
1557
1557
|
role: "tooltip",
|
|
1558
|
-
className:
|
|
1558
|
+
className: _(_e.bubble, _e[t]),
|
|
1559
1559
|
children: e
|
|
1560
1560
|
}
|
|
1561
1561
|
)
|
|
@@ -1573,12 +1573,12 @@ const Yo = "tempest_container_x4-Qm", Xo = "tempest_toast_FLdHz", Zo = "tempest_
|
|
|
1573
1573
|
description: oi,
|
|
1574
1574
|
close: ii
|
|
1575
1575
|
}, Be = ne(null);
|
|
1576
|
-
function
|
|
1576
|
+
function Ma() {
|
|
1577
1577
|
const e = te(Be);
|
|
1578
1578
|
if (!e) throw new Error("useToast must be used inside a <ToastProvider>");
|
|
1579
1579
|
return e;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Pa({ children: e, defaultDuration: t = 4e3 }) {
|
|
1582
1582
|
const [n, r] = v([]), s = T(0), o = x((a) => {
|
|
1583
1583
|
r((u) => u.filter((d) => d.id !== a));
|
|
1584
1584
|
}, []), i = x(
|
|
@@ -1620,7 +1620,7 @@ function ci({ toast: e, onDismiss: t }) {
|
|
|
1620
1620
|
if (!e.duration) return;
|
|
1621
1621
|
const n = setTimeout(() => t(e.id), e.duration);
|
|
1622
1622
|
return () => clearTimeout(n);
|
|
1623
|
-
}, [e.id, e.duration, t]), /* @__PURE__ */ w("div", { className:
|
|
1623
|
+
}, [e.id, e.duration, t]), /* @__PURE__ */ w("div", { className: _(ee.toast, ee[e.variant]), role: "status", children: [
|
|
1624
1624
|
/* @__PURE__ */ w("div", { children: [
|
|
1625
1625
|
e.title && /* @__PURE__ */ l("p", { className: ee.title, children: e.title }),
|
|
1626
1626
|
e.description && /* @__PURE__ */ l("p", { className: ee.description, children: e.description })
|
|
@@ -1653,7 +1653,7 @@ const ui = "tempest_scroll_8Giwl", di = "tempest_spacer_P3Pvl", pi = "tempest_ro
|
|
|
1653
1653
|
spacer: di,
|
|
1654
1654
|
row: pi
|
|
1655
1655
|
};
|
|
1656
|
-
function
|
|
1656
|
+
function Aa({
|
|
1657
1657
|
items: e,
|
|
1658
1658
|
itemHeight: t,
|
|
1659
1659
|
renderItem: n,
|
|
@@ -1670,17 +1670,17 @@ function Pa({
|
|
|
1670
1670
|
const N = new ResizeObserver(() => f(y.clientHeight));
|
|
1671
1671
|
return N.observe(y), () => N.disconnect();
|
|
1672
1672
|
}, []);
|
|
1673
|
-
const m = e.length * t,
|
|
1673
|
+
const m = e.length * t, g = Math.max(0, Math.floor(u / t) - s), h = Math.ceil(p / t) + s * 2, b = Math.min(e.length, g + h);
|
|
1674
1674
|
return /* @__PURE__ */ l(
|
|
1675
1675
|
"div",
|
|
1676
1676
|
{
|
|
1677
1677
|
ref: a,
|
|
1678
|
-
className:
|
|
1678
|
+
className: _(ye.scroll, i),
|
|
1679
1679
|
style: { height: r, ...c },
|
|
1680
1680
|
onScroll: (y) => d(y.target.scrollTop),
|
|
1681
1681
|
role: "list",
|
|
1682
|
-
children: /* @__PURE__ */ l("div", { className: ye.spacer, style: { height: m }, children: e.slice(
|
|
1683
|
-
const $ =
|
|
1682
|
+
children: /* @__PURE__ */ l("div", { className: ye.spacer, style: { height: m }, children: e.slice(g, b).map((y, N) => {
|
|
1683
|
+
const $ = g + N, C = o ? o(y, $) : $;
|
|
1684
1684
|
return /* @__PURE__ */ l(
|
|
1685
1685
|
"div",
|
|
1686
1686
|
{
|
|
@@ -1695,18 +1695,18 @@ function Pa({
|
|
|
1695
1695
|
}
|
|
1696
1696
|
);
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function Ra(e, t = 300) {
|
|
1699
1699
|
const [n, r] = v(e);
|
|
1700
1700
|
return k(() => {
|
|
1701
1701
|
const s = setTimeout(() => r(e), t);
|
|
1702
1702
|
return () => clearTimeout(s);
|
|
1703
1703
|
}, [e, t]), n;
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function Fa(e = 1, t = 50) {
|
|
1706
1706
|
const [n, r] = v(e), [s, o] = v(t), i = x(() => r(1), []);
|
|
1707
1707
|
return { page: n, size: s, setPage: r, setSize: o, reset: i };
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function Oa(e, t, n) {
|
|
1710
1710
|
return W(() => {
|
|
1711
1711
|
const r = t.trim().toLowerCase();
|
|
1712
1712
|
return r ? typeof n == "function" ? e.filter((s) => n(s, r)) : e.filter(
|
|
@@ -1717,7 +1717,7 @@ function Fa(e, t, n) {
|
|
|
1717
1717
|
) : e;
|
|
1718
1718
|
}, [e, t, n]);
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Wa(e) {
|
|
1721
1721
|
const [t, n] = v(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
|
|
1722
1722
|
return k(() => {
|
|
1723
1723
|
if (typeof window > "u") return;
|
|
@@ -1725,7 +1725,7 @@ function Oa(e) {
|
|
|
1725
1725
|
return n(r.matches), r.addEventListener("change", s), () => r.removeEventListener("change", s);
|
|
1726
1726
|
}, [e]), t;
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function Ba() {
|
|
1729
1729
|
const [e, t] = v(
|
|
1730
1730
|
() => typeof navigator > "u" ? !0 : navigator.onLine
|
|
1731
1731
|
);
|
|
@@ -1737,7 +1737,7 @@ function Wa() {
|
|
|
1737
1737
|
};
|
|
1738
1738
|
}, []), e;
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function ja() {
|
|
1741
1741
|
const [e, t] = v(
|
|
1742
1742
|
() => typeof document > "u" ? "visible" : document.visibilityState
|
|
1743
1743
|
);
|
|
@@ -1747,7 +1747,7 @@ function Ba() {
|
|
|
1747
1747
|
return document.addEventListener("visibilitychange", n), () => document.removeEventListener("visibilitychange", n);
|
|
1748
1748
|
}, []), e;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Ua(e, t = {}) {
|
|
1751
1751
|
const [n, r] = v(null), { once: s = !1, root: o, rootMargin: i, threshold: c } = t;
|
|
1752
1752
|
return k(() => {
|
|
1753
1753
|
const a = e.current;
|
|
@@ -1761,7 +1761,7 @@ function ja(e, t = {}) {
|
|
|
1761
1761
|
return u.observe(a), () => u.disconnect();
|
|
1762
1762
|
}, [e, s, o, i, c]), n;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function za(e) {
|
|
1765
1765
|
const [t, n] = v(null);
|
|
1766
1766
|
return k(() => {
|
|
1767
1767
|
const r = e.current;
|
|
@@ -1775,7 +1775,7 @@ function Ua(e) {
|
|
|
1775
1775
|
return s.observe(r), () => s.disconnect();
|
|
1776
1776
|
}, [e]), t;
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Ja(e = {}) {
|
|
1779
1779
|
const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s = T(null), o = x(() => {
|
|
1780
1780
|
s.current && (clearTimeout(s.current), s.current = null), r(!1);
|
|
1781
1781
|
}, []);
|
|
@@ -1812,7 +1812,7 @@ function mi(e) {
|
|
|
1812
1812
|
const t = e.tagName.toLowerCase();
|
|
1813
1813
|
return t === "input" || t === "textarea" || t === "select" ? !0 : e.isContentEditable;
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function qa(e, t, n = {}) {
|
|
1816
1816
|
const { disabled: r = !1, ignoreInput: s = !0 } = n;
|
|
1817
1817
|
k(() => {
|
|
1818
1818
|
if (r || typeof window > "u") return;
|
|
@@ -1832,7 +1832,7 @@ function Ja(e, t, n = {}) {
|
|
|
1832
1832
|
t
|
|
1833
1833
|
]);
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Ga() {
|
|
1836
1836
|
const [e, t] = v(null), [n, r] = v(!1);
|
|
1837
1837
|
k(() => {
|
|
1838
1838
|
if (typeof window > "u") return;
|
|
@@ -1865,7 +1865,7 @@ const Ce = [
|
|
|
1865
1865
|
"wheel",
|
|
1866
1866
|
"scroll"
|
|
1867
1867
|
];
|
|
1868
|
-
function
|
|
1868
|
+
function Ha(e = 6e4) {
|
|
1869
1869
|
const [t, n] = v(!1);
|
|
1870
1870
|
return k(() => {
|
|
1871
1871
|
if (typeof window > "u") return;
|
|
@@ -1882,7 +1882,7 @@ function Ga(e = 6e4) {
|
|
|
1882
1882
|
};
|
|
1883
1883
|
}, [e]), t;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function Ka(e = {}) {
|
|
1886
1886
|
const { watch: t = !1, disabled: n = !1, ...r } = e, [s, o] = v({
|
|
1887
1887
|
loading: !n,
|
|
1888
1888
|
error: null,
|
|
@@ -1921,7 +1921,7 @@ function Ha(e = {}) {
|
|
|
1921
1921
|
r.timeout
|
|
1922
1922
|
]), s;
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function Va(e) {
|
|
1925
1925
|
k(() => {
|
|
1926
1926
|
if (!e || typeof document > "u") return;
|
|
1927
1927
|
const t = document.body, n = t.style.overflow;
|
|
@@ -1938,7 +1938,7 @@ const hi = [
|
|
|
1938
1938
|
"select:not([disabled])",
|
|
1939
1939
|
"[tabindex]:not([tabindex='-1'])"
|
|
1940
1940
|
].join(",");
|
|
1941
|
-
function
|
|
1941
|
+
function Qa(e, t) {
|
|
1942
1942
|
k(() => {
|
|
1943
1943
|
if (!t) return;
|
|
1944
1944
|
const n = e.current;
|
|
@@ -1968,7 +1968,7 @@ function Va(e, t) {
|
|
|
1968
1968
|
};
|
|
1969
1969
|
}, [e, t]);
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function Ya(e) {
|
|
1972
1972
|
const t = T(e);
|
|
1973
1973
|
return t.current = e, x((...n) => t.current(...n), []);
|
|
1974
1974
|
}
|
|
@@ -1982,18 +1982,18 @@ function Ne(e, t) {
|
|
|
1982
1982
|
(s) => Ne(e[s], t[s])
|
|
1983
1983
|
);
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function Xa(e) {
|
|
1986
1986
|
const t = T(e);
|
|
1987
1987
|
return Ne(t.current, e) || (t.current = e), t.current;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function gi(e, t, n) {
|
|
1990
1990
|
const r = new URL(t, e.endsWith("/") ? e : `${e}/`);
|
|
1991
1991
|
if (n)
|
|
1992
1992
|
for (const [s, o] of Object.entries(n))
|
|
1993
1993
|
o != null && r.searchParams.set(s, String(o));
|
|
1994
1994
|
return r.toString();
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function _i(e) {
|
|
1997
1997
|
return typeof FormData < "u" && e instanceof FormData;
|
|
1998
1998
|
}
|
|
1999
1999
|
async function Le(e) {
|
|
@@ -2014,25 +2014,25 @@ async function Le(e) {
|
|
|
2014
2014
|
body: t
|
|
2015
2015
|
};
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Za(e) {
|
|
2018
2018
|
const t = e.fetcher ?? globalThis.fetch.bind(globalThis);
|
|
2019
2019
|
function n() {
|
|
2020
2020
|
const i = e.getToken?.();
|
|
2021
2021
|
return i ? { Authorization: `Bearer ${i}` } : {};
|
|
2022
2022
|
}
|
|
2023
2023
|
async function r(i, c) {
|
|
2024
|
-
const { body: a, params: u, headers: d, ...p } = c, f =
|
|
2024
|
+
const { body: a, params: u, headers: d, ...p } = c, f = _i(a), m = {
|
|
2025
2025
|
...f ? {} : { "Content-Type": "application/json" },
|
|
2026
2026
|
...e.headers,
|
|
2027
2027
|
...n(),
|
|
2028
2028
|
...d
|
|
2029
|
-
},
|
|
2029
|
+
}, g = {
|
|
2030
2030
|
...p,
|
|
2031
2031
|
headers: m,
|
|
2032
2032
|
credentials: e.withCredentials ? "include" : p.credentials,
|
|
2033
2033
|
body: a == null ? void 0 : f ? a : JSON.stringify(a)
|
|
2034
2034
|
};
|
|
2035
|
-
return t(
|
|
2035
|
+
return t(gi(e.baseURL, i, u), g);
|
|
2036
2036
|
}
|
|
2037
2037
|
async function s(i, c = {}) {
|
|
2038
2038
|
let a = await r(i, c);
|
|
@@ -2062,7 +2062,7 @@ function Xa(e) {
|
|
|
2062
2062
|
upload: o
|
|
2063
2063
|
};
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function ec(e, t, n) {
|
|
2066
2066
|
const r = e.safeParse(t);
|
|
2067
2067
|
if (r.success)
|
|
2068
2068
|
return r.data;
|
|
@@ -2086,7 +2086,7 @@ function yi(e) {
|
|
|
2086
2086
|
return e;
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function tc(e) {
|
|
2090
2090
|
const {
|
|
2091
2091
|
url: t,
|
|
2092
2092
|
body: n,
|
|
@@ -2105,9 +2105,9 @@ function ec(e) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
const f = new XMLHttpRequest();
|
|
2107
2107
|
f.open(r, t), f.withCredentials = i;
|
|
2108
|
-
const m = o?.(),
|
|
2109
|
-
m && !("Authorization" in
|
|
2110
|
-
for (const [b, y] of Object.entries(
|
|
2108
|
+
const m = o?.(), g = { ...s };
|
|
2109
|
+
m && !("Authorization" in g) && (g.Authorization = `Bearer ${m}`);
|
|
2110
|
+
for (const [b, y] of Object.entries(g))
|
|
2111
2111
|
f.setRequestHeader(b, y);
|
|
2112
2112
|
c && (f.upload.onprogress = (b) => {
|
|
2113
2113
|
c({
|
|
@@ -2167,7 +2167,7 @@ function wi(e, t) {
|
|
|
2167
2167
|
);
|
|
2168
2168
|
});
|
|
2169
2169
|
}
|
|
2170
|
-
async function
|
|
2170
|
+
async function nc(e, t = {}) {
|
|
2171
2171
|
const {
|
|
2172
2172
|
retries: n = 3,
|
|
2173
2173
|
initialDelay: r = 300,
|
|
@@ -2190,14 +2190,14 @@ async function tc(e, t = {}) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
throw u;
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function rc() {
|
|
2194
2194
|
return typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
2195
2195
|
const t = Math.random() * 16;
|
|
2196
2196
|
return (e === "x" ? Math.floor(t) : Math.floor(t) & 3 | 8).toString(16);
|
|
2197
2197
|
});
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2200
|
-
const { interval: n, disabled: r = !1, stopWhen: s, onError: o } = t, [i, c] = v(null), [a, u] = v(null), [d, p] = v(!r), f = T(r), m = T(!1),
|
|
2199
|
+
function sc(e, t) {
|
|
2200
|
+
const { interval: n, disabled: r = !1, stopWhen: s, onError: o } = t, [i, c] = v(null), [a, u] = v(null), [d, p] = v(!r), f = T(r), m = T(!1), g = T(null);
|
|
2201
2201
|
async function h() {
|
|
2202
2202
|
if (!(f.current || m.current)) {
|
|
2203
2203
|
m.current = !0;
|
|
@@ -2208,31 +2208,31 @@ function rc(e, t) {
|
|
|
2208
2208
|
} catch (b) {
|
|
2209
2209
|
f.current || (u(b), o?.(b));
|
|
2210
2210
|
} finally {
|
|
2211
|
-
m.current = !1, p(!1), f.current || (
|
|
2211
|
+
m.current = !1, p(!1), f.current || (g.current = setTimeout(h, n));
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
return k(() => {
|
|
2216
2216
|
if (f.current = r, r) {
|
|
2217
|
-
|
|
2217
|
+
g.current && clearTimeout(g.current);
|
|
2218
2218
|
return;
|
|
2219
2219
|
}
|
|
2220
2220
|
return p(!0), h(), () => {
|
|
2221
|
-
f.current = !0,
|
|
2221
|
+
f.current = !0, g.current && clearTimeout(g.current);
|
|
2222
2222
|
};
|
|
2223
2223
|
}, [n, r]), {
|
|
2224
2224
|
data: i,
|
|
2225
2225
|
error: a,
|
|
2226
2226
|
loading: d,
|
|
2227
2227
|
stop: () => {
|
|
2228
|
-
f.current = !0,
|
|
2228
|
+
f.current = !0, g.current && clearTimeout(g.current);
|
|
2229
2229
|
},
|
|
2230
2230
|
start: () => {
|
|
2231
2231
|
f.current && (f.current = !1, h());
|
|
2232
2232
|
}
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function oc(e = {}) {
|
|
2236
2236
|
const t = e.name ?? "tempest-auth", n = e.storage === "session" ? () => sessionStorage : () => localStorage;
|
|
2237
2237
|
return nt()(
|
|
2238
2238
|
rt(
|
|
@@ -2256,7 +2256,7 @@ function sc(e = {}) {
|
|
|
2256
2256
|
)
|
|
2257
2257
|
);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function ic({ isAuthenticated: e, children: t, fallback: n }) {
|
|
2260
2260
|
return /* @__PURE__ */ l($e, { children: e ? t : n });
|
|
2261
2261
|
}
|
|
2262
2262
|
function Ie(e) {
|
|
@@ -2277,7 +2277,7 @@ function bi(e) {
|
|
|
2277
2277
|
throw new Error("Invalid JWT: header or payload is not valid JSON.");
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function ac(e, t = 0) {
|
|
2281
2281
|
try {
|
|
2282
2282
|
const { payload: n } = bi(e);
|
|
2283
2283
|
if (typeof n.exp != "number") return !0;
|
|
@@ -2287,7 +2287,7 @@ function ic(e, t = 0) {
|
|
|
2287
2287
|
return !0;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function cc(e, t = {}) {
|
|
2291
2291
|
const { retries: n = 3, initialDelay: r = 400, reloadOnFinalFailure: s = !0 } = t;
|
|
2292
2292
|
async function o(i = 1) {
|
|
2293
2293
|
try {
|
|
@@ -2300,7 +2300,7 @@ function ac(e, t = {}) {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
return Xe(o);
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function lc(e) {
|
|
2304
2304
|
let t = null;
|
|
2305
2305
|
return () => t || (t = (async () => {
|
|
2306
2306
|
try {
|
|
@@ -2319,19 +2319,19 @@ const vi = {
|
|
|
2319
2319
|
SHORT: 300 * 1e3,
|
|
2320
2320
|
DEFAULT: 1800 * 1e3,
|
|
2321
2321
|
LONG: 3600 * 1e3
|
|
2322
|
-
},
|
|
2322
|
+
}, uc = {
|
|
2323
2323
|
REALTIME: 5 * 1e3,
|
|
2324
2324
|
FAST: 30 * 1e3,
|
|
2325
2325
|
DEFAULT: 60 * 1e3,
|
|
2326
2326
|
SLOW: 300 * 1e3
|
|
2327
2327
|
};
|
|
2328
|
-
function
|
|
2328
|
+
function dc(e, t) {
|
|
2329
2329
|
const n = { all: [e] };
|
|
2330
2330
|
for (const [r, s] of Object.entries(t))
|
|
2331
2331
|
typeof s == "function" ? n[r] = (...o) => [e, ...s(...o)] : n[r] = [e, ...s];
|
|
2332
2332
|
return n;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function pc({ children: e, client: t, defaultOptions: n }) {
|
|
2335
2335
|
const [r] = v(
|
|
2336
2336
|
() => t ?? new et({
|
|
2337
2337
|
defaultOptions: {
|
|
@@ -2372,7 +2372,7 @@ function ki(e, t = {}) {
|
|
|
2372
2372
|
onError: p,
|
|
2373
2373
|
onStatusChange: f
|
|
2374
2374
|
} = t;
|
|
2375
|
-
let m = null,
|
|
2375
|
+
let m = null, g = null, h = 0, b = "idle", y = !1;
|
|
2376
2376
|
function N(S) {
|
|
2377
2377
|
b !== S && (b = S, f?.(S));
|
|
2378
2378
|
}
|
|
@@ -2391,7 +2391,7 @@ function ki(e, t = {}) {
|
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
2393
|
const S = Math.min(i * 2 ** h, c);
|
|
2394
|
-
h += 1,
|
|
2394
|
+
h += 1, g = setTimeout(I, S);
|
|
2395
2395
|
}
|
|
2396
2396
|
function I() {
|
|
2397
2397
|
if (y) return;
|
|
@@ -2410,10 +2410,10 @@ function ki(e, t = {}) {
|
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
2412
2412
|
function fe() {
|
|
2413
|
-
y = !0,
|
|
2413
|
+
y = !0, g && (clearTimeout(g), g = null), h = 0, m && (m.close(), m = null), N("closed");
|
|
2414
2414
|
}
|
|
2415
2415
|
function me() {
|
|
2416
|
-
|
|
2416
|
+
g && (clearTimeout(g), g = null), h = 0, y = !1, I();
|
|
2417
2417
|
}
|
|
2418
2418
|
return I(), {
|
|
2419
2419
|
close: fe,
|
|
@@ -2423,7 +2423,7 @@ function ki(e, t = {}) {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
};
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2426
|
+
function fc(e, t = {}) {
|
|
2427
2427
|
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = T(null), d = T(r);
|
|
2428
2428
|
return d.current = r, k(() => {
|
|
2429
2429
|
if (!n || !e) {
|
|
@@ -2531,7 +2531,7 @@ class Ti {
|
|
|
2531
2531
|
return t ? (this.config.onUnsubscribe && await this.config.onUnsubscribe(t.toJSON()), t.unsubscribe()) : !1;
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function mc(e) {
|
|
2535
2535
|
const t = T(e);
|
|
2536
2536
|
t.current = e;
|
|
2537
2537
|
const n = W(
|
|
@@ -2569,7 +2569,7 @@ function fc(e) {
|
|
|
2569
2569
|
u(!1);
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
}, [n, r]),
|
|
2572
|
+
}, [n, r]), g = x(async () => {
|
|
2573
2573
|
if (r) {
|
|
2574
2574
|
u(!0), p(null);
|
|
2575
2575
|
try {
|
|
@@ -2588,11 +2588,11 @@ function fc(e) {
|
|
|
2588
2588
|
loading: a,
|
|
2589
2589
|
error: d,
|
|
2590
2590
|
subscribe: m,
|
|
2591
|
-
unsubscribe:
|
|
2591
|
+
unsubscribe: g,
|
|
2592
2592
|
refresh: f
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
|
-
async function
|
|
2595
|
+
async function hc(e) {
|
|
2596
2596
|
if (typeof navigator > "u" || !("serviceWorker" in navigator))
|
|
2597
2597
|
return null;
|
|
2598
2598
|
try {
|
|
@@ -2609,7 +2609,7 @@ async function mc(e) {
|
|
|
2609
2609
|
return e.onError?.(t), null;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function gc(e) {
|
|
2613
2613
|
e.postMessage({ type: "SKIP_WAITING" });
|
|
2614
2614
|
}
|
|
2615
2615
|
async function _c() {
|
|
@@ -2623,7 +2623,7 @@ async function _c() {
|
|
|
2623
2623
|
function xe() {
|
|
2624
2624
|
return globalThis;
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function yc(e = {}) {
|
|
2627
2627
|
const t = xe(), { defaultTitle: n = "Notificação", defaultIcon: r, defaultBadge: s, transform: o } = e;
|
|
2628
2628
|
t.addEventListener("push", (i) => {
|
|
2629
2629
|
if (!i.data) return;
|
|
@@ -2646,7 +2646,7 @@ function gc(e = {}) {
|
|
|
2646
2646
|
i.waitUntil(t.registration.showNotification(u, d));
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function wc(e = {}) {
|
|
2650
2650
|
const t = xe(), n = e.resolveUrl ?? ((r) => {
|
|
2651
2651
|
if (typeof r == "string") return r;
|
|
2652
2652
|
if (r && typeof r == "object" && "url" in r) {
|
|
@@ -2672,7 +2672,7 @@ function yc(e = {}) {
|
|
|
2672
2672
|
);
|
|
2673
2673
|
});
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function bc() {
|
|
2676
2676
|
const e = xe();
|
|
2677
2677
|
e.addEventListener("message", (t) => {
|
|
2678
2678
|
t.data?.type === "SKIP_WAITING" && e.skipWaiting();
|
|
@@ -2705,13 +2705,13 @@ let we = null;
|
|
|
2705
2705
|
function Ue() {
|
|
2706
2706
|
return we || (we = je()), we;
|
|
2707
2707
|
}
|
|
2708
|
-
async function
|
|
2708
|
+
async function vc(e, t) {
|
|
2709
2709
|
return Ue().play(e, t);
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function Nc() {
|
|
2712
2712
|
Ue().stop();
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function $c() {
|
|
2715
2715
|
const e = T(null), [t, n] = v(!1);
|
|
2716
2716
|
e.current || (e.current = je()), k(() => () => {
|
|
2717
2717
|
e.current?.stop();
|
|
@@ -2729,17 +2729,17 @@ class Ei extends ot {
|
|
|
2729
2729
|
super(t), this.version(n).stores({ [r]: s }), this.store = this.table(r);
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function kc(e) {
|
|
2733
2733
|
const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new Ei(t, n, r, s), a = c.store;
|
|
2734
2734
|
function u(p, f) {
|
|
2735
2735
|
return !i || !f ? p : { ...p, [i]: f };
|
|
2736
2736
|
}
|
|
2737
2737
|
async function d(p, f = {}) {
|
|
2738
|
-
const { orderBy: m = o, reverse:
|
|
2738
|
+
const { orderBy: m = o, reverse: g = !1, limit: h, offset: b, filter: y } = f;
|
|
2739
2739
|
let N = i && p ? a.where(i).equals(p) : a.toCollection();
|
|
2740
2740
|
y && (N = N.filter(y));
|
|
2741
2741
|
let $ = m === o ? await N.toArray() : await N.sortBy(m);
|
|
2742
|
-
return
|
|
2742
|
+
return g && ($ = $.reverse()), b && ($ = $.slice(b)), typeof h == "number" && ($ = $.slice(0, h)), $;
|
|
2743
2743
|
}
|
|
2744
2744
|
return {
|
|
2745
2745
|
put: (p, f) => a.put(u(p, f)),
|
|
@@ -2770,7 +2770,7 @@ function Ci(e = [], t = []) {
|
|
|
2770
2770
|
if (!Object.is(e[n], t[n])) return !0;
|
|
2771
2771
|
return !1;
|
|
2772
2772
|
}
|
|
2773
|
-
class
|
|
2773
|
+
class Sc extends Ze {
|
|
2774
2774
|
state = { error: null };
|
|
2775
2775
|
static getDerivedStateFromError(t) {
|
|
2776
2776
|
return { error: t };
|
|
@@ -2791,7 +2791,7 @@ class kc extends Ze {
|
|
|
2791
2791
|
return typeof n == "function" ? n({ error: t, reset: this.reset }) : n;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function xc() {
|
|
2795
2795
|
const [, e] = v(null);
|
|
2796
2796
|
return x((t) => {
|
|
2797
2797
|
e(() => {
|
|
@@ -2799,7 +2799,7 @@ function Sc() {
|
|
|
2799
2799
|
});
|
|
2800
2800
|
}, []);
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2802
|
+
function Tc(e, t) {
|
|
2803
2803
|
const n = e.safeParse(t);
|
|
2804
2804
|
if (n.success)
|
|
2805
2805
|
return { success: !0, data: n.data, errors: {} };
|
|
@@ -2823,7 +2823,7 @@ function Li(e) {
|
|
|
2823
2823
|
return { values: {}, errors: o };
|
|
2824
2824
|
};
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function Ec(e, t = {}) {
|
|
2827
2827
|
return it({
|
|
2828
2828
|
...t,
|
|
2829
2829
|
resolver: Li(e)
|
|
@@ -2832,7 +2832,7 @@ function Tc(e, t = {}) {
|
|
|
2832
2832
|
function ce(e) {
|
|
2833
2833
|
return e.replace(/\D/g, "");
|
|
2834
2834
|
}
|
|
2835
|
-
function
|
|
2835
|
+
function Cc(e) {
|
|
2836
2836
|
const t = ce(e);
|
|
2837
2837
|
if (t.length !== 11 || /^(\d)\1+$/.test(t)) return !1;
|
|
2838
2838
|
const n = t.split("").map(Number);
|
|
@@ -2844,7 +2844,7 @@ function Ec(e) {
|
|
|
2844
2844
|
for (let o = 0; o < 10; o++) r += n[o] * (11 - o);
|
|
2845
2845
|
return s = r * 10 % 11, s === 10 && (s = 0), s === n[10];
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function Lc(e) {
|
|
2848
2848
|
const t = ce(e);
|
|
2849
2849
|
if (t.length !== 14 || /^(\d)\1+$/.test(t)) return !1;
|
|
2850
2850
|
const n = t.split("").map(Number), r = [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2], s = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2];
|
|
@@ -2862,20 +2862,20 @@ function Ii(e) {
|
|
|
2862
2862
|
function Di(e) {
|
|
2863
2863
|
return ce(e).slice(0, 14).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d)/, "$1-$2");
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function Ic(e) {
|
|
2866
2866
|
return ce(e);
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Dc(e) {
|
|
2869
2869
|
return new Intl.NumberFormat("pt-BR", {
|
|
2870
2870
|
style: "currency",
|
|
2871
2871
|
currency: "BRL"
|
|
2872
2872
|
}).format(e);
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function Mc(e) {
|
|
2875
2875
|
const t = typeof e == "string" ? new Date(e) : e;
|
|
2876
2876
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR").format(t);
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function Pc(e) {
|
|
2879
2879
|
const t = typeof e == "string" ? new Date(e) : e;
|
|
2880
2880
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR", {
|
|
2881
2881
|
dateStyle: "short",
|
|
@@ -2889,7 +2889,7 @@ function Mi(e) {
|
|
|
2889
2889
|
function Pi(e) {
|
|
2890
2890
|
return e.replace(/\D/g, "").slice(0, 11).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function Ac(e) {
|
|
2893
2893
|
return new Intl.NumberFormat("pt-BR", {
|
|
2894
2894
|
style: "percent",
|
|
2895
2895
|
minimumFractionDigits: 1,
|
|
@@ -2910,7 +2910,7 @@ function pe(e, t = "numeric") {
|
|
|
2910
2910
|
);
|
|
2911
2911
|
});
|
|
2912
2912
|
}
|
|
2913
|
-
const
|
|
2913
|
+
const Rc = pe(Pi), Fc = pe(Di), Oc = pe(Mi, "tel"), Wc = pe(Ii);
|
|
2914
2914
|
function Ai(e, t, n) {
|
|
2915
2915
|
return new Intl.NumberFormat(t, { style: "currency", currency: n }).format(e / 100);
|
|
2916
2916
|
}
|
|
@@ -2918,7 +2918,7 @@ function Ri(e) {
|
|
|
2918
2918
|
const t = e.replace(/\D/g, "");
|
|
2919
2919
|
return t ? Number.parseInt(t, 10) : 0;
|
|
2920
2920
|
}
|
|
2921
|
-
const
|
|
2921
|
+
const Bc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s = "pt-BR", ...o }, i) {
|
|
2922
2922
|
return /* @__PURE__ */ l(
|
|
2923
2923
|
Se,
|
|
2924
2924
|
{
|
|
@@ -2931,7 +2931,7 @@ const Wc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s =
|
|
|
2931
2931
|
}
|
|
2932
2932
|
);
|
|
2933
2933
|
});
|
|
2934
|
-
function
|
|
2934
|
+
function jc() {
|
|
2935
2935
|
const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i = x(async (a) => {
|
|
2936
2936
|
const u = a.replace(/\D/g, "");
|
|
2937
2937
|
if (u.length !== 8)
|
|
@@ -2972,7 +2972,7 @@ function Oi(e, t = {}) {
|
|
|
2972
2972
|
onError: f,
|
|
2973
2973
|
onStatusChange: m
|
|
2974
2974
|
} = t;
|
|
2975
|
-
let
|
|
2975
|
+
let g = null, h = null, b = null, y = 0, N = "idle", $ = !1;
|
|
2976
2976
|
function C(E) {
|
|
2977
2977
|
N !== E && (N = E, m?.(E));
|
|
2978
2978
|
}
|
|
@@ -2981,7 +2981,7 @@ function Oi(e, t = {}) {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
function fe() {
|
|
2983
2983
|
!i || i <= 0 || (I(), b = setInterval(() => {
|
|
2984
|
-
|
|
2984
|
+
g?.readyState === WebSocket.OPEN && g.send(c);
|
|
2985
2985
|
}, i));
|
|
2986
2986
|
}
|
|
2987
2987
|
function me() {
|
|
@@ -2995,9 +2995,9 @@ function Oi(e, t = {}) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
function S() {
|
|
2997
2997
|
if ($) return;
|
|
2998
|
-
|
|
2998
|
+
g && (g.onopen = null, g.onmessage = null, g.onclose = null, g.onerror = null, g.close()), C("connecting");
|
|
2999
2999
|
const E = new WebSocket(e, n);
|
|
3000
|
-
|
|
3000
|
+
g = E, E.onopen = (M) => {
|
|
3001
3001
|
y = 0, C("open"), fe(), u?.(M);
|
|
3002
3002
|
}, E.onmessage = (M) => {
|
|
3003
3003
|
const Qe = typeof M.data == "string" ? M.data : "";
|
|
@@ -3008,14 +3008,14 @@ function Oi(e, t = {}) {
|
|
|
3008
3008
|
}, E.onerror = (M) => {
|
|
3009
3009
|
f?.(M);
|
|
3010
3010
|
}, E.onclose = (M) => {
|
|
3011
|
-
I(), p?.(M),
|
|
3011
|
+
I(), p?.(M), g = null, C("closed"), !$ && !M.wasClean && me();
|
|
3012
3012
|
};
|
|
3013
3013
|
}
|
|
3014
3014
|
function L(E) {
|
|
3015
|
-
return
|
|
3015
|
+
return g?.readyState !== WebSocket.OPEN ? !1 : (g.send(E), !0);
|
|
3016
3016
|
}
|
|
3017
3017
|
function he(E, M) {
|
|
3018
|
-
$ = !0, h && (clearTimeout(h), h = null), I(), y = 0,
|
|
3018
|
+
$ = !0, h && (clearTimeout(h), h = null), I(), y = 0, g && (C("closing"), g.close(E, M), g = null), C("closed");
|
|
3019
3019
|
}
|
|
3020
3020
|
function Ve() {
|
|
3021
3021
|
h && (clearTimeout(h), h = null), y = 0, $ = !1, S();
|
|
@@ -3029,7 +3029,7 @@ function Oi(e, t = {}) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
};
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Uc(e, t = {}) {
|
|
3033
3033
|
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = T(null), d = T(r);
|
|
3034
3034
|
d.current = r, k(() => {
|
|
3035
3035
|
if (!n || !e) {
|
|
@@ -3039,8 +3039,8 @@ function jc(e, t = {}) {
|
|
|
3039
3039
|
const m = Oi(e, {
|
|
3040
3040
|
...s,
|
|
3041
3041
|
onStatusChange: i,
|
|
3042
|
-
onMessage: (
|
|
3043
|
-
a(
|
|
3042
|
+
onMessage: (g) => {
|
|
3043
|
+
a(g), d.current?.(g);
|
|
3044
3044
|
}
|
|
3045
3045
|
});
|
|
3046
3046
|
return u.current = m, () => {
|
|
@@ -3068,7 +3068,7 @@ function Wi(e) {
|
|
|
3068
3068
|
return null;
|
|
3069
3069
|
}
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3071
|
+
function zc({
|
|
3072
3072
|
children: e,
|
|
3073
3073
|
defaultTheme: t = "system",
|
|
3074
3074
|
storageKey: n = "tempest-theme",
|
|
@@ -3081,15 +3081,15 @@ function Uc({
|
|
|
3081
3081
|
u.current = r, k(() => {
|
|
3082
3082
|
const m = u.current?.() ?? document.documentElement;
|
|
3083
3083
|
if (!m) return;
|
|
3084
|
-
const
|
|
3085
|
-
m.setAttribute(s,
|
|
3084
|
+
const g = Me(o);
|
|
3085
|
+
m.setAttribute(s, g), a(g);
|
|
3086
3086
|
}, [o, s]), k(() => {
|
|
3087
3087
|
if (o !== "system" || typeof window > "u") return;
|
|
3088
|
-
const m = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
3088
|
+
const m = window.matchMedia("(prefers-color-scheme: dark)"), g = () => {
|
|
3089
3089
|
const h = u.current?.() ?? document.documentElement, b = m.matches ? "dark" : "light";
|
|
3090
3090
|
h?.setAttribute(s, b), a(b);
|
|
3091
3091
|
};
|
|
3092
|
-
return m.addEventListener("change",
|
|
3092
|
+
return m.addEventListener("change", g), () => m.removeEventListener("change", g);
|
|
3093
3093
|
}, [o, s]);
|
|
3094
3094
|
const d = x(
|
|
3095
3095
|
(m) => {
|
|
@@ -3108,12 +3108,12 @@ function Uc({
|
|
|
3108
3108
|
);
|
|
3109
3109
|
return /* @__PURE__ */ l(ze.Provider, { value: f, children: e });
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function Jc() {
|
|
3112
3112
|
const e = te(ze);
|
|
3113
3113
|
if (!e) throw new Error("useTheme must be used inside a <ThemeProvider>");
|
|
3114
3114
|
return e;
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function qc(e = {}) {
|
|
3117
3117
|
const { storageKey: t = "tempest-theme", defaultTheme: n = "system" } = e;
|
|
3118
3118
|
if (typeof window > "u")
|
|
3119
3119
|
return n === "dark" ? "dark" : "light";
|
|
@@ -3126,7 +3126,7 @@ function Jc(e = {}) {
|
|
|
3126
3126
|
const s = r ?? n;
|
|
3127
3127
|
return s === "dark" || s === "light" ? s : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Gc(e = {}) {
|
|
3130
3130
|
const t = e.storageKey ?? "tempest-theme", n = e.defaultTheme ?? "system";
|
|
3131
3131
|
return `
|
|
3132
3132
|
(function(){try{
|
|
@@ -3195,7 +3195,7 @@ function Bi(e, t) {
|
|
|
3195
3195
|
return null;
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function Hc({
|
|
3199
3199
|
children: e,
|
|
3200
3200
|
locale: t,
|
|
3201
3201
|
fallbackLocale: n,
|
|
@@ -3225,7 +3225,7 @@ function ji() {
|
|
|
3225
3225
|
if (!e) throw new Error("useI18n must be used inside an <I18nProvider>");
|
|
3226
3226
|
return e;
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function Kc() {
|
|
3229
3229
|
return ji().t;
|
|
3230
3230
|
}
|
|
3231
3231
|
const Ae = ["debug", "info", "warn", "error"];
|
|
@@ -3265,17 +3265,17 @@ function Ji(e = {}) {
|
|
|
3265
3265
|
};
|
|
3266
3266
|
}
|
|
3267
3267
|
const Ge = ne(null);
|
|
3268
|
-
function
|
|
3268
|
+
function Vc({ adapter: e, children: t }) {
|
|
3269
3269
|
k(() => (e.init?.(), () => {
|
|
3270
3270
|
e.flush?.();
|
|
3271
3271
|
}), [e]);
|
|
3272
3272
|
const n = W(() => e, [e]);
|
|
3273
3273
|
return /* @__PURE__ */ l(Ge.Provider, { value: n, children: t });
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function Qc() {
|
|
3276
3276
|
return te(Ge);
|
|
3277
3277
|
}
|
|
3278
|
-
const
|
|
3278
|
+
const Yc = {
|
|
3279
3279
|
identify(e) {
|
|
3280
3280
|
console.info("[telemetry] identify", e);
|
|
3281
3281
|
},
|
|
@@ -3285,8 +3285,44 @@ const Qc = {
|
|
|
3285
3285
|
captureException(e, t) {
|
|
3286
3286
|
console.error("[telemetry] exception", e, t);
|
|
3287
3287
|
}
|
|
3288
|
-
}
|
|
3289
|
-
function
|
|
3288
|
+
};
|
|
3289
|
+
function qi(e) {
|
|
3290
|
+
if (e === null) return null;
|
|
3291
|
+
const { id: t, email: n, name: r, traits: s } = e;
|
|
3292
|
+
return {
|
|
3293
|
+
...t !== void 0 ? { id: t } : null,
|
|
3294
|
+
...n !== void 0 ? { email: n } : null,
|
|
3295
|
+
...r !== void 0 ? { username: r } : null,
|
|
3296
|
+
...s ?? null
|
|
3297
|
+
};
|
|
3298
|
+
}
|
|
3299
|
+
function Xc(e) {
|
|
3300
|
+
const { sentry: t, initOptions: n, flushTimeout: r = 2e3, breadcrumbCategory: s = "app" } = e;
|
|
3301
|
+
return {
|
|
3302
|
+
init() {
|
|
3303
|
+
n && t.init && t.init(n);
|
|
3304
|
+
},
|
|
3305
|
+
identify(o) {
|
|
3306
|
+
t.setUser(qi(o));
|
|
3307
|
+
},
|
|
3308
|
+
track(o) {
|
|
3309
|
+
t.addBreadcrumb({
|
|
3310
|
+
category: s,
|
|
3311
|
+
message: o.name,
|
|
3312
|
+
level: "info",
|
|
3313
|
+
...o.properties ? { data: o.properties } : null
|
|
3314
|
+
});
|
|
3315
|
+
},
|
|
3316
|
+
captureException(o, i) {
|
|
3317
|
+
t.captureException(o, i ? { extra: i } : void 0);
|
|
3318
|
+
},
|
|
3319
|
+
async flush() {
|
|
3320
|
+
t.flush && await t.flush(r);
|
|
3321
|
+
}
|
|
3322
|
+
};
|
|
3323
|
+
}
|
|
3324
|
+
const He = ne(null);
|
|
3325
|
+
function Zc({ adapter: e, children: t }) {
|
|
3290
3326
|
const n = W(() => e, [e]);
|
|
3291
3327
|
return k(() => {
|
|
3292
3328
|
}, [n]), /* @__PURE__ */ l(He.Provider, { value: n, children: t });
|
|
@@ -3296,17 +3332,17 @@ function Ke() {
|
|
|
3296
3332
|
if (!e) throw new Error("useFeatureFlag requires <FeatureFlagsProvider>");
|
|
3297
3333
|
return e;
|
|
3298
3334
|
}
|
|
3299
|
-
function
|
|
3335
|
+
function el(e, t = !1) {
|
|
3300
3336
|
const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3301
3337
|
}, s = () => n.isEnabled(e, t);
|
|
3302
3338
|
return Fe(r, s, s);
|
|
3303
3339
|
}
|
|
3304
|
-
function
|
|
3340
|
+
function tl(e, t) {
|
|
3305
3341
|
const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3306
3342
|
}, s = () => n.get(e, t);
|
|
3307
3343
|
return Fe(r, s, s);
|
|
3308
3344
|
}
|
|
3309
|
-
function
|
|
3345
|
+
function nl(e = {}) {
|
|
3310
3346
|
const t = { ...e.initial ?? {} }, n = /* @__PURE__ */ new Set();
|
|
3311
3347
|
function r() {
|
|
3312
3348
|
for (const s of n) s();
|
|
@@ -3326,7 +3362,7 @@ function el(e = {}) {
|
|
|
3326
3362
|
}
|
|
3327
3363
|
};
|
|
3328
3364
|
}
|
|
3329
|
-
async function
|
|
3365
|
+
async function rl(e) {
|
|
3330
3366
|
if (typeof navigator > "u" || !("share" in navigator))
|
|
3331
3367
|
return { shared: !1, unsupported: !0, cancelled: !1 };
|
|
3332
3368
|
if (e.files && !navigator.canShare?.({ files: e.files }))
|
|
@@ -3337,10 +3373,10 @@ async function tl(e) {
|
|
|
3337
3373
|
return t instanceof DOMException && t.name === "AbortError" ? { shared: !1, unsupported: !1, cancelled: !0 } : { shared: !1, unsupported: !1, cancelled: !1, error: t };
|
|
3338
3374
|
}
|
|
3339
3375
|
}
|
|
3340
|
-
function
|
|
3376
|
+
function sl() {
|
|
3341
3377
|
return typeof navigator < "u" && "share" in navigator;
|
|
3342
3378
|
}
|
|
3343
|
-
const
|
|
3379
|
+
const ol = {
|
|
3344
3380
|
get(e, t) {
|
|
3345
3381
|
if (typeof window > "u") return t;
|
|
3346
3382
|
try {
|
|
@@ -3366,142 +3402,143 @@ const rl = {
|
|
|
3366
3402
|
}
|
|
3367
3403
|
};
|
|
3368
3404
|
export {
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3405
|
+
ic as AuthGuard,
|
|
3406
|
+
ea as Avatar,
|
|
3407
|
+
ta as Badge,
|
|
3408
|
+
na as Breadcrumbs,
|
|
3373
3409
|
ve as Button,
|
|
3374
3410
|
Ni as CACHE_TIME,
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3411
|
+
Wc as CEPInput,
|
|
3412
|
+
Fc as CNPJInput,
|
|
3413
|
+
Rc as CPFInput,
|
|
3414
|
+
ra as Card,
|
|
3415
|
+
sa as Checkbox,
|
|
3416
|
+
oa as ChipInput,
|
|
3417
|
+
ia as ConfirmDialog,
|
|
3418
|
+
ga as Container,
|
|
3419
|
+
aa as DatePicker,
|
|
3420
|
+
ca as Drawer,
|
|
3421
|
+
la as EmptyState,
|
|
3422
|
+
Sc as ErrorBoundary,
|
|
3423
|
+
ua as ErrorState,
|
|
3424
|
+
Zc as FeatureFlagsProvider,
|
|
3425
|
+
da as FileUpload,
|
|
3426
|
+
pa as Form,
|
|
3427
|
+
ha as FormActions,
|
|
3428
|
+
ma as FormRow,
|
|
3429
|
+
fa as FormSection,
|
|
3430
|
+
ya as Grid,
|
|
3431
|
+
Hc as I18nProvider,
|
|
3396
3432
|
Se as Input,
|
|
3397
3433
|
Cn as Modal,
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3434
|
+
Bc as MoneyInput,
|
|
3435
|
+
wa as Pagination,
|
|
3436
|
+
Oc as PhoneInput,
|
|
3437
|
+
ba as Progress,
|
|
3438
|
+
pc as QueryProvider,
|
|
3439
|
+
uc as REFETCH_TIME,
|
|
3440
|
+
va as Radio,
|
|
3441
|
+
Na as RadioGroup,
|
|
3406
3442
|
vi as STALE_TIME,
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3443
|
+
$a as SearchBar,
|
|
3444
|
+
ka as Select,
|
|
3445
|
+
Sa as Skeleton,
|
|
3446
|
+
xa as Spinner,
|
|
3411
3447
|
_a as Stack,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3448
|
+
Ta as Stepper,
|
|
3449
|
+
Ea as Switch,
|
|
3450
|
+
Ca as Table,
|
|
3451
|
+
La as Tabs,
|
|
3452
|
+
Vc as TelemetryProvider,
|
|
3453
|
+
Ia as Textarea,
|
|
3454
|
+
zc as ThemeProvider,
|
|
3455
|
+
Pa as ToastProvider,
|
|
3456
|
+
Da as Tooltip,
|
|
3457
|
+
Aa as VirtualList,
|
|
3422
3458
|
Ti as WebPushClient,
|
|
3423
3459
|
xi as WebPushPermissionDeniedError,
|
|
3424
3460
|
De as WebPushUnsupportedError,
|
|
3425
|
-
|
|
3461
|
+
_ as cn,
|
|
3426
3462
|
zi as consoleSink,
|
|
3427
|
-
|
|
3428
|
-
|
|
3463
|
+
Yc as consoleTelemetryAdapter,
|
|
3464
|
+
Za as createApiClient,
|
|
3429
3465
|
je as createAudioPlayer,
|
|
3430
|
-
|
|
3466
|
+
oc as createAuthStore,
|
|
3431
3467
|
ki as createEventStream,
|
|
3432
3468
|
Je as createI18n,
|
|
3433
|
-
|
|
3469
|
+
nl as createInMemoryFlags,
|
|
3434
3470
|
Ji as createLogger,
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3471
|
+
kc as createOfflineStore,
|
|
3472
|
+
dc as createQueryKeys,
|
|
3473
|
+
lc as createRefreshQueue,
|
|
3474
|
+
Xc as createSentryTelemetryAdapter,
|
|
3438
3475
|
Oi as createWebSocket,
|
|
3439
3476
|
bi as decodeJWT,
|
|
3440
3477
|
Ii as formatCEP,
|
|
3441
3478
|
Di as formatCNPJ,
|
|
3442
3479
|
Pi as formatCPF,
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3480
|
+
Dc as formatCurrency,
|
|
3481
|
+
Mc as formatDate,
|
|
3482
|
+
Pc as formatDateTime,
|
|
3483
|
+
Ac as formatPercent,
|
|
3447
3484
|
Mi as formatPhone,
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3485
|
+
rc as generateIdempotencyKey,
|
|
3486
|
+
qc as getInitialTheme,
|
|
3487
|
+
wc as installNotificationClickHandler,
|
|
3488
|
+
yc as installPushHandler,
|
|
3489
|
+
bc as installSkipWaitingListener,
|
|
3490
|
+
ac as isJWTExpired,
|
|
3454
3491
|
ue as isPushSupported,
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3492
|
+
sl as isShareSupported,
|
|
3493
|
+
cc as lazyWithRetry,
|
|
3494
|
+
ec as parseResponse,
|
|
3495
|
+
vc as playAudio,
|
|
3496
|
+
hc as registerServiceWorker,
|
|
3497
|
+
nc as retry,
|
|
3498
|
+
rl as share,
|
|
3499
|
+
gc as skipWaiting,
|
|
3500
|
+
Nc as stopAudio,
|
|
3501
|
+
ol as storage,
|
|
3502
|
+
Gc as themeInitScript,
|
|
3503
|
+
Ic as unmask,
|
|
3467
3504
|
_c as unregisterAllServiceWorkers,
|
|
3468
|
-
|
|
3505
|
+
tc as uploadWithProgress,
|
|
3469
3506
|
Si as urlBase64ToUint8Array,
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3507
|
+
$c as useAudio,
|
|
3508
|
+
Ga as useBeforeInstallPrompt,
|
|
3509
|
+
Oa as useClientFilter,
|
|
3510
|
+
Ja as useClipboard,
|
|
3511
|
+
Ra as useDebounce,
|
|
3512
|
+
Xa as useDeepMemo,
|
|
3513
|
+
ja as useDocumentVisibility,
|
|
3514
|
+
xc as useErrorHandler,
|
|
3515
|
+
fc as useEventStream,
|
|
3516
|
+
el as useFeatureFlag,
|
|
3517
|
+
tl as useFlagValue,
|
|
3518
|
+
Qa as useFocusTrap,
|
|
3519
|
+
Ka as useGeolocation,
|
|
3483
3520
|
ji as useI18n,
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3521
|
+
Ha as useIdle,
|
|
3522
|
+
Ua as useIntersectionObserver,
|
|
3523
|
+
qa as useKeyboardShortcut,
|
|
3524
|
+
Wa as useMediaQuery,
|
|
3525
|
+
Ba as useOnline,
|
|
3526
|
+
Fa as usePagination,
|
|
3527
|
+
sc as usePoll,
|
|
3528
|
+
mc as usePushSubscription,
|
|
3529
|
+
za as useResizeObserver,
|
|
3530
|
+
Va as useScrollLock,
|
|
3531
|
+
Ya as useStableCallback,
|
|
3532
|
+
Qc as useTelemetry,
|
|
3533
|
+
Jc as useTheme,
|
|
3534
|
+
Ma as useToast,
|
|
3535
|
+
Kc as useTranslate,
|
|
3536
|
+
jc as useViaCEP,
|
|
3537
|
+
Uc as useWebSocket,
|
|
3538
|
+
Ec as useZodForm,
|
|
3539
|
+
Lc as validateCNPJ,
|
|
3540
|
+
Cc as validateCPF,
|
|
3541
|
+
Tc as validateForm,
|
|
3505
3542
|
Li as zodResolver
|
|
3506
3543
|
};
|
|
3507
3544
|
//# sourceMappingURL=tempest-react-sdk.js.map
|