tempest-react-sdk 0.1.3 → 0.1.4
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 +82 -6
- package/dist/index.d.ts +121 -0
- package/dist/tempest-react-sdk.cjs +3 -3
- package/dist/tempest-react-sdk.cjs.map +1 -1
- package/dist/tempest-react-sdk.js +445 -363
- package/dist/tempest-react-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as w, jsx as l, Fragment as $e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as v, useMemo as W, Fragment as Re, forwardRef as O, useRef as
|
|
2
|
+
import { useState as v, useMemo as W, Fragment as Re, forwardRef as O, useRef as E, useEffect as k, useId as ae, useContext as te, createContext as ne, cloneElement as Ye, useCallback as S, lazy as Xe, Component as Ze, useSyncExternalStore as Fe } from "react";
|
|
3
3
|
import { createPortal as ke } from "react-dom";
|
|
4
4
|
import { QueryClient as et, QueryClientProvider as tt } from "@tanstack/react-query";
|
|
5
5
|
import { create as nt } from "zustand";
|
|
@@ -39,7 +39,7 @@ 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 ta({
|
|
43
43
|
src: e,
|
|
44
44
|
alt: t,
|
|
45
45
|
name: n = "",
|
|
@@ -74,25 +74,25 @@ function ea({
|
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
|
-
const bt = "tempest_badge_RsuMz", vt = "tempest_neutral_lulSm", Nt = "tempest_success_u9JiS", $t = "tempest_warning_nsGp-", kt = "tempest_danger_PD2hz",
|
|
77
|
+
const bt = "tempest_badge_RsuMz", vt = "tempest_neutral_lulSm", Nt = "tempest_success_u9JiS", $t = "tempest_warning_nsGp-", kt = "tempest_danger_PD2hz", xt = "tempest_info_na6DQ", Ee = {
|
|
78
78
|
badge: bt,
|
|
79
79
|
neutral: vt,
|
|
80
80
|
success: Nt,
|
|
81
81
|
warning: $t,
|
|
82
82
|
danger: kt,
|
|
83
|
-
info:
|
|
83
|
+
info: xt
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
return /* @__PURE__ */ l("span", { className: _(
|
|
85
|
+
function na({ variant: e = "neutral", className: t, children: n, ...r }) {
|
|
86
|
+
return /* @__PURE__ */ l("span", { className: _(Ee.badge, Ee[e], t), ...r, children: n });
|
|
87
87
|
}
|
|
88
|
-
const
|
|
89
|
-
nav:
|
|
90
|
-
item:
|
|
91
|
-
link:
|
|
88
|
+
const St = "tempest_nav_H4g6P", Et = "tempest_item_O4g3P", Tt = "tempest_link_7WM67", Ct = "tempest_current_JdlcS", Lt = "tempest_separator_zGWyJ", re = {
|
|
89
|
+
nav: St,
|
|
90
|
+
item: Et,
|
|
91
|
+
link: Tt,
|
|
92
92
|
current: Ct,
|
|
93
93
|
separator: Lt
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function ra({ items: e, separator: t = "/", className: n }) {
|
|
96
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: [
|
|
@@ -190,15 +190,15 @@ function Jt() {
|
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
card:
|
|
195
|
-
padded:
|
|
193
|
+
const Gt = "tempest_card_Cb1o4", qt = "tempest_padded_oOxwN", Ht = "tempest_flush_aiDZi", Kt = "tempest_header_PTXf2", Vt = "tempest_title_mSgoo", Qt = "tempest_body_W441Z", Y = {
|
|
194
|
+
card: Gt,
|
|
195
|
+
padded: qt,
|
|
196
196
|
flush: Ht,
|
|
197
197
|
header: Kt,
|
|
198
198
|
title: Vt,
|
|
199
199
|
body: Qt
|
|
200
200
|
};
|
|
201
|
-
function
|
|
201
|
+
function sa({ 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",
|
|
@@ -228,8 +228,8 @@ 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
|
-
},
|
|
232
|
-
const u =
|
|
231
|
+
}, oa = O(function({ label: t, description: n, indeterminate: r, disabled: s, wrapperClassName: o, className: i, ...c }, a) {
|
|
232
|
+
const u = E(null);
|
|
233
233
|
k(() => {
|
|
234
234
|
u.current && (u.current.indeterminate = !!r);
|
|
235
235
|
}, [r]);
|
|
@@ -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 ia({
|
|
284
284
|
value: e,
|
|
285
285
|
onChange: t,
|
|
286
286
|
label: n,
|
|
@@ -291,7 +291,7 @@ function oa({
|
|
|
291
291
|
normalize: c = !0,
|
|
292
292
|
className: a
|
|
293
293
|
}) {
|
|
294
|
-
const [u, d] = v(""), p =
|
|
294
|
+
const [u, d] = v(""), p = E(null);
|
|
295
295
|
function f() {
|
|
296
296
|
const h = c ? u.trim().toLowerCase() : u.trim();
|
|
297
297
|
if (h) {
|
|
@@ -345,7 +345,7 @@ function oa({
|
|
|
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 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",
|
|
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", xn = "tempest_title_A5OeE", Sn = "tempest_close_-ER1C", En = "tempest_body_lVhql", Tn = "tempest_footer_rro2w", J = {
|
|
349
349
|
overlay: gn,
|
|
350
350
|
tempestFadeIn: _n,
|
|
351
351
|
dialog: yn,
|
|
@@ -355,10 +355,10 @@ const gn = "tempest_overlay_dd9h1", _n = "tempest_tempest-fade-in_DvgSp", yn = "
|
|
|
355
355
|
lg: Nn,
|
|
356
356
|
xl: $n,
|
|
357
357
|
header: kn,
|
|
358
|
-
title:
|
|
359
|
-
close:
|
|
360
|
-
body:
|
|
361
|
-
footer:
|
|
358
|
+
title: xn,
|
|
359
|
+
close: Sn,
|
|
360
|
+
body: En,
|
|
361
|
+
footer: Tn
|
|
362
362
|
};
|
|
363
363
|
function Cn({
|
|
364
364
|
open: e,
|
|
@@ -433,7 +433,7 @@ function Ln() {
|
|
|
433
433
|
}
|
|
434
434
|
) });
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function aa({
|
|
437
437
|
open: e,
|
|
438
438
|
title: t,
|
|
439
439
|
description: n,
|
|
@@ -474,7 +474,7 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
|
|
|
474
474
|
error: Bn,
|
|
475
475
|
helper: jn,
|
|
476
476
|
errorText: Un
|
|
477
|
-
},
|
|
477
|
+
}, xe = O(function({
|
|
478
478
|
label: t,
|
|
479
479
|
helperText: n,
|
|
480
480
|
error: r,
|
|
@@ -515,9 +515,9 @@ 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
|
+
}), ca = O(function({ value: t, onChange: n, mode: r = "date", ...s }, o) {
|
|
519
519
|
return /* @__PURE__ */ l(
|
|
520
|
-
|
|
520
|
+
xe,
|
|
521
521
|
{
|
|
522
522
|
...s,
|
|
523
523
|
ref: o,
|
|
@@ -526,11 +526,11 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
|
|
|
526
526
|
onChange: (i) => n(i.target.value)
|
|
527
527
|
}
|
|
528
528
|
);
|
|
529
|
-
}), zn = "tempest_overlay_hcG1G", Jn = "tempest_tempest-drawer-overlay_XFbxY",
|
|
529
|
+
}), zn = "tempest_overlay_hcG1G", Jn = "tempest_tempest-drawer-overlay_XFbxY", Gn = "tempest_panel_wUX0N", qn = "tempest_right_-oX-6", Hn = "tempest_tempest-drawer-in-right_pWYHv", Kn = "tempest_left_xi3nD", Vn = "tempest_tempest-drawer-in-left_o7JSb", Qn = "tempest_top_7rGCn", Yn = "tempest_tempest-drawer-in-top_kn6AF", Xn = "tempest_bottom_zd-25", Zn = "tempest_tempest-drawer-in-bottom_0x3u7", er = "tempest_header_sYoP1", tr = "tempest_title_LqUOu", nr = "tempest_close_tYPhU", rr = "tempest_body_aV9FG", sr = "tempest_footer_AuvUP", G = {
|
|
530
530
|
overlay: zn,
|
|
531
531
|
tempestDrawerOverlay: Jn,
|
|
532
|
-
panel:
|
|
533
|
-
right:
|
|
532
|
+
panel: Gn,
|
|
533
|
+
right: qn,
|
|
534
534
|
tempestDrawerInRight: Hn,
|
|
535
535
|
left: Kn,
|
|
536
536
|
tempestDrawerInLeft: Vn,
|
|
@@ -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 la({
|
|
548
548
|
open: e,
|
|
549
549
|
onClose: t,
|
|
550
550
|
placement: n = "right",
|
|
@@ -571,7 +571,7 @@ function ca({
|
|
|
571
571
|
/* @__PURE__ */ l(
|
|
572
572
|
"div",
|
|
573
573
|
{
|
|
574
|
-
className:
|
|
574
|
+
className: G.overlay,
|
|
575
575
|
onClick: () => {
|
|
576
576
|
i && t();
|
|
577
577
|
}
|
|
@@ -582,23 +582,23 @@ function ca({
|
|
|
582
582
|
{
|
|
583
583
|
role: "dialog",
|
|
584
584
|
"aria-modal": "true",
|
|
585
|
-
className: _(
|
|
585
|
+
className: _(G.panel, G[n], u),
|
|
586
586
|
children: [
|
|
587
|
-
(r || !a) && /* @__PURE__ */ w("header", { className:
|
|
588
|
-
/* @__PURE__ */ l("h3", { className:
|
|
587
|
+
(r || !a) && /* @__PURE__ */ w("header", { className: G.header, children: [
|
|
588
|
+
/* @__PURE__ */ l("h3", { className: G.title, children: r }),
|
|
589
589
|
!a && /* @__PURE__ */ l(
|
|
590
590
|
"button",
|
|
591
591
|
{
|
|
592
592
|
type: "button",
|
|
593
593
|
"aria-label": "Fechar",
|
|
594
|
-
className:
|
|
594
|
+
className: G.close,
|
|
595
595
|
onClick: t,
|
|
596
596
|
children: /* @__PURE__ */ l(or, {})
|
|
597
597
|
}
|
|
598
598
|
)
|
|
599
599
|
] }),
|
|
600
|
-
/* @__PURE__ */ l("div", { className:
|
|
601
|
-
o && /* @__PURE__ */ l("footer", { className:
|
|
600
|
+
/* @__PURE__ */ l("div", { className: G.body, children: s }),
|
|
601
|
+
o && /* @__PURE__ */ l("footer", { className: G.footer, children: o })
|
|
602
602
|
]
|
|
603
603
|
}
|
|
604
604
|
)
|
|
@@ -624,7 +624,7 @@ const ir = "tempest_wrapper_gzyTd", ar = "tempest_icon_qVCyh", cr = "tempest_tit
|
|
|
624
624
|
description: lr,
|
|
625
625
|
action: ur
|
|
626
626
|
};
|
|
627
|
-
function
|
|
627
|
+
function ua({ icon: e, title: t, description: n, action: r, className: s }) {
|
|
628
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 }),
|
|
@@ -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 da({
|
|
643
643
|
title: e = "Algo deu errado",
|
|
644
644
|
description: t = "Não foi possível carregar essas informações.",
|
|
645
645
|
onRetry: n,
|
|
@@ -666,7 +666,7 @@ function gr() {
|
|
|
666
666
|
}
|
|
667
667
|
) });
|
|
668
668
|
}
|
|
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",
|
|
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", xr = "tempest_files_WljYm", Sr = "tempest_file_Lp-dR", Er = "tempest_fileMeta_LTnN2", Tr = "tempest_remove_jskra", Cr = "tempest_hidden_ReEq6", D = {
|
|
670
670
|
wrapper: _r,
|
|
671
671
|
label: yr,
|
|
672
672
|
dropzone: wr,
|
|
@@ -675,10 +675,10 @@ const _r = "tempest_wrapper_E0qHs", yr = "tempest_label_lbMkx", wr = "tempest_dr
|
|
|
675
675
|
icon: Nr,
|
|
676
676
|
title: $r,
|
|
677
677
|
subtitle: kr,
|
|
678
|
-
files:
|
|
679
|
-
file:
|
|
680
|
-
fileMeta:
|
|
681
|
-
remove:
|
|
678
|
+
files: xr,
|
|
679
|
+
file: Sr,
|
|
680
|
+
fileMeta: Er,
|
|
681
|
+
remove: Tr,
|
|
682
682
|
hidden: Cr
|
|
683
683
|
};
|
|
684
684
|
function Lr(e) {
|
|
@@ -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 pa({
|
|
693
693
|
value: e,
|
|
694
694
|
onChange: t,
|
|
695
695
|
label: n,
|
|
@@ -702,7 +702,7 @@ function da({
|
|
|
702
702
|
subtitle: u,
|
|
703
703
|
className: d
|
|
704
704
|
}) {
|
|
705
|
-
const [p, f] = v(!1), m =
|
|
705
|
+
const [p, f] = v(!1), m = E(null);
|
|
706
706
|
function g(y) {
|
|
707
707
|
const N = [], $ = [];
|
|
708
708
|
for (const I of Array.from(y)) {
|
|
@@ -800,7 +800,7 @@ function Dr() {
|
|
|
800
800
|
}
|
|
801
801
|
) });
|
|
802
802
|
}
|
|
803
|
-
const Mr = "tempest_form_jNBDR", Pr = "tempest_stack_O1Hl-", Ar = "tempest_inline_LBQAv", Rr = "tempest_grid_-B86T", Fr = "tempest_section_HGqw3", Or = "tempest_sectionHeader_ji9hQ", Wr = "tempest_sectionTitle_GTPwe", Br = "tempest_sectionDescription_KjW7k", jr = "tempest_sectionBody_Vp2wz", Ur = "tempest_row_1EkVR", zr = "tempest_actions_hK95I", Jr = "tempest_start_gXnm3",
|
|
803
|
+
const Mr = "tempest_form_jNBDR", Pr = "tempest_stack_O1Hl-", Ar = "tempest_inline_LBQAv", Rr = "tempest_grid_-B86T", Fr = "tempest_section_HGqw3", Or = "tempest_sectionHeader_ji9hQ", Wr = "tempest_sectionTitle_GTPwe", Br = "tempest_sectionDescription_KjW7k", jr = "tempest_sectionBody_Vp2wz", Ur = "tempest_row_1EkVR", zr = "tempest_actions_hK95I", Jr = "tempest_start_gXnm3", Gr = "tempest_center_mKkz4", qr = "tempest_end_O3yDQ", Hr = "tempest_between_tte2z", F = {
|
|
804
804
|
form: Mr,
|
|
805
805
|
stack: Pr,
|
|
806
806
|
inline: Ar,
|
|
@@ -813,8 +813,8 @@ const Mr = "tempest_form_jNBDR", Pr = "tempest_stack_O1Hl-", Ar = "tempest_inlin
|
|
|
813
813
|
row: Ur,
|
|
814
814
|
actions: zr,
|
|
815
815
|
start: Jr,
|
|
816
|
-
center:
|
|
817
|
-
end:
|
|
816
|
+
center: Gr,
|
|
817
|
+
end: qr,
|
|
818
818
|
between: Hr
|
|
819
819
|
};
|
|
820
820
|
function de(e, t) {
|
|
@@ -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 fa = 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,
|
|
@@ -840,7 +840,7 @@ const pa = O(function({ layout: t = "stack", columns: n, gap: r, className: s, s
|
|
|
840
840
|
}
|
|
841
841
|
);
|
|
842
842
|
});
|
|
843
|
-
function
|
|
843
|
+
function ma({
|
|
844
844
|
title: e,
|
|
845
845
|
description: t,
|
|
846
846
|
layout: n = "stack",
|
|
@@ -863,11 +863,11 @@ function fa({
|
|
|
863
863
|
/* @__PURE__ */ l("div", { className: _(F.sectionBody, F[n]), style: u, children: c })
|
|
864
864
|
] });
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function ha({ gap: e, className: t, style: n, children: r, ...s }) {
|
|
867
867
|
const o = { gap: de(e, 3), ...n };
|
|
868
868
|
return /* @__PURE__ */ l("div", { className: _(F.row, t), style: o, ...s, children: r });
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function ga({
|
|
871
871
|
align: e = "end",
|
|
872
872
|
gap: t,
|
|
873
873
|
className: n,
|
|
@@ -899,10 +899,10 @@ const Kr = "tempest_container_fJfOt", Vr = "tempest_sm_k8D4-", Qr = "tempest_md_
|
|
|
899
899
|
wrap: ds,
|
|
900
900
|
grid: ps
|
|
901
901
|
};
|
|
902
|
-
function
|
|
902
|
+
function _a({ size: e = "lg", className: t, children: n, ...r }) {
|
|
903
903
|
return /* @__PURE__ */ l("div", { className: _(A.container, A[e], t), ...r, children: n });
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function ya({
|
|
906
906
|
direction: e = "vertical",
|
|
907
907
|
gap: t = 2,
|
|
908
908
|
align: n,
|
|
@@ -931,7 +931,7 @@ function _a({
|
|
|
931
931
|
}
|
|
932
932
|
);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function wa({ 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",
|
|
@@ -943,7 +943,7 @@ function ya({ columns: e = 2, gap: t = 4, className: n, style: r, children: s, .
|
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
945
|
}
|
|
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",
|
|
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", q = {
|
|
947
947
|
wrapper: fs,
|
|
948
948
|
controls: ms,
|
|
949
949
|
page: hs,
|
|
@@ -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 ba({
|
|
964
964
|
page: e,
|
|
965
965
|
totalPages: t,
|
|
966
966
|
onPageChange: n,
|
|
@@ -975,14 +975,14 @@ function wa({
|
|
|
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: _(q.wrapper, a), children: [
|
|
979
979
|
/* @__PURE__ */ l("div", { children: typeof i == "number" ? `${i} resultado${i === 1 ? "" : "s"}` : null }),
|
|
980
|
-
/* @__PURE__ */ w("div", { className:
|
|
980
|
+
/* @__PURE__ */ w("div", { className: q.controls, children: [
|
|
981
981
|
/* @__PURE__ */ l(
|
|
982
982
|
"button",
|
|
983
983
|
{
|
|
984
984
|
type: "button",
|
|
985
|
-
className:
|
|
985
|
+
className: q.page,
|
|
986
986
|
onClick: () => n(Math.max(1, e - 1)),
|
|
987
987
|
disabled: e <= 1,
|
|
988
988
|
"aria-label": "Página anterior",
|
|
@@ -990,11 +990,11 @@ function wa({
|
|
|
990
990
|
}
|
|
991
991
|
),
|
|
992
992
|
u.map(
|
|
993
|
-
(d, p) => d === "..." ? /* @__PURE__ */ l("span", { className:
|
|
993
|
+
(d, p) => d === "..." ? /* @__PURE__ */ l("span", { className: q.ellipsis, children: "…" }, `ellipsis-${p}`) : /* @__PURE__ */ l(
|
|
994
994
|
"button",
|
|
995
995
|
{
|
|
996
996
|
type: "button",
|
|
997
|
-
className: _(
|
|
997
|
+
className: _(q.page, d === e && q.active),
|
|
998
998
|
onClick: () => n(d),
|
|
999
999
|
"aria-current": d === e ? "page" : void 0,
|
|
1000
1000
|
children: d
|
|
@@ -1006,7 +1006,7 @@ function wa({
|
|
|
1006
1006
|
"button",
|
|
1007
1007
|
{
|
|
1008
1008
|
type: "button",
|
|
1009
|
-
className:
|
|
1009
|
+
className: q.page,
|
|
1010
1010
|
onClick: () => n(Math.min(t, e + 1)),
|
|
1011
1011
|
disabled: e >= t,
|
|
1012
1012
|
"aria-label": "Próxima página",
|
|
@@ -1016,7 +1016,7 @@ function wa({
|
|
|
1016
1016
|
s && /* @__PURE__ */ l(
|
|
1017
1017
|
"select",
|
|
1018
1018
|
{
|
|
1019
|
-
className:
|
|
1019
|
+
className: q.sizeSelect,
|
|
1020
1020
|
value: r,
|
|
1021
1021
|
onChange: (d) => s(Number(d.target.value)),
|
|
1022
1022
|
"aria-label": "Itens por página",
|
|
@@ -1029,18 +1029,18 @@ function wa({
|
|
|
1029
1029
|
] })
|
|
1030
1030
|
] });
|
|
1031
1031
|
}
|
|
1032
|
-
const bs = "tempest_wrapper_BQek1", vs = "tempest_bar_uC-0x", Ns = "tempest_fill_vmg7x", $s = "tempest_success_gWJ8U", ks = "tempest_warning_DGkPO",
|
|
1032
|
+
const bs = "tempest_wrapper_BQek1", vs = "tempest_bar_uC-0x", Ns = "tempest_fill_vmg7x", $s = "tempest_success_gWJ8U", ks = "tempest_warning_DGkPO", xs = "tempest_danger_gfwHh", Ss = "tempest_indeterminate_HojUj", Es = "tempest_tempest-progress-loop_0nEdF", Ts = "tempest_label_qqHJM", X = {
|
|
1033
1033
|
wrapper: bs,
|
|
1034
1034
|
bar: vs,
|
|
1035
1035
|
fill: Ns,
|
|
1036
1036
|
success: $s,
|
|
1037
1037
|
warning: ks,
|
|
1038
|
-
danger:
|
|
1039
|
-
indeterminate:
|
|
1040
|
-
tempestProgressLoop:
|
|
1041
|
-
label:
|
|
1038
|
+
danger: xs,
|
|
1039
|
+
indeterminate: Ss,
|
|
1040
|
+
tempestProgressLoop: Es,
|
|
1041
|
+
label: Ts
|
|
1042
1042
|
};
|
|
1043
|
-
function
|
|
1043
|
+
function va({
|
|
1044
1044
|
value: e = 0,
|
|
1045
1045
|
max: t = 100,
|
|
1046
1046
|
variant: n = "primary",
|
|
@@ -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), Na = O(function({
|
|
1091
1091
|
label: t,
|
|
1092
1092
|
description: n,
|
|
1093
1093
|
value: r,
|
|
@@ -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 $a({
|
|
1135
1135
|
value: e,
|
|
1136
1136
|
defaultValue: t,
|
|
1137
1137
|
onChange: n,
|
|
@@ -1165,7 +1165,7 @@ 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
|
+
}, ka = 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
|
}
|
|
@@ -1212,17 +1212,17 @@ function zs() {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
) });
|
|
1214
1214
|
}
|
|
1215
|
-
const Js = "tempest_wrapper_KS2K3",
|
|
1215
|
+
const Js = "tempest_wrapper_KS2K3", Gs = "tempest_label_Lmgos", qs = "tempest_required_PvDVJ", Hs = "tempest_field_h-wBy", Ks = "tempest_select_cjdcr", Vs = "tempest_caret_MdCao", Qs = "tempest_error_sw9MU", Ys = "tempest_helper_frosK", Xs = "tempest_errorText_-zd6i", j = {
|
|
1216
1216
|
wrapper: Js,
|
|
1217
|
-
label:
|
|
1218
|
-
required:
|
|
1217
|
+
label: Gs,
|
|
1218
|
+
required: qs,
|
|
1219
1219
|
field: Hs,
|
|
1220
1220
|
select: Ks,
|
|
1221
1221
|
caret: Vs,
|
|
1222
1222
|
error: Qs,
|
|
1223
1223
|
helper: Ys,
|
|
1224
1224
|
errorText: Xs
|
|
1225
|
-
},
|
|
1225
|
+
}, xa = O(function({
|
|
1226
1226
|
label: t,
|
|
1227
1227
|
helperText: n,
|
|
1228
1228
|
error: r,
|
|
@@ -1295,20 +1295,20 @@ function Sa({ variant: e = "rect", width: t, height: n, className: r, style: s }
|
|
|
1295
1295
|
}
|
|
1296
1296
|
);
|
|
1297
1297
|
}
|
|
1298
|
-
const ro = "tempest_spinner_GpFZS", so = "tempest_tempest-spinner_wKVCY", oo = "tempest_sm_3sIoD", io = "tempest_md_M2sPj", ao = "tempest_lg_IxTw2",
|
|
1298
|
+
const ro = "tempest_spinner_GpFZS", so = "tempest_tempest-spinner_wKVCY", oo = "tempest_sm_3sIoD", io = "tempest_md_M2sPj", ao = "tempest_lg_IxTw2", Te = {
|
|
1299
1299
|
spinner: ro,
|
|
1300
1300
|
tempestSpinner: so,
|
|
1301
1301
|
sm: oo,
|
|
1302
1302
|
md: io,
|
|
1303
1303
|
lg: ao
|
|
1304
1304
|
};
|
|
1305
|
-
function
|
|
1305
|
+
function Ea({ 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: _(Te.spinner, Te[e], t)
|
|
1312
1312
|
}
|
|
1313
1313
|
);
|
|
1314
1314
|
}
|
|
@@ -1364,7 +1364,7 @@ const _o = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest
|
|
|
1364
1364
|
track: bo,
|
|
1365
1365
|
thumb: vo,
|
|
1366
1366
|
label: No
|
|
1367
|
-
},
|
|
1367
|
+
}, Ca = O(function({ label: t, disabled: n, wrapperClassName: r, className: s, ...o }, i) {
|
|
1368
1368
|
return /* @__PURE__ */ w("label", { className: _(Z.wrapper, n && Z.disabled, r), children: [
|
|
1369
1369
|
/* @__PURE__ */ l(
|
|
1370
1370
|
"input",
|
|
@@ -1380,18 +1380,18 @@ const _o = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest
|
|
|
1380
1380
|
/* @__PURE__ */ l("span", { className: Z.track, "aria-hidden": !0, children: /* @__PURE__ */ l("span", { className: Z.thumb }) }),
|
|
1381
1381
|
t && /* @__PURE__ */ l("span", { className: Z.label, children: t })
|
|
1382
1382
|
] });
|
|
1383
|
-
}), $o = "tempest_scroll_unrJp", ko = "tempest_table_Dkosn",
|
|
1383
|
+
}), $o = "tempest_scroll_unrJp", ko = "tempest_table_Dkosn", xo = "tempest_th_PNuEx", So = "tempest_td_jv9tA", Eo = "tempest_tr_7UG8J", To = "tempest_clickable_B6Si-", Co = "tempest_alignRight_9hY0G", Lo = "tempest_alignCenter_YiUQy", Io = "tempest_emptyRow_kdMiv", R = {
|
|
1384
1384
|
scroll: $o,
|
|
1385
1385
|
table: ko,
|
|
1386
|
-
th:
|
|
1387
|
-
td:
|
|
1388
|
-
tr:
|
|
1389
|
-
clickable:
|
|
1386
|
+
th: xo,
|
|
1387
|
+
td: So,
|
|
1388
|
+
tr: Eo,
|
|
1389
|
+
clickable: To,
|
|
1390
1390
|
alignRight: Co,
|
|
1391
1391
|
alignCenter: Lo,
|
|
1392
1392
|
emptyRow: Io
|
|
1393
1393
|
};
|
|
1394
|
-
function
|
|
1394
|
+
function La({
|
|
1395
1395
|
columns: e,
|
|
1396
1396
|
data: t,
|
|
1397
1397
|
rowKey: n,
|
|
@@ -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 Ia({
|
|
1450
1450
|
items: e,
|
|
1451
1451
|
defaultId: t,
|
|
1452
1452
|
activeId: n,
|
|
@@ -1497,7 +1497,7 @@ 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
|
+
}, Da = 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
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: [
|
|
@@ -1517,16 +1517,16 @@ const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_re
|
|
|
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",
|
|
1520
|
+
}), Jo = "tempest_trigger_Dmc5E", Go = "tempest_bubble_TPGHB", qo = "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
|
-
bubble:
|
|
1523
|
-
tempestTooltipIn:
|
|
1522
|
+
bubble: Go,
|
|
1523
|
+
tempestTooltipIn: qo,
|
|
1524
1524
|
top: Ho,
|
|
1525
1525
|
bottom: Ko,
|
|
1526
1526
|
left: Vo,
|
|
1527
1527
|
right: Qo
|
|
1528
1528
|
};
|
|
1529
|
-
function
|
|
1529
|
+
function Ma({
|
|
1530
1530
|
content: e,
|
|
1531
1531
|
placement: t = "top",
|
|
1532
1532
|
children: n,
|
|
@@ -1573,15 +1573,15 @@ 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 Pa() {
|
|
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
|
|
1582
|
-
const [n, r] = v([]), s =
|
|
1581
|
+
function Aa({ children: e, defaultDuration: t = 4e3 }) {
|
|
1582
|
+
const [n, r] = v([]), s = E(0), o = S((a) => {
|
|
1583
1583
|
r((u) => u.filter((d) => d.id !== a));
|
|
1584
|
-
}, []), i =
|
|
1584
|
+
}, []), i = S(
|
|
1585
1585
|
(a) => {
|
|
1586
1586
|
const u = a.id ?? `toast-${++s.current}`, d = {
|
|
1587
1587
|
id: u,
|
|
@@ -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 Ra({
|
|
1657
1657
|
items: e,
|
|
1658
1658
|
itemHeight: t,
|
|
1659
1659
|
renderItem: n,
|
|
@@ -1663,7 +1663,7 @@ function Aa({
|
|
|
1663
1663
|
className: i,
|
|
1664
1664
|
style: c
|
|
1665
1665
|
}) {
|
|
1666
|
-
const a =
|
|
1666
|
+
const a = E(null), [u, d] = v(0), [p, f] = v(0);
|
|
1667
1667
|
k(() => {
|
|
1668
1668
|
const y = a.current;
|
|
1669
1669
|
if (!y || (f(y.clientHeight), typeof ResizeObserver > "u")) return;
|
|
@@ -1695,18 +1695,18 @@ function Aa({
|
|
|
1695
1695
|
}
|
|
1696
1696
|
);
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function Fa(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
|
|
1706
|
-
const [n, r] = v(e), [s, o] = v(t), i =
|
|
1705
|
+
function Oa(e = 1, t = 50) {
|
|
1706
|
+
const [n, r] = v(e), [s, o] = v(t), i = S(() => r(1), []);
|
|
1707
1707
|
return { page: n, size: s, setPage: r, setSize: o, reset: i };
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function Wa(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 Oa(e, t, n) {
|
|
|
1717
1717
|
) : e;
|
|
1718
1718
|
}, [e, t, n]);
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Ba(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 Wa(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 ja() {
|
|
1729
1729
|
const [e, t] = v(
|
|
1730
1730
|
() => typeof navigator > "u" ? !0 : navigator.onLine
|
|
1731
1731
|
);
|
|
@@ -1737,7 +1737,7 @@ function Ba() {
|
|
|
1737
1737
|
};
|
|
1738
1738
|
}, []), e;
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function Ua() {
|
|
1741
1741
|
const [e, t] = v(
|
|
1742
1742
|
() => typeof document > "u" ? "visible" : document.visibilityState
|
|
1743
1743
|
);
|
|
@@ -1747,7 +1747,7 @@ function ja() {
|
|
|
1747
1747
|
return document.addEventListener("visibilitychange", n), () => document.removeEventListener("visibilitychange", n);
|
|
1748
1748
|
}, []), e;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function za(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 Ua(e, t = {}) {
|
|
|
1761
1761
|
return u.observe(a), () => u.disconnect();
|
|
1762
1762
|
}, [e, s, o, i, c]), n;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Ja(e) {
|
|
1765
1765
|
const [t, n] = v(null);
|
|
1766
1766
|
return k(() => {
|
|
1767
1767
|
const r = e.current;
|
|
@@ -1775,12 +1775,12 @@ function za(e) {
|
|
|
1775
1775
|
return s.observe(r), () => s.disconnect();
|
|
1776
1776
|
}, [e]), t;
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1779
|
-
const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s =
|
|
1778
|
+
function Ga(e = {}) {
|
|
1779
|
+
const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s = E(null), o = S(() => {
|
|
1780
1780
|
s.current && (clearTimeout(s.current), s.current = null), r(!1);
|
|
1781
1781
|
}, []);
|
|
1782
1782
|
k(() => () => o(), [o]);
|
|
1783
|
-
const i =
|
|
1783
|
+
const i = S(
|
|
1784
1784
|
async (c) => {
|
|
1785
1785
|
try {
|
|
1786
1786
|
if (typeof navigator < "u" && navigator.clipboard?.writeText)
|
|
@@ -1832,7 +1832,7 @@ function qa(e, t, n = {}) {
|
|
|
1832
1832
|
t
|
|
1833
1833
|
]);
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Ha() {
|
|
1836
1836
|
const [e, t] = v(null), [n, r] = v(!1);
|
|
1837
1837
|
k(() => {
|
|
1838
1838
|
if (typeof window > "u") return;
|
|
@@ -1845,7 +1845,7 @@ function Ga() {
|
|
|
1845
1845
|
window.removeEventListener("beforeinstallprompt", o), window.removeEventListener("appinstalled", i);
|
|
1846
1846
|
};
|
|
1847
1847
|
}, []);
|
|
1848
|
-
const s =
|
|
1848
|
+
const s = S(async () => {
|
|
1849
1849
|
if (!e) return "unsupported";
|
|
1850
1850
|
await e.prompt();
|
|
1851
1851
|
const o = await e.userChoice;
|
|
@@ -1865,7 +1865,7 @@ const Ce = [
|
|
|
1865
1865
|
"wheel",
|
|
1866
1866
|
"scroll"
|
|
1867
1867
|
];
|
|
1868
|
-
function
|
|
1868
|
+
function Ka(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 Ha(e = 6e4) {
|
|
|
1882
1882
|
};
|
|
1883
1883
|
}, [e]), t;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function Va(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 Ka(e = {}) {
|
|
|
1921
1921
|
r.timeout
|
|
1922
1922
|
]), s;
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function Qa(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 Ya(e, t) {
|
|
1942
1942
|
k(() => {
|
|
1943
1943
|
if (!t) return;
|
|
1944
1944
|
const n = e.current;
|
|
@@ -1968,9 +1968,9 @@ function Qa(e, t) {
|
|
|
1968
1968
|
};
|
|
1969
1969
|
}, [e, t]);
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1972
|
-
const t =
|
|
1973
|
-
return t.current = e,
|
|
1971
|
+
function Xa(e) {
|
|
1972
|
+
const t = E(e);
|
|
1973
|
+
return t.current = e, S((...n) => t.current(...n), []);
|
|
1974
1974
|
}
|
|
1975
1975
|
function Ne(e, t) {
|
|
1976
1976
|
if (Object.is(e, t)) return !0;
|
|
@@ -1982,8 +1982,8 @@ function Ne(e, t) {
|
|
|
1982
1982
|
(s) => Ne(e[s], t[s])
|
|
1983
1983
|
);
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const t =
|
|
1985
|
+
function Za(e) {
|
|
1986
|
+
const t = E(e);
|
|
1987
1987
|
return Ne(t.current, e) || (t.current = e), t.current;
|
|
1988
1988
|
}
|
|
1989
1989
|
function gi(e, t, n) {
|
|
@@ -2014,7 +2014,7 @@ async function Le(e) {
|
|
|
2014
2014
|
body: t
|
|
2015
2015
|
};
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function ec(e) {
|
|
2018
2018
|
const t = e.fetcher ?? globalThis.fetch.bind(globalThis);
|
|
2019
2019
|
function n() {
|
|
2020
2020
|
const i = e.getToken?.();
|
|
@@ -2062,7 +2062,7 @@ function Za(e) {
|
|
|
2062
2062
|
upload: o
|
|
2063
2063
|
};
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function tc(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 nc(e) {
|
|
2090
2090
|
const {
|
|
2091
2091
|
url: t,
|
|
2092
2092
|
body: n,
|
|
@@ -2167,7 +2167,7 @@ function wi(e, t) {
|
|
|
2167
2167
|
);
|
|
2168
2168
|
});
|
|
2169
2169
|
}
|
|
2170
|
-
async function
|
|
2170
|
+
async function rc(e, t = {}) {
|
|
2171
2171
|
const {
|
|
2172
2172
|
retries: n = 3,
|
|
2173
2173
|
initialDelay: r = 300,
|
|
@@ -2190,14 +2190,14 @@ async function nc(e, t = {}) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
throw u;
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function sc() {
|
|
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 =
|
|
2199
|
+
function oc(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 = E(r), m = E(!1), g = E(null);
|
|
2201
2201
|
async function h() {
|
|
2202
2202
|
if (!(f.current || m.current)) {
|
|
2203
2203
|
m.current = !0;
|
|
@@ -2232,7 +2232,7 @@ function sc(e, t) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function ic(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 oc(e = {}) {
|
|
|
2256
2256
|
)
|
|
2257
2257
|
);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function ac({ 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 cc(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 ac(e, t = 0) {
|
|
|
2287
2287
|
return !0;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function lc(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 cc(e, t = {}) {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
return Xe(o);
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function uc(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
|
+
}, dc = {
|
|
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 pc(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 fc({ children: e, client: t, defaultOptions: n }) {
|
|
2335
2335
|
const [r] = v(
|
|
2336
2336
|
() => t ?? new et({
|
|
2337
2337
|
defaultOptions: {
|
|
@@ -2373,12 +2373,12 @@ function ki(e, t = {}) {
|
|
|
2373
2373
|
onStatusChange: f
|
|
2374
2374
|
} = t;
|
|
2375
2375
|
let m = null, g = null, h = 0, b = "idle", y = !1;
|
|
2376
|
-
function N(
|
|
2377
|
-
b !==
|
|
2376
|
+
function N(x) {
|
|
2377
|
+
b !== x && (b = x, f?.(x));
|
|
2378
2378
|
}
|
|
2379
|
-
function $(
|
|
2380
|
-
s.includes(
|
|
2381
|
-
event:
|
|
2379
|
+
function $(x, L) {
|
|
2380
|
+
s.includes(x) || d?.({
|
|
2381
|
+
event: x,
|
|
2382
2382
|
data: a(L.data),
|
|
2383
2383
|
id: L.lastEventId || void 0,
|
|
2384
2384
|
raw: L
|
|
@@ -2390,23 +2390,23 @@ function ki(e, t = {}) {
|
|
|
2390
2390
|
N("error");
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
|
-
const
|
|
2394
|
-
h += 1, g = setTimeout(I,
|
|
2393
|
+
const x = Math.min(i * 2 ** h, c);
|
|
2394
|
+
h += 1, g = setTimeout(I, x);
|
|
2395
2395
|
}
|
|
2396
2396
|
function I() {
|
|
2397
2397
|
if (y) return;
|
|
2398
2398
|
m && m.close(), N("connecting");
|
|
2399
|
-
const
|
|
2400
|
-
m =
|
|
2399
|
+
const x = new EventSource(e, { withCredentials: n });
|
|
2400
|
+
m = x, x.onopen = () => {
|
|
2401
2401
|
h = 0, N("open"), u?.();
|
|
2402
|
-
},
|
|
2402
|
+
}, x.onmessage = (L) => $("message", L);
|
|
2403
2403
|
for (const L of r)
|
|
2404
|
-
|
|
2404
|
+
x.addEventListener(L, (he) => $(L, he));
|
|
2405
2405
|
for (const L of s)
|
|
2406
|
-
|
|
2406
|
+
x.addEventListener(L, () => {
|
|
2407
2407
|
});
|
|
2408
|
-
|
|
2409
|
-
p?.(L),
|
|
2408
|
+
x.onerror = (L) => {
|
|
2409
|
+
p?.(L), x.close(), m = null, N("closed"), C();
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
2412
2412
|
function fe() {
|
|
@@ -2423,8 +2423,8 @@ function ki(e, t = {}) {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
};
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2427
|
-
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u =
|
|
2426
|
+
function mc(e, t = {}) {
|
|
2427
|
+
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = E(null), d = E(r);
|
|
2428
2428
|
return d.current = r, k(() => {
|
|
2429
2429
|
if (!n || !e) {
|
|
2430
2430
|
i("idle");
|
|
@@ -2446,7 +2446,7 @@ function fc(e, t = {}) {
|
|
|
2446
2446
|
reconnect: () => u.current?.()
|
|
2447
2447
|
};
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function xi(e) {
|
|
2450
2450
|
const t = "=".repeat((4 - e.length % 4) % 4), n = (e + t).replace(/-/g, "+").replace(/_/g, "/"), r = window.atob(n), s = new ArrayBuffer(r.length), o = new Uint8Array(s);
|
|
2451
2451
|
for (let i = 0; i < r.length; i++)
|
|
2452
2452
|
o[i] = r.charCodeAt(i);
|
|
@@ -2460,12 +2460,12 @@ class De extends Error {
|
|
|
2460
2460
|
super("Web Push não suportado neste navegador."), this.name = "WebPushUnsupportedError";
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
|
-
class
|
|
2463
|
+
class Si extends Error {
|
|
2464
2464
|
constructor() {
|
|
2465
2465
|
super("Permissão de notificação negada pelo usuário."), this.name = "WebPushPermissionDeniedError";
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
|
-
class
|
|
2468
|
+
class Ei {
|
|
2469
2469
|
config;
|
|
2470
2470
|
constructor(t) {
|
|
2471
2471
|
this.config = t;
|
|
@@ -2510,13 +2510,13 @@ class Ti {
|
|
|
2510
2510
|
* @throws {WebPushPermissionDeniedError} If the user denies the prompt.
|
|
2511
2511
|
*/
|
|
2512
2512
|
async subscribe() {
|
|
2513
|
-
if (await this.requestPermission() !== "granted") throw new
|
|
2513
|
+
if (await this.requestPermission() !== "granted") throw new Si();
|
|
2514
2514
|
const n = await this.registration(), r = await n.pushManager.getSubscription();
|
|
2515
2515
|
if (r)
|
|
2516
2516
|
return await this.config.onSubscribe(r.toJSON()), r;
|
|
2517
2517
|
const s = await n.pushManager.subscribe({
|
|
2518
2518
|
userVisibleOnly: !0,
|
|
2519
|
-
applicationServerKey:
|
|
2519
|
+
applicationServerKey: xi(this.config.vapidPublicKey)
|
|
2520
2520
|
});
|
|
2521
2521
|
return await this.config.onSubscribe(s.toJSON()), s;
|
|
2522
2522
|
}
|
|
@@ -2531,11 +2531,11 @@ class Ti {
|
|
|
2531
2531
|
return t ? (this.config.onUnsubscribe && await this.config.onUnsubscribe(t.toJSON()), t.unsubscribe()) : !1;
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2535
|
-
const t =
|
|
2534
|
+
function hc(e) {
|
|
2535
|
+
const t = E(e);
|
|
2536
2536
|
t.current = e;
|
|
2537
2537
|
const n = W(
|
|
2538
|
-
() => new
|
|
2538
|
+
() => new Ei({
|
|
2539
2539
|
vapidPublicKey: e.vapidPublicKey,
|
|
2540
2540
|
onSubscribe: (h) => t.current.onSubscribe(h),
|
|
2541
2541
|
onUnsubscribe: (h) => t.current.onUnsubscribe?.(h),
|
|
@@ -2544,7 +2544,7 @@ function mc(e) {
|
|
|
2544
2544
|
[e.vapidPublicKey, e.getRegistration]
|
|
2545
2545
|
), [r] = v(() => ue()), [s, o] = v(
|
|
2546
2546
|
() => n.permission()
|
|
2547
|
-
), [i, c] = v(!1), [a, u] = v(!1), [d, p] = v(null), f =
|
|
2547
|
+
), [i, c] = v(!1), [a, u] = v(!1), [d, p] = v(null), f = S(async () => {
|
|
2548
2548
|
if (r) {
|
|
2549
2549
|
o(n.permission());
|
|
2550
2550
|
try {
|
|
@@ -2558,7 +2558,7 @@ function mc(e) {
|
|
|
2558
2558
|
k(() => {
|
|
2559
2559
|
f();
|
|
2560
2560
|
}, [f]);
|
|
2561
|
-
const m =
|
|
2561
|
+
const m = S(async () => {
|
|
2562
2562
|
if (r) {
|
|
2563
2563
|
u(!0), p(null);
|
|
2564
2564
|
try {
|
|
@@ -2569,7 +2569,7 @@ function mc(e) {
|
|
|
2569
2569
|
u(!1);
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
}, [n, r]), g =
|
|
2572
|
+
}, [n, r]), g = S(async () => {
|
|
2573
2573
|
if (r) {
|
|
2574
2574
|
u(!0), p(null);
|
|
2575
2575
|
try {
|
|
@@ -2592,7 +2592,7 @@ function mc(e) {
|
|
|
2592
2592
|
refresh: f
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
|
-
async function
|
|
2595
|
+
async function gc(e) {
|
|
2596
2596
|
if (typeof navigator > "u" || !("serviceWorker" in navigator))
|
|
2597
2597
|
return null;
|
|
2598
2598
|
try {
|
|
@@ -2609,10 +2609,10 @@ async function hc(e) {
|
|
|
2609
2609
|
return e.onError?.(t), null;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function _c(e) {
|
|
2613
2613
|
e.postMessage({ type: "SKIP_WAITING" });
|
|
2614
2614
|
}
|
|
2615
|
-
async function
|
|
2615
|
+
async function yc() {
|
|
2616
2616
|
if (typeof navigator > "u" || !("serviceWorker" in navigator)) return 0;
|
|
2617
2617
|
const e = await navigator.serviceWorker.getRegistrations();
|
|
2618
2618
|
let t = 0;
|
|
@@ -2620,11 +2620,11 @@ async function _c() {
|
|
|
2620
2620
|
await n.unregister() && (t += 1);
|
|
2621
2621
|
return t;
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function Se() {
|
|
2624
2624
|
return globalThis;
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2627
|
-
const t =
|
|
2626
|
+
function wc(e = {}) {
|
|
2627
|
+
const t = Se(), { defaultTitle: n = "Notificação", defaultIcon: r, defaultBadge: s, transform: o } = e;
|
|
2628
2628
|
t.addEventListener("push", (i) => {
|
|
2629
2629
|
if (!i.data) return;
|
|
2630
2630
|
let c;
|
|
@@ -2646,8 +2646,8 @@ function yc(e = {}) {
|
|
|
2646
2646
|
i.waitUntil(t.registration.showNotification(u, d));
|
|
2647
2647
|
});
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2650
|
-
const t =
|
|
2649
|
+
function bc(e = {}) {
|
|
2650
|
+
const t = Se(), n = e.resolveUrl ?? ((r) => {
|
|
2651
2651
|
if (typeof r == "string") return r;
|
|
2652
2652
|
if (r && typeof r == "object" && "url" in r) {
|
|
2653
2653
|
const s = r.url;
|
|
@@ -2672,8 +2672,8 @@ function wc(e = {}) {
|
|
|
2672
2672
|
);
|
|
2673
2673
|
});
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2676
|
-
const e =
|
|
2675
|
+
function vc() {
|
|
2676
|
+
const e = Se();
|
|
2677
2677
|
e.addEventListener("message", (t) => {
|
|
2678
2678
|
t.data?.type === "SKIP_WAITING" && e.skipWaiting();
|
|
2679
2679
|
});
|
|
@@ -2705,32 +2705,32 @@ let we = null;
|
|
|
2705
2705
|
function Ue() {
|
|
2706
2706
|
return we || (we = je()), we;
|
|
2707
2707
|
}
|
|
2708
|
-
async function
|
|
2708
|
+
async function Nc(e, t) {
|
|
2709
2709
|
return Ue().play(e, t);
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function $c() {
|
|
2712
2712
|
Ue().stop();
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2715
|
-
const e =
|
|
2714
|
+
function kc() {
|
|
2715
|
+
const e = E(null), [t, n] = v(!1);
|
|
2716
2716
|
e.current || (e.current = je()), k(() => () => {
|
|
2717
2717
|
e.current?.stop();
|
|
2718
2718
|
}, []);
|
|
2719
|
-
const r =
|
|
2719
|
+
const r = S(async (o, i) => {
|
|
2720
2720
|
await e.current.play(o, i) && n(!0);
|
|
2721
|
-
}, []), s =
|
|
2721
|
+
}, []), s = S(() => {
|
|
2722
2722
|
e.current?.stop();
|
|
2723
2723
|
}, []);
|
|
2724
2724
|
return { play: r, stop: s, unlocked: t };
|
|
2725
2725
|
}
|
|
2726
|
-
class
|
|
2726
|
+
class Ti extends ot {
|
|
2727
2727
|
store;
|
|
2728
2728
|
constructor(t, n, r, s) {
|
|
2729
2729
|
super(t), this.version(n).stores({ [r]: s }), this.store = this.table(r);
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2733
|
-
const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new
|
|
2732
|
+
function xc(e) {
|
|
2733
|
+
const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new Ti(t, n, r, s), a = c.store;
|
|
2734
2734
|
function u(p, f) {
|
|
2735
2735
|
return !i || !f ? p : { ...p, [i]: f };
|
|
2736
2736
|
}
|
|
@@ -2791,9 +2791,9 @@ class Sc extends Ze {
|
|
|
2791
2791
|
return typeof n == "function" ? n({ error: t, reset: this.reset }) : n;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function Ec() {
|
|
2795
2795
|
const [, e] = v(null);
|
|
2796
|
-
return
|
|
2796
|
+
return S((t) => {
|
|
2797
2797
|
e(() => {
|
|
2798
2798
|
throw t instanceof Error ? t : new Error(String(t));
|
|
2799
2799
|
});
|
|
@@ -2823,7 +2823,7 @@ function Li(e) {
|
|
|
2823
2823
|
return { values: {}, errors: o };
|
|
2824
2824
|
};
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function Cc(e, t = {}) {
|
|
2827
2827
|
return it({
|
|
2828
2828
|
...t,
|
|
2829
2829
|
resolver: Li(e)
|
|
@@ -2832,7 +2832,7 @@ function Ec(e, t = {}) {
|
|
|
2832
2832
|
function ce(e) {
|
|
2833
2833
|
return e.replace(/\D/g, "");
|
|
2834
2834
|
}
|
|
2835
|
-
function
|
|
2835
|
+
function Lc(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 Cc(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 Ic(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 Dc(e) {
|
|
2866
2866
|
return ce(e);
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Mc(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 Pc(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 Ac(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 Rc(e) {
|
|
2893
2893
|
return new Intl.NumberFormat("pt-BR", {
|
|
2894
2894
|
style: "percent",
|
|
2895
2895
|
minimumFractionDigits: 1,
|
|
@@ -2899,7 +2899,7 @@ function Ac(e) {
|
|
|
2899
2899
|
function pe(e, t = "numeric") {
|
|
2900
2900
|
return O(function({ value: r, onChange: s, ...o }, i) {
|
|
2901
2901
|
return /* @__PURE__ */ l(
|
|
2902
|
-
|
|
2902
|
+
xe,
|
|
2903
2903
|
{
|
|
2904
2904
|
...o,
|
|
2905
2905
|
ref: i,
|
|
@@ -2910,7 +2910,7 @@ function pe(e, t = "numeric") {
|
|
|
2910
2910
|
);
|
|
2911
2911
|
});
|
|
2912
2912
|
}
|
|
2913
|
-
const
|
|
2913
|
+
const Fc = pe(Pi), Oc = pe(Di), Wc = pe(Mi, "tel"), Bc = 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,9 +2918,9 @@ 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 jc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s = "pt-BR", ...o }, i) {
|
|
2922
2922
|
return /* @__PURE__ */ l(
|
|
2923
|
-
|
|
2923
|
+
xe,
|
|
2924
2924
|
{
|
|
2925
2925
|
...o,
|
|
2926
2926
|
ref: i,
|
|
@@ -2931,8 +2931,8 @@ const Bc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s =
|
|
|
2931
2931
|
}
|
|
2932
2932
|
);
|
|
2933
2933
|
});
|
|
2934
|
-
function
|
|
2935
|
-
const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i =
|
|
2934
|
+
function Uc() {
|
|
2935
|
+
const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i = S(async (a) => {
|
|
2936
2936
|
const u = a.replace(/\D/g, "");
|
|
2937
2937
|
if (u.length !== 8)
|
|
2938
2938
|
return r("CEP inválido."), null;
|
|
@@ -2945,7 +2945,7 @@ function jc() {
|
|
|
2945
2945
|
} finally {
|
|
2946
2946
|
t(!1);
|
|
2947
2947
|
}
|
|
2948
|
-
}, []), c =
|
|
2948
|
+
}, []), c = S(() => {
|
|
2949
2949
|
t(!1), r(null), o(null);
|
|
2950
2950
|
}, []);
|
|
2951
2951
|
return { loading: e, error: n, data: s, lookup: i, reset: c };
|
|
@@ -2973,8 +2973,8 @@ function Oi(e, t = {}) {
|
|
|
2973
2973
|
onStatusChange: m
|
|
2974
2974
|
} = t;
|
|
2975
2975
|
let g = null, h = null, b = null, y = 0, N = "idle", $ = !1;
|
|
2976
|
-
function C(
|
|
2977
|
-
N !==
|
|
2976
|
+
function C(T) {
|
|
2977
|
+
N !== T && (N = T, m?.(T));
|
|
2978
2978
|
}
|
|
2979
2979
|
function I() {
|
|
2980
2980
|
b && (clearInterval(b), b = null);
|
|
@@ -2990,37 +2990,37 @@ function Oi(e, t = {}) {
|
|
|
2990
2990
|
C("error");
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
|
-
const
|
|
2994
|
-
y += 1, h = setTimeout(
|
|
2993
|
+
const T = Math.min(s * 2 ** y, o);
|
|
2994
|
+
y += 1, h = setTimeout(x, T);
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function x() {
|
|
2997
2997
|
if ($) return;
|
|
2998
2998
|
g && (g.onopen = null, g.onmessage = null, g.onclose = null, g.onerror = null, g.close()), C("connecting");
|
|
2999
|
-
const
|
|
3000
|
-
g =
|
|
2999
|
+
const T = new WebSocket(e, n);
|
|
3000
|
+
g = T, T.onopen = (M) => {
|
|
3001
3001
|
y = 0, C("open"), fe(), u?.(M);
|
|
3002
|
-
},
|
|
3002
|
+
}, T.onmessage = (M) => {
|
|
3003
3003
|
const Qe = typeof M.data == "string" ? M.data : "";
|
|
3004
3004
|
d?.({
|
|
3005
3005
|
data: a(Qe),
|
|
3006
3006
|
raw: M
|
|
3007
3007
|
});
|
|
3008
|
-
},
|
|
3008
|
+
}, T.onerror = (M) => {
|
|
3009
3009
|
f?.(M);
|
|
3010
|
-
},
|
|
3010
|
+
}, T.onclose = (M) => {
|
|
3011
3011
|
I(), p?.(M), g = null, C("closed"), !$ && !M.wasClean && me();
|
|
3012
3012
|
};
|
|
3013
3013
|
}
|
|
3014
|
-
function L(
|
|
3015
|
-
return g?.readyState !== WebSocket.OPEN ? !1 : (g.send(
|
|
3014
|
+
function L(T) {
|
|
3015
|
+
return g?.readyState !== WebSocket.OPEN ? !1 : (g.send(T), !0);
|
|
3016
3016
|
}
|
|
3017
|
-
function he(
|
|
3018
|
-
$ = !0, h && (clearTimeout(h), h = null), I(), y = 0, g && (C("closing"), g.close(
|
|
3017
|
+
function he(T, M) {
|
|
3018
|
+
$ = !0, h && (clearTimeout(h), h = null), I(), y = 0, g && (C("closing"), g.close(T, M), g = null), C("closed");
|
|
3019
3019
|
}
|
|
3020
3020
|
function Ve() {
|
|
3021
|
-
h && (clearTimeout(h), h = null), y = 0, $ = !1,
|
|
3021
|
+
h && (clearTimeout(h), h = null), y = 0, $ = !1, x();
|
|
3022
3022
|
}
|
|
3023
|
-
return
|
|
3023
|
+
return x(), {
|
|
3024
3024
|
send: L,
|
|
3025
3025
|
close: he,
|
|
3026
3026
|
reconnect: Ve,
|
|
@@ -3029,8 +3029,8 @@ function Oi(e, t = {}) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
};
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3033
|
-
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u =
|
|
3032
|
+
function zc(e, t = {}) {
|
|
3033
|
+
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = E(null), d = E(r);
|
|
3034
3034
|
d.current = r, k(() => {
|
|
3035
3035
|
if (!n || !e) {
|
|
3036
3036
|
i("idle");
|
|
@@ -3047,10 +3047,10 @@ function Uc(e, t = {}) {
|
|
|
3047
3047
|
m.close(), u.current = null;
|
|
3048
3048
|
};
|
|
3049
3049
|
}, [e, n]);
|
|
3050
|
-
const p =
|
|
3050
|
+
const p = S(
|
|
3051
3051
|
(m) => u.current?.send(m) ?? !1,
|
|
3052
3052
|
[]
|
|
3053
|
-
), f =
|
|
3053
|
+
), f = S(() => {
|
|
3054
3054
|
u.current?.reconnect();
|
|
3055
3055
|
}, []);
|
|
3056
3056
|
return { status: o, lastMessage: c, send: p, reconnect: f };
|
|
@@ -3068,7 +3068,7 @@ function Wi(e) {
|
|
|
3068
3068
|
return null;
|
|
3069
3069
|
}
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3071
|
+
function Jc({
|
|
3072
3072
|
children: e,
|
|
3073
3073
|
defaultTheme: t = "system",
|
|
3074
3074
|
storageKey: n = "tempest-theme",
|
|
@@ -3077,7 +3077,7 @@ function zc({
|
|
|
3077
3077
|
}) {
|
|
3078
3078
|
const [o, i] = v(
|
|
3079
3079
|
() => Wi(n) ?? t
|
|
3080
|
-
), [c, a] = v(() => Me(o)), u =
|
|
3080
|
+
), [c, a] = v(() => Me(o)), u = E(r);
|
|
3081
3081
|
u.current = r, k(() => {
|
|
3082
3082
|
const m = u.current?.() ?? document.documentElement;
|
|
3083
3083
|
if (!m) return;
|
|
@@ -3091,7 +3091,7 @@ function zc({
|
|
|
3091
3091
|
};
|
|
3092
3092
|
return m.addEventListener("change", g), () => m.removeEventListener("change", g);
|
|
3093
3093
|
}, [o, s]);
|
|
3094
|
-
const d =
|
|
3094
|
+
const d = S(
|
|
3095
3095
|
(m) => {
|
|
3096
3096
|
if (i(m), n && typeof window < "u")
|
|
3097
3097
|
try {
|
|
@@ -3100,7 +3100,7 @@ function zc({
|
|
|
3100
3100
|
}
|
|
3101
3101
|
},
|
|
3102
3102
|
[n]
|
|
3103
|
-
), p =
|
|
3103
|
+
), p = S(() => {
|
|
3104
3104
|
d(c === "dark" ? "light" : "dark");
|
|
3105
3105
|
}, [c, d]), f = W(
|
|
3106
3106
|
() => ({ theme: o, resolvedTheme: c, setTheme: d, toggle: p }),
|
|
@@ -3108,7 +3108,7 @@ function zc({
|
|
|
3108
3108
|
);
|
|
3109
3109
|
return /* @__PURE__ */ l(ze.Provider, { value: f, children: e });
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function Gc() {
|
|
3112
3112
|
const e = te(ze);
|
|
3113
3113
|
if (!e) throw new Error("useTheme must be used inside a <ThemeProvider>");
|
|
3114
3114
|
return e;
|
|
@@ -3126,7 +3126,7 @@ function qc(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 Hc(e = {}) {
|
|
3130
3130
|
const t = e.storageKey ?? "tempest-theme", n = e.defaultTheme ?? "system";
|
|
3131
3131
|
return `
|
|
3132
3132
|
(function(){try{
|
|
@@ -3185,7 +3185,7 @@ function Je(e) {
|
|
|
3185
3185
|
})
|
|
3186
3186
|
};
|
|
3187
3187
|
}
|
|
3188
|
-
const
|
|
3188
|
+
const Ge = ne(null);
|
|
3189
3189
|
function Bi(e, t) {
|
|
3190
3190
|
if (!e || typeof window > "u") return null;
|
|
3191
3191
|
try {
|
|
@@ -3195,7 +3195,7 @@ function Bi(e, t) {
|
|
|
3195
3195
|
return null;
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function Kc({
|
|
3199
3199
|
children: e,
|
|
3200
3200
|
locale: t,
|
|
3201
3201
|
fallbackLocale: n,
|
|
@@ -3208,7 +3208,7 @@ function Hc({
|
|
|
3208
3208
|
k(() => {
|
|
3209
3209
|
typeof document < "u" && document.documentElement.setAttribute("lang", i);
|
|
3210
3210
|
}, [i]);
|
|
3211
|
-
const a =
|
|
3211
|
+
const a = S(
|
|
3212
3212
|
(d) => {
|
|
3213
3213
|
if (c(d), s && typeof window < "u")
|
|
3214
3214
|
try {
|
|
@@ -3218,14 +3218,14 @@ function Hc({
|
|
|
3218
3218
|
},
|
|
3219
3219
|
[s]
|
|
3220
3220
|
), u = W(() => ({ ...Je({ locale: i, fallbackLocale: n, messages: r }), setLocale: a, availableLocales: o }), [i, n, r, a, o]);
|
|
3221
|
-
return /* @__PURE__ */ l(
|
|
3221
|
+
return /* @__PURE__ */ l(Ge.Provider, { value: u, children: e });
|
|
3222
3222
|
}
|
|
3223
3223
|
function ji() {
|
|
3224
|
-
const e = te(
|
|
3224
|
+
const e = te(Ge);
|
|
3225
3225
|
if (!e) throw new Error("useI18n must be used inside an <I18nProvider>");
|
|
3226
3226
|
return e;
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function Vc() {
|
|
3229
3229
|
return ji().t;
|
|
3230
3230
|
}
|
|
3231
3231
|
const Ae = ["debug", "info", "warn", "error"];
|
|
@@ -3264,18 +3264,18 @@ function Ji(e = {}) {
|
|
|
3264
3264
|
})
|
|
3265
3265
|
};
|
|
3266
3266
|
}
|
|
3267
|
-
const
|
|
3268
|
-
function
|
|
3267
|
+
const qe = ne(null);
|
|
3268
|
+
function Qc({ adapter: e, children: t }) {
|
|
3269
3269
|
k(() => (e.init?.(), () => {
|
|
3270
3270
|
e.flush?.();
|
|
3271
3271
|
}), [e]);
|
|
3272
3272
|
const n = W(() => e, [e]);
|
|
3273
|
-
return /* @__PURE__ */ l(
|
|
3273
|
+
return /* @__PURE__ */ l(qe.Provider, { value: n, children: t });
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3276
|
-
return te(
|
|
3275
|
+
function Yc() {
|
|
3276
|
+
return te(qe);
|
|
3277
3277
|
}
|
|
3278
|
-
const
|
|
3278
|
+
const Xc = {
|
|
3279
3279
|
identify(e) {
|
|
3280
3280
|
console.info("[telemetry] identify", e);
|
|
3281
3281
|
},
|
|
@@ -3286,7 +3286,7 @@ const Yc = {
|
|
|
3286
3286
|
console.error("[telemetry] exception", e, t);
|
|
3287
3287
|
}
|
|
3288
3288
|
};
|
|
3289
|
-
function
|
|
3289
|
+
function Gi(e) {
|
|
3290
3290
|
if (e === null) return null;
|
|
3291
3291
|
const { id: t, email: n, name: r, traits: s } = e;
|
|
3292
3292
|
return {
|
|
@@ -3296,14 +3296,14 @@ function qi(e) {
|
|
|
3296
3296
|
...s ?? null
|
|
3297
3297
|
};
|
|
3298
3298
|
}
|
|
3299
|
-
function
|
|
3299
|
+
function Zc(e) {
|
|
3300
3300
|
const { sentry: t, initOptions: n, flushTimeout: r = 2e3, breadcrumbCategory: s = "app" } = e;
|
|
3301
3301
|
return {
|
|
3302
3302
|
init() {
|
|
3303
3303
|
n && t.init && t.init(n);
|
|
3304
3304
|
},
|
|
3305
3305
|
identify(o) {
|
|
3306
|
-
t.setUser(
|
|
3306
|
+
t.setUser(Gi(o));
|
|
3307
3307
|
},
|
|
3308
3308
|
track(o) {
|
|
3309
3309
|
t.addBreadcrumb({
|
|
@@ -3321,8 +3321,47 @@ function Xc(e) {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
};
|
|
3323
3323
|
}
|
|
3324
|
+
function qi(e) {
|
|
3325
|
+
const { email: t, name: n, traits: r } = e;
|
|
3326
|
+
return {
|
|
3327
|
+
...t !== void 0 ? { email: t } : null,
|
|
3328
|
+
...n !== void 0 ? { name: n } : null,
|
|
3329
|
+
...r ?? null
|
|
3330
|
+
};
|
|
3331
|
+
}
|
|
3332
|
+
function el(e) {
|
|
3333
|
+
const { posthog: t, init: n } = e;
|
|
3334
|
+
return {
|
|
3335
|
+
init() {
|
|
3336
|
+
n && t.init && t.init(n.apiKey, n.options);
|
|
3337
|
+
},
|
|
3338
|
+
identify(r) {
|
|
3339
|
+
if (r === null) {
|
|
3340
|
+
t.reset?.();
|
|
3341
|
+
return;
|
|
3342
|
+
}
|
|
3343
|
+
r.id !== void 0 && t.identify(r.id, qi(r));
|
|
3344
|
+
},
|
|
3345
|
+
track(r) {
|
|
3346
|
+
t.capture(r.name, r.properties);
|
|
3347
|
+
},
|
|
3348
|
+
captureException(r, s) {
|
|
3349
|
+
if (t.captureException) {
|
|
3350
|
+
t.captureException(r, s);
|
|
3351
|
+
return;
|
|
3352
|
+
}
|
|
3353
|
+
const o = r instanceof Error ? r : new Error(String(r));
|
|
3354
|
+
t.capture("$exception", {
|
|
3355
|
+
$exception_message: o.message,
|
|
3356
|
+
$exception_type: o.name,
|
|
3357
|
+
$exception_stack_trace_raw: o.stack,
|
|
3358
|
+
...s
|
|
3359
|
+
});
|
|
3360
|
+
}
|
|
3361
|
+
};
|
|
3362
|
+
}
|
|
3324
3363
|
const He = ne(null);
|
|
3325
|
-
function
|
|
3364
|
+
function tl({ adapter: e, children: t }) {
|
|
3326
3365
|
const n = W(() => e, [e]);
|
|
3327
3366
|
return k(() => {
|
|
3328
3367
|
}, [n]), /* @__PURE__ */ l(He.Provider, { value: n, children: t });
|
|
@@ -3332,17 +3371,17 @@ function Ke() {
|
|
|
3332
3371
|
if (!e) throw new Error("useFeatureFlag requires <FeatureFlagsProvider>");
|
|
3333
3372
|
return e;
|
|
3334
3373
|
}
|
|
3335
|
-
function
|
|
3374
|
+
function nl(e, t = !1) {
|
|
3336
3375
|
const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3337
3376
|
}, s = () => n.isEnabled(e, t);
|
|
3338
3377
|
return Fe(r, s, s);
|
|
3339
3378
|
}
|
|
3340
|
-
function
|
|
3379
|
+
function rl(e, t) {
|
|
3341
3380
|
const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3342
3381
|
}, s = () => n.get(e, t);
|
|
3343
3382
|
return Fe(r, s, s);
|
|
3344
3383
|
}
|
|
3345
|
-
function
|
|
3384
|
+
function sl(e = {}) {
|
|
3346
3385
|
const t = { ...e.initial ?? {} }, n = /* @__PURE__ */ new Set();
|
|
3347
3386
|
function r() {
|
|
3348
3387
|
for (const s of n) s();
|
|
@@ -3362,7 +3401,47 @@ function nl(e = {}) {
|
|
|
3362
3401
|
}
|
|
3363
3402
|
};
|
|
3364
3403
|
}
|
|
3365
|
-
|
|
3404
|
+
function ol(e) {
|
|
3405
|
+
const { growthbook: t } = e, n = /* @__PURE__ */ new Set();
|
|
3406
|
+
let r = !1;
|
|
3407
|
+
function s() {
|
|
3408
|
+
r || !t.setRenderer || (r = !0, t.setRenderer(() => {
|
|
3409
|
+
for (const o of n) o();
|
|
3410
|
+
}));
|
|
3411
|
+
}
|
|
3412
|
+
return {
|
|
3413
|
+
isEnabled(o, i = !1) {
|
|
3414
|
+
const c = t.isOn(o);
|
|
3415
|
+
return typeof c == "boolean" ? c : i;
|
|
3416
|
+
},
|
|
3417
|
+
get(o, i) {
|
|
3418
|
+
return t.getFeatureValue(o, i);
|
|
3419
|
+
},
|
|
3420
|
+
onChange(o) {
|
|
3421
|
+
return s(), n.add(o), () => {
|
|
3422
|
+
n.delete(o);
|
|
3423
|
+
};
|
|
3424
|
+
}
|
|
3425
|
+
};
|
|
3426
|
+
}
|
|
3427
|
+
function il(e) {
|
|
3428
|
+
const { client: t } = e;
|
|
3429
|
+
return {
|
|
3430
|
+
isEnabled(n, r = !1) {
|
|
3431
|
+
return t.variation(n, r) === !0;
|
|
3432
|
+
},
|
|
3433
|
+
get(n, r) {
|
|
3434
|
+
return t.variation(n, r);
|
|
3435
|
+
},
|
|
3436
|
+
onChange(n) {
|
|
3437
|
+
return !t.on || !t.off ? () => {
|
|
3438
|
+
} : (t.on("change", n), () => {
|
|
3439
|
+
t.off("change", n);
|
|
3440
|
+
});
|
|
3441
|
+
}
|
|
3442
|
+
};
|
|
3443
|
+
}
|
|
3444
|
+
async function al(e) {
|
|
3366
3445
|
if (typeof navigator > "u" || !("share" in navigator))
|
|
3367
3446
|
return { shared: !1, unsupported: !0, cancelled: !1 };
|
|
3368
3447
|
if (e.files && !navigator.canShare?.({ files: e.files }))
|
|
@@ -3373,10 +3452,10 @@ async function rl(e) {
|
|
|
3373
3452
|
return t instanceof DOMException && t.name === "AbortError" ? { shared: !1, unsupported: !1, cancelled: !0 } : { shared: !1, unsupported: !1, cancelled: !1, error: t };
|
|
3374
3453
|
}
|
|
3375
3454
|
}
|
|
3376
|
-
function
|
|
3455
|
+
function cl() {
|
|
3377
3456
|
return typeof navigator < "u" && "share" in navigator;
|
|
3378
3457
|
}
|
|
3379
|
-
const
|
|
3458
|
+
const ll = {
|
|
3380
3459
|
get(e, t) {
|
|
3381
3460
|
if (typeof window > "u") return t;
|
|
3382
3461
|
try {
|
|
@@ -3402,142 +3481,145 @@ const ol = {
|
|
|
3402
3481
|
}
|
|
3403
3482
|
};
|
|
3404
3483
|
export {
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3484
|
+
ac as AuthGuard,
|
|
3485
|
+
ta as Avatar,
|
|
3486
|
+
na as Badge,
|
|
3487
|
+
ra as Breadcrumbs,
|
|
3409
3488
|
ve as Button,
|
|
3410
3489
|
Ni as CACHE_TIME,
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3490
|
+
Bc as CEPInput,
|
|
3491
|
+
Oc as CNPJInput,
|
|
3492
|
+
Fc as CPFInput,
|
|
3493
|
+
sa as Card,
|
|
3494
|
+
oa as Checkbox,
|
|
3495
|
+
ia as ChipInput,
|
|
3496
|
+
aa as ConfirmDialog,
|
|
3497
|
+
_a as Container,
|
|
3498
|
+
ca as DatePicker,
|
|
3499
|
+
la as Drawer,
|
|
3500
|
+
ua as EmptyState,
|
|
3422
3501
|
Sc as ErrorBoundary,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3502
|
+
da as ErrorState,
|
|
3503
|
+
tl as FeatureFlagsProvider,
|
|
3504
|
+
pa as FileUpload,
|
|
3505
|
+
fa as Form,
|
|
3506
|
+
ga as FormActions,
|
|
3507
|
+
ha as FormRow,
|
|
3508
|
+
ma as FormSection,
|
|
3509
|
+
wa as Grid,
|
|
3510
|
+
Kc as I18nProvider,
|
|
3511
|
+
xe as Input,
|
|
3433
3512
|
Cn as Modal,
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3513
|
+
jc as MoneyInput,
|
|
3514
|
+
ba as Pagination,
|
|
3515
|
+
Wc as PhoneInput,
|
|
3516
|
+
va as Progress,
|
|
3517
|
+
fc as QueryProvider,
|
|
3518
|
+
dc as REFETCH_TIME,
|
|
3519
|
+
Na as Radio,
|
|
3520
|
+
$a as RadioGroup,
|
|
3442
3521
|
vi as STALE_TIME,
|
|
3443
|
-
|
|
3444
|
-
|
|
3522
|
+
ka as SearchBar,
|
|
3523
|
+
xa as Select,
|
|
3445
3524
|
Sa as Skeleton,
|
|
3446
|
-
|
|
3447
|
-
|
|
3525
|
+
Ea as Spinner,
|
|
3526
|
+
ya as Stack,
|
|
3448
3527
|
Ta as Stepper,
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3528
|
+
Ca as Switch,
|
|
3529
|
+
La as Table,
|
|
3530
|
+
Ia as Tabs,
|
|
3531
|
+
Qc as TelemetryProvider,
|
|
3532
|
+
Da as Textarea,
|
|
3533
|
+
Jc as ThemeProvider,
|
|
3534
|
+
Aa as ToastProvider,
|
|
3535
|
+
Ma as Tooltip,
|
|
3536
|
+
Ra as VirtualList,
|
|
3537
|
+
Ei as WebPushClient,
|
|
3538
|
+
Si as WebPushPermissionDeniedError,
|
|
3460
3539
|
De as WebPushUnsupportedError,
|
|
3461
3540
|
_ as cn,
|
|
3462
3541
|
zi as consoleSink,
|
|
3463
|
-
|
|
3464
|
-
|
|
3542
|
+
Xc as consoleTelemetryAdapter,
|
|
3543
|
+
ec as createApiClient,
|
|
3465
3544
|
je as createAudioPlayer,
|
|
3466
|
-
|
|
3545
|
+
ic as createAuthStore,
|
|
3467
3546
|
ki as createEventStream,
|
|
3547
|
+
ol as createGrowthBookFeatureFlagsAdapter,
|
|
3468
3548
|
Je as createI18n,
|
|
3469
|
-
|
|
3549
|
+
sl as createInMemoryFlags,
|
|
3550
|
+
il as createLaunchDarklyFeatureFlagsAdapter,
|
|
3470
3551
|
Ji as createLogger,
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3552
|
+
xc as createOfflineStore,
|
|
3553
|
+
el as createPostHogTelemetryAdapter,
|
|
3554
|
+
pc as createQueryKeys,
|
|
3555
|
+
uc as createRefreshQueue,
|
|
3556
|
+
Zc as createSentryTelemetryAdapter,
|
|
3475
3557
|
Oi as createWebSocket,
|
|
3476
3558
|
bi as decodeJWT,
|
|
3477
3559
|
Ii as formatCEP,
|
|
3478
3560
|
Di as formatCNPJ,
|
|
3479
3561
|
Pi as formatCPF,
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3562
|
+
Mc as formatCurrency,
|
|
3563
|
+
Pc as formatDate,
|
|
3564
|
+
Ac as formatDateTime,
|
|
3565
|
+
Rc as formatPercent,
|
|
3484
3566
|
Mi as formatPhone,
|
|
3485
|
-
|
|
3567
|
+
sc as generateIdempotencyKey,
|
|
3486
3568
|
qc as getInitialTheme,
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3569
|
+
bc as installNotificationClickHandler,
|
|
3570
|
+
wc as installPushHandler,
|
|
3571
|
+
vc as installSkipWaitingListener,
|
|
3572
|
+
cc as isJWTExpired,
|
|
3491
3573
|
ue as isPushSupported,
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3574
|
+
cl as isShareSupported,
|
|
3575
|
+
lc as lazyWithRetry,
|
|
3576
|
+
tc as parseResponse,
|
|
3577
|
+
Nc as playAudio,
|
|
3578
|
+
gc as registerServiceWorker,
|
|
3579
|
+
rc as retry,
|
|
3580
|
+
al as share,
|
|
3581
|
+
_c as skipWaiting,
|
|
3582
|
+
$c as stopAudio,
|
|
3583
|
+
ll as storage,
|
|
3584
|
+
Hc as themeInitScript,
|
|
3585
|
+
Dc as unmask,
|
|
3586
|
+
yc as unregisterAllServiceWorkers,
|
|
3587
|
+
nc as uploadWithProgress,
|
|
3588
|
+
xi as urlBase64ToUint8Array,
|
|
3589
|
+
kc as useAudio,
|
|
3590
|
+
Ha as useBeforeInstallPrompt,
|
|
3591
|
+
Wa as useClientFilter,
|
|
3592
|
+
Ga as useClipboard,
|
|
3593
|
+
Fa as useDebounce,
|
|
3594
|
+
Za as useDeepMemo,
|
|
3595
|
+
Ua as useDocumentVisibility,
|
|
3596
|
+
Ec as useErrorHandler,
|
|
3597
|
+
mc as useEventStream,
|
|
3598
|
+
nl as useFeatureFlag,
|
|
3599
|
+
rl as useFlagValue,
|
|
3600
|
+
Ya as useFocusTrap,
|
|
3601
|
+
Va as useGeolocation,
|
|
3520
3602
|
ji as useI18n,
|
|
3521
|
-
|
|
3522
|
-
|
|
3603
|
+
Ka as useIdle,
|
|
3604
|
+
za as useIntersectionObserver,
|
|
3523
3605
|
qa as useKeyboardShortcut,
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3606
|
+
Ba as useMediaQuery,
|
|
3607
|
+
ja as useOnline,
|
|
3608
|
+
Oa as usePagination,
|
|
3609
|
+
oc as usePoll,
|
|
3610
|
+
hc as usePushSubscription,
|
|
3611
|
+
Ja as useResizeObserver,
|
|
3612
|
+
Qa as useScrollLock,
|
|
3613
|
+
Xa as useStableCallback,
|
|
3614
|
+
Yc as useTelemetry,
|
|
3615
|
+
Gc as useTheme,
|
|
3616
|
+
Pa as useToast,
|
|
3617
|
+
Vc as useTranslate,
|
|
3618
|
+
Uc as useViaCEP,
|
|
3619
|
+
zc as useWebSocket,
|
|
3620
|
+
Cc as useZodForm,
|
|
3621
|
+
Ic as validateCNPJ,
|
|
3622
|
+
Lc as validateCPF,
|
|
3541
3623
|
Tc as validateForm,
|
|
3542
3624
|
Li as zodResolver
|
|
3543
3625
|
};
|