tempest-react-sdk 0.1.1 → 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 +154 -26
- package/dist/index.d.ts +148 -0
- package/dist/styles.css +1 -1
- package/dist/tempest-react-sdk.cjs +3 -3
- package/dist/tempest-react-sdk.cjs.map +1 -1
- package/dist/tempest-react-sdk.js +1085 -966
- package/dist/tempest-react-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as v, useMemo as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { QueryClient as
|
|
5
|
-
import { create as
|
|
6
|
-
import { persist as
|
|
7
|
-
import
|
|
8
|
-
import { useForm as
|
|
9
|
-
function
|
|
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 T, useEffect as k, useId as ae, useContext as te, createContext as ne, cloneElement as Ye, useCallback as x, lazy as Xe, Component as Ze, useSyncExternalStore as Fe } from "react";
|
|
3
|
+
import { createPortal as ke } from "react-dom";
|
|
4
|
+
import { QueryClient as et, QueryClientProvider as tt } from "@tanstack/react-query";
|
|
5
|
+
import { create as nt } from "zustand";
|
|
6
|
+
import { persist as rt, createJSONStorage as st } from "zustand/middleware";
|
|
7
|
+
import ot from "dexie";
|
|
8
|
+
import { useForm as it } from "react-hook-form";
|
|
9
|
+
function _(...e) {
|
|
10
10
|
const t = [];
|
|
11
11
|
for (const n of e)
|
|
12
12
|
if (!(n == null || n === !1 || n === !0)) {
|
|
@@ -15,31 +15,31 @@ function y(...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
|
|
25
|
-
avatar:
|
|
26
|
-
image:
|
|
27
|
-
xs:
|
|
28
|
-
sm:
|
|
29
|
-
md:
|
|
30
|
-
lg:
|
|
31
|
-
xl:
|
|
32
|
-
status:
|
|
33
|
-
dot:
|
|
34
|
-
online:
|
|
35
|
-
offline:
|
|
36
|
-
busy:
|
|
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
|
+
avatar: at,
|
|
26
|
+
image: ct,
|
|
27
|
+
xs: lt,
|
|
28
|
+
sm: ut,
|
|
29
|
+
md: dt,
|
|
30
|
+
lg: pt,
|
|
31
|
+
xl: ft,
|
|
32
|
+
status: mt,
|
|
33
|
+
dot: ht,
|
|
34
|
+
online: gt,
|
|
35
|
+
offline: _t,
|
|
36
|
+
busy: yt
|
|
37
37
|
};
|
|
38
|
-
function
|
|
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 = "",
|
|
@@ -48,11 +48,11 @@ function Ai({
|
|
|
48
48
|
className: o,
|
|
49
49
|
onClick: i
|
|
50
50
|
}) {
|
|
51
|
-
const [c, a] = v(!1), u =
|
|
52
|
-
return /* @__PURE__ */
|
|
51
|
+
const [c, a] = v(!1), u = W(() => wt(n), [n]), d = e && !c, p = i ? "button" : void 0, f = i ? 0 : void 0;
|
|
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,
|
|
@@ -65,75 +65,75 @@ function Ai({
|
|
|
65
65
|
{
|
|
66
66
|
src: e,
|
|
67
67
|
alt: t ?? n,
|
|
68
|
-
className:
|
|
68
|
+
className: Q.image,
|
|
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
|
);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
badge:
|
|
79
|
-
neutral:
|
|
80
|
-
success:
|
|
81
|
-
warning:
|
|
82
|
-
danger:
|
|
83
|
-
info:
|
|
77
|
+
const bt = "tempest_badge_RsuMz", vt = "tempest_neutral_lulSm", Nt = "tempest_success_u9JiS", $t = "tempest_warning_nsGp-", kt = "tempest_danger_PD2hz", St = "tempest_info_na6DQ", Te = {
|
|
78
|
+
badge: bt,
|
|
79
|
+
neutral: vt,
|
|
80
|
+
success: Nt,
|
|
81
|
+
warning: $t,
|
|
82
|
+
danger: kt,
|
|
83
|
+
info: St
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
return /* @__PURE__ */ l("span", { className:
|
|
87
|
-
}
|
|
88
|
-
const
|
|
89
|
-
nav:
|
|
90
|
-
item:
|
|
91
|
-
link:
|
|
92
|
-
current:
|
|
93
|
-
separator:
|
|
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
|
+
}
|
|
88
|
+
const xt = "tempest_nav_H4g6P", Tt = "tempest_item_O4g3P", Et = "tempest_link_7WM67", Ct = "tempest_current_JdlcS", Lt = "tempest_separator_zGWyJ", re = {
|
|
89
|
+
nav: xt,
|
|
90
|
+
item: Tt,
|
|
91
|
+
link: Et,
|
|
92
|
+
current: Ct,
|
|
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
|
-
return /* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */ l("span", { className:
|
|
98
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
99
|
+
/* @__PURE__ */ l("span", { className: re.item, children: i ? /* @__PURE__ */ l(
|
|
100
100
|
"a",
|
|
101
101
|
{
|
|
102
102
|
href: r.href,
|
|
103
103
|
onClick: (c) => {
|
|
104
104
|
r.onClick && (c.preventDefault(), r.onClick());
|
|
105
105
|
},
|
|
106
|
-
className:
|
|
106
|
+
className: re.link,
|
|
107
107
|
children: r.label
|
|
108
108
|
}
|
|
109
109
|
) : /* @__PURE__ */ l(
|
|
110
110
|
"span",
|
|
111
111
|
{
|
|
112
112
|
"aria-current": o ? "page" : void 0,
|
|
113
|
-
className: o ?
|
|
113
|
+
className: o ? re.current : void 0,
|
|
114
114
|
children: r.label
|
|
115
115
|
}
|
|
116
116
|
) }),
|
|
117
|
-
!o && /* @__PURE__ */ l("span", { className:
|
|
117
|
+
!o && /* @__PURE__ */ l("span", { className: re.separator, "aria-hidden": !0, children: t })
|
|
118
118
|
] }, s);
|
|
119
119
|
}) });
|
|
120
120
|
}
|
|
121
|
-
const
|
|
122
|
-
button:
|
|
123
|
-
primary:
|
|
124
|
-
secondary:
|
|
125
|
-
danger:
|
|
126
|
-
ghost:
|
|
127
|
-
sm:
|
|
128
|
-
md:
|
|
129
|
-
lg:
|
|
130
|
-
fullWidth:
|
|
131
|
-
loading:
|
|
132
|
-
hiddenText:
|
|
133
|
-
spinner:
|
|
134
|
-
tempestSpin:
|
|
121
|
+
const It = "tempest_button_2ZuB7", Dt = "tempest_primary_s1sM6", Mt = "tempest_secondary_R0waJ", Pt = "tempest_danger_V4fX8", At = "tempest_ghost_1KINV", Rt = "tempest_sm_NhG0g", Ft = "tempest_md_hH4h3", Ot = "tempest_lg_2plQf", Wt = "tempest_fullWidth_36oJT", Bt = "tempest_loading_EQAt2", jt = "tempest_hiddenText_hIiJ2", Ut = "tempest_spinner_ZExvW", zt = "tempest_tempest-spin_UOSVC", H = {
|
|
122
|
+
button: It,
|
|
123
|
+
primary: Dt,
|
|
124
|
+
secondary: Mt,
|
|
125
|
+
danger: Pt,
|
|
126
|
+
ghost: At,
|
|
127
|
+
sm: Rt,
|
|
128
|
+
md: Ft,
|
|
129
|
+
lg: Ot,
|
|
130
|
+
fullWidth: Wt,
|
|
131
|
+
loading: Bt,
|
|
132
|
+
hiddenText: jt,
|
|
133
|
+
spinner: Ut,
|
|
134
|
+
tempestSpin: zt
|
|
135
135
|
};
|
|
136
|
-
function
|
|
136
|
+
function ve({
|
|
137
137
|
variant: e = "primary",
|
|
138
138
|
size: t = "md",
|
|
139
139
|
loading: n = !1,
|
|
@@ -145,22 +145,22 @@ function be({
|
|
|
145
145
|
children: a,
|
|
146
146
|
...u
|
|
147
147
|
}) {
|
|
148
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ w(
|
|
149
149
|
"button",
|
|
150
150
|
{
|
|
151
|
-
className:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
n &&
|
|
156
|
-
r &&
|
|
151
|
+
className: _(
|
|
152
|
+
H.button,
|
|
153
|
+
H[e],
|
|
154
|
+
H[t],
|
|
155
|
+
n && H.loading,
|
|
156
|
+
r && H.fullWidth,
|
|
157
157
|
c
|
|
158
158
|
),
|
|
159
159
|
disabled: i || n,
|
|
160
160
|
...u,
|
|
161
161
|
children: [
|
|
162
|
-
n && /* @__PURE__ */ l("span", { className:
|
|
163
|
-
/* @__PURE__ */
|
|
162
|
+
n && /* @__PURE__ */ l("span", { className: H.spinner, "aria-hidden": !0, children: /* @__PURE__ */ l(Jt, {}) }),
|
|
163
|
+
/* @__PURE__ */ w("span", { className: _(n && H.hiddenText), children: [
|
|
164
164
|
s,
|
|
165
165
|
a,
|
|
166
166
|
o
|
|
@@ -169,7 +169,7 @@ function be({
|
|
|
169
169
|
}
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Jt() {
|
|
173
173
|
return /* @__PURE__ */ l(
|
|
174
174
|
"svg",
|
|
175
175
|
{
|
|
@@ -190,71 +190,71 @@ function Ut() {
|
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
card:
|
|
195
|
-
padded:
|
|
196
|
-
flush:
|
|
197
|
-
header:
|
|
198
|
-
title:
|
|
199
|
-
body:
|
|
193
|
+
const qt = "tempest_card_Cb1o4", Gt = "tempest_padded_oOxwN", Ht = "tempest_flush_aiDZi", Kt = "tempest_header_PTXf2", Vt = "tempest_title_mSgoo", Qt = "tempest_body_W441Z", Y = {
|
|
194
|
+
card: qt,
|
|
195
|
+
padded: Gt,
|
|
196
|
+
flush: Ht,
|
|
197
|
+
header: Kt,
|
|
198
|
+
title: Vt,
|
|
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
|
-
return /* @__PURE__ */
|
|
203
|
+
return /* @__PURE__ */ w(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
207
|
-
|
|
208
|
-
!i && !n &&
|
|
209
|
-
n &&
|
|
206
|
+
className: _(
|
|
207
|
+
Y.card,
|
|
208
|
+
!i && !n && Y.padded,
|
|
209
|
+
n && Y.flush,
|
|
210
210
|
r
|
|
211
211
|
),
|
|
212
212
|
...o,
|
|
213
213
|
children: [
|
|
214
|
-
i && /* @__PURE__ */
|
|
215
|
-
typeof e == "string" ? /* @__PURE__ */ l("h3", { className:
|
|
214
|
+
i && /* @__PURE__ */ w("header", { className: Y.header, children: [
|
|
215
|
+
typeof e == "string" ? /* @__PURE__ */ l("h3", { className: Y.title, children: e }) : e,
|
|
216
216
|
t
|
|
217
217
|
] }),
|
|
218
|
-
i ? /* @__PURE__ */ l("div", { className:
|
|
218
|
+
i ? /* @__PURE__ */ l("div", { className: Y.body, children: s }) : s
|
|
219
219
|
]
|
|
220
220
|
}
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
wrapper:
|
|
225
|
-
disabled:
|
|
226
|
-
input:
|
|
227
|
-
box:
|
|
228
|
-
labelWrap:
|
|
229
|
-
label:
|
|
230
|
-
description:
|
|
231
|
-
},
|
|
232
|
-
const u =
|
|
223
|
+
const Yt = "tempest_wrapper_rpthW", Xt = "tempest_disabled_x7-eg", Zt = "tempest_input_2kt-h", en = "tempest_box_OCPee", tn = "tempest_labelWrap_Ktbp0", nn = "tempest_label_cwRtI", rn = "tempest_description_rMhG1", K = {
|
|
224
|
+
wrapper: Yt,
|
|
225
|
+
disabled: Xt,
|
|
226
|
+
input: Zt,
|
|
227
|
+
box: en,
|
|
228
|
+
labelWrap: tn,
|
|
229
|
+
label: nn,
|
|
230
|
+
description: rn
|
|
231
|
+
}, sa = O(function({ label: t, description: n, indeterminate: r, disabled: s, wrapperClassName: o, className: i, ...c }, a) {
|
|
232
|
+
const u = T(null);
|
|
233
233
|
k(() => {
|
|
234
234
|
u.current && (u.current.indeterminate = !!r);
|
|
235
235
|
}, [r]);
|
|
236
236
|
function d(p) {
|
|
237
237
|
u.current = p, typeof a == "function" ? a(p) : a && (a.current = p);
|
|
238
238
|
}
|
|
239
|
-
return /* @__PURE__ */
|
|
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
|
),
|
|
250
|
-
/* @__PURE__ */ l("span", { className: K.box, "aria-hidden": !0, children: r ? /* @__PURE__ */ l(
|
|
251
|
-
(t || n) && /* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ l("span", { className: K.box, "aria-hidden": !0, children: r ? /* @__PURE__ */ l(on, {}) : /* @__PURE__ */ l(sn, {}) }),
|
|
251
|
+
(t || n) && /* @__PURE__ */ w("span", { className: K.labelWrap, children: [
|
|
252
252
|
t && /* @__PURE__ */ l("span", { className: K.label, children: t }),
|
|
253
253
|
n && /* @__PURE__ */ l("span", { className: K.description, children: n })
|
|
254
254
|
] })
|
|
255
255
|
] });
|
|
256
256
|
});
|
|
257
|
-
function
|
|
257
|
+
function sn() {
|
|
258
258
|
return /* @__PURE__ */ l("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
259
259
|
"path",
|
|
260
260
|
{
|
|
@@ -266,21 +266,21 @@ function tn() {
|
|
|
266
266
|
}
|
|
267
267
|
) });
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function on() {
|
|
270
270
|
return /* @__PURE__ */ l("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l("path", { d: "M5 12h14", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round" }) });
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
wrapper:
|
|
274
|
-
label:
|
|
275
|
-
field:
|
|
276
|
-
error:
|
|
277
|
-
chip:
|
|
278
|
-
remove:
|
|
279
|
-
input:
|
|
280
|
-
helper:
|
|
281
|
-
errorText:
|
|
272
|
+
const an = "tempest_wrapper_KR4-F", cn = "tempest_label_Mz-wX", ln = "tempest_field_iIBJw", un = "tempest_error_O9n-9", dn = "tempest_chip_GEwrc", pn = "tempest_remove_JYDIq", fn = "tempest_input_frJmk", mn = "tempest_helper_Yts53", hn = "tempest_errorText_llJGq", B = {
|
|
273
|
+
wrapper: an,
|
|
274
|
+
label: cn,
|
|
275
|
+
field: ln,
|
|
276
|
+
error: un,
|
|
277
|
+
chip: dn,
|
|
278
|
+
remove: pn,
|
|
279
|
+
input: fn,
|
|
280
|
+
helper: mn,
|
|
281
|
+
errorText: hn
|
|
282
282
|
};
|
|
283
|
-
function
|
|
283
|
+
function oa({
|
|
284
284
|
value: e,
|
|
285
285
|
onChange: t,
|
|
286
286
|
label: n,
|
|
@@ -291,7 +291,7 @@ function Bi({
|
|
|
291
291
|
normalize: c = !0,
|
|
292
292
|
className: a
|
|
293
293
|
}) {
|
|
294
|
-
const [u, d] = v(""), p =
|
|
294
|
+
const [u, d] = v(""), p = T(null);
|
|
295
295
|
function f() {
|
|
296
296
|
const h = c ? u.trim().toLowerCase() : u.trim();
|
|
297
297
|
if (h) {
|
|
@@ -310,30 +310,30 @@ function Bi({
|
|
|
310
310
|
h.key === "Backspace" && !u && e.length > 0 && t(e.slice(0, -1));
|
|
311
311
|
}
|
|
312
312
|
function g(h) {
|
|
313
|
-
const
|
|
314
|
-
|
|
313
|
+
const b = e.slice();
|
|
314
|
+
b.splice(h, 1), t(b);
|
|
315
315
|
}
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
n && /* @__PURE__ */ l("label", { className:
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
e.map((h,
|
|
316
|
+
return /* @__PURE__ */ w("div", { className: _(B.wrapper, o && B.error, a), children: [
|
|
317
|
+
n && /* @__PURE__ */ l("label", { className: B.label, children: n }),
|
|
318
|
+
/* @__PURE__ */ w("div", { className: B.field, onClick: () => p.current?.focus(), children: [
|
|
319
|
+
e.map((h, b) => /* @__PURE__ */ w("span", { className: B.chip, children: [
|
|
320
320
|
h,
|
|
321
321
|
/* @__PURE__ */ l(
|
|
322
322
|
"button",
|
|
323
323
|
{
|
|
324
324
|
type: "button",
|
|
325
|
-
className:
|
|
325
|
+
className: B.remove,
|
|
326
326
|
"aria-label": `Remover ${h}`,
|
|
327
|
-
onClick: () => g(
|
|
327
|
+
onClick: () => g(b),
|
|
328
328
|
children: "×"
|
|
329
329
|
}
|
|
330
330
|
)
|
|
331
|
-
] }, `${h}-${
|
|
331
|
+
] }, `${h}-${b}`)),
|
|
332
332
|
/* @__PURE__ */ l(
|
|
333
333
|
"input",
|
|
334
334
|
{
|
|
335
335
|
ref: p,
|
|
336
|
-
className:
|
|
336
|
+
className: B.input,
|
|
337
337
|
value: u,
|
|
338
338
|
placeholder: e.length === 0 ? r : "",
|
|
339
339
|
onChange: (h) => d(h.target.value),
|
|
@@ -342,25 +342,25 @@ function Bi({
|
|
|
342
342
|
}
|
|
343
343
|
)
|
|
344
344
|
] }),
|
|
345
|
-
o ? /* @__PURE__ */ l("span", { className:
|
|
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:
|
|
351
|
-
dialog:
|
|
352
|
-
tempestModalIn:
|
|
353
|
-
sm:
|
|
354
|
-
md:
|
|
355
|
-
lg:
|
|
356
|
-
xl:
|
|
357
|
-
header:
|
|
358
|
-
title:
|
|
359
|
-
close:
|
|
360
|
-
body:
|
|
361
|
-
footer:
|
|
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
|
+
dialog: yn,
|
|
352
|
+
tempestModalIn: wn,
|
|
353
|
+
sm: bn,
|
|
354
|
+
md: vn,
|
|
355
|
+
lg: Nn,
|
|
356
|
+
xl: $n,
|
|
357
|
+
header: kn,
|
|
358
|
+
title: Sn,
|
|
359
|
+
close: xn,
|
|
360
|
+
body: Tn,
|
|
361
|
+
footer: En
|
|
362
362
|
};
|
|
363
|
-
function
|
|
363
|
+
function Cn({
|
|
364
364
|
open: e,
|
|
365
365
|
onClose: t,
|
|
366
366
|
title: n,
|
|
@@ -382,38 +382,38 @@ function xn({
|
|
|
382
382
|
return window.addEventListener("keydown", p), () => {
|
|
383
383
|
document.body.style.overflow = d, window.removeEventListener("keydown", p);
|
|
384
384
|
};
|
|
385
|
-
}, [e, c, t]), !e || typeof document > "u" ? null :
|
|
385
|
+
}, [e, c, t]), !e || typeof document > "u" ? null : ke(
|
|
386
386
|
/* @__PURE__ */ l(
|
|
387
387
|
"div",
|
|
388
388
|
{
|
|
389
|
-
className:
|
|
389
|
+
className: J.overlay,
|
|
390
390
|
role: "presentation",
|
|
391
391
|
onClick: () => {
|
|
392
392
|
i && t();
|
|
393
393
|
},
|
|
394
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ w(
|
|
395
395
|
"div",
|
|
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
|
-
(n || !u) && /* @__PURE__ */
|
|
403
|
-
/* @__PURE__ */ l("h3", { className:
|
|
402
|
+
(n || !u) && /* @__PURE__ */ w("header", { className: J.header, children: [
|
|
403
|
+
/* @__PURE__ */ l("h3", { className: J.title, children: n }),
|
|
404
404
|
!u && /* @__PURE__ */ l(
|
|
405
405
|
"button",
|
|
406
406
|
{
|
|
407
407
|
type: "button",
|
|
408
|
-
className:
|
|
408
|
+
className: J.close,
|
|
409
409
|
"aria-label": "Fechar",
|
|
410
410
|
onClick: t,
|
|
411
|
-
children: /* @__PURE__ */ l(
|
|
411
|
+
children: /* @__PURE__ */ l(Ln, {})
|
|
412
412
|
}
|
|
413
413
|
)
|
|
414
414
|
] }),
|
|
415
|
-
/* @__PURE__ */ l("div", { className:
|
|
416
|
-
s && /* @__PURE__ */ l("footer", { className:
|
|
415
|
+
/* @__PURE__ */ l("div", { className: J.body, children: r }),
|
|
416
|
+
s && /* @__PURE__ */ l("footer", { className: J.footer, children: s })
|
|
417
417
|
]
|
|
418
418
|
}
|
|
419
419
|
)
|
|
@@ -422,7 +422,7 @@ function xn({
|
|
|
422
422
|
document.body
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Ln() {
|
|
426
426
|
return /* @__PURE__ */ l("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
427
427
|
"path",
|
|
428
428
|
{
|
|
@@ -433,7 +433,7 @@ function En() {
|
|
|
433
433
|
}
|
|
434
434
|
) });
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ia({
|
|
437
437
|
open: e,
|
|
438
438
|
title: t,
|
|
439
439
|
description: n,
|
|
@@ -445,15 +445,15 @@ function Ui({
|
|
|
445
445
|
onCancel: a
|
|
446
446
|
}) {
|
|
447
447
|
return /* @__PURE__ */ l(
|
|
448
|
-
|
|
448
|
+
Cn,
|
|
449
449
|
{
|
|
450
450
|
open: e,
|
|
451
451
|
onClose: a,
|
|
452
452
|
title: t,
|
|
453
453
|
size: "sm",
|
|
454
|
-
footer: /* @__PURE__ */
|
|
455
|
-
/* @__PURE__ */ l(
|
|
456
|
-
/* @__PURE__ */ l(
|
|
454
|
+
footer: /* @__PURE__ */ w($e, { children: [
|
|
455
|
+
/* @__PURE__ */ l(ve, { variant: "secondary", onClick: a, disabled: i, children: s }),
|
|
456
|
+
/* @__PURE__ */ l(ve, { variant: o, loading: i, onClick: () => {
|
|
457
457
|
c();
|
|
458
458
|
}, children: r })
|
|
459
459
|
] }),
|
|
@@ -461,20 +461,20 @@ function Ui({
|
|
|
461
461
|
}
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
const
|
|
465
|
-
wrapper:
|
|
466
|
-
label:
|
|
467
|
-
required:
|
|
468
|
-
field:
|
|
469
|
-
input:
|
|
470
|
-
hasLeftIcon:
|
|
471
|
-
hasRightIcon:
|
|
472
|
-
iconLeft:
|
|
473
|
-
iconRight:
|
|
474
|
-
error:
|
|
475
|
-
helper:
|
|
476
|
-
errorText:
|
|
477
|
-
},
|
|
464
|
+
const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_required_CTss-", Pn = "tempest_field_65yGJ", An = "tempest_input_WjT81", Rn = "tempest_hasLeftIcon_xYO-v", Fn = "tempest_hasRightIcon_C7uyr", On = "tempest_iconLeft_KrUhI", Wn = "tempest_iconRight_Ssr47", Bn = "tempest_error_VLISa", jn = "tempest_helper_7Vc-s", Un = "tempest_errorText_xz4xS", P = {
|
|
465
|
+
wrapper: In,
|
|
466
|
+
label: Dn,
|
|
467
|
+
required: Mn,
|
|
468
|
+
field: Pn,
|
|
469
|
+
input: An,
|
|
470
|
+
hasLeftIcon: Rn,
|
|
471
|
+
hasRightIcon: Fn,
|
|
472
|
+
iconLeft: On,
|
|
473
|
+
iconRight: Wn,
|
|
474
|
+
error: Bn,
|
|
475
|
+
helper: jn,
|
|
476
|
+
errorText: Un
|
|
477
|
+
}, Se = O(function({
|
|
478
478
|
label: t,
|
|
479
479
|
helperText: n,
|
|
480
480
|
error: r,
|
|
@@ -486,13 +486,13 @@ const Tn = "tempest_wrapper_iHNUs", Cn = "tempest_label_-OEBL", Ln = "tempest_re
|
|
|
486
486
|
required: u,
|
|
487
487
|
...d
|
|
488
488
|
}, p) {
|
|
489
|
-
const f =
|
|
490
|
-
return /* @__PURE__ */
|
|
491
|
-
t && /* @__PURE__ */
|
|
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
|
+
t && /* @__PURE__ */ w("label", { htmlFor: m, className: P.label, children: [
|
|
492
492
|
t,
|
|
493
493
|
u && /* @__PURE__ */ l("span", { className: P.required, children: "*" })
|
|
494
494
|
] }),
|
|
495
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ w("div", { className: P.field, children: [
|
|
496
496
|
s && /* @__PURE__ */ l("span", { className: P.iconLeft, children: s }),
|
|
497
497
|
/* @__PURE__ */ l(
|
|
498
498
|
"input",
|
|
@@ -502,7 +502,7 @@ const Tn = "tempest_wrapper_iHNUs", Cn = "tempest_label_-OEBL", Ln = "tempest_re
|
|
|
502
502
|
"aria-invalid": !!r,
|
|
503
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,9 +515,9 @@ const Tn = "tempest_wrapper_iHNUs", Cn = "tempest_label_-OEBL", Ln = "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
|
{
|
|
522
522
|
...s,
|
|
523
523
|
ref: o,
|
|
@@ -526,25 +526,25 @@ const Tn = "tempest_wrapper_iHNUs", Cn = "tempest_label_-OEBL", Ln = "tempest_re
|
|
|
526
526
|
onChange: (i) => n(i.target.value)
|
|
527
527
|
}
|
|
528
528
|
);
|
|
529
|
-
}),
|
|
530
|
-
overlay:
|
|
531
|
-
tempestDrawerOverlay:
|
|
532
|
-
panel:
|
|
533
|
-
right:
|
|
534
|
-
tempestDrawerInRight:
|
|
535
|
-
left:
|
|
536
|
-
tempestDrawerInLeft:
|
|
537
|
-
top:
|
|
538
|
-
tempestDrawerInTop:
|
|
539
|
-
bottom:
|
|
540
|
-
tempestDrawerInBottom:
|
|
541
|
-
header:
|
|
542
|
-
title:
|
|
543
|
-
close:
|
|
544
|
-
body:
|
|
545
|
-
footer:
|
|
529
|
+
}), zn = "tempest_overlay_hcG1G", Jn = "tempest_tempest-drawer-overlay_XFbxY", qn = "tempest_panel_wUX0N", Gn = "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", q = {
|
|
530
|
+
overlay: zn,
|
|
531
|
+
tempestDrawerOverlay: Jn,
|
|
532
|
+
panel: qn,
|
|
533
|
+
right: Gn,
|
|
534
|
+
tempestDrawerInRight: Hn,
|
|
535
|
+
left: Kn,
|
|
536
|
+
tempestDrawerInLeft: Vn,
|
|
537
|
+
top: Qn,
|
|
538
|
+
tempestDrawerInTop: Yn,
|
|
539
|
+
bottom: Xn,
|
|
540
|
+
tempestDrawerInBottom: Zn,
|
|
541
|
+
header: er,
|
|
542
|
+
title: tr,
|
|
543
|
+
close: nr,
|
|
544
|
+
body: rr,
|
|
545
|
+
footer: sr
|
|
546
546
|
};
|
|
547
|
-
function
|
|
547
|
+
function ca({
|
|
548
548
|
open: e,
|
|
549
549
|
onClose: t,
|
|
550
550
|
placement: n = "right",
|
|
@@ -566,39 +566,39 @@ function zi({
|
|
|
566
566
|
return window.addEventListener("keydown", p), () => {
|
|
567
567
|
document.body.style.overflow = d, window.removeEventListener("keydown", p);
|
|
568
568
|
};
|
|
569
|
-
}, [e, c, t]), !e || typeof document > "u" ? null :
|
|
570
|
-
/* @__PURE__ */
|
|
569
|
+
}, [e, c, t]), !e || typeof document > "u" ? null : ke(
|
|
570
|
+
/* @__PURE__ */ w($e, { children: [
|
|
571
571
|
/* @__PURE__ */ l(
|
|
572
572
|
"div",
|
|
573
573
|
{
|
|
574
|
-
className:
|
|
574
|
+
className: q.overlay,
|
|
575
575
|
onClick: () => {
|
|
576
576
|
i && t();
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
),
|
|
580
|
-
/* @__PURE__ */
|
|
580
|
+
/* @__PURE__ */ w(
|
|
581
581
|
"aside",
|
|
582
582
|
{
|
|
583
583
|
role: "dialog",
|
|
584
584
|
"aria-modal": "true",
|
|
585
|
-
className:
|
|
585
|
+
className: _(q.panel, q[n], u),
|
|
586
586
|
children: [
|
|
587
|
-
(r || !a) && /* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */ l("h3", { className:
|
|
587
|
+
(r || !a) && /* @__PURE__ */ w("header", { className: q.header, children: [
|
|
588
|
+
/* @__PURE__ */ l("h3", { className: q.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: q.close,
|
|
595
595
|
onClick: t,
|
|
596
|
-
children: /* @__PURE__ */ l(
|
|
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: q.body, children: s }),
|
|
601
|
+
o && /* @__PURE__ */ l("footer", { className: q.footer, children: o })
|
|
602
602
|
]
|
|
603
603
|
}
|
|
604
604
|
)
|
|
@@ -606,7 +606,7 @@ function zi({
|
|
|
606
606
|
document.body
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function or() {
|
|
610
610
|
return /* @__PURE__ */ l("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
611
611
|
"path",
|
|
612
612
|
{
|
|
@@ -617,29 +617,29 @@ function nr() {
|
|
|
617
617
|
}
|
|
618
618
|
) });
|
|
619
619
|
}
|
|
620
|
-
const
|
|
621
|
-
wrapper:
|
|
622
|
-
icon:
|
|
623
|
-
title:
|
|
624
|
-
description:
|
|
625
|
-
action:
|
|
620
|
+
const ir = "tempest_wrapper_gzyTd", ar = "tempest_icon_qVCyh", cr = "tempest_title_xPfUf", lr = "tempest_description_oWwH1", ur = "tempest_action_dqxw1", se = {
|
|
621
|
+
wrapper: ir,
|
|
622
|
+
icon: ar,
|
|
623
|
+
title: cr,
|
|
624
|
+
description: lr,
|
|
625
|
+
action: ur
|
|
626
626
|
};
|
|
627
|
-
function
|
|
628
|
-
return /* @__PURE__ */
|
|
629
|
-
e && /* @__PURE__ */ l("div", { className:
|
|
630
|
-
/* @__PURE__ */ l("h4", { className:
|
|
631
|
-
n && /* @__PURE__ */ l("p", { className:
|
|
632
|
-
r && /* @__PURE__ */ l("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
|
+
e && /* @__PURE__ */ l("div", { className: se.icon, children: e }),
|
|
630
|
+
/* @__PURE__ */ l("h4", { className: se.title, children: t }),
|
|
631
|
+
n && /* @__PURE__ */ l("p", { className: se.description, children: n }),
|
|
632
|
+
r && /* @__PURE__ */ l("div", { className: se.action, children: r })
|
|
633
633
|
] });
|
|
634
634
|
}
|
|
635
|
-
const
|
|
636
|
-
wrapper:
|
|
637
|
-
icon:
|
|
638
|
-
title:
|
|
639
|
-
description:
|
|
640
|
-
action:
|
|
635
|
+
const dr = "tempest_wrapper_luRyF", pr = "tempest_icon_dEdBl", fr = "tempest_title_StutD", mr = "tempest_description_A2XCb", hr = "tempest_action_vm1LC", oe = {
|
|
636
|
+
wrapper: dr,
|
|
637
|
+
icon: pr,
|
|
638
|
+
title: fr,
|
|
639
|
+
description: mr,
|
|
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 qi({
|
|
|
647
647
|
icon: s,
|
|
648
648
|
className: o
|
|
649
649
|
}) {
|
|
650
|
-
return /* @__PURE__ */
|
|
651
|
-
/* @__PURE__ */ l("div", { className:
|
|
652
|
-
/* @__PURE__ */ l("h4", { className:
|
|
653
|
-
t && /* @__PURE__ */ l("p", { className:
|
|
654
|
-
n && /* @__PURE__ */ l("div", { className:
|
|
650
|
+
return /* @__PURE__ */ w("div", { className: _(oe.wrapper, o), children: [
|
|
651
|
+
/* @__PURE__ */ l("div", { className: oe.icon, children: s ?? /* @__PURE__ */ l(gr, {}) }),
|
|
652
|
+
/* @__PURE__ */ l("h4", { className: oe.title, children: e }),
|
|
653
|
+
t && /* @__PURE__ */ l("p", { className: oe.description, children: t }),
|
|
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,30 +666,30 @@ function fr() {
|
|
|
666
666
|
}
|
|
667
667
|
) });
|
|
668
668
|
}
|
|
669
|
-
const
|
|
670
|
-
wrapper:
|
|
671
|
-
label:
|
|
672
|
-
dropzone:
|
|
673
|
-
active:
|
|
674
|
-
disabled:
|
|
675
|
-
icon:
|
|
676
|
-
title:
|
|
677
|
-
subtitle:
|
|
678
|
-
files:
|
|
679
|
-
file:
|
|
680
|
-
fileMeta:
|
|
681
|
-
remove:
|
|
682
|
-
hidden:
|
|
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
|
+
label: yr,
|
|
672
|
+
dropzone: wr,
|
|
673
|
+
active: br,
|
|
674
|
+
disabled: vr,
|
|
675
|
+
icon: Nr,
|
|
676
|
+
title: $r,
|
|
677
|
+
subtitle: kr,
|
|
678
|
+
files: Sr,
|
|
679
|
+
file: xr,
|
|
680
|
+
fileMeta: Tr,
|
|
681
|
+
remove: Er,
|
|
682
|
+
hidden: Cr
|
|
683
683
|
};
|
|
684
|
-
function
|
|
684
|
+
function Lr(e) {
|
|
685
685
|
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1024 / 1024).toFixed(1)} MB`;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Ir(e, t) {
|
|
688
688
|
if (!t) return !0;
|
|
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,
|
|
@@ -702,11 +702,11 @@ function Gi({
|
|
|
702
702
|
subtitle: u,
|
|
703
703
|
className: d
|
|
704
704
|
}) {
|
|
705
|
-
const [p, f] = v(!1), m =
|
|
706
|
-
function g(
|
|
705
|
+
const [p, f] = v(!1), m = T(null);
|
|
706
|
+
function g(y) {
|
|
707
707
|
const N = [], $ = [];
|
|
708
|
-
for (const I of Array.from(
|
|
709
|
-
if (!
|
|
708
|
+
for (const I of Array.from(y)) {
|
|
709
|
+
if (!Ir(I, r)) {
|
|
710
710
|
$.push({ file: I, reason: "type" });
|
|
711
711
|
continue;
|
|
712
712
|
}
|
|
@@ -720,19 +720,19 @@ function Gi({
|
|
|
720
720
|
const C = s ? [...e, ...N] : N.slice(0, 1);
|
|
721
721
|
t(C);
|
|
722
722
|
}
|
|
723
|
-
function h(
|
|
724
|
-
|
|
723
|
+
function h(y) {
|
|
724
|
+
y.preventDefault(), f(!1), !c && y.dataTransfer?.files && g(y.dataTransfer.files);
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function b(y) {
|
|
727
727
|
const N = e.slice();
|
|
728
|
-
N.splice(
|
|
728
|
+
N.splice(y, 1), t(N);
|
|
729
729
|
}
|
|
730
|
-
return /* @__PURE__ */
|
|
730
|
+
return /* @__PURE__ */ w("div", { className: _(D.wrapper, d), children: [
|
|
731
731
|
n && /* @__PURE__ */ l("label", { className: D.label, children: n }),
|
|
732
|
-
/* @__PURE__ */
|
|
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
|
|
@@ -740,17 +740,17 @@ function Gi({
|
|
|
740
740
|
role: "button",
|
|
741
741
|
tabIndex: c ? -1 : 0,
|
|
742
742
|
onClick: () => !c && m.current?.click(),
|
|
743
|
-
onKeyDown: (
|
|
744
|
-
(
|
|
743
|
+
onKeyDown: (y) => {
|
|
744
|
+
(y.key === "Enter" || y.key === " ") && (y.preventDefault(), m.current?.click());
|
|
745
745
|
},
|
|
746
|
-
onDragEnter: (
|
|
747
|
-
|
|
746
|
+
onDragEnter: (y) => {
|
|
747
|
+
y.preventDefault(), c || f(!0);
|
|
748
748
|
},
|
|
749
|
-
onDragOver: (
|
|
749
|
+
onDragOver: (y) => y.preventDefault(),
|
|
750
750
|
onDragLeave: () => f(!1),
|
|
751
751
|
onDrop: h,
|
|
752
752
|
children: [
|
|
753
|
-
/* @__PURE__ */ l("div", { className: D.icon, "aria-hidden": !0, children: /* @__PURE__ */ l(
|
|
753
|
+
/* @__PURE__ */ l("div", { className: D.icon, "aria-hidden": !0, children: /* @__PURE__ */ l(Dr, {}) }),
|
|
754
754
|
/* @__PURE__ */ l("p", { className: D.title, children: a }),
|
|
755
755
|
u && /* @__PURE__ */ l("p", { className: D.subtitle, children: u }),
|
|
756
756
|
/* @__PURE__ */ l(
|
|
@@ -762,33 +762,33 @@ function Gi({
|
|
|
762
762
|
multiple: s,
|
|
763
763
|
disabled: c,
|
|
764
764
|
className: D.hidden,
|
|
765
|
-
onChange: (
|
|
766
|
-
|
|
765
|
+
onChange: (y) => {
|
|
766
|
+
y.target.files && g(y.target.files), y.target.value = "";
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
)
|
|
770
770
|
]
|
|
771
771
|
}
|
|
772
772
|
),
|
|
773
|
-
e.length > 0 && /* @__PURE__ */ l("ul", { className: D.files, children: e.map((
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */ l("div", { children:
|
|
776
|
-
/* @__PURE__ */ l("div", { className: D.fileMeta, children:
|
|
773
|
+
e.length > 0 && /* @__PURE__ */ l("ul", { className: D.files, children: e.map((y, N) => /* @__PURE__ */ w("li", { className: D.file, children: [
|
|
774
|
+
/* @__PURE__ */ w("div", { children: [
|
|
775
|
+
/* @__PURE__ */ l("div", { children: y.name }),
|
|
776
|
+
/* @__PURE__ */ l("div", { className: D.fileMeta, children: Lr(y.size) })
|
|
777
777
|
] }),
|
|
778
778
|
/* @__PURE__ */ l(
|
|
779
779
|
"button",
|
|
780
780
|
{
|
|
781
781
|
type: "button",
|
|
782
|
-
"aria-label": `Remover ${
|
|
782
|
+
"aria-label": `Remover ${y.name}`,
|
|
783
783
|
className: D.remove,
|
|
784
|
-
onClick: () =>
|
|
784
|
+
onClick: () => b(N),
|
|
785
785
|
children: "×"
|
|
786
786
|
}
|
|
787
787
|
)
|
|
788
|
-
] }, `${
|
|
788
|
+
] }, `${y.name}-${N}`)) })
|
|
789
789
|
] });
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Dr() {
|
|
792
792
|
return /* @__PURE__ */ l("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
793
793
|
"path",
|
|
794
794
|
{
|
|
@@ -800,31 +800,109 @@ function Cr() {
|
|
|
800
800
|
}
|
|
801
801
|
) });
|
|
802
802
|
}
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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", qr = "tempest_center_mKkz4", Gr = "tempest_end_O3yDQ", Hr = "tempest_between_tte2z", F = {
|
|
804
|
+
form: Mr,
|
|
805
|
+
stack: Pr,
|
|
806
|
+
inline: Ar,
|
|
807
|
+
grid: Rr,
|
|
808
|
+
section: Fr,
|
|
809
|
+
sectionHeader: Or,
|
|
810
|
+
sectionTitle: Wr,
|
|
811
|
+
sectionDescription: Br,
|
|
812
|
+
sectionBody: jr,
|
|
813
|
+
row: Ur,
|
|
814
|
+
actions: zr,
|
|
815
|
+
start: Jr,
|
|
816
|
+
center: qr,
|
|
817
|
+
end: Gr,
|
|
818
|
+
between: Hr
|
|
819
|
+
};
|
|
820
|
+
function de(e, t) {
|
|
821
|
+
return e === void 0 ? `${t * 4}px` : typeof e == "number" ? `${e * 4}px` : e;
|
|
822
|
+
}
|
|
823
|
+
function Oe(e) {
|
|
824
|
+
return e === void 0 ? "repeat(2, minmax(0, 1fr))" : typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
|
|
825
|
+
}
|
|
826
|
+
const pa = O(function({ layout: t = "stack", columns: n, gap: r, className: s, style: o, children: i, ...c }, a) {
|
|
827
|
+
const u = {
|
|
828
|
+
gap: de(r, 4),
|
|
829
|
+
...t === "grid" ? { gridTemplateColumns: Oe(n) } : null,
|
|
830
|
+
...o
|
|
831
|
+
};
|
|
832
|
+
return /* @__PURE__ */ l(
|
|
833
|
+
"form",
|
|
834
|
+
{
|
|
835
|
+
ref: a,
|
|
836
|
+
className: _(F.form, F[t], s),
|
|
837
|
+
style: u,
|
|
838
|
+
...c,
|
|
839
|
+
children: i
|
|
840
|
+
}
|
|
841
|
+
);
|
|
842
|
+
});
|
|
843
|
+
function fa({
|
|
844
|
+
title: e,
|
|
845
|
+
description: t,
|
|
846
|
+
layout: n = "stack",
|
|
847
|
+
columns: r,
|
|
848
|
+
gap: s,
|
|
849
|
+
className: o,
|
|
850
|
+
style: i,
|
|
851
|
+
children: c,
|
|
852
|
+
...a
|
|
853
|
+
}) {
|
|
854
|
+
const u = {
|
|
855
|
+
gap: de(s, 4),
|
|
856
|
+
...n === "grid" ? { gridTemplateColumns: Oe(r) } : null
|
|
857
|
+
};
|
|
858
|
+
return /* @__PURE__ */ w("section", { className: _(F.section, o), style: i, ...a, children: [
|
|
859
|
+
(e || t) && /* @__PURE__ */ w("header", { className: F.sectionHeader, children: [
|
|
860
|
+
e && /* @__PURE__ */ l("h3", { className: F.sectionTitle, children: e }),
|
|
861
|
+
t && /* @__PURE__ */ l("p", { className: F.sectionDescription, children: t })
|
|
862
|
+
] }),
|
|
863
|
+
/* @__PURE__ */ l("div", { className: _(F.sectionBody, F[n]), style: u, children: c })
|
|
864
|
+
] });
|
|
865
|
+
}
|
|
866
|
+
function ma({ gap: e, className: t, style: n, children: r, ...s }) {
|
|
867
|
+
const o = { gap: de(e, 3), ...n };
|
|
868
|
+
return /* @__PURE__ */ l("div", { className: _(F.row, t), style: o, ...s, children: r });
|
|
869
|
+
}
|
|
870
|
+
function ha({
|
|
871
|
+
align: e = "end",
|
|
872
|
+
gap: t,
|
|
873
|
+
className: n,
|
|
874
|
+
style: r,
|
|
875
|
+
children: s,
|
|
876
|
+
...o
|
|
877
|
+
}) {
|
|
878
|
+
const i = { gap: de(t, 2), ...r };
|
|
879
|
+
return /* @__PURE__ */ l("div", { className: _(F.actions, F[e], n), style: i, ...o, children: s });
|
|
880
|
+
}
|
|
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
|
+
container: Kr,
|
|
883
|
+
sm: Vr,
|
|
884
|
+
md: Qr,
|
|
885
|
+
lg: Yr,
|
|
886
|
+
xl: Xr,
|
|
887
|
+
full: Zr,
|
|
888
|
+
stack: es,
|
|
889
|
+
vertical: ts,
|
|
890
|
+
horizontal: ns,
|
|
891
|
+
center: rs,
|
|
892
|
+
start: ss,
|
|
893
|
+
end: os,
|
|
894
|
+
stretch: is,
|
|
895
|
+
justifyStart: as,
|
|
896
|
+
justifyCenter: cs,
|
|
897
|
+
justifyEnd: ls,
|
|
898
|
+
justifyBetween: us,
|
|
899
|
+
wrap: ds,
|
|
900
|
+
grid: ps
|
|
823
901
|
};
|
|
824
|
-
function
|
|
825
|
-
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 });
|
|
826
904
|
}
|
|
827
|
-
function
|
|
905
|
+
function _a({
|
|
828
906
|
direction: e = "vertical",
|
|
829
907
|
gap: t = 2,
|
|
830
908
|
align: n,
|
|
@@ -839,7 +917,7 @@ function Hi({
|
|
|
839
917
|
return /* @__PURE__ */ l(
|
|
840
918
|
"div",
|
|
841
919
|
{
|
|
842
|
-
className:
|
|
920
|
+
className: _(
|
|
843
921
|
A.stack,
|
|
844
922
|
e === "vertical" ? A.vertical : A.horizontal,
|
|
845
923
|
n && A[n],
|
|
@@ -853,27 +931,27 @@ function Hi({
|
|
|
853
931
|
}
|
|
854
932
|
);
|
|
855
933
|
}
|
|
856
|
-
function
|
|
934
|
+
function ya({ columns: e = 2, gap: t = 4, className: n, style: r, children: s, ...o }) {
|
|
857
935
|
const i = typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e, c = typeof t == "number" ? `${t * 4}px` : t;
|
|
858
936
|
return /* @__PURE__ */ l(
|
|
859
937
|
"div",
|
|
860
938
|
{
|
|
861
|
-
className:
|
|
939
|
+
className: _(A.grid, n),
|
|
862
940
|
style: { gridTemplateColumns: i, gap: c, ...r },
|
|
863
941
|
...o,
|
|
864
942
|
children: s
|
|
865
943
|
}
|
|
866
944
|
);
|
|
867
945
|
}
|
|
868
|
-
const
|
|
869
|
-
wrapper:
|
|
870
|
-
controls:
|
|
871
|
-
page:
|
|
872
|
-
active:
|
|
873
|
-
ellipsis:
|
|
874
|
-
sizeSelect:
|
|
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
|
+
wrapper: fs,
|
|
948
|
+
controls: ms,
|
|
949
|
+
page: hs,
|
|
950
|
+
active: gs,
|
|
951
|
+
ellipsis: _s,
|
|
952
|
+
sizeSelect: ys
|
|
875
953
|
};
|
|
876
|
-
function
|
|
954
|
+
function ws(e, t, n) {
|
|
877
955
|
const r = n + 4;
|
|
878
956
|
if (t <= r)
|
|
879
957
|
return Array.from({ length: t }, (c, a) => a + 1);
|
|
@@ -882,7 +960,7 @@ function ts(e, t, n) {
|
|
|
882
960
|
for (let c = s; c <= o; c++) i.push(c);
|
|
883
961
|
return o < t - 1 && i.push("..."), i.push(t), i;
|
|
884
962
|
}
|
|
885
|
-
function
|
|
963
|
+
function wa({
|
|
886
964
|
page: e,
|
|
887
965
|
totalPages: t,
|
|
888
966
|
onPageChange: n,
|
|
@@ -893,18 +971,18 @@ function Qi({
|
|
|
893
971
|
siblingCount: c = 3,
|
|
894
972
|
className: a
|
|
895
973
|
}) {
|
|
896
|
-
const u =
|
|
897
|
-
() =>
|
|
974
|
+
const u = W(
|
|
975
|
+
() => ws(e, t, c),
|
|
898
976
|
[e, t, c]
|
|
899
977
|
);
|
|
900
|
-
return t <= 1 && !s ? null : /* @__PURE__ */
|
|
978
|
+
return t <= 1 && !s ? null : /* @__PURE__ */ w("div", { className: _(G.wrapper, a), children: [
|
|
901
979
|
/* @__PURE__ */ l("div", { children: typeof i == "number" ? `${i} resultado${i === 1 ? "" : "s"}` : null }),
|
|
902
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ w("div", { className: G.controls, children: [
|
|
903
981
|
/* @__PURE__ */ l(
|
|
904
982
|
"button",
|
|
905
983
|
{
|
|
906
984
|
type: "button",
|
|
907
|
-
className:
|
|
985
|
+
className: G.page,
|
|
908
986
|
onClick: () => n(Math.max(1, e - 1)),
|
|
909
987
|
disabled: e <= 1,
|
|
910
988
|
"aria-label": "Página anterior",
|
|
@@ -912,11 +990,11 @@ function Qi({
|
|
|
912
990
|
}
|
|
913
991
|
),
|
|
914
992
|
u.map(
|
|
915
|
-
(d, p) => d === "..." ? /* @__PURE__ */ l("span", { className:
|
|
993
|
+
(d, p) => d === "..." ? /* @__PURE__ */ l("span", { className: G.ellipsis, children: "…" }, `ellipsis-${p}`) : /* @__PURE__ */ l(
|
|
916
994
|
"button",
|
|
917
995
|
{
|
|
918
996
|
type: "button",
|
|
919
|
-
className:
|
|
997
|
+
className: _(G.page, d === e && G.active),
|
|
920
998
|
onClick: () => n(d),
|
|
921
999
|
"aria-current": d === e ? "page" : void 0,
|
|
922
1000
|
children: d
|
|
@@ -928,7 +1006,7 @@ function Qi({
|
|
|
928
1006
|
"button",
|
|
929
1007
|
{
|
|
930
1008
|
type: "button",
|
|
931
|
-
className:
|
|
1009
|
+
className: G.page,
|
|
932
1010
|
onClick: () => n(Math.min(t, e + 1)),
|
|
933
1011
|
disabled: e >= t,
|
|
934
1012
|
"aria-label": "Próxima página",
|
|
@@ -938,11 +1016,11 @@ function Qi({
|
|
|
938
1016
|
s && /* @__PURE__ */ l(
|
|
939
1017
|
"select",
|
|
940
1018
|
{
|
|
941
|
-
className:
|
|
1019
|
+
className: G.sizeSelect,
|
|
942
1020
|
value: r,
|
|
943
1021
|
onChange: (d) => s(Number(d.target.value)),
|
|
944
1022
|
"aria-label": "Itens por página",
|
|
945
|
-
children: o.map((d) => /* @__PURE__ */
|
|
1023
|
+
children: o.map((d) => /* @__PURE__ */ w("option", { value: d, children: [
|
|
946
1024
|
d,
|
|
947
1025
|
" / página"
|
|
948
1026
|
] }, d))
|
|
@@ -951,18 +1029,18 @@ function Qi({
|
|
|
951
1029
|
] })
|
|
952
1030
|
] });
|
|
953
1031
|
}
|
|
954
|
-
const
|
|
955
|
-
wrapper:
|
|
956
|
-
bar:
|
|
957
|
-
fill:
|
|
958
|
-
success:
|
|
959
|
-
warning:
|
|
960
|
-
danger:
|
|
961
|
-
indeterminate:
|
|
962
|
-
tempestProgressLoop:
|
|
963
|
-
label:
|
|
1032
|
+
const bs = "tempest_wrapper_BQek1", vs = "tempest_bar_uC-0x", Ns = "tempest_fill_vmg7x", $s = "tempest_success_gWJ8U", ks = "tempest_warning_DGkPO", Ss = "tempest_danger_gfwHh", xs = "tempest_indeterminate_HojUj", Ts = "tempest_tempest-progress-loop_0nEdF", Es = "tempest_label_qqHJM", X = {
|
|
1033
|
+
wrapper: bs,
|
|
1034
|
+
bar: vs,
|
|
1035
|
+
fill: Ns,
|
|
1036
|
+
success: $s,
|
|
1037
|
+
warning: ks,
|
|
1038
|
+
danger: Ss,
|
|
1039
|
+
indeterminate: xs,
|
|
1040
|
+
tempestProgressLoop: Ts,
|
|
1041
|
+
label: Es
|
|
964
1042
|
};
|
|
965
|
-
function
|
|
1043
|
+
function ba({
|
|
966
1044
|
value: e = 0,
|
|
967
1045
|
max: t = 100,
|
|
968
1046
|
variant: n = "primary",
|
|
@@ -972,10 +1050,10 @@ function Yi({
|
|
|
972
1050
|
className: i
|
|
973
1051
|
}) {
|
|
974
1052
|
const c = r ? 0 : Math.max(0, Math.min(100, e / t * 100));
|
|
975
|
-
return /* @__PURE__ */
|
|
976
|
-
(s || o) && /* @__PURE__ */
|
|
1053
|
+
return /* @__PURE__ */ w("div", { className: _(X.wrapper, i), children: [
|
|
1054
|
+
(s || o) && /* @__PURE__ */ w("div", { className: X.label, children: [
|
|
977
1055
|
o && /* @__PURE__ */ l("span", { children: o }),
|
|
978
|
-
s && !r && /* @__PURE__ */
|
|
1056
|
+
s && !r && /* @__PURE__ */ w("span", { children: [
|
|
979
1057
|
Math.round(c),
|
|
980
1058
|
"%"
|
|
981
1059
|
] })
|
|
@@ -987,11 +1065,11 @@ function Yi({
|
|
|
987
1065
|
"aria-valuemin": 0,
|
|
988
1066
|
"aria-valuemax": t,
|
|
989
1067
|
"aria-valuenow": r ? void 0 : e,
|
|
990
|
-
className:
|
|
1068
|
+
className: _(X.bar, r && X.indeterminate),
|
|
991
1069
|
children: /* @__PURE__ */ l(
|
|
992
1070
|
"div",
|
|
993
1071
|
{
|
|
994
|
-
className:
|
|
1072
|
+
className: _(X.fill, n !== "primary" && X[n]),
|
|
995
1073
|
style: { width: r ? void 0 : `${c}%` }
|
|
996
1074
|
}
|
|
997
1075
|
)
|
|
@@ -999,17 +1077,17 @@ function Yi({
|
|
|
999
1077
|
)
|
|
1000
1078
|
] });
|
|
1001
1079
|
}
|
|
1002
|
-
const
|
|
1003
|
-
wrapper:
|
|
1004
|
-
disabled:
|
|
1005
|
-
input:
|
|
1006
|
-
dot:
|
|
1007
|
-
labelWrap:
|
|
1008
|
-
label:
|
|
1009
|
-
description:
|
|
1010
|
-
group:
|
|
1011
|
-
horizontal:
|
|
1012
|
-
},
|
|
1080
|
+
const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest_input_7R8ZN", Ds = "tempest_dot_P7ejP", Ms = "tempest_labelWrap_iQ1HR", Ps = "tempest_label_vAFIP", As = "tempest_description_bEB8u", Rs = "tempest_group_oi329", Fs = "tempest_horizontal_1Ovgu", z = {
|
|
1081
|
+
wrapper: Cs,
|
|
1082
|
+
disabled: Ls,
|
|
1083
|
+
input: Is,
|
|
1084
|
+
dot: Ds,
|
|
1085
|
+
labelWrap: Ms,
|
|
1086
|
+
label: Ps,
|
|
1087
|
+
description: As,
|
|
1088
|
+
group: Rs,
|
|
1089
|
+
horizontal: Fs
|
|
1090
|
+
}, We = ne(null), va = O(function({
|
|
1013
1091
|
label: t,
|
|
1014
1092
|
description: n,
|
|
1015
1093
|
value: r,
|
|
@@ -1021,14 +1099,14 @@ const ds = "tempest_wrapper_P-gFm", ps = "tempest_disabled_0-cna", fs = "tempest
|
|
|
1021
1099
|
className: u,
|
|
1022
1100
|
...d
|
|
1023
1101
|
}, p) {
|
|
1024
|
-
const f =
|
|
1025
|
-
function
|
|
1026
|
-
f && f.onChange?.(r), c?.(
|
|
1102
|
+
const f = te(We), m = f?.name ?? o, g = f?.disabled ?? s, h = f ? f.value === r : i;
|
|
1103
|
+
function b(y) {
|
|
1104
|
+
f && f.onChange?.(r), c?.(y);
|
|
1027
1105
|
}
|
|
1028
|
-
return /* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ w(
|
|
1029
1107
|
"label",
|
|
1030
1108
|
{
|
|
1031
|
-
className:
|
|
1109
|
+
className: _(z.wrapper, g && z.disabled, a),
|
|
1032
1110
|
children: [
|
|
1033
1111
|
/* @__PURE__ */ l(
|
|
1034
1112
|
"input",
|
|
@@ -1039,21 +1117,21 @@ const ds = "tempest_wrapper_P-gFm", ps = "tempest_disabled_0-cna", fs = "tempest
|
|
|
1039
1117
|
value: r,
|
|
1040
1118
|
checked: h,
|
|
1041
1119
|
disabled: g,
|
|
1042
|
-
onChange:
|
|
1043
|
-
className:
|
|
1120
|
+
onChange: b,
|
|
1121
|
+
className: _(z.input, u),
|
|
1044
1122
|
...d
|
|
1045
1123
|
}
|
|
1046
1124
|
),
|
|
1047
|
-
/* @__PURE__ */ l("span", { className:
|
|
1048
|
-
(t || n) && /* @__PURE__ */
|
|
1049
|
-
t && /* @__PURE__ */ l("span", { className:
|
|
1050
|
-
n && /* @__PURE__ */ l("span", { className:
|
|
1125
|
+
/* @__PURE__ */ l("span", { className: z.dot, "aria-hidden": !0 }),
|
|
1126
|
+
(t || n) && /* @__PURE__ */ w("span", { className: z.labelWrap, children: [
|
|
1127
|
+
t && /* @__PURE__ */ l("span", { className: z.label, children: t }),
|
|
1128
|
+
n && /* @__PURE__ */ l("span", { className: z.description, children: n })
|
|
1051
1129
|
] })
|
|
1052
1130
|
]
|
|
1053
1131
|
}
|
|
1054
1132
|
);
|
|
1055
1133
|
});
|
|
1056
|
-
function
|
|
1134
|
+
function Na({
|
|
1057
1135
|
value: e,
|
|
1058
1136
|
defaultValue: t,
|
|
1059
1137
|
onChange: n,
|
|
@@ -1063,36 +1141,36 @@ function Xi({
|
|
|
1063
1141
|
className: i,
|
|
1064
1142
|
children: c
|
|
1065
1143
|
}) {
|
|
1066
|
-
const a =
|
|
1144
|
+
const a = ae(), u = r ?? a, [d, p] = v(t), f = e !== void 0, m = f ? e : d;
|
|
1067
1145
|
function g(h) {
|
|
1068
1146
|
f || p(h), n?.(h);
|
|
1069
1147
|
}
|
|
1070
1148
|
return /* @__PURE__ */ l(
|
|
1071
|
-
|
|
1149
|
+
We.Provider,
|
|
1072
1150
|
{
|
|
1073
1151
|
value: { name: u, value: m, onChange: g, disabled: s },
|
|
1074
1152
|
children: /* @__PURE__ */ l(
|
|
1075
1153
|
"div",
|
|
1076
1154
|
{
|
|
1077
1155
|
role: "radiogroup",
|
|
1078
|
-
className:
|
|
1156
|
+
className: _(z.group, o && z.horizontal, i),
|
|
1079
1157
|
children: c
|
|
1080
1158
|
}
|
|
1081
1159
|
)
|
|
1082
1160
|
}
|
|
1083
1161
|
);
|
|
1084
1162
|
}
|
|
1085
|
-
const
|
|
1086
|
-
wrapper:
|
|
1087
|
-
input:
|
|
1088
|
-
iconLeft:
|
|
1089
|
-
clear:
|
|
1090
|
-
},
|
|
1163
|
+
const Os = "tempest_wrapper_dKXJJ", Ws = "tempest_input_m0lPc", Bs = "tempest_iconLeft_030-U", js = "tempest_clear_nb6lG", le = {
|
|
1164
|
+
wrapper: Os,
|
|
1165
|
+
input: Ws,
|
|
1166
|
+
iconLeft: Bs,
|
|
1167
|
+
clear: js
|
|
1168
|
+
}, $a = O(function({ value: t, onChange: n, onClear: r, wrapperClassName: s, placeholder: o = "Buscar...", className: i, ...c }, a) {
|
|
1091
1169
|
function u() {
|
|
1092
1170
|
n(""), r?.();
|
|
1093
1171
|
}
|
|
1094
|
-
return /* @__PURE__ */
|
|
1095
|
-
/* @__PURE__ */ l("span", { className:
|
|
1172
|
+
return /* @__PURE__ */ w("div", { className: _(le.wrapper, s), children: [
|
|
1173
|
+
/* @__PURE__ */ l("span", { className: le.iconLeft, "aria-hidden": !0, children: /* @__PURE__ */ l(Us, {}) }),
|
|
1096
1174
|
/* @__PURE__ */ l(
|
|
1097
1175
|
"input",
|
|
1098
1176
|
{
|
|
@@ -1101,7 +1179,7 @@ const ws = "tempest_wrapper_dKXJJ", vs = "tempest_input_m0lPc", Ns = "tempest_ic
|
|
|
1101
1179
|
value: t,
|
|
1102
1180
|
onChange: (d) => n(d.target.value),
|
|
1103
1181
|
placeholder: o,
|
|
1104
|
-
className:
|
|
1182
|
+
className: _(le.input, i),
|
|
1105
1183
|
...c
|
|
1106
1184
|
}
|
|
1107
1185
|
),
|
|
@@ -1109,21 +1187,21 @@ const ws = "tempest_wrapper_dKXJJ", vs = "tempest_input_m0lPc", Ns = "tempest_ic
|
|
|
1109
1187
|
"button",
|
|
1110
1188
|
{
|
|
1111
1189
|
type: "button",
|
|
1112
|
-
className:
|
|
1190
|
+
className: le.clear,
|
|
1113
1191
|
"aria-label": "Limpar busca",
|
|
1114
1192
|
onClick: u,
|
|
1115
|
-
children: /* @__PURE__ */ l(
|
|
1193
|
+
children: /* @__PURE__ */ l(zs, {})
|
|
1116
1194
|
}
|
|
1117
1195
|
)
|
|
1118
1196
|
] });
|
|
1119
1197
|
});
|
|
1120
|
-
function
|
|
1121
|
-
return /* @__PURE__ */
|
|
1198
|
+
function Us() {
|
|
1199
|
+
return /* @__PURE__ */ w("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: [
|
|
1122
1200
|
/* @__PURE__ */ l("circle", { cx: "11", cy: "11", r: "7", stroke: "currentColor", strokeWidth: "2" }),
|
|
1123
1201
|
/* @__PURE__ */ l("path", { d: "M20 20l-3.5-3.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
1124
1202
|
] });
|
|
1125
1203
|
}
|
|
1126
|
-
function
|
|
1204
|
+
function zs() {
|
|
1127
1205
|
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
1128
1206
|
"path",
|
|
1129
1207
|
{
|
|
@@ -1134,17 +1212,17 @@ function Ss() {
|
|
|
1134
1212
|
}
|
|
1135
1213
|
) });
|
|
1136
1214
|
}
|
|
1137
|
-
const
|
|
1138
|
-
wrapper:
|
|
1139
|
-
label:
|
|
1140
|
-
required:
|
|
1141
|
-
field:
|
|
1142
|
-
select:
|
|
1143
|
-
caret:
|
|
1144
|
-
error:
|
|
1145
|
-
helper:
|
|
1146
|
-
errorText:
|
|
1147
|
-
},
|
|
1215
|
+
const Js = "tempest_wrapper_KS2K3", qs = "tempest_label_Lmgos", Gs = "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
|
+
wrapper: Js,
|
|
1217
|
+
label: qs,
|
|
1218
|
+
required: Gs,
|
|
1219
|
+
field: Hs,
|
|
1220
|
+
select: Ks,
|
|
1221
|
+
caret: Vs,
|
|
1222
|
+
error: Qs,
|
|
1223
|
+
helper: Ys,
|
|
1224
|
+
errorText: Xs
|
|
1225
|
+
}, ka = O(function({
|
|
1148
1226
|
label: t,
|
|
1149
1227
|
helperText: n,
|
|
1150
1228
|
error: r,
|
|
@@ -1157,21 +1235,21 @@ const xs = "tempest_wrapper_KS2K3", Es = "tempest_label_Lmgos", Ts = "tempest_re
|
|
|
1157
1235
|
required: d,
|
|
1158
1236
|
...p
|
|
1159
1237
|
}, f) {
|
|
1160
|
-
const m =
|
|
1161
|
-
return /* @__PURE__ */
|
|
1162
|
-
t && /* @__PURE__ */
|
|
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: [
|
|
1163
1241
|
t,
|
|
1164
|
-
d && /* @__PURE__ */ l("span", { className:
|
|
1242
|
+
d && /* @__PURE__ */ l("span", { className: j.required, children: "*" })
|
|
1165
1243
|
] }),
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
/* @__PURE__ */
|
|
1244
|
+
/* @__PURE__ */ w("div", { className: j.field, children: [
|
|
1245
|
+
/* @__PURE__ */ w(
|
|
1168
1246
|
"select",
|
|
1169
1247
|
{
|
|
1170
1248
|
ref: f,
|
|
1171
1249
|
id: g,
|
|
1172
1250
|
"aria-invalid": !!r,
|
|
1173
1251
|
required: d,
|
|
1174
|
-
className:
|
|
1252
|
+
className: _(j.select, c),
|
|
1175
1253
|
...p,
|
|
1176
1254
|
children: [
|
|
1177
1255
|
o && /* @__PURE__ */ l("option", { value: "", disabled: !0, hidden: !0, children: o }),
|
|
@@ -1180,12 +1258,12 @@ const xs = "tempest_wrapper_KS2K3", Es = "tempest_label_Lmgos", Ts = "tempest_re
|
|
|
1180
1258
|
]
|
|
1181
1259
|
}
|
|
1182
1260
|
),
|
|
1183
|
-
/* @__PURE__ */ l("span", { className:
|
|
1261
|
+
/* @__PURE__ */ l("span", { className: j.caret, "aria-hidden": !0, children: /* @__PURE__ */ l(Zs, {}) })
|
|
1184
1262
|
] }),
|
|
1185
|
-
r ? /* @__PURE__ */ l("span", { className:
|
|
1263
|
+
r ? /* @__PURE__ */ l("span", { className: j.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { className: j.helper, children: n }) : null
|
|
1186
1264
|
] });
|
|
1187
1265
|
});
|
|
1188
|
-
function
|
|
1266
|
+
function Zs() {
|
|
1189
1267
|
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
1190
1268
|
"path",
|
|
1191
1269
|
{
|
|
@@ -1197,65 +1275,65 @@ function As() {
|
|
|
1197
1275
|
}
|
|
1198
1276
|
) });
|
|
1199
1277
|
}
|
|
1200
|
-
const
|
|
1201
|
-
skeleton:
|
|
1202
|
-
text:
|
|
1203
|
-
circle:
|
|
1278
|
+
const eo = "tempest_skeleton_CB4uF", to = "tempest_text_-A8IF", no = "tempest_circle_DYcl8", ge = {
|
|
1279
|
+
skeleton: eo,
|
|
1280
|
+
text: to,
|
|
1281
|
+
circle: no
|
|
1204
1282
|
};
|
|
1205
|
-
function
|
|
1283
|
+
function Sa({ variant: e = "rect", width: t, height: n, className: r, style: s }) {
|
|
1206
1284
|
return /* @__PURE__ */ l(
|
|
1207
1285
|
"span",
|
|
1208
1286
|
{
|
|
1209
1287
|
"aria-hidden": !0,
|
|
1210
|
-
className:
|
|
1211
|
-
|
|
1212
|
-
e === "text" &&
|
|
1213
|
-
e === "circle" &&
|
|
1288
|
+
className: _(
|
|
1289
|
+
ge.skeleton,
|
|
1290
|
+
e === "text" && ge.text,
|
|
1291
|
+
e === "circle" && ge.circle,
|
|
1214
1292
|
r
|
|
1215
1293
|
),
|
|
1216
1294
|
style: { width: t, height: n, ...s }
|
|
1217
1295
|
}
|
|
1218
1296
|
);
|
|
1219
1297
|
}
|
|
1220
|
-
const
|
|
1221
|
-
spinner:
|
|
1222
|
-
tempestSpinner:
|
|
1223
|
-
sm:
|
|
1224
|
-
md:
|
|
1225
|
-
lg:
|
|
1298
|
+
const ro = "tempest_spinner_GpFZS", so = "tempest_tempest-spinner_wKVCY", oo = "tempest_sm_3sIoD", io = "tempest_md_M2sPj", ao = "tempest_lg_IxTw2", Ee = {
|
|
1299
|
+
spinner: ro,
|
|
1300
|
+
tempestSpinner: so,
|
|
1301
|
+
sm: oo,
|
|
1302
|
+
md: io,
|
|
1303
|
+
lg: ao
|
|
1226
1304
|
};
|
|
1227
|
-
function
|
|
1305
|
+
function xa({ size: e = "md", className: t, label: n = "Carregando" }) {
|
|
1228
1306
|
return /* @__PURE__ */ l(
|
|
1229
1307
|
"span",
|
|
1230
1308
|
{
|
|
1231
1309
|
role: "status",
|
|
1232
1310
|
"aria-label": n,
|
|
1233
|
-
className:
|
|
1311
|
+
className: _(Ee.spinner, Ee[e], t)
|
|
1234
1312
|
}
|
|
1235
1313
|
);
|
|
1236
1314
|
}
|
|
1237
|
-
const
|
|
1238
|
-
stepper:
|
|
1239
|
-
vertical:
|
|
1240
|
-
step:
|
|
1241
|
-
dot:
|
|
1242
|
-
completed:
|
|
1243
|
-
active:
|
|
1244
|
-
label:
|
|
1245
|
-
connector:
|
|
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
|
+
stepper: co,
|
|
1317
|
+
vertical: lo,
|
|
1318
|
+
step: uo,
|
|
1319
|
+
dot: po,
|
|
1320
|
+
completed: fo,
|
|
1321
|
+
active: mo,
|
|
1322
|
+
label: ho,
|
|
1323
|
+
connector: go
|
|
1246
1324
|
};
|
|
1247
|
-
function
|
|
1325
|
+
function Ta({ steps: e, current: t, orientation: n = "horizontal", className: r }) {
|
|
1248
1326
|
return /* @__PURE__ */ l(
|
|
1249
1327
|
"ol",
|
|
1250
1328
|
{
|
|
1251
|
-
className:
|
|
1329
|
+
className: _(U.stepper, n === "vertical" && U.vertical, r),
|
|
1252
1330
|
children: e.map((s, o) => {
|
|
1253
1331
|
const i = o < t, c = o === t;
|
|
1254
|
-
return /* @__PURE__ */
|
|
1255
|
-
/* @__PURE__ */
|
|
1332
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
1333
|
+
/* @__PURE__ */ w(
|
|
1256
1334
|
"li",
|
|
1257
1335
|
{
|
|
1258
|
-
className:
|
|
1336
|
+
className: _(
|
|
1259
1337
|
U.step,
|
|
1260
1338
|
i && U.completed,
|
|
1261
1339
|
c && U.active
|
|
@@ -1270,7 +1348,7 @@ function sa({ steps: e, current: t, orientation: n = "horizontal", className: r
|
|
|
1270
1348
|
o < e.length - 1 && /* @__PURE__ */ l(
|
|
1271
1349
|
"span",
|
|
1272
1350
|
{
|
|
1273
|
-
className:
|
|
1351
|
+
className: _(U.connector, i && U.completed),
|
|
1274
1352
|
"aria-hidden": !0
|
|
1275
1353
|
}
|
|
1276
1354
|
)
|
|
@@ -1279,15 +1357,15 @@ function sa({ steps: e, current: t, orientation: n = "horizontal", className: r
|
|
|
1279
1357
|
}
|
|
1280
1358
|
);
|
|
1281
1359
|
}
|
|
1282
|
-
const
|
|
1283
|
-
wrapper:
|
|
1284
|
-
disabled:
|
|
1285
|
-
input:
|
|
1286
|
-
track:
|
|
1287
|
-
thumb:
|
|
1288
|
-
label:
|
|
1289
|
-
},
|
|
1290
|
-
return /* @__PURE__ */
|
|
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
|
+
disabled: yo,
|
|
1363
|
+
input: wo,
|
|
1364
|
+
track: bo,
|
|
1365
|
+
thumb: vo,
|
|
1366
|
+
label: No
|
|
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: [
|
|
1291
1369
|
/* @__PURE__ */ l(
|
|
1292
1370
|
"input",
|
|
1293
1371
|
{
|
|
@@ -1295,25 +1373,25 @@ const Zs = "tempest_wrapper_kudO9", Xs = "tempest_disabled_2aZ0V", eo = "tempest
|
|
|
1295
1373
|
type: "checkbox",
|
|
1296
1374
|
role: "switch",
|
|
1297
1375
|
disabled: n,
|
|
1298
|
-
className:
|
|
1376
|
+
className: _(Z.input, s),
|
|
1299
1377
|
...o
|
|
1300
1378
|
}
|
|
1301
1379
|
),
|
|
1302
1380
|
/* @__PURE__ */ l("span", { className: Z.track, "aria-hidden": !0, children: /* @__PURE__ */ l("span", { className: Z.thumb }) }),
|
|
1303
1381
|
t && /* @__PURE__ */ l("span", { className: Z.label, children: t })
|
|
1304
1382
|
] });
|
|
1305
|
-
}),
|
|
1306
|
-
scroll:
|
|
1307
|
-
table:
|
|
1308
|
-
th:
|
|
1309
|
-
td:
|
|
1310
|
-
tr:
|
|
1311
|
-
clickable:
|
|
1312
|
-
alignRight:
|
|
1313
|
-
alignCenter:
|
|
1314
|
-
emptyRow:
|
|
1383
|
+
}), $o = "tempest_scroll_unrJp", ko = "tempest_table_Dkosn", So = "tempest_th_PNuEx", xo = "tempest_td_jv9tA", To = "tempest_tr_7UG8J", Eo = "tempest_clickable_B6Si-", Co = "tempest_alignRight_9hY0G", Lo = "tempest_alignCenter_YiUQy", Io = "tempest_emptyRow_kdMiv", R = {
|
|
1384
|
+
scroll: $o,
|
|
1385
|
+
table: ko,
|
|
1386
|
+
th: So,
|
|
1387
|
+
td: xo,
|
|
1388
|
+
tr: To,
|
|
1389
|
+
clickable: Eo,
|
|
1390
|
+
alignRight: Co,
|
|
1391
|
+
alignCenter: Lo,
|
|
1392
|
+
emptyRow: Io
|
|
1315
1393
|
};
|
|
1316
|
-
function
|
|
1394
|
+
function Ca({
|
|
1317
1395
|
columns: e,
|
|
1318
1396
|
data: t,
|
|
1319
1397
|
rowKey: n,
|
|
@@ -1321,11 +1399,11 @@ function ia({
|
|
|
1321
1399
|
emptyMessage: s = "Nenhum registro encontrado.",
|
|
1322
1400
|
className: o
|
|
1323
1401
|
}) {
|
|
1324
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1402
|
+
return /* @__PURE__ */ l("div", { className: _(R.scroll, o), children: /* @__PURE__ */ w("table", { className: R.table, children: [
|
|
1325
1403
|
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((i) => /* @__PURE__ */ l(
|
|
1326
1404
|
"th",
|
|
1327
1405
|
{
|
|
1328
|
-
className:
|
|
1406
|
+
className: _(
|
|
1329
1407
|
R.th,
|
|
1330
1408
|
i.align === "right" && R.alignRight,
|
|
1331
1409
|
i.align === "center" && R.alignCenter
|
|
@@ -1338,14 +1416,14 @@ function ia({
|
|
|
1338
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(
|
|
1339
1417
|
"tr",
|
|
1340
1418
|
{
|
|
1341
|
-
className:
|
|
1419
|
+
className: _(R.tr, r && R.clickable),
|
|
1342
1420
|
onClick: r ? () => r(i) : void 0,
|
|
1343
1421
|
children: e.map((a) => {
|
|
1344
1422
|
const u = a.render ? a.render(i, c) : i[a.key];
|
|
1345
1423
|
return /* @__PURE__ */ l(
|
|
1346
1424
|
"td",
|
|
1347
1425
|
{
|
|
1348
|
-
className:
|
|
1426
|
+
className: _(
|
|
1349
1427
|
R.td,
|
|
1350
1428
|
a.align === "right" && R.alignRight,
|
|
1351
1429
|
a.align === "center" && R.alignCenter,
|
|
@@ -1361,14 +1439,14 @@ function ia({
|
|
|
1361
1439
|
)) })
|
|
1362
1440
|
] }) });
|
|
1363
1441
|
}
|
|
1364
|
-
const
|
|
1365
|
-
tablist:
|
|
1366
|
-
tab:
|
|
1367
|
-
active:
|
|
1368
|
-
panel:
|
|
1369
|
-
pill:
|
|
1442
|
+
const Do = "tempest_tablist_WR6ag", Mo = "tempest_tab_IdDYc", Po = "tempest_active_PTNtG", Ao = "tempest_panel_08i9c", Ro = "tempest_pill_lGuqn", ie = {
|
|
1443
|
+
tablist: Do,
|
|
1444
|
+
tab: Mo,
|
|
1445
|
+
active: Po,
|
|
1446
|
+
panel: Ao,
|
|
1447
|
+
pill: Ro
|
|
1370
1448
|
};
|
|
1371
|
-
function
|
|
1449
|
+
function La({
|
|
1372
1450
|
items: e,
|
|
1373
1451
|
defaultId: t,
|
|
1374
1452
|
activeId: n,
|
|
@@ -1380,8 +1458,8 @@ function aa({
|
|
|
1380
1458
|
function f(m) {
|
|
1381
1459
|
u || a(m), r?.(m);
|
|
1382
1460
|
}
|
|
1383
|
-
return /* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */ l("div", { role: "tablist", className:
|
|
1461
|
+
return /* @__PURE__ */ w("div", { className: o, children: [
|
|
1462
|
+
/* @__PURE__ */ l("div", { role: "tablist", className: _(ie.tablist, s === "pill" && ie.pill), children: e.map((m) => {
|
|
1385
1463
|
const g = m.id === p?.id;
|
|
1386
1464
|
return /* @__PURE__ */ l(
|
|
1387
1465
|
"button",
|
|
@@ -1392,7 +1470,7 @@ function aa({
|
|
|
1392
1470
|
"aria-controls": `panel-${m.id}`,
|
|
1393
1471
|
id: `tab-${m.id}`,
|
|
1394
1472
|
disabled: m.disabled,
|
|
1395
|
-
className:
|
|
1473
|
+
className: _(ie.tab, g && ie.active),
|
|
1396
1474
|
onClick: () => f(m.id),
|
|
1397
1475
|
children: m.label
|
|
1398
1476
|
},
|
|
@@ -1405,26 +1483,26 @@ function aa({
|
|
|
1405
1483
|
role: "tabpanel",
|
|
1406
1484
|
id: `panel-${p.id}`,
|
|
1407
1485
|
"aria-labelledby": `tab-${p.id}`,
|
|
1408
|
-
className:
|
|
1486
|
+
className: ie.panel,
|
|
1409
1487
|
children: p.content
|
|
1410
1488
|
}
|
|
1411
1489
|
)
|
|
1412
1490
|
] });
|
|
1413
1491
|
}
|
|
1414
|
-
const
|
|
1415
|
-
wrapper:
|
|
1416
|
-
label:
|
|
1417
|
-
required:
|
|
1418
|
-
textarea:
|
|
1419
|
-
error:
|
|
1420
|
-
helper:
|
|
1421
|
-
errorText:
|
|
1422
|
-
},
|
|
1423
|
-
const d =
|
|
1424
|
-
return /* @__PURE__ */
|
|
1425
|
-
t && /* @__PURE__ */
|
|
1492
|
+
const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_required_rDZXE", Bo = "tempest_textarea_Z-y6g", jo = "tempest_error_NWC9f", Uo = "tempest_helper_gedut", zo = "tempest_errorText_ey07q", V = {
|
|
1493
|
+
wrapper: Fo,
|
|
1494
|
+
label: Oo,
|
|
1495
|
+
required: Wo,
|
|
1496
|
+
textarea: Bo,
|
|
1497
|
+
error: jo,
|
|
1498
|
+
helper: Uo,
|
|
1499
|
+
errorText: zo
|
|
1500
|
+
}, Ia = O(function({ label: t, helperText: n, error: r, wrapperClassName: s, className: o, id: i, required: c, ...a }, u) {
|
|
1501
|
+
const d = ae(), p = i ?? d;
|
|
1502
|
+
return /* @__PURE__ */ w("div", { className: _(V.wrapper, r && V.error, s), children: [
|
|
1503
|
+
t && /* @__PURE__ */ w("label", { htmlFor: p, className: V.label, children: [
|
|
1426
1504
|
t,
|
|
1427
|
-
c && /* @__PURE__ */ l("span", { className:
|
|
1505
|
+
c && /* @__PURE__ */ l("span", { className: V.required, children: "*" })
|
|
1428
1506
|
] }),
|
|
1429
1507
|
/* @__PURE__ */ l(
|
|
1430
1508
|
"textarea",
|
|
@@ -1433,29 +1511,29 @@ const bo = "tempest_wrapper_C0gfg", wo = "tempest_label_cWLXP", vo = "tempest_re
|
|
|
1433
1511
|
id: p,
|
|
1434
1512
|
"aria-invalid": !!r,
|
|
1435
1513
|
required: c,
|
|
1436
|
-
className:
|
|
1514
|
+
className: _(V.textarea, o),
|
|
1437
1515
|
...a
|
|
1438
1516
|
}
|
|
1439
1517
|
),
|
|
1440
|
-
r ? /* @__PURE__ */ l("span", { className:
|
|
1518
|
+
r ? /* @__PURE__ */ l("span", { className: V.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { className: V.helper, children: n }) : null
|
|
1441
1519
|
] });
|
|
1442
|
-
}),
|
|
1443
|
-
trigger:
|
|
1444
|
-
bubble:
|
|
1445
|
-
tempestTooltipIn:
|
|
1446
|
-
top:
|
|
1447
|
-
bottom:
|
|
1448
|
-
left:
|
|
1449
|
-
right:
|
|
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
|
+
trigger: Jo,
|
|
1522
|
+
bubble: qo,
|
|
1523
|
+
tempestTooltipIn: Go,
|
|
1524
|
+
top: Ho,
|
|
1525
|
+
bottom: Ko,
|
|
1526
|
+
left: Vo,
|
|
1527
|
+
right: Qo
|
|
1450
1528
|
};
|
|
1451
|
-
function
|
|
1529
|
+
function Da({
|
|
1452
1530
|
content: e,
|
|
1453
1531
|
placement: t = "top",
|
|
1454
1532
|
children: n,
|
|
1455
1533
|
disabled: r = !1,
|
|
1456
1534
|
openDelay: s = 150
|
|
1457
1535
|
}) {
|
|
1458
|
-
const [o, i] = v(!1), c =
|
|
1536
|
+
const [o, i] = v(!1), c = ae();
|
|
1459
1537
|
let a = null;
|
|
1460
1538
|
function u() {
|
|
1461
1539
|
r || (a && clearTimeout(a), a = setTimeout(() => i(!0), s));
|
|
@@ -1463,45 +1541,45 @@ function la({
|
|
|
1463
1541
|
function d() {
|
|
1464
1542
|
a && (clearTimeout(a), a = null), i(!1);
|
|
1465
1543
|
}
|
|
1466
|
-
const p =
|
|
1544
|
+
const p = Ye(n, {
|
|
1467
1545
|
onMouseEnter: u,
|
|
1468
1546
|
onMouseLeave: d,
|
|
1469
1547
|
onFocus: u,
|
|
1470
1548
|
onBlur: d,
|
|
1471
1549
|
"aria-describedby": o ? c : void 0
|
|
1472
1550
|
});
|
|
1473
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ w("span", { className: _e.trigger, children: [
|
|
1474
1552
|
p,
|
|
1475
1553
|
o && /* @__PURE__ */ l(
|
|
1476
1554
|
"span",
|
|
1477
1555
|
{
|
|
1478
1556
|
id: c,
|
|
1479
1557
|
role: "tooltip",
|
|
1480
|
-
className:
|
|
1558
|
+
className: _(_e.bubble, _e[t]),
|
|
1481
1559
|
children: e
|
|
1482
1560
|
}
|
|
1483
1561
|
)
|
|
1484
1562
|
] });
|
|
1485
1563
|
}
|
|
1486
|
-
const
|
|
1487
|
-
container:
|
|
1488
|
-
toast:
|
|
1489
|
-
tempestToastIn:
|
|
1490
|
-
success:
|
|
1491
|
-
warning:
|
|
1492
|
-
error:
|
|
1493
|
-
info:
|
|
1494
|
-
title:
|
|
1495
|
-
description:
|
|
1496
|
-
close:
|
|
1497
|
-
},
|
|
1498
|
-
function
|
|
1499
|
-
const e =
|
|
1564
|
+
const Yo = "tempest_container_x4-Qm", Xo = "tempest_toast_FLdHz", Zo = "tempest_tempest-toast-in_E2d-A", ei = "tempest_success_Oy694", ti = "tempest_warning_84GC8", ni = "tempest_error_hrQAA", ri = "tempest_info_eq5bQ", si = "tempest_title_-H6R2", oi = "tempest_description_-QwfC", ii = "tempest_close_i10-s", ee = {
|
|
1565
|
+
container: Yo,
|
|
1566
|
+
toast: Xo,
|
|
1567
|
+
tempestToastIn: Zo,
|
|
1568
|
+
success: ei,
|
|
1569
|
+
warning: ti,
|
|
1570
|
+
error: ni,
|
|
1571
|
+
info: ri,
|
|
1572
|
+
title: si,
|
|
1573
|
+
description: oi,
|
|
1574
|
+
close: ii
|
|
1575
|
+
}, Be = ne(null);
|
|
1576
|
+
function Ma() {
|
|
1577
|
+
const e = te(Be);
|
|
1500
1578
|
if (!e) throw new Error("useToast must be used inside a <ToastProvider>");
|
|
1501
1579
|
return e;
|
|
1502
1580
|
}
|
|
1503
|
-
function
|
|
1504
|
-
const [n, r] = v([]), s =
|
|
1581
|
+
function Pa({ children: e, defaultDuration: t = 4e3 }) {
|
|
1582
|
+
const [n, r] = v([]), s = T(0), o = x((a) => {
|
|
1505
1583
|
r((u) => u.filter((d) => d.id !== a));
|
|
1506
1584
|
}, []), i = x(
|
|
1507
1585
|
(a) => {
|
|
@@ -1515,7 +1593,7 @@ function da({ children: e, defaultDuration: t = 4e3 }) {
|
|
|
1515
1593
|
return r((p) => [...p, d]), u;
|
|
1516
1594
|
},
|
|
1517
1595
|
[t]
|
|
1518
|
-
), c =
|
|
1596
|
+
), c = W(
|
|
1519
1597
|
() => ({
|
|
1520
1598
|
show: i,
|
|
1521
1599
|
dismiss: o,
|
|
@@ -1526,40 +1604,40 @@ function da({ children: e, defaultDuration: t = 4e3 }) {
|
|
|
1526
1604
|
}),
|
|
1527
1605
|
[i, o]
|
|
1528
1606
|
);
|
|
1529
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ w(Be.Provider, { value: c, children: [
|
|
1530
1608
|
e,
|
|
1531
|
-
/* @__PURE__ */ l(
|
|
1609
|
+
/* @__PURE__ */ l(ai, { toasts: n, onDismiss: o })
|
|
1532
1610
|
] });
|
|
1533
1611
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return typeof document > "u" ? null :
|
|
1536
|
-
/* @__PURE__ */ l("div", { className:
|
|
1612
|
+
function ai({ toasts: e, onDismiss: t }) {
|
|
1613
|
+
return typeof document > "u" ? null : ke(
|
|
1614
|
+
/* @__PURE__ */ l("div", { className: ee.container, "aria-live": "polite", "aria-atomic": "true", children: e.map((n) => /* @__PURE__ */ l(ci, { toast: n, onDismiss: t }, n.id)) }),
|
|
1537
1615
|
document.body
|
|
1538
1616
|
);
|
|
1539
1617
|
}
|
|
1540
|
-
function
|
|
1618
|
+
function ci({ toast: e, onDismiss: t }) {
|
|
1541
1619
|
return k(() => {
|
|
1542
1620
|
if (!e.duration) return;
|
|
1543
1621
|
const n = setTimeout(() => t(e.id), e.duration);
|
|
1544
1622
|
return () => clearTimeout(n);
|
|
1545
|
-
}, [e.id, e.duration, t]), /* @__PURE__ */
|
|
1546
|
-
/* @__PURE__ */
|
|
1547
|
-
e.title && /* @__PURE__ */ l("p", { className:
|
|
1548
|
-
e.description && /* @__PURE__ */ l("p", { className:
|
|
1623
|
+
}, [e.id, e.duration, t]), /* @__PURE__ */ w("div", { className: _(ee.toast, ee[e.variant]), role: "status", children: [
|
|
1624
|
+
/* @__PURE__ */ w("div", { children: [
|
|
1625
|
+
e.title && /* @__PURE__ */ l("p", { className: ee.title, children: e.title }),
|
|
1626
|
+
e.description && /* @__PURE__ */ l("p", { className: ee.description, children: e.description })
|
|
1549
1627
|
] }),
|
|
1550
1628
|
/* @__PURE__ */ l(
|
|
1551
1629
|
"button",
|
|
1552
1630
|
{
|
|
1553
1631
|
type: "button",
|
|
1554
|
-
className:
|
|
1632
|
+
className: ee.close,
|
|
1555
1633
|
"aria-label": "Fechar notificação",
|
|
1556
1634
|
onClick: () => t(e.id),
|
|
1557
|
-
children: /* @__PURE__ */ l(
|
|
1635
|
+
children: /* @__PURE__ */ l(li, {})
|
|
1558
1636
|
}
|
|
1559
1637
|
)
|
|
1560
1638
|
] });
|
|
1561
1639
|
}
|
|
1562
|
-
function
|
|
1640
|
+
function li() {
|
|
1563
1641
|
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
1564
1642
|
"path",
|
|
1565
1643
|
{
|
|
@@ -1570,12 +1648,12 @@ function qo() {
|
|
|
1570
1648
|
}
|
|
1571
1649
|
) });
|
|
1572
1650
|
}
|
|
1573
|
-
const
|
|
1574
|
-
scroll:
|
|
1575
|
-
spacer:
|
|
1576
|
-
row:
|
|
1651
|
+
const ui = "tempest_scroll_8Giwl", di = "tempest_spacer_P3Pvl", pi = "tempest_row_Ff0VU", ye = {
|
|
1652
|
+
scroll: ui,
|
|
1653
|
+
spacer: di,
|
|
1654
|
+
row: pi
|
|
1577
1655
|
};
|
|
1578
|
-
function
|
|
1656
|
+
function Aa({
|
|
1579
1657
|
items: e,
|
|
1580
1658
|
itemHeight: t,
|
|
1581
1659
|
renderItem: n,
|
|
@@ -1585,31 +1663,31 @@ function pa({
|
|
|
1585
1663
|
className: i,
|
|
1586
1664
|
style: c
|
|
1587
1665
|
}) {
|
|
1588
|
-
const a =
|
|
1666
|
+
const a = T(null), [u, d] = v(0), [p, f] = v(0);
|
|
1589
1667
|
k(() => {
|
|
1590
|
-
const
|
|
1591
|
-
if (!
|
|
1592
|
-
const N = new ResizeObserver(() => f(
|
|
1593
|
-
return N.observe(
|
|
1668
|
+
const y = a.current;
|
|
1669
|
+
if (!y || (f(y.clientHeight), typeof ResizeObserver > "u")) return;
|
|
1670
|
+
const N = new ResizeObserver(() => f(y.clientHeight));
|
|
1671
|
+
return N.observe(y), () => N.disconnect();
|
|
1594
1672
|
}, []);
|
|
1595
|
-
const m = e.length * t, g = Math.max(0, Math.floor(u / t) - s), h = Math.ceil(p / t) + s * 2,
|
|
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);
|
|
1596
1674
|
return /* @__PURE__ */ l(
|
|
1597
1675
|
"div",
|
|
1598
1676
|
{
|
|
1599
1677
|
ref: a,
|
|
1600
|
-
className:
|
|
1678
|
+
className: _(ye.scroll, i),
|
|
1601
1679
|
style: { height: r, ...c },
|
|
1602
|
-
onScroll: (
|
|
1680
|
+
onScroll: (y) => d(y.target.scrollTop),
|
|
1603
1681
|
role: "list",
|
|
1604
|
-
children: /* @__PURE__ */ l("div", { className:
|
|
1605
|
-
const $ = g + N, C = o ? o(
|
|
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, $) : $;
|
|
1606
1684
|
return /* @__PURE__ */ l(
|
|
1607
1685
|
"div",
|
|
1608
1686
|
{
|
|
1609
1687
|
role: "listitem",
|
|
1610
|
-
className:
|
|
1688
|
+
className: ye.row,
|
|
1611
1689
|
style: { top: $ * t, height: t },
|
|
1612
|
-
children: n(
|
|
1690
|
+
children: n(y, $)
|
|
1613
1691
|
},
|
|
1614
1692
|
C
|
|
1615
1693
|
);
|
|
@@ -1617,19 +1695,19 @@ function pa({
|
|
|
1617
1695
|
}
|
|
1618
1696
|
);
|
|
1619
1697
|
}
|
|
1620
|
-
function
|
|
1698
|
+
function Ra(e, t = 300) {
|
|
1621
1699
|
const [n, r] = v(e);
|
|
1622
1700
|
return k(() => {
|
|
1623
1701
|
const s = setTimeout(() => r(e), t);
|
|
1624
1702
|
return () => clearTimeout(s);
|
|
1625
1703
|
}, [e, t]), n;
|
|
1626
1704
|
}
|
|
1627
|
-
function
|
|
1705
|
+
function Fa(e = 1, t = 50) {
|
|
1628
1706
|
const [n, r] = v(e), [s, o] = v(t), i = x(() => r(1), []);
|
|
1629
1707
|
return { page: n, size: s, setPage: r, setSize: o, reset: i };
|
|
1630
1708
|
}
|
|
1631
|
-
function
|
|
1632
|
-
return
|
|
1709
|
+
function Oa(e, t, n) {
|
|
1710
|
+
return W(() => {
|
|
1633
1711
|
const r = t.trim().toLowerCase();
|
|
1634
1712
|
return r ? typeof n == "function" ? e.filter((s) => n(s, r)) : e.filter(
|
|
1635
1713
|
(s) => n.some((o) => {
|
|
@@ -1639,7 +1717,7 @@ function ha(e, t, n) {
|
|
|
1639
1717
|
) : e;
|
|
1640
1718
|
}, [e, t, n]);
|
|
1641
1719
|
}
|
|
1642
|
-
function
|
|
1720
|
+
function Wa(e) {
|
|
1643
1721
|
const [t, n] = v(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
|
|
1644
1722
|
return k(() => {
|
|
1645
1723
|
if (typeof window > "u") return;
|
|
@@ -1647,7 +1725,7 @@ function ga(e) {
|
|
|
1647
1725
|
return n(r.matches), r.addEventListener("change", s), () => r.removeEventListener("change", s);
|
|
1648
1726
|
}, [e]), t;
|
|
1649
1727
|
}
|
|
1650
|
-
function
|
|
1728
|
+
function Ba() {
|
|
1651
1729
|
const [e, t] = v(
|
|
1652
1730
|
() => typeof navigator > "u" ? !0 : navigator.onLine
|
|
1653
1731
|
);
|
|
@@ -1659,7 +1737,7 @@ function _a() {
|
|
|
1659
1737
|
};
|
|
1660
1738
|
}, []), e;
|
|
1661
1739
|
}
|
|
1662
|
-
function
|
|
1740
|
+
function ja() {
|
|
1663
1741
|
const [e, t] = v(
|
|
1664
1742
|
() => typeof document > "u" ? "visible" : document.visibilityState
|
|
1665
1743
|
);
|
|
@@ -1669,7 +1747,7 @@ function ya() {
|
|
|
1669
1747
|
return document.addEventListener("visibilitychange", n), () => document.removeEventListener("visibilitychange", n);
|
|
1670
1748
|
}, []), e;
|
|
1671
1749
|
}
|
|
1672
|
-
function
|
|
1750
|
+
function Ua(e, t = {}) {
|
|
1673
1751
|
const [n, r] = v(null), { once: s = !1, root: o, rootMargin: i, threshold: c } = t;
|
|
1674
1752
|
return k(() => {
|
|
1675
1753
|
const a = e.current;
|
|
@@ -1683,7 +1761,7 @@ function ba(e, t = {}) {
|
|
|
1683
1761
|
return u.observe(a), () => u.disconnect();
|
|
1684
1762
|
}, [e, s, o, i, c]), n;
|
|
1685
1763
|
}
|
|
1686
|
-
function
|
|
1764
|
+
function za(e) {
|
|
1687
1765
|
const [t, n] = v(null);
|
|
1688
1766
|
return k(() => {
|
|
1689
1767
|
const r = e.current;
|
|
@@ -1697,8 +1775,8 @@ function wa(e) {
|
|
|
1697
1775
|
return s.observe(r), () => s.disconnect();
|
|
1698
1776
|
}, [e]), t;
|
|
1699
1777
|
}
|
|
1700
|
-
function
|
|
1701
|
-
const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s =
|
|
1778
|
+
function Ja(e = {}) {
|
|
1779
|
+
const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s = T(null), o = x(() => {
|
|
1702
1780
|
s.current && (clearTimeout(s.current), s.current = null), r(!1);
|
|
1703
1781
|
}, []);
|
|
1704
1782
|
k(() => () => o(), [o]);
|
|
@@ -1721,7 +1799,7 @@ function va(e = {}) {
|
|
|
1721
1799
|
);
|
|
1722
1800
|
return { copied: n, copy: i, reset: o };
|
|
1723
1801
|
}
|
|
1724
|
-
function
|
|
1802
|
+
function fi(e, t) {
|
|
1725
1803
|
if (e.key.toLowerCase() !== t.key.toLowerCase()) return !1;
|
|
1726
1804
|
const n = !!t.ctrl, r = !!t.meta, s = !!t.shift, o = !!t.alt;
|
|
1727
1805
|
if (t.mod) {
|
|
@@ -1729,17 +1807,17 @@ function Vo(e, t) {
|
|
|
1729
1807
|
} else if (e.ctrlKey !== n || e.metaKey !== r) return !1;
|
|
1730
1808
|
return !(e.shiftKey !== s || e.altKey !== o);
|
|
1731
1809
|
}
|
|
1732
|
-
function
|
|
1810
|
+
function mi(e) {
|
|
1733
1811
|
if (!(e instanceof HTMLElement)) return !1;
|
|
1734
1812
|
const t = e.tagName.toLowerCase();
|
|
1735
1813
|
return t === "input" || t === "textarea" || t === "select" ? !0 : e.isContentEditable;
|
|
1736
1814
|
}
|
|
1737
|
-
function
|
|
1815
|
+
function qa(e, t, n = {}) {
|
|
1738
1816
|
const { disabled: r = !1, ignoreInput: s = !0 } = n;
|
|
1739
1817
|
k(() => {
|
|
1740
1818
|
if (r || typeof window > "u") return;
|
|
1741
1819
|
const o = (i) => {
|
|
1742
|
-
s &&
|
|
1820
|
+
s && mi(i.target) || fi(i, e) && t(i);
|
|
1743
1821
|
};
|
|
1744
1822
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
1745
1823
|
}, [
|
|
@@ -1754,7 +1832,7 @@ function Na(e, t, n = {}) {
|
|
|
1754
1832
|
t
|
|
1755
1833
|
]);
|
|
1756
1834
|
}
|
|
1757
|
-
function
|
|
1835
|
+
function Ga() {
|
|
1758
1836
|
const [e, t] = v(null), [n, r] = v(!1);
|
|
1759
1837
|
k(() => {
|
|
1760
1838
|
if (typeof window > "u") return;
|
|
@@ -1779,7 +1857,7 @@ function $a() {
|
|
|
1779
1857
|
prompt: s
|
|
1780
1858
|
};
|
|
1781
1859
|
}
|
|
1782
|
-
const
|
|
1860
|
+
const Ce = [
|
|
1783
1861
|
"mousemove",
|
|
1784
1862
|
"mousedown",
|
|
1785
1863
|
"keydown",
|
|
@@ -1787,7 +1865,7 @@ const Ee = [
|
|
|
1787
1865
|
"wheel",
|
|
1788
1866
|
"scroll"
|
|
1789
1867
|
];
|
|
1790
|
-
function
|
|
1868
|
+
function Ha(e = 6e4) {
|
|
1791
1869
|
const [t, n] = v(!1);
|
|
1792
1870
|
return k(() => {
|
|
1793
1871
|
if (typeof window > "u") return;
|
|
@@ -1795,16 +1873,16 @@ function ka(e = 6e4) {
|
|
|
1795
1873
|
function s() {
|
|
1796
1874
|
n(!1), clearTimeout(r), r = setTimeout(() => n(!0), e);
|
|
1797
1875
|
}
|
|
1798
|
-
for (const o of
|
|
1876
|
+
for (const o of Ce)
|
|
1799
1877
|
window.addEventListener(o, s, { passive: !0 });
|
|
1800
1878
|
return () => {
|
|
1801
1879
|
clearTimeout(r);
|
|
1802
|
-
for (const o of
|
|
1880
|
+
for (const o of Ce)
|
|
1803
1881
|
window.removeEventListener(o, s);
|
|
1804
1882
|
};
|
|
1805
1883
|
}, [e]), t;
|
|
1806
1884
|
}
|
|
1807
|
-
function
|
|
1885
|
+
function Ka(e = {}) {
|
|
1808
1886
|
const { watch: t = !1, disabled: n = !1, ...r } = e, [s, o] = v({
|
|
1809
1887
|
loading: !n,
|
|
1810
1888
|
error: null,
|
|
@@ -1843,7 +1921,7 @@ function Sa(e = {}) {
|
|
|
1843
1921
|
r.timeout
|
|
1844
1922
|
]), s;
|
|
1845
1923
|
}
|
|
1846
|
-
function
|
|
1924
|
+
function Va(e) {
|
|
1847
1925
|
k(() => {
|
|
1848
1926
|
if (!e || typeof document > "u") return;
|
|
1849
1927
|
const t = document.body, n = t.style.overflow;
|
|
@@ -1852,7 +1930,7 @@ function xa(e) {
|
|
|
1852
1930
|
};
|
|
1853
1931
|
}, [e]);
|
|
1854
1932
|
}
|
|
1855
|
-
const
|
|
1933
|
+
const hi = [
|
|
1856
1934
|
"a[href]",
|
|
1857
1935
|
"button:not([disabled])",
|
|
1858
1936
|
"textarea:not([disabled])",
|
|
@@ -1860,7 +1938,7 @@ const Yo = [
|
|
|
1860
1938
|
"select:not([disabled])",
|
|
1861
1939
|
"[tabindex]:not([tabindex='-1'])"
|
|
1862
1940
|
].join(",");
|
|
1863
|
-
function
|
|
1941
|
+
function Qa(e, t) {
|
|
1864
1942
|
k(() => {
|
|
1865
1943
|
if (!t) return;
|
|
1866
1944
|
const n = e.current;
|
|
@@ -1868,7 +1946,7 @@ function Ea(e, t) {
|
|
|
1868
1946
|
const r = document.activeElement;
|
|
1869
1947
|
function s() {
|
|
1870
1948
|
return Array.from(
|
|
1871
|
-
n?.querySelectorAll(
|
|
1949
|
+
n?.querySelectorAll(hi) ?? []
|
|
1872
1950
|
).filter((c) => {
|
|
1873
1951
|
if (c.hasAttribute("aria-hidden")) return !1;
|
|
1874
1952
|
const a = typeof window < "u" ? window.getComputedStyle(c) : null;
|
|
@@ -1890,35 +1968,35 @@ function Ea(e, t) {
|
|
|
1890
1968
|
};
|
|
1891
1969
|
}, [e, t]);
|
|
1892
1970
|
}
|
|
1893
|
-
function
|
|
1894
|
-
const t =
|
|
1971
|
+
function Ya(e) {
|
|
1972
|
+
const t = T(e);
|
|
1895
1973
|
return t.current = e, x((...n) => t.current(...n), []);
|
|
1896
1974
|
}
|
|
1897
|
-
function
|
|
1975
|
+
function Ne(e, t) {
|
|
1898
1976
|
if (Object.is(e, t)) return !0;
|
|
1899
1977
|
if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
1900
1978
|
if (Array.isArray(e) && Array.isArray(t))
|
|
1901
|
-
return e.length !== t.length ? !1 : e.every((s, o) =>
|
|
1979
|
+
return e.length !== t.length ? !1 : e.every((s, o) => Ne(s, t[o]));
|
|
1902
1980
|
const n = Object.keys(e), r = Object.keys(t);
|
|
1903
1981
|
return n.length !== r.length ? !1 : n.every(
|
|
1904
|
-
(s) =>
|
|
1982
|
+
(s) => Ne(e[s], t[s])
|
|
1905
1983
|
);
|
|
1906
1984
|
}
|
|
1907
|
-
function
|
|
1908
|
-
const t =
|
|
1909
|
-
return
|
|
1985
|
+
function Xa(e) {
|
|
1986
|
+
const t = T(e);
|
|
1987
|
+
return Ne(t.current, e) || (t.current = e), t.current;
|
|
1910
1988
|
}
|
|
1911
|
-
function
|
|
1989
|
+
function gi(e, t, n) {
|
|
1912
1990
|
const r = new URL(t, e.endsWith("/") ? e : `${e}/`);
|
|
1913
1991
|
if (n)
|
|
1914
1992
|
for (const [s, o] of Object.entries(n))
|
|
1915
1993
|
o != null && r.searchParams.set(s, String(o));
|
|
1916
1994
|
return r.toString();
|
|
1917
1995
|
}
|
|
1918
|
-
function
|
|
1996
|
+
function _i(e) {
|
|
1919
1997
|
return typeof FormData < "u" && e instanceof FormData;
|
|
1920
1998
|
}
|
|
1921
|
-
async function
|
|
1999
|
+
async function Le(e) {
|
|
1922
2000
|
let t = null;
|
|
1923
2001
|
try {
|
|
1924
2002
|
t = await e.clone().json();
|
|
@@ -1936,14 +2014,14 @@ async function Te(e) {
|
|
|
1936
2014
|
body: t
|
|
1937
2015
|
};
|
|
1938
2016
|
}
|
|
1939
|
-
function
|
|
2017
|
+
function Za(e) {
|
|
1940
2018
|
const t = e.fetcher ?? globalThis.fetch.bind(globalThis);
|
|
1941
2019
|
function n() {
|
|
1942
2020
|
const i = e.getToken?.();
|
|
1943
2021
|
return i ? { Authorization: `Bearer ${i}` } : {};
|
|
1944
2022
|
}
|
|
1945
2023
|
async function r(i, c) {
|
|
1946
|
-
const { body: a, params: u, headers: d, ...p } = c, f =
|
|
2024
|
+
const { body: a, params: u, headers: d, ...p } = c, f = _i(a), m = {
|
|
1947
2025
|
...f ? {} : { "Content-Type": "application/json" },
|
|
1948
2026
|
...e.headers,
|
|
1949
2027
|
...n(),
|
|
@@ -1954,7 +2032,7 @@ function La(e) {
|
|
|
1954
2032
|
credentials: e.withCredentials ? "include" : p.credentials,
|
|
1955
2033
|
body: a == null ? void 0 : f ? a : JSON.stringify(a)
|
|
1956
2034
|
};
|
|
1957
|
-
return t(
|
|
2035
|
+
return t(gi(e.baseURL, i, u), g);
|
|
1958
2036
|
}
|
|
1959
2037
|
async function s(i, c = {}) {
|
|
1960
2038
|
let a = await r(i, c);
|
|
@@ -1963,12 +2041,12 @@ function La(e) {
|
|
|
1963
2041
|
try {
|
|
1964
2042
|
await e.refresh(), a = await r(i, c);
|
|
1965
2043
|
} catch {
|
|
1966
|
-
throw await e.onUnauthorized?.(a), await
|
|
2044
|
+
throw await e.onUnauthorized?.(a), await Le(a);
|
|
1967
2045
|
}
|
|
1968
2046
|
else
|
|
1969
2047
|
await e.onUnauthorized?.(a);
|
|
1970
2048
|
if (!a.ok)
|
|
1971
|
-
throw await
|
|
2049
|
+
throw await Le(a);
|
|
1972
2050
|
return a.status === 204 ? void 0 : (a.headers.get("content-type") ?? "").includes("application/json") ? await a.json() : await a.text();
|
|
1973
2051
|
}
|
|
1974
2052
|
async function o(i, c, a = "POST") {
|
|
@@ -1984,7 +2062,7 @@ function La(e) {
|
|
|
1984
2062
|
upload: o
|
|
1985
2063
|
};
|
|
1986
2064
|
}
|
|
1987
|
-
function
|
|
2065
|
+
function ec(e, t, n) {
|
|
1988
2066
|
const r = e.safeParse(t);
|
|
1989
2067
|
if (r.success)
|
|
1990
2068
|
return r.data;
|
|
@@ -2000,7 +2078,7 @@ Raw payload: ${JSON.stringify(t, null, 2)}`
|
|
|
2000
2078
|
}
|
|
2001
2079
|
throw new Error(`Resposta inválida do servidor (${n}).`);
|
|
2002
2080
|
}
|
|
2003
|
-
function
|
|
2081
|
+
function yi(e) {
|
|
2004
2082
|
if (!e) return null;
|
|
2005
2083
|
try {
|
|
2006
2084
|
return JSON.parse(e);
|
|
@@ -2008,7 +2086,7 @@ function ei(e) {
|
|
|
2008
2086
|
return e;
|
|
2009
2087
|
}
|
|
2010
2088
|
}
|
|
2011
|
-
function
|
|
2089
|
+
function tc(e) {
|
|
2012
2090
|
const {
|
|
2013
2091
|
url: t,
|
|
2014
2092
|
body: n,
|
|
@@ -2029,14 +2107,14 @@ function Da(e) {
|
|
|
2029
2107
|
f.open(r, t), f.withCredentials = i;
|
|
2030
2108
|
const m = o?.(), g = { ...s };
|
|
2031
2109
|
m && !("Authorization" in g) && (g.Authorization = `Bearer ${m}`);
|
|
2032
|
-
for (const [
|
|
2033
|
-
f.setRequestHeader(
|
|
2034
|
-
c && (f.upload.onprogress = (
|
|
2110
|
+
for (const [b, y] of Object.entries(g))
|
|
2111
|
+
f.setRequestHeader(b, y);
|
|
2112
|
+
c && (f.upload.onprogress = (b) => {
|
|
2035
2113
|
c({
|
|
2036
|
-
loaded:
|
|
2037
|
-
total:
|
|
2038
|
-
fraction:
|
|
2039
|
-
lengthComputable:
|
|
2114
|
+
loaded: b.loaded,
|
|
2115
|
+
total: b.total,
|
|
2116
|
+
fraction: b.lengthComputable ? b.loaded / b.total : null,
|
|
2117
|
+
lengthComputable: b.lengthComputable
|
|
2040
2118
|
});
|
|
2041
2119
|
});
|
|
2042
2120
|
function h() {
|
|
@@ -2044,9 +2122,9 @@ function Da(e) {
|
|
|
2044
2122
|
}
|
|
2045
2123
|
a?.addEventListener("abort", h), f.onload = () => {
|
|
2046
2124
|
a?.removeEventListener("abort", h);
|
|
2047
|
-
const
|
|
2048
|
-
if (!
|
|
2049
|
-
const N =
|
|
2125
|
+
const b = f.status >= 200 && f.status < 300, y = f.getResponseHeader("content-type") ?? "";
|
|
2126
|
+
if (!b) {
|
|
2127
|
+
const N = yi(f.responseText), $ = (typeof N == "object" && N !== null ? N.detail ?? N.message : void 0) ?? `Erro ${f.status}`, C = {
|
|
2050
2128
|
status: f.status,
|
|
2051
2129
|
detail: String($),
|
|
2052
2130
|
body: N
|
|
@@ -2058,7 +2136,7 @@ function Da(e) {
|
|
|
2058
2136
|
d(void 0);
|
|
2059
2137
|
return;
|
|
2060
2138
|
}
|
|
2061
|
-
if (
|
|
2139
|
+
if (y.includes("application/json"))
|
|
2062
2140
|
try {
|
|
2063
2141
|
d(u(f.responseText));
|
|
2064
2142
|
} catch (N) {
|
|
@@ -2073,7 +2151,7 @@ function Da(e) {
|
|
|
2073
2151
|
}, f.send(n);
|
|
2074
2152
|
});
|
|
2075
2153
|
}
|
|
2076
|
-
function
|
|
2154
|
+
function wi(e, t) {
|
|
2077
2155
|
return new Promise((n, r) => {
|
|
2078
2156
|
if (t?.aborted) {
|
|
2079
2157
|
r(new DOMException("Aborted", "AbortError"));
|
|
@@ -2089,7 +2167,7 @@ function ti(e, t) {
|
|
|
2089
2167
|
);
|
|
2090
2168
|
});
|
|
2091
2169
|
}
|
|
2092
|
-
async function
|
|
2170
|
+
async function nc(e, t = {}) {
|
|
2093
2171
|
const {
|
|
2094
2172
|
retries: n = 3,
|
|
2095
2173
|
initialDelay: r = 300,
|
|
@@ -2107,28 +2185,28 @@ async function Ma(e, t = {}) {
|
|
|
2107
2185
|
if (u = d, a += 1, a >= n || !o(d, a))
|
|
2108
2186
|
throw d;
|
|
2109
2187
|
const p = Math.min(r * 2 ** (a - 1), s);
|
|
2110
|
-
i?.({ attempt: a, delay: p, error: d }), await
|
|
2188
|
+
i?.({ attempt: a, delay: p, error: d }), await wi(p, c);
|
|
2111
2189
|
}
|
|
2112
2190
|
}
|
|
2113
2191
|
throw u;
|
|
2114
2192
|
}
|
|
2115
|
-
function
|
|
2193
|
+
function rc() {
|
|
2116
2194
|
return typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
2117
2195
|
const t = Math.random() * 16;
|
|
2118
2196
|
return (e === "x" ? Math.floor(t) : Math.floor(t) & 3 | 8).toString(16);
|
|
2119
2197
|
});
|
|
2120
2198
|
}
|
|
2121
|
-
function
|
|
2122
|
-
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 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);
|
|
2123
2201
|
async function h() {
|
|
2124
2202
|
if (!(f.current || m.current)) {
|
|
2125
2203
|
m.current = !0;
|
|
2126
2204
|
try {
|
|
2127
|
-
const
|
|
2205
|
+
const b = await e();
|
|
2128
2206
|
if (f.current) return;
|
|
2129
|
-
c(
|
|
2130
|
-
} catch (
|
|
2131
|
-
f.current || (u(
|
|
2207
|
+
c(b), u(null), s?.(b) && (f.current = !0);
|
|
2208
|
+
} catch (b) {
|
|
2209
|
+
f.current || (u(b), o?.(b));
|
|
2132
2210
|
} finally {
|
|
2133
2211
|
m.current = !1, p(!1), f.current || (g.current = setTimeout(h, n));
|
|
2134
2212
|
}
|
|
@@ -2154,10 +2232,10 @@ function Aa(e, t) {
|
|
|
2154
2232
|
}
|
|
2155
2233
|
};
|
|
2156
2234
|
}
|
|
2157
|
-
function
|
|
2235
|
+
function oc(e = {}) {
|
|
2158
2236
|
const t = e.name ?? "tempest-auth", n = e.storage === "session" ? () => sessionStorage : () => localStorage;
|
|
2159
|
-
return
|
|
2160
|
-
|
|
2237
|
+
return nt()(
|
|
2238
|
+
rt(
|
|
2161
2239
|
(r) => ({
|
|
2162
2240
|
user: e.initialUser ?? null,
|
|
2163
2241
|
token: e.initialToken ?? null,
|
|
@@ -2169,7 +2247,7 @@ function Ra(e = {}) {
|
|
|
2169
2247
|
}),
|
|
2170
2248
|
{
|
|
2171
2249
|
name: t,
|
|
2172
|
-
storage:
|
|
2250
|
+
storage: st(n),
|
|
2173
2251
|
partialize: (r) => ({ user: r.user, token: r.token }),
|
|
2174
2252
|
onRehydrateStorage: () => (r) => {
|
|
2175
2253
|
r && (r.isAuthenticated = !!r.token);
|
|
@@ -2178,30 +2256,30 @@ function Ra(e = {}) {
|
|
|
2178
2256
|
)
|
|
2179
2257
|
);
|
|
2180
2258
|
}
|
|
2181
|
-
function
|
|
2182
|
-
return /* @__PURE__ */ l(
|
|
2259
|
+
function ic({ isAuthenticated: e, children: t, fallback: n }) {
|
|
2260
|
+
return /* @__PURE__ */ l($e, { children: e ? t : n });
|
|
2183
2261
|
}
|
|
2184
|
-
function
|
|
2262
|
+
function Ie(e) {
|
|
2185
2263
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = t.length % 4 === 0 ? "" : "=".repeat(4 - t.length % 4);
|
|
2186
2264
|
return typeof atob < "u" ? atob(t + n) : Buffer.from(t + n, "base64").toString("binary");
|
|
2187
2265
|
}
|
|
2188
|
-
function
|
|
2266
|
+
function bi(e) {
|
|
2189
2267
|
const t = e.split(".");
|
|
2190
2268
|
if (t.length !== 3) throw new Error("Invalid JWT: must contain three segments.");
|
|
2191
2269
|
const [n, r, s] = t;
|
|
2192
2270
|
try {
|
|
2193
2271
|
return {
|
|
2194
|
-
header: JSON.parse(
|
|
2195
|
-
payload: JSON.parse(
|
|
2272
|
+
header: JSON.parse(Ie(n)),
|
|
2273
|
+
payload: JSON.parse(Ie(r)),
|
|
2196
2274
|
signature: s
|
|
2197
2275
|
};
|
|
2198
2276
|
} catch {
|
|
2199
2277
|
throw new Error("Invalid JWT: header or payload is not valid JSON.");
|
|
2200
2278
|
}
|
|
2201
2279
|
}
|
|
2202
|
-
function
|
|
2280
|
+
function ac(e, t = 0) {
|
|
2203
2281
|
try {
|
|
2204
|
-
const { payload: n } =
|
|
2282
|
+
const { payload: n } = bi(e);
|
|
2205
2283
|
if (typeof n.exp != "number") return !0;
|
|
2206
2284
|
const r = Math.floor(Date.now() / 1e3);
|
|
2207
2285
|
return n.exp <= r + t;
|
|
@@ -2209,7 +2287,7 @@ function Oa(e, t = 0) {
|
|
|
2209
2287
|
return !0;
|
|
2210
2288
|
}
|
|
2211
2289
|
}
|
|
2212
|
-
function
|
|
2290
|
+
function cc(e, t = {}) {
|
|
2213
2291
|
const { retries: n = 3, initialDelay: r = 400, reloadOnFinalFailure: s = !0 } = t;
|
|
2214
2292
|
async function o(i = 1) {
|
|
2215
2293
|
try {
|
|
@@ -2220,9 +2298,9 @@ function Wa(e, t = {}) {
|
|
|
2220
2298
|
return await new Promise((a) => setTimeout(a, r * 2 ** (i - 1))), o(i + 1);
|
|
2221
2299
|
}
|
|
2222
2300
|
}
|
|
2223
|
-
return
|
|
2301
|
+
return Xe(o);
|
|
2224
2302
|
}
|
|
2225
|
-
function
|
|
2303
|
+
function lc(e) {
|
|
2226
2304
|
let t = null;
|
|
2227
2305
|
return () => t || (t = (async () => {
|
|
2228
2306
|
try {
|
|
@@ -2232,34 +2310,34 @@ function Ba(e) {
|
|
|
2232
2310
|
}
|
|
2233
2311
|
})(), t);
|
|
2234
2312
|
}
|
|
2235
|
-
const
|
|
2313
|
+
const vi = {
|
|
2236
2314
|
SHORT: 30 * 1e3,
|
|
2237
2315
|
DEFAULT: 300 * 1e3,
|
|
2238
2316
|
LONG: 1800 * 1e3,
|
|
2239
2317
|
INFINITE: 1 / 0
|
|
2240
|
-
},
|
|
2318
|
+
}, Ni = {
|
|
2241
2319
|
SHORT: 300 * 1e3,
|
|
2242
2320
|
DEFAULT: 1800 * 1e3,
|
|
2243
2321
|
LONG: 3600 * 1e3
|
|
2244
|
-
},
|
|
2322
|
+
}, uc = {
|
|
2245
2323
|
REALTIME: 5 * 1e3,
|
|
2246
2324
|
FAST: 30 * 1e3,
|
|
2247
2325
|
DEFAULT: 60 * 1e3,
|
|
2248
2326
|
SLOW: 300 * 1e3
|
|
2249
2327
|
};
|
|
2250
|
-
function
|
|
2328
|
+
function dc(e, t) {
|
|
2251
2329
|
const n = { all: [e] };
|
|
2252
2330
|
for (const [r, s] of Object.entries(t))
|
|
2253
2331
|
typeof s == "function" ? n[r] = (...o) => [e, ...s(...o)] : n[r] = [e, ...s];
|
|
2254
2332
|
return n;
|
|
2255
2333
|
}
|
|
2256
|
-
function
|
|
2334
|
+
function pc({ children: e, client: t, defaultOptions: n }) {
|
|
2257
2335
|
const [r] = v(
|
|
2258
|
-
() => t ?? new
|
|
2336
|
+
() => t ?? new et({
|
|
2259
2337
|
defaultOptions: {
|
|
2260
2338
|
queries: {
|
|
2261
|
-
staleTime:
|
|
2262
|
-
gcTime:
|
|
2339
|
+
staleTime: vi.DEFAULT,
|
|
2340
|
+
gcTime: Ni.DEFAULT,
|
|
2263
2341
|
retry: 1,
|
|
2264
2342
|
refetchOnWindowFocus: !1,
|
|
2265
2343
|
...n?.queries ?? {}
|
|
@@ -2271,16 +2349,16 @@ function za({ children: e, client: t, defaultOptions: n }) {
|
|
|
2271
2349
|
}
|
|
2272
2350
|
})
|
|
2273
2351
|
);
|
|
2274
|
-
return /* @__PURE__ */ l(
|
|
2352
|
+
return /* @__PURE__ */ l(tt, { client: r, children: e });
|
|
2275
2353
|
}
|
|
2276
|
-
function
|
|
2354
|
+
function $i(e) {
|
|
2277
2355
|
try {
|
|
2278
2356
|
return JSON.parse(e);
|
|
2279
2357
|
} catch {
|
|
2280
2358
|
return e;
|
|
2281
2359
|
}
|
|
2282
2360
|
}
|
|
2283
|
-
function
|
|
2361
|
+
function ki(e, t = {}) {
|
|
2284
2362
|
const {
|
|
2285
2363
|
withCredentials: n = !1,
|
|
2286
2364
|
namedEvents: r = [],
|
|
@@ -2288,15 +2366,15 @@ function ii(e, t = {}) {
|
|
|
2288
2366
|
maxRetries: o = 10,
|
|
2289
2367
|
initialBackoff: i = 1e3,
|
|
2290
2368
|
maxBackoff: c = 3e4,
|
|
2291
|
-
parser: a =
|
|
2369
|
+
parser: a = $i,
|
|
2292
2370
|
onOpen: u,
|
|
2293
2371
|
onMessage: d,
|
|
2294
2372
|
onError: p,
|
|
2295
2373
|
onStatusChange: f
|
|
2296
2374
|
} = t;
|
|
2297
|
-
let m = null, g = null, h = 0,
|
|
2375
|
+
let m = null, g = null, h = 0, b = "idle", y = !1;
|
|
2298
2376
|
function N(S) {
|
|
2299
|
-
|
|
2377
|
+
b !== S && (b = S, f?.(S));
|
|
2300
2378
|
}
|
|
2301
2379
|
function $(S, L) {
|
|
2302
2380
|
s.includes(S) || d?.({
|
|
@@ -2307,7 +2385,7 @@ function ii(e, t = {}) {
|
|
|
2307
2385
|
});
|
|
2308
2386
|
}
|
|
2309
2387
|
function C() {
|
|
2310
|
-
if (
|
|
2388
|
+
if (y) return;
|
|
2311
2389
|
if (h >= o) {
|
|
2312
2390
|
N("error");
|
|
2313
2391
|
return;
|
|
@@ -2316,14 +2394,14 @@ function ii(e, t = {}) {
|
|
|
2316
2394
|
h += 1, g = setTimeout(I, S);
|
|
2317
2395
|
}
|
|
2318
2396
|
function I() {
|
|
2319
|
-
if (
|
|
2397
|
+
if (y) return;
|
|
2320
2398
|
m && m.close(), N("connecting");
|
|
2321
2399
|
const S = new EventSource(e, { withCredentials: n });
|
|
2322
2400
|
m = S, S.onopen = () => {
|
|
2323
2401
|
h = 0, N("open"), u?.();
|
|
2324
2402
|
}, S.onmessage = (L) => $("message", L);
|
|
2325
2403
|
for (const L of r)
|
|
2326
|
-
S.addEventListener(L, (
|
|
2404
|
+
S.addEventListener(L, (he) => $(L, he));
|
|
2327
2405
|
for (const L of s)
|
|
2328
2406
|
S.addEventListener(L, () => {
|
|
2329
2407
|
});
|
|
@@ -2331,28 +2409,28 @@ function ii(e, t = {}) {
|
|
|
2331
2409
|
p?.(L), S.close(), m = null, N("closed"), C();
|
|
2332
2410
|
};
|
|
2333
2411
|
}
|
|
2334
|
-
function
|
|
2335
|
-
|
|
2412
|
+
function fe() {
|
|
2413
|
+
y = !0, g && (clearTimeout(g), g = null), h = 0, m && (m.close(), m = null), N("closed");
|
|
2336
2414
|
}
|
|
2337
|
-
function
|
|
2338
|
-
g && (clearTimeout(g), g = null), h = 0,
|
|
2415
|
+
function me() {
|
|
2416
|
+
g && (clearTimeout(g), g = null), h = 0, y = !1, I();
|
|
2339
2417
|
}
|
|
2340
2418
|
return I(), {
|
|
2341
|
-
close:
|
|
2342
|
-
reconnect:
|
|
2419
|
+
close: fe,
|
|
2420
|
+
reconnect: me,
|
|
2343
2421
|
get status() {
|
|
2344
|
-
return
|
|
2422
|
+
return b;
|
|
2345
2423
|
}
|
|
2346
2424
|
};
|
|
2347
2425
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u =
|
|
2426
|
+
function fc(e, t = {}) {
|
|
2427
|
+
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = T(null), d = T(r);
|
|
2350
2428
|
return d.current = r, k(() => {
|
|
2351
2429
|
if (!n || !e) {
|
|
2352
2430
|
i("idle");
|
|
2353
2431
|
return;
|
|
2354
2432
|
}
|
|
2355
|
-
const p =
|
|
2433
|
+
const p = ki(e, {
|
|
2356
2434
|
...s,
|
|
2357
2435
|
onStatusChange: i,
|
|
2358
2436
|
onMessage: (f) => {
|
|
@@ -2368,36 +2446,36 @@ function Ja(e, t = {}) {
|
|
|
2368
2446
|
reconnect: () => u.current?.()
|
|
2369
2447
|
};
|
|
2370
2448
|
}
|
|
2371
|
-
function
|
|
2449
|
+
function Si(e) {
|
|
2372
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);
|
|
2373
2451
|
for (let i = 0; i < r.length; i++)
|
|
2374
2452
|
o[i] = r.charCodeAt(i);
|
|
2375
2453
|
return o;
|
|
2376
2454
|
}
|
|
2377
|
-
function
|
|
2455
|
+
function ue() {
|
|
2378
2456
|
return typeof window < "u" && "serviceWorker" in navigator && "PushManager" in window && "Notification" in window;
|
|
2379
2457
|
}
|
|
2380
|
-
class
|
|
2458
|
+
class De extends Error {
|
|
2381
2459
|
constructor() {
|
|
2382
2460
|
super("Web Push não suportado neste navegador."), this.name = "WebPushUnsupportedError";
|
|
2383
2461
|
}
|
|
2384
2462
|
}
|
|
2385
|
-
class
|
|
2463
|
+
class xi extends Error {
|
|
2386
2464
|
constructor() {
|
|
2387
2465
|
super("Permissão de notificação negada pelo usuário."), this.name = "WebPushPermissionDeniedError";
|
|
2388
2466
|
}
|
|
2389
2467
|
}
|
|
2390
|
-
class
|
|
2468
|
+
class Ti {
|
|
2391
2469
|
config;
|
|
2392
2470
|
constructor(t) {
|
|
2393
2471
|
this.config = t;
|
|
2394
2472
|
}
|
|
2395
2473
|
/** Whether the runtime supports the Push API. */
|
|
2396
2474
|
static isSupported() {
|
|
2397
|
-
return
|
|
2475
|
+
return ue();
|
|
2398
2476
|
}
|
|
2399
2477
|
async registration() {
|
|
2400
|
-
if (!
|
|
2478
|
+
if (!ue()) throw new De();
|
|
2401
2479
|
return this.config.getRegistration ? await this.config.getRegistration() : await navigator.serviceWorker.ready;
|
|
2402
2480
|
}
|
|
2403
2481
|
/** Current `Notification.permission` value, or `"unsupported"`. */
|
|
@@ -2411,7 +2489,7 @@ class li {
|
|
|
2411
2489
|
* @returns The resulting `NotificationPermission` value.
|
|
2412
2490
|
*/
|
|
2413
2491
|
async requestPermission() {
|
|
2414
|
-
if (typeof Notification > "u") throw new
|
|
2492
|
+
if (typeof Notification > "u") throw new De();
|
|
2415
2493
|
return Notification.requestPermission();
|
|
2416
2494
|
}
|
|
2417
2495
|
/** Return the active push subscription, if any. */
|
|
@@ -2420,7 +2498,7 @@ class li {
|
|
|
2420
2498
|
}
|
|
2421
2499
|
/** True when a subscription already exists for this browser. */
|
|
2422
2500
|
async isSubscribed() {
|
|
2423
|
-
return
|
|
2501
|
+
return ue() ? await this.getSubscription() !== null : !1;
|
|
2424
2502
|
}
|
|
2425
2503
|
/**
|
|
2426
2504
|
* Subscribe the current device. Requests permission, creates a push
|
|
@@ -2432,13 +2510,13 @@ class li {
|
|
|
2432
2510
|
* @throws {WebPushPermissionDeniedError} If the user denies the prompt.
|
|
2433
2511
|
*/
|
|
2434
2512
|
async subscribe() {
|
|
2435
|
-
if (await this.requestPermission() !== "granted") throw new
|
|
2513
|
+
if (await this.requestPermission() !== "granted") throw new xi();
|
|
2436
2514
|
const n = await this.registration(), r = await n.pushManager.getSubscription();
|
|
2437
2515
|
if (r)
|
|
2438
2516
|
return await this.config.onSubscribe(r.toJSON()), r;
|
|
2439
2517
|
const s = await n.pushManager.subscribe({
|
|
2440
2518
|
userVisibleOnly: !0,
|
|
2441
|
-
applicationServerKey:
|
|
2519
|
+
applicationServerKey: Si(this.config.vapidPublicKey)
|
|
2442
2520
|
});
|
|
2443
2521
|
return await this.config.onSubscribe(s.toJSON()), s;
|
|
2444
2522
|
}
|
|
@@ -2453,18 +2531,18 @@ class li {
|
|
|
2453
2531
|
return t ? (this.config.onUnsubscribe && await this.config.onUnsubscribe(t.toJSON()), t.unsubscribe()) : !1;
|
|
2454
2532
|
}
|
|
2455
2533
|
}
|
|
2456
|
-
function
|
|
2457
|
-
const t =
|
|
2534
|
+
function mc(e) {
|
|
2535
|
+
const t = T(e);
|
|
2458
2536
|
t.current = e;
|
|
2459
|
-
const n =
|
|
2460
|
-
() => new
|
|
2537
|
+
const n = W(
|
|
2538
|
+
() => new Ti({
|
|
2461
2539
|
vapidPublicKey: e.vapidPublicKey,
|
|
2462
2540
|
onSubscribe: (h) => t.current.onSubscribe(h),
|
|
2463
2541
|
onUnsubscribe: (h) => t.current.onUnsubscribe?.(h),
|
|
2464
2542
|
getRegistration: e.getRegistration
|
|
2465
2543
|
}),
|
|
2466
2544
|
[e.vapidPublicKey, e.getRegistration]
|
|
2467
|
-
), [r] = v(() =>
|
|
2545
|
+
), [r] = v(() => ue()), [s, o] = v(
|
|
2468
2546
|
() => n.permission()
|
|
2469
2547
|
), [i, c] = v(!1), [a, u] = v(!1), [d, p] = v(null), f = x(async () => {
|
|
2470
2548
|
if (r) {
|
|
@@ -2514,7 +2592,7 @@ function qa(e) {
|
|
|
2514
2592
|
refresh: f
|
|
2515
2593
|
};
|
|
2516
2594
|
}
|
|
2517
|
-
async function
|
|
2595
|
+
async function hc(e) {
|
|
2518
2596
|
if (typeof navigator > "u" || !("serviceWorker" in navigator))
|
|
2519
2597
|
return null;
|
|
2520
2598
|
try {
|
|
@@ -2531,10 +2609,10 @@ async function Ga(e) {
|
|
|
2531
2609
|
return e.onError?.(t), null;
|
|
2532
2610
|
}
|
|
2533
2611
|
}
|
|
2534
|
-
function
|
|
2612
|
+
function gc(e) {
|
|
2535
2613
|
e.postMessage({ type: "SKIP_WAITING" });
|
|
2536
2614
|
}
|
|
2537
|
-
async function
|
|
2615
|
+
async function _c() {
|
|
2538
2616
|
if (typeof navigator > "u" || !("serviceWorker" in navigator)) return 0;
|
|
2539
2617
|
const e = await navigator.serviceWorker.getRegistrations();
|
|
2540
2618
|
let t = 0;
|
|
@@ -2542,11 +2620,11 @@ async function Ha() {
|
|
|
2542
2620
|
await n.unregister() && (t += 1);
|
|
2543
2621
|
return t;
|
|
2544
2622
|
}
|
|
2545
|
-
function
|
|
2623
|
+
function xe() {
|
|
2546
2624
|
return globalThis;
|
|
2547
2625
|
}
|
|
2548
|
-
function
|
|
2549
|
-
const t =
|
|
2626
|
+
function yc(e = {}) {
|
|
2627
|
+
const t = xe(), { defaultTitle: n = "Notificação", defaultIcon: r, defaultBadge: s, transform: o } = e;
|
|
2550
2628
|
t.addEventListener("push", (i) => {
|
|
2551
2629
|
if (!i.data) return;
|
|
2552
2630
|
let c;
|
|
@@ -2568,8 +2646,8 @@ function Va(e = {}) {
|
|
|
2568
2646
|
i.waitUntil(t.registration.showNotification(u, d));
|
|
2569
2647
|
});
|
|
2570
2648
|
}
|
|
2571
|
-
function
|
|
2572
|
-
const t =
|
|
2649
|
+
function wc(e = {}) {
|
|
2650
|
+
const t = xe(), n = e.resolveUrl ?? ((r) => {
|
|
2573
2651
|
if (typeof r == "string") return r;
|
|
2574
2652
|
if (r && typeof r == "object" && "url" in r) {
|
|
2575
2653
|
const s = r.url;
|
|
@@ -2594,13 +2672,13 @@ function Qa(e = {}) {
|
|
|
2594
2672
|
);
|
|
2595
2673
|
});
|
|
2596
2674
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const e =
|
|
2675
|
+
function bc() {
|
|
2676
|
+
const e = xe();
|
|
2599
2677
|
e.addEventListener("message", (t) => {
|
|
2600
2678
|
t.data?.type === "SKIP_WAITING" && e.skipWaiting();
|
|
2601
2679
|
});
|
|
2602
2680
|
}
|
|
2603
|
-
function
|
|
2681
|
+
function je() {
|
|
2604
2682
|
let e = null;
|
|
2605
2683
|
async function t(r, {
|
|
2606
2684
|
volume: s = 1,
|
|
@@ -2623,19 +2701,19 @@ function Oe() {
|
|
|
2623
2701
|
}
|
|
2624
2702
|
return { play: t, stop: n, current: () => e };
|
|
2625
2703
|
}
|
|
2626
|
-
let
|
|
2627
|
-
function
|
|
2628
|
-
return
|
|
2704
|
+
let we = null;
|
|
2705
|
+
function Ue() {
|
|
2706
|
+
return we || (we = je()), we;
|
|
2629
2707
|
}
|
|
2630
|
-
async function
|
|
2631
|
-
return
|
|
2708
|
+
async function vc(e, t) {
|
|
2709
|
+
return Ue().play(e, t);
|
|
2632
2710
|
}
|
|
2633
|
-
function
|
|
2634
|
-
|
|
2711
|
+
function Nc() {
|
|
2712
|
+
Ue().stop();
|
|
2635
2713
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const e =
|
|
2638
|
-
e.current || (e.current =
|
|
2714
|
+
function $c() {
|
|
2715
|
+
const e = T(null), [t, n] = v(!1);
|
|
2716
|
+
e.current || (e.current = je()), k(() => () => {
|
|
2639
2717
|
e.current?.stop();
|
|
2640
2718
|
}, []);
|
|
2641
2719
|
const r = x(async (o, i) => {
|
|
@@ -2645,23 +2723,23 @@ function ec() {
|
|
|
2645
2723
|
}, []);
|
|
2646
2724
|
return { play: r, stop: s, unlocked: t };
|
|
2647
2725
|
}
|
|
2648
|
-
class
|
|
2726
|
+
class Ei extends ot {
|
|
2649
2727
|
store;
|
|
2650
2728
|
constructor(t, n, r, s) {
|
|
2651
2729
|
super(t), this.version(n).stores({ [r]: s }), this.store = this.table(r);
|
|
2652
2730
|
}
|
|
2653
2731
|
}
|
|
2654
|
-
function
|
|
2655
|
-
const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new
|
|
2732
|
+
function kc(e) {
|
|
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;
|
|
2656
2734
|
function u(p, f) {
|
|
2657
2735
|
return !i || !f ? p : { ...p, [i]: f };
|
|
2658
2736
|
}
|
|
2659
2737
|
async function d(p, f = {}) {
|
|
2660
|
-
const { orderBy: m = o, reverse: g = !1, limit: h, offset:
|
|
2738
|
+
const { orderBy: m = o, reverse: g = !1, limit: h, offset: b, filter: y } = f;
|
|
2661
2739
|
let N = i && p ? a.where(i).equals(p) : a.toCollection();
|
|
2662
|
-
|
|
2740
|
+
y && (N = N.filter(y));
|
|
2663
2741
|
let $ = m === o ? await N.toArray() : await N.sortBy(m);
|
|
2664
|
-
return g && ($ = $.reverse()),
|
|
2742
|
+
return g && ($ = $.reverse()), b && ($ = $.slice(b)), typeof h == "number" && ($ = $.slice(0, h)), $;
|
|
2665
2743
|
}
|
|
2666
2744
|
return {
|
|
2667
2745
|
put: (p, f) => a.put(u(p, f)),
|
|
@@ -2686,13 +2764,13 @@ function tc(e) {
|
|
|
2686
2764
|
db: c
|
|
2687
2765
|
};
|
|
2688
2766
|
}
|
|
2689
|
-
function
|
|
2767
|
+
function Ci(e = [], t = []) {
|
|
2690
2768
|
if (e.length !== t.length) return !0;
|
|
2691
2769
|
for (let n = 0; n < e.length; n++)
|
|
2692
2770
|
if (!Object.is(e[n], t[n])) return !0;
|
|
2693
2771
|
return !1;
|
|
2694
2772
|
}
|
|
2695
|
-
class
|
|
2773
|
+
class Sc extends Ze {
|
|
2696
2774
|
state = { error: null };
|
|
2697
2775
|
static getDerivedStateFromError(t) {
|
|
2698
2776
|
return { error: t };
|
|
@@ -2701,7 +2779,7 @@ class nc extends Qe {
|
|
|
2701
2779
|
this.props.onError?.(t, n);
|
|
2702
2780
|
}
|
|
2703
2781
|
componentDidUpdate(t) {
|
|
2704
|
-
this.state.error &&
|
|
2782
|
+
this.state.error && Ci(t.resetKeys, this.props.resetKeys) && this.reset();
|
|
2705
2783
|
}
|
|
2706
2784
|
reset = () => {
|
|
2707
2785
|
this.setState({ error: null });
|
|
@@ -2713,7 +2791,7 @@ class nc extends Qe {
|
|
|
2713
2791
|
return typeof n == "function" ? n({ error: t, reset: this.reset }) : n;
|
|
2714
2792
|
}
|
|
2715
2793
|
}
|
|
2716
|
-
function
|
|
2794
|
+
function xc() {
|
|
2717
2795
|
const [, e] = v(null);
|
|
2718
2796
|
return x((t) => {
|
|
2719
2797
|
e(() => {
|
|
@@ -2721,7 +2799,7 @@ function rc() {
|
|
|
2721
2799
|
});
|
|
2722
2800
|
}, []);
|
|
2723
2801
|
}
|
|
2724
|
-
function
|
|
2802
|
+
function Tc(e, t) {
|
|
2725
2803
|
const n = e.safeParse(t);
|
|
2726
2804
|
if (n.success)
|
|
2727
2805
|
return { success: !0, data: n.data, errors: {} };
|
|
@@ -2732,7 +2810,7 @@ function sc(e, t) {
|
|
|
2732
2810
|
}
|
|
2733
2811
|
return { success: !1, errors: r };
|
|
2734
2812
|
}
|
|
2735
|
-
function
|
|
2813
|
+
function Li(e) {
|
|
2736
2814
|
return async (t, n, r) => {
|
|
2737
2815
|
const s = e.safeParse(t);
|
|
2738
2816
|
if (s.success)
|
|
@@ -2745,17 +2823,17 @@ function pi(e) {
|
|
|
2745
2823
|
return { values: {}, errors: o };
|
|
2746
2824
|
};
|
|
2747
2825
|
}
|
|
2748
|
-
function
|
|
2749
|
-
return
|
|
2826
|
+
function Ec(e, t = {}) {
|
|
2827
|
+
return it({
|
|
2750
2828
|
...t,
|
|
2751
|
-
resolver:
|
|
2829
|
+
resolver: Li(e)
|
|
2752
2830
|
});
|
|
2753
2831
|
}
|
|
2754
|
-
function
|
|
2832
|
+
function ce(e) {
|
|
2755
2833
|
return e.replace(/\D/g, "");
|
|
2756
2834
|
}
|
|
2757
|
-
function
|
|
2758
|
-
const t =
|
|
2835
|
+
function Cc(e) {
|
|
2836
|
+
const t = ce(e);
|
|
2759
2837
|
if (t.length !== 11 || /^(\d)\1+$/.test(t)) return !1;
|
|
2760
2838
|
const n = t.split("").map(Number);
|
|
2761
2839
|
let r = 0;
|
|
@@ -2766,8 +2844,8 @@ function ic(e) {
|
|
|
2766
2844
|
for (let o = 0; o < 10; o++) r += n[o] * (11 - o);
|
|
2767
2845
|
return s = r * 10 % 11, s === 10 && (s = 0), s === n[10];
|
|
2768
2846
|
}
|
|
2769
|
-
function
|
|
2770
|
-
const t =
|
|
2847
|
+
function Lc(e) {
|
|
2848
|
+
const t = ce(e);
|
|
2771
2849
|
if (t.length !== 14 || /^(\d)\1+$/.test(t)) return !1;
|
|
2772
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];
|
|
2773
2851
|
let o = 0;
|
|
@@ -2778,50 +2856,50 @@ function ac(e) {
|
|
|
2778
2856
|
for (let c = 0; c < 13; c++) o += n[c] * s[c];
|
|
2779
2857
|
return i = o % 11, i = i < 2 ? 0 : 11 - i, i === n[13];
|
|
2780
2858
|
}
|
|
2781
|
-
function
|
|
2782
|
-
return
|
|
2859
|
+
function Ii(e) {
|
|
2860
|
+
return ce(e).slice(0, 8).replace(/(\d{5})(\d)/, "$1-$2");
|
|
2783
2861
|
}
|
|
2784
|
-
function
|
|
2785
|
-
return
|
|
2862
|
+
function Di(e) {
|
|
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");
|
|
2786
2864
|
}
|
|
2787
|
-
function
|
|
2788
|
-
return
|
|
2865
|
+
function Ic(e) {
|
|
2866
|
+
return ce(e);
|
|
2789
2867
|
}
|
|
2790
|
-
function
|
|
2868
|
+
function Dc(e) {
|
|
2791
2869
|
return new Intl.NumberFormat("pt-BR", {
|
|
2792
2870
|
style: "currency",
|
|
2793
2871
|
currency: "BRL"
|
|
2794
2872
|
}).format(e);
|
|
2795
2873
|
}
|
|
2796
|
-
function
|
|
2874
|
+
function Mc(e) {
|
|
2797
2875
|
const t = typeof e == "string" ? new Date(e) : e;
|
|
2798
2876
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR").format(t);
|
|
2799
2877
|
}
|
|
2800
|
-
function
|
|
2878
|
+
function Pc(e) {
|
|
2801
2879
|
const t = typeof e == "string" ? new Date(e) : e;
|
|
2802
2880
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR", {
|
|
2803
2881
|
dateStyle: "short",
|
|
2804
2882
|
timeStyle: "short"
|
|
2805
2883
|
}).format(t);
|
|
2806
2884
|
}
|
|
2807
|
-
function
|
|
2885
|
+
function Mi(e) {
|
|
2808
2886
|
const t = e.replace(/\D/g, "").slice(0, 11);
|
|
2809
2887
|
return t.length <= 10 ? t.replace(/(\d{2})(\d)/, "($1) $2").replace(/(\d{4})(\d)/, "$1-$2") : t.replace(/(\d{2})(\d)/, "($1) $2").replace(/(\d{5})(\d)/, "$1-$2");
|
|
2810
2888
|
}
|
|
2811
|
-
function
|
|
2889
|
+
function Pi(e) {
|
|
2812
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");
|
|
2813
2891
|
}
|
|
2814
|
-
function
|
|
2892
|
+
function Ac(e) {
|
|
2815
2893
|
return new Intl.NumberFormat("pt-BR", {
|
|
2816
2894
|
style: "percent",
|
|
2817
2895
|
minimumFractionDigits: 1,
|
|
2818
2896
|
maximumFractionDigits: 1
|
|
2819
2897
|
}).format(e);
|
|
2820
2898
|
}
|
|
2821
|
-
function
|
|
2899
|
+
function pe(e, t = "numeric") {
|
|
2822
2900
|
return O(function({ value: r, onChange: s, ...o }, i) {
|
|
2823
2901
|
return /* @__PURE__ */ l(
|
|
2824
|
-
|
|
2902
|
+
Se,
|
|
2825
2903
|
{
|
|
2826
2904
|
...o,
|
|
2827
2905
|
ref: i,
|
|
@@ -2832,28 +2910,28 @@ function ue(e, t = "numeric") {
|
|
|
2832
2910
|
);
|
|
2833
2911
|
});
|
|
2834
2912
|
}
|
|
2835
|
-
const
|
|
2836
|
-
function
|
|
2913
|
+
const Rc = pe(Pi), Fc = pe(Di), Oc = pe(Mi, "tel"), Wc = pe(Ii);
|
|
2914
|
+
function Ai(e, t, n) {
|
|
2837
2915
|
return new Intl.NumberFormat(t, { style: "currency", currency: n }).format(e / 100);
|
|
2838
2916
|
}
|
|
2839
|
-
function
|
|
2917
|
+
function Ri(e) {
|
|
2840
2918
|
const t = e.replace(/\D/g, "");
|
|
2841
2919
|
return t ? Number.parseInt(t, 10) : 0;
|
|
2842
2920
|
}
|
|
2843
|
-
const
|
|
2921
|
+
const Bc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s = "pt-BR", ...o }, i) {
|
|
2844
2922
|
return /* @__PURE__ */ l(
|
|
2845
|
-
|
|
2923
|
+
Se,
|
|
2846
2924
|
{
|
|
2847
2925
|
...o,
|
|
2848
2926
|
ref: i,
|
|
2849
2927
|
type: "text",
|
|
2850
2928
|
inputMode: "numeric",
|
|
2851
|
-
value:
|
|
2852
|
-
onChange: (c) => n(
|
|
2929
|
+
value: Ai(t || 0, s, r),
|
|
2930
|
+
onChange: (c) => n(Ri(c.target.value))
|
|
2853
2931
|
}
|
|
2854
2932
|
);
|
|
2855
2933
|
});
|
|
2856
|
-
function
|
|
2934
|
+
function jc() {
|
|
2857
2935
|
const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i = x(async (a) => {
|
|
2858
2936
|
const u = a.replace(/\D/g, "");
|
|
2859
2937
|
if (u.length !== 8)
|
|
@@ -2872,14 +2950,14 @@ function yc() {
|
|
|
2872
2950
|
}, []);
|
|
2873
2951
|
return { loading: e, error: n, data: s, lookup: i, reset: c };
|
|
2874
2952
|
}
|
|
2875
|
-
function
|
|
2953
|
+
function Fi(e) {
|
|
2876
2954
|
try {
|
|
2877
2955
|
return JSON.parse(e);
|
|
2878
2956
|
} catch {
|
|
2879
2957
|
return e;
|
|
2880
2958
|
}
|
|
2881
2959
|
}
|
|
2882
|
-
function
|
|
2960
|
+
function Oi(e, t = {}) {
|
|
2883
2961
|
const {
|
|
2884
2962
|
protocols: n,
|
|
2885
2963
|
maxRetries: r = 10,
|
|
@@ -2887,78 +2965,78 @@ function wi(e, t = {}) {
|
|
|
2887
2965
|
maxBackoff: o = 3e4,
|
|
2888
2966
|
pingInterval: i = 0,
|
|
2889
2967
|
pingPayload: c = JSON.stringify({ type: "ping" }),
|
|
2890
|
-
parser: a =
|
|
2968
|
+
parser: a = Fi,
|
|
2891
2969
|
onOpen: u,
|
|
2892
2970
|
onMessage: d,
|
|
2893
2971
|
onClose: p,
|
|
2894
2972
|
onError: f,
|
|
2895
2973
|
onStatusChange: m
|
|
2896
2974
|
} = t;
|
|
2897
|
-
let g = null, h = null,
|
|
2898
|
-
function C(
|
|
2899
|
-
N !==
|
|
2975
|
+
let g = null, h = null, b = null, y = 0, N = "idle", $ = !1;
|
|
2976
|
+
function C(E) {
|
|
2977
|
+
N !== E && (N = E, m?.(E));
|
|
2900
2978
|
}
|
|
2901
2979
|
function I() {
|
|
2902
|
-
|
|
2980
|
+
b && (clearInterval(b), b = null);
|
|
2903
2981
|
}
|
|
2904
|
-
function
|
|
2905
|
-
!i || i <= 0 || (I(),
|
|
2982
|
+
function fe() {
|
|
2983
|
+
!i || i <= 0 || (I(), b = setInterval(() => {
|
|
2906
2984
|
g?.readyState === WebSocket.OPEN && g.send(c);
|
|
2907
2985
|
}, i));
|
|
2908
2986
|
}
|
|
2909
|
-
function
|
|
2987
|
+
function me() {
|
|
2910
2988
|
if ($) return;
|
|
2911
|
-
if (
|
|
2989
|
+
if (y >= r) {
|
|
2912
2990
|
C("error");
|
|
2913
2991
|
return;
|
|
2914
2992
|
}
|
|
2915
|
-
const
|
|
2916
|
-
|
|
2993
|
+
const E = Math.min(s * 2 ** y, o);
|
|
2994
|
+
y += 1, h = setTimeout(S, E);
|
|
2917
2995
|
}
|
|
2918
2996
|
function S() {
|
|
2919
2997
|
if ($) return;
|
|
2920
2998
|
g && (g.onopen = null, g.onmessage = null, g.onclose = null, g.onerror = null, g.close()), C("connecting");
|
|
2921
|
-
const
|
|
2922
|
-
g =
|
|
2923
|
-
|
|
2924
|
-
},
|
|
2925
|
-
const
|
|
2999
|
+
const E = new WebSocket(e, n);
|
|
3000
|
+
g = E, E.onopen = (M) => {
|
|
3001
|
+
y = 0, C("open"), fe(), u?.(M);
|
|
3002
|
+
}, E.onmessage = (M) => {
|
|
3003
|
+
const Qe = typeof M.data == "string" ? M.data : "";
|
|
2926
3004
|
d?.({
|
|
2927
|
-
data: a(
|
|
3005
|
+
data: a(Qe),
|
|
2928
3006
|
raw: M
|
|
2929
3007
|
});
|
|
2930
|
-
},
|
|
3008
|
+
}, E.onerror = (M) => {
|
|
2931
3009
|
f?.(M);
|
|
2932
|
-
},
|
|
2933
|
-
I(), p?.(M), g = null, C("closed"), !$ && !M.wasClean &&
|
|
3010
|
+
}, E.onclose = (M) => {
|
|
3011
|
+
I(), p?.(M), g = null, C("closed"), !$ && !M.wasClean && me();
|
|
2934
3012
|
};
|
|
2935
3013
|
}
|
|
2936
|
-
function L(
|
|
2937
|
-
return g?.readyState !== WebSocket.OPEN ? !1 : (g.send(
|
|
3014
|
+
function L(E) {
|
|
3015
|
+
return g?.readyState !== WebSocket.OPEN ? !1 : (g.send(E), !0);
|
|
2938
3016
|
}
|
|
2939
|
-
function
|
|
2940
|
-
$ = !0, h && (clearTimeout(h), h = null), I(),
|
|
3017
|
+
function he(E, M) {
|
|
3018
|
+
$ = !0, h && (clearTimeout(h), h = null), I(), y = 0, g && (C("closing"), g.close(E, M), g = null), C("closed");
|
|
2941
3019
|
}
|
|
2942
|
-
function
|
|
2943
|
-
h && (clearTimeout(h), h = null),
|
|
3020
|
+
function Ve() {
|
|
3021
|
+
h && (clearTimeout(h), h = null), y = 0, $ = !1, S();
|
|
2944
3022
|
}
|
|
2945
3023
|
return S(), {
|
|
2946
3024
|
send: L,
|
|
2947
|
-
close:
|
|
2948
|
-
reconnect:
|
|
3025
|
+
close: he,
|
|
3026
|
+
reconnect: Ve,
|
|
2949
3027
|
get status() {
|
|
2950
3028
|
return N;
|
|
2951
3029
|
}
|
|
2952
3030
|
};
|
|
2953
3031
|
}
|
|
2954
|
-
function
|
|
2955
|
-
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u =
|
|
3032
|
+
function Uc(e, t = {}) {
|
|
3033
|
+
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = T(null), d = T(r);
|
|
2956
3034
|
d.current = r, k(() => {
|
|
2957
3035
|
if (!n || !e) {
|
|
2958
3036
|
i("idle");
|
|
2959
3037
|
return;
|
|
2960
3038
|
}
|
|
2961
|
-
const m =
|
|
3039
|
+
const m = Oi(e, {
|
|
2962
3040
|
...s,
|
|
2963
3041
|
onStatusChange: i,
|
|
2964
3042
|
onMessage: (g) => {
|
|
@@ -2977,11 +3055,11 @@ function bc(e, t = {}) {
|
|
|
2977
3055
|
}, []);
|
|
2978
3056
|
return { status: o, lastMessage: c, send: p, reconnect: f };
|
|
2979
3057
|
}
|
|
2980
|
-
const
|
|
2981
|
-
function
|
|
3058
|
+
const ze = ne(null);
|
|
3059
|
+
function Me(e) {
|
|
2982
3060
|
return e === "dark" || e === "light" ? e : typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2983
3061
|
}
|
|
2984
|
-
function
|
|
3062
|
+
function Wi(e) {
|
|
2985
3063
|
if (!e || typeof window > "u") return null;
|
|
2986
3064
|
try {
|
|
2987
3065
|
const t = window.localStorage.getItem(e);
|
|
@@ -2990,7 +3068,7 @@ function vi(e) {
|
|
|
2990
3068
|
return null;
|
|
2991
3069
|
}
|
|
2992
3070
|
}
|
|
2993
|
-
function
|
|
3071
|
+
function zc({
|
|
2994
3072
|
children: e,
|
|
2995
3073
|
defaultTheme: t = "system",
|
|
2996
3074
|
storageKey: n = "tempest-theme",
|
|
@@ -2998,18 +3076,18 @@ function wc({
|
|
|
2998
3076
|
attribute: s = "data-tempest-theme"
|
|
2999
3077
|
}) {
|
|
3000
3078
|
const [o, i] = v(
|
|
3001
|
-
() =>
|
|
3002
|
-
), [c, a] = v(() =>
|
|
3079
|
+
() => Wi(n) ?? t
|
|
3080
|
+
), [c, a] = v(() => Me(o)), u = T(r);
|
|
3003
3081
|
u.current = r, k(() => {
|
|
3004
3082
|
const m = u.current?.() ?? document.documentElement;
|
|
3005
3083
|
if (!m) return;
|
|
3006
|
-
const g =
|
|
3084
|
+
const g = Me(o);
|
|
3007
3085
|
m.setAttribute(s, g), a(g);
|
|
3008
3086
|
}, [o, s]), k(() => {
|
|
3009
3087
|
if (o !== "system" || typeof window > "u") return;
|
|
3010
3088
|
const m = window.matchMedia("(prefers-color-scheme: dark)"), g = () => {
|
|
3011
|
-
const h = u.current?.() ?? document.documentElement,
|
|
3012
|
-
h?.setAttribute(s,
|
|
3089
|
+
const h = u.current?.() ?? document.documentElement, b = m.matches ? "dark" : "light";
|
|
3090
|
+
h?.setAttribute(s, b), a(b);
|
|
3013
3091
|
};
|
|
3014
3092
|
return m.addEventListener("change", g), () => m.removeEventListener("change", g);
|
|
3015
3093
|
}, [o, s]);
|
|
@@ -3024,18 +3102,18 @@ function wc({
|
|
|
3024
3102
|
[n]
|
|
3025
3103
|
), p = x(() => {
|
|
3026
3104
|
d(c === "dark" ? "light" : "dark");
|
|
3027
|
-
}, [c, d]), f =
|
|
3105
|
+
}, [c, d]), f = W(
|
|
3028
3106
|
() => ({ theme: o, resolvedTheme: c, setTheme: d, toggle: p }),
|
|
3029
3107
|
[o, c, d, p]
|
|
3030
3108
|
);
|
|
3031
|
-
return /* @__PURE__ */ l(
|
|
3109
|
+
return /* @__PURE__ */ l(ze.Provider, { value: f, children: e });
|
|
3032
3110
|
}
|
|
3033
|
-
function
|
|
3034
|
-
const e =
|
|
3111
|
+
function Jc() {
|
|
3112
|
+
const e = te(ze);
|
|
3035
3113
|
if (!e) throw new Error("useTheme must be used inside a <ThemeProvider>");
|
|
3036
3114
|
return e;
|
|
3037
3115
|
}
|
|
3038
|
-
function
|
|
3116
|
+
function qc(e = {}) {
|
|
3039
3117
|
const { storageKey: t = "tempest-theme", defaultTheme: n = "system" } = e;
|
|
3040
3118
|
if (typeof window > "u")
|
|
3041
3119
|
return n === "dark" ? "dark" : "light";
|
|
@@ -3048,7 +3126,7 @@ function Nc(e = {}) {
|
|
|
3048
3126
|
const s = r ?? n;
|
|
3049
3127
|
return s === "dark" || s === "light" ? s : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3050
3128
|
}
|
|
3051
|
-
function
|
|
3129
|
+
function Gc(e = {}) {
|
|
3052
3130
|
const t = e.storageKey ?? "tempest-theme", n = e.defaultTheme ?? "system";
|
|
3053
3131
|
return `
|
|
3054
3132
|
(function(){try{
|
|
@@ -3061,13 +3139,13 @@ function $c(e = {}) {
|
|
|
3061
3139
|
}catch(e){}})();
|
|
3062
3140
|
`.trim();
|
|
3063
3141
|
}
|
|
3064
|
-
function
|
|
3142
|
+
function Pe(e, t) {
|
|
3065
3143
|
return t ? e.replace(/\{(\w+)\}/g, (n, r) => {
|
|
3066
3144
|
const s = t[r];
|
|
3067
3145
|
return s === void 0 ? `{${r}}` : String(s);
|
|
3068
3146
|
}) : e;
|
|
3069
3147
|
}
|
|
3070
|
-
function
|
|
3148
|
+
function be(e, t, n, r) {
|
|
3071
3149
|
const s = e[t]?.[r];
|
|
3072
3150
|
if (s !== void 0) return s;
|
|
3073
3151
|
if (n) {
|
|
@@ -3076,15 +3154,15 @@ function ye(e, t, n, r) {
|
|
|
3076
3154
|
}
|
|
3077
3155
|
return null;
|
|
3078
3156
|
}
|
|
3079
|
-
function
|
|
3157
|
+
function Je(e) {
|
|
3080
3158
|
const { locale: t, fallbackLocale: n = null, messages: r } = e;
|
|
3081
3159
|
function s(a, u) {
|
|
3082
|
-
const d =
|
|
3083
|
-
return d === null ? a :
|
|
3160
|
+
const d = be(r, t, n, a);
|
|
3161
|
+
return d === null ? a : Pe(d, u);
|
|
3084
3162
|
}
|
|
3085
3163
|
function o(a, u, d) {
|
|
3086
|
-
const f =
|
|
3087
|
-
return f === null ? a :
|
|
3164
|
+
const f = be(r, t, n, `${a}${u === 1 ? "_one" : "_other"}`) ?? be(r, t, n, a);
|
|
3165
|
+
return f === null ? a : Pe(f, { count: u, ...d ?? {} });
|
|
3088
3166
|
}
|
|
3089
3167
|
function i(a, u) {
|
|
3090
3168
|
return new Intl.NumberFormat(t, u).format(a);
|
|
@@ -3100,15 +3178,15 @@ function Ue(e) {
|
|
|
3100
3178
|
plural: o,
|
|
3101
3179
|
formatNumber: i,
|
|
3102
3180
|
formatDate: c,
|
|
3103
|
-
withLocale: (a) =>
|
|
3181
|
+
withLocale: (a) => Je({
|
|
3104
3182
|
locale: a,
|
|
3105
3183
|
fallbackLocale: n ?? void 0,
|
|
3106
3184
|
messages: r
|
|
3107
3185
|
})
|
|
3108
3186
|
};
|
|
3109
3187
|
}
|
|
3110
|
-
const
|
|
3111
|
-
function
|
|
3188
|
+
const qe = ne(null);
|
|
3189
|
+
function Bi(e, t) {
|
|
3112
3190
|
if (!e || typeof window > "u") return null;
|
|
3113
3191
|
try {
|
|
3114
3192
|
const n = window.localStorage.getItem(e);
|
|
@@ -3117,15 +3195,15 @@ function Ni(e, t) {
|
|
|
3117
3195
|
return null;
|
|
3118
3196
|
}
|
|
3119
3197
|
}
|
|
3120
|
-
function
|
|
3198
|
+
function Hc({
|
|
3121
3199
|
children: e,
|
|
3122
3200
|
locale: t,
|
|
3123
3201
|
fallbackLocale: n,
|
|
3124
3202
|
messages: r,
|
|
3125
3203
|
storageKey: s = "tempest-locale"
|
|
3126
3204
|
}) {
|
|
3127
|
-
const o =
|
|
3128
|
-
() =>
|
|
3205
|
+
const o = W(() => Object.keys(r), [r]), [i, c] = v(
|
|
3206
|
+
() => Bi(s, o) ?? t
|
|
3129
3207
|
);
|
|
3130
3208
|
k(() => {
|
|
3131
3209
|
typeof document < "u" && document.documentElement.setAttribute("lang", i);
|
|
@@ -3139,29 +3217,29 @@ function kc({
|
|
|
3139
3217
|
}
|
|
3140
3218
|
},
|
|
3141
3219
|
[s]
|
|
3142
|
-
), u =
|
|
3143
|
-
return /* @__PURE__ */ l(
|
|
3220
|
+
), u = W(() => ({ ...Je({ locale: i, fallbackLocale: n, messages: r }), setLocale: a, availableLocales: o }), [i, n, r, a, o]);
|
|
3221
|
+
return /* @__PURE__ */ l(qe.Provider, { value: u, children: e });
|
|
3144
3222
|
}
|
|
3145
|
-
function
|
|
3146
|
-
const e =
|
|
3223
|
+
function ji() {
|
|
3224
|
+
const e = te(qe);
|
|
3147
3225
|
if (!e) throw new Error("useI18n must be used inside an <I18nProvider>");
|
|
3148
3226
|
return e;
|
|
3149
3227
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return
|
|
3228
|
+
function Kc() {
|
|
3229
|
+
return ji().t;
|
|
3152
3230
|
}
|
|
3153
|
-
const
|
|
3154
|
-
function
|
|
3155
|
-
return
|
|
3231
|
+
const Ae = ["debug", "info", "warn", "error"];
|
|
3232
|
+
function Ui(e, t) {
|
|
3233
|
+
return Ae.indexOf(t) >= Ae.indexOf(e);
|
|
3156
3234
|
}
|
|
3157
|
-
const
|
|
3235
|
+
const zi = ({ level: e, message: t, context: n }) => {
|
|
3158
3236
|
const r = e === "debug" ? "log" : e;
|
|
3159
3237
|
n ? console[r](t, n) : console[r](t);
|
|
3160
3238
|
};
|
|
3161
|
-
function
|
|
3162
|
-
const t = e.level ?? "info", n = e.sinks ?? [
|
|
3239
|
+
function Ji(e = {}) {
|
|
3240
|
+
const t = e.level ?? "info", n = e.sinks ?? [zi], r = e.namespace ?? "";
|
|
3163
3241
|
function s(o, i, c) {
|
|
3164
|
-
if (!
|
|
3242
|
+
if (!Ui(t, o)) return;
|
|
3165
3243
|
const a = {
|
|
3166
3244
|
level: o,
|
|
3167
3245
|
message: r ? `[${r}] ${i}` : i,
|
|
@@ -3179,25 +3257,25 @@ function xi(e = {}) {
|
|
|
3179
3257
|
info: (o, i) => s("info", o, i),
|
|
3180
3258
|
warn: (o, i) => s("warn", o, i),
|
|
3181
3259
|
error: (o, i) => s("error", o, i),
|
|
3182
|
-
child: (o) =>
|
|
3260
|
+
child: (o) => Ji({
|
|
3183
3261
|
level: t,
|
|
3184
3262
|
sinks: n,
|
|
3185
3263
|
namespace: r ? `${r}:${o}` : o
|
|
3186
3264
|
})
|
|
3187
3265
|
};
|
|
3188
3266
|
}
|
|
3189
|
-
const
|
|
3190
|
-
function
|
|
3267
|
+
const Ge = ne(null);
|
|
3268
|
+
function Vc({ adapter: e, children: t }) {
|
|
3191
3269
|
k(() => (e.init?.(), () => {
|
|
3192
3270
|
e.flush?.();
|
|
3193
3271
|
}), [e]);
|
|
3194
|
-
const n =
|
|
3195
|
-
return /* @__PURE__ */ l(
|
|
3272
|
+
const n = W(() => e, [e]);
|
|
3273
|
+
return /* @__PURE__ */ l(Ge.Provider, { value: n, children: t });
|
|
3196
3274
|
}
|
|
3197
|
-
function
|
|
3198
|
-
return
|
|
3275
|
+
function Qc() {
|
|
3276
|
+
return te(Ge);
|
|
3199
3277
|
}
|
|
3200
|
-
const
|
|
3278
|
+
const Yc = {
|
|
3201
3279
|
identify(e) {
|
|
3202
3280
|
console.info("[telemetry] identify", e);
|
|
3203
3281
|
},
|
|
@@ -3207,28 +3285,64 @@ const Tc = {
|
|
|
3207
3285
|
captureException(e, t) {
|
|
3208
3286
|
console.error("[telemetry] exception", e, t);
|
|
3209
3287
|
}
|
|
3210
|
-
}
|
|
3211
|
-
function
|
|
3212
|
-
|
|
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 }) {
|
|
3326
|
+
const n = W(() => e, [e]);
|
|
3213
3327
|
return k(() => {
|
|
3214
|
-
}, [n]), /* @__PURE__ */ l(
|
|
3328
|
+
}, [n]), /* @__PURE__ */ l(He.Provider, { value: n, children: t });
|
|
3215
3329
|
}
|
|
3216
|
-
function
|
|
3217
|
-
const e =
|
|
3330
|
+
function Ke() {
|
|
3331
|
+
const e = te(He);
|
|
3218
3332
|
if (!e) throw new Error("useFeatureFlag requires <FeatureFlagsProvider>");
|
|
3219
3333
|
return e;
|
|
3220
3334
|
}
|
|
3221
|
-
function
|
|
3222
|
-
const n =
|
|
3335
|
+
function el(e, t = !1) {
|
|
3336
|
+
const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3223
3337
|
}, s = () => n.isEnabled(e, t);
|
|
3224
|
-
return
|
|
3338
|
+
return Fe(r, s, s);
|
|
3225
3339
|
}
|
|
3226
|
-
function
|
|
3227
|
-
const n =
|
|
3340
|
+
function tl(e, t) {
|
|
3341
|
+
const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3228
3342
|
}, s = () => n.get(e, t);
|
|
3229
|
-
return
|
|
3343
|
+
return Fe(r, s, s);
|
|
3230
3344
|
}
|
|
3231
|
-
function
|
|
3345
|
+
function nl(e = {}) {
|
|
3232
3346
|
const t = { ...e.initial ?? {} }, n = /* @__PURE__ */ new Set();
|
|
3233
3347
|
function r() {
|
|
3234
3348
|
for (const s of n) s();
|
|
@@ -3248,7 +3362,7 @@ function Dc(e = {}) {
|
|
|
3248
3362
|
}
|
|
3249
3363
|
};
|
|
3250
3364
|
}
|
|
3251
|
-
async function
|
|
3365
|
+
async function rl(e) {
|
|
3252
3366
|
if (typeof navigator > "u" || !("share" in navigator))
|
|
3253
3367
|
return { shared: !1, unsupported: !0, cancelled: !1 };
|
|
3254
3368
|
if (e.files && !navigator.canShare?.({ files: e.files }))
|
|
@@ -3259,10 +3373,10 @@ async function Mc(e) {
|
|
|
3259
3373
|
return t instanceof DOMException && t.name === "AbortError" ? { shared: !1, unsupported: !1, cancelled: !0 } : { shared: !1, unsupported: !1, cancelled: !1, error: t };
|
|
3260
3374
|
}
|
|
3261
3375
|
}
|
|
3262
|
-
function
|
|
3376
|
+
function sl() {
|
|
3263
3377
|
return typeof navigator < "u" && "share" in navigator;
|
|
3264
3378
|
}
|
|
3265
|
-
const
|
|
3379
|
+
const ol = {
|
|
3266
3380
|
get(e, t) {
|
|
3267
3381
|
if (typeof window > "u") return t;
|
|
3268
3382
|
try {
|
|
@@ -3288,138 +3402,143 @@ const Ac = {
|
|
|
3288
3402
|
}
|
|
3289
3403
|
};
|
|
3290
3404
|
export {
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
Ja as
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
qa as
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3405
|
+
ic as AuthGuard,
|
|
3406
|
+
ea as Avatar,
|
|
3407
|
+
ta as Badge,
|
|
3408
|
+
na as Breadcrumbs,
|
|
3409
|
+
ve as Button,
|
|
3410
|
+
Ni as CACHE_TIME,
|
|
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,
|
|
3432
|
+
Se as Input,
|
|
3433
|
+
Cn as Modal,
|
|
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,
|
|
3442
|
+
vi as STALE_TIME,
|
|
3443
|
+
$a as SearchBar,
|
|
3444
|
+
ka as Select,
|
|
3445
|
+
Sa as Skeleton,
|
|
3446
|
+
xa as Spinner,
|
|
3447
|
+
_a as Stack,
|
|
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,
|
|
3458
|
+
Ti as WebPushClient,
|
|
3459
|
+
xi as WebPushPermissionDeniedError,
|
|
3460
|
+
De as WebPushUnsupportedError,
|
|
3461
|
+
_ as cn,
|
|
3462
|
+
zi as consoleSink,
|
|
3463
|
+
Yc as consoleTelemetryAdapter,
|
|
3464
|
+
Za as createApiClient,
|
|
3465
|
+
je as createAudioPlayer,
|
|
3466
|
+
oc as createAuthStore,
|
|
3467
|
+
ki as createEventStream,
|
|
3468
|
+
Je as createI18n,
|
|
3469
|
+
nl as createInMemoryFlags,
|
|
3470
|
+
Ji as createLogger,
|
|
3471
|
+
kc as createOfflineStore,
|
|
3472
|
+
dc as createQueryKeys,
|
|
3473
|
+
lc as createRefreshQueue,
|
|
3474
|
+
Xc as createSentryTelemetryAdapter,
|
|
3475
|
+
Oi as createWebSocket,
|
|
3476
|
+
bi as decodeJWT,
|
|
3477
|
+
Ii as formatCEP,
|
|
3478
|
+
Di as formatCNPJ,
|
|
3479
|
+
Pi as formatCPF,
|
|
3480
|
+
Dc as formatCurrency,
|
|
3481
|
+
Mc as formatDate,
|
|
3482
|
+
Pc as formatDateTime,
|
|
3483
|
+
Ac as formatPercent,
|
|
3484
|
+
Mi as formatPhone,
|
|
3485
|
+
rc as generateIdempotencyKey,
|
|
3486
|
+
qc as getInitialTheme,
|
|
3487
|
+
wc as installNotificationClickHandler,
|
|
3488
|
+
yc as installPushHandler,
|
|
3489
|
+
bc as installSkipWaitingListener,
|
|
3490
|
+
ac as isJWTExpired,
|
|
3491
|
+
ue as isPushSupported,
|
|
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,
|
|
3504
|
+
_c as unregisterAllServiceWorkers,
|
|
3505
|
+
tc as uploadWithProgress,
|
|
3506
|
+
Si as urlBase64ToUint8Array,
|
|
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,
|
|
3520
|
+
ji as useI18n,
|
|
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,
|
|
3542
|
+
Li as zodResolver
|
|
3424
3543
|
};
|
|
3425
3544
|
//# sourceMappingURL=tempest-react-sdk.js.map
|