tempest-react-sdk 0.1.0 → 0.1.2

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