tempest-react-sdk 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +59 -2
- 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 +1179 -1035
- package/dist/tempest-react-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
1
|
+
import { jsxs as y, jsx as l, Fragment as Se } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useMemo as z, Fragment as We, forwardRef as B, useRef as E, useEffect as k, useId as ue, useContext as se, createContext as oe, cloneElement as et, useCallback as S, lazy as tt, Component as nt, useSyncExternalStore as Be } from "react";
|
|
3
|
+
import { createPortal as Ee } from "react-dom";
|
|
4
|
+
import { QueryClient as rt, QueryClientProvider as st } from "@tanstack/react-query";
|
|
5
|
+
import { create as ot } from "zustand";
|
|
6
|
+
import { persist as it, createJSONStorage as at } from "zustand/middleware";
|
|
7
|
+
import ct from "dexie";
|
|
8
|
+
import { useForm as lt } from "react-hook-form";
|
|
9
9
|
function g(...e) {
|
|
10
10
|
const t = [];
|
|
11
11
|
for (const n of e)
|
|
@@ -21,25 +21,96 @@ function g(...e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t.join(" ");
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
const ut = "tempest_alert_7cYyI", dt = "tempest_content_UXnmZ", pt = "tempest_title_abGgF", ft = "tempest_description_pXPvw", mt = "tempest_icon_Zg6SB", ht = "tempest_close_narep", _t = "tempest_neutral_J7MH1", gt = "tempest_solid_s-oW5", yt = "tempest_outline_v7w9b", bt = "tempest_info_9r3r1", wt = "tempest_success_1bzoB", vt = "tempest_warning_q-j1Q", $t = "tempest_danger_CiZkW", j = {
|
|
25
|
+
alert: ut,
|
|
26
|
+
content: dt,
|
|
27
|
+
title: pt,
|
|
28
|
+
description: ft,
|
|
29
|
+
icon: mt,
|
|
30
|
+
close: ht,
|
|
31
|
+
neutral: _t,
|
|
32
|
+
solid: gt,
|
|
33
|
+
outline: yt,
|
|
34
|
+
info: bt,
|
|
35
|
+
success: wt,
|
|
36
|
+
warning: vt,
|
|
37
|
+
danger: $t
|
|
37
38
|
};
|
|
38
|
-
function
|
|
39
|
+
function tc({
|
|
40
|
+
variant: e = "info",
|
|
41
|
+
appearance: t = "soft",
|
|
42
|
+
title: n,
|
|
43
|
+
description: r,
|
|
44
|
+
icon: s,
|
|
45
|
+
onClose: o,
|
|
46
|
+
closeLabel: i = "Dismiss",
|
|
47
|
+
className: c,
|
|
48
|
+
children: a,
|
|
49
|
+
...u
|
|
50
|
+
}) {
|
|
51
|
+
return /* @__PURE__ */ y(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
role: "alert",
|
|
55
|
+
className: g(
|
|
56
|
+
j.alert,
|
|
57
|
+
j[e],
|
|
58
|
+
t === "solid" && j.solid,
|
|
59
|
+
t === "outline" && j.outline,
|
|
60
|
+
c
|
|
61
|
+
),
|
|
62
|
+
...u,
|
|
63
|
+
children: [
|
|
64
|
+
s && /* @__PURE__ */ l("span", { className: j.icon, children: s }),
|
|
65
|
+
/* @__PURE__ */ y("div", { className: j.content, children: [
|
|
66
|
+
n && /* @__PURE__ */ l("p", { className: j.title, children: n }),
|
|
67
|
+
r && /* @__PURE__ */ l("p", { className: j.description, children: r }),
|
|
68
|
+
a
|
|
69
|
+
] }),
|
|
70
|
+
o && /* @__PURE__ */ l(
|
|
71
|
+
"button",
|
|
72
|
+
{
|
|
73
|
+
type: "button",
|
|
74
|
+
className: j.close,
|
|
75
|
+
onClick: o,
|
|
76
|
+
"aria-label": i,
|
|
77
|
+
children: /* @__PURE__ */ l(Nt, {})
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function Nt() {
|
|
85
|
+
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ l(
|
|
86
|
+
"path",
|
|
87
|
+
{
|
|
88
|
+
d: "M6 6l12 12M18 6L6 18",
|
|
89
|
+
stroke: "currentColor",
|
|
90
|
+
strokeWidth: "2",
|
|
91
|
+
strokeLinecap: "round"
|
|
92
|
+
}
|
|
93
|
+
) });
|
|
94
|
+
}
|
|
95
|
+
const kt = "tempest_avatar_3xMuZ", xt = "tempest_image_ieqGp", St = "tempest_xs_oSaLL", Et = "tempest_sm_sZ2bk", Tt = "tempest_md_Fdkbz", Ct = "tempest_lg_pTTUA", Lt = "tempest_xl_mW58F", It = "tempest_status_ISBnL", Dt = "tempest_dot_Wgfo-", Mt = "tempest_online_-aWoW", Pt = "tempest_offline_-StX3", At = "tempest_busy_TbwuF", ee = {
|
|
96
|
+
avatar: kt,
|
|
97
|
+
image: xt,
|
|
98
|
+
xs: St,
|
|
99
|
+
sm: Et,
|
|
100
|
+
md: Tt,
|
|
101
|
+
lg: Ct,
|
|
102
|
+
xl: Lt,
|
|
103
|
+
status: It,
|
|
104
|
+
dot: Dt,
|
|
105
|
+
online: Mt,
|
|
106
|
+
offline: Pt,
|
|
107
|
+
busy: At
|
|
108
|
+
};
|
|
109
|
+
function Ft(e) {
|
|
39
110
|
const t = e.trim().split(/\s+/).filter(Boolean);
|
|
40
111
|
return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2) : `${t[0].charAt(0)}${t[t.length - 1].charAt(0)}`;
|
|
41
112
|
}
|
|
42
|
-
function
|
|
113
|
+
function nc({
|
|
43
114
|
src: e,
|
|
44
115
|
alt: t,
|
|
45
116
|
name: n = "",
|
|
@@ -48,11 +119,11 @@ function xa({
|
|
|
48
119
|
className: o,
|
|
49
120
|
onClick: i
|
|
50
121
|
}) {
|
|
51
|
-
const [c, a] = v(!1), u =
|
|
52
|
-
return /* @__PURE__ */
|
|
122
|
+
const [c, a] = v(!1), u = z(() => Ft(n), [n]), d = e && !c, p = i ? "button" : void 0, f = i ? 0 : void 0;
|
|
123
|
+
return /* @__PURE__ */ y(
|
|
53
124
|
"span",
|
|
54
125
|
{
|
|
55
|
-
className: g(
|
|
126
|
+
className: g(ee.avatar, ee[r], s && ee.status, o),
|
|
56
127
|
role: p,
|
|
57
128
|
tabIndex: f,
|
|
58
129
|
onClick: i,
|
|
@@ -65,32 +136,32 @@ function xa({
|
|
|
65
136
|
{
|
|
66
137
|
src: e,
|
|
67
138
|
alt: t ?? n,
|
|
68
|
-
className:
|
|
139
|
+
className: ee.image,
|
|
69
140
|
onError: () => a(!0)
|
|
70
141
|
}
|
|
71
142
|
) : /* @__PURE__ */ l("span", { "aria-label": t ?? n, children: u }),
|
|
72
|
-
s && /* @__PURE__ */ l("span", { className: g(
|
|
143
|
+
s && /* @__PURE__ */ l("span", { className: g(ee.dot, ee[s]), "aria-hidden": !0 })
|
|
73
144
|
]
|
|
74
145
|
}
|
|
75
146
|
);
|
|
76
147
|
}
|
|
77
|
-
const
|
|
78
|
-
badge:
|
|
79
|
-
sm:
|
|
80
|
-
md:
|
|
81
|
-
lg:
|
|
82
|
-
square:
|
|
83
|
-
neutral:
|
|
84
|
-
solid:
|
|
85
|
-
outline:
|
|
86
|
-
success:
|
|
87
|
-
warning:
|
|
88
|
-
danger:
|
|
89
|
-
info:
|
|
90
|
-
primary:
|
|
91
|
-
dot:
|
|
148
|
+
const Rt = "tempest_badge_RsuMz", Ot = "tempest_sm_LYsCn", Wt = "tempest_md_4Or8q", Bt = "tempest_lg_Bseje", zt = "tempest_square_l63D-", jt = "tempest_neutral_lulSm", Ut = "tempest_solid_0Leug", qt = "tempest_outline_x06HL", Jt = "tempest_success_u9JiS", Gt = "tempest_warning_nsGp-", Ht = "tempest_danger_PD2hz", Kt = "tempest_info_na6DQ", Vt = "tempest_primary_S0WCS", Qt = "tempest_dot_i0c-G", Z = {
|
|
149
|
+
badge: Rt,
|
|
150
|
+
sm: Ot,
|
|
151
|
+
md: Wt,
|
|
152
|
+
lg: Bt,
|
|
153
|
+
square: zt,
|
|
154
|
+
neutral: jt,
|
|
155
|
+
solid: Ut,
|
|
156
|
+
outline: qt,
|
|
157
|
+
success: Jt,
|
|
158
|
+
warning: Gt,
|
|
159
|
+
danger: Ht,
|
|
160
|
+
info: Kt,
|
|
161
|
+
primary: Vt,
|
|
162
|
+
dot: Qt
|
|
92
163
|
};
|
|
93
|
-
function
|
|
164
|
+
function rc({
|
|
94
165
|
variant: e = "neutral",
|
|
95
166
|
appearance: t = "soft",
|
|
96
167
|
size: n = "md",
|
|
@@ -100,83 +171,83 @@ function Sa({
|
|
|
100
171
|
children: i,
|
|
101
172
|
...c
|
|
102
173
|
}) {
|
|
103
|
-
return /* @__PURE__ */
|
|
174
|
+
return /* @__PURE__ */ y(
|
|
104
175
|
"span",
|
|
105
176
|
{
|
|
106
177
|
className: g(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
t === "solid" &&
|
|
110
|
-
t === "outline" &&
|
|
111
|
-
|
|
112
|
-
r === "square" &&
|
|
178
|
+
Z.badge,
|
|
179
|
+
Z[e],
|
|
180
|
+
t === "solid" && Z.solid,
|
|
181
|
+
t === "outline" && Z.outline,
|
|
182
|
+
Z[n],
|
|
183
|
+
r === "square" && Z.square,
|
|
113
184
|
o
|
|
114
185
|
),
|
|
115
186
|
...c,
|
|
116
187
|
children: [
|
|
117
|
-
s && /* @__PURE__ */ l("span", { className:
|
|
188
|
+
s && /* @__PURE__ */ l("span", { className: Z.dot, "aria-hidden": !0 }),
|
|
118
189
|
i
|
|
119
190
|
]
|
|
120
191
|
}
|
|
121
192
|
);
|
|
122
193
|
}
|
|
123
|
-
const
|
|
124
|
-
nav:
|
|
125
|
-
item:
|
|
126
|
-
link:
|
|
127
|
-
current:
|
|
128
|
-
separator:
|
|
194
|
+
const Zt = "tempest_nav_H4g6P", Yt = "tempest_item_O4g3P", Xt = "tempest_link_7WM67", en = "tempest_current_JdlcS", tn = "tempest_separator_zGWyJ", ie = {
|
|
195
|
+
nav: Zt,
|
|
196
|
+
item: Yt,
|
|
197
|
+
link: Xt,
|
|
198
|
+
current: en,
|
|
199
|
+
separator: tn
|
|
129
200
|
};
|
|
130
|
-
function
|
|
131
|
-
return /* @__PURE__ */ l("nav", { "aria-label": "breadcrumb", className: g(
|
|
201
|
+
function sc({ items: e, separator: t = "/", className: n }) {
|
|
202
|
+
return /* @__PURE__ */ l("nav", { "aria-label": "breadcrumb", className: g(ie.nav, n), children: e.map((r, s) => {
|
|
132
203
|
const o = s === e.length - 1, i = !o && (r.href || r.onClick);
|
|
133
|
-
return /* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */ l("span", { className:
|
|
204
|
+
return /* @__PURE__ */ y(We, { children: [
|
|
205
|
+
/* @__PURE__ */ l("span", { className: ie.item, children: i ? /* @__PURE__ */ l(
|
|
135
206
|
"a",
|
|
136
207
|
{
|
|
137
208
|
href: r.href,
|
|
138
209
|
onClick: (c) => {
|
|
139
210
|
r.onClick && (c.preventDefault(), r.onClick());
|
|
140
211
|
},
|
|
141
|
-
className:
|
|
212
|
+
className: ie.link,
|
|
142
213
|
children: r.label
|
|
143
214
|
}
|
|
144
215
|
) : /* @__PURE__ */ l(
|
|
145
216
|
"span",
|
|
146
217
|
{
|
|
147
218
|
"aria-current": o ? "page" : void 0,
|
|
148
|
-
className: o ?
|
|
219
|
+
className: o ? ie.current : void 0,
|
|
149
220
|
children: r.label
|
|
150
221
|
}
|
|
151
222
|
) }),
|
|
152
|
-
!o && /* @__PURE__ */ l("span", { className:
|
|
223
|
+
!o && /* @__PURE__ */ l("span", { className: ie.separator, "aria-hidden": !0, children: t })
|
|
153
224
|
] }, s);
|
|
154
225
|
}) });
|
|
155
226
|
}
|
|
156
|
-
const
|
|
157
|
-
button:
|
|
158
|
-
primary:
|
|
159
|
-
secondary:
|
|
160
|
-
danger:
|
|
161
|
-
success:
|
|
162
|
-
ghost:
|
|
163
|
-
soft:
|
|
164
|
-
outline:
|
|
165
|
-
link:
|
|
166
|
-
xs:
|
|
167
|
-
sm:
|
|
168
|
-
md:
|
|
169
|
-
lg:
|
|
170
|
-
xl:
|
|
171
|
-
iconOnly:
|
|
172
|
-
pill:
|
|
173
|
-
fullWidth:
|
|
174
|
-
loading:
|
|
175
|
-
hiddenText:
|
|
176
|
-
spinner:
|
|
177
|
-
tempestSpin:
|
|
227
|
+
const nn = "tempest_button_2ZuB7", rn = "tempest_primary_s1sM6", sn = "tempest_secondary_R0waJ", on = "tempest_danger_V4fX8", an = "tempest_success_w6qB6", cn = "tempest_ghost_1KINV", ln = "tempest_soft_c3kzm", un = "tempest_outline_F5jq-", dn = "tempest_link_Zt5hw", pn = "tempest_xs_cF6m0", fn = "tempest_sm_NhG0g", mn = "tempest_md_hH4h3", hn = "tempest_lg_2plQf", _n = "tempest_xl_nx4V0", gn = "tempest_iconOnly_WCpTS", yn = "tempest_pill_lx8lt", bn = "tempest_fullWidth_36oJT", wn = "tempest_loading_EQAt2", vn = "tempest_hiddenText_hIiJ2", $n = "tempest_spinner_ZExvW", Nn = "tempest_tempest-spin_UOSVC", U = {
|
|
228
|
+
button: nn,
|
|
229
|
+
primary: rn,
|
|
230
|
+
secondary: sn,
|
|
231
|
+
danger: on,
|
|
232
|
+
success: an,
|
|
233
|
+
ghost: cn,
|
|
234
|
+
soft: ln,
|
|
235
|
+
outline: un,
|
|
236
|
+
link: dn,
|
|
237
|
+
xs: pn,
|
|
238
|
+
sm: fn,
|
|
239
|
+
md: mn,
|
|
240
|
+
lg: hn,
|
|
241
|
+
xl: _n,
|
|
242
|
+
iconOnly: gn,
|
|
243
|
+
pill: yn,
|
|
244
|
+
fullWidth: bn,
|
|
245
|
+
loading: wn,
|
|
246
|
+
hiddenText: vn,
|
|
247
|
+
spinner: $n,
|
|
248
|
+
tempestSpin: Nn
|
|
178
249
|
};
|
|
179
|
-
function
|
|
250
|
+
function ke({
|
|
180
251
|
variant: e = "primary",
|
|
181
252
|
size: t = "md",
|
|
182
253
|
loading: n = !1,
|
|
@@ -190,24 +261,24 @@ function $e({
|
|
|
190
261
|
children: d,
|
|
191
262
|
...p
|
|
192
263
|
}) {
|
|
193
|
-
return /* @__PURE__ */
|
|
264
|
+
return /* @__PURE__ */ y(
|
|
194
265
|
"button",
|
|
195
266
|
{
|
|
196
267
|
className: g(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
s &&
|
|
201
|
-
o &&
|
|
202
|
-
n &&
|
|
203
|
-
r &&
|
|
268
|
+
U.button,
|
|
269
|
+
U[e],
|
|
270
|
+
U[t],
|
|
271
|
+
s && U.iconOnly,
|
|
272
|
+
o && U.pill,
|
|
273
|
+
n && U.loading,
|
|
274
|
+
r && U.fullWidth,
|
|
204
275
|
u
|
|
205
276
|
),
|
|
206
277
|
disabled: a || n,
|
|
207
278
|
...p,
|
|
208
279
|
children: [
|
|
209
|
-
n && /* @__PURE__ */ l("span", { className:
|
|
210
|
-
/* @__PURE__ */
|
|
280
|
+
n && /* @__PURE__ */ l("span", { className: U.spinner, "aria-hidden": !0, children: /* @__PURE__ */ l(kn, {}) }),
|
|
281
|
+
/* @__PURE__ */ y("span", { className: g(n && U.hiddenText), children: [
|
|
211
282
|
i,
|
|
212
283
|
d,
|
|
213
284
|
c
|
|
@@ -216,7 +287,7 @@ function $e({
|
|
|
216
287
|
}
|
|
217
288
|
);
|
|
218
289
|
}
|
|
219
|
-
function
|
|
290
|
+
function kn() {
|
|
220
291
|
return /* @__PURE__ */ l(
|
|
221
292
|
"svg",
|
|
222
293
|
{
|
|
@@ -237,20 +308,20 @@ function an() {
|
|
|
237
308
|
}
|
|
238
309
|
);
|
|
239
310
|
}
|
|
240
|
-
const
|
|
241
|
-
card:
|
|
242
|
-
flat:
|
|
243
|
-
raised:
|
|
244
|
-
elevated:
|
|
245
|
-
interactive:
|
|
246
|
-
padded:
|
|
247
|
-
flush:
|
|
248
|
-
header:
|
|
249
|
-
title:
|
|
250
|
-
body:
|
|
251
|
-
footer:
|
|
311
|
+
const xn = "tempest_card_Cb1o4", Sn = "tempest_flat_LRpce", En = "tempest_raised_WmIqk", Tn = "tempest_elevated_5VEDw", Cn = "tempest_interactive_B8Tah", Ln = "tempest_padded_oOxwN", In = "tempest_flush_aiDZi", Dn = "tempest_header_PTXf2", Mn = "tempest_title_mSgoo", Pn = "tempest_body_W441Z", An = "tempest_footer_Mu-JC", R = {
|
|
312
|
+
card: xn,
|
|
313
|
+
flat: Sn,
|
|
314
|
+
raised: En,
|
|
315
|
+
elevated: Tn,
|
|
316
|
+
interactive: Cn,
|
|
317
|
+
padded: Ln,
|
|
318
|
+
flush: In,
|
|
319
|
+
header: Dn,
|
|
320
|
+
title: Mn,
|
|
321
|
+
body: Pn,
|
|
322
|
+
footer: An
|
|
252
323
|
};
|
|
253
|
-
function
|
|
324
|
+
function oc({
|
|
254
325
|
title: e,
|
|
255
326
|
actions: t,
|
|
256
327
|
footer: n,
|
|
@@ -262,7 +333,7 @@ function Ta({
|
|
|
262
333
|
...a
|
|
263
334
|
}) {
|
|
264
335
|
const u = !!(e || t);
|
|
265
|
-
return /* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ y(
|
|
266
337
|
"div",
|
|
267
338
|
{
|
|
268
339
|
className: g(
|
|
@@ -278,7 +349,7 @@ function Ta({
|
|
|
278
349
|
tabIndex: s ? a.tabIndex ?? 0 : a.tabIndex,
|
|
279
350
|
...a,
|
|
280
351
|
children: [
|
|
281
|
-
u && /* @__PURE__ */
|
|
352
|
+
u && /* @__PURE__ */ y("header", { className: R.header, children: [
|
|
282
353
|
typeof e == "string" ? /* @__PURE__ */ l("h3", { className: R.title, children: e }) : e,
|
|
283
354
|
t
|
|
284
355
|
] }),
|
|
@@ -288,15 +359,15 @@ function Ta({
|
|
|
288
359
|
}
|
|
289
360
|
);
|
|
290
361
|
}
|
|
291
|
-
const
|
|
292
|
-
wrapper:
|
|
293
|
-
disabled:
|
|
294
|
-
input:
|
|
295
|
-
box:
|
|
296
|
-
labelWrap:
|
|
297
|
-
label:
|
|
298
|
-
description:
|
|
299
|
-
},
|
|
362
|
+
const Fn = "tempest_wrapper_rpthW", Rn = "tempest_disabled_x7-eg", On = "tempest_input_2kt-h", Wn = "tempest_box_OCPee", Bn = "tempest_labelWrap_Ktbp0", zn = "tempest_label_cwRtI", jn = "tempest_description_rMhG1", Y = {
|
|
363
|
+
wrapper: Fn,
|
|
364
|
+
disabled: Rn,
|
|
365
|
+
input: On,
|
|
366
|
+
box: Wn,
|
|
367
|
+
labelWrap: Bn,
|
|
368
|
+
label: zn,
|
|
369
|
+
description: jn
|
|
370
|
+
}, ic = B(function({ label: t, description: n, indeterminate: r, disabled: s, wrapperClassName: o, className: i, ...c }, a) {
|
|
300
371
|
const u = E(null);
|
|
301
372
|
k(() => {
|
|
302
373
|
u.current && (u.current.indeterminate = !!r);
|
|
@@ -304,25 +375,25 @@ const wn = "tempest_wrapper_rpthW", bn = "tempest_disabled_x7-eg", vn = "tempest
|
|
|
304
375
|
function d(p) {
|
|
305
376
|
u.current = p, typeof a == "function" ? a(p) : a && (a.current = p);
|
|
306
377
|
}
|
|
307
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ y("label", { className: g(Y.wrapper, s && Y.disabled, o), children: [
|
|
308
379
|
/* @__PURE__ */ l(
|
|
309
380
|
"input",
|
|
310
381
|
{
|
|
311
382
|
ref: d,
|
|
312
383
|
type: "checkbox",
|
|
313
384
|
disabled: s,
|
|
314
|
-
className: g(
|
|
385
|
+
className: g(Y.input, i),
|
|
315
386
|
...c
|
|
316
387
|
}
|
|
317
388
|
),
|
|
318
|
-
/* @__PURE__ */ l("span", { className:
|
|
319
|
-
(t || n) && /* @__PURE__ */
|
|
320
|
-
t && /* @__PURE__ */ l("span", { className:
|
|
321
|
-
n && /* @__PURE__ */ l("span", { className:
|
|
389
|
+
/* @__PURE__ */ l("span", { className: Y.box, "aria-hidden": !0, children: r ? /* @__PURE__ */ l(qn, {}) : /* @__PURE__ */ l(Un, {}) }),
|
|
390
|
+
(t || n) && /* @__PURE__ */ y("span", { className: Y.labelWrap, children: [
|
|
391
|
+
t && /* @__PURE__ */ l("span", { className: Y.label, children: t }),
|
|
392
|
+
n && /* @__PURE__ */ l("span", { className: Y.description, children: n })
|
|
322
393
|
] })
|
|
323
394
|
] });
|
|
324
395
|
});
|
|
325
|
-
function
|
|
396
|
+
function Un() {
|
|
326
397
|
return /* @__PURE__ */ l("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
327
398
|
"path",
|
|
328
399
|
{
|
|
@@ -334,21 +405,21 @@ function Sn() {
|
|
|
334
405
|
}
|
|
335
406
|
) });
|
|
336
407
|
}
|
|
337
|
-
function
|
|
408
|
+
function qn() {
|
|
338
409
|
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" }) });
|
|
339
410
|
}
|
|
340
|
-
const
|
|
341
|
-
wrapper:
|
|
342
|
-
label:
|
|
343
|
-
field:
|
|
344
|
-
error:
|
|
345
|
-
chip:
|
|
346
|
-
remove:
|
|
347
|
-
input:
|
|
348
|
-
helper:
|
|
349
|
-
errorText:
|
|
411
|
+
const Jn = "tempest_wrapper_KR4-F", Gn = "tempest_label_Mz-wX", Hn = "tempest_field_iIBJw", Kn = "tempest_error_O9n-9", Vn = "tempest_chip_GEwrc", Qn = "tempest_remove_JYDIq", Zn = "tempest_input_frJmk", Yn = "tempest_helper_Yts53", Xn = "tempest_errorText_llJGq", q = {
|
|
412
|
+
wrapper: Jn,
|
|
413
|
+
label: Gn,
|
|
414
|
+
field: Hn,
|
|
415
|
+
error: Kn,
|
|
416
|
+
chip: Vn,
|
|
417
|
+
remove: Qn,
|
|
418
|
+
input: Zn,
|
|
419
|
+
helper: Yn,
|
|
420
|
+
errorText: Xn
|
|
350
421
|
};
|
|
351
|
-
function
|
|
422
|
+
function ac({
|
|
352
423
|
value: e,
|
|
353
424
|
onChange: t,
|
|
354
425
|
label: n,
|
|
@@ -378,30 +449,30 @@ function La({
|
|
|
378
449
|
m.key === "Backspace" && !u && e.length > 0 && t(e.slice(0, -1));
|
|
379
450
|
}
|
|
380
451
|
function _(m) {
|
|
381
|
-
const
|
|
382
|
-
|
|
452
|
+
const w = e.slice();
|
|
453
|
+
w.splice(m, 1), t(w);
|
|
383
454
|
}
|
|
384
|
-
return /* @__PURE__ */
|
|
385
|
-
n && /* @__PURE__ */ l("label", { className:
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
e.map((m,
|
|
455
|
+
return /* @__PURE__ */ y("div", { className: g(q.wrapper, o && q.error, a), children: [
|
|
456
|
+
n && /* @__PURE__ */ l("label", { className: q.label, children: n }),
|
|
457
|
+
/* @__PURE__ */ y("div", { className: q.field, onClick: () => p.current?.focus(), children: [
|
|
458
|
+
e.map((m, w) => /* @__PURE__ */ y("span", { className: q.chip, children: [
|
|
388
459
|
m,
|
|
389
460
|
/* @__PURE__ */ l(
|
|
390
461
|
"button",
|
|
391
462
|
{
|
|
392
463
|
type: "button",
|
|
393
|
-
className:
|
|
464
|
+
className: q.remove,
|
|
394
465
|
"aria-label": `Remover ${m}`,
|
|
395
|
-
onClick: () => _(
|
|
466
|
+
onClick: () => _(w),
|
|
396
467
|
children: "×"
|
|
397
468
|
}
|
|
398
469
|
)
|
|
399
|
-
] }, `${m}-${
|
|
470
|
+
] }, `${m}-${w}`)),
|
|
400
471
|
/* @__PURE__ */ l(
|
|
401
472
|
"input",
|
|
402
473
|
{
|
|
403
474
|
ref: p,
|
|
404
|
-
className:
|
|
475
|
+
className: q.input,
|
|
405
476
|
value: u,
|
|
406
477
|
placeholder: e.length === 0 ? r : "",
|
|
407
478
|
onChange: (m) => d(m.target.value),
|
|
@@ -410,25 +481,25 @@ function La({
|
|
|
410
481
|
}
|
|
411
482
|
)
|
|
412
483
|
] }),
|
|
413
|
-
o ? /* @__PURE__ */ l("span", { className:
|
|
484
|
+
o ? /* @__PURE__ */ l("span", { className: q.errorText, children: o }) : s ? /* @__PURE__ */ l("span", { className: q.helper, children: s }) : null
|
|
414
485
|
] });
|
|
415
486
|
}
|
|
416
|
-
const
|
|
417
|
-
overlay:
|
|
418
|
-
tempestFadeIn:
|
|
419
|
-
dialog:
|
|
420
|
-
tempestModalIn:
|
|
421
|
-
sm:
|
|
422
|
-
md:
|
|
423
|
-
lg:
|
|
424
|
-
xl:
|
|
425
|
-
header:
|
|
426
|
-
title:
|
|
427
|
-
close:
|
|
428
|
-
body:
|
|
429
|
-
footer:
|
|
487
|
+
const er = "tempest_overlay_dd9h1", tr = "tempest_tempest-fade-in_DvgSp", nr = "tempest_dialog_ptM-K", rr = "tempest_tempest-modal-in_UoxQC", sr = "tempest_sm_K5k3W", or = "tempest_md_gvyR7", ir = "tempest_lg_BgB1a", ar = "tempest_xl_MR-68", cr = "tempest_header_ILG9i", lr = "tempest_title_A5OeE", ur = "tempest_close_-ER1C", dr = "tempest_body_lVhql", pr = "tempest_footer_rro2w", K = {
|
|
488
|
+
overlay: er,
|
|
489
|
+
tempestFadeIn: tr,
|
|
490
|
+
dialog: nr,
|
|
491
|
+
tempestModalIn: rr,
|
|
492
|
+
sm: sr,
|
|
493
|
+
md: or,
|
|
494
|
+
lg: ir,
|
|
495
|
+
xl: ar,
|
|
496
|
+
header: cr,
|
|
497
|
+
title: lr,
|
|
498
|
+
close: ur,
|
|
499
|
+
body: dr,
|
|
500
|
+
footer: pr
|
|
430
501
|
};
|
|
431
|
-
function
|
|
502
|
+
function fr({
|
|
432
503
|
open: e,
|
|
433
504
|
onClose: t,
|
|
434
505
|
title: n,
|
|
@@ -450,38 +521,38 @@ function Qn({
|
|
|
450
521
|
return window.addEventListener("keydown", p), () => {
|
|
451
522
|
document.body.style.overflow = d, window.removeEventListener("keydown", p);
|
|
452
523
|
};
|
|
453
|
-
}, [e, c, t]), !e || typeof document > "u" ? null :
|
|
524
|
+
}, [e, c, t]), !e || typeof document > "u" ? null : Ee(
|
|
454
525
|
/* @__PURE__ */ l(
|
|
455
526
|
"div",
|
|
456
527
|
{
|
|
457
|
-
className:
|
|
528
|
+
className: K.overlay,
|
|
458
529
|
role: "presentation",
|
|
459
530
|
onClick: () => {
|
|
460
531
|
i && t();
|
|
461
532
|
},
|
|
462
|
-
children: /* @__PURE__ */
|
|
533
|
+
children: /* @__PURE__ */ y(
|
|
463
534
|
"div",
|
|
464
535
|
{
|
|
465
536
|
role: "dialog",
|
|
466
537
|
"aria-modal": "true",
|
|
467
|
-
className: g(
|
|
538
|
+
className: g(K.dialog, K[o], a),
|
|
468
539
|
onClick: (d) => d.stopPropagation(),
|
|
469
540
|
children: [
|
|
470
|
-
(n || !u) && /* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */ l("h3", { className:
|
|
541
|
+
(n || !u) && /* @__PURE__ */ y("header", { className: K.header, children: [
|
|
542
|
+
/* @__PURE__ */ l("h3", { className: K.title, children: n }),
|
|
472
543
|
!u && /* @__PURE__ */ l(
|
|
473
544
|
"button",
|
|
474
545
|
{
|
|
475
546
|
type: "button",
|
|
476
|
-
className:
|
|
547
|
+
className: K.close,
|
|
477
548
|
"aria-label": "Fechar",
|
|
478
549
|
onClick: t,
|
|
479
|
-
children: /* @__PURE__ */ l(
|
|
550
|
+
children: /* @__PURE__ */ l(mr, {})
|
|
480
551
|
}
|
|
481
552
|
)
|
|
482
553
|
] }),
|
|
483
|
-
/* @__PURE__ */ l("div", { className:
|
|
484
|
-
s && /* @__PURE__ */ l("footer", { className:
|
|
554
|
+
/* @__PURE__ */ l("div", { className: K.body, children: r }),
|
|
555
|
+
s && /* @__PURE__ */ l("footer", { className: K.footer, children: s })
|
|
485
556
|
]
|
|
486
557
|
}
|
|
487
558
|
)
|
|
@@ -490,7 +561,7 @@ function Qn({
|
|
|
490
561
|
document.body
|
|
491
562
|
);
|
|
492
563
|
}
|
|
493
|
-
function
|
|
564
|
+
function mr() {
|
|
494
565
|
return /* @__PURE__ */ l("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
495
566
|
"path",
|
|
496
567
|
{
|
|
@@ -501,7 +572,7 @@ function Yn() {
|
|
|
501
572
|
}
|
|
502
573
|
) });
|
|
503
574
|
}
|
|
504
|
-
function
|
|
575
|
+
function cc({
|
|
505
576
|
open: e,
|
|
506
577
|
title: t,
|
|
507
578
|
description: n,
|
|
@@ -513,15 +584,15 @@ function Ia({
|
|
|
513
584
|
onCancel: a
|
|
514
585
|
}) {
|
|
515
586
|
return /* @__PURE__ */ l(
|
|
516
|
-
|
|
587
|
+
fr,
|
|
517
588
|
{
|
|
518
589
|
open: e,
|
|
519
590
|
onClose: a,
|
|
520
591
|
title: t,
|
|
521
592
|
size: "sm",
|
|
522
|
-
footer: /* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */ l(
|
|
524
|
-
/* @__PURE__ */ l(
|
|
593
|
+
footer: /* @__PURE__ */ y(Se, { children: [
|
|
594
|
+
/* @__PURE__ */ l(ke, { variant: "secondary", onClick: a, disabled: i, children: s }),
|
|
595
|
+
/* @__PURE__ */ l(ke, { variant: o, loading: i, onClick: () => {
|
|
525
596
|
c();
|
|
526
597
|
}, children: r })
|
|
527
598
|
] }),
|
|
@@ -529,23 +600,23 @@ function Ia({
|
|
|
529
600
|
}
|
|
530
601
|
);
|
|
531
602
|
}
|
|
532
|
-
const
|
|
533
|
-
wrapper:
|
|
534
|
-
label:
|
|
535
|
-
required:
|
|
536
|
-
field:
|
|
537
|
-
input:
|
|
538
|
-
sizeSm:
|
|
539
|
-
sizeMd:
|
|
540
|
-
sizeLg:
|
|
541
|
-
hasLeftIcon:
|
|
542
|
-
hasRightIcon:
|
|
543
|
-
iconLeft:
|
|
544
|
-
iconRight:
|
|
545
|
-
error:
|
|
546
|
-
helper:
|
|
547
|
-
errorText:
|
|
548
|
-
},
|
|
603
|
+
const hr = "tempest_wrapper_iHNUs", _r = "tempest_label_-OEBL", gr = "tempest_required_CTss-", yr = "tempest_field_65yGJ", br = "tempest_input_WjT81", wr = "tempest_sizeSm_cgds6", vr = "tempest_sizeMd_EPFGy", $r = "tempest_sizeLg_5Cq8k", Nr = "tempest_hasLeftIcon_xYO-v", kr = "tempest_hasRightIcon_C7uyr", xr = "tempest_iconLeft_KrUhI", Sr = "tempest_iconRight_Ssr47", Er = "tempest_error_VLISa", Tr = "tempest_helper_7Vc-s", Cr = "tempest_errorText_xz4xS", C = {
|
|
604
|
+
wrapper: hr,
|
|
605
|
+
label: _r,
|
|
606
|
+
required: gr,
|
|
607
|
+
field: yr,
|
|
608
|
+
input: br,
|
|
609
|
+
sizeSm: wr,
|
|
610
|
+
sizeMd: vr,
|
|
611
|
+
sizeLg: $r,
|
|
612
|
+
hasLeftIcon: Nr,
|
|
613
|
+
hasRightIcon: kr,
|
|
614
|
+
iconLeft: xr,
|
|
615
|
+
iconRight: Sr,
|
|
616
|
+
error: Er,
|
|
617
|
+
helper: Tr,
|
|
618
|
+
errorText: Cr
|
|
619
|
+
}, Te = B(function({
|
|
549
620
|
label: t,
|
|
550
621
|
helperText: n,
|
|
551
622
|
error: r,
|
|
@@ -558,13 +629,13 @@ const Zn = "tempest_wrapper_iHNUs", Xn = "tempest_label_-OEBL", er = "tempest_re
|
|
|
558
629
|
size: d = "md",
|
|
559
630
|
...p
|
|
560
631
|
}, f) {
|
|
561
|
-
const h =
|
|
562
|
-
return /* @__PURE__ */
|
|
563
|
-
t && /* @__PURE__ */
|
|
632
|
+
const h = ue(), _ = a ?? h, m = r ? `${_}-error` : n ? `${_}-helper` : void 0, w = d === "sm" ? C.sizeSm : d === "lg" ? C.sizeLg : C.sizeMd;
|
|
633
|
+
return /* @__PURE__ */ y("div", { className: g(C.wrapper, r && C.error, i), children: [
|
|
634
|
+
t && /* @__PURE__ */ y("label", { htmlFor: _, className: C.label, children: [
|
|
564
635
|
t,
|
|
565
636
|
u && /* @__PURE__ */ l("span", { className: C.required, children: "*" })
|
|
566
637
|
] }),
|
|
567
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ y("div", { className: C.field, children: [
|
|
568
639
|
s && /* @__PURE__ */ l("span", { className: C.iconLeft, children: s }),
|
|
569
640
|
/* @__PURE__ */ l(
|
|
570
641
|
"input",
|
|
@@ -576,7 +647,7 @@ const Zn = "tempest_wrapper_iHNUs", Xn = "tempest_label_-OEBL", er = "tempest_re
|
|
|
576
647
|
required: u,
|
|
577
648
|
className: g(
|
|
578
649
|
C.input,
|
|
579
|
-
|
|
650
|
+
w,
|
|
580
651
|
s && C.hasLeftIcon,
|
|
581
652
|
o && C.hasRightIcon,
|
|
582
653
|
c
|
|
@@ -588,9 +659,9 @@ const Zn = "tempest_wrapper_iHNUs", Xn = "tempest_label_-OEBL", er = "tempest_re
|
|
|
588
659
|
] }),
|
|
589
660
|
r ? /* @__PURE__ */ l("span", { id: `${_}-error`, className: C.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { id: `${_}-helper`, className: C.helper, children: n }) : null
|
|
590
661
|
] });
|
|
591
|
-
}),
|
|
662
|
+
}), lc = B(function({ value: t, onChange: n, mode: r = "date", ...s }, o) {
|
|
592
663
|
return /* @__PURE__ */ l(
|
|
593
|
-
|
|
664
|
+
Te,
|
|
594
665
|
{
|
|
595
666
|
...s,
|
|
596
667
|
ref: o,
|
|
@@ -599,25 +670,84 @@ const Zn = "tempest_wrapper_iHNUs", Xn = "tempest_label_-OEBL", er = "tempest_re
|
|
|
599
670
|
onChange: (i) => n(i.target.value)
|
|
600
671
|
}
|
|
601
672
|
);
|
|
602
|
-
}),
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
top: br,
|
|
611
|
-
tempestDrawerInTop: vr,
|
|
612
|
-
bottom: $r,
|
|
613
|
-
tempestDrawerInBottom: Nr,
|
|
614
|
-
header: kr,
|
|
615
|
-
title: xr,
|
|
616
|
-
close: Sr,
|
|
617
|
-
body: Er,
|
|
618
|
-
footer: Tr
|
|
673
|
+
}), Lr = "tempest_divider_KSGsi", Ir = "tempest_horizontal_pZ05Y", Dr = "tempest_bare_elDbS", Mr = "tempest_vertical_p-jD4", Pr = "tempest_dashed_JWxCU", Ar = "tempest_alignStart_QAIi1", Fr = "tempest_alignEnd_eZDwa", A = {
|
|
674
|
+
divider: Lr,
|
|
675
|
+
horizontal: Ir,
|
|
676
|
+
bare: Dr,
|
|
677
|
+
vertical: Mr,
|
|
678
|
+
dashed: Pr,
|
|
679
|
+
alignStart: Ar,
|
|
680
|
+
alignEnd: Fr
|
|
619
681
|
};
|
|
620
|
-
function
|
|
682
|
+
function uc({
|
|
683
|
+
orientation: e = "horizontal",
|
|
684
|
+
variant: t = "solid",
|
|
685
|
+
label: n,
|
|
686
|
+
align: r = "center",
|
|
687
|
+
className: s,
|
|
688
|
+
...o
|
|
689
|
+
}) {
|
|
690
|
+
return e === "vertical" ? /* @__PURE__ */ l(
|
|
691
|
+
"span",
|
|
692
|
+
{
|
|
693
|
+
role: "separator",
|
|
694
|
+
"aria-orientation": "vertical",
|
|
695
|
+
className: g(
|
|
696
|
+
A.divider,
|
|
697
|
+
A.vertical,
|
|
698
|
+
t === "dashed" && A.dashed,
|
|
699
|
+
s
|
|
700
|
+
),
|
|
701
|
+
...o
|
|
702
|
+
}
|
|
703
|
+
) : n ? /* @__PURE__ */ l(
|
|
704
|
+
"div",
|
|
705
|
+
{
|
|
706
|
+
role: "separator",
|
|
707
|
+
"aria-orientation": "horizontal",
|
|
708
|
+
className: g(
|
|
709
|
+
A.divider,
|
|
710
|
+
A.horizontal,
|
|
711
|
+
t === "dashed" && A.dashed,
|
|
712
|
+
r === "start" && A.alignStart,
|
|
713
|
+
r === "end" && A.alignEnd,
|
|
714
|
+
s
|
|
715
|
+
),
|
|
716
|
+
...o,
|
|
717
|
+
children: n
|
|
718
|
+
}
|
|
719
|
+
) : /* @__PURE__ */ l(
|
|
720
|
+
"hr",
|
|
721
|
+
{
|
|
722
|
+
className: g(
|
|
723
|
+
A.divider,
|
|
724
|
+
A.horizontal,
|
|
725
|
+
A.bare,
|
|
726
|
+
t === "dashed" && A.dashed,
|
|
727
|
+
s
|
|
728
|
+
)
|
|
729
|
+
}
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
const Rr = "tempest_overlay_hcG1G", Or = "tempest_tempest-drawer-overlay_XFbxY", Wr = "tempest_panel_wUX0N", Br = "tempest_right_-oX-6", zr = "tempest_tempest-drawer-in-right_pWYHv", jr = "tempest_left_xi3nD", Ur = "tempest_tempest-drawer-in-left_o7JSb", qr = "tempest_top_7rGCn", Jr = "tempest_tempest-drawer-in-top_kn6AF", Gr = "tempest_bottom_zd-25", Hr = "tempest_tempest-drawer-in-bottom_0x3u7", Kr = "tempest_header_sYoP1", Vr = "tempest_title_LqUOu", Qr = "tempest_close_tYPhU", Zr = "tempest_body_aV9FG", Yr = "tempest_footer_AuvUP", V = {
|
|
733
|
+
overlay: Rr,
|
|
734
|
+
tempestDrawerOverlay: Or,
|
|
735
|
+
panel: Wr,
|
|
736
|
+
right: Br,
|
|
737
|
+
tempestDrawerInRight: zr,
|
|
738
|
+
left: jr,
|
|
739
|
+
tempestDrawerInLeft: Ur,
|
|
740
|
+
top: qr,
|
|
741
|
+
tempestDrawerInTop: Jr,
|
|
742
|
+
bottom: Gr,
|
|
743
|
+
tempestDrawerInBottom: Hr,
|
|
744
|
+
header: Kr,
|
|
745
|
+
title: Vr,
|
|
746
|
+
close: Qr,
|
|
747
|
+
body: Zr,
|
|
748
|
+
footer: Yr
|
|
749
|
+
};
|
|
750
|
+
function dc({
|
|
621
751
|
open: e,
|
|
622
752
|
onClose: t,
|
|
623
753
|
placement: n = "right",
|
|
@@ -639,39 +769,39 @@ function Ma({
|
|
|
639
769
|
return window.addEventListener("keydown", p), () => {
|
|
640
770
|
document.body.style.overflow = d, window.removeEventListener("keydown", p);
|
|
641
771
|
};
|
|
642
|
-
}, [e, c, t]), !e || typeof document > "u" ? null :
|
|
643
|
-
/* @__PURE__ */
|
|
772
|
+
}, [e, c, t]), !e || typeof document > "u" ? null : Ee(
|
|
773
|
+
/* @__PURE__ */ y(Se, { children: [
|
|
644
774
|
/* @__PURE__ */ l(
|
|
645
775
|
"div",
|
|
646
776
|
{
|
|
647
|
-
className:
|
|
777
|
+
className: V.overlay,
|
|
648
778
|
onClick: () => {
|
|
649
779
|
i && t();
|
|
650
780
|
}
|
|
651
781
|
}
|
|
652
782
|
),
|
|
653
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ y(
|
|
654
784
|
"aside",
|
|
655
785
|
{
|
|
656
786
|
role: "dialog",
|
|
657
787
|
"aria-modal": "true",
|
|
658
|
-
className: g(
|
|
788
|
+
className: g(V.panel, V[n], u),
|
|
659
789
|
children: [
|
|
660
|
-
(r || !a) && /* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */ l("h3", { className:
|
|
790
|
+
(r || !a) && /* @__PURE__ */ y("header", { className: V.header, children: [
|
|
791
|
+
/* @__PURE__ */ l("h3", { className: V.title, children: r }),
|
|
662
792
|
!a && /* @__PURE__ */ l(
|
|
663
793
|
"button",
|
|
664
794
|
{
|
|
665
795
|
type: "button",
|
|
666
796
|
"aria-label": "Fechar",
|
|
667
|
-
className:
|
|
797
|
+
className: V.close,
|
|
668
798
|
onClick: t,
|
|
669
|
-
children: /* @__PURE__ */ l(
|
|
799
|
+
children: /* @__PURE__ */ l(Xr, {})
|
|
670
800
|
}
|
|
671
801
|
)
|
|
672
802
|
] }),
|
|
673
|
-
/* @__PURE__ */ l("div", { className:
|
|
674
|
-
o && /* @__PURE__ */ l("footer", { className:
|
|
803
|
+
/* @__PURE__ */ l("div", { className: V.body, children: s }),
|
|
804
|
+
o && /* @__PURE__ */ l("footer", { className: V.footer, children: o })
|
|
675
805
|
]
|
|
676
806
|
}
|
|
677
807
|
)
|
|
@@ -679,7 +809,7 @@ function Ma({
|
|
|
679
809
|
document.body
|
|
680
810
|
);
|
|
681
811
|
}
|
|
682
|
-
function
|
|
812
|
+
function Xr() {
|
|
683
813
|
return /* @__PURE__ */ l("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
684
814
|
"path",
|
|
685
815
|
{
|
|
@@ -690,29 +820,29 @@ function Cr() {
|
|
|
690
820
|
}
|
|
691
821
|
) });
|
|
692
822
|
}
|
|
693
|
-
const
|
|
694
|
-
wrapper:
|
|
695
|
-
icon:
|
|
696
|
-
title:
|
|
697
|
-
description:
|
|
698
|
-
action:
|
|
823
|
+
const es = "tempest_wrapper_gzyTd", ts = "tempest_icon_qVCyh", ns = "tempest_title_xPfUf", rs = "tempest_description_oWwH1", ss = "tempest_action_dqxw1", ae = {
|
|
824
|
+
wrapper: es,
|
|
825
|
+
icon: ts,
|
|
826
|
+
title: ns,
|
|
827
|
+
description: rs,
|
|
828
|
+
action: ss
|
|
699
829
|
};
|
|
700
|
-
function
|
|
701
|
-
return /* @__PURE__ */
|
|
702
|
-
e && /* @__PURE__ */ l("div", { className:
|
|
703
|
-
/* @__PURE__ */ l("h4", { className:
|
|
704
|
-
n && /* @__PURE__ */ l("p", { className:
|
|
705
|
-
r && /* @__PURE__ */ l("div", { className:
|
|
830
|
+
function pc({ icon: e, title: t, description: n, action: r, className: s }) {
|
|
831
|
+
return /* @__PURE__ */ y("div", { className: g(ae.wrapper, s), children: [
|
|
832
|
+
e && /* @__PURE__ */ l("div", { className: ae.icon, children: e }),
|
|
833
|
+
/* @__PURE__ */ l("h4", { className: ae.title, children: t }),
|
|
834
|
+
n && /* @__PURE__ */ l("p", { className: ae.description, children: n }),
|
|
835
|
+
r && /* @__PURE__ */ l("div", { className: ae.action, children: r })
|
|
706
836
|
] });
|
|
707
837
|
}
|
|
708
|
-
const
|
|
709
|
-
wrapper:
|
|
710
|
-
icon:
|
|
711
|
-
title:
|
|
712
|
-
description:
|
|
713
|
-
action:
|
|
838
|
+
const os = "tempest_wrapper_luRyF", is = "tempest_icon_dEdBl", as = "tempest_title_StutD", cs = "tempest_description_A2XCb", ls = "tempest_action_vm1LC", ce = {
|
|
839
|
+
wrapper: os,
|
|
840
|
+
icon: is,
|
|
841
|
+
title: as,
|
|
842
|
+
description: cs,
|
|
843
|
+
action: ls
|
|
714
844
|
};
|
|
715
|
-
function
|
|
845
|
+
function fc({
|
|
716
846
|
title: e = "Algo deu errado",
|
|
717
847
|
description: t = "Não foi possível carregar essas informações.",
|
|
718
848
|
onRetry: n,
|
|
@@ -720,14 +850,14 @@ function Aa({
|
|
|
720
850
|
icon: s,
|
|
721
851
|
className: o
|
|
722
852
|
}) {
|
|
723
|
-
return /* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */ l("div", { className:
|
|
725
|
-
/* @__PURE__ */ l("h4", { className:
|
|
726
|
-
t && /* @__PURE__ */ l("p", { className:
|
|
727
|
-
n && /* @__PURE__ */ l("div", { className:
|
|
853
|
+
return /* @__PURE__ */ y("div", { className: g(ce.wrapper, o), children: [
|
|
854
|
+
/* @__PURE__ */ l("div", { className: ce.icon, children: s ?? /* @__PURE__ */ l(us, {}) }),
|
|
855
|
+
/* @__PURE__ */ l("h4", { className: ce.title, children: e }),
|
|
856
|
+
t && /* @__PURE__ */ l("p", { className: ce.description, children: t }),
|
|
857
|
+
n && /* @__PURE__ */ l("div", { className: ce.action, children: /* @__PURE__ */ l(ke, { variant: "secondary", onClick: n, children: r }) })
|
|
728
858
|
] });
|
|
729
859
|
}
|
|
730
|
-
function
|
|
860
|
+
function us() {
|
|
731
861
|
return /* @__PURE__ */ l("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
732
862
|
"path",
|
|
733
863
|
{
|
|
@@ -739,30 +869,30 @@ function Br() {
|
|
|
739
869
|
}
|
|
740
870
|
) });
|
|
741
871
|
}
|
|
742
|
-
const
|
|
743
|
-
wrapper:
|
|
744
|
-
label:
|
|
745
|
-
dropzone:
|
|
746
|
-
active:
|
|
747
|
-
disabled:
|
|
748
|
-
icon:
|
|
749
|
-
title:
|
|
750
|
-
subtitle:
|
|
751
|
-
files:
|
|
752
|
-
file:
|
|
753
|
-
fileMeta:
|
|
754
|
-
remove:
|
|
755
|
-
hidden:
|
|
872
|
+
const ds = "tempest_wrapper_E0qHs", ps = "tempest_label_lbMkx", fs = "tempest_dropzone_jqua0", ms = "tempest_active_CG9Uk", hs = "tempest_disabled_WNUUl", _s = "tempest_icon_i9fGH", gs = "tempest_title_bTVFl", ys = "tempest_subtitle_S54OV", bs = "tempest_files_WljYm", ws = "tempest_file_Lp-dR", vs = "tempest_fileMeta_LTnN2", $s = "tempest_remove_jskra", Ns = "tempest_hidden_ReEq6", M = {
|
|
873
|
+
wrapper: ds,
|
|
874
|
+
label: ps,
|
|
875
|
+
dropzone: fs,
|
|
876
|
+
active: ms,
|
|
877
|
+
disabled: hs,
|
|
878
|
+
icon: _s,
|
|
879
|
+
title: gs,
|
|
880
|
+
subtitle: ys,
|
|
881
|
+
files: bs,
|
|
882
|
+
file: ws,
|
|
883
|
+
fileMeta: vs,
|
|
884
|
+
remove: $s,
|
|
885
|
+
hidden: Ns
|
|
756
886
|
};
|
|
757
|
-
function
|
|
887
|
+
function ks(e) {
|
|
758
888
|
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1024 / 1024).toFixed(1)} MB`;
|
|
759
889
|
}
|
|
760
|
-
function
|
|
890
|
+
function xs(e, t) {
|
|
761
891
|
if (!t) return !0;
|
|
762
892
|
const n = t.split(",").map((o) => o.trim().toLowerCase()), r = e.name.toLowerCase(), s = e.type.toLowerCase();
|
|
763
893
|
return n.some((o) => o.startsWith(".") ? r.endsWith(o) : o.endsWith("/*") ? s.startsWith(o.replace("/*", "/")) : s === o);
|
|
764
894
|
}
|
|
765
|
-
function
|
|
895
|
+
function mc({
|
|
766
896
|
value: e,
|
|
767
897
|
onChange: t,
|
|
768
898
|
label: n,
|
|
@@ -776,10 +906,10 @@ function Ra({
|
|
|
776
906
|
className: d
|
|
777
907
|
}) {
|
|
778
908
|
const [p, f] = v(!1), h = E(null);
|
|
779
|
-
function _(
|
|
909
|
+
function _(b) {
|
|
780
910
|
const $ = [], N = [];
|
|
781
|
-
for (const D of Array.from(
|
|
782
|
-
if (!
|
|
911
|
+
for (const D of Array.from(b)) {
|
|
912
|
+
if (!xs(D, r)) {
|
|
783
913
|
N.push({ file: D, reason: "type" });
|
|
784
914
|
continue;
|
|
785
915
|
}
|
|
@@ -793,16 +923,16 @@ function Ra({
|
|
|
793
923
|
const L = s ? [...e, ...$] : $.slice(0, 1);
|
|
794
924
|
t(L);
|
|
795
925
|
}
|
|
796
|
-
function m(
|
|
797
|
-
|
|
926
|
+
function m(b) {
|
|
927
|
+
b.preventDefault(), f(!1), !c && b.dataTransfer?.files && _(b.dataTransfer.files);
|
|
798
928
|
}
|
|
799
|
-
function b
|
|
929
|
+
function w(b) {
|
|
800
930
|
const $ = e.slice();
|
|
801
|
-
$.splice(
|
|
931
|
+
$.splice(b, 1), t($);
|
|
802
932
|
}
|
|
803
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ y("div", { className: g(M.wrapper, d), children: [
|
|
804
934
|
n && /* @__PURE__ */ l("label", { className: M.label, children: n }),
|
|
805
|
-
/* @__PURE__ */
|
|
935
|
+
/* @__PURE__ */ y(
|
|
806
936
|
"div",
|
|
807
937
|
{
|
|
808
938
|
className: g(
|
|
@@ -813,17 +943,17 @@ function Ra({
|
|
|
813
943
|
role: "button",
|
|
814
944
|
tabIndex: c ? -1 : 0,
|
|
815
945
|
onClick: () => !c && h.current?.click(),
|
|
816
|
-
onKeyDown: (
|
|
817
|
-
(
|
|
946
|
+
onKeyDown: (b) => {
|
|
947
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), h.current?.click());
|
|
818
948
|
},
|
|
819
|
-
onDragEnter: (
|
|
820
|
-
|
|
949
|
+
onDragEnter: (b) => {
|
|
950
|
+
b.preventDefault(), c || f(!0);
|
|
821
951
|
},
|
|
822
|
-
onDragOver: (
|
|
952
|
+
onDragOver: (b) => b.preventDefault(),
|
|
823
953
|
onDragLeave: () => f(!1),
|
|
824
954
|
onDrop: m,
|
|
825
955
|
children: [
|
|
826
|
-
/* @__PURE__ */ l("div", { className: M.icon, "aria-hidden": !0, children: /* @__PURE__ */ l(
|
|
956
|
+
/* @__PURE__ */ l("div", { className: M.icon, "aria-hidden": !0, children: /* @__PURE__ */ l(Ss, {}) }),
|
|
827
957
|
/* @__PURE__ */ l("p", { className: M.title, children: a }),
|
|
828
958
|
u && /* @__PURE__ */ l("p", { className: M.subtitle, children: u }),
|
|
829
959
|
/* @__PURE__ */ l(
|
|
@@ -835,33 +965,33 @@ function Ra({
|
|
|
835
965
|
multiple: s,
|
|
836
966
|
disabled: c,
|
|
837
967
|
className: M.hidden,
|
|
838
|
-
onChange: (
|
|
839
|
-
|
|
968
|
+
onChange: (b) => {
|
|
969
|
+
b.target.files && _(b.target.files), b.target.value = "";
|
|
840
970
|
}
|
|
841
971
|
}
|
|
842
972
|
)
|
|
843
973
|
]
|
|
844
974
|
}
|
|
845
975
|
),
|
|
846
|
-
e.length > 0 && /* @__PURE__ */ l("ul", { className: M.files, children: e.map((
|
|
847
|
-
/* @__PURE__ */
|
|
848
|
-
/* @__PURE__ */ l("div", { children:
|
|
849
|
-
/* @__PURE__ */ l("div", { className: M.fileMeta, children:
|
|
976
|
+
e.length > 0 && /* @__PURE__ */ l("ul", { className: M.files, children: e.map((b, $) => /* @__PURE__ */ y("li", { className: M.file, children: [
|
|
977
|
+
/* @__PURE__ */ y("div", { children: [
|
|
978
|
+
/* @__PURE__ */ l("div", { children: b.name }),
|
|
979
|
+
/* @__PURE__ */ l("div", { className: M.fileMeta, children: ks(b.size) })
|
|
850
980
|
] }),
|
|
851
981
|
/* @__PURE__ */ l(
|
|
852
982
|
"button",
|
|
853
983
|
{
|
|
854
984
|
type: "button",
|
|
855
|
-
"aria-label": `Remover ${
|
|
985
|
+
"aria-label": `Remover ${b.name}`,
|
|
856
986
|
className: M.remove,
|
|
857
|
-
onClick: () =>
|
|
987
|
+
onClick: () => w($),
|
|
858
988
|
children: "×"
|
|
859
989
|
}
|
|
860
990
|
)
|
|
861
|
-
] }, `${
|
|
991
|
+
] }, `${b.name}-${$}`)) })
|
|
862
992
|
] });
|
|
863
993
|
}
|
|
864
|
-
function
|
|
994
|
+
function Ss() {
|
|
865
995
|
return /* @__PURE__ */ l("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
866
996
|
"path",
|
|
867
997
|
{
|
|
@@ -873,47 +1003,47 @@ function ns() {
|
|
|
873
1003
|
}
|
|
874
1004
|
) });
|
|
875
1005
|
}
|
|
876
|
-
const
|
|
877
|
-
form:
|
|
878
|
-
stack:
|
|
879
|
-
inline:
|
|
880
|
-
grid:
|
|
881
|
-
section:
|
|
882
|
-
sectionHeader:
|
|
883
|
-
sectionTitle:
|
|
884
|
-
sectionDescription:
|
|
885
|
-
sectionBody:
|
|
886
|
-
row:
|
|
887
|
-
actions:
|
|
888
|
-
start:
|
|
889
|
-
center:
|
|
890
|
-
end:
|
|
891
|
-
between:
|
|
1006
|
+
const Es = "tempest_form_jNBDR", Ts = "tempest_stack_O1Hl-", Cs = "tempest_inline_LBQAv", Ls = "tempest_grid_-B86T", Is = "tempest_section_HGqw3", Ds = "tempest_sectionHeader_ji9hQ", Ms = "tempest_sectionTitle_GTPwe", Ps = "tempest_sectionDescription_KjW7k", As = "tempest_sectionBody_Vp2wz", Fs = "tempest_row_1EkVR", Rs = "tempest_actions_hK95I", Os = "tempest_start_gXnm3", Ws = "tempest_center_mKkz4", Bs = "tempest_end_O3yDQ", zs = "tempest_between_tte2z", W = {
|
|
1007
|
+
form: Es,
|
|
1008
|
+
stack: Ts,
|
|
1009
|
+
inline: Cs,
|
|
1010
|
+
grid: Ls,
|
|
1011
|
+
section: Is,
|
|
1012
|
+
sectionHeader: Ds,
|
|
1013
|
+
sectionTitle: Ms,
|
|
1014
|
+
sectionDescription: Ps,
|
|
1015
|
+
sectionBody: As,
|
|
1016
|
+
row: Fs,
|
|
1017
|
+
actions: Rs,
|
|
1018
|
+
start: Os,
|
|
1019
|
+
center: Ws,
|
|
1020
|
+
end: Bs,
|
|
1021
|
+
between: zs
|
|
892
1022
|
};
|
|
893
|
-
function
|
|
1023
|
+
function me(e, t) {
|
|
894
1024
|
return e === void 0 ? `${t * 4}px` : typeof e == "number" ? `${e * 4}px` : e;
|
|
895
1025
|
}
|
|
896
|
-
function
|
|
1026
|
+
function ze(e) {
|
|
897
1027
|
return e === void 0 ? "repeat(2, minmax(0, 1fr))" : typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
|
|
898
1028
|
}
|
|
899
|
-
const
|
|
1029
|
+
const hc = B(function({ layout: t = "stack", columns: n, gap: r, className: s, style: o, children: i, ...c }, a) {
|
|
900
1030
|
const u = {
|
|
901
|
-
gap:
|
|
902
|
-
...t === "grid" ? { gridTemplateColumns:
|
|
1031
|
+
gap: me(r, 4),
|
|
1032
|
+
...t === "grid" ? { gridTemplateColumns: ze(n) } : null,
|
|
903
1033
|
...o
|
|
904
1034
|
};
|
|
905
1035
|
return /* @__PURE__ */ l(
|
|
906
1036
|
"form",
|
|
907
1037
|
{
|
|
908
1038
|
ref: a,
|
|
909
|
-
className: g(
|
|
1039
|
+
className: g(W.form, W[t], s),
|
|
910
1040
|
style: u,
|
|
911
1041
|
...c,
|
|
912
1042
|
children: i
|
|
913
1043
|
}
|
|
914
1044
|
);
|
|
915
1045
|
});
|
|
916
|
-
function
|
|
1046
|
+
function _c({
|
|
917
1047
|
title: e,
|
|
918
1048
|
description: t,
|
|
919
1049
|
layout: n = "stack",
|
|
@@ -925,22 +1055,22 @@ function Oa({
|
|
|
925
1055
|
...a
|
|
926
1056
|
}) {
|
|
927
1057
|
const u = {
|
|
928
|
-
gap:
|
|
929
|
-
...n === "grid" ? { gridTemplateColumns:
|
|
1058
|
+
gap: me(s, 4),
|
|
1059
|
+
...n === "grid" ? { gridTemplateColumns: ze(r) } : null
|
|
930
1060
|
};
|
|
931
|
-
return /* @__PURE__ */
|
|
932
|
-
(e || t) && /* @__PURE__ */
|
|
933
|
-
e && /* @__PURE__ */ l("h3", { className:
|
|
934
|
-
t && /* @__PURE__ */ l("p", { className:
|
|
1061
|
+
return /* @__PURE__ */ y("section", { className: g(W.section, o), style: i, ...a, children: [
|
|
1062
|
+
(e || t) && /* @__PURE__ */ y("header", { className: W.sectionHeader, children: [
|
|
1063
|
+
e && /* @__PURE__ */ l("h3", { className: W.sectionTitle, children: e }),
|
|
1064
|
+
t && /* @__PURE__ */ l("p", { className: W.sectionDescription, children: t })
|
|
935
1065
|
] }),
|
|
936
|
-
/* @__PURE__ */ l("div", { className: g(
|
|
1066
|
+
/* @__PURE__ */ l("div", { className: g(W.sectionBody, W[n]), style: u, children: c })
|
|
937
1067
|
] });
|
|
938
1068
|
}
|
|
939
|
-
function
|
|
940
|
-
const o = { gap:
|
|
941
|
-
return /* @__PURE__ */ l("div", { className: g(
|
|
1069
|
+
function gc({ gap: e, className: t, style: n, children: r, ...s }) {
|
|
1070
|
+
const o = { gap: me(e, 3), ...n };
|
|
1071
|
+
return /* @__PURE__ */ l("div", { className: g(W.row, t), style: o, ...s, children: r });
|
|
942
1072
|
}
|
|
943
|
-
function
|
|
1073
|
+
function yc({
|
|
944
1074
|
align: e = "end",
|
|
945
1075
|
gap: t,
|
|
946
1076
|
className: n,
|
|
@@ -948,34 +1078,34 @@ function Ba({
|
|
|
948
1078
|
children: s,
|
|
949
1079
|
...o
|
|
950
1080
|
}) {
|
|
951
|
-
const i = { gap:
|
|
952
|
-
return /* @__PURE__ */ l("div", { className: g(
|
|
953
|
-
}
|
|
954
|
-
const
|
|
955
|
-
container:
|
|
956
|
-
sm:
|
|
957
|
-
md:
|
|
958
|
-
lg:
|
|
959
|
-
xl:
|
|
960
|
-
full:
|
|
961
|
-
stack:
|
|
962
|
-
vertical:
|
|
963
|
-
horizontal:
|
|
964
|
-
center:
|
|
965
|
-
start:
|
|
966
|
-
end:
|
|
967
|
-
stretch:
|
|
968
|
-
justifyStart:
|
|
969
|
-
justifyCenter:
|
|
970
|
-
justifyEnd:
|
|
971
|
-
justifyBetween:
|
|
972
|
-
wrap:
|
|
973
|
-
grid:
|
|
1081
|
+
const i = { gap: me(t, 2), ...r };
|
|
1082
|
+
return /* @__PURE__ */ l("div", { className: g(W.actions, W[e], n), style: i, ...o, children: s });
|
|
1083
|
+
}
|
|
1084
|
+
const js = "tempest_container_fJfOt", Us = "tempest_sm_k8D4-", qs = "tempest_md_EnpYy", Js = "tempest_lg_UU-Ig", Gs = "tempest_xl_2TEWj", Hs = "tempest_full_l8bvG", Ks = "tempest_stack_sxR8u", Vs = "tempest_vertical_2TMf5", Qs = "tempest_horizontal_r7-c-", Zs = "tempest_center_EDSAh", Ys = "tempest_start_ucQ-K", Xs = "tempest_end_pnKlF", eo = "tempest_stretch_pX6l7", to = "tempest_justifyStart_lHYsS", no = "tempest_justifyCenter_JH2m6", ro = "tempest_justifyEnd_EBisT", so = "tempest_justifyBetween_mAJwT", oo = "tempest_wrap_-xxOh", io = "tempest_grid_o-JIX", F = {
|
|
1085
|
+
container: js,
|
|
1086
|
+
sm: Us,
|
|
1087
|
+
md: qs,
|
|
1088
|
+
lg: Js,
|
|
1089
|
+
xl: Gs,
|
|
1090
|
+
full: Hs,
|
|
1091
|
+
stack: Ks,
|
|
1092
|
+
vertical: Vs,
|
|
1093
|
+
horizontal: Qs,
|
|
1094
|
+
center: Zs,
|
|
1095
|
+
start: Ys,
|
|
1096
|
+
end: Xs,
|
|
1097
|
+
stretch: eo,
|
|
1098
|
+
justifyStart: to,
|
|
1099
|
+
justifyCenter: no,
|
|
1100
|
+
justifyEnd: ro,
|
|
1101
|
+
justifyBetween: so,
|
|
1102
|
+
wrap: oo,
|
|
1103
|
+
grid: io
|
|
974
1104
|
};
|
|
975
|
-
function
|
|
976
|
-
return /* @__PURE__ */ l("div", { className: g(
|
|
1105
|
+
function bc({ size: e = "lg", className: t, children: n, ...r }) {
|
|
1106
|
+
return /* @__PURE__ */ l("div", { className: g(F.container, F[e], t), ...r, children: n });
|
|
977
1107
|
}
|
|
978
|
-
function
|
|
1108
|
+
function wc({
|
|
979
1109
|
direction: e = "vertical",
|
|
980
1110
|
gap: t = 2,
|
|
981
1111
|
align: n,
|
|
@@ -986,16 +1116,16 @@ function ja({
|
|
|
986
1116
|
children: c,
|
|
987
1117
|
...a
|
|
988
1118
|
}) {
|
|
989
|
-
const d = { gap: typeof t == "number" ? `${t * 4}px` : t, ...i }, p = r === "between" ?
|
|
1119
|
+
const d = { gap: typeof t == "number" ? `${t * 4}px` : t, ...i }, p = r === "between" ? F.justifyBetween : r === "center" ? F.justifyCenter : r === "end" ? F.justifyEnd : r === "start" ? F.justifyStart : void 0;
|
|
990
1120
|
return /* @__PURE__ */ l(
|
|
991
1121
|
"div",
|
|
992
1122
|
{
|
|
993
1123
|
className: g(
|
|
994
|
-
|
|
995
|
-
e === "vertical" ?
|
|
996
|
-
n &&
|
|
1124
|
+
F.stack,
|
|
1125
|
+
e === "vertical" ? F.vertical : F.horizontal,
|
|
1126
|
+
n && F[n],
|
|
997
1127
|
p,
|
|
998
|
-
s &&
|
|
1128
|
+
s && F.wrap,
|
|
999
1129
|
o
|
|
1000
1130
|
),
|
|
1001
1131
|
style: d,
|
|
@@ -1004,27 +1134,36 @@ function ja({
|
|
|
1004
1134
|
}
|
|
1005
1135
|
);
|
|
1006
1136
|
}
|
|
1007
|
-
function
|
|
1137
|
+
function vc({ columns: e = 2, gap: t = 4, className: n, style: r, children: s, ...o }) {
|
|
1008
1138
|
const i = typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e, c = typeof t == "number" ? `${t * 4}px` : t;
|
|
1009
1139
|
return /* @__PURE__ */ l(
|
|
1010
1140
|
"div",
|
|
1011
1141
|
{
|
|
1012
|
-
className: g(
|
|
1142
|
+
className: g(F.grid, n),
|
|
1013
1143
|
style: { gridTemplateColumns: i, gap: c, ...r },
|
|
1014
1144
|
...o,
|
|
1015
1145
|
children: s
|
|
1016
1146
|
}
|
|
1017
1147
|
);
|
|
1018
1148
|
}
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1149
|
+
const ao = "tempest_kbd_jgbYx", co = "tempest_sm_9WPWA", lo = "tempest_md_BePC0", uo = "tempest_lg_cBKum", Le = {
|
|
1150
|
+
kbd: ao,
|
|
1151
|
+
sm: co,
|
|
1152
|
+
md: lo,
|
|
1153
|
+
lg: uo
|
|
1154
|
+
};
|
|
1155
|
+
function $c({ size: e = "md", className: t, children: n, ...r }) {
|
|
1156
|
+
return /* @__PURE__ */ l("kbd", { className: g(Le.kbd, Le[e], t), ...r, children: n });
|
|
1157
|
+
}
|
|
1158
|
+
const po = "tempest_wrapper_cRGQm", fo = "tempest_controls_fdL-y", mo = "tempest_page_WjG0l", ho = "tempest_active_1kqsJ", _o = "tempest_ellipsis_V294k", go = "tempest_sizeSelect_ZayTo", Q = {
|
|
1159
|
+
wrapper: po,
|
|
1160
|
+
controls: fo,
|
|
1161
|
+
page: mo,
|
|
1162
|
+
active: ho,
|
|
1163
|
+
ellipsis: _o,
|
|
1164
|
+
sizeSelect: go
|
|
1026
1165
|
};
|
|
1027
|
-
function
|
|
1166
|
+
function yo(e, t, n) {
|
|
1028
1167
|
const r = n + 4;
|
|
1029
1168
|
if (t <= r)
|
|
1030
1169
|
return Array.from({ length: t }, (c, a) => a + 1);
|
|
@@ -1033,7 +1172,7 @@ function Us(e, t, n) {
|
|
|
1033
1172
|
for (let c = s; c <= o; c++) i.push(c);
|
|
1034
1173
|
return o < t - 1 && i.push("..."), i.push(t), i;
|
|
1035
1174
|
}
|
|
1036
|
-
function
|
|
1175
|
+
function Nc({
|
|
1037
1176
|
page: e,
|
|
1038
1177
|
totalPages: t,
|
|
1039
1178
|
onPageChange: n,
|
|
@@ -1044,18 +1183,18 @@ function qa({
|
|
|
1044
1183
|
siblingCount: c = 3,
|
|
1045
1184
|
className: a
|
|
1046
1185
|
}) {
|
|
1047
|
-
const u =
|
|
1048
|
-
() =>
|
|
1186
|
+
const u = z(
|
|
1187
|
+
() => yo(e, t, c),
|
|
1049
1188
|
[e, t, c]
|
|
1050
1189
|
);
|
|
1051
|
-
return t <= 1 && !s ? null : /* @__PURE__ */
|
|
1190
|
+
return t <= 1 && !s ? null : /* @__PURE__ */ y("div", { className: g(Q.wrapper, a), children: [
|
|
1052
1191
|
/* @__PURE__ */ l("div", { children: typeof i == "number" ? `${i} resultado${i === 1 ? "" : "s"}` : null }),
|
|
1053
|
-
/* @__PURE__ */
|
|
1192
|
+
/* @__PURE__ */ y("div", { className: Q.controls, children: [
|
|
1054
1193
|
/* @__PURE__ */ l(
|
|
1055
1194
|
"button",
|
|
1056
1195
|
{
|
|
1057
1196
|
type: "button",
|
|
1058
|
-
className:
|
|
1197
|
+
className: Q.page,
|
|
1059
1198
|
onClick: () => n(Math.max(1, e - 1)),
|
|
1060
1199
|
disabled: e <= 1,
|
|
1061
1200
|
"aria-label": "Página anterior",
|
|
@@ -1063,11 +1202,11 @@ function qa({
|
|
|
1063
1202
|
}
|
|
1064
1203
|
),
|
|
1065
1204
|
u.map(
|
|
1066
|
-
(d, p) => d === "..." ? /* @__PURE__ */ l("span", { className:
|
|
1205
|
+
(d, p) => d === "..." ? /* @__PURE__ */ l("span", { className: Q.ellipsis, children: "…" }, `ellipsis-${p}`) : /* @__PURE__ */ l(
|
|
1067
1206
|
"button",
|
|
1068
1207
|
{
|
|
1069
1208
|
type: "button",
|
|
1070
|
-
className: g(
|
|
1209
|
+
className: g(Q.page, d === e && Q.active),
|
|
1071
1210
|
onClick: () => n(d),
|
|
1072
1211
|
"aria-current": d === e ? "page" : void 0,
|
|
1073
1212
|
children: d
|
|
@@ -1079,7 +1218,7 @@ function qa({
|
|
|
1079
1218
|
"button",
|
|
1080
1219
|
{
|
|
1081
1220
|
type: "button",
|
|
1082
|
-
className:
|
|
1221
|
+
className: Q.page,
|
|
1083
1222
|
onClick: () => n(Math.min(t, e + 1)),
|
|
1084
1223
|
disabled: e >= t,
|
|
1085
1224
|
"aria-label": "Próxima página",
|
|
@@ -1089,11 +1228,11 @@ function qa({
|
|
|
1089
1228
|
s && /* @__PURE__ */ l(
|
|
1090
1229
|
"select",
|
|
1091
1230
|
{
|
|
1092
|
-
className:
|
|
1231
|
+
className: Q.sizeSelect,
|
|
1093
1232
|
value: r,
|
|
1094
1233
|
onChange: (d) => s(Number(d.target.value)),
|
|
1095
1234
|
"aria-label": "Itens por página",
|
|
1096
|
-
children: o.map((d) => /* @__PURE__ */
|
|
1235
|
+
children: o.map((d) => /* @__PURE__ */ y("option", { value: d, children: [
|
|
1097
1236
|
d,
|
|
1098
1237
|
" / página"
|
|
1099
1238
|
] }, d))
|
|
@@ -1102,18 +1241,18 @@ function qa({
|
|
|
1102
1241
|
] })
|
|
1103
1242
|
] });
|
|
1104
1243
|
}
|
|
1105
|
-
const
|
|
1106
|
-
wrapper:
|
|
1107
|
-
bar:
|
|
1108
|
-
fill:
|
|
1109
|
-
success:
|
|
1110
|
-
warning:
|
|
1111
|
-
danger:
|
|
1112
|
-
indeterminate:
|
|
1113
|
-
tempestProgressLoop:
|
|
1114
|
-
label:
|
|
1244
|
+
const bo = "tempest_wrapper_BQek1", wo = "tempest_bar_uC-0x", vo = "tempest_fill_vmg7x", $o = "tempest_success_gWJ8U", No = "tempest_warning_DGkPO", ko = "tempest_danger_gfwHh", xo = "tempest_indeterminate_HojUj", So = "tempest_tempest-progress-loop_0nEdF", Eo = "tempest_label_qqHJM", te = {
|
|
1245
|
+
wrapper: bo,
|
|
1246
|
+
bar: wo,
|
|
1247
|
+
fill: vo,
|
|
1248
|
+
success: $o,
|
|
1249
|
+
warning: No,
|
|
1250
|
+
danger: ko,
|
|
1251
|
+
indeterminate: xo,
|
|
1252
|
+
tempestProgressLoop: So,
|
|
1253
|
+
label: Eo
|
|
1115
1254
|
};
|
|
1116
|
-
function
|
|
1255
|
+
function kc({
|
|
1117
1256
|
value: e = 0,
|
|
1118
1257
|
max: t = 100,
|
|
1119
1258
|
variant: n = "primary",
|
|
@@ -1123,10 +1262,10 @@ function Ja({
|
|
|
1123
1262
|
className: i
|
|
1124
1263
|
}) {
|
|
1125
1264
|
const c = r ? 0 : Math.max(0, Math.min(100, e / t * 100));
|
|
1126
|
-
return /* @__PURE__ */
|
|
1127
|
-
(s || o) && /* @__PURE__ */
|
|
1265
|
+
return /* @__PURE__ */ y("div", { className: g(te.wrapper, i), children: [
|
|
1266
|
+
(s || o) && /* @__PURE__ */ y("div", { className: te.label, children: [
|
|
1128
1267
|
o && /* @__PURE__ */ l("span", { children: o }),
|
|
1129
|
-
s && !r && /* @__PURE__ */
|
|
1268
|
+
s && !r && /* @__PURE__ */ y("span", { children: [
|
|
1130
1269
|
Math.round(c),
|
|
1131
1270
|
"%"
|
|
1132
1271
|
] })
|
|
@@ -1138,11 +1277,11 @@ function Ja({
|
|
|
1138
1277
|
"aria-valuemin": 0,
|
|
1139
1278
|
"aria-valuemax": t,
|
|
1140
1279
|
"aria-valuenow": r ? void 0 : e,
|
|
1141
|
-
className: g(
|
|
1280
|
+
className: g(te.bar, r && te.indeterminate),
|
|
1142
1281
|
children: /* @__PURE__ */ l(
|
|
1143
1282
|
"div",
|
|
1144
1283
|
{
|
|
1145
|
-
className: g(
|
|
1284
|
+
className: g(te.fill, n !== "primary" && te[n]),
|
|
1146
1285
|
style: { width: r ? void 0 : `${c}%` }
|
|
1147
1286
|
}
|
|
1148
1287
|
)
|
|
@@ -1150,17 +1289,17 @@ function Ja({
|
|
|
1150
1289
|
)
|
|
1151
1290
|
] });
|
|
1152
1291
|
}
|
|
1153
|
-
const
|
|
1154
|
-
wrapper:
|
|
1155
|
-
disabled:
|
|
1156
|
-
input:
|
|
1157
|
-
dot:
|
|
1158
|
-
labelWrap:
|
|
1159
|
-
label:
|
|
1160
|
-
description:
|
|
1161
|
-
group:
|
|
1162
|
-
horizontal:
|
|
1163
|
-
},
|
|
1292
|
+
const To = "tempest_wrapper_P-gFm", Co = "tempest_disabled_0-cna", Lo = "tempest_input_7R8ZN", Io = "tempest_dot_P7ejP", Do = "tempest_labelWrap_iQ1HR", Mo = "tempest_label_vAFIP", Po = "tempest_description_bEB8u", Ao = "tempest_group_oi329", Fo = "tempest_horizontal_1Ovgu", H = {
|
|
1293
|
+
wrapper: To,
|
|
1294
|
+
disabled: Co,
|
|
1295
|
+
input: Lo,
|
|
1296
|
+
dot: Io,
|
|
1297
|
+
labelWrap: Do,
|
|
1298
|
+
label: Mo,
|
|
1299
|
+
description: Po,
|
|
1300
|
+
group: Ao,
|
|
1301
|
+
horizontal: Fo
|
|
1302
|
+
}, je = oe(null), xc = B(function({
|
|
1164
1303
|
label: t,
|
|
1165
1304
|
description: n,
|
|
1166
1305
|
value: r,
|
|
@@ -1172,14 +1311,14 @@ const Xs = "tempest_wrapper_P-gFm", eo = "tempest_disabled_0-cna", to = "tempest
|
|
|
1172
1311
|
className: u,
|
|
1173
1312
|
...d
|
|
1174
1313
|
}, p) {
|
|
1175
|
-
const f =
|
|
1176
|
-
function b
|
|
1177
|
-
f && f.onChange?.(r), c?.(
|
|
1314
|
+
const f = se(je), h = f?.name ?? o, _ = f?.disabled ?? s, m = f ? f.value === r : i;
|
|
1315
|
+
function w(b) {
|
|
1316
|
+
f && f.onChange?.(r), c?.(b);
|
|
1178
1317
|
}
|
|
1179
|
-
return /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ y(
|
|
1180
1319
|
"label",
|
|
1181
1320
|
{
|
|
1182
|
-
className: g(
|
|
1321
|
+
className: g(H.wrapper, _ && H.disabled, a),
|
|
1183
1322
|
children: [
|
|
1184
1323
|
/* @__PURE__ */ l(
|
|
1185
1324
|
"input",
|
|
@@ -1190,21 +1329,21 @@ const Xs = "tempest_wrapper_P-gFm", eo = "tempest_disabled_0-cna", to = "tempest
|
|
|
1190
1329
|
value: r,
|
|
1191
1330
|
checked: m,
|
|
1192
1331
|
disabled: _,
|
|
1193
|
-
onChange:
|
|
1194
|
-
className: g(
|
|
1332
|
+
onChange: w,
|
|
1333
|
+
className: g(H.input, u),
|
|
1195
1334
|
...d
|
|
1196
1335
|
}
|
|
1197
1336
|
),
|
|
1198
|
-
/* @__PURE__ */ l("span", { className:
|
|
1199
|
-
(t || n) && /* @__PURE__ */
|
|
1200
|
-
t && /* @__PURE__ */ l("span", { className:
|
|
1201
|
-
n && /* @__PURE__ */ l("span", { className:
|
|
1337
|
+
/* @__PURE__ */ l("span", { className: H.dot, "aria-hidden": !0 }),
|
|
1338
|
+
(t || n) && /* @__PURE__ */ y("span", { className: H.labelWrap, children: [
|
|
1339
|
+
t && /* @__PURE__ */ l("span", { className: H.label, children: t }),
|
|
1340
|
+
n && /* @__PURE__ */ l("span", { className: H.description, children: n })
|
|
1202
1341
|
] })
|
|
1203
1342
|
]
|
|
1204
1343
|
}
|
|
1205
1344
|
);
|
|
1206
1345
|
});
|
|
1207
|
-
function
|
|
1346
|
+
function Sc({
|
|
1208
1347
|
value: e,
|
|
1209
1348
|
defaultValue: t,
|
|
1210
1349
|
onChange: n,
|
|
@@ -1214,36 +1353,36 @@ function Ha({
|
|
|
1214
1353
|
className: i,
|
|
1215
1354
|
children: c
|
|
1216
1355
|
}) {
|
|
1217
|
-
const a =
|
|
1356
|
+
const a = ue(), u = r ?? a, [d, p] = v(t), f = e !== void 0, h = f ? e : d;
|
|
1218
1357
|
function _(m) {
|
|
1219
1358
|
f || p(m), n?.(m);
|
|
1220
1359
|
}
|
|
1221
1360
|
return /* @__PURE__ */ l(
|
|
1222
|
-
|
|
1361
|
+
je.Provider,
|
|
1223
1362
|
{
|
|
1224
1363
|
value: { name: u, value: h, onChange: _, disabled: s },
|
|
1225
1364
|
children: /* @__PURE__ */ l(
|
|
1226
1365
|
"div",
|
|
1227
1366
|
{
|
|
1228
1367
|
role: "radiogroup",
|
|
1229
|
-
className: g(
|
|
1368
|
+
className: g(H.group, o && H.horizontal, i),
|
|
1230
1369
|
children: c
|
|
1231
1370
|
}
|
|
1232
1371
|
)
|
|
1233
1372
|
}
|
|
1234
1373
|
);
|
|
1235
1374
|
}
|
|
1236
|
-
const
|
|
1237
|
-
wrapper:
|
|
1238
|
-
input:
|
|
1239
|
-
iconLeft:
|
|
1240
|
-
clear:
|
|
1241
|
-
},
|
|
1375
|
+
const Ro = "tempest_wrapper_dKXJJ", Oo = "tempest_input_m0lPc", Wo = "tempest_iconLeft_030-U", Bo = "tempest_clear_nb6lG", pe = {
|
|
1376
|
+
wrapper: Ro,
|
|
1377
|
+
input: Oo,
|
|
1378
|
+
iconLeft: Wo,
|
|
1379
|
+
clear: Bo
|
|
1380
|
+
}, Ec = B(function({ value: t, onChange: n, onClear: r, wrapperClassName: s, placeholder: o = "Buscar...", className: i, ...c }, a) {
|
|
1242
1381
|
function u() {
|
|
1243
1382
|
n(""), r?.();
|
|
1244
1383
|
}
|
|
1245
|
-
return /* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */ l("span", { className:
|
|
1384
|
+
return /* @__PURE__ */ y("div", { className: g(pe.wrapper, s), children: [
|
|
1385
|
+
/* @__PURE__ */ l("span", { className: pe.iconLeft, "aria-hidden": !0, children: /* @__PURE__ */ l(zo, {}) }),
|
|
1247
1386
|
/* @__PURE__ */ l(
|
|
1248
1387
|
"input",
|
|
1249
1388
|
{
|
|
@@ -1252,7 +1391,7 @@ const co = "tempest_wrapper_dKXJJ", lo = "tempest_input_m0lPc", uo = "tempest_ic
|
|
|
1252
1391
|
value: t,
|
|
1253
1392
|
onChange: (d) => n(d.target.value),
|
|
1254
1393
|
placeholder: o,
|
|
1255
|
-
className: g(
|
|
1394
|
+
className: g(pe.input, i),
|
|
1256
1395
|
...c
|
|
1257
1396
|
}
|
|
1258
1397
|
),
|
|
@@ -1260,21 +1399,21 @@ const co = "tempest_wrapper_dKXJJ", lo = "tempest_input_m0lPc", uo = "tempest_ic
|
|
|
1260
1399
|
"button",
|
|
1261
1400
|
{
|
|
1262
1401
|
type: "button",
|
|
1263
|
-
className:
|
|
1402
|
+
className: pe.clear,
|
|
1264
1403
|
"aria-label": "Limpar busca",
|
|
1265
1404
|
onClick: u,
|
|
1266
|
-
children: /* @__PURE__ */ l(
|
|
1405
|
+
children: /* @__PURE__ */ l(jo, {})
|
|
1267
1406
|
}
|
|
1268
1407
|
)
|
|
1269
1408
|
] });
|
|
1270
1409
|
});
|
|
1271
|
-
function
|
|
1272
|
-
return /* @__PURE__ */
|
|
1410
|
+
function zo() {
|
|
1411
|
+
return /* @__PURE__ */ y("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: [
|
|
1273
1412
|
/* @__PURE__ */ l("circle", { cx: "11", cy: "11", r: "7", stroke: "currentColor", strokeWidth: "2" }),
|
|
1274
1413
|
/* @__PURE__ */ l("path", { d: "M20 20l-3.5-3.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
1275
1414
|
] });
|
|
1276
1415
|
}
|
|
1277
|
-
function
|
|
1416
|
+
function jo() {
|
|
1278
1417
|
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
1279
1418
|
"path",
|
|
1280
1419
|
{
|
|
@@ -1285,17 +1424,17 @@ function mo() {
|
|
|
1285
1424
|
}
|
|
1286
1425
|
) });
|
|
1287
1426
|
}
|
|
1288
|
-
const
|
|
1289
|
-
wrapper:
|
|
1290
|
-
label:
|
|
1291
|
-
required:
|
|
1292
|
-
field:
|
|
1293
|
-
select:
|
|
1294
|
-
caret:
|
|
1295
|
-
error:
|
|
1296
|
-
helper:
|
|
1297
|
-
errorText:
|
|
1298
|
-
},
|
|
1427
|
+
const Uo = "tempest_wrapper_KS2K3", qo = "tempest_label_Lmgos", Jo = "tempest_required_PvDVJ", Go = "tempest_field_h-wBy", Ho = "tempest_select_cjdcr", Ko = "tempest_caret_MdCao", Vo = "tempest_error_sw9MU", Qo = "tempest_helper_frosK", Zo = "tempest_errorText_-zd6i", J = {
|
|
1428
|
+
wrapper: Uo,
|
|
1429
|
+
label: qo,
|
|
1430
|
+
required: Jo,
|
|
1431
|
+
field: Go,
|
|
1432
|
+
select: Ho,
|
|
1433
|
+
caret: Ko,
|
|
1434
|
+
error: Vo,
|
|
1435
|
+
helper: Qo,
|
|
1436
|
+
errorText: Zo
|
|
1437
|
+
}, Tc = B(function({
|
|
1299
1438
|
label: t,
|
|
1300
1439
|
helperText: n,
|
|
1301
1440
|
error: r,
|
|
@@ -1308,21 +1447,21 @@ const ho = "tempest_wrapper_KS2K3", _o = "tempest_label_Lmgos", go = "tempest_re
|
|
|
1308
1447
|
required: d,
|
|
1309
1448
|
...p
|
|
1310
1449
|
}, f) {
|
|
1311
|
-
const h =
|
|
1312
|
-
return /* @__PURE__ */
|
|
1313
|
-
t && /* @__PURE__ */
|
|
1450
|
+
const h = ue(), _ = u ?? h;
|
|
1451
|
+
return /* @__PURE__ */ y("div", { className: g(J.wrapper, r && J.error, i), children: [
|
|
1452
|
+
t && /* @__PURE__ */ y("label", { htmlFor: _, className: J.label, children: [
|
|
1314
1453
|
t,
|
|
1315
|
-
d && /* @__PURE__ */ l("span", { className:
|
|
1454
|
+
d && /* @__PURE__ */ l("span", { className: J.required, children: "*" })
|
|
1316
1455
|
] }),
|
|
1317
|
-
/* @__PURE__ */
|
|
1318
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ y("div", { className: J.field, children: [
|
|
1457
|
+
/* @__PURE__ */ y(
|
|
1319
1458
|
"select",
|
|
1320
1459
|
{
|
|
1321
1460
|
ref: f,
|
|
1322
1461
|
id: _,
|
|
1323
1462
|
"aria-invalid": !!r,
|
|
1324
1463
|
required: d,
|
|
1325
|
-
className: g(
|
|
1464
|
+
className: g(J.select, c),
|
|
1326
1465
|
...p,
|
|
1327
1466
|
children: [
|
|
1328
1467
|
o && /* @__PURE__ */ l("option", { value: "", disabled: !0, hidden: !0, children: o }),
|
|
@@ -1331,12 +1470,12 @@ const ho = "tempest_wrapper_KS2K3", _o = "tempest_label_Lmgos", go = "tempest_re
|
|
|
1331
1470
|
]
|
|
1332
1471
|
}
|
|
1333
1472
|
),
|
|
1334
|
-
/* @__PURE__ */ l("span", { className:
|
|
1473
|
+
/* @__PURE__ */ l("span", { className: J.caret, "aria-hidden": !0, children: /* @__PURE__ */ l(Yo, {}) })
|
|
1335
1474
|
] }),
|
|
1336
|
-
r ? /* @__PURE__ */ l("span", { className:
|
|
1475
|
+
r ? /* @__PURE__ */ l("span", { className: J.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { className: J.helper, children: n }) : null
|
|
1337
1476
|
] });
|
|
1338
1477
|
});
|
|
1339
|
-
function
|
|
1478
|
+
function Yo() {
|
|
1340
1479
|
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
1341
1480
|
"path",
|
|
1342
1481
|
{
|
|
@@ -1348,80 +1487,82 @@ function ko() {
|
|
|
1348
1487
|
}
|
|
1349
1488
|
) });
|
|
1350
1489
|
}
|
|
1351
|
-
const
|
|
1352
|
-
skeleton:
|
|
1353
|
-
text:
|
|
1354
|
-
circle:
|
|
1490
|
+
const Xo = "tempest_skeleton_CB4uF", ei = "tempest_text_-A8IF", ti = "tempest_circle_DYcl8", be = {
|
|
1491
|
+
skeleton: Xo,
|
|
1492
|
+
text: ei,
|
|
1493
|
+
circle: ti
|
|
1355
1494
|
};
|
|
1356
|
-
function
|
|
1495
|
+
function Cc({ variant: e = "rect", width: t, height: n, className: r, style: s }) {
|
|
1357
1496
|
return /* @__PURE__ */ l(
|
|
1358
1497
|
"span",
|
|
1359
1498
|
{
|
|
1360
1499
|
"aria-hidden": !0,
|
|
1361
1500
|
className: g(
|
|
1362
|
-
|
|
1363
|
-
e === "text" &&
|
|
1364
|
-
e === "circle" &&
|
|
1501
|
+
be.skeleton,
|
|
1502
|
+
e === "text" && be.text,
|
|
1503
|
+
e === "circle" && be.circle,
|
|
1365
1504
|
r
|
|
1366
1505
|
),
|
|
1367
1506
|
style: { width: t, height: n, ...s }
|
|
1368
1507
|
}
|
|
1369
1508
|
);
|
|
1370
1509
|
}
|
|
1371
|
-
const
|
|
1372
|
-
spinner:
|
|
1373
|
-
tempestSpinner:
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1510
|
+
const ni = "tempest_spinner_GpFZS", ri = "tempest_tempest-spinner_wKVCY", si = "tempest_xs_p8BFI", oi = "tempest_sm_3sIoD", ii = "tempest_md_M2sPj", ai = "tempest_lg_IxTw2", ci = "tempest_xl_cgwqq", Ie = {
|
|
1511
|
+
spinner: ni,
|
|
1512
|
+
tempestSpinner: ri,
|
|
1513
|
+
xs: si,
|
|
1514
|
+
sm: oi,
|
|
1515
|
+
md: ii,
|
|
1516
|
+
lg: ai,
|
|
1517
|
+
xl: ci
|
|
1377
1518
|
};
|
|
1378
|
-
function
|
|
1519
|
+
function Lc({ size: e = "md", className: t, label: n = "Carregando" }) {
|
|
1379
1520
|
return /* @__PURE__ */ l(
|
|
1380
1521
|
"span",
|
|
1381
1522
|
{
|
|
1382
1523
|
role: "status",
|
|
1383
1524
|
"aria-label": n,
|
|
1384
|
-
className: g(
|
|
1525
|
+
className: g(Ie.spinner, Ie[e], t)
|
|
1385
1526
|
}
|
|
1386
1527
|
);
|
|
1387
1528
|
}
|
|
1388
|
-
const
|
|
1389
|
-
stepper:
|
|
1390
|
-
vertical:
|
|
1391
|
-
step:
|
|
1392
|
-
dot:
|
|
1393
|
-
completed:
|
|
1394
|
-
active:
|
|
1395
|
-
label:
|
|
1396
|
-
connector:
|
|
1529
|
+
const li = "tempest_stepper_w3qjQ", ui = "tempest_vertical_d4mOs", di = "tempest_step_s2nqL", pi = "tempest_dot_d1bSL", fi = "tempest_completed_gcFHM", mi = "tempest_active_kL-CH", hi = "tempest_label_8irAI", _i = "tempest_connector_lyeWp", G = {
|
|
1530
|
+
stepper: li,
|
|
1531
|
+
vertical: ui,
|
|
1532
|
+
step: di,
|
|
1533
|
+
dot: pi,
|
|
1534
|
+
completed: fi,
|
|
1535
|
+
active: mi,
|
|
1536
|
+
label: hi,
|
|
1537
|
+
connector: _i
|
|
1397
1538
|
};
|
|
1398
|
-
function
|
|
1539
|
+
function Ic({ steps: e, current: t, orientation: n = "horizontal", className: r }) {
|
|
1399
1540
|
return /* @__PURE__ */ l(
|
|
1400
1541
|
"ol",
|
|
1401
1542
|
{
|
|
1402
|
-
className: g(
|
|
1543
|
+
className: g(G.stepper, n === "vertical" && G.vertical, r),
|
|
1403
1544
|
children: e.map((s, o) => {
|
|
1404
1545
|
const i = o < t, c = o === t;
|
|
1405
|
-
return /* @__PURE__ */
|
|
1406
|
-
/* @__PURE__ */
|
|
1546
|
+
return /* @__PURE__ */ y(We, { children: [
|
|
1547
|
+
/* @__PURE__ */ y(
|
|
1407
1548
|
"li",
|
|
1408
1549
|
{
|
|
1409
1550
|
className: g(
|
|
1410
|
-
|
|
1411
|
-
i &&
|
|
1412
|
-
c &&
|
|
1551
|
+
G.step,
|
|
1552
|
+
i && G.completed,
|
|
1553
|
+
c && G.active
|
|
1413
1554
|
),
|
|
1414
1555
|
"aria-current": c ? "step" : void 0,
|
|
1415
1556
|
children: [
|
|
1416
|
-
/* @__PURE__ */ l("span", { className:
|
|
1417
|
-
/* @__PURE__ */ l("span", { className:
|
|
1557
|
+
/* @__PURE__ */ l("span", { className: G.dot, children: i ? "✓" : o + 1 }),
|
|
1558
|
+
/* @__PURE__ */ l("span", { className: G.label, children: s.label })
|
|
1418
1559
|
]
|
|
1419
1560
|
}
|
|
1420
1561
|
),
|
|
1421
1562
|
o < e.length - 1 && /* @__PURE__ */ l(
|
|
1422
1563
|
"span",
|
|
1423
1564
|
{
|
|
1424
|
-
className: g(
|
|
1565
|
+
className: g(G.connector, i && G.completed),
|
|
1425
1566
|
"aria-hidden": !0
|
|
1426
1567
|
}
|
|
1427
1568
|
)
|
|
@@ -1430,15 +1571,15 @@ function Za({ steps: e, current: t, orientation: n = "horizontal", className: r
|
|
|
1430
1571
|
}
|
|
1431
1572
|
);
|
|
1432
1573
|
}
|
|
1433
|
-
const
|
|
1434
|
-
wrapper:
|
|
1435
|
-
disabled:
|
|
1436
|
-
input:
|
|
1437
|
-
track:
|
|
1438
|
-
thumb:
|
|
1439
|
-
label:
|
|
1440
|
-
},
|
|
1441
|
-
return /* @__PURE__ */
|
|
1574
|
+
const gi = "tempest_wrapper_kudO9", yi = "tempest_disabled_2aZ0V", bi = "tempest_input_5BPNu", wi = "tempest_track_7ObdZ", vi = "tempest_thumb_-FTeK", $i = "tempest_label_LrH7V", ne = {
|
|
1575
|
+
wrapper: gi,
|
|
1576
|
+
disabled: yi,
|
|
1577
|
+
input: bi,
|
|
1578
|
+
track: wi,
|
|
1579
|
+
thumb: vi,
|
|
1580
|
+
label: $i
|
|
1581
|
+
}, Dc = B(function({ label: t, disabled: n, wrapperClassName: r, className: s, ...o }, i) {
|
|
1582
|
+
return /* @__PURE__ */ y("label", { className: g(ne.wrapper, n && ne.disabled, r), children: [
|
|
1442
1583
|
/* @__PURE__ */ l(
|
|
1443
1584
|
"input",
|
|
1444
1585
|
{
|
|
@@ -1446,25 +1587,25 @@ const zo = "tempest_wrapper_kudO9", jo = "tempest_disabled_2aZ0V", Uo = "tempest
|
|
|
1446
1587
|
type: "checkbox",
|
|
1447
1588
|
role: "switch",
|
|
1448
1589
|
disabled: n,
|
|
1449
|
-
className: g(
|
|
1590
|
+
className: g(ne.input, s),
|
|
1450
1591
|
...o
|
|
1451
1592
|
}
|
|
1452
1593
|
),
|
|
1453
|
-
/* @__PURE__ */ l("span", { className:
|
|
1454
|
-
t && /* @__PURE__ */ l("span", { className:
|
|
1594
|
+
/* @__PURE__ */ l("span", { className: ne.track, "aria-hidden": !0, children: /* @__PURE__ */ l("span", { className: ne.thumb }) }),
|
|
1595
|
+
t && /* @__PURE__ */ l("span", { className: ne.label, children: t })
|
|
1455
1596
|
] });
|
|
1456
|
-
}),
|
|
1457
|
-
scroll:
|
|
1458
|
-
table:
|
|
1459
|
-
th:
|
|
1460
|
-
td:
|
|
1461
|
-
tr:
|
|
1462
|
-
clickable:
|
|
1463
|
-
alignRight:
|
|
1464
|
-
alignCenter:
|
|
1465
|
-
emptyRow:
|
|
1597
|
+
}), Ni = "tempest_scroll_unrJp", ki = "tempest_table_Dkosn", xi = "tempest_th_PNuEx", Si = "tempest_td_jv9tA", Ei = "tempest_tr_7UG8J", Ti = "tempest_clickable_B6Si-", Ci = "tempest_alignRight_9hY0G", Li = "tempest_alignCenter_YiUQy", Ii = "tempest_emptyRow_kdMiv", O = {
|
|
1598
|
+
scroll: Ni,
|
|
1599
|
+
table: ki,
|
|
1600
|
+
th: xi,
|
|
1601
|
+
td: Si,
|
|
1602
|
+
tr: Ei,
|
|
1603
|
+
clickable: Ti,
|
|
1604
|
+
alignRight: Ci,
|
|
1605
|
+
alignCenter: Li,
|
|
1606
|
+
emptyRow: Ii
|
|
1466
1607
|
};
|
|
1467
|
-
function
|
|
1608
|
+
function Mc({
|
|
1468
1609
|
columns: e,
|
|
1469
1610
|
data: t,
|
|
1470
1611
|
rowKey: n,
|
|
@@ -1472,24 +1613,24 @@ function ec({
|
|
|
1472
1613
|
emptyMessage: s = "Nenhum registro encontrado.",
|
|
1473
1614
|
className: o
|
|
1474
1615
|
}) {
|
|
1475
|
-
return /* @__PURE__ */ l("div", { className: g(
|
|
1616
|
+
return /* @__PURE__ */ l("div", { className: g(O.scroll, o), children: /* @__PURE__ */ y("table", { className: O.table, children: [
|
|
1476
1617
|
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((i) => /* @__PURE__ */ l(
|
|
1477
1618
|
"th",
|
|
1478
1619
|
{
|
|
1479
1620
|
className: g(
|
|
1480
|
-
|
|
1481
|
-
i.align === "right" &&
|
|
1482
|
-
i.align === "center" &&
|
|
1621
|
+
O.th,
|
|
1622
|
+
i.align === "right" && O.alignRight,
|
|
1623
|
+
i.align === "center" && O.alignCenter
|
|
1483
1624
|
),
|
|
1484
1625
|
style: { width: i.width },
|
|
1485
1626
|
children: i.header
|
|
1486
1627
|
},
|
|
1487
1628
|
i.key
|
|
1488
1629
|
)) }) }),
|
|
1489
|
-
/* @__PURE__ */ l("tbody", { children: t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { className:
|
|
1630
|
+
/* @__PURE__ */ l("tbody", { children: t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { className: O.emptyRow, colSpan: e.length, children: s }) }) : t.map((i, c) => /* @__PURE__ */ l(
|
|
1490
1631
|
"tr",
|
|
1491
1632
|
{
|
|
1492
|
-
className: g(
|
|
1633
|
+
className: g(O.tr, r && O.clickable),
|
|
1493
1634
|
onClick: r ? () => r(i) : void 0,
|
|
1494
1635
|
children: e.map((a) => {
|
|
1495
1636
|
const u = a.render ? a.render(i, c) : i[a.key];
|
|
@@ -1497,9 +1638,9 @@ function ec({
|
|
|
1497
1638
|
"td",
|
|
1498
1639
|
{
|
|
1499
1640
|
className: g(
|
|
1500
|
-
|
|
1501
|
-
a.align === "right" &&
|
|
1502
|
-
a.align === "center" &&
|
|
1641
|
+
O.td,
|
|
1642
|
+
a.align === "right" && O.alignRight,
|
|
1643
|
+
a.align === "center" && O.alignCenter,
|
|
1503
1644
|
a.className
|
|
1504
1645
|
),
|
|
1505
1646
|
children: u
|
|
@@ -1512,14 +1653,14 @@ function ec({
|
|
|
1512
1653
|
)) })
|
|
1513
1654
|
] }) });
|
|
1514
1655
|
}
|
|
1515
|
-
const
|
|
1516
|
-
tablist:
|
|
1517
|
-
tab:
|
|
1518
|
-
active:
|
|
1519
|
-
panel:
|
|
1520
|
-
pill:
|
|
1656
|
+
const Di = "tempest_tablist_WR6ag", Mi = "tempest_tab_IdDYc", Pi = "tempest_active_PTNtG", Ai = "tempest_panel_08i9c", Fi = "tempest_pill_lGuqn", le = {
|
|
1657
|
+
tablist: Di,
|
|
1658
|
+
tab: Mi,
|
|
1659
|
+
active: Pi,
|
|
1660
|
+
panel: Ai,
|
|
1661
|
+
pill: Fi
|
|
1521
1662
|
};
|
|
1522
|
-
function
|
|
1663
|
+
function Pc({
|
|
1523
1664
|
items: e,
|
|
1524
1665
|
defaultId: t,
|
|
1525
1666
|
activeId: n,
|
|
@@ -1531,8 +1672,8 @@ function tc({
|
|
|
1531
1672
|
function f(h) {
|
|
1532
1673
|
u || a(h), r?.(h);
|
|
1533
1674
|
}
|
|
1534
|
-
return /* @__PURE__ */
|
|
1535
|
-
/* @__PURE__ */ l("div", { role: "tablist", className: g(
|
|
1675
|
+
return /* @__PURE__ */ y("div", { className: o, children: [
|
|
1676
|
+
/* @__PURE__ */ l("div", { role: "tablist", className: g(le.tablist, s === "pill" && le.pill), children: e.map((h) => {
|
|
1536
1677
|
const _ = h.id === p?.id;
|
|
1537
1678
|
return /* @__PURE__ */ l(
|
|
1538
1679
|
"button",
|
|
@@ -1543,7 +1684,7 @@ function tc({
|
|
|
1543
1684
|
"aria-controls": `panel-${h.id}`,
|
|
1544
1685
|
id: `tab-${h.id}`,
|
|
1545
1686
|
disabled: h.disabled,
|
|
1546
|
-
className: g(
|
|
1687
|
+
className: g(le.tab, _ && le.active),
|
|
1547
1688
|
onClick: () => f(h.id),
|
|
1548
1689
|
children: h.label
|
|
1549
1690
|
},
|
|
@@ -1556,26 +1697,26 @@ function tc({
|
|
|
1556
1697
|
role: "tabpanel",
|
|
1557
1698
|
id: `panel-${p.id}`,
|
|
1558
1699
|
"aria-labelledby": `tab-${p.id}`,
|
|
1559
|
-
className:
|
|
1700
|
+
className: le.panel,
|
|
1560
1701
|
children: p.content
|
|
1561
1702
|
}
|
|
1562
1703
|
)
|
|
1563
1704
|
] });
|
|
1564
1705
|
}
|
|
1565
|
-
const
|
|
1566
|
-
wrapper:
|
|
1567
|
-
label:
|
|
1568
|
-
required:
|
|
1569
|
-
textarea:
|
|
1570
|
-
error:
|
|
1571
|
-
helper:
|
|
1572
|
-
errorText:
|
|
1573
|
-
},
|
|
1574
|
-
const d =
|
|
1575
|
-
return /* @__PURE__ */
|
|
1576
|
-
t && /* @__PURE__ */
|
|
1706
|
+
const Ri = "tempest_wrapper_C0gfg", Oi = "tempest_label_cWLXP", Wi = "tempest_required_rDZXE", Bi = "tempest_textarea_Z-y6g", zi = "tempest_error_NWC9f", ji = "tempest_helper_gedut", Ui = "tempest_errorText_ey07q", X = {
|
|
1707
|
+
wrapper: Ri,
|
|
1708
|
+
label: Oi,
|
|
1709
|
+
required: Wi,
|
|
1710
|
+
textarea: Bi,
|
|
1711
|
+
error: zi,
|
|
1712
|
+
helper: ji,
|
|
1713
|
+
errorText: Ui
|
|
1714
|
+
}, Ac = B(function({ label: t, helperText: n, error: r, wrapperClassName: s, className: o, id: i, required: c, ...a }, u) {
|
|
1715
|
+
const d = ue(), p = i ?? d;
|
|
1716
|
+
return /* @__PURE__ */ y("div", { className: g(X.wrapper, r && X.error, s), children: [
|
|
1717
|
+
t && /* @__PURE__ */ y("label", { htmlFor: p, className: X.label, children: [
|
|
1577
1718
|
t,
|
|
1578
|
-
c && /* @__PURE__ */ l("span", { className:
|
|
1719
|
+
c && /* @__PURE__ */ l("span", { className: X.required, children: "*" })
|
|
1579
1720
|
] }),
|
|
1580
1721
|
/* @__PURE__ */ l(
|
|
1581
1722
|
"textarea",
|
|
@@ -1584,29 +1725,29 @@ const ai = "tempest_wrapper_C0gfg", ci = "tempest_label_cWLXP", li = "tempest_re
|
|
|
1584
1725
|
id: p,
|
|
1585
1726
|
"aria-invalid": !!r,
|
|
1586
1727
|
required: c,
|
|
1587
|
-
className: g(
|
|
1728
|
+
className: g(X.textarea, o),
|
|
1588
1729
|
...a
|
|
1589
1730
|
}
|
|
1590
1731
|
),
|
|
1591
|
-
r ? /* @__PURE__ */ l("span", { className:
|
|
1732
|
+
r ? /* @__PURE__ */ l("span", { className: X.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { className: X.helper, children: n }) : null
|
|
1592
1733
|
] });
|
|
1593
|
-
}),
|
|
1594
|
-
trigger:
|
|
1595
|
-
bubble:
|
|
1596
|
-
tempestTooltipIn:
|
|
1597
|
-
top:
|
|
1598
|
-
bottom:
|
|
1599
|
-
left:
|
|
1600
|
-
right:
|
|
1734
|
+
}), qi = "tempest_trigger_Dmc5E", Ji = "tempest_bubble_TPGHB", Gi = "tempest_tempest-tooltip-in_csYeZ", Hi = "tempest_top_m2tnn", Ki = "tempest_bottom_9Twz4", Vi = "tempest_left_UPdrG", Qi = "tempest_right_CV--T", we = {
|
|
1735
|
+
trigger: qi,
|
|
1736
|
+
bubble: Ji,
|
|
1737
|
+
tempestTooltipIn: Gi,
|
|
1738
|
+
top: Hi,
|
|
1739
|
+
bottom: Ki,
|
|
1740
|
+
left: Vi,
|
|
1741
|
+
right: Qi
|
|
1601
1742
|
};
|
|
1602
|
-
function
|
|
1743
|
+
function Fc({
|
|
1603
1744
|
content: e,
|
|
1604
1745
|
placement: t = "top",
|
|
1605
1746
|
children: n,
|
|
1606
1747
|
disabled: r = !1,
|
|
1607
1748
|
openDelay: s = 150
|
|
1608
1749
|
}) {
|
|
1609
|
-
const [o, i] = v(!1), c =
|
|
1750
|
+
const [o, i] = v(!1), c = ue();
|
|
1610
1751
|
let a = null;
|
|
1611
1752
|
function u() {
|
|
1612
1753
|
r || (a && clearTimeout(a), a = setTimeout(() => i(!0), s));
|
|
@@ -1614,44 +1755,44 @@ function rc({
|
|
|
1614
1755
|
function d() {
|
|
1615
1756
|
a && (clearTimeout(a), a = null), i(!1);
|
|
1616
1757
|
}
|
|
1617
|
-
const p =
|
|
1758
|
+
const p = et(n, {
|
|
1618
1759
|
onMouseEnter: u,
|
|
1619
1760
|
onMouseLeave: d,
|
|
1620
1761
|
onFocus: u,
|
|
1621
1762
|
onBlur: d,
|
|
1622
1763
|
"aria-describedby": o ? c : void 0
|
|
1623
1764
|
});
|
|
1624
|
-
return /* @__PURE__ */
|
|
1765
|
+
return /* @__PURE__ */ y("span", { className: we.trigger, children: [
|
|
1625
1766
|
p,
|
|
1626
1767
|
o && /* @__PURE__ */ l(
|
|
1627
1768
|
"span",
|
|
1628
1769
|
{
|
|
1629
1770
|
id: c,
|
|
1630
1771
|
role: "tooltip",
|
|
1631
|
-
className: g(
|
|
1772
|
+
className: g(we.bubble, we[t]),
|
|
1632
1773
|
children: e
|
|
1633
1774
|
}
|
|
1634
1775
|
)
|
|
1635
1776
|
] });
|
|
1636
1777
|
}
|
|
1637
|
-
const
|
|
1638
|
-
container:
|
|
1639
|
-
toast:
|
|
1640
|
-
tempestToastIn:
|
|
1641
|
-
success:
|
|
1642
|
-
warning:
|
|
1643
|
-
error:
|
|
1644
|
-
info:
|
|
1645
|
-
title:
|
|
1646
|
-
description:
|
|
1647
|
-
close:
|
|
1648
|
-
},
|
|
1649
|
-
function
|
|
1650
|
-
const e =
|
|
1778
|
+
const Zi = "tempest_container_x4-Qm", Yi = "tempest_toast_FLdHz", Xi = "tempest_tempest-toast-in_E2d-A", ea = "tempest_success_Oy694", ta = "tempest_warning_84GC8", na = "tempest_error_hrQAA", ra = "tempest_info_eq5bQ", sa = "tempest_title_-H6R2", oa = "tempest_description_-QwfC", ia = "tempest_close_i10-s", re = {
|
|
1779
|
+
container: Zi,
|
|
1780
|
+
toast: Yi,
|
|
1781
|
+
tempestToastIn: Xi,
|
|
1782
|
+
success: ea,
|
|
1783
|
+
warning: ta,
|
|
1784
|
+
error: na,
|
|
1785
|
+
info: ra,
|
|
1786
|
+
title: sa,
|
|
1787
|
+
description: oa,
|
|
1788
|
+
close: ia
|
|
1789
|
+
}, Ue = oe(null);
|
|
1790
|
+
function Rc() {
|
|
1791
|
+
const e = se(Ue);
|
|
1651
1792
|
if (!e) throw new Error("useToast must be used inside a <ToastProvider>");
|
|
1652
1793
|
return e;
|
|
1653
1794
|
}
|
|
1654
|
-
function
|
|
1795
|
+
function Oc({ children: e, defaultDuration: t = 4e3 }) {
|
|
1655
1796
|
const [n, r] = v([]), s = E(0), o = S((a) => {
|
|
1656
1797
|
r((u) => u.filter((d) => d.id !== a));
|
|
1657
1798
|
}, []), i = S(
|
|
@@ -1666,7 +1807,7 @@ function oc({ children: e, defaultDuration: t = 4e3 }) {
|
|
|
1666
1807
|
return r((p) => [...p, d]), u;
|
|
1667
1808
|
},
|
|
1668
1809
|
[t]
|
|
1669
|
-
), c =
|
|
1810
|
+
), c = z(
|
|
1670
1811
|
() => ({
|
|
1671
1812
|
show: i,
|
|
1672
1813
|
dismiss: o,
|
|
@@ -1677,40 +1818,40 @@ function oc({ children: e, defaultDuration: t = 4e3 }) {
|
|
|
1677
1818
|
}),
|
|
1678
1819
|
[i, o]
|
|
1679
1820
|
);
|
|
1680
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ y(Ue.Provider, { value: c, children: [
|
|
1681
1822
|
e,
|
|
1682
|
-
/* @__PURE__ */ l(
|
|
1823
|
+
/* @__PURE__ */ l(aa, { toasts: n, onDismiss: o })
|
|
1683
1824
|
] });
|
|
1684
1825
|
}
|
|
1685
|
-
function
|
|
1686
|
-
return typeof document > "u" ? null :
|
|
1687
|
-
/* @__PURE__ */ l("div", { className:
|
|
1826
|
+
function aa({ toasts: e, onDismiss: t }) {
|
|
1827
|
+
return typeof document > "u" ? null : Ee(
|
|
1828
|
+
/* @__PURE__ */ l("div", { className: re.container, "aria-live": "polite", "aria-atomic": "true", children: e.map((n) => /* @__PURE__ */ l(ca, { toast: n, onDismiss: t }, n.id)) }),
|
|
1688
1829
|
document.body
|
|
1689
1830
|
);
|
|
1690
1831
|
}
|
|
1691
|
-
function
|
|
1832
|
+
function ca({ toast: e, onDismiss: t }) {
|
|
1692
1833
|
return k(() => {
|
|
1693
1834
|
if (!e.duration) return;
|
|
1694
1835
|
const n = setTimeout(() => t(e.id), e.duration);
|
|
1695
1836
|
return () => clearTimeout(n);
|
|
1696
|
-
}, [e.id, e.duration, t]), /* @__PURE__ */
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
e.title && /* @__PURE__ */ l("p", { className:
|
|
1699
|
-
e.description && /* @__PURE__ */ l("p", { className:
|
|
1837
|
+
}, [e.id, e.duration, t]), /* @__PURE__ */ y("div", { className: g(re.toast, re[e.variant]), role: "status", children: [
|
|
1838
|
+
/* @__PURE__ */ y("div", { children: [
|
|
1839
|
+
e.title && /* @__PURE__ */ l("p", { className: re.title, children: e.title }),
|
|
1840
|
+
e.description && /* @__PURE__ */ l("p", { className: re.description, children: e.description })
|
|
1700
1841
|
] }),
|
|
1701
1842
|
/* @__PURE__ */ l(
|
|
1702
1843
|
"button",
|
|
1703
1844
|
{
|
|
1704
1845
|
type: "button",
|
|
1705
|
-
className:
|
|
1846
|
+
className: re.close,
|
|
1706
1847
|
"aria-label": "Fechar notificação",
|
|
1707
1848
|
onClick: () => t(e.id),
|
|
1708
|
-
children: /* @__PURE__ */ l(
|
|
1849
|
+
children: /* @__PURE__ */ l(la, {})
|
|
1709
1850
|
}
|
|
1710
1851
|
)
|
|
1711
1852
|
] });
|
|
1712
1853
|
}
|
|
1713
|
-
function
|
|
1854
|
+
function la() {
|
|
1714
1855
|
return /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
|
|
1715
1856
|
"path",
|
|
1716
1857
|
{
|
|
@@ -1721,12 +1862,12 @@ function Mi() {
|
|
|
1721
1862
|
}
|
|
1722
1863
|
) });
|
|
1723
1864
|
}
|
|
1724
|
-
const
|
|
1725
|
-
scroll:
|
|
1726
|
-
spacer:
|
|
1727
|
-
row:
|
|
1865
|
+
const ua = "tempest_scroll_8Giwl", da = "tempest_spacer_P3Pvl", pa = "tempest_row_Ff0VU", ve = {
|
|
1866
|
+
scroll: ua,
|
|
1867
|
+
spacer: da,
|
|
1868
|
+
row: pa
|
|
1728
1869
|
};
|
|
1729
|
-
function
|
|
1870
|
+
function Wc({
|
|
1730
1871
|
items: e,
|
|
1731
1872
|
itemHeight: t,
|
|
1732
1873
|
renderItem: n,
|
|
@@ -1738,29 +1879,29 @@ function ic({
|
|
|
1738
1879
|
}) {
|
|
1739
1880
|
const a = E(null), [u, d] = v(0), [p, f] = v(0);
|
|
1740
1881
|
k(() => {
|
|
1741
|
-
const
|
|
1742
|
-
if (!
|
|
1743
|
-
const $ = new ResizeObserver(() => f(
|
|
1744
|
-
return $.observe(
|
|
1882
|
+
const b = a.current;
|
|
1883
|
+
if (!b || (f(b.clientHeight), typeof ResizeObserver > "u")) return;
|
|
1884
|
+
const $ = new ResizeObserver(() => f(b.clientHeight));
|
|
1885
|
+
return $.observe(b), () => $.disconnect();
|
|
1745
1886
|
}, []);
|
|
1746
|
-
const h = e.length * t, _ = Math.max(0, Math.floor(u / t) - s), m = Math.ceil(p / t) + s * 2,
|
|
1887
|
+
const h = e.length * t, _ = Math.max(0, Math.floor(u / t) - s), m = Math.ceil(p / t) + s * 2, w = Math.min(e.length, _ + m);
|
|
1747
1888
|
return /* @__PURE__ */ l(
|
|
1748
1889
|
"div",
|
|
1749
1890
|
{
|
|
1750
1891
|
ref: a,
|
|
1751
|
-
className: g(
|
|
1892
|
+
className: g(ve.scroll, i),
|
|
1752
1893
|
style: { height: r, ...c },
|
|
1753
|
-
onScroll: (
|
|
1894
|
+
onScroll: (b) => d(b.target.scrollTop),
|
|
1754
1895
|
role: "list",
|
|
1755
|
-
children: /* @__PURE__ */ l("div", { className:
|
|
1756
|
-
const N = _ + $, L = o ? o(
|
|
1896
|
+
children: /* @__PURE__ */ l("div", { className: ve.spacer, style: { height: h }, children: e.slice(_, w).map((b, $) => {
|
|
1897
|
+
const N = _ + $, L = o ? o(b, N) : N;
|
|
1757
1898
|
return /* @__PURE__ */ l(
|
|
1758
1899
|
"div",
|
|
1759
1900
|
{
|
|
1760
1901
|
role: "listitem",
|
|
1761
|
-
className:
|
|
1902
|
+
className: ve.row,
|
|
1762
1903
|
style: { top: N * t, height: t },
|
|
1763
|
-
children: n(
|
|
1904
|
+
children: n(b, N)
|
|
1764
1905
|
},
|
|
1765
1906
|
L
|
|
1766
1907
|
);
|
|
@@ -1768,19 +1909,19 @@ function ic({
|
|
|
1768
1909
|
}
|
|
1769
1910
|
);
|
|
1770
1911
|
}
|
|
1771
|
-
function
|
|
1912
|
+
function Bc(e, t = 300) {
|
|
1772
1913
|
const [n, r] = v(e);
|
|
1773
1914
|
return k(() => {
|
|
1774
1915
|
const s = setTimeout(() => r(e), t);
|
|
1775
1916
|
return () => clearTimeout(s);
|
|
1776
1917
|
}, [e, t]), n;
|
|
1777
1918
|
}
|
|
1778
|
-
function
|
|
1919
|
+
function zc(e = 1, t = 50) {
|
|
1779
1920
|
const [n, r] = v(e), [s, o] = v(t), i = S(() => r(1), []);
|
|
1780
1921
|
return { page: n, size: s, setPage: r, setSize: o, reset: i };
|
|
1781
1922
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1923
|
+
function jc(e, t, n) {
|
|
1924
|
+
return z(() => {
|
|
1784
1925
|
const r = t.trim().toLowerCase();
|
|
1785
1926
|
return r ? typeof n == "function" ? e.filter((s) => n(s, r)) : e.filter(
|
|
1786
1927
|
(s) => n.some((o) => {
|
|
@@ -1790,7 +1931,7 @@ function lc(e, t, n) {
|
|
|
1790
1931
|
) : e;
|
|
1791
1932
|
}, [e, t, n]);
|
|
1792
1933
|
}
|
|
1793
|
-
function
|
|
1934
|
+
function Uc(e) {
|
|
1794
1935
|
const [t, n] = v(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
|
|
1795
1936
|
return k(() => {
|
|
1796
1937
|
if (typeof window > "u") return;
|
|
@@ -1798,7 +1939,7 @@ function uc(e) {
|
|
|
1798
1939
|
return n(r.matches), r.addEventListener("change", s), () => r.removeEventListener("change", s);
|
|
1799
1940
|
}, [e]), t;
|
|
1800
1941
|
}
|
|
1801
|
-
function
|
|
1942
|
+
function qc() {
|
|
1802
1943
|
const [e, t] = v(
|
|
1803
1944
|
() => typeof navigator > "u" ? !0 : navigator.onLine
|
|
1804
1945
|
);
|
|
@@ -1810,7 +1951,7 @@ function dc() {
|
|
|
1810
1951
|
};
|
|
1811
1952
|
}, []), e;
|
|
1812
1953
|
}
|
|
1813
|
-
function
|
|
1954
|
+
function Jc() {
|
|
1814
1955
|
const [e, t] = v(
|
|
1815
1956
|
() => typeof document > "u" ? "visible" : document.visibilityState
|
|
1816
1957
|
);
|
|
@@ -1820,7 +1961,7 @@ function pc() {
|
|
|
1820
1961
|
return document.addEventListener("visibilitychange", n), () => document.removeEventListener("visibilitychange", n);
|
|
1821
1962
|
}, []), e;
|
|
1822
1963
|
}
|
|
1823
|
-
function
|
|
1964
|
+
function Gc(e, t = {}) {
|
|
1824
1965
|
const [n, r] = v(null), { once: s = !1, root: o, rootMargin: i, threshold: c } = t;
|
|
1825
1966
|
return k(() => {
|
|
1826
1967
|
const a = e.current;
|
|
@@ -1834,7 +1975,7 @@ function fc(e, t = {}) {
|
|
|
1834
1975
|
return u.observe(a), () => u.disconnect();
|
|
1835
1976
|
}, [e, s, o, i, c]), n;
|
|
1836
1977
|
}
|
|
1837
|
-
function
|
|
1978
|
+
function Hc(e) {
|
|
1838
1979
|
const [t, n] = v(null);
|
|
1839
1980
|
return k(() => {
|
|
1840
1981
|
const r = e.current;
|
|
@@ -1848,7 +1989,7 @@ function mc(e) {
|
|
|
1848
1989
|
return s.observe(r), () => s.disconnect();
|
|
1849
1990
|
}, [e]), t;
|
|
1850
1991
|
}
|
|
1851
|
-
function
|
|
1992
|
+
function Kc(e = {}) {
|
|
1852
1993
|
const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s = E(null), o = S(() => {
|
|
1853
1994
|
s.current && (clearTimeout(s.current), s.current = null), r(!1);
|
|
1854
1995
|
}, []);
|
|
@@ -1872,7 +2013,7 @@ function hc(e = {}) {
|
|
|
1872
2013
|
);
|
|
1873
2014
|
return { copied: n, copy: i, reset: o };
|
|
1874
2015
|
}
|
|
1875
|
-
function
|
|
2016
|
+
function fa(e, t) {
|
|
1876
2017
|
if (e.key.toLowerCase() !== t.key.toLowerCase()) return !1;
|
|
1877
2018
|
const n = !!t.ctrl, r = !!t.meta, s = !!t.shift, o = !!t.alt;
|
|
1878
2019
|
if (t.mod) {
|
|
@@ -1880,17 +2021,17 @@ function Fi(e, t) {
|
|
|
1880
2021
|
} else if (e.ctrlKey !== n || e.metaKey !== r) return !1;
|
|
1881
2022
|
return !(e.shiftKey !== s || e.altKey !== o);
|
|
1882
2023
|
}
|
|
1883
|
-
function
|
|
2024
|
+
function ma(e) {
|
|
1884
2025
|
if (!(e instanceof HTMLElement)) return !1;
|
|
1885
2026
|
const t = e.tagName.toLowerCase();
|
|
1886
2027
|
return t === "input" || t === "textarea" || t === "select" ? !0 : e.isContentEditable;
|
|
1887
2028
|
}
|
|
1888
|
-
function
|
|
2029
|
+
function Vc(e, t, n = {}) {
|
|
1889
2030
|
const { disabled: r = !1, ignoreInput: s = !0 } = n;
|
|
1890
2031
|
k(() => {
|
|
1891
2032
|
if (r || typeof window > "u") return;
|
|
1892
2033
|
const o = (i) => {
|
|
1893
|
-
s &&
|
|
2034
|
+
s && ma(i.target) || fa(i, e) && t(i);
|
|
1894
2035
|
};
|
|
1895
2036
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
1896
2037
|
}, [
|
|
@@ -1905,7 +2046,7 @@ function _c(e, t, n = {}) {
|
|
|
1905
2046
|
t
|
|
1906
2047
|
]);
|
|
1907
2048
|
}
|
|
1908
|
-
function
|
|
2049
|
+
function Qc() {
|
|
1909
2050
|
const [e, t] = v(null), [n, r] = v(!1);
|
|
1910
2051
|
k(() => {
|
|
1911
2052
|
if (typeof window > "u") return;
|
|
@@ -1930,7 +2071,7 @@ function gc() {
|
|
|
1930
2071
|
prompt: s
|
|
1931
2072
|
};
|
|
1932
2073
|
}
|
|
1933
|
-
const
|
|
2074
|
+
const De = [
|
|
1934
2075
|
"mousemove",
|
|
1935
2076
|
"mousedown",
|
|
1936
2077
|
"keydown",
|
|
@@ -1938,7 +2079,7 @@ const Ce = [
|
|
|
1938
2079
|
"wheel",
|
|
1939
2080
|
"scroll"
|
|
1940
2081
|
];
|
|
1941
|
-
function
|
|
2082
|
+
function Zc(e = 6e4) {
|
|
1942
2083
|
const [t, n] = v(!1);
|
|
1943
2084
|
return k(() => {
|
|
1944
2085
|
if (typeof window > "u") return;
|
|
@@ -1946,16 +2087,16 @@ function yc(e = 6e4) {
|
|
|
1946
2087
|
function s() {
|
|
1947
2088
|
n(!1), clearTimeout(r), r = setTimeout(() => n(!0), e);
|
|
1948
2089
|
}
|
|
1949
|
-
for (const o of
|
|
2090
|
+
for (const o of De)
|
|
1950
2091
|
window.addEventListener(o, s, { passive: !0 });
|
|
1951
2092
|
return () => {
|
|
1952
2093
|
clearTimeout(r);
|
|
1953
|
-
for (const o of
|
|
2094
|
+
for (const o of De)
|
|
1954
2095
|
window.removeEventListener(o, s);
|
|
1955
2096
|
};
|
|
1956
2097
|
}, [e]), t;
|
|
1957
2098
|
}
|
|
1958
|
-
function
|
|
2099
|
+
function Yc(e = {}) {
|
|
1959
2100
|
const { watch: t = !1, disabled: n = !1, ...r } = e, [s, o] = v({
|
|
1960
2101
|
loading: !n,
|
|
1961
2102
|
error: null,
|
|
@@ -1994,7 +2135,7 @@ function wc(e = {}) {
|
|
|
1994
2135
|
r.timeout
|
|
1995
2136
|
]), s;
|
|
1996
2137
|
}
|
|
1997
|
-
function
|
|
2138
|
+
function Xc(e) {
|
|
1998
2139
|
k(() => {
|
|
1999
2140
|
if (!e || typeof document > "u") return;
|
|
2000
2141
|
const t = document.body, n = t.style.overflow;
|
|
@@ -2003,7 +2144,7 @@ function bc(e) {
|
|
|
2003
2144
|
};
|
|
2004
2145
|
}, [e]);
|
|
2005
2146
|
}
|
|
2006
|
-
const
|
|
2147
|
+
const ha = [
|
|
2007
2148
|
"a[href]",
|
|
2008
2149
|
"button:not([disabled])",
|
|
2009
2150
|
"textarea:not([disabled])",
|
|
@@ -2011,7 +2152,7 @@ const Wi = [
|
|
|
2011
2152
|
"select:not([disabled])",
|
|
2012
2153
|
"[tabindex]:not([tabindex='-1'])"
|
|
2013
2154
|
].join(",");
|
|
2014
|
-
function
|
|
2155
|
+
function el(e, t) {
|
|
2015
2156
|
k(() => {
|
|
2016
2157
|
if (!t) return;
|
|
2017
2158
|
const n = e.current;
|
|
@@ -2019,7 +2160,7 @@ function vc(e, t) {
|
|
|
2019
2160
|
const r = document.activeElement;
|
|
2020
2161
|
function s() {
|
|
2021
2162
|
return Array.from(
|
|
2022
|
-
n?.querySelectorAll(
|
|
2163
|
+
n?.querySelectorAll(ha) ?? []
|
|
2023
2164
|
).filter((c) => {
|
|
2024
2165
|
if (c.hasAttribute("aria-hidden")) return !1;
|
|
2025
2166
|
const a = typeof window < "u" ? window.getComputedStyle(c) : null;
|
|
@@ -2041,35 +2182,35 @@ function vc(e, t) {
|
|
|
2041
2182
|
};
|
|
2042
2183
|
}, [e, t]);
|
|
2043
2184
|
}
|
|
2044
|
-
function
|
|
2185
|
+
function tl(e) {
|
|
2045
2186
|
const t = E(e);
|
|
2046
2187
|
return t.current = e, S((...n) => t.current(...n), []);
|
|
2047
2188
|
}
|
|
2048
|
-
function
|
|
2189
|
+
function xe(e, t) {
|
|
2049
2190
|
if (Object.is(e, t)) return !0;
|
|
2050
2191
|
if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
2051
2192
|
if (Array.isArray(e) && Array.isArray(t))
|
|
2052
|
-
return e.length !== t.length ? !1 : e.every((s, o) =>
|
|
2193
|
+
return e.length !== t.length ? !1 : e.every((s, o) => xe(s, t[o]));
|
|
2053
2194
|
const n = Object.keys(e), r = Object.keys(t);
|
|
2054
2195
|
return n.length !== r.length ? !1 : n.every(
|
|
2055
|
-
(s) =>
|
|
2196
|
+
(s) => xe(e[s], t[s])
|
|
2056
2197
|
);
|
|
2057
2198
|
}
|
|
2058
|
-
function
|
|
2199
|
+
function nl(e) {
|
|
2059
2200
|
const t = E(e);
|
|
2060
|
-
return
|
|
2201
|
+
return xe(t.current, e) || (t.current = e), t.current;
|
|
2061
2202
|
}
|
|
2062
|
-
function
|
|
2203
|
+
function _a(e, t, n) {
|
|
2063
2204
|
const r = new URL(t, e.endsWith("/") ? e : `${e}/`);
|
|
2064
2205
|
if (n)
|
|
2065
2206
|
for (const [s, o] of Object.entries(n))
|
|
2066
2207
|
o != null && r.searchParams.set(s, String(o));
|
|
2067
2208
|
return r.toString();
|
|
2068
2209
|
}
|
|
2069
|
-
function
|
|
2210
|
+
function ga(e) {
|
|
2070
2211
|
return typeof FormData < "u" && e instanceof FormData;
|
|
2071
2212
|
}
|
|
2072
|
-
async function
|
|
2213
|
+
async function Me(e) {
|
|
2073
2214
|
let t = null;
|
|
2074
2215
|
try {
|
|
2075
2216
|
t = await e.clone().json();
|
|
@@ -2087,14 +2228,14 @@ async function Le(e) {
|
|
|
2087
2228
|
body: t
|
|
2088
2229
|
};
|
|
2089
2230
|
}
|
|
2090
|
-
function
|
|
2231
|
+
function rl(e) {
|
|
2091
2232
|
const t = e.fetcher ?? globalThis.fetch.bind(globalThis);
|
|
2092
2233
|
function n() {
|
|
2093
2234
|
const i = e.getToken?.();
|
|
2094
2235
|
return i ? { Authorization: `Bearer ${i}` } : {};
|
|
2095
2236
|
}
|
|
2096
2237
|
async function r(i, c) {
|
|
2097
|
-
const { body: a, params: u, headers: d, ...p } = c, f =
|
|
2238
|
+
const { body: a, params: u, headers: d, ...p } = c, f = ga(a), h = {
|
|
2098
2239
|
...f ? {} : { "Content-Type": "application/json" },
|
|
2099
2240
|
...e.headers,
|
|
2100
2241
|
...n(),
|
|
@@ -2105,7 +2246,7 @@ function kc(e) {
|
|
|
2105
2246
|
credentials: e.withCredentials ? "include" : p.credentials,
|
|
2106
2247
|
body: a == null ? void 0 : f ? a : JSON.stringify(a)
|
|
2107
2248
|
};
|
|
2108
|
-
return t(
|
|
2249
|
+
return t(_a(e.baseURL, i, u), _);
|
|
2109
2250
|
}
|
|
2110
2251
|
async function s(i, c = {}) {
|
|
2111
2252
|
let a = await r(i, c);
|
|
@@ -2114,12 +2255,12 @@ function kc(e) {
|
|
|
2114
2255
|
try {
|
|
2115
2256
|
await e.refresh(), a = await r(i, c);
|
|
2116
2257
|
} catch {
|
|
2117
|
-
throw await e.onUnauthorized?.(a), await
|
|
2258
|
+
throw await e.onUnauthorized?.(a), await Me(a);
|
|
2118
2259
|
}
|
|
2119
2260
|
else
|
|
2120
2261
|
await e.onUnauthorized?.(a);
|
|
2121
2262
|
if (!a.ok)
|
|
2122
|
-
throw await
|
|
2263
|
+
throw await Me(a);
|
|
2123
2264
|
return a.status === 204 ? void 0 : (a.headers.get("content-type") ?? "").includes("application/json") ? await a.json() : await a.text();
|
|
2124
2265
|
}
|
|
2125
2266
|
async function o(i, c, a = "POST") {
|
|
@@ -2135,7 +2276,7 @@ function kc(e) {
|
|
|
2135
2276
|
upload: o
|
|
2136
2277
|
};
|
|
2137
2278
|
}
|
|
2138
|
-
function
|
|
2279
|
+
function sl(e, t, n) {
|
|
2139
2280
|
const r = e.safeParse(t);
|
|
2140
2281
|
if (r.success)
|
|
2141
2282
|
return r.data;
|
|
@@ -2151,7 +2292,7 @@ Raw payload: ${JSON.stringify(t, null, 2)}`
|
|
|
2151
2292
|
}
|
|
2152
2293
|
throw new Error(`Resposta inválida do servidor (${n}).`);
|
|
2153
2294
|
}
|
|
2154
|
-
function
|
|
2295
|
+
function ya(e) {
|
|
2155
2296
|
if (!e) return null;
|
|
2156
2297
|
try {
|
|
2157
2298
|
return JSON.parse(e);
|
|
@@ -2159,7 +2300,7 @@ function ji(e) {
|
|
|
2159
2300
|
return e;
|
|
2160
2301
|
}
|
|
2161
2302
|
}
|
|
2162
|
-
function
|
|
2303
|
+
function ol(e) {
|
|
2163
2304
|
const {
|
|
2164
2305
|
url: t,
|
|
2165
2306
|
body: n,
|
|
@@ -2180,14 +2321,14 @@ function Sc(e) {
|
|
|
2180
2321
|
f.open(r, t), f.withCredentials = i;
|
|
2181
2322
|
const h = o?.(), _ = { ...s };
|
|
2182
2323
|
h && !("Authorization" in _) && (_.Authorization = `Bearer ${h}`);
|
|
2183
|
-
for (const [
|
|
2184
|
-
f.setRequestHeader(
|
|
2185
|
-
c && (f.upload.onprogress = (
|
|
2324
|
+
for (const [w, b] of Object.entries(_))
|
|
2325
|
+
f.setRequestHeader(w, b);
|
|
2326
|
+
c && (f.upload.onprogress = (w) => {
|
|
2186
2327
|
c({
|
|
2187
|
-
loaded:
|
|
2188
|
-
total:
|
|
2189
|
-
fraction:
|
|
2190
|
-
lengthComputable:
|
|
2328
|
+
loaded: w.loaded,
|
|
2329
|
+
total: w.total,
|
|
2330
|
+
fraction: w.lengthComputable ? w.loaded / w.total : null,
|
|
2331
|
+
lengthComputable: w.lengthComputable
|
|
2191
2332
|
});
|
|
2192
2333
|
});
|
|
2193
2334
|
function m() {
|
|
@@ -2195,9 +2336,9 @@ function Sc(e) {
|
|
|
2195
2336
|
}
|
|
2196
2337
|
a?.addEventListener("abort", m), f.onload = () => {
|
|
2197
2338
|
a?.removeEventListener("abort", m);
|
|
2198
|
-
const
|
|
2199
|
-
if (!
|
|
2200
|
-
const $ =
|
|
2339
|
+
const w = f.status >= 200 && f.status < 300, b = f.getResponseHeader("content-type") ?? "";
|
|
2340
|
+
if (!w) {
|
|
2341
|
+
const $ = ya(f.responseText), N = (typeof $ == "object" && $ !== null ? $.detail ?? $.message : void 0) ?? `Erro ${f.status}`, L = {
|
|
2201
2342
|
status: f.status,
|
|
2202
2343
|
detail: String(N),
|
|
2203
2344
|
body: $
|
|
@@ -2209,7 +2350,7 @@ function Sc(e) {
|
|
|
2209
2350
|
d(void 0);
|
|
2210
2351
|
return;
|
|
2211
2352
|
}
|
|
2212
|
-
if (
|
|
2353
|
+
if (b.includes("application/json"))
|
|
2213
2354
|
try {
|
|
2214
2355
|
d(u(f.responseText));
|
|
2215
2356
|
} catch ($) {
|
|
@@ -2224,7 +2365,7 @@ function Sc(e) {
|
|
|
2224
2365
|
}, f.send(n);
|
|
2225
2366
|
});
|
|
2226
2367
|
}
|
|
2227
|
-
function
|
|
2368
|
+
function ba(e, t) {
|
|
2228
2369
|
return new Promise((n, r) => {
|
|
2229
2370
|
if (t?.aborted) {
|
|
2230
2371
|
r(new DOMException("Aborted", "AbortError"));
|
|
@@ -2240,7 +2381,7 @@ function Ui(e, t) {
|
|
|
2240
2381
|
);
|
|
2241
2382
|
});
|
|
2242
2383
|
}
|
|
2243
|
-
async function
|
|
2384
|
+
async function il(e, t = {}) {
|
|
2244
2385
|
const {
|
|
2245
2386
|
retries: n = 3,
|
|
2246
2387
|
initialDelay: r = 300,
|
|
@@ -2258,28 +2399,28 @@ async function Ec(e, t = {}) {
|
|
|
2258
2399
|
if (u = d, a += 1, a >= n || !o(d, a))
|
|
2259
2400
|
throw d;
|
|
2260
2401
|
const p = Math.min(r * 2 ** (a - 1), s);
|
|
2261
|
-
i?.({ attempt: a, delay: p, error: d }), await
|
|
2402
|
+
i?.({ attempt: a, delay: p, error: d }), await ba(p, c);
|
|
2262
2403
|
}
|
|
2263
2404
|
}
|
|
2264
2405
|
throw u;
|
|
2265
2406
|
}
|
|
2266
|
-
function
|
|
2407
|
+
function al() {
|
|
2267
2408
|
return typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
2268
2409
|
const t = Math.random() * 16;
|
|
2269
2410
|
return (e === "x" ? Math.floor(t) : Math.floor(t) & 3 | 8).toString(16);
|
|
2270
2411
|
});
|
|
2271
2412
|
}
|
|
2272
|
-
function
|
|
2413
|
+
function cl(e, t) {
|
|
2273
2414
|
const { interval: n, disabled: r = !1, stopWhen: s, onError: o } = t, [i, c] = v(null), [a, u] = v(null), [d, p] = v(!r), f = E(r), h = E(!1), _ = E(null);
|
|
2274
2415
|
async function m() {
|
|
2275
2416
|
if (!(f.current || h.current)) {
|
|
2276
2417
|
h.current = !0;
|
|
2277
2418
|
try {
|
|
2278
|
-
const
|
|
2419
|
+
const w = await e();
|
|
2279
2420
|
if (f.current) return;
|
|
2280
|
-
c(
|
|
2281
|
-
} catch (
|
|
2282
|
-
f.current || (u(
|
|
2421
|
+
c(w), u(null), s?.(w) && (f.current = !0);
|
|
2422
|
+
} catch (w) {
|
|
2423
|
+
f.current || (u(w), o?.(w));
|
|
2283
2424
|
} finally {
|
|
2284
2425
|
h.current = !1, p(!1), f.current || (_.current = setTimeout(m, n));
|
|
2285
2426
|
}
|
|
@@ -2305,10 +2446,10 @@ function Cc(e, t) {
|
|
|
2305
2446
|
}
|
|
2306
2447
|
};
|
|
2307
2448
|
}
|
|
2308
|
-
function
|
|
2449
|
+
function ll(e = {}) {
|
|
2309
2450
|
const t = e.name ?? "tempest-auth", n = e.storage === "session" ? () => sessionStorage : () => localStorage;
|
|
2310
|
-
return
|
|
2311
|
-
|
|
2451
|
+
return ot()(
|
|
2452
|
+
it(
|
|
2312
2453
|
(r) => ({
|
|
2313
2454
|
user: e.initialUser ?? null,
|
|
2314
2455
|
token: e.initialToken ?? null,
|
|
@@ -2320,7 +2461,7 @@ function Lc(e = {}) {
|
|
|
2320
2461
|
}),
|
|
2321
2462
|
{
|
|
2322
2463
|
name: t,
|
|
2323
|
-
storage:
|
|
2464
|
+
storage: at(n),
|
|
2324
2465
|
partialize: (r) => ({ user: r.user, token: r.token }),
|
|
2325
2466
|
onRehydrateStorage: () => (r) => {
|
|
2326
2467
|
r && (r.isAuthenticated = !!r.token);
|
|
@@ -2329,30 +2470,30 @@ function Lc(e = {}) {
|
|
|
2329
2470
|
)
|
|
2330
2471
|
);
|
|
2331
2472
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return /* @__PURE__ */ l(
|
|
2473
|
+
function ul({ isAuthenticated: e, children: t, fallback: n }) {
|
|
2474
|
+
return /* @__PURE__ */ l(Se, { children: e ? t : n });
|
|
2334
2475
|
}
|
|
2335
|
-
function
|
|
2476
|
+
function Pe(e) {
|
|
2336
2477
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = t.length % 4 === 0 ? "" : "=".repeat(4 - t.length % 4);
|
|
2337
2478
|
return typeof atob < "u" ? atob(t + n) : Buffer.from(t + n, "base64").toString("binary");
|
|
2338
2479
|
}
|
|
2339
|
-
function
|
|
2480
|
+
function wa(e) {
|
|
2340
2481
|
const t = e.split(".");
|
|
2341
2482
|
if (t.length !== 3) throw new Error("Invalid JWT: must contain three segments.");
|
|
2342
2483
|
const [n, r, s] = t;
|
|
2343
2484
|
try {
|
|
2344
2485
|
return {
|
|
2345
|
-
header: JSON.parse(
|
|
2346
|
-
payload: JSON.parse(
|
|
2486
|
+
header: JSON.parse(Pe(n)),
|
|
2487
|
+
payload: JSON.parse(Pe(r)),
|
|
2347
2488
|
signature: s
|
|
2348
2489
|
};
|
|
2349
2490
|
} catch {
|
|
2350
2491
|
throw new Error("Invalid JWT: header or payload is not valid JSON.");
|
|
2351
2492
|
}
|
|
2352
2493
|
}
|
|
2353
|
-
function
|
|
2494
|
+
function dl(e, t = 0) {
|
|
2354
2495
|
try {
|
|
2355
|
-
const { payload: n } =
|
|
2496
|
+
const { payload: n } = wa(e);
|
|
2356
2497
|
if (typeof n.exp != "number") return !0;
|
|
2357
2498
|
const r = Math.floor(Date.now() / 1e3);
|
|
2358
2499
|
return n.exp <= r + t;
|
|
@@ -2360,7 +2501,7 @@ function Dc(e, t = 0) {
|
|
|
2360
2501
|
return !0;
|
|
2361
2502
|
}
|
|
2362
2503
|
}
|
|
2363
|
-
function
|
|
2504
|
+
function pl(e, t = {}) {
|
|
2364
2505
|
const { retries: n = 3, initialDelay: r = 400, reloadOnFinalFailure: s = !0 } = t;
|
|
2365
2506
|
async function o(i = 1) {
|
|
2366
2507
|
try {
|
|
@@ -2371,9 +2512,9 @@ function Mc(e, t = {}) {
|
|
|
2371
2512
|
return await new Promise((a) => setTimeout(a, r * 2 ** (i - 1))), o(i + 1);
|
|
2372
2513
|
}
|
|
2373
2514
|
}
|
|
2374
|
-
return
|
|
2515
|
+
return tt(o);
|
|
2375
2516
|
}
|
|
2376
|
-
function
|
|
2517
|
+
function fl(e) {
|
|
2377
2518
|
let t = null;
|
|
2378
2519
|
return () => t || (t = (async () => {
|
|
2379
2520
|
try {
|
|
@@ -2383,34 +2524,34 @@ function Pc(e) {
|
|
|
2383
2524
|
}
|
|
2384
2525
|
})(), t);
|
|
2385
2526
|
}
|
|
2386
|
-
const
|
|
2527
|
+
const va = {
|
|
2387
2528
|
SHORT: 30 * 1e3,
|
|
2388
2529
|
DEFAULT: 300 * 1e3,
|
|
2389
2530
|
LONG: 1800 * 1e3,
|
|
2390
2531
|
INFINITE: 1 / 0
|
|
2391
|
-
},
|
|
2532
|
+
}, $a = {
|
|
2392
2533
|
SHORT: 300 * 1e3,
|
|
2393
2534
|
DEFAULT: 1800 * 1e3,
|
|
2394
2535
|
LONG: 3600 * 1e3
|
|
2395
|
-
},
|
|
2536
|
+
}, ml = {
|
|
2396
2537
|
REALTIME: 5 * 1e3,
|
|
2397
2538
|
FAST: 30 * 1e3,
|
|
2398
2539
|
DEFAULT: 60 * 1e3,
|
|
2399
2540
|
SLOW: 300 * 1e3
|
|
2400
2541
|
};
|
|
2401
|
-
function
|
|
2542
|
+
function hl(e, t) {
|
|
2402
2543
|
const n = { all: [e] };
|
|
2403
2544
|
for (const [r, s] of Object.entries(t))
|
|
2404
2545
|
typeof s == "function" ? n[r] = (...o) => [e, ...s(...o)] : n[r] = [e, ...s];
|
|
2405
2546
|
return n;
|
|
2406
2547
|
}
|
|
2407
|
-
function
|
|
2548
|
+
function _l({ children: e, client: t, defaultOptions: n }) {
|
|
2408
2549
|
const [r] = v(
|
|
2409
|
-
() => t ?? new
|
|
2550
|
+
() => t ?? new rt({
|
|
2410
2551
|
defaultOptions: {
|
|
2411
2552
|
queries: {
|
|
2412
|
-
staleTime:
|
|
2413
|
-
gcTime:
|
|
2553
|
+
staleTime: va.DEFAULT,
|
|
2554
|
+
gcTime: $a.DEFAULT,
|
|
2414
2555
|
retry: 1,
|
|
2415
2556
|
refetchOnWindowFocus: !1,
|
|
2416
2557
|
...n?.queries ?? {}
|
|
@@ -2422,16 +2563,16 @@ function Fc({ children: e, client: t, defaultOptions: n }) {
|
|
|
2422
2563
|
}
|
|
2423
2564
|
})
|
|
2424
2565
|
);
|
|
2425
|
-
return /* @__PURE__ */ l(
|
|
2566
|
+
return /* @__PURE__ */ l(st, { client: r, children: e });
|
|
2426
2567
|
}
|
|
2427
|
-
function
|
|
2568
|
+
function Na(e) {
|
|
2428
2569
|
try {
|
|
2429
2570
|
return JSON.parse(e);
|
|
2430
2571
|
} catch {
|
|
2431
2572
|
return e;
|
|
2432
2573
|
}
|
|
2433
2574
|
}
|
|
2434
|
-
function
|
|
2575
|
+
function ka(e, t = {}) {
|
|
2435
2576
|
const {
|
|
2436
2577
|
withCredentials: n = !1,
|
|
2437
2578
|
namedEvents: r = [],
|
|
@@ -2439,15 +2580,15 @@ function Ki(e, t = {}) {
|
|
|
2439
2580
|
maxRetries: o = 10,
|
|
2440
2581
|
initialBackoff: i = 1e3,
|
|
2441
2582
|
maxBackoff: c = 3e4,
|
|
2442
|
-
parser: a =
|
|
2583
|
+
parser: a = Na,
|
|
2443
2584
|
onOpen: u,
|
|
2444
2585
|
onMessage: d,
|
|
2445
2586
|
onError: p,
|
|
2446
2587
|
onStatusChange: f
|
|
2447
2588
|
} = t;
|
|
2448
|
-
let h = null, _ = null, m = 0,
|
|
2589
|
+
let h = null, _ = null, m = 0, w = "idle", b = !1;
|
|
2449
2590
|
function $(x) {
|
|
2450
|
-
|
|
2591
|
+
w !== x && (w = x, f?.(x));
|
|
2451
2592
|
}
|
|
2452
2593
|
function N(x, I) {
|
|
2453
2594
|
s.includes(x) || d?.({
|
|
@@ -2458,7 +2599,7 @@ function Ki(e, t = {}) {
|
|
|
2458
2599
|
});
|
|
2459
2600
|
}
|
|
2460
2601
|
function L() {
|
|
2461
|
-
if (
|
|
2602
|
+
if (b) return;
|
|
2462
2603
|
if (m >= o) {
|
|
2463
2604
|
$("error");
|
|
2464
2605
|
return;
|
|
@@ -2467,14 +2608,14 @@ function Ki(e, t = {}) {
|
|
|
2467
2608
|
m += 1, _ = setTimeout(D, x);
|
|
2468
2609
|
}
|
|
2469
2610
|
function D() {
|
|
2470
|
-
if (
|
|
2611
|
+
if (b) return;
|
|
2471
2612
|
h && h.close(), $("connecting");
|
|
2472
2613
|
const x = new EventSource(e, { withCredentials: n });
|
|
2473
2614
|
h = x, x.onopen = () => {
|
|
2474
2615
|
m = 0, $("open"), u?.();
|
|
2475
2616
|
}, x.onmessage = (I) => N("message", I);
|
|
2476
2617
|
for (const I of r)
|
|
2477
|
-
x.addEventListener(I, (
|
|
2618
|
+
x.addEventListener(I, (ye) => N(I, ye));
|
|
2478
2619
|
for (const I of s)
|
|
2479
2620
|
x.addEventListener(I, () => {
|
|
2480
2621
|
});
|
|
@@ -2482,28 +2623,28 @@ function Ki(e, t = {}) {
|
|
|
2482
2623
|
p?.(I), x.close(), h = null, $("closed"), L();
|
|
2483
2624
|
};
|
|
2484
2625
|
}
|
|
2485
|
-
function
|
|
2486
|
-
|
|
2626
|
+
function _e() {
|
|
2627
|
+
b = !0, _ && (clearTimeout(_), _ = null), m = 0, h && (h.close(), h = null), $("closed");
|
|
2487
2628
|
}
|
|
2488
|
-
function
|
|
2489
|
-
_ && (clearTimeout(_), _ = null), m = 0,
|
|
2629
|
+
function ge() {
|
|
2630
|
+
_ && (clearTimeout(_), _ = null), m = 0, b = !1, D();
|
|
2490
2631
|
}
|
|
2491
2632
|
return D(), {
|
|
2492
|
-
close:
|
|
2493
|
-
reconnect:
|
|
2633
|
+
close: _e,
|
|
2634
|
+
reconnect: ge,
|
|
2494
2635
|
get status() {
|
|
2495
|
-
return
|
|
2636
|
+
return w;
|
|
2496
2637
|
}
|
|
2497
2638
|
};
|
|
2498
2639
|
}
|
|
2499
|
-
function
|
|
2640
|
+
function gl(e, t = {}) {
|
|
2500
2641
|
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = E(null), d = E(r);
|
|
2501
2642
|
return d.current = r, k(() => {
|
|
2502
2643
|
if (!n || !e) {
|
|
2503
2644
|
i("idle");
|
|
2504
2645
|
return;
|
|
2505
2646
|
}
|
|
2506
|
-
const p =
|
|
2647
|
+
const p = ka(e, {
|
|
2507
2648
|
...s,
|
|
2508
2649
|
onStatusChange: i,
|
|
2509
2650
|
onMessage: (f) => {
|
|
@@ -2519,36 +2660,36 @@ function Oc(e, t = {}) {
|
|
|
2519
2660
|
reconnect: () => u.current?.()
|
|
2520
2661
|
};
|
|
2521
2662
|
}
|
|
2522
|
-
function
|
|
2663
|
+
function xa(e) {
|
|
2523
2664
|
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);
|
|
2524
2665
|
for (let i = 0; i < r.length; i++)
|
|
2525
2666
|
o[i] = r.charCodeAt(i);
|
|
2526
2667
|
return o;
|
|
2527
2668
|
}
|
|
2528
|
-
function
|
|
2669
|
+
function fe() {
|
|
2529
2670
|
return typeof window < "u" && "serviceWorker" in navigator && "PushManager" in window && "Notification" in window;
|
|
2530
2671
|
}
|
|
2531
|
-
class
|
|
2672
|
+
class Ae extends Error {
|
|
2532
2673
|
constructor() {
|
|
2533
2674
|
super("Web Push não suportado neste navegador."), this.name = "WebPushUnsupportedError";
|
|
2534
2675
|
}
|
|
2535
2676
|
}
|
|
2536
|
-
class
|
|
2677
|
+
class Sa extends Error {
|
|
2537
2678
|
constructor() {
|
|
2538
2679
|
super("Permissão de notificação negada pelo usuário."), this.name = "WebPushPermissionDeniedError";
|
|
2539
2680
|
}
|
|
2540
2681
|
}
|
|
2541
|
-
class
|
|
2682
|
+
class Ea {
|
|
2542
2683
|
config;
|
|
2543
2684
|
constructor(t) {
|
|
2544
2685
|
this.config = t;
|
|
2545
2686
|
}
|
|
2546
2687
|
/** Whether the runtime supports the Push API. */
|
|
2547
2688
|
static isSupported() {
|
|
2548
|
-
return
|
|
2689
|
+
return fe();
|
|
2549
2690
|
}
|
|
2550
2691
|
async registration() {
|
|
2551
|
-
if (!
|
|
2692
|
+
if (!fe()) throw new Ae();
|
|
2552
2693
|
return this.config.getRegistration ? await this.config.getRegistration() : await navigator.serviceWorker.ready;
|
|
2553
2694
|
}
|
|
2554
2695
|
/** Current `Notification.permission` value, or `"unsupported"`. */
|
|
@@ -2562,7 +2703,7 @@ class Yi {
|
|
|
2562
2703
|
* @returns The resulting `NotificationPermission` value.
|
|
2563
2704
|
*/
|
|
2564
2705
|
async requestPermission() {
|
|
2565
|
-
if (typeof Notification > "u") throw new
|
|
2706
|
+
if (typeof Notification > "u") throw new Ae();
|
|
2566
2707
|
return Notification.requestPermission();
|
|
2567
2708
|
}
|
|
2568
2709
|
/** Return the active push subscription, if any. */
|
|
@@ -2571,7 +2712,7 @@ class Yi {
|
|
|
2571
2712
|
}
|
|
2572
2713
|
/** True when a subscription already exists for this browser. */
|
|
2573
2714
|
async isSubscribed() {
|
|
2574
|
-
return
|
|
2715
|
+
return fe() ? await this.getSubscription() !== null : !1;
|
|
2575
2716
|
}
|
|
2576
2717
|
/**
|
|
2577
2718
|
* Subscribe the current device. Requests permission, creates a push
|
|
@@ -2583,13 +2724,13 @@ class Yi {
|
|
|
2583
2724
|
* @throws {WebPushPermissionDeniedError} If the user denies the prompt.
|
|
2584
2725
|
*/
|
|
2585
2726
|
async subscribe() {
|
|
2586
|
-
if (await this.requestPermission() !== "granted") throw new
|
|
2727
|
+
if (await this.requestPermission() !== "granted") throw new Sa();
|
|
2587
2728
|
const n = await this.registration(), r = await n.pushManager.getSubscription();
|
|
2588
2729
|
if (r)
|
|
2589
2730
|
return await this.config.onSubscribe(r.toJSON()), r;
|
|
2590
2731
|
const s = await n.pushManager.subscribe({
|
|
2591
2732
|
userVisibleOnly: !0,
|
|
2592
|
-
applicationServerKey:
|
|
2733
|
+
applicationServerKey: xa(this.config.vapidPublicKey)
|
|
2593
2734
|
});
|
|
2594
2735
|
return await this.config.onSubscribe(s.toJSON()), s;
|
|
2595
2736
|
}
|
|
@@ -2604,18 +2745,18 @@ class Yi {
|
|
|
2604
2745
|
return t ? (this.config.onUnsubscribe && await this.config.onUnsubscribe(t.toJSON()), t.unsubscribe()) : !1;
|
|
2605
2746
|
}
|
|
2606
2747
|
}
|
|
2607
|
-
function
|
|
2748
|
+
function yl(e) {
|
|
2608
2749
|
const t = E(e);
|
|
2609
2750
|
t.current = e;
|
|
2610
|
-
const n =
|
|
2611
|
-
() => new
|
|
2751
|
+
const n = z(
|
|
2752
|
+
() => new Ea({
|
|
2612
2753
|
vapidPublicKey: e.vapidPublicKey,
|
|
2613
2754
|
onSubscribe: (m) => t.current.onSubscribe(m),
|
|
2614
2755
|
onUnsubscribe: (m) => t.current.onUnsubscribe?.(m),
|
|
2615
2756
|
getRegistration: e.getRegistration
|
|
2616
2757
|
}),
|
|
2617
2758
|
[e.vapidPublicKey, e.getRegistration]
|
|
2618
|
-
), [r] = v(() =>
|
|
2759
|
+
), [r] = v(() => fe()), [s, o] = v(
|
|
2619
2760
|
() => n.permission()
|
|
2620
2761
|
), [i, c] = v(!1), [a, u] = v(!1), [d, p] = v(null), f = S(async () => {
|
|
2621
2762
|
if (r) {
|
|
@@ -2665,7 +2806,7 @@ function Wc(e) {
|
|
|
2665
2806
|
refresh: f
|
|
2666
2807
|
};
|
|
2667
2808
|
}
|
|
2668
|
-
async function
|
|
2809
|
+
async function bl(e) {
|
|
2669
2810
|
if (typeof navigator > "u" || !("serviceWorker" in navigator))
|
|
2670
2811
|
return null;
|
|
2671
2812
|
try {
|
|
@@ -2682,10 +2823,10 @@ async function Bc(e) {
|
|
|
2682
2823
|
return e.onError?.(t), null;
|
|
2683
2824
|
}
|
|
2684
2825
|
}
|
|
2685
|
-
function
|
|
2826
|
+
function wl(e) {
|
|
2686
2827
|
e.postMessage({ type: "SKIP_WAITING" });
|
|
2687
2828
|
}
|
|
2688
|
-
async function
|
|
2829
|
+
async function vl() {
|
|
2689
2830
|
if (typeof navigator > "u" || !("serviceWorker" in navigator)) return 0;
|
|
2690
2831
|
const e = await navigator.serviceWorker.getRegistrations();
|
|
2691
2832
|
let t = 0;
|
|
@@ -2693,11 +2834,11 @@ async function jc() {
|
|
|
2693
2834
|
await n.unregister() && (t += 1);
|
|
2694
2835
|
return t;
|
|
2695
2836
|
}
|
|
2696
|
-
function
|
|
2837
|
+
function Ce() {
|
|
2697
2838
|
return globalThis;
|
|
2698
2839
|
}
|
|
2699
|
-
function
|
|
2700
|
-
const t =
|
|
2840
|
+
function $l(e = {}) {
|
|
2841
|
+
const t = Ce(), { defaultTitle: n = "Notificação", defaultIcon: r, defaultBadge: s, transform: o } = e;
|
|
2701
2842
|
t.addEventListener("push", (i) => {
|
|
2702
2843
|
if (!i.data) return;
|
|
2703
2844
|
let c;
|
|
@@ -2719,8 +2860,8 @@ function Uc(e = {}) {
|
|
|
2719
2860
|
i.waitUntil(t.registration.showNotification(u, d));
|
|
2720
2861
|
});
|
|
2721
2862
|
}
|
|
2722
|
-
function
|
|
2723
|
-
const t =
|
|
2863
|
+
function Nl(e = {}) {
|
|
2864
|
+
const t = Ce(), n = e.resolveUrl ?? ((r) => {
|
|
2724
2865
|
if (typeof r == "string") return r;
|
|
2725
2866
|
if (r && typeof r == "object" && "url" in r) {
|
|
2726
2867
|
const s = r.url;
|
|
@@ -2745,13 +2886,13 @@ function qc(e = {}) {
|
|
|
2745
2886
|
);
|
|
2746
2887
|
});
|
|
2747
2888
|
}
|
|
2748
|
-
function
|
|
2749
|
-
const e =
|
|
2889
|
+
function kl() {
|
|
2890
|
+
const e = Ce();
|
|
2750
2891
|
e.addEventListener("message", (t) => {
|
|
2751
2892
|
t.data?.type === "SKIP_WAITING" && e.skipWaiting();
|
|
2752
2893
|
});
|
|
2753
2894
|
}
|
|
2754
|
-
function
|
|
2895
|
+
function qe() {
|
|
2755
2896
|
let e = null;
|
|
2756
2897
|
async function t(r, {
|
|
2757
2898
|
volume: s = 1,
|
|
@@ -2774,19 +2915,19 @@ function ze() {
|
|
|
2774
2915
|
}
|
|
2775
2916
|
return { play: t, stop: n, current: () => e };
|
|
2776
2917
|
}
|
|
2777
|
-
let
|
|
2778
|
-
function
|
|
2779
|
-
return
|
|
2918
|
+
let $e = null;
|
|
2919
|
+
function Je() {
|
|
2920
|
+
return $e || ($e = qe()), $e;
|
|
2780
2921
|
}
|
|
2781
|
-
async function
|
|
2782
|
-
return
|
|
2922
|
+
async function xl(e, t) {
|
|
2923
|
+
return Je().play(e, t);
|
|
2783
2924
|
}
|
|
2784
|
-
function
|
|
2785
|
-
|
|
2925
|
+
function Sl() {
|
|
2926
|
+
Je().stop();
|
|
2786
2927
|
}
|
|
2787
|
-
function
|
|
2928
|
+
function El() {
|
|
2788
2929
|
const e = E(null), [t, n] = v(!1);
|
|
2789
|
-
e.current || (e.current =
|
|
2930
|
+
e.current || (e.current = qe()), k(() => () => {
|
|
2790
2931
|
e.current?.stop();
|
|
2791
2932
|
}, []);
|
|
2792
2933
|
const r = S(async (o, i) => {
|
|
@@ -2796,23 +2937,23 @@ function Kc() {
|
|
|
2796
2937
|
}, []);
|
|
2797
2938
|
return { play: r, stop: s, unlocked: t };
|
|
2798
2939
|
}
|
|
2799
|
-
class
|
|
2940
|
+
class Ta extends ct {
|
|
2800
2941
|
store;
|
|
2801
2942
|
constructor(t, n, r, s) {
|
|
2802
2943
|
super(t), this.version(n).stores({ [r]: s }), this.store = this.table(r);
|
|
2803
2944
|
}
|
|
2804
2945
|
}
|
|
2805
|
-
function
|
|
2806
|
-
const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new
|
|
2946
|
+
function Tl(e) {
|
|
2947
|
+
const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new Ta(t, n, r, s), a = c.store;
|
|
2807
2948
|
function u(p, f) {
|
|
2808
2949
|
return !i || !f ? p : { ...p, [i]: f };
|
|
2809
2950
|
}
|
|
2810
2951
|
async function d(p, f = {}) {
|
|
2811
|
-
const { orderBy: h = o, reverse: _ = !1, limit: m, offset:
|
|
2952
|
+
const { orderBy: h = o, reverse: _ = !1, limit: m, offset: w, filter: b } = f;
|
|
2812
2953
|
let $ = i && p ? a.where(i).equals(p) : a.toCollection();
|
|
2813
|
-
|
|
2954
|
+
b && ($ = $.filter(b));
|
|
2814
2955
|
let N = h === o ? await $.toArray() : await $.sortBy(h);
|
|
2815
|
-
return _ && (N = N.reverse()),
|
|
2956
|
+
return _ && (N = N.reverse()), w && (N = N.slice(w)), typeof m == "number" && (N = N.slice(0, m)), N;
|
|
2816
2957
|
}
|
|
2817
2958
|
return {
|
|
2818
2959
|
put: (p, f) => a.put(u(p, f)),
|
|
@@ -2837,13 +2978,13 @@ function Vc(e) {
|
|
|
2837
2978
|
db: c
|
|
2838
2979
|
};
|
|
2839
2980
|
}
|
|
2840
|
-
function
|
|
2981
|
+
function Ca(e = [], t = []) {
|
|
2841
2982
|
if (e.length !== t.length) return !0;
|
|
2842
2983
|
for (let n = 0; n < e.length; n++)
|
|
2843
2984
|
if (!Object.is(e[n], t[n])) return !0;
|
|
2844
2985
|
return !1;
|
|
2845
2986
|
}
|
|
2846
|
-
class
|
|
2987
|
+
class Cl extends nt {
|
|
2847
2988
|
state = { error: null };
|
|
2848
2989
|
static getDerivedStateFromError(t) {
|
|
2849
2990
|
return { error: t };
|
|
@@ -2852,7 +2993,7 @@ class Qc extends Xe {
|
|
|
2852
2993
|
this.props.onError?.(t, n);
|
|
2853
2994
|
}
|
|
2854
2995
|
componentDidUpdate(t) {
|
|
2855
|
-
this.state.error &&
|
|
2996
|
+
this.state.error && Ca(t.resetKeys, this.props.resetKeys) && this.reset();
|
|
2856
2997
|
}
|
|
2857
2998
|
reset = () => {
|
|
2858
2999
|
this.setState({ error: null });
|
|
@@ -2864,7 +3005,7 @@ class Qc extends Xe {
|
|
|
2864
3005
|
return typeof n == "function" ? n({ error: t, reset: this.reset }) : n;
|
|
2865
3006
|
}
|
|
2866
3007
|
}
|
|
2867
|
-
function
|
|
3008
|
+
function Ll() {
|
|
2868
3009
|
const [, e] = v(null);
|
|
2869
3010
|
return S((t) => {
|
|
2870
3011
|
e(() => {
|
|
@@ -2872,7 +3013,7 @@ function Yc() {
|
|
|
2872
3013
|
});
|
|
2873
3014
|
}, []);
|
|
2874
3015
|
}
|
|
2875
|
-
function
|
|
3016
|
+
function Il(e, t) {
|
|
2876
3017
|
const n = e.safeParse(t);
|
|
2877
3018
|
if (n.success)
|
|
2878
3019
|
return { success: !0, data: n.data, errors: {} };
|
|
@@ -2883,7 +3024,7 @@ function Zc(e, t) {
|
|
|
2883
3024
|
}
|
|
2884
3025
|
return { success: !1, errors: r };
|
|
2885
3026
|
}
|
|
2886
|
-
function
|
|
3027
|
+
function La(e) {
|
|
2887
3028
|
return async (t, n, r) => {
|
|
2888
3029
|
const s = e.safeParse(t);
|
|
2889
3030
|
if (s.success)
|
|
@@ -2896,17 +3037,17 @@ function ea(e) {
|
|
|
2896
3037
|
return { values: {}, errors: o };
|
|
2897
3038
|
};
|
|
2898
3039
|
}
|
|
2899
|
-
function
|
|
2900
|
-
return
|
|
3040
|
+
function Dl(e, t = {}) {
|
|
3041
|
+
return lt({
|
|
2901
3042
|
...t,
|
|
2902
|
-
resolver:
|
|
3043
|
+
resolver: La(e)
|
|
2903
3044
|
});
|
|
2904
3045
|
}
|
|
2905
|
-
function
|
|
3046
|
+
function de(e) {
|
|
2906
3047
|
return e.replace(/\D/g, "");
|
|
2907
3048
|
}
|
|
2908
|
-
function
|
|
2909
|
-
const t =
|
|
3049
|
+
function Ml(e) {
|
|
3050
|
+
const t = de(e);
|
|
2910
3051
|
if (t.length !== 11 || /^(\d)\1+$/.test(t)) return !1;
|
|
2911
3052
|
const n = t.split("").map(Number);
|
|
2912
3053
|
let r = 0;
|
|
@@ -2917,8 +3058,8 @@ function el(e) {
|
|
|
2917
3058
|
for (let o = 0; o < 10; o++) r += n[o] * (11 - o);
|
|
2918
3059
|
return s = r * 10 % 11, s === 10 && (s = 0), s === n[10];
|
|
2919
3060
|
}
|
|
2920
|
-
function
|
|
2921
|
-
const t =
|
|
3061
|
+
function Pl(e) {
|
|
3062
|
+
const t = de(e);
|
|
2922
3063
|
if (t.length !== 14 || /^(\d)\1+$/.test(t)) return !1;
|
|
2923
3064
|
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];
|
|
2924
3065
|
let o = 0;
|
|
@@ -2929,50 +3070,50 @@ function tl(e) {
|
|
|
2929
3070
|
for (let c = 0; c < 13; c++) o += n[c] * s[c];
|
|
2930
3071
|
return i = o % 11, i = i < 2 ? 0 : 11 - i, i === n[13];
|
|
2931
3072
|
}
|
|
2932
|
-
function
|
|
2933
|
-
return
|
|
3073
|
+
function Ia(e) {
|
|
3074
|
+
return de(e).slice(0, 8).replace(/(\d{5})(\d)/, "$1-$2");
|
|
2934
3075
|
}
|
|
2935
|
-
function
|
|
2936
|
-
return
|
|
3076
|
+
function Da(e) {
|
|
3077
|
+
return de(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");
|
|
2937
3078
|
}
|
|
2938
|
-
function
|
|
2939
|
-
return
|
|
3079
|
+
function Al(e) {
|
|
3080
|
+
return de(e);
|
|
2940
3081
|
}
|
|
2941
|
-
function
|
|
3082
|
+
function Fl(e) {
|
|
2942
3083
|
return new Intl.NumberFormat("pt-BR", {
|
|
2943
3084
|
style: "currency",
|
|
2944
3085
|
currency: "BRL"
|
|
2945
3086
|
}).format(e);
|
|
2946
3087
|
}
|
|
2947
|
-
function
|
|
3088
|
+
function Rl(e) {
|
|
2948
3089
|
const t = typeof e == "string" ? new Date(e) : e;
|
|
2949
3090
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR").format(t);
|
|
2950
3091
|
}
|
|
2951
|
-
function
|
|
3092
|
+
function Ol(e) {
|
|
2952
3093
|
const t = typeof e == "string" ? new Date(e) : e;
|
|
2953
3094
|
return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR", {
|
|
2954
3095
|
dateStyle: "short",
|
|
2955
3096
|
timeStyle: "short"
|
|
2956
3097
|
}).format(t);
|
|
2957
3098
|
}
|
|
2958
|
-
function
|
|
3099
|
+
function Ma(e) {
|
|
2959
3100
|
const t = e.replace(/\D/g, "").slice(0, 11);
|
|
2960
3101
|
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");
|
|
2961
3102
|
}
|
|
2962
|
-
function
|
|
3103
|
+
function Pa(e) {
|
|
2963
3104
|
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");
|
|
2964
3105
|
}
|
|
2965
|
-
function
|
|
3106
|
+
function Wl(e) {
|
|
2966
3107
|
return new Intl.NumberFormat("pt-BR", {
|
|
2967
3108
|
style: "percent",
|
|
2968
3109
|
minimumFractionDigits: 1,
|
|
2969
3110
|
maximumFractionDigits: 1
|
|
2970
3111
|
}).format(e);
|
|
2971
3112
|
}
|
|
2972
|
-
function
|
|
2973
|
-
return
|
|
3113
|
+
function he(e, t = "numeric") {
|
|
3114
|
+
return B(function({ value: r, onChange: s, ...o }, i) {
|
|
2974
3115
|
return /* @__PURE__ */ l(
|
|
2975
|
-
|
|
3116
|
+
Te,
|
|
2976
3117
|
{
|
|
2977
3118
|
...o,
|
|
2978
3119
|
ref: i,
|
|
@@ -2983,28 +3124,28 @@ function fe(e, t = "numeric") {
|
|
|
2983
3124
|
);
|
|
2984
3125
|
});
|
|
2985
3126
|
}
|
|
2986
|
-
const
|
|
2987
|
-
function
|
|
3127
|
+
const Bl = he(Pa), zl = he(Da), jl = he(Ma, "tel"), Ul = he(Ia);
|
|
3128
|
+
function Aa(e, t, n) {
|
|
2988
3129
|
return new Intl.NumberFormat(t, { style: "currency", currency: n }).format(e / 100);
|
|
2989
3130
|
}
|
|
2990
|
-
function
|
|
3131
|
+
function Fa(e) {
|
|
2991
3132
|
const t = e.replace(/\D/g, "");
|
|
2992
3133
|
return t ? Number.parseInt(t, 10) : 0;
|
|
2993
3134
|
}
|
|
2994
|
-
const
|
|
3135
|
+
const ql = B(function({ value: t, onChange: n, currency: r = "BRL", locale: s = "pt-BR", ...o }, i) {
|
|
2995
3136
|
return /* @__PURE__ */ l(
|
|
2996
|
-
|
|
3137
|
+
Te,
|
|
2997
3138
|
{
|
|
2998
3139
|
...o,
|
|
2999
3140
|
ref: i,
|
|
3000
3141
|
type: "text",
|
|
3001
3142
|
inputMode: "numeric",
|
|
3002
|
-
value:
|
|
3003
|
-
onChange: (c) => n(
|
|
3143
|
+
value: Aa(t || 0, s, r),
|
|
3144
|
+
onChange: (c) => n(Fa(c.target.value))
|
|
3004
3145
|
}
|
|
3005
3146
|
);
|
|
3006
3147
|
});
|
|
3007
|
-
function
|
|
3148
|
+
function Jl() {
|
|
3008
3149
|
const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i = S(async (a) => {
|
|
3009
3150
|
const u = a.replace(/\D/g, "");
|
|
3010
3151
|
if (u.length !== 8)
|
|
@@ -3023,14 +3164,14 @@ function pl() {
|
|
|
3023
3164
|
}, []);
|
|
3024
3165
|
return { loading: e, error: n, data: s, lookup: i, reset: c };
|
|
3025
3166
|
}
|
|
3026
|
-
function
|
|
3167
|
+
function Ra(e) {
|
|
3027
3168
|
try {
|
|
3028
3169
|
return JSON.parse(e);
|
|
3029
3170
|
} catch {
|
|
3030
3171
|
return e;
|
|
3031
3172
|
}
|
|
3032
3173
|
}
|
|
3033
|
-
function
|
|
3174
|
+
function Oa(e, t = {}) {
|
|
3034
3175
|
const {
|
|
3035
3176
|
protocols: n,
|
|
3036
3177
|
maxRetries: r = 10,
|
|
@@ -3038,78 +3179,78 @@ function ca(e, t = {}) {
|
|
|
3038
3179
|
maxBackoff: o = 3e4,
|
|
3039
3180
|
pingInterval: i = 0,
|
|
3040
3181
|
pingPayload: c = JSON.stringify({ type: "ping" }),
|
|
3041
|
-
parser: a =
|
|
3182
|
+
parser: a = Ra,
|
|
3042
3183
|
onOpen: u,
|
|
3043
3184
|
onMessage: d,
|
|
3044
3185
|
onClose: p,
|
|
3045
3186
|
onError: f,
|
|
3046
3187
|
onStatusChange: h
|
|
3047
3188
|
} = t;
|
|
3048
|
-
let _ = null, m = null,
|
|
3189
|
+
let _ = null, m = null, w = null, b = 0, $ = "idle", N = !1;
|
|
3049
3190
|
function L(T) {
|
|
3050
3191
|
$ !== T && ($ = T, h?.(T));
|
|
3051
3192
|
}
|
|
3052
3193
|
function D() {
|
|
3053
|
-
|
|
3194
|
+
w && (clearInterval(w), w = null);
|
|
3054
3195
|
}
|
|
3055
|
-
function
|
|
3056
|
-
!i || i <= 0 || (D(),
|
|
3196
|
+
function _e() {
|
|
3197
|
+
!i || i <= 0 || (D(), w = setInterval(() => {
|
|
3057
3198
|
_?.readyState === WebSocket.OPEN && _.send(c);
|
|
3058
3199
|
}, i));
|
|
3059
3200
|
}
|
|
3060
|
-
function
|
|
3201
|
+
function ge() {
|
|
3061
3202
|
if (N) return;
|
|
3062
|
-
if (
|
|
3203
|
+
if (b >= r) {
|
|
3063
3204
|
L("error");
|
|
3064
3205
|
return;
|
|
3065
3206
|
}
|
|
3066
|
-
const T = Math.min(s * 2 **
|
|
3067
|
-
|
|
3207
|
+
const T = Math.min(s * 2 ** b, o);
|
|
3208
|
+
b += 1, m = setTimeout(x, T);
|
|
3068
3209
|
}
|
|
3069
3210
|
function x() {
|
|
3070
3211
|
if (N) return;
|
|
3071
3212
|
_ && (_.onopen = null, _.onmessage = null, _.onclose = null, _.onerror = null, _.close()), L("connecting");
|
|
3072
3213
|
const T = new WebSocket(e, n);
|
|
3073
3214
|
_ = T, T.onopen = (P) => {
|
|
3074
|
-
|
|
3215
|
+
b = 0, L("open"), _e(), u?.(P);
|
|
3075
3216
|
}, T.onmessage = (P) => {
|
|
3076
|
-
const
|
|
3217
|
+
const Xe = typeof P.data == "string" ? P.data : "";
|
|
3077
3218
|
d?.({
|
|
3078
|
-
data: a(
|
|
3219
|
+
data: a(Xe),
|
|
3079
3220
|
raw: P
|
|
3080
3221
|
});
|
|
3081
3222
|
}, T.onerror = (P) => {
|
|
3082
3223
|
f?.(P);
|
|
3083
3224
|
}, T.onclose = (P) => {
|
|
3084
|
-
D(), p?.(P), _ = null, L("closed"), !N && !P.wasClean &&
|
|
3225
|
+
D(), p?.(P), _ = null, L("closed"), !N && !P.wasClean && ge();
|
|
3085
3226
|
};
|
|
3086
3227
|
}
|
|
3087
3228
|
function I(T) {
|
|
3088
3229
|
return _?.readyState !== WebSocket.OPEN ? !1 : (_.send(T), !0);
|
|
3089
3230
|
}
|
|
3090
|
-
function
|
|
3091
|
-
N = !0, m && (clearTimeout(m), m = null), D(),
|
|
3231
|
+
function ye(T, P) {
|
|
3232
|
+
N = !0, m && (clearTimeout(m), m = null), D(), b = 0, _ && (L("closing"), _.close(T, P), _ = null), L("closed");
|
|
3092
3233
|
}
|
|
3093
|
-
function
|
|
3094
|
-
m && (clearTimeout(m), m = null),
|
|
3234
|
+
function Ye() {
|
|
3235
|
+
m && (clearTimeout(m), m = null), b = 0, N = !1, x();
|
|
3095
3236
|
}
|
|
3096
3237
|
return x(), {
|
|
3097
3238
|
send: I,
|
|
3098
|
-
close:
|
|
3099
|
-
reconnect:
|
|
3239
|
+
close: ye,
|
|
3240
|
+
reconnect: Ye,
|
|
3100
3241
|
get status() {
|
|
3101
3242
|
return $;
|
|
3102
3243
|
}
|
|
3103
3244
|
};
|
|
3104
3245
|
}
|
|
3105
|
-
function
|
|
3246
|
+
function Gl(e, t = {}) {
|
|
3106
3247
|
const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = E(null), d = E(r);
|
|
3107
3248
|
d.current = r, k(() => {
|
|
3108
3249
|
if (!n || !e) {
|
|
3109
3250
|
i("idle");
|
|
3110
3251
|
return;
|
|
3111
3252
|
}
|
|
3112
|
-
const h =
|
|
3253
|
+
const h = Oa(e, {
|
|
3113
3254
|
...s,
|
|
3114
3255
|
onStatusChange: i,
|
|
3115
3256
|
onMessage: (_) => {
|
|
@@ -3128,11 +3269,11 @@ function fl(e, t = {}) {
|
|
|
3128
3269
|
}, []);
|
|
3129
3270
|
return { status: o, lastMessage: c, send: p, reconnect: f };
|
|
3130
3271
|
}
|
|
3131
|
-
const
|
|
3132
|
-
function
|
|
3272
|
+
const Ge = oe(null);
|
|
3273
|
+
function Fe(e) {
|
|
3133
3274
|
return e === "dark" || e === "light" ? e : typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3134
3275
|
}
|
|
3135
|
-
function
|
|
3276
|
+
function Wa(e) {
|
|
3136
3277
|
if (!e || typeof window > "u") return null;
|
|
3137
3278
|
try {
|
|
3138
3279
|
const t = window.localStorage.getItem(e);
|
|
@@ -3141,7 +3282,7 @@ function la(e) {
|
|
|
3141
3282
|
return null;
|
|
3142
3283
|
}
|
|
3143
3284
|
}
|
|
3144
|
-
function
|
|
3285
|
+
function Hl({
|
|
3145
3286
|
children: e,
|
|
3146
3287
|
defaultTheme: t = "system",
|
|
3147
3288
|
storageKey: n = "tempest-theme",
|
|
@@ -3149,18 +3290,18 @@ function ml({
|
|
|
3149
3290
|
attribute: s = "data-tempest-theme"
|
|
3150
3291
|
}) {
|
|
3151
3292
|
const [o, i] = v(
|
|
3152
|
-
() =>
|
|
3153
|
-
), [c, a] = v(() =>
|
|
3293
|
+
() => Wa(n) ?? t
|
|
3294
|
+
), [c, a] = v(() => Fe(o)), u = E(r);
|
|
3154
3295
|
u.current = r, k(() => {
|
|
3155
3296
|
const h = u.current?.() ?? document.documentElement;
|
|
3156
3297
|
if (!h) return;
|
|
3157
|
-
const _ =
|
|
3298
|
+
const _ = Fe(o);
|
|
3158
3299
|
h.setAttribute(s, _), a(_);
|
|
3159
3300
|
}, [o, s]), k(() => {
|
|
3160
3301
|
if (o !== "system" || typeof window > "u") return;
|
|
3161
3302
|
const h = window.matchMedia("(prefers-color-scheme: dark)"), _ = () => {
|
|
3162
|
-
const m = u.current?.() ?? document.documentElement,
|
|
3163
|
-
m?.setAttribute(s,
|
|
3303
|
+
const m = u.current?.() ?? document.documentElement, w = h.matches ? "dark" : "light";
|
|
3304
|
+
m?.setAttribute(s, w), a(w);
|
|
3164
3305
|
};
|
|
3165
3306
|
return h.addEventListener("change", _), () => h.removeEventListener("change", _);
|
|
3166
3307
|
}, [o, s]);
|
|
@@ -3175,18 +3316,18 @@ function ml({
|
|
|
3175
3316
|
[n]
|
|
3176
3317
|
), p = S(() => {
|
|
3177
3318
|
d(c === "dark" ? "light" : "dark");
|
|
3178
|
-
}, [c, d]), f =
|
|
3319
|
+
}, [c, d]), f = z(
|
|
3179
3320
|
() => ({ theme: o, resolvedTheme: c, setTheme: d, toggle: p }),
|
|
3180
3321
|
[o, c, d, p]
|
|
3181
3322
|
);
|
|
3182
|
-
return /* @__PURE__ */ l(
|
|
3323
|
+
return /* @__PURE__ */ l(Ge.Provider, { value: f, children: e });
|
|
3183
3324
|
}
|
|
3184
|
-
function
|
|
3185
|
-
const e =
|
|
3325
|
+
function Kl() {
|
|
3326
|
+
const e = se(Ge);
|
|
3186
3327
|
if (!e) throw new Error("useTheme must be used inside a <ThemeProvider>");
|
|
3187
3328
|
return e;
|
|
3188
3329
|
}
|
|
3189
|
-
function
|
|
3330
|
+
function Vl(e = {}) {
|
|
3190
3331
|
const { storageKey: t = "tempest-theme", defaultTheme: n = "system" } = e;
|
|
3191
3332
|
if (typeof window > "u")
|
|
3192
3333
|
return n === "dark" ? "dark" : "light";
|
|
@@ -3199,7 +3340,7 @@ function _l(e = {}) {
|
|
|
3199
3340
|
const s = r ?? n;
|
|
3200
3341
|
return s === "dark" || s === "light" ? s : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3201
3342
|
}
|
|
3202
|
-
function
|
|
3343
|
+
function Ql(e = {}) {
|
|
3203
3344
|
const t = e.storageKey ?? "tempest-theme", n = e.defaultTheme ?? "system";
|
|
3204
3345
|
return `
|
|
3205
3346
|
(function(){try{
|
|
@@ -3212,13 +3353,13 @@ function gl(e = {}) {
|
|
|
3212
3353
|
}catch(e){}})();
|
|
3213
3354
|
`.trim();
|
|
3214
3355
|
}
|
|
3215
|
-
function
|
|
3356
|
+
function Re(e, t) {
|
|
3216
3357
|
return t ? e.replace(/\{(\w+)\}/g, (n, r) => {
|
|
3217
3358
|
const s = t[r];
|
|
3218
3359
|
return s === void 0 ? `{${r}}` : String(s);
|
|
3219
3360
|
}) : e;
|
|
3220
3361
|
}
|
|
3221
|
-
function
|
|
3362
|
+
function Ne(e, t, n, r) {
|
|
3222
3363
|
const s = e[t]?.[r];
|
|
3223
3364
|
if (s !== void 0) return s;
|
|
3224
3365
|
if (n) {
|
|
@@ -3227,15 +3368,15 @@ function ve(e, t, n, r) {
|
|
|
3227
3368
|
}
|
|
3228
3369
|
return null;
|
|
3229
3370
|
}
|
|
3230
|
-
function
|
|
3371
|
+
function He(e) {
|
|
3231
3372
|
const { locale: t, fallbackLocale: n = null, messages: r } = e;
|
|
3232
3373
|
function s(a, u) {
|
|
3233
|
-
const d =
|
|
3234
|
-
return d === null ? a :
|
|
3374
|
+
const d = Ne(r, t, n, a);
|
|
3375
|
+
return d === null ? a : Re(d, u);
|
|
3235
3376
|
}
|
|
3236
3377
|
function o(a, u, d) {
|
|
3237
|
-
const f =
|
|
3238
|
-
return f === null ? a :
|
|
3378
|
+
const f = Ne(r, t, n, `${a}${u === 1 ? "_one" : "_other"}`) ?? Ne(r, t, n, a);
|
|
3379
|
+
return f === null ? a : Re(f, { count: u, ...d ?? {} });
|
|
3239
3380
|
}
|
|
3240
3381
|
function i(a, u) {
|
|
3241
3382
|
return new Intl.NumberFormat(t, u).format(a);
|
|
@@ -3251,15 +3392,15 @@ function qe(e) {
|
|
|
3251
3392
|
plural: o,
|
|
3252
3393
|
formatNumber: i,
|
|
3253
3394
|
formatDate: c,
|
|
3254
|
-
withLocale: (a) =>
|
|
3395
|
+
withLocale: (a) => He({
|
|
3255
3396
|
locale: a,
|
|
3256
3397
|
fallbackLocale: n ?? void 0,
|
|
3257
3398
|
messages: r
|
|
3258
3399
|
})
|
|
3259
3400
|
};
|
|
3260
3401
|
}
|
|
3261
|
-
const
|
|
3262
|
-
function
|
|
3402
|
+
const Ke = oe(null);
|
|
3403
|
+
function Ba(e, t) {
|
|
3263
3404
|
if (!e || typeof window > "u") return null;
|
|
3264
3405
|
try {
|
|
3265
3406
|
const n = window.localStorage.getItem(e);
|
|
@@ -3268,15 +3409,15 @@ function ua(e, t) {
|
|
|
3268
3409
|
return null;
|
|
3269
3410
|
}
|
|
3270
3411
|
}
|
|
3271
|
-
function
|
|
3412
|
+
function Zl({
|
|
3272
3413
|
children: e,
|
|
3273
3414
|
locale: t,
|
|
3274
3415
|
fallbackLocale: n,
|
|
3275
3416
|
messages: r,
|
|
3276
3417
|
storageKey: s = "tempest-locale"
|
|
3277
3418
|
}) {
|
|
3278
|
-
const o =
|
|
3279
|
-
() =>
|
|
3419
|
+
const o = z(() => Object.keys(r), [r]), [i, c] = v(
|
|
3420
|
+
() => Ba(s, o) ?? t
|
|
3280
3421
|
);
|
|
3281
3422
|
k(() => {
|
|
3282
3423
|
typeof document < "u" && document.documentElement.setAttribute("lang", i);
|
|
@@ -3290,29 +3431,29 @@ function yl({
|
|
|
3290
3431
|
}
|
|
3291
3432
|
},
|
|
3292
3433
|
[s]
|
|
3293
|
-
), u =
|
|
3294
|
-
return /* @__PURE__ */ l(
|
|
3434
|
+
), u = z(() => ({ ...He({ locale: i, fallbackLocale: n, messages: r }), setLocale: a, availableLocales: o }), [i, n, r, a, o]);
|
|
3435
|
+
return /* @__PURE__ */ l(Ke.Provider, { value: u, children: e });
|
|
3295
3436
|
}
|
|
3296
|
-
function
|
|
3297
|
-
const e =
|
|
3437
|
+
function za() {
|
|
3438
|
+
const e = se(Ke);
|
|
3298
3439
|
if (!e) throw new Error("useI18n must be used inside an <I18nProvider>");
|
|
3299
3440
|
return e;
|
|
3300
3441
|
}
|
|
3301
|
-
function
|
|
3302
|
-
return
|
|
3442
|
+
function Yl() {
|
|
3443
|
+
return za().t;
|
|
3303
3444
|
}
|
|
3304
|
-
const
|
|
3305
|
-
function
|
|
3306
|
-
return
|
|
3445
|
+
const Oe = ["debug", "info", "warn", "error"];
|
|
3446
|
+
function ja(e, t) {
|
|
3447
|
+
return Oe.indexOf(t) >= Oe.indexOf(e);
|
|
3307
3448
|
}
|
|
3308
|
-
const
|
|
3449
|
+
const Ua = ({ level: e, message: t, context: n }) => {
|
|
3309
3450
|
const r = e === "debug" ? "log" : e;
|
|
3310
3451
|
n ? console[r](t, n) : console[r](t);
|
|
3311
3452
|
};
|
|
3312
|
-
function
|
|
3313
|
-
const t = e.level ?? "info", n = e.sinks ?? [
|
|
3453
|
+
function qa(e = {}) {
|
|
3454
|
+
const t = e.level ?? "info", n = e.sinks ?? [Ua], r = e.namespace ?? "";
|
|
3314
3455
|
function s(o, i, c) {
|
|
3315
|
-
if (!
|
|
3456
|
+
if (!ja(t, o)) return;
|
|
3316
3457
|
const a = {
|
|
3317
3458
|
level: o,
|
|
3318
3459
|
message: r ? `[${r}] ${i}` : i,
|
|
@@ -3330,25 +3471,25 @@ function ma(e = {}) {
|
|
|
3330
3471
|
info: (o, i) => s("info", o, i),
|
|
3331
3472
|
warn: (o, i) => s("warn", o, i),
|
|
3332
3473
|
error: (o, i) => s("error", o, i),
|
|
3333
|
-
child: (o) =>
|
|
3474
|
+
child: (o) => qa({
|
|
3334
3475
|
level: t,
|
|
3335
3476
|
sinks: n,
|
|
3336
3477
|
namespace: r ? `${r}:${o}` : o
|
|
3337
3478
|
})
|
|
3338
3479
|
};
|
|
3339
3480
|
}
|
|
3340
|
-
const
|
|
3341
|
-
function
|
|
3481
|
+
const Ve = oe(null);
|
|
3482
|
+
function Xl({ adapter: e, children: t }) {
|
|
3342
3483
|
k(() => (e.init?.(), () => {
|
|
3343
3484
|
e.flush?.();
|
|
3344
3485
|
}), [e]);
|
|
3345
|
-
const n =
|
|
3346
|
-
return /* @__PURE__ */ l(
|
|
3486
|
+
const n = z(() => e, [e]);
|
|
3487
|
+
return /* @__PURE__ */ l(Ve.Provider, { value: n, children: t });
|
|
3347
3488
|
}
|
|
3348
|
-
function
|
|
3349
|
-
return
|
|
3489
|
+
function eu() {
|
|
3490
|
+
return se(Ve);
|
|
3350
3491
|
}
|
|
3351
|
-
const
|
|
3492
|
+
const tu = {
|
|
3352
3493
|
identify(e) {
|
|
3353
3494
|
console.info("[telemetry] identify", e);
|
|
3354
3495
|
},
|
|
@@ -3359,7 +3500,7 @@ const $l = {
|
|
|
3359
3500
|
console.error("[telemetry] exception", e, t);
|
|
3360
3501
|
}
|
|
3361
3502
|
};
|
|
3362
|
-
function
|
|
3503
|
+
function Ja(e) {
|
|
3363
3504
|
if (e === null) return null;
|
|
3364
3505
|
const { id: t, email: n, name: r, traits: s } = e;
|
|
3365
3506
|
return {
|
|
@@ -3369,14 +3510,14 @@ function ha(e) {
|
|
|
3369
3510
|
...s ?? null
|
|
3370
3511
|
};
|
|
3371
3512
|
}
|
|
3372
|
-
function
|
|
3513
|
+
function nu(e) {
|
|
3373
3514
|
const { sentry: t, initOptions: n, flushTimeout: r = 2e3, breadcrumbCategory: s = "app" } = e;
|
|
3374
3515
|
return {
|
|
3375
3516
|
init() {
|
|
3376
3517
|
n && t.init && t.init(n);
|
|
3377
3518
|
},
|
|
3378
3519
|
identify(o) {
|
|
3379
|
-
t.setUser(
|
|
3520
|
+
t.setUser(Ja(o));
|
|
3380
3521
|
},
|
|
3381
3522
|
track(o) {
|
|
3382
3523
|
t.addBreadcrumb({
|
|
@@ -3394,7 +3535,7 @@ function Nl(e) {
|
|
|
3394
3535
|
}
|
|
3395
3536
|
};
|
|
3396
3537
|
}
|
|
3397
|
-
function
|
|
3538
|
+
function Ga(e) {
|
|
3398
3539
|
const { email: t, name: n, traits: r } = e;
|
|
3399
3540
|
return {
|
|
3400
3541
|
...t !== void 0 ? { email: t } : null,
|
|
@@ -3402,7 +3543,7 @@ function _a(e) {
|
|
|
3402
3543
|
...r ?? null
|
|
3403
3544
|
};
|
|
3404
3545
|
}
|
|
3405
|
-
function
|
|
3546
|
+
function ru(e) {
|
|
3406
3547
|
const { posthog: t, init: n } = e;
|
|
3407
3548
|
return {
|
|
3408
3549
|
init() {
|
|
@@ -3413,7 +3554,7 @@ function kl(e) {
|
|
|
3413
3554
|
t.reset?.();
|
|
3414
3555
|
return;
|
|
3415
3556
|
}
|
|
3416
|
-
r.id !== void 0 && t.identify(r.id,
|
|
3557
|
+
r.id !== void 0 && t.identify(r.id, Ga(r));
|
|
3417
3558
|
},
|
|
3418
3559
|
track(r) {
|
|
3419
3560
|
t.capture(r.name, r.properties);
|
|
@@ -3433,28 +3574,28 @@ function kl(e) {
|
|
|
3433
3574
|
}
|
|
3434
3575
|
};
|
|
3435
3576
|
}
|
|
3436
|
-
const
|
|
3437
|
-
function
|
|
3438
|
-
const n =
|
|
3577
|
+
const Qe = oe(null);
|
|
3578
|
+
function su({ adapter: e, children: t }) {
|
|
3579
|
+
const n = z(() => e, [e]);
|
|
3439
3580
|
return k(() => {
|
|
3440
|
-
}, [n]), /* @__PURE__ */ l(
|
|
3581
|
+
}, [n]), /* @__PURE__ */ l(Qe.Provider, { value: n, children: t });
|
|
3441
3582
|
}
|
|
3442
|
-
function
|
|
3443
|
-
const e =
|
|
3583
|
+
function Ze() {
|
|
3584
|
+
const e = se(Qe);
|
|
3444
3585
|
if (!e) throw new Error("useFeatureFlag requires <FeatureFlagsProvider>");
|
|
3445
3586
|
return e;
|
|
3446
3587
|
}
|
|
3447
|
-
function
|
|
3448
|
-
const n =
|
|
3588
|
+
function ou(e, t = !1) {
|
|
3589
|
+
const n = Ze(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3449
3590
|
}, s = () => n.isEnabled(e, t);
|
|
3450
|
-
return
|
|
3591
|
+
return Be(r, s, s);
|
|
3451
3592
|
}
|
|
3452
|
-
function
|
|
3453
|
-
const n =
|
|
3593
|
+
function iu(e, t) {
|
|
3594
|
+
const n = Ze(), r = (o) => n.onChange ? n.onChange(o) : () => {
|
|
3454
3595
|
}, s = () => n.get(e, t);
|
|
3455
|
-
return
|
|
3596
|
+
return Be(r, s, s);
|
|
3456
3597
|
}
|
|
3457
|
-
function
|
|
3598
|
+
function au(e = {}) {
|
|
3458
3599
|
const t = { ...e.initial ?? {} }, n = /* @__PURE__ */ new Set();
|
|
3459
3600
|
function r() {
|
|
3460
3601
|
for (const s of n) s();
|
|
@@ -3474,7 +3615,7 @@ function Tl(e = {}) {
|
|
|
3474
3615
|
}
|
|
3475
3616
|
};
|
|
3476
3617
|
}
|
|
3477
|
-
function
|
|
3618
|
+
function cu(e) {
|
|
3478
3619
|
const { growthbook: t } = e, n = /* @__PURE__ */ new Set();
|
|
3479
3620
|
let r = !1;
|
|
3480
3621
|
function s() {
|
|
@@ -3497,7 +3638,7 @@ function Cl(e) {
|
|
|
3497
3638
|
}
|
|
3498
3639
|
};
|
|
3499
3640
|
}
|
|
3500
|
-
function
|
|
3641
|
+
function lu(e) {
|
|
3501
3642
|
const { client: t } = e;
|
|
3502
3643
|
return {
|
|
3503
3644
|
isEnabled(n, r = !1) {
|
|
@@ -3514,7 +3655,7 @@ function Ll(e) {
|
|
|
3514
3655
|
}
|
|
3515
3656
|
};
|
|
3516
3657
|
}
|
|
3517
|
-
async function
|
|
3658
|
+
async function uu(e) {
|
|
3518
3659
|
if (typeof navigator > "u" || !("share" in navigator))
|
|
3519
3660
|
return { shared: !1, unsupported: !0, cancelled: !1 };
|
|
3520
3661
|
if (e.files && !navigator.canShare?.({ files: e.files }))
|
|
@@ -3525,10 +3666,10 @@ async function Il(e) {
|
|
|
3525
3666
|
return t instanceof DOMException && t.name === "AbortError" ? { shared: !1, unsupported: !1, cancelled: !0 } : { shared: !1, unsupported: !1, cancelled: !1, error: t };
|
|
3526
3667
|
}
|
|
3527
3668
|
}
|
|
3528
|
-
function
|
|
3669
|
+
function du() {
|
|
3529
3670
|
return typeof navigator < "u" && "share" in navigator;
|
|
3530
3671
|
}
|
|
3531
|
-
const
|
|
3672
|
+
const pu = {
|
|
3532
3673
|
get(e, t) {
|
|
3533
3674
|
if (typeof window > "u") return t;
|
|
3534
3675
|
try {
|
|
@@ -3554,146 +3695,149 @@ const Ml = {
|
|
|
3554
3695
|
}
|
|
3555
3696
|
};
|
|
3556
3697
|
export {
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3698
|
+
tc as Alert,
|
|
3699
|
+
ul as AuthGuard,
|
|
3700
|
+
nc as Avatar,
|
|
3701
|
+
rc as Badge,
|
|
3702
|
+
sc as Breadcrumbs,
|
|
3703
|
+
ke as Button,
|
|
3704
|
+
$a as CACHE_TIME,
|
|
3705
|
+
Ul as CEPInput,
|
|
3706
|
+
zl as CNPJInput,
|
|
3707
|
+
Bl as CPFInput,
|
|
3708
|
+
oc as Card,
|
|
3709
|
+
ic as Checkbox,
|
|
3710
|
+
ac as ChipInput,
|
|
3711
|
+
cc as ConfirmDialog,
|
|
3712
|
+
bc as Container,
|
|
3713
|
+
lc as DatePicker,
|
|
3714
|
+
uc as Divider,
|
|
3715
|
+
dc as Drawer,
|
|
3716
|
+
pc as EmptyState,
|
|
3717
|
+
Cl as ErrorBoundary,
|
|
3718
|
+
fc as ErrorState,
|
|
3719
|
+
su as FeatureFlagsProvider,
|
|
3720
|
+
mc as FileUpload,
|
|
3721
|
+
hc as Form,
|
|
3722
|
+
yc as FormActions,
|
|
3723
|
+
gc as FormRow,
|
|
3724
|
+
_c as FormSection,
|
|
3725
|
+
vc as Grid,
|
|
3726
|
+
Zl as I18nProvider,
|
|
3727
|
+
Te as Input,
|
|
3728
|
+
$c as Kbd,
|
|
3729
|
+
fr as Modal,
|
|
3730
|
+
ql as MoneyInput,
|
|
3731
|
+
Nc as Pagination,
|
|
3732
|
+
jl as PhoneInput,
|
|
3733
|
+
kc as Progress,
|
|
3734
|
+
_l as QueryProvider,
|
|
3735
|
+
ml as REFETCH_TIME,
|
|
3736
|
+
xc as Radio,
|
|
3737
|
+
Sc as RadioGroup,
|
|
3738
|
+
va as STALE_TIME,
|
|
3739
|
+
Ec as SearchBar,
|
|
3740
|
+
Tc as Select,
|
|
3741
|
+
Cc as Skeleton,
|
|
3742
|
+
Lc as Spinner,
|
|
3743
|
+
wc as Stack,
|
|
3744
|
+
Ic as Stepper,
|
|
3745
|
+
Dc as Switch,
|
|
3746
|
+
Mc as Table,
|
|
3747
|
+
Pc as Tabs,
|
|
3748
|
+
Xl as TelemetryProvider,
|
|
3749
|
+
Ac as Textarea,
|
|
3750
|
+
Hl as ThemeProvider,
|
|
3751
|
+
Oc as ToastProvider,
|
|
3752
|
+
Fc as Tooltip,
|
|
3753
|
+
Wc as VirtualList,
|
|
3754
|
+
Ea as WebPushClient,
|
|
3755
|
+
Sa as WebPushPermissionDeniedError,
|
|
3756
|
+
Ae as WebPushUnsupportedError,
|
|
3613
3757
|
g as cn,
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3758
|
+
Ua as consoleSink,
|
|
3759
|
+
tu as consoleTelemetryAdapter,
|
|
3760
|
+
rl as createApiClient,
|
|
3761
|
+
qe as createAudioPlayer,
|
|
3762
|
+
ll as createAuthStore,
|
|
3763
|
+
ka as createEventStream,
|
|
3764
|
+
cu as createGrowthBookFeatureFlagsAdapter,
|
|
3765
|
+
He as createI18n,
|
|
3766
|
+
au as createInMemoryFlags,
|
|
3767
|
+
lu as createLaunchDarklyFeatureFlagsAdapter,
|
|
3768
|
+
qa as createLogger,
|
|
3769
|
+
Tl as createOfflineStore,
|
|
3770
|
+
ru as createPostHogTelemetryAdapter,
|
|
3771
|
+
hl as createQueryKeys,
|
|
3772
|
+
fl as createRefreshQueue,
|
|
3773
|
+
nu as createSentryTelemetryAdapter,
|
|
3774
|
+
Oa as createWebSocket,
|
|
3775
|
+
wa as decodeJWT,
|
|
3776
|
+
Ia as formatCEP,
|
|
3777
|
+
Da as formatCNPJ,
|
|
3778
|
+
Pa as formatCPF,
|
|
3779
|
+
Fl as formatCurrency,
|
|
3780
|
+
Rl as formatDate,
|
|
3781
|
+
Ol as formatDateTime,
|
|
3782
|
+
Wl as formatPercent,
|
|
3783
|
+
Ma as formatPhone,
|
|
3784
|
+
al as generateIdempotencyKey,
|
|
3785
|
+
Vl as getInitialTheme,
|
|
3786
|
+
Nl as installNotificationClickHandler,
|
|
3787
|
+
$l as installPushHandler,
|
|
3788
|
+
kl as installSkipWaitingListener,
|
|
3789
|
+
dl as isJWTExpired,
|
|
3790
|
+
fe as isPushSupported,
|
|
3791
|
+
du as isShareSupported,
|
|
3792
|
+
pl as lazyWithRetry,
|
|
3793
|
+
sl as parseResponse,
|
|
3794
|
+
xl as playAudio,
|
|
3795
|
+
bl as registerServiceWorker,
|
|
3796
|
+
il as retry,
|
|
3797
|
+
uu as share,
|
|
3798
|
+
wl as skipWaiting,
|
|
3799
|
+
Sl as stopAudio,
|
|
3800
|
+
pu as storage,
|
|
3801
|
+
Ql as themeInitScript,
|
|
3802
|
+
Al as unmask,
|
|
3803
|
+
vl as unregisterAllServiceWorkers,
|
|
3804
|
+
ol as uploadWithProgress,
|
|
3805
|
+
xa as urlBase64ToUint8Array,
|
|
3806
|
+
El as useAudio,
|
|
3807
|
+
Qc as useBeforeInstallPrompt,
|
|
3808
|
+
jc as useClientFilter,
|
|
3809
|
+
Kc as useClipboard,
|
|
3810
|
+
Bc as useDebounce,
|
|
3811
|
+
nl as useDeepMemo,
|
|
3812
|
+
Jc as useDocumentVisibility,
|
|
3813
|
+
Ll as useErrorHandler,
|
|
3814
|
+
gl as useEventStream,
|
|
3815
|
+
ou as useFeatureFlag,
|
|
3816
|
+
iu as useFlagValue,
|
|
3817
|
+
el as useFocusTrap,
|
|
3818
|
+
Yc as useGeolocation,
|
|
3819
|
+
za as useI18n,
|
|
3820
|
+
Zc as useIdle,
|
|
3821
|
+
Gc as useIntersectionObserver,
|
|
3822
|
+
Vc as useKeyboardShortcut,
|
|
3823
|
+
Uc as useMediaQuery,
|
|
3824
|
+
qc as useOnline,
|
|
3825
|
+
zc as usePagination,
|
|
3826
|
+
cl as usePoll,
|
|
3827
|
+
yl as usePushSubscription,
|
|
3828
|
+
Hc as useResizeObserver,
|
|
3829
|
+
Xc as useScrollLock,
|
|
3830
|
+
tl as useStableCallback,
|
|
3831
|
+
eu as useTelemetry,
|
|
3832
|
+
Kl as useTheme,
|
|
3833
|
+
Rc as useToast,
|
|
3834
|
+
Yl as useTranslate,
|
|
3835
|
+
Jl as useViaCEP,
|
|
3836
|
+
Gl as useWebSocket,
|
|
3837
|
+
Dl as useZodForm,
|
|
3838
|
+
Pl as validateCNPJ,
|
|
3839
|
+
Ml as validateCPF,
|
|
3840
|
+
Il as validateForm,
|
|
3841
|
+
La as zodResolver
|
|
3698
3842
|
};
|
|
3699
3843
|
//# sourceMappingURL=tempest-react-sdk.js.map
|