tempest-react-sdk 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import { jsxs as w, jsx as l, Fragment as $e } from "react/jsx-runtime";
2
- import { useState as v, useMemo as W, Fragment as Re, forwardRef as O, useRef as 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";
2
+ import { useState as v, useMemo as W, Fragment as Re, forwardRef as O, useRef as E, useEffect as k, useId as ae, useContext as te, createContext as ne, cloneElement as Ye, useCallback as S, lazy as Xe, Component as Ze, useSyncExternalStore as Fe } from "react";
3
3
  import { createPortal as ke } from "react-dom";
4
4
  import { QueryClient as et, QueryClientProvider as tt } from "@tanstack/react-query";
5
5
  import { create as nt } from "zustand";
6
6
  import { persist as rt, createJSONStorage as st } from "zustand/middleware";
7
7
  import ot from "dexie";
8
8
  import { useForm as it } from "react-hook-form";
9
- function g(...e) {
9
+ function _(...e) {
10
10
  const t = [];
11
11
  for (const n of e)
12
12
  if (!(n == null || n === !1 || n === !0)) {
@@ -15,13 +15,13 @@ function g(...e) {
15
15
  else if (typeof n == "number" || typeof n == "bigint")
16
16
  t.push(String(n));
17
17
  else if (Array.isArray(n)) {
18
- const r = g(...n);
18
+ const r = _(...n);
19
19
  r && t.push(r);
20
20
  }
21
21
  }
22
22
  return t.join(" ");
23
23
  }
24
- const at = "tempest_avatar_3xMuZ", ct = "tempest_image_ieqGp", lt = "tempest_xs_oSaLL", ut = "tempest_sm_sZ2bk", dt = "tempest_md_Fdkbz", pt = "tempest_lg_pTTUA", ft = "tempest_xl_mW58F", mt = "tempest_status_ISBnL", ht = "tempest_dot_Wgfo-", _t = "tempest_online_-aWoW", gt = "tempest_offline_-StX3", yt = "tempest_busy_TbwuF", Q = {
24
+ const at = "tempest_avatar_3xMuZ", ct = "tempest_image_ieqGp", lt = "tempest_xs_oSaLL", ut = "tempest_sm_sZ2bk", dt = "tempest_md_Fdkbz", pt = "tempest_lg_pTTUA", ft = "tempest_xl_mW58F", mt = "tempest_status_ISBnL", ht = "tempest_dot_Wgfo-", gt = "tempest_online_-aWoW", _t = "tempest_offline_-StX3", yt = "tempest_busy_TbwuF", Q = {
25
25
  avatar: at,
26
26
  image: ct,
27
27
  xs: lt,
@@ -31,15 +31,15 @@ const at = "tempest_avatar_3xMuZ", ct = "tempest_image_ieqGp", lt = "tempest_xs_
31
31
  xl: ft,
32
32
  status: mt,
33
33
  dot: ht,
34
- online: _t,
35
- offline: gt,
34
+ online: gt,
35
+ offline: _t,
36
36
  busy: yt
37
37
  };
38
38
  function wt(e) {
39
39
  const t = e.trim().split(/\s+/).filter(Boolean);
40
40
  return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2) : `${t[0].charAt(0)}${t[t.length - 1].charAt(0)}`;
41
41
  }
42
- function Zi({
42
+ function ta({
43
43
  src: e,
44
44
  alt: t,
45
45
  name: n = "",
@@ -52,7 +52,7 @@ function Zi({
52
52
  return /* @__PURE__ */ w(
53
53
  "span",
54
54
  {
55
- className: g(Q.avatar, Q[r], s && Q.status, o),
55
+ className: _(Q.avatar, Q[r], s && Q.status, o),
56
56
  role: p,
57
57
  tabIndex: f,
58
58
  onClick: i,
@@ -69,31 +69,31 @@ function Zi({
69
69
  onError: () => a(!0)
70
70
  }
71
71
  ) : /* @__PURE__ */ l("span", { "aria-label": t ?? n, children: u }),
72
- s && /* @__PURE__ */ l("span", { className: g(Q.dot, Q[s]), "aria-hidden": !0 })
72
+ s && /* @__PURE__ */ l("span", { className: _(Q.dot, Q[s]), "aria-hidden": !0 })
73
73
  ]
74
74
  }
75
75
  );
76
76
  }
77
- const bt = "tempest_badge_RsuMz", vt = "tempest_neutral_lulSm", Nt = "tempest_success_u9JiS", $t = "tempest_warning_nsGp-", kt = "tempest_danger_PD2hz", St = "tempest_info_na6DQ", Te = {
77
+ const bt = "tempest_badge_RsuMz", vt = "tempest_neutral_lulSm", Nt = "tempest_success_u9JiS", $t = "tempest_warning_nsGp-", kt = "tempest_danger_PD2hz", xt = "tempest_info_na6DQ", Ee = {
78
78
  badge: bt,
79
79
  neutral: vt,
80
80
  success: Nt,
81
81
  warning: $t,
82
82
  danger: kt,
83
- info: St
83
+ info: xt
84
84
  };
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 });
85
+ function na({ variant: e = "neutral", className: t, children: n, ...r }) {
86
+ return /* @__PURE__ */ l("span", { className: _(Ee.badge, Ee[e], t), ...r, children: n });
87
87
  }
88
- const 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,
88
+ const St = "tempest_nav_H4g6P", Et = "tempest_item_O4g3P", Tt = "tempest_link_7WM67", Ct = "tempest_current_JdlcS", Lt = "tempest_separator_zGWyJ", re = {
89
+ nav: St,
90
+ item: Et,
91
+ link: Tt,
92
92
  current: Ct,
93
93
  separator: Lt
94
94
  };
95
- function 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) => {
95
+ function ra({ items: e, separator: t = "/", className: n }) {
96
+ return /* @__PURE__ */ l("nav", { "aria-label": "breadcrumb", className: _(re.nav, n), children: e.map((r, s) => {
97
97
  const o = s === e.length - 1, i = !o && (r.href || r.onClick);
98
98
  return /* @__PURE__ */ w(Re, { children: [
99
99
  /* @__PURE__ */ l("span", { className: re.item, children: i ? /* @__PURE__ */ l(
@@ -148,7 +148,7 @@ function ve({
148
148
  return /* @__PURE__ */ w(
149
149
  "button",
150
150
  {
151
- className: g(
151
+ className: _(
152
152
  H.button,
153
153
  H[e],
154
154
  H[t],
@@ -160,7 +160,7 @@ function ve({
160
160
  ...u,
161
161
  children: [
162
162
  n && /* @__PURE__ */ l("span", { className: H.spinner, "aria-hidden": !0, children: /* @__PURE__ */ l(Jt, {}) }),
163
- /* @__PURE__ */ w("span", { className: g(n && H.hiddenText), children: [
163
+ /* @__PURE__ */ w("span", { className: _(n && H.hiddenText), children: [
164
164
  s,
165
165
  a,
166
166
  o
@@ -190,20 +190,20 @@ function Jt() {
190
190
  }
191
191
  );
192
192
  }
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,
193
+ const Gt = "tempest_card_Cb1o4", qt = "tempest_padded_oOxwN", Ht = "tempest_flush_aiDZi", Kt = "tempest_header_PTXf2", Vt = "tempest_title_mSgoo", Qt = "tempest_body_W441Z", Y = {
194
+ card: Gt,
195
+ padded: qt,
196
196
  flush: Ht,
197
197
  header: Kt,
198
198
  title: Vt,
199
199
  body: Qt
200
200
  };
201
- function na({ title: e, actions: t, flush: n = !1, className: r, children: s, ...o }) {
201
+ function sa({ title: e, actions: t, flush: n = !1, className: r, children: s, ...o }) {
202
202
  const i = e || t;
203
203
  return /* @__PURE__ */ w(
204
204
  "div",
205
205
  {
206
- className: g(
206
+ className: _(
207
207
  Y.card,
208
208
  !i && !n && Y.padded,
209
209
  n && Y.flush,
@@ -228,22 +228,22 @@ const Yt = "tempest_wrapper_rpthW", Xt = "tempest_disabled_x7-eg", Zt = "tempest
228
228
  labelWrap: tn,
229
229
  label: nn,
230
230
  description: rn
231
- }, ra = O(function({ label: t, description: n, indeterminate: r, disabled: s, wrapperClassName: o, className: i, ...c }, a) {
232
- const u = T(null);
231
+ }, oa = O(function({ label: t, description: n, indeterminate: r, disabled: s, wrapperClassName: o, className: i, ...c }, a) {
232
+ const u = E(null);
233
233
  k(() => {
234
234
  u.current && (u.current.indeterminate = !!r);
235
235
  }, [r]);
236
236
  function d(p) {
237
237
  u.current = p, typeof a == "function" ? a(p) : a && (a.current = p);
238
238
  }
239
- return /* @__PURE__ */ w("label", { className: g(K.wrapper, s && K.disabled, o), children: [
239
+ return /* @__PURE__ */ w("label", { className: _(K.wrapper, s && K.disabled, o), children: [
240
240
  /* @__PURE__ */ l(
241
241
  "input",
242
242
  {
243
243
  ref: d,
244
244
  type: "checkbox",
245
245
  disabled: s,
246
- className: g(K.input, i),
246
+ className: _(K.input, i),
247
247
  ...c
248
248
  }
249
249
  ),
@@ -280,7 +280,7 @@ const an = "tempest_wrapper_KR4-F", cn = "tempest_label_Mz-wX", ln = "tempest_fi
280
280
  helper: mn,
281
281
  errorText: hn
282
282
  };
283
- function sa({
283
+ function ia({
284
284
  value: e,
285
285
  onChange: t,
286
286
  label: n,
@@ -291,7 +291,7 @@ function sa({
291
291
  normalize: c = !0,
292
292
  className: a
293
293
  }) {
294
- const [u, d] = v(""), p = T(null);
294
+ const [u, d] = v(""), p = E(null);
295
295
  function f() {
296
296
  const h = c ? u.trim().toLowerCase() : u.trim();
297
297
  if (h) {
@@ -309,11 +309,11 @@ function sa({
309
309
  }
310
310
  h.key === "Backspace" && !u && e.length > 0 && t(e.slice(0, -1));
311
311
  }
312
- function _(h) {
312
+ function g(h) {
313
313
  const b = e.slice();
314
314
  b.splice(h, 1), t(b);
315
315
  }
316
- return /* @__PURE__ */ w("div", { className: g(B.wrapper, o && B.error, a), children: [
316
+ return /* @__PURE__ */ w("div", { className: _(B.wrapper, o && B.error, a), children: [
317
317
  n && /* @__PURE__ */ l("label", { className: B.label, children: n }),
318
318
  /* @__PURE__ */ w("div", { className: B.field, onClick: () => p.current?.focus(), children: [
319
319
  e.map((h, b) => /* @__PURE__ */ w("span", { className: B.chip, children: [
@@ -324,7 +324,7 @@ function sa({
324
324
  type: "button",
325
325
  className: B.remove,
326
326
  "aria-label": `Remover ${h}`,
327
- onClick: () => _(b),
327
+ onClick: () => g(b),
328
328
  children: "×"
329
329
  }
330
330
  )
@@ -345,9 +345,9 @@ function sa({
345
345
  o ? /* @__PURE__ */ l("span", { className: B.errorText, children: o }) : s ? /* @__PURE__ */ l("span", { className: B.helper, children: s }) : null
346
346
  ] });
347
347
  }
348
- const _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,
348
+ const gn = "tempest_overlay_dd9h1", _n = "tempest_tempest-fade-in_DvgSp", yn = "tempest_dialog_ptM-K", wn = "tempest_tempest-modal-in_UoxQC", bn = "tempest_sm_K5k3W", vn = "tempest_md_gvyR7", Nn = "tempest_lg_BgB1a", $n = "tempest_xl_MR-68", kn = "tempest_header_ILG9i", xn = "tempest_title_A5OeE", Sn = "tempest_close_-ER1C", En = "tempest_body_lVhql", Tn = "tempest_footer_rro2w", J = {
349
+ overlay: gn,
350
+ tempestFadeIn: _n,
351
351
  dialog: yn,
352
352
  tempestModalIn: wn,
353
353
  sm: bn,
@@ -355,10 +355,10 @@ const _n = "tempest_overlay_dd9h1", gn = "tempest_tempest-fade-in_DvgSp", yn = "
355
355
  lg: Nn,
356
356
  xl: $n,
357
357
  header: kn,
358
- title: Sn,
359
- close: xn,
360
- body: Tn,
361
- footer: En
358
+ title: xn,
359
+ close: Sn,
360
+ body: En,
361
+ footer: Tn
362
362
  };
363
363
  function Cn({
364
364
  open: e,
@@ -396,7 +396,7 @@ function Cn({
396
396
  {
397
397
  role: "dialog",
398
398
  "aria-modal": "true",
399
- className: g(J.dialog, J[o], a),
399
+ className: _(J.dialog, J[o], a),
400
400
  onClick: (d) => d.stopPropagation(),
401
401
  children: [
402
402
  (n || !u) && /* @__PURE__ */ w("header", { className: J.header, children: [
@@ -433,7 +433,7 @@ function Ln() {
433
433
  }
434
434
  ) });
435
435
  }
436
- function oa({
436
+ function aa({
437
437
  open: e,
438
438
  title: t,
439
439
  description: n,
@@ -474,7 +474,7 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
474
474
  error: Bn,
475
475
  helper: jn,
476
476
  errorText: Un
477
- }, Se = O(function({
477
+ }, xe = O(function({
478
478
  label: t,
479
479
  helperText: n,
480
480
  error: r,
@@ -486,8 +486,8 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
486
486
  required: u,
487
487
  ...d
488
488
  }, p) {
489
- const f = ae(), m = a ?? f, _ = r ? `${m}-error` : n ? `${m}-helper` : void 0;
490
- return /* @__PURE__ */ w("div", { className: g(P.wrapper, r && P.error, i), children: [
489
+ const f = ae(), m = a ?? f, g = r ? `${m}-error` : n ? `${m}-helper` : void 0;
490
+ return /* @__PURE__ */ w("div", { className: _(P.wrapper, r && P.error, i), children: [
491
491
  t && /* @__PURE__ */ w("label", { htmlFor: m, className: P.label, children: [
492
492
  t,
493
493
  u && /* @__PURE__ */ l("span", { className: P.required, children: "*" })
@@ -500,9 +500,9 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
500
500
  ref: p,
501
501
  id: m,
502
502
  "aria-invalid": !!r,
503
- "aria-describedby": _,
503
+ "aria-describedby": g,
504
504
  required: u,
505
- className: g(
505
+ className: _(
506
506
  P.input,
507
507
  s && P.hasLeftIcon,
508
508
  o && P.hasRightIcon,
@@ -515,9 +515,9 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
515
515
  ] }),
516
516
  r ? /* @__PURE__ */ l("span", { id: `${m}-error`, className: P.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { id: `${m}-helper`, className: P.helper, children: n }) : null
517
517
  ] });
518
- }), ia = O(function({ value: t, onChange: n, mode: r = "date", ...s }, o) {
518
+ }), ca = O(function({ value: t, onChange: n, mode: r = "date", ...s }, o) {
519
519
  return /* @__PURE__ */ l(
520
- Se,
520
+ xe,
521
521
  {
522
522
  ...s,
523
523
  ref: o,
@@ -526,11 +526,11 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
526
526
  onChange: (i) => n(i.target.value)
527
527
  }
528
528
  );
529
- }), zn = "tempest_overlay_hcG1G", Jn = "tempest_tempest-drawer-overlay_XFbxY", 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 = {
529
+ }), zn = "tempest_overlay_hcG1G", Jn = "tempest_tempest-drawer-overlay_XFbxY", Gn = "tempest_panel_wUX0N", qn = "tempest_right_-oX-6", Hn = "tempest_tempest-drawer-in-right_pWYHv", Kn = "tempest_left_xi3nD", Vn = "tempest_tempest-drawer-in-left_o7JSb", Qn = "tempest_top_7rGCn", Yn = "tempest_tempest-drawer-in-top_kn6AF", Xn = "tempest_bottom_zd-25", Zn = "tempest_tempest-drawer-in-bottom_0x3u7", er = "tempest_header_sYoP1", tr = "tempest_title_LqUOu", nr = "tempest_close_tYPhU", rr = "tempest_body_aV9FG", sr = "tempest_footer_AuvUP", G = {
530
530
  overlay: zn,
531
531
  tempestDrawerOverlay: Jn,
532
- panel: qn,
533
- right: Gn,
532
+ panel: Gn,
533
+ right: qn,
534
534
  tempestDrawerInRight: Hn,
535
535
  left: Kn,
536
536
  tempestDrawerInLeft: Vn,
@@ -544,7 +544,7 @@ const In = "tempest_wrapper_iHNUs", Dn = "tempest_label_-OEBL", Mn = "tempest_re
544
544
  body: rr,
545
545
  footer: sr
546
546
  };
547
- function aa({
547
+ function la({
548
548
  open: e,
549
549
  onClose: t,
550
550
  placement: n = "right",
@@ -571,7 +571,7 @@ function aa({
571
571
  /* @__PURE__ */ l(
572
572
  "div",
573
573
  {
574
- className: q.overlay,
574
+ className: G.overlay,
575
575
  onClick: () => {
576
576
  i && t();
577
577
  }
@@ -582,23 +582,23 @@ function aa({
582
582
  {
583
583
  role: "dialog",
584
584
  "aria-modal": "true",
585
- className: g(q.panel, q[n], u),
585
+ className: _(G.panel, G[n], u),
586
586
  children: [
587
- (r || !a) && /* @__PURE__ */ w("header", { className: q.header, children: [
588
- /* @__PURE__ */ l("h3", { className: q.title, children: r }),
587
+ (r || !a) && /* @__PURE__ */ w("header", { className: G.header, children: [
588
+ /* @__PURE__ */ l("h3", { className: G.title, children: r }),
589
589
  !a && /* @__PURE__ */ l(
590
590
  "button",
591
591
  {
592
592
  type: "button",
593
593
  "aria-label": "Fechar",
594
- className: q.close,
594
+ className: G.close,
595
595
  onClick: t,
596
596
  children: /* @__PURE__ */ l(or, {})
597
597
  }
598
598
  )
599
599
  ] }),
600
- /* @__PURE__ */ l("div", { className: q.body, children: s }),
601
- o && /* @__PURE__ */ l("footer", { className: q.footer, children: o })
600
+ /* @__PURE__ */ l("div", { className: G.body, children: s }),
601
+ o && /* @__PURE__ */ l("footer", { className: G.footer, children: o })
602
602
  ]
603
603
  }
604
604
  )
@@ -624,8 +624,8 @@ const ir = "tempest_wrapper_gzyTd", ar = "tempest_icon_qVCyh", cr = "tempest_tit
624
624
  description: lr,
625
625
  action: ur
626
626
  };
627
- function ca({ icon: e, title: t, description: n, action: r, className: s }) {
628
- return /* @__PURE__ */ w("div", { className: g(se.wrapper, s), children: [
627
+ function ua({ icon: e, title: t, description: n, action: r, className: s }) {
628
+ return /* @__PURE__ */ w("div", { className: _(se.wrapper, s), children: [
629
629
  e && /* @__PURE__ */ l("div", { className: se.icon, children: e }),
630
630
  /* @__PURE__ */ l("h4", { className: se.title, children: t }),
631
631
  n && /* @__PURE__ */ l("p", { className: se.description, children: n }),
@@ -639,7 +639,7 @@ const dr = "tempest_wrapper_luRyF", pr = "tempest_icon_dEdBl", fr = "tempest_tit
639
639
  description: mr,
640
640
  action: hr
641
641
  };
642
- function la({
642
+ function da({
643
643
  title: e = "Algo deu errado",
644
644
  description: t = "Não foi possível carregar essas informações.",
645
645
  onRetry: n,
@@ -647,14 +647,14 @@ function la({
647
647
  icon: s,
648
648
  className: o
649
649
  }) {
650
- return /* @__PURE__ */ w("div", { className: g(oe.wrapper, o), children: [
651
- /* @__PURE__ */ l("div", { className: oe.icon, children: s ?? /* @__PURE__ */ l(_r, {}) }),
650
+ return /* @__PURE__ */ w("div", { className: _(oe.wrapper, o), children: [
651
+ /* @__PURE__ */ l("div", { className: oe.icon, children: s ?? /* @__PURE__ */ l(gr, {}) }),
652
652
  /* @__PURE__ */ l("h4", { className: oe.title, children: e }),
653
653
  t && /* @__PURE__ */ l("p", { className: oe.description, children: t }),
654
654
  n && /* @__PURE__ */ l("div", { className: oe.action, children: /* @__PURE__ */ l(ve, { variant: "secondary", onClick: n, children: r }) })
655
655
  ] });
656
656
  }
657
- function _r() {
657
+ function gr() {
658
658
  return /* @__PURE__ */ l("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ l(
659
659
  "path",
660
660
  {
@@ -666,8 +666,8 @@ function _r() {
666
666
  }
667
667
  ) });
668
668
  }
669
- const 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,
669
+ const _r = "tempest_wrapper_E0qHs", yr = "tempest_label_lbMkx", wr = "tempest_dropzone_jqua0", br = "tempest_active_CG9Uk", vr = "tempest_disabled_WNUUl", Nr = "tempest_icon_i9fGH", $r = "tempest_title_bTVFl", kr = "tempest_subtitle_S54OV", xr = "tempest_files_WljYm", Sr = "tempest_file_Lp-dR", Er = "tempest_fileMeta_LTnN2", Tr = "tempest_remove_jskra", Cr = "tempest_hidden_ReEq6", D = {
670
+ wrapper: _r,
671
671
  label: yr,
672
672
  dropzone: wr,
673
673
  active: br,
@@ -675,10 +675,10 @@ const gr = "tempest_wrapper_E0qHs", yr = "tempest_label_lbMkx", wr = "tempest_dr
675
675
  icon: Nr,
676
676
  title: $r,
677
677
  subtitle: kr,
678
- files: Sr,
679
- file: xr,
680
- fileMeta: Tr,
681
- remove: Er,
678
+ files: xr,
679
+ file: Sr,
680
+ fileMeta: Er,
681
+ remove: Tr,
682
682
  hidden: Cr
683
683
  };
684
684
  function Lr(e) {
@@ -689,7 +689,7 @@ function Ir(e, t) {
689
689
  const n = t.split(",").map((o) => o.trim().toLowerCase()), r = e.name.toLowerCase(), s = e.type.toLowerCase();
690
690
  return n.some((o) => o.startsWith(".") ? r.endsWith(o) : o.endsWith("/*") ? s.startsWith(o.replace("/*", "/")) : s === o);
691
691
  }
692
- function ua({
692
+ function pa({
693
693
  value: e,
694
694
  onChange: t,
695
695
  label: n,
@@ -702,8 +702,8 @@ function ua({
702
702
  subtitle: u,
703
703
  className: d
704
704
  }) {
705
- const [p, f] = v(!1), m = T(null);
706
- function _(y) {
705
+ const [p, f] = v(!1), m = E(null);
706
+ function g(y) {
707
707
  const N = [], $ = [];
708
708
  for (const I of Array.from(y)) {
709
709
  if (!Ir(I, r)) {
@@ -721,18 +721,18 @@ function ua({
721
721
  t(C);
722
722
  }
723
723
  function h(y) {
724
- y.preventDefault(), f(!1), !c && y.dataTransfer?.files && _(y.dataTransfer.files);
724
+ y.preventDefault(), f(!1), !c && y.dataTransfer?.files && g(y.dataTransfer.files);
725
725
  }
726
726
  function b(y) {
727
727
  const N = e.slice();
728
728
  N.splice(y, 1), t(N);
729
729
  }
730
- return /* @__PURE__ */ w("div", { className: g(D.wrapper, d), children: [
730
+ return /* @__PURE__ */ w("div", { className: _(D.wrapper, d), children: [
731
731
  n && /* @__PURE__ */ l("label", { className: D.label, children: n }),
732
732
  /* @__PURE__ */ w(
733
733
  "div",
734
734
  {
735
- className: g(
735
+ className: _(
736
736
  D.dropzone,
737
737
  p && D.active,
738
738
  c && D.disabled
@@ -763,7 +763,7 @@ function ua({
763
763
  disabled: c,
764
764
  className: D.hidden,
765
765
  onChange: (y) => {
766
- y.target.files && _(y.target.files), y.target.value = "";
766
+ y.target.files && g(y.target.files), y.target.value = "";
767
767
  }
768
768
  }
769
769
  )
@@ -800,7 +800,7 @@ function Dr() {
800
800
  }
801
801
  ) });
802
802
  }
803
- const Mr = "tempest_form_jNBDR", Pr = "tempest_stack_O1Hl-", Ar = "tempest_inline_LBQAv", Rr = "tempest_grid_-B86T", Fr = "tempest_section_HGqw3", Or = "tempest_sectionHeader_ji9hQ", Wr = "tempest_sectionTitle_GTPwe", Br = "tempest_sectionDescription_KjW7k", jr = "tempest_sectionBody_Vp2wz", Ur = "tempest_row_1EkVR", zr = "tempest_actions_hK95I", Jr = "tempest_start_gXnm3", qr = "tempest_center_mKkz4", Gr = "tempest_end_O3yDQ", Hr = "tempest_between_tte2z", F = {
803
+ const Mr = "tempest_form_jNBDR", Pr = "tempest_stack_O1Hl-", Ar = "tempest_inline_LBQAv", Rr = "tempest_grid_-B86T", Fr = "tempest_section_HGqw3", Or = "tempest_sectionHeader_ji9hQ", Wr = "tempest_sectionTitle_GTPwe", Br = "tempest_sectionDescription_KjW7k", jr = "tempest_sectionBody_Vp2wz", Ur = "tempest_row_1EkVR", zr = "tempest_actions_hK95I", Jr = "tempest_start_gXnm3", Gr = "tempest_center_mKkz4", qr = "tempest_end_O3yDQ", Hr = "tempest_between_tte2z", F = {
804
804
  form: Mr,
805
805
  stack: Pr,
806
806
  inline: Ar,
@@ -813,8 +813,8 @@ const Mr = "tempest_form_jNBDR", Pr = "tempest_stack_O1Hl-", Ar = "tempest_inlin
813
813
  row: Ur,
814
814
  actions: zr,
815
815
  start: Jr,
816
- center: qr,
817
- end: Gr,
816
+ center: Gr,
817
+ end: qr,
818
818
  between: Hr
819
819
  };
820
820
  function de(e, t) {
@@ -823,7 +823,7 @@ function de(e, t) {
823
823
  function Oe(e) {
824
824
  return e === void 0 ? "repeat(2, minmax(0, 1fr))" : typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
825
825
  }
826
- const da = O(function({ layout: t = "stack", columns: n, gap: r, className: s, style: o, children: i, ...c }, a) {
826
+ const fa = O(function({ layout: t = "stack", columns: n, gap: r, className: s, style: o, children: i, ...c }, a) {
827
827
  const u = {
828
828
  gap: de(r, 4),
829
829
  ...t === "grid" ? { gridTemplateColumns: Oe(n) } : null,
@@ -833,14 +833,14 @@ const da = O(function({ layout: t = "stack", columns: n, gap: r, className: s, s
833
833
  "form",
834
834
  {
835
835
  ref: a,
836
- className: g(F.form, F[t], s),
836
+ className: _(F.form, F[t], s),
837
837
  style: u,
838
838
  ...c,
839
839
  children: i
840
840
  }
841
841
  );
842
842
  });
843
- function pa({
843
+ function ma({
844
844
  title: e,
845
845
  description: t,
846
846
  layout: n = "stack",
@@ -855,19 +855,19 @@ function pa({
855
855
  gap: de(s, 4),
856
856
  ...n === "grid" ? { gridTemplateColumns: Oe(r) } : null
857
857
  };
858
- return /* @__PURE__ */ w("section", { className: g(F.section, o), style: i, ...a, children: [
858
+ return /* @__PURE__ */ w("section", { className: _(F.section, o), style: i, ...a, children: [
859
859
  (e || t) && /* @__PURE__ */ w("header", { className: F.sectionHeader, children: [
860
860
  e && /* @__PURE__ */ l("h3", { className: F.sectionTitle, children: e }),
861
861
  t && /* @__PURE__ */ l("p", { className: F.sectionDescription, children: t })
862
862
  ] }),
863
- /* @__PURE__ */ l("div", { className: g(F.sectionBody, F[n]), style: u, children: c })
863
+ /* @__PURE__ */ l("div", { className: _(F.sectionBody, F[n]), style: u, children: c })
864
864
  ] });
865
865
  }
866
- function fa({ gap: e, className: t, style: n, children: r, ...s }) {
866
+ function ha({ gap: e, className: t, style: n, children: r, ...s }) {
867
867
  const o = { gap: de(e, 3), ...n };
868
- return /* @__PURE__ */ l("div", { className: g(F.row, t), style: o, ...s, children: r });
868
+ return /* @__PURE__ */ l("div", { className: _(F.row, t), style: o, ...s, children: r });
869
869
  }
870
- function ma({
870
+ function ga({
871
871
  align: e = "end",
872
872
  gap: t,
873
873
  className: n,
@@ -876,7 +876,7 @@ function ma({
876
876
  ...o
877
877
  }) {
878
878
  const i = { gap: de(t, 2), ...r };
879
- return /* @__PURE__ */ l("div", { className: g(F.actions, F[e], n), style: i, ...o, children: s });
879
+ return /* @__PURE__ */ l("div", { className: _(F.actions, F[e], n), style: i, ...o, children: s });
880
880
  }
881
881
  const Kr = "tempest_container_fJfOt", Vr = "tempest_sm_k8D4-", Qr = "tempest_md_EnpYy", Yr = "tempest_lg_UU-Ig", Xr = "tempest_xl_2TEWj", Zr = "tempest_full_l8bvG", es = "tempest_stack_sxR8u", ts = "tempest_vertical_2TMf5", ns = "tempest_horizontal_r7-c-", rs = "tempest_center_EDSAh", ss = "tempest_start_ucQ-K", os = "tempest_end_pnKlF", is = "tempest_stretch_pX6l7", as = "tempest_justifyStart_lHYsS", cs = "tempest_justifyCenter_JH2m6", ls = "tempest_justifyEnd_EBisT", us = "tempest_justifyBetween_mAJwT", ds = "tempest_wrap_-xxOh", ps = "tempest_grid_o-JIX", A = {
882
882
  container: Kr,
@@ -899,10 +899,10 @@ const Kr = "tempest_container_fJfOt", Vr = "tempest_sm_k8D4-", Qr = "tempest_md_
899
899
  wrap: ds,
900
900
  grid: ps
901
901
  };
902
- function ha({ size: e = "lg", className: t, children: n, ...r }) {
903
- return /* @__PURE__ */ l("div", { className: g(A.container, A[e], t), ...r, children: n });
902
+ function _a({ size: e = "lg", className: t, children: n, ...r }) {
903
+ return /* @__PURE__ */ l("div", { className: _(A.container, A[e], t), ...r, children: n });
904
904
  }
905
- function _a({
905
+ function ya({
906
906
  direction: e = "vertical",
907
907
  gap: t = 2,
908
908
  align: n,
@@ -917,7 +917,7 @@ function _a({
917
917
  return /* @__PURE__ */ l(
918
918
  "div",
919
919
  {
920
- className: g(
920
+ className: _(
921
921
  A.stack,
922
922
  e === "vertical" ? A.vertical : A.horizontal,
923
923
  n && A[n],
@@ -931,24 +931,24 @@ function _a({
931
931
  }
932
932
  );
933
933
  }
934
- function ga({ columns: e = 2, gap: t = 4, className: n, style: r, children: s, ...o }) {
934
+ function wa({ columns: e = 2, gap: t = 4, className: n, style: r, children: s, ...o }) {
935
935
  const i = typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e, c = typeof t == "number" ? `${t * 4}px` : t;
936
936
  return /* @__PURE__ */ l(
937
937
  "div",
938
938
  {
939
- className: g(A.grid, n),
939
+ className: _(A.grid, n),
940
940
  style: { gridTemplateColumns: i, gap: c, ...r },
941
941
  ...o,
942
942
  children: s
943
943
  }
944
944
  );
945
945
  }
946
- const fs = "tempest_wrapper_cRGQm", ms = "tempest_controls_fdL-y", hs = "tempest_page_WjG0l", _s = "tempest_active_1kqsJ", gs = "tempest_ellipsis_V294k", ys = "tempest_sizeSelect_ZayTo", G = {
946
+ const fs = "tempest_wrapper_cRGQm", ms = "tempest_controls_fdL-y", hs = "tempest_page_WjG0l", gs = "tempest_active_1kqsJ", _s = "tempest_ellipsis_V294k", ys = "tempest_sizeSelect_ZayTo", q = {
947
947
  wrapper: fs,
948
948
  controls: ms,
949
949
  page: hs,
950
- active: _s,
951
- ellipsis: gs,
950
+ active: gs,
951
+ ellipsis: _s,
952
952
  sizeSelect: ys
953
953
  };
954
954
  function ws(e, t, n) {
@@ -960,7 +960,7 @@ function ws(e, t, n) {
960
960
  for (let c = s; c <= o; c++) i.push(c);
961
961
  return o < t - 1 && i.push("..."), i.push(t), i;
962
962
  }
963
- function ya({
963
+ function ba({
964
964
  page: e,
965
965
  totalPages: t,
966
966
  onPageChange: n,
@@ -975,14 +975,14 @@ function ya({
975
975
  () => ws(e, t, c),
976
976
  [e, t, c]
977
977
  );
978
- return t <= 1 && !s ? null : /* @__PURE__ */ w("div", { className: g(G.wrapper, a), children: [
978
+ return t <= 1 && !s ? null : /* @__PURE__ */ w("div", { className: _(q.wrapper, a), children: [
979
979
  /* @__PURE__ */ l("div", { children: typeof i == "number" ? `${i} resultado${i === 1 ? "" : "s"}` : null }),
980
- /* @__PURE__ */ w("div", { className: G.controls, children: [
980
+ /* @__PURE__ */ w("div", { className: q.controls, children: [
981
981
  /* @__PURE__ */ l(
982
982
  "button",
983
983
  {
984
984
  type: "button",
985
- className: G.page,
985
+ className: q.page,
986
986
  onClick: () => n(Math.max(1, e - 1)),
987
987
  disabled: e <= 1,
988
988
  "aria-label": "Página anterior",
@@ -990,11 +990,11 @@ function ya({
990
990
  }
991
991
  ),
992
992
  u.map(
993
- (d, p) => d === "..." ? /* @__PURE__ */ l("span", { className: G.ellipsis, children: "…" }, `ellipsis-${p}`) : /* @__PURE__ */ l(
993
+ (d, p) => d === "..." ? /* @__PURE__ */ l("span", { className: q.ellipsis, children: "…" }, `ellipsis-${p}`) : /* @__PURE__ */ l(
994
994
  "button",
995
995
  {
996
996
  type: "button",
997
- className: g(G.page, d === e && G.active),
997
+ className: _(q.page, d === e && q.active),
998
998
  onClick: () => n(d),
999
999
  "aria-current": d === e ? "page" : void 0,
1000
1000
  children: d
@@ -1006,7 +1006,7 @@ function ya({
1006
1006
  "button",
1007
1007
  {
1008
1008
  type: "button",
1009
- className: G.page,
1009
+ className: q.page,
1010
1010
  onClick: () => n(Math.min(t, e + 1)),
1011
1011
  disabled: e >= t,
1012
1012
  "aria-label": "Próxima página",
@@ -1016,7 +1016,7 @@ function ya({
1016
1016
  s && /* @__PURE__ */ l(
1017
1017
  "select",
1018
1018
  {
1019
- className: G.sizeSelect,
1019
+ className: q.sizeSelect,
1020
1020
  value: r,
1021
1021
  onChange: (d) => s(Number(d.target.value)),
1022
1022
  "aria-label": "Itens por página",
@@ -1029,18 +1029,18 @@ function ya({
1029
1029
  ] })
1030
1030
  ] });
1031
1031
  }
1032
- const bs = "tempest_wrapper_BQek1", vs = "tempest_bar_uC-0x", Ns = "tempest_fill_vmg7x", $s = "tempest_success_gWJ8U", ks = "tempest_warning_DGkPO", Ss = "tempest_danger_gfwHh", xs = "tempest_indeterminate_HojUj", Ts = "tempest_tempest-progress-loop_0nEdF", Es = "tempest_label_qqHJM", X = {
1032
+ const bs = "tempest_wrapper_BQek1", vs = "tempest_bar_uC-0x", Ns = "tempest_fill_vmg7x", $s = "tempest_success_gWJ8U", ks = "tempest_warning_DGkPO", xs = "tempest_danger_gfwHh", Ss = "tempest_indeterminate_HojUj", Es = "tempest_tempest-progress-loop_0nEdF", Ts = "tempest_label_qqHJM", X = {
1033
1033
  wrapper: bs,
1034
1034
  bar: vs,
1035
1035
  fill: Ns,
1036
1036
  success: $s,
1037
1037
  warning: ks,
1038
- danger: Ss,
1039
- indeterminate: xs,
1040
- tempestProgressLoop: Ts,
1041
- label: Es
1038
+ danger: xs,
1039
+ indeterminate: Ss,
1040
+ tempestProgressLoop: Es,
1041
+ label: Ts
1042
1042
  };
1043
- function wa({
1043
+ function va({
1044
1044
  value: e = 0,
1045
1045
  max: t = 100,
1046
1046
  variant: n = "primary",
@@ -1050,7 +1050,7 @@ function wa({
1050
1050
  className: i
1051
1051
  }) {
1052
1052
  const c = r ? 0 : Math.max(0, Math.min(100, e / t * 100));
1053
- return /* @__PURE__ */ w("div", { className: g(X.wrapper, i), children: [
1053
+ return /* @__PURE__ */ w("div", { className: _(X.wrapper, i), children: [
1054
1054
  (s || o) && /* @__PURE__ */ w("div", { className: X.label, children: [
1055
1055
  o && /* @__PURE__ */ l("span", { children: o }),
1056
1056
  s && !r && /* @__PURE__ */ w("span", { children: [
@@ -1065,11 +1065,11 @@ function wa({
1065
1065
  "aria-valuemin": 0,
1066
1066
  "aria-valuemax": t,
1067
1067
  "aria-valuenow": r ? void 0 : e,
1068
- className: g(X.bar, r && X.indeterminate),
1068
+ className: _(X.bar, r && X.indeterminate),
1069
1069
  children: /* @__PURE__ */ l(
1070
1070
  "div",
1071
1071
  {
1072
- className: g(X.fill, n !== "primary" && X[n]),
1072
+ className: _(X.fill, n !== "primary" && X[n]),
1073
1073
  style: { width: r ? void 0 : `${c}%` }
1074
1074
  }
1075
1075
  )
@@ -1087,7 +1087,7 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
1087
1087
  description: As,
1088
1088
  group: Rs,
1089
1089
  horizontal: Fs
1090
- }, We = ne(null), ba = O(function({
1090
+ }, We = ne(null), Na = O(function({
1091
1091
  label: t,
1092
1092
  description: n,
1093
1093
  value: r,
@@ -1099,14 +1099,14 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
1099
1099
  className: u,
1100
1100
  ...d
1101
1101
  }, p) {
1102
- const f = te(We), m = f?.name ?? o, _ = f?.disabled ?? s, h = f ? f.value === r : i;
1102
+ const f = te(We), m = f?.name ?? o, g = f?.disabled ?? s, h = f ? f.value === r : i;
1103
1103
  function b(y) {
1104
1104
  f && f.onChange?.(r), c?.(y);
1105
1105
  }
1106
1106
  return /* @__PURE__ */ w(
1107
1107
  "label",
1108
1108
  {
1109
- className: g(z.wrapper, _ && z.disabled, a),
1109
+ className: _(z.wrapper, g && z.disabled, a),
1110
1110
  children: [
1111
1111
  /* @__PURE__ */ l(
1112
1112
  "input",
@@ -1116,9 +1116,9 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
1116
1116
  name: m,
1117
1117
  value: r,
1118
1118
  checked: h,
1119
- disabled: _,
1119
+ disabled: g,
1120
1120
  onChange: b,
1121
- className: g(z.input, u),
1121
+ className: _(z.input, u),
1122
1122
  ...d
1123
1123
  }
1124
1124
  ),
@@ -1131,7 +1131,7 @@ const Cs = "tempest_wrapper_P-gFm", Ls = "tempest_disabled_0-cna", Is = "tempest
1131
1131
  }
1132
1132
  );
1133
1133
  });
1134
- function va({
1134
+ function $a({
1135
1135
  value: e,
1136
1136
  defaultValue: t,
1137
1137
  onChange: n,
@@ -1142,18 +1142,18 @@ function va({
1142
1142
  children: c
1143
1143
  }) {
1144
1144
  const a = ae(), u = r ?? a, [d, p] = v(t), f = e !== void 0, m = f ? e : d;
1145
- function _(h) {
1145
+ function g(h) {
1146
1146
  f || p(h), n?.(h);
1147
1147
  }
1148
1148
  return /* @__PURE__ */ l(
1149
1149
  We.Provider,
1150
1150
  {
1151
- value: { name: u, value: m, onChange: _, disabled: s },
1151
+ value: { name: u, value: m, onChange: g, disabled: s },
1152
1152
  children: /* @__PURE__ */ l(
1153
1153
  "div",
1154
1154
  {
1155
1155
  role: "radiogroup",
1156
- className: g(z.group, o && z.horizontal, i),
1156
+ className: _(z.group, o && z.horizontal, i),
1157
1157
  children: c
1158
1158
  }
1159
1159
  )
@@ -1165,11 +1165,11 @@ const Os = "tempest_wrapper_dKXJJ", Ws = "tempest_input_m0lPc", Bs = "tempest_ic
1165
1165
  input: Ws,
1166
1166
  iconLeft: Bs,
1167
1167
  clear: js
1168
- }, Na = O(function({ value: t, onChange: n, onClear: r, wrapperClassName: s, placeholder: o = "Buscar...", className: i, ...c }, a) {
1168
+ }, ka = O(function({ value: t, onChange: n, onClear: r, wrapperClassName: s, placeholder: o = "Buscar...", className: i, ...c }, a) {
1169
1169
  function u() {
1170
1170
  n(""), r?.();
1171
1171
  }
1172
- return /* @__PURE__ */ w("div", { className: g(le.wrapper, s), children: [
1172
+ return /* @__PURE__ */ w("div", { className: _(le.wrapper, s), children: [
1173
1173
  /* @__PURE__ */ l("span", { className: le.iconLeft, "aria-hidden": !0, children: /* @__PURE__ */ l(Us, {}) }),
1174
1174
  /* @__PURE__ */ l(
1175
1175
  "input",
@@ -1179,7 +1179,7 @@ const Os = "tempest_wrapper_dKXJJ", Ws = "tempest_input_m0lPc", Bs = "tempest_ic
1179
1179
  value: t,
1180
1180
  onChange: (d) => n(d.target.value),
1181
1181
  placeholder: o,
1182
- className: g(le.input, i),
1182
+ className: _(le.input, i),
1183
1183
  ...c
1184
1184
  }
1185
1185
  ),
@@ -1212,17 +1212,17 @@ function zs() {
1212
1212
  }
1213
1213
  ) });
1214
1214
  }
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 = {
1215
+ const Js = "tempest_wrapper_KS2K3", Gs = "tempest_label_Lmgos", qs = "tempest_required_PvDVJ", Hs = "tempest_field_h-wBy", Ks = "tempest_select_cjdcr", Vs = "tempest_caret_MdCao", Qs = "tempest_error_sw9MU", Ys = "tempest_helper_frosK", Xs = "tempest_errorText_-zd6i", j = {
1216
1216
  wrapper: Js,
1217
- label: qs,
1218
- required: Gs,
1217
+ label: Gs,
1218
+ required: qs,
1219
1219
  field: Hs,
1220
1220
  select: Ks,
1221
1221
  caret: Vs,
1222
1222
  error: Qs,
1223
1223
  helper: Ys,
1224
1224
  errorText: Xs
1225
- }, $a = O(function({
1225
+ }, xa = O(function({
1226
1226
  label: t,
1227
1227
  helperText: n,
1228
1228
  error: r,
@@ -1235,9 +1235,9 @@ const Js = "tempest_wrapper_KS2K3", qs = "tempest_label_Lmgos", Gs = "tempest_re
1235
1235
  required: d,
1236
1236
  ...p
1237
1237
  }, f) {
1238
- const m = ae(), _ = 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: [
1238
+ const m = ae(), g = u ?? m;
1239
+ return /* @__PURE__ */ w("div", { className: _(j.wrapper, r && j.error, i), children: [
1240
+ t && /* @__PURE__ */ w("label", { htmlFor: g, className: j.label, children: [
1241
1241
  t,
1242
1242
  d && /* @__PURE__ */ l("span", { className: j.required, children: "*" })
1243
1243
  ] }),
@@ -1246,10 +1246,10 @@ const Js = "tempest_wrapper_KS2K3", qs = "tempest_label_Lmgos", Gs = "tempest_re
1246
1246
  "select",
1247
1247
  {
1248
1248
  ref: f,
1249
- id: _,
1249
+ id: g,
1250
1250
  "aria-invalid": !!r,
1251
1251
  required: d,
1252
- className: g(j.select, c),
1252
+ className: _(j.select, c),
1253
1253
  ...p,
1254
1254
  children: [
1255
1255
  o && /* @__PURE__ */ l("option", { value: "", disabled: !0, hidden: !0, children: o }),
@@ -1275,44 +1275,44 @@ function Zs() {
1275
1275
  }
1276
1276
  ) });
1277
1277
  }
1278
- const eo = "tempest_skeleton_CB4uF", to = "tempest_text_-A8IF", no = "tempest_circle_DYcl8", _e = {
1278
+ const eo = "tempest_skeleton_CB4uF", to = "tempest_text_-A8IF", no = "tempest_circle_DYcl8", ge = {
1279
1279
  skeleton: eo,
1280
1280
  text: to,
1281
1281
  circle: no
1282
1282
  };
1283
- function ka({ variant: e = "rect", width: t, height: n, className: r, style: s }) {
1283
+ function Sa({ variant: e = "rect", width: t, height: n, className: r, style: s }) {
1284
1284
  return /* @__PURE__ */ l(
1285
1285
  "span",
1286
1286
  {
1287
1287
  "aria-hidden": !0,
1288
- className: g(
1289
- _e.skeleton,
1290
- e === "text" && _e.text,
1291
- e === "circle" && _e.circle,
1288
+ className: _(
1289
+ ge.skeleton,
1290
+ e === "text" && ge.text,
1291
+ e === "circle" && ge.circle,
1292
1292
  r
1293
1293
  ),
1294
1294
  style: { width: t, height: n, ...s }
1295
1295
  }
1296
1296
  );
1297
1297
  }
1298
- const ro = "tempest_spinner_GpFZS", so = "tempest_tempest-spinner_wKVCY", oo = "tempest_sm_3sIoD", io = "tempest_md_M2sPj", ao = "tempest_lg_IxTw2", Ee = {
1298
+ const ro = "tempest_spinner_GpFZS", so = "tempest_tempest-spinner_wKVCY", oo = "tempest_sm_3sIoD", io = "tempest_md_M2sPj", ao = "tempest_lg_IxTw2", Te = {
1299
1299
  spinner: ro,
1300
1300
  tempestSpinner: so,
1301
1301
  sm: oo,
1302
1302
  md: io,
1303
1303
  lg: ao
1304
1304
  };
1305
- function Sa({ size: e = "md", className: t, label: n = "Carregando" }) {
1305
+ function Ea({ size: e = "md", className: t, label: n = "Carregando" }) {
1306
1306
  return /* @__PURE__ */ l(
1307
1307
  "span",
1308
1308
  {
1309
1309
  role: "status",
1310
1310
  "aria-label": n,
1311
- className: g(Ee.spinner, Ee[e], t)
1311
+ className: _(Te.spinner, Te[e], t)
1312
1312
  }
1313
1313
  );
1314
1314
  }
1315
- const co = "tempest_stepper_w3qjQ", lo = "tempest_vertical_d4mOs", uo = "tempest_step_s2nqL", po = "tempest_dot_d1bSL", fo = "tempest_completed_gcFHM", mo = "tempest_active_kL-CH", ho = "tempest_label_8irAI", _o = "tempest_connector_lyeWp", U = {
1315
+ const co = "tempest_stepper_w3qjQ", lo = "tempest_vertical_d4mOs", uo = "tempest_step_s2nqL", po = "tempest_dot_d1bSL", fo = "tempest_completed_gcFHM", mo = "tempest_active_kL-CH", ho = "tempest_label_8irAI", go = "tempest_connector_lyeWp", U = {
1316
1316
  stepper: co,
1317
1317
  vertical: lo,
1318
1318
  step: uo,
@@ -1320,20 +1320,20 @@ const co = "tempest_stepper_w3qjQ", lo = "tempest_vertical_d4mOs", uo = "tempest
1320
1320
  completed: fo,
1321
1321
  active: mo,
1322
1322
  label: ho,
1323
- connector: _o
1323
+ connector: go
1324
1324
  };
1325
- function xa({ steps: e, current: t, orientation: n = "horizontal", className: r }) {
1325
+ function Ta({ steps: e, current: t, orientation: n = "horizontal", className: r }) {
1326
1326
  return /* @__PURE__ */ l(
1327
1327
  "ol",
1328
1328
  {
1329
- className: g(U.stepper, n === "vertical" && U.vertical, r),
1329
+ className: _(U.stepper, n === "vertical" && U.vertical, r),
1330
1330
  children: e.map((s, o) => {
1331
1331
  const i = o < t, c = o === t;
1332
1332
  return /* @__PURE__ */ w(Re, { children: [
1333
1333
  /* @__PURE__ */ w(
1334
1334
  "li",
1335
1335
  {
1336
- className: g(
1336
+ className: _(
1337
1337
  U.step,
1338
1338
  i && U.completed,
1339
1339
  c && U.active
@@ -1348,7 +1348,7 @@ function xa({ steps: e, current: t, orientation: n = "horizontal", className: r
1348
1348
  o < e.length - 1 && /* @__PURE__ */ l(
1349
1349
  "span",
1350
1350
  {
1351
- className: g(U.connector, i && U.completed),
1351
+ className: _(U.connector, i && U.completed),
1352
1352
  "aria-hidden": !0
1353
1353
  }
1354
1354
  )
@@ -1357,15 +1357,15 @@ function xa({ steps: e, current: t, orientation: n = "horizontal", className: r
1357
1357
  }
1358
1358
  );
1359
1359
  }
1360
- const 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,
1360
+ const _o = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest_input_5BPNu", bo = "tempest_track_7ObdZ", vo = "tempest_thumb_-FTeK", No = "tempest_label_LrH7V", Z = {
1361
+ wrapper: _o,
1362
1362
  disabled: yo,
1363
1363
  input: wo,
1364
1364
  track: bo,
1365
1365
  thumb: vo,
1366
1366
  label: No
1367
- }, 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: [
1367
+ }, Ca = O(function({ label: t, disabled: n, wrapperClassName: r, className: s, ...o }, i) {
1368
+ return /* @__PURE__ */ w("label", { className: _(Z.wrapper, n && Z.disabled, r), children: [
1369
1369
  /* @__PURE__ */ l(
1370
1370
  "input",
1371
1371
  {
@@ -1373,25 +1373,25 @@ const go = "tempest_wrapper_kudO9", yo = "tempest_disabled_2aZ0V", wo = "tempest
1373
1373
  type: "checkbox",
1374
1374
  role: "switch",
1375
1375
  disabled: n,
1376
- className: g(Z.input, s),
1376
+ className: _(Z.input, s),
1377
1377
  ...o
1378
1378
  }
1379
1379
  ),
1380
1380
  /* @__PURE__ */ l("span", { className: Z.track, "aria-hidden": !0, children: /* @__PURE__ */ l("span", { className: Z.thumb }) }),
1381
1381
  t && /* @__PURE__ */ l("span", { className: Z.label, children: t })
1382
1382
  ] });
1383
- }), $o = "tempest_scroll_unrJp", ko = "tempest_table_Dkosn", 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 = {
1383
+ }), $o = "tempest_scroll_unrJp", ko = "tempest_table_Dkosn", xo = "tempest_th_PNuEx", So = "tempest_td_jv9tA", Eo = "tempest_tr_7UG8J", To = "tempest_clickable_B6Si-", Co = "tempest_alignRight_9hY0G", Lo = "tempest_alignCenter_YiUQy", Io = "tempest_emptyRow_kdMiv", R = {
1384
1384
  scroll: $o,
1385
1385
  table: ko,
1386
- th: So,
1387
- td: xo,
1388
- tr: To,
1389
- clickable: Eo,
1386
+ th: xo,
1387
+ td: So,
1388
+ tr: Eo,
1389
+ clickable: To,
1390
1390
  alignRight: Co,
1391
1391
  alignCenter: Lo,
1392
1392
  emptyRow: Io
1393
1393
  };
1394
- function Ea({
1394
+ function La({
1395
1395
  columns: e,
1396
1396
  data: t,
1397
1397
  rowKey: n,
@@ -1399,11 +1399,11 @@ function Ea({
1399
1399
  emptyMessage: s = "Nenhum registro encontrado.",
1400
1400
  className: o
1401
1401
  }) {
1402
- return /* @__PURE__ */ l("div", { className: g(R.scroll, o), children: /* @__PURE__ */ w("table", { className: R.table, children: [
1402
+ return /* @__PURE__ */ l("div", { className: _(R.scroll, o), children: /* @__PURE__ */ w("table", { className: R.table, children: [
1403
1403
  /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((i) => /* @__PURE__ */ l(
1404
1404
  "th",
1405
1405
  {
1406
- className: g(
1406
+ className: _(
1407
1407
  R.th,
1408
1408
  i.align === "right" && R.alignRight,
1409
1409
  i.align === "center" && R.alignCenter
@@ -1416,14 +1416,14 @@ function Ea({
1416
1416
  /* @__PURE__ */ l("tbody", { children: t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { className: R.emptyRow, colSpan: e.length, children: s }) }) : t.map((i, c) => /* @__PURE__ */ l(
1417
1417
  "tr",
1418
1418
  {
1419
- className: g(R.tr, r && R.clickable),
1419
+ className: _(R.tr, r && R.clickable),
1420
1420
  onClick: r ? () => r(i) : void 0,
1421
1421
  children: e.map((a) => {
1422
1422
  const u = a.render ? a.render(i, c) : i[a.key];
1423
1423
  return /* @__PURE__ */ l(
1424
1424
  "td",
1425
1425
  {
1426
- className: g(
1426
+ className: _(
1427
1427
  R.td,
1428
1428
  a.align === "right" && R.alignRight,
1429
1429
  a.align === "center" && R.alignCenter,
@@ -1446,7 +1446,7 @@ const Do = "tempest_tablist_WR6ag", Mo = "tempest_tab_IdDYc", Po = "tempest_acti
1446
1446
  panel: Ao,
1447
1447
  pill: Ro
1448
1448
  };
1449
- function Ca({
1449
+ function Ia({
1450
1450
  items: e,
1451
1451
  defaultId: t,
1452
1452
  activeId: n,
@@ -1459,18 +1459,18 @@ function Ca({
1459
1459
  u || a(m), r?.(m);
1460
1460
  }
1461
1461
  return /* @__PURE__ */ w("div", { className: o, children: [
1462
- /* @__PURE__ */ l("div", { role: "tablist", className: g(ie.tablist, s === "pill" && ie.pill), children: e.map((m) => {
1463
- const _ = m.id === p?.id;
1462
+ /* @__PURE__ */ l("div", { role: "tablist", className: _(ie.tablist, s === "pill" && ie.pill), children: e.map((m) => {
1463
+ const g = m.id === p?.id;
1464
1464
  return /* @__PURE__ */ l(
1465
1465
  "button",
1466
1466
  {
1467
1467
  type: "button",
1468
1468
  role: "tab",
1469
- "aria-selected": _,
1469
+ "aria-selected": g,
1470
1470
  "aria-controls": `panel-${m.id}`,
1471
1471
  id: `tab-${m.id}`,
1472
1472
  disabled: m.disabled,
1473
- className: g(ie.tab, _ && ie.active),
1473
+ className: _(ie.tab, g && ie.active),
1474
1474
  onClick: () => f(m.id),
1475
1475
  children: m.label
1476
1476
  },
@@ -1497,9 +1497,9 @@ const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_re
1497
1497
  error: jo,
1498
1498
  helper: Uo,
1499
1499
  errorText: zo
1500
- }, La = O(function({ label: t, helperText: n, error: r, wrapperClassName: s, className: o, id: i, required: c, ...a }, u) {
1500
+ }, Da = O(function({ label: t, helperText: n, error: r, wrapperClassName: s, className: o, id: i, required: c, ...a }, u) {
1501
1501
  const d = ae(), p = i ?? d;
1502
- return /* @__PURE__ */ w("div", { className: g(V.wrapper, r && V.error, s), children: [
1502
+ return /* @__PURE__ */ w("div", { className: _(V.wrapper, r && V.error, s), children: [
1503
1503
  t && /* @__PURE__ */ w("label", { htmlFor: p, className: V.label, children: [
1504
1504
  t,
1505
1505
  c && /* @__PURE__ */ l("span", { className: V.required, children: "*" })
@@ -1511,22 +1511,22 @@ const Fo = "tempest_wrapper_C0gfg", Oo = "tempest_label_cWLXP", Wo = "tempest_re
1511
1511
  id: p,
1512
1512
  "aria-invalid": !!r,
1513
1513
  required: c,
1514
- className: g(V.textarea, o),
1514
+ className: _(V.textarea, o),
1515
1515
  ...a
1516
1516
  }
1517
1517
  ),
1518
1518
  r ? /* @__PURE__ */ l("span", { className: V.errorText, children: r }) : n ? /* @__PURE__ */ l("span", { className: V.helper, children: n }) : null
1519
1519
  ] });
1520
- }), Jo = "tempest_trigger_Dmc5E", qo = "tempest_bubble_TPGHB", Go = "tempest_tempest-tooltip-in_csYeZ", Ho = "tempest_top_m2tnn", Ko = "tempest_bottom_9Twz4", Vo = "tempest_left_UPdrG", Qo = "tempest_right_CV--T", ge = {
1520
+ }), Jo = "tempest_trigger_Dmc5E", Go = "tempest_bubble_TPGHB", qo = "tempest_tempest-tooltip-in_csYeZ", Ho = "tempest_top_m2tnn", Ko = "tempest_bottom_9Twz4", Vo = "tempest_left_UPdrG", Qo = "tempest_right_CV--T", _e = {
1521
1521
  trigger: Jo,
1522
- bubble: qo,
1523
- tempestTooltipIn: Go,
1522
+ bubble: Go,
1523
+ tempestTooltipIn: qo,
1524
1524
  top: Ho,
1525
1525
  bottom: Ko,
1526
1526
  left: Vo,
1527
1527
  right: Qo
1528
1528
  };
1529
- function Ia({
1529
+ function Ma({
1530
1530
  content: e,
1531
1531
  placement: t = "top",
1532
1532
  children: n,
@@ -1548,14 +1548,14 @@ function Ia({
1548
1548
  onBlur: d,
1549
1549
  "aria-describedby": o ? c : void 0
1550
1550
  });
1551
- return /* @__PURE__ */ w("span", { className: ge.trigger, children: [
1551
+ return /* @__PURE__ */ w("span", { className: _e.trigger, children: [
1552
1552
  p,
1553
1553
  o && /* @__PURE__ */ l(
1554
1554
  "span",
1555
1555
  {
1556
1556
  id: c,
1557
1557
  role: "tooltip",
1558
- className: g(ge.bubble, ge[t]),
1558
+ className: _(_e.bubble, _e[t]),
1559
1559
  children: e
1560
1560
  }
1561
1561
  )
@@ -1573,15 +1573,15 @@ const Yo = "tempest_container_x4-Qm", Xo = "tempest_toast_FLdHz", Zo = "tempest_
1573
1573
  description: oi,
1574
1574
  close: ii
1575
1575
  }, Be = ne(null);
1576
- function Da() {
1576
+ function Pa() {
1577
1577
  const e = te(Be);
1578
1578
  if (!e) throw new Error("useToast must be used inside a <ToastProvider>");
1579
1579
  return e;
1580
1580
  }
1581
- function Ma({ children: e, defaultDuration: t = 4e3 }) {
1582
- const [n, r] = v([]), s = T(0), o = x((a) => {
1581
+ function Aa({ children: e, defaultDuration: t = 4e3 }) {
1582
+ const [n, r] = v([]), s = E(0), o = S((a) => {
1583
1583
  r((u) => u.filter((d) => d.id !== a));
1584
- }, []), i = x(
1584
+ }, []), i = S(
1585
1585
  (a) => {
1586
1586
  const u = a.id ?? `toast-${++s.current}`, d = {
1587
1587
  id: u,
@@ -1620,7 +1620,7 @@ function ci({ toast: e, onDismiss: t }) {
1620
1620
  if (!e.duration) return;
1621
1621
  const n = setTimeout(() => t(e.id), e.duration);
1622
1622
  return () => clearTimeout(n);
1623
- }, [e.id, e.duration, t]), /* @__PURE__ */ w("div", { className: g(ee.toast, ee[e.variant]), role: "status", children: [
1623
+ }, [e.id, e.duration, t]), /* @__PURE__ */ w("div", { className: _(ee.toast, ee[e.variant]), role: "status", children: [
1624
1624
  /* @__PURE__ */ w("div", { children: [
1625
1625
  e.title && /* @__PURE__ */ l("p", { className: ee.title, children: e.title }),
1626
1626
  e.description && /* @__PURE__ */ l("p", { className: ee.description, children: e.description })
@@ -1653,7 +1653,7 @@ const ui = "tempest_scroll_8Giwl", di = "tempest_spacer_P3Pvl", pi = "tempest_ro
1653
1653
  spacer: di,
1654
1654
  row: pi
1655
1655
  };
1656
- function Pa({
1656
+ function Ra({
1657
1657
  items: e,
1658
1658
  itemHeight: t,
1659
1659
  renderItem: n,
@@ -1663,24 +1663,24 @@ function Pa({
1663
1663
  className: i,
1664
1664
  style: c
1665
1665
  }) {
1666
- const a = T(null), [u, d] = v(0), [p, f] = v(0);
1666
+ const a = E(null), [u, d] = v(0), [p, f] = v(0);
1667
1667
  k(() => {
1668
1668
  const y = a.current;
1669
1669
  if (!y || (f(y.clientHeight), typeof ResizeObserver > "u")) return;
1670
1670
  const N = new ResizeObserver(() => f(y.clientHeight));
1671
1671
  return N.observe(y), () => N.disconnect();
1672
1672
  }, []);
1673
- const m = e.length * t, _ = Math.max(0, Math.floor(u / t) - s), h = Math.ceil(p / t) + s * 2, b = Math.min(e.length, _ + h);
1673
+ const m = e.length * t, g = Math.max(0, Math.floor(u / t) - s), h = Math.ceil(p / t) + s * 2, b = Math.min(e.length, g + h);
1674
1674
  return /* @__PURE__ */ l(
1675
1675
  "div",
1676
1676
  {
1677
1677
  ref: a,
1678
- className: g(ye.scroll, i),
1678
+ className: _(ye.scroll, i),
1679
1679
  style: { height: r, ...c },
1680
1680
  onScroll: (y) => d(y.target.scrollTop),
1681
1681
  role: "list",
1682
- children: /* @__PURE__ */ l("div", { className: ye.spacer, style: { height: m }, children: e.slice(_, b).map((y, N) => {
1683
- const $ = _ + N, C = o ? o(y, $) : $;
1682
+ children: /* @__PURE__ */ l("div", { className: ye.spacer, style: { height: m }, children: e.slice(g, b).map((y, N) => {
1683
+ const $ = g + N, C = o ? o(y, $) : $;
1684
1684
  return /* @__PURE__ */ l(
1685
1685
  "div",
1686
1686
  {
@@ -1695,18 +1695,18 @@ function Pa({
1695
1695
  }
1696
1696
  );
1697
1697
  }
1698
- function Aa(e, t = 300) {
1698
+ function Fa(e, t = 300) {
1699
1699
  const [n, r] = v(e);
1700
1700
  return k(() => {
1701
1701
  const s = setTimeout(() => r(e), t);
1702
1702
  return () => clearTimeout(s);
1703
1703
  }, [e, t]), n;
1704
1704
  }
1705
- function Ra(e = 1, t = 50) {
1706
- const [n, r] = v(e), [s, o] = v(t), i = x(() => r(1), []);
1705
+ function Oa(e = 1, t = 50) {
1706
+ const [n, r] = v(e), [s, o] = v(t), i = S(() => r(1), []);
1707
1707
  return { page: n, size: s, setPage: r, setSize: o, reset: i };
1708
1708
  }
1709
- function Fa(e, t, n) {
1709
+ function Wa(e, t, n) {
1710
1710
  return W(() => {
1711
1711
  const r = t.trim().toLowerCase();
1712
1712
  return r ? typeof n == "function" ? e.filter((s) => n(s, r)) : e.filter(
@@ -1717,7 +1717,7 @@ function Fa(e, t, n) {
1717
1717
  ) : e;
1718
1718
  }, [e, t, n]);
1719
1719
  }
1720
- function Oa(e) {
1720
+ function Ba(e) {
1721
1721
  const [t, n] = v(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
1722
1722
  return k(() => {
1723
1723
  if (typeof window > "u") return;
@@ -1725,7 +1725,7 @@ function Oa(e) {
1725
1725
  return n(r.matches), r.addEventListener("change", s), () => r.removeEventListener("change", s);
1726
1726
  }, [e]), t;
1727
1727
  }
1728
- function Wa() {
1728
+ function ja() {
1729
1729
  const [e, t] = v(
1730
1730
  () => typeof navigator > "u" ? !0 : navigator.onLine
1731
1731
  );
@@ -1737,7 +1737,7 @@ function Wa() {
1737
1737
  };
1738
1738
  }, []), e;
1739
1739
  }
1740
- function Ba() {
1740
+ function Ua() {
1741
1741
  const [e, t] = v(
1742
1742
  () => typeof document > "u" ? "visible" : document.visibilityState
1743
1743
  );
@@ -1747,7 +1747,7 @@ function Ba() {
1747
1747
  return document.addEventListener("visibilitychange", n), () => document.removeEventListener("visibilitychange", n);
1748
1748
  }, []), e;
1749
1749
  }
1750
- function ja(e, t = {}) {
1750
+ function za(e, t = {}) {
1751
1751
  const [n, r] = v(null), { once: s = !1, root: o, rootMargin: i, threshold: c } = t;
1752
1752
  return k(() => {
1753
1753
  const a = e.current;
@@ -1761,7 +1761,7 @@ function ja(e, t = {}) {
1761
1761
  return u.observe(a), () => u.disconnect();
1762
1762
  }, [e, s, o, i, c]), n;
1763
1763
  }
1764
- function Ua(e) {
1764
+ function Ja(e) {
1765
1765
  const [t, n] = v(null);
1766
1766
  return k(() => {
1767
1767
  const r = e.current;
@@ -1775,12 +1775,12 @@ function Ua(e) {
1775
1775
  return s.observe(r), () => s.disconnect();
1776
1776
  }, [e]), t;
1777
1777
  }
1778
- function za(e = {}) {
1779
- const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s = T(null), o = x(() => {
1778
+ function Ga(e = {}) {
1779
+ const { resetAfter: t = 1500 } = e, [n, r] = v(!1), s = E(null), o = S(() => {
1780
1780
  s.current && (clearTimeout(s.current), s.current = null), r(!1);
1781
1781
  }, []);
1782
1782
  k(() => () => o(), [o]);
1783
- const i = x(
1783
+ const i = S(
1784
1784
  async (c) => {
1785
1785
  try {
1786
1786
  if (typeof navigator < "u" && navigator.clipboard?.writeText)
@@ -1812,7 +1812,7 @@ function mi(e) {
1812
1812
  const t = e.tagName.toLowerCase();
1813
1813
  return t === "input" || t === "textarea" || t === "select" ? !0 : e.isContentEditable;
1814
1814
  }
1815
- function Ja(e, t, n = {}) {
1815
+ function qa(e, t, n = {}) {
1816
1816
  const { disabled: r = !1, ignoreInput: s = !0 } = n;
1817
1817
  k(() => {
1818
1818
  if (r || typeof window > "u") return;
@@ -1832,7 +1832,7 @@ function Ja(e, t, n = {}) {
1832
1832
  t
1833
1833
  ]);
1834
1834
  }
1835
- function qa() {
1835
+ function Ha() {
1836
1836
  const [e, t] = v(null), [n, r] = v(!1);
1837
1837
  k(() => {
1838
1838
  if (typeof window > "u") return;
@@ -1845,7 +1845,7 @@ function qa() {
1845
1845
  window.removeEventListener("beforeinstallprompt", o), window.removeEventListener("appinstalled", i);
1846
1846
  };
1847
1847
  }, []);
1848
- const s = x(async () => {
1848
+ const s = S(async () => {
1849
1849
  if (!e) return "unsupported";
1850
1850
  await e.prompt();
1851
1851
  const o = await e.userChoice;
@@ -1865,7 +1865,7 @@ const Ce = [
1865
1865
  "wheel",
1866
1866
  "scroll"
1867
1867
  ];
1868
- function Ga(e = 6e4) {
1868
+ function Ka(e = 6e4) {
1869
1869
  const [t, n] = v(!1);
1870
1870
  return k(() => {
1871
1871
  if (typeof window > "u") return;
@@ -1882,7 +1882,7 @@ function Ga(e = 6e4) {
1882
1882
  };
1883
1883
  }, [e]), t;
1884
1884
  }
1885
- function Ha(e = {}) {
1885
+ function Va(e = {}) {
1886
1886
  const { watch: t = !1, disabled: n = !1, ...r } = e, [s, o] = v({
1887
1887
  loading: !n,
1888
1888
  error: null,
@@ -1921,7 +1921,7 @@ function Ha(e = {}) {
1921
1921
  r.timeout
1922
1922
  ]), s;
1923
1923
  }
1924
- function Ka(e) {
1924
+ function Qa(e) {
1925
1925
  k(() => {
1926
1926
  if (!e || typeof document > "u") return;
1927
1927
  const t = document.body, n = t.style.overflow;
@@ -1938,7 +1938,7 @@ const hi = [
1938
1938
  "select:not([disabled])",
1939
1939
  "[tabindex]:not([tabindex='-1'])"
1940
1940
  ].join(",");
1941
- function Va(e, t) {
1941
+ function Ya(e, t) {
1942
1942
  k(() => {
1943
1943
  if (!t) return;
1944
1944
  const n = e.current;
@@ -1968,9 +1968,9 @@ function Va(e, t) {
1968
1968
  };
1969
1969
  }, [e, t]);
1970
1970
  }
1971
- function Qa(e) {
1972
- const t = T(e);
1973
- return t.current = e, x((...n) => t.current(...n), []);
1971
+ function Xa(e) {
1972
+ const t = E(e);
1973
+ return t.current = e, S((...n) => t.current(...n), []);
1974
1974
  }
1975
1975
  function Ne(e, t) {
1976
1976
  if (Object.is(e, t)) return !0;
@@ -1982,18 +1982,18 @@ function Ne(e, t) {
1982
1982
  (s) => Ne(e[s], t[s])
1983
1983
  );
1984
1984
  }
1985
- function Ya(e) {
1986
- const t = T(e);
1985
+ function Za(e) {
1986
+ const t = E(e);
1987
1987
  return Ne(t.current, e) || (t.current = e), t.current;
1988
1988
  }
1989
- function _i(e, t, n) {
1989
+ function gi(e, t, n) {
1990
1990
  const r = new URL(t, e.endsWith("/") ? e : `${e}/`);
1991
1991
  if (n)
1992
1992
  for (const [s, o] of Object.entries(n))
1993
1993
  o != null && r.searchParams.set(s, String(o));
1994
1994
  return r.toString();
1995
1995
  }
1996
- function gi(e) {
1996
+ function _i(e) {
1997
1997
  return typeof FormData < "u" && e instanceof FormData;
1998
1998
  }
1999
1999
  async function Le(e) {
@@ -2014,25 +2014,25 @@ async function Le(e) {
2014
2014
  body: t
2015
2015
  };
2016
2016
  }
2017
- function Xa(e) {
2017
+ function ec(e) {
2018
2018
  const t = e.fetcher ?? globalThis.fetch.bind(globalThis);
2019
2019
  function n() {
2020
2020
  const i = e.getToken?.();
2021
2021
  return i ? { Authorization: `Bearer ${i}` } : {};
2022
2022
  }
2023
2023
  async function r(i, c) {
2024
- const { body: a, params: u, headers: d, ...p } = c, f = gi(a), m = {
2024
+ const { body: a, params: u, headers: d, ...p } = c, f = _i(a), m = {
2025
2025
  ...f ? {} : { "Content-Type": "application/json" },
2026
2026
  ...e.headers,
2027
2027
  ...n(),
2028
2028
  ...d
2029
- }, _ = {
2029
+ }, g = {
2030
2030
  ...p,
2031
2031
  headers: m,
2032
2032
  credentials: e.withCredentials ? "include" : p.credentials,
2033
2033
  body: a == null ? void 0 : f ? a : JSON.stringify(a)
2034
2034
  };
2035
- return t(_i(e.baseURL, i, u), _);
2035
+ return t(gi(e.baseURL, i, u), g);
2036
2036
  }
2037
2037
  async function s(i, c = {}) {
2038
2038
  let a = await r(i, c);
@@ -2062,7 +2062,7 @@ function Xa(e) {
2062
2062
  upload: o
2063
2063
  };
2064
2064
  }
2065
- function Za(e, t, n) {
2065
+ function tc(e, t, n) {
2066
2066
  const r = e.safeParse(t);
2067
2067
  if (r.success)
2068
2068
  return r.data;
@@ -2086,7 +2086,7 @@ function yi(e) {
2086
2086
  return e;
2087
2087
  }
2088
2088
  }
2089
- function ec(e) {
2089
+ function nc(e) {
2090
2090
  const {
2091
2091
  url: t,
2092
2092
  body: n,
@@ -2105,9 +2105,9 @@ function ec(e) {
2105
2105
  }
2106
2106
  const f = new XMLHttpRequest();
2107
2107
  f.open(r, t), f.withCredentials = i;
2108
- const m = o?.(), _ = { ...s };
2109
- m && !("Authorization" in _) && (_.Authorization = `Bearer ${m}`);
2110
- for (const [b, y] of Object.entries(_))
2108
+ const m = o?.(), g = { ...s };
2109
+ m && !("Authorization" in g) && (g.Authorization = `Bearer ${m}`);
2110
+ for (const [b, y] of Object.entries(g))
2111
2111
  f.setRequestHeader(b, y);
2112
2112
  c && (f.upload.onprogress = (b) => {
2113
2113
  c({
@@ -2167,7 +2167,7 @@ function wi(e, t) {
2167
2167
  );
2168
2168
  });
2169
2169
  }
2170
- async function tc(e, t = {}) {
2170
+ async function rc(e, t = {}) {
2171
2171
  const {
2172
2172
  retries: n = 3,
2173
2173
  initialDelay: r = 300,
@@ -2190,14 +2190,14 @@ async function tc(e, t = {}) {
2190
2190
  }
2191
2191
  throw u;
2192
2192
  }
2193
- function nc() {
2193
+ function sc() {
2194
2194
  return typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
2195
2195
  const t = Math.random() * 16;
2196
2196
  return (e === "x" ? Math.floor(t) : Math.floor(t) & 3 | 8).toString(16);
2197
2197
  });
2198
2198
  }
2199
- function 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);
2199
+ function oc(e, t) {
2200
+ const { interval: n, disabled: r = !1, stopWhen: s, onError: o } = t, [i, c] = v(null), [a, u] = v(null), [d, p] = v(!r), f = E(r), m = E(!1), g = E(null);
2201
2201
  async function h() {
2202
2202
  if (!(f.current || m.current)) {
2203
2203
  m.current = !0;
@@ -2208,31 +2208,31 @@ function rc(e, t) {
2208
2208
  } catch (b) {
2209
2209
  f.current || (u(b), o?.(b));
2210
2210
  } finally {
2211
- m.current = !1, p(!1), f.current || (_.current = setTimeout(h, n));
2211
+ m.current = !1, p(!1), f.current || (g.current = setTimeout(h, n));
2212
2212
  }
2213
2213
  }
2214
2214
  }
2215
2215
  return k(() => {
2216
2216
  if (f.current = r, r) {
2217
- _.current && clearTimeout(_.current);
2217
+ g.current && clearTimeout(g.current);
2218
2218
  return;
2219
2219
  }
2220
2220
  return p(!0), h(), () => {
2221
- f.current = !0, _.current && clearTimeout(_.current);
2221
+ f.current = !0, g.current && clearTimeout(g.current);
2222
2222
  };
2223
2223
  }, [n, r]), {
2224
2224
  data: i,
2225
2225
  error: a,
2226
2226
  loading: d,
2227
2227
  stop: () => {
2228
- f.current = !0, _.current && clearTimeout(_.current);
2228
+ f.current = !0, g.current && clearTimeout(g.current);
2229
2229
  },
2230
2230
  start: () => {
2231
2231
  f.current && (f.current = !1, h());
2232
2232
  }
2233
2233
  };
2234
2234
  }
2235
- function sc(e = {}) {
2235
+ function ic(e = {}) {
2236
2236
  const t = e.name ?? "tempest-auth", n = e.storage === "session" ? () => sessionStorage : () => localStorage;
2237
2237
  return nt()(
2238
2238
  rt(
@@ -2256,7 +2256,7 @@ function sc(e = {}) {
2256
2256
  )
2257
2257
  );
2258
2258
  }
2259
- function oc({ isAuthenticated: e, children: t, fallback: n }) {
2259
+ function ac({ isAuthenticated: e, children: t, fallback: n }) {
2260
2260
  return /* @__PURE__ */ l($e, { children: e ? t : n });
2261
2261
  }
2262
2262
  function Ie(e) {
@@ -2277,7 +2277,7 @@ function bi(e) {
2277
2277
  throw new Error("Invalid JWT: header or payload is not valid JSON.");
2278
2278
  }
2279
2279
  }
2280
- function ic(e, t = 0) {
2280
+ function cc(e, t = 0) {
2281
2281
  try {
2282
2282
  const { payload: n } = bi(e);
2283
2283
  if (typeof n.exp != "number") return !0;
@@ -2287,7 +2287,7 @@ function ic(e, t = 0) {
2287
2287
  return !0;
2288
2288
  }
2289
2289
  }
2290
- function ac(e, t = {}) {
2290
+ function lc(e, t = {}) {
2291
2291
  const { retries: n = 3, initialDelay: r = 400, reloadOnFinalFailure: s = !0 } = t;
2292
2292
  async function o(i = 1) {
2293
2293
  try {
@@ -2300,7 +2300,7 @@ function ac(e, t = {}) {
2300
2300
  }
2301
2301
  return Xe(o);
2302
2302
  }
2303
- function cc(e) {
2303
+ function uc(e) {
2304
2304
  let t = null;
2305
2305
  return () => t || (t = (async () => {
2306
2306
  try {
@@ -2319,19 +2319,19 @@ const vi = {
2319
2319
  SHORT: 300 * 1e3,
2320
2320
  DEFAULT: 1800 * 1e3,
2321
2321
  LONG: 3600 * 1e3
2322
- }, lc = {
2322
+ }, dc = {
2323
2323
  REALTIME: 5 * 1e3,
2324
2324
  FAST: 30 * 1e3,
2325
2325
  DEFAULT: 60 * 1e3,
2326
2326
  SLOW: 300 * 1e3
2327
2327
  };
2328
- function uc(e, t) {
2328
+ function pc(e, t) {
2329
2329
  const n = { all: [e] };
2330
2330
  for (const [r, s] of Object.entries(t))
2331
2331
  typeof s == "function" ? n[r] = (...o) => [e, ...s(...o)] : n[r] = [e, ...s];
2332
2332
  return n;
2333
2333
  }
2334
- function dc({ children: e, client: t, defaultOptions: n }) {
2334
+ function fc({ children: e, client: t, defaultOptions: n }) {
2335
2335
  const [r] = v(
2336
2336
  () => t ?? new et({
2337
2337
  defaultOptions: {
@@ -2372,13 +2372,13 @@ function ki(e, t = {}) {
2372
2372
  onError: p,
2373
2373
  onStatusChange: f
2374
2374
  } = t;
2375
- let m = null, _ = null, h = 0, b = "idle", y = !1;
2376
- function N(S) {
2377
- b !== S && (b = S, f?.(S));
2375
+ let m = null, g = null, h = 0, b = "idle", y = !1;
2376
+ function N(x) {
2377
+ b !== x && (b = x, f?.(x));
2378
2378
  }
2379
- function $(S, L) {
2380
- s.includes(S) || d?.({
2381
- event: S,
2379
+ function $(x, L) {
2380
+ s.includes(x) || d?.({
2381
+ event: x,
2382
2382
  data: a(L.data),
2383
2383
  id: L.lastEventId || void 0,
2384
2384
  raw: L
@@ -2390,30 +2390,30 @@ function ki(e, t = {}) {
2390
2390
  N("error");
2391
2391
  return;
2392
2392
  }
2393
- const S = Math.min(i * 2 ** h, c);
2394
- h += 1, _ = setTimeout(I, S);
2393
+ const x = Math.min(i * 2 ** h, c);
2394
+ h += 1, g = setTimeout(I, x);
2395
2395
  }
2396
2396
  function I() {
2397
2397
  if (y) return;
2398
2398
  m && m.close(), N("connecting");
2399
- const S = new EventSource(e, { withCredentials: n });
2400
- m = S, S.onopen = () => {
2399
+ const x = new EventSource(e, { withCredentials: n });
2400
+ m = x, x.onopen = () => {
2401
2401
  h = 0, N("open"), u?.();
2402
- }, S.onmessage = (L) => $("message", L);
2402
+ }, x.onmessage = (L) => $("message", L);
2403
2403
  for (const L of r)
2404
- S.addEventListener(L, (he) => $(L, he));
2404
+ x.addEventListener(L, (he) => $(L, he));
2405
2405
  for (const L of s)
2406
- S.addEventListener(L, () => {
2406
+ x.addEventListener(L, () => {
2407
2407
  });
2408
- S.onerror = (L) => {
2409
- p?.(L), S.close(), m = null, N("closed"), C();
2408
+ x.onerror = (L) => {
2409
+ p?.(L), x.close(), m = null, N("closed"), C();
2410
2410
  };
2411
2411
  }
2412
2412
  function fe() {
2413
- y = !0, _ && (clearTimeout(_), _ = null), h = 0, m && (m.close(), m = null), N("closed");
2413
+ y = !0, g && (clearTimeout(g), g = null), h = 0, m && (m.close(), m = null), N("closed");
2414
2414
  }
2415
2415
  function me() {
2416
- _ && (clearTimeout(_), _ = null), h = 0, y = !1, I();
2416
+ g && (clearTimeout(g), g = null), h = 0, y = !1, I();
2417
2417
  }
2418
2418
  return I(), {
2419
2419
  close: fe,
@@ -2423,8 +2423,8 @@ function ki(e, t = {}) {
2423
2423
  }
2424
2424
  };
2425
2425
  }
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);
2426
+ function mc(e, t = {}) {
2427
+ const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = E(null), d = E(r);
2428
2428
  return d.current = r, k(() => {
2429
2429
  if (!n || !e) {
2430
2430
  i("idle");
@@ -2446,7 +2446,7 @@ function pc(e, t = {}) {
2446
2446
  reconnect: () => u.current?.()
2447
2447
  };
2448
2448
  }
2449
- function Si(e) {
2449
+ function xi(e) {
2450
2450
  const t = "=".repeat((4 - e.length % 4) % 4), n = (e + t).replace(/-/g, "+").replace(/_/g, "/"), r = window.atob(n), s = new ArrayBuffer(r.length), o = new Uint8Array(s);
2451
2451
  for (let i = 0; i < r.length; i++)
2452
2452
  o[i] = r.charCodeAt(i);
@@ -2460,12 +2460,12 @@ class De extends Error {
2460
2460
  super("Web Push não suportado neste navegador."), this.name = "WebPushUnsupportedError";
2461
2461
  }
2462
2462
  }
2463
- class xi extends Error {
2463
+ class Si extends Error {
2464
2464
  constructor() {
2465
2465
  super("Permissão de notificação negada pelo usuário."), this.name = "WebPushPermissionDeniedError";
2466
2466
  }
2467
2467
  }
2468
- class Ti {
2468
+ class Ei {
2469
2469
  config;
2470
2470
  constructor(t) {
2471
2471
  this.config = t;
@@ -2510,13 +2510,13 @@ class Ti {
2510
2510
  * @throws {WebPushPermissionDeniedError} If the user denies the prompt.
2511
2511
  */
2512
2512
  async subscribe() {
2513
- if (await this.requestPermission() !== "granted") throw new xi();
2513
+ if (await this.requestPermission() !== "granted") throw new Si();
2514
2514
  const n = await this.registration(), r = await n.pushManager.getSubscription();
2515
2515
  if (r)
2516
2516
  return await this.config.onSubscribe(r.toJSON()), r;
2517
2517
  const s = await n.pushManager.subscribe({
2518
2518
  userVisibleOnly: !0,
2519
- applicationServerKey: Si(this.config.vapidPublicKey)
2519
+ applicationServerKey: xi(this.config.vapidPublicKey)
2520
2520
  });
2521
2521
  return await this.config.onSubscribe(s.toJSON()), s;
2522
2522
  }
@@ -2531,11 +2531,11 @@ class Ti {
2531
2531
  return t ? (this.config.onUnsubscribe && await this.config.onUnsubscribe(t.toJSON()), t.unsubscribe()) : !1;
2532
2532
  }
2533
2533
  }
2534
- function fc(e) {
2535
- const t = T(e);
2534
+ function hc(e) {
2535
+ const t = E(e);
2536
2536
  t.current = e;
2537
2537
  const n = W(
2538
- () => new Ti({
2538
+ () => new Ei({
2539
2539
  vapidPublicKey: e.vapidPublicKey,
2540
2540
  onSubscribe: (h) => t.current.onSubscribe(h),
2541
2541
  onUnsubscribe: (h) => t.current.onUnsubscribe?.(h),
@@ -2544,7 +2544,7 @@ function fc(e) {
2544
2544
  [e.vapidPublicKey, e.getRegistration]
2545
2545
  ), [r] = v(() => ue()), [s, o] = v(
2546
2546
  () => n.permission()
2547
- ), [i, c] = v(!1), [a, u] = v(!1), [d, p] = v(null), f = x(async () => {
2547
+ ), [i, c] = v(!1), [a, u] = v(!1), [d, p] = v(null), f = S(async () => {
2548
2548
  if (r) {
2549
2549
  o(n.permission());
2550
2550
  try {
@@ -2558,7 +2558,7 @@ function fc(e) {
2558
2558
  k(() => {
2559
2559
  f();
2560
2560
  }, [f]);
2561
- const m = x(async () => {
2561
+ const m = S(async () => {
2562
2562
  if (r) {
2563
2563
  u(!0), p(null);
2564
2564
  try {
@@ -2569,7 +2569,7 @@ function fc(e) {
2569
2569
  u(!1);
2570
2570
  }
2571
2571
  }
2572
- }, [n, r]), _ = x(async () => {
2572
+ }, [n, r]), g = S(async () => {
2573
2573
  if (r) {
2574
2574
  u(!0), p(null);
2575
2575
  try {
@@ -2588,11 +2588,11 @@ function fc(e) {
2588
2588
  loading: a,
2589
2589
  error: d,
2590
2590
  subscribe: m,
2591
- unsubscribe: _,
2591
+ unsubscribe: g,
2592
2592
  refresh: f
2593
2593
  };
2594
2594
  }
2595
- async function mc(e) {
2595
+ async function gc(e) {
2596
2596
  if (typeof navigator > "u" || !("serviceWorker" in navigator))
2597
2597
  return null;
2598
2598
  try {
@@ -2609,10 +2609,10 @@ async function mc(e) {
2609
2609
  return e.onError?.(t), null;
2610
2610
  }
2611
2611
  }
2612
- function hc(e) {
2612
+ function _c(e) {
2613
2613
  e.postMessage({ type: "SKIP_WAITING" });
2614
2614
  }
2615
- async function _c() {
2615
+ async function yc() {
2616
2616
  if (typeof navigator > "u" || !("serviceWorker" in navigator)) return 0;
2617
2617
  const e = await navigator.serviceWorker.getRegistrations();
2618
2618
  let t = 0;
@@ -2620,11 +2620,11 @@ async function _c() {
2620
2620
  await n.unregister() && (t += 1);
2621
2621
  return t;
2622
2622
  }
2623
- function xe() {
2623
+ function Se() {
2624
2624
  return globalThis;
2625
2625
  }
2626
- function gc(e = {}) {
2627
- const t = xe(), { defaultTitle: n = "Notificação", defaultIcon: r, defaultBadge: s, transform: o } = e;
2626
+ function wc(e = {}) {
2627
+ const t = Se(), { defaultTitle: n = "Notificação", defaultIcon: r, defaultBadge: s, transform: o } = e;
2628
2628
  t.addEventListener("push", (i) => {
2629
2629
  if (!i.data) return;
2630
2630
  let c;
@@ -2646,8 +2646,8 @@ function gc(e = {}) {
2646
2646
  i.waitUntil(t.registration.showNotification(u, d));
2647
2647
  });
2648
2648
  }
2649
- function yc(e = {}) {
2650
- const t = xe(), n = e.resolveUrl ?? ((r) => {
2649
+ function bc(e = {}) {
2650
+ const t = Se(), n = e.resolveUrl ?? ((r) => {
2651
2651
  if (typeof r == "string") return r;
2652
2652
  if (r && typeof r == "object" && "url" in r) {
2653
2653
  const s = r.url;
@@ -2672,8 +2672,8 @@ function yc(e = {}) {
2672
2672
  );
2673
2673
  });
2674
2674
  }
2675
- function wc() {
2676
- const e = xe();
2675
+ function vc() {
2676
+ const e = Se();
2677
2677
  e.addEventListener("message", (t) => {
2678
2678
  t.data?.type === "SKIP_WAITING" && e.skipWaiting();
2679
2679
  });
@@ -2705,41 +2705,41 @@ let we = null;
2705
2705
  function Ue() {
2706
2706
  return we || (we = je()), we;
2707
2707
  }
2708
- async function bc(e, t) {
2708
+ async function Nc(e, t) {
2709
2709
  return Ue().play(e, t);
2710
2710
  }
2711
- function vc() {
2711
+ function $c() {
2712
2712
  Ue().stop();
2713
2713
  }
2714
- function Nc() {
2715
- const e = T(null), [t, n] = v(!1);
2714
+ function kc() {
2715
+ const e = E(null), [t, n] = v(!1);
2716
2716
  e.current || (e.current = je()), k(() => () => {
2717
2717
  e.current?.stop();
2718
2718
  }, []);
2719
- const r = x(async (o, i) => {
2719
+ const r = S(async (o, i) => {
2720
2720
  await e.current.play(o, i) && n(!0);
2721
- }, []), s = x(() => {
2721
+ }, []), s = S(() => {
2722
2722
  e.current?.stop();
2723
2723
  }, []);
2724
2724
  return { play: r, stop: s, unlocked: t };
2725
2725
  }
2726
- class Ei extends ot {
2726
+ class Ti extends ot {
2727
2727
  store;
2728
2728
  constructor(t, n, r, s) {
2729
2729
  super(t), this.version(n).stores({ [r]: s }), this.store = this.table(r);
2730
2730
  }
2731
2731
  }
2732
- function $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;
2732
+ function xc(e) {
2733
+ const { databaseName: t, version: n, tableName: r, indexes: s, keyPath: o = "id", ownerField: i } = e, c = new Ti(t, n, r, s), a = c.store;
2734
2734
  function u(p, f) {
2735
2735
  return !i || !f ? p : { ...p, [i]: f };
2736
2736
  }
2737
2737
  async function d(p, f = {}) {
2738
- const { orderBy: m = o, reverse: _ = !1, limit: h, offset: b, filter: y } = f;
2738
+ const { orderBy: m = o, reverse: g = !1, limit: h, offset: b, filter: y } = f;
2739
2739
  let N = i && p ? a.where(i).equals(p) : a.toCollection();
2740
2740
  y && (N = N.filter(y));
2741
2741
  let $ = m === o ? await N.toArray() : await N.sortBy(m);
2742
- return _ && ($ = $.reverse()), b && ($ = $.slice(b)), typeof h == "number" && ($ = $.slice(0, h)), $;
2742
+ return g && ($ = $.reverse()), b && ($ = $.slice(b)), typeof h == "number" && ($ = $.slice(0, h)), $;
2743
2743
  }
2744
2744
  return {
2745
2745
  put: (p, f) => a.put(u(p, f)),
@@ -2770,7 +2770,7 @@ function Ci(e = [], t = []) {
2770
2770
  if (!Object.is(e[n], t[n])) return !0;
2771
2771
  return !1;
2772
2772
  }
2773
- class kc extends Ze {
2773
+ class Sc extends Ze {
2774
2774
  state = { error: null };
2775
2775
  static getDerivedStateFromError(t) {
2776
2776
  return { error: t };
@@ -2791,15 +2791,15 @@ class kc extends Ze {
2791
2791
  return typeof n == "function" ? n({ error: t, reset: this.reset }) : n;
2792
2792
  }
2793
2793
  }
2794
- function Sc() {
2794
+ function Ec() {
2795
2795
  const [, e] = v(null);
2796
- return x((t) => {
2796
+ return S((t) => {
2797
2797
  e(() => {
2798
2798
  throw t instanceof Error ? t : new Error(String(t));
2799
2799
  });
2800
2800
  }, []);
2801
2801
  }
2802
- function xc(e, t) {
2802
+ function Tc(e, t) {
2803
2803
  const n = e.safeParse(t);
2804
2804
  if (n.success)
2805
2805
  return { success: !0, data: n.data, errors: {} };
@@ -2823,7 +2823,7 @@ function Li(e) {
2823
2823
  return { values: {}, errors: o };
2824
2824
  };
2825
2825
  }
2826
- function Tc(e, t = {}) {
2826
+ function Cc(e, t = {}) {
2827
2827
  return it({
2828
2828
  ...t,
2829
2829
  resolver: Li(e)
@@ -2832,7 +2832,7 @@ function Tc(e, t = {}) {
2832
2832
  function ce(e) {
2833
2833
  return e.replace(/\D/g, "");
2834
2834
  }
2835
- function Ec(e) {
2835
+ function Lc(e) {
2836
2836
  const t = ce(e);
2837
2837
  if (t.length !== 11 || /^(\d)\1+$/.test(t)) return !1;
2838
2838
  const n = t.split("").map(Number);
@@ -2844,7 +2844,7 @@ function Ec(e) {
2844
2844
  for (let o = 0; o < 10; o++) r += n[o] * (11 - o);
2845
2845
  return s = r * 10 % 11, s === 10 && (s = 0), s === n[10];
2846
2846
  }
2847
- function Cc(e) {
2847
+ function Ic(e) {
2848
2848
  const t = ce(e);
2849
2849
  if (t.length !== 14 || /^(\d)\1+$/.test(t)) return !1;
2850
2850
  const n = t.split("").map(Number), r = [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2], s = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2];
@@ -2862,20 +2862,20 @@ function Ii(e) {
2862
2862
  function Di(e) {
2863
2863
  return ce(e).slice(0, 14).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d)/, "$1-$2");
2864
2864
  }
2865
- function Lc(e) {
2865
+ function Dc(e) {
2866
2866
  return ce(e);
2867
2867
  }
2868
- function Ic(e) {
2868
+ function Mc(e) {
2869
2869
  return new Intl.NumberFormat("pt-BR", {
2870
2870
  style: "currency",
2871
2871
  currency: "BRL"
2872
2872
  }).format(e);
2873
2873
  }
2874
- function Dc(e) {
2874
+ function Pc(e) {
2875
2875
  const t = typeof e == "string" ? new Date(e) : e;
2876
2876
  return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR").format(t);
2877
2877
  }
2878
- function Mc(e) {
2878
+ function Ac(e) {
2879
2879
  const t = typeof e == "string" ? new Date(e) : e;
2880
2880
  return Number.isNaN(t.getTime()) ? "" : new Intl.DateTimeFormat("pt-BR", {
2881
2881
  dateStyle: "short",
@@ -2889,7 +2889,7 @@ function Mi(e) {
2889
2889
  function Pi(e) {
2890
2890
  return e.replace(/\D/g, "").slice(0, 11).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
2891
2891
  }
2892
- function Pc(e) {
2892
+ function Rc(e) {
2893
2893
  return new Intl.NumberFormat("pt-BR", {
2894
2894
  style: "percent",
2895
2895
  minimumFractionDigits: 1,
@@ -2899,7 +2899,7 @@ function Pc(e) {
2899
2899
  function pe(e, t = "numeric") {
2900
2900
  return O(function({ value: r, onChange: s, ...o }, i) {
2901
2901
  return /* @__PURE__ */ l(
2902
- Se,
2902
+ xe,
2903
2903
  {
2904
2904
  ...o,
2905
2905
  ref: i,
@@ -2910,7 +2910,7 @@ function pe(e, t = "numeric") {
2910
2910
  );
2911
2911
  });
2912
2912
  }
2913
- const Ac = pe(Pi), Rc = pe(Di), Fc = pe(Mi, "tel"), Oc = pe(Ii);
2913
+ const Fc = pe(Pi), Oc = pe(Di), Wc = pe(Mi, "tel"), Bc = pe(Ii);
2914
2914
  function Ai(e, t, n) {
2915
2915
  return new Intl.NumberFormat(t, { style: "currency", currency: n }).format(e / 100);
2916
2916
  }
@@ -2918,9 +2918,9 @@ function Ri(e) {
2918
2918
  const t = e.replace(/\D/g, "");
2919
2919
  return t ? Number.parseInt(t, 10) : 0;
2920
2920
  }
2921
- const Wc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s = "pt-BR", ...o }, i) {
2921
+ const jc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s = "pt-BR", ...o }, i) {
2922
2922
  return /* @__PURE__ */ l(
2923
- Se,
2923
+ xe,
2924
2924
  {
2925
2925
  ...o,
2926
2926
  ref: i,
@@ -2931,8 +2931,8 @@ const Wc = O(function({ value: t, onChange: n, currency: r = "BRL", locale: s =
2931
2931
  }
2932
2932
  );
2933
2933
  });
2934
- function Bc() {
2935
- const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i = x(async (a) => {
2934
+ function Uc() {
2935
+ const [e, t] = v(!1), [n, r] = v(null), [s, o] = v(null), i = S(async (a) => {
2936
2936
  const u = a.replace(/\D/g, "");
2937
2937
  if (u.length !== 8)
2938
2938
  return r("CEP inválido."), null;
@@ -2945,7 +2945,7 @@ function Bc() {
2945
2945
  } finally {
2946
2946
  t(!1);
2947
2947
  }
2948
- }, []), c = x(() => {
2948
+ }, []), c = S(() => {
2949
2949
  t(!1), r(null), o(null);
2950
2950
  }, []);
2951
2951
  return { loading: e, error: n, data: s, lookup: i, reset: c };
@@ -2972,16 +2972,16 @@ function Oi(e, t = {}) {
2972
2972
  onError: f,
2973
2973
  onStatusChange: m
2974
2974
  } = t;
2975
- let _ = null, h = null, b = null, y = 0, N = "idle", $ = !1;
2976
- function C(E) {
2977
- N !== E && (N = E, m?.(E));
2975
+ let g = null, h = null, b = null, y = 0, N = "idle", $ = !1;
2976
+ function C(T) {
2977
+ N !== T && (N = T, m?.(T));
2978
2978
  }
2979
2979
  function I() {
2980
2980
  b && (clearInterval(b), b = null);
2981
2981
  }
2982
2982
  function fe() {
2983
2983
  !i || i <= 0 || (I(), b = setInterval(() => {
2984
- _?.readyState === WebSocket.OPEN && _.send(c);
2984
+ g?.readyState === WebSocket.OPEN && g.send(c);
2985
2985
  }, i));
2986
2986
  }
2987
2987
  function me() {
@@ -2990,37 +2990,37 @@ function Oi(e, t = {}) {
2990
2990
  C("error");
2991
2991
  return;
2992
2992
  }
2993
- const E = Math.min(s * 2 ** y, o);
2994
- y += 1, h = setTimeout(S, E);
2993
+ const T = Math.min(s * 2 ** y, o);
2994
+ y += 1, h = setTimeout(x, T);
2995
2995
  }
2996
- function S() {
2996
+ function x() {
2997
2997
  if ($) return;
2998
- _ && (_.onopen = null, _.onmessage = null, _.onclose = null, _.onerror = null, _.close()), C("connecting");
2999
- const E = new WebSocket(e, n);
3000
- _ = E, E.onopen = (M) => {
2998
+ g && (g.onopen = null, g.onmessage = null, g.onclose = null, g.onerror = null, g.close()), C("connecting");
2999
+ const T = new WebSocket(e, n);
3000
+ g = T, T.onopen = (M) => {
3001
3001
  y = 0, C("open"), fe(), u?.(M);
3002
- }, E.onmessage = (M) => {
3002
+ }, T.onmessage = (M) => {
3003
3003
  const Qe = typeof M.data == "string" ? M.data : "";
3004
3004
  d?.({
3005
3005
  data: a(Qe),
3006
3006
  raw: M
3007
3007
  });
3008
- }, E.onerror = (M) => {
3008
+ }, T.onerror = (M) => {
3009
3009
  f?.(M);
3010
- }, E.onclose = (M) => {
3011
- I(), p?.(M), _ = null, C("closed"), !$ && !M.wasClean && me();
3010
+ }, T.onclose = (M) => {
3011
+ I(), p?.(M), g = null, C("closed"), !$ && !M.wasClean && me();
3012
3012
  };
3013
3013
  }
3014
- function L(E) {
3015
- return _?.readyState !== WebSocket.OPEN ? !1 : (_.send(E), !0);
3014
+ function L(T) {
3015
+ return g?.readyState !== WebSocket.OPEN ? !1 : (g.send(T), !0);
3016
3016
  }
3017
- function he(E, M) {
3018
- $ = !0, h && (clearTimeout(h), h = null), I(), y = 0, _ && (C("closing"), _.close(E, M), _ = null), C("closed");
3017
+ function he(T, M) {
3018
+ $ = !0, h && (clearTimeout(h), h = null), I(), y = 0, g && (C("closing"), g.close(T, M), g = null), C("closed");
3019
3019
  }
3020
3020
  function Ve() {
3021
- h && (clearTimeout(h), h = null), y = 0, $ = !1, S();
3021
+ h && (clearTimeout(h), h = null), y = 0, $ = !1, x();
3022
3022
  }
3023
- return S(), {
3023
+ return x(), {
3024
3024
  send: L,
3025
3025
  close: he,
3026
3026
  reconnect: Ve,
@@ -3029,8 +3029,8 @@ function Oi(e, t = {}) {
3029
3029
  }
3030
3030
  };
3031
3031
  }
3032
- function 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);
3032
+ function zc(e, t = {}) {
3033
+ const { enabled: n = !0, onMessage: r, ...s } = t, [o, i] = v("idle"), [c, a] = v(null), u = E(null), d = E(r);
3034
3034
  d.current = r, k(() => {
3035
3035
  if (!n || !e) {
3036
3036
  i("idle");
@@ -3039,18 +3039,18 @@ function jc(e, t = {}) {
3039
3039
  const m = Oi(e, {
3040
3040
  ...s,
3041
3041
  onStatusChange: i,
3042
- onMessage: (_) => {
3043
- a(_), d.current?.(_);
3042
+ onMessage: (g) => {
3043
+ a(g), d.current?.(g);
3044
3044
  }
3045
3045
  });
3046
3046
  return u.current = m, () => {
3047
3047
  m.close(), u.current = null;
3048
3048
  };
3049
3049
  }, [e, n]);
3050
- const p = x(
3050
+ const p = S(
3051
3051
  (m) => u.current?.send(m) ?? !1,
3052
3052
  []
3053
- ), f = x(() => {
3053
+ ), f = S(() => {
3054
3054
  u.current?.reconnect();
3055
3055
  }, []);
3056
3056
  return { status: o, lastMessage: c, send: p, reconnect: f };
@@ -3068,7 +3068,7 @@ function Wi(e) {
3068
3068
  return null;
3069
3069
  }
3070
3070
  }
3071
- function Uc({
3071
+ function Jc({
3072
3072
  children: e,
3073
3073
  defaultTheme: t = "system",
3074
3074
  storageKey: n = "tempest-theme",
@@ -3077,21 +3077,21 @@ function Uc({
3077
3077
  }) {
3078
3078
  const [o, i] = v(
3079
3079
  () => Wi(n) ?? t
3080
- ), [c, a] = v(() => Me(o)), u = T(r);
3080
+ ), [c, a] = v(() => Me(o)), u = E(r);
3081
3081
  u.current = r, k(() => {
3082
3082
  const m = u.current?.() ?? document.documentElement;
3083
3083
  if (!m) return;
3084
- const _ = Me(o);
3085
- m.setAttribute(s, _), a(_);
3084
+ const g = Me(o);
3085
+ m.setAttribute(s, g), a(g);
3086
3086
  }, [o, s]), k(() => {
3087
3087
  if (o !== "system" || typeof window > "u") return;
3088
- const m = window.matchMedia("(prefers-color-scheme: dark)"), _ = () => {
3088
+ const m = window.matchMedia("(prefers-color-scheme: dark)"), g = () => {
3089
3089
  const h = u.current?.() ?? document.documentElement, b = m.matches ? "dark" : "light";
3090
3090
  h?.setAttribute(s, b), a(b);
3091
3091
  };
3092
- return m.addEventListener("change", _), () => m.removeEventListener("change", _);
3092
+ return m.addEventListener("change", g), () => m.removeEventListener("change", g);
3093
3093
  }, [o, s]);
3094
- const d = x(
3094
+ const d = S(
3095
3095
  (m) => {
3096
3096
  if (i(m), n && typeof window < "u")
3097
3097
  try {
@@ -3100,7 +3100,7 @@ function Uc({
3100
3100
  }
3101
3101
  },
3102
3102
  [n]
3103
- ), p = x(() => {
3103
+ ), p = S(() => {
3104
3104
  d(c === "dark" ? "light" : "dark");
3105
3105
  }, [c, d]), f = W(
3106
3106
  () => ({ theme: o, resolvedTheme: c, setTheme: d, toggle: p }),
@@ -3108,12 +3108,12 @@ function Uc({
3108
3108
  );
3109
3109
  return /* @__PURE__ */ l(ze.Provider, { value: f, children: e });
3110
3110
  }
3111
- function zc() {
3111
+ function Gc() {
3112
3112
  const e = te(ze);
3113
3113
  if (!e) throw new Error("useTheme must be used inside a <ThemeProvider>");
3114
3114
  return e;
3115
3115
  }
3116
- function Jc(e = {}) {
3116
+ function qc(e = {}) {
3117
3117
  const { storageKey: t = "tempest-theme", defaultTheme: n = "system" } = e;
3118
3118
  if (typeof window > "u")
3119
3119
  return n === "dark" ? "dark" : "light";
@@ -3126,7 +3126,7 @@ function Jc(e = {}) {
3126
3126
  const s = r ?? n;
3127
3127
  return s === "dark" || s === "light" ? s : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
3128
3128
  }
3129
- function qc(e = {}) {
3129
+ function Hc(e = {}) {
3130
3130
  const t = e.storageKey ?? "tempest-theme", n = e.defaultTheme ?? "system";
3131
3131
  return `
3132
3132
  (function(){try{
@@ -3185,7 +3185,7 @@ function Je(e) {
3185
3185
  })
3186
3186
  };
3187
3187
  }
3188
- const qe = ne(null);
3188
+ const Ge = ne(null);
3189
3189
  function Bi(e, t) {
3190
3190
  if (!e || typeof window > "u") return null;
3191
3191
  try {
@@ -3195,7 +3195,7 @@ function Bi(e, t) {
3195
3195
  return null;
3196
3196
  }
3197
3197
  }
3198
- function Gc({
3198
+ function Kc({
3199
3199
  children: e,
3200
3200
  locale: t,
3201
3201
  fallbackLocale: n,
@@ -3208,7 +3208,7 @@ function Gc({
3208
3208
  k(() => {
3209
3209
  typeof document < "u" && document.documentElement.setAttribute("lang", i);
3210
3210
  }, [i]);
3211
- const a = x(
3211
+ const a = S(
3212
3212
  (d) => {
3213
3213
  if (c(d), s && typeof window < "u")
3214
3214
  try {
@@ -3218,14 +3218,14 @@ function Gc({
3218
3218
  },
3219
3219
  [s]
3220
3220
  ), u = W(() => ({ ...Je({ locale: i, fallbackLocale: n, messages: r }), setLocale: a, availableLocales: o }), [i, n, r, a, o]);
3221
- return /* @__PURE__ */ l(qe.Provider, { value: u, children: e });
3221
+ return /* @__PURE__ */ l(Ge.Provider, { value: u, children: e });
3222
3222
  }
3223
3223
  function ji() {
3224
- const e = te(qe);
3224
+ const e = te(Ge);
3225
3225
  if (!e) throw new Error("useI18n must be used inside an <I18nProvider>");
3226
3226
  return e;
3227
3227
  }
3228
- function Hc() {
3228
+ function Vc() {
3229
3229
  return ji().t;
3230
3230
  }
3231
3231
  const Ae = ["debug", "info", "warn", "error"];
@@ -3264,18 +3264,18 @@ function Ji(e = {}) {
3264
3264
  })
3265
3265
  };
3266
3266
  }
3267
- const Ge = ne(null);
3268
- function Kc({ adapter: e, children: t }) {
3267
+ const qe = ne(null);
3268
+ function Qc({ adapter: e, children: t }) {
3269
3269
  k(() => (e.init?.(), () => {
3270
3270
  e.flush?.();
3271
3271
  }), [e]);
3272
3272
  const n = W(() => e, [e]);
3273
- return /* @__PURE__ */ l(Ge.Provider, { value: n, children: t });
3273
+ return /* @__PURE__ */ l(qe.Provider, { value: n, children: t });
3274
3274
  }
3275
- function Vc() {
3276
- return te(Ge);
3275
+ function Yc() {
3276
+ return te(qe);
3277
3277
  }
3278
- const Qc = {
3278
+ const Xc = {
3279
3279
  identify(e) {
3280
3280
  console.info("[telemetry] identify", e);
3281
3281
  },
@@ -3285,8 +3285,83 @@ const Qc = {
3285
3285
  captureException(e, t) {
3286
3286
  console.error("[telemetry] exception", e, t);
3287
3287
  }
3288
- }, He = ne(null);
3289
- function Yc({ adapter: e, children: t }) {
3288
+ };
3289
+ function Gi(e) {
3290
+ if (e === null) return null;
3291
+ const { id: t, email: n, name: r, traits: s } = e;
3292
+ return {
3293
+ ...t !== void 0 ? { id: t } : null,
3294
+ ...n !== void 0 ? { email: n } : null,
3295
+ ...r !== void 0 ? { username: r } : null,
3296
+ ...s ?? null
3297
+ };
3298
+ }
3299
+ function Zc(e) {
3300
+ const { sentry: t, initOptions: n, flushTimeout: r = 2e3, breadcrumbCategory: s = "app" } = e;
3301
+ return {
3302
+ init() {
3303
+ n && t.init && t.init(n);
3304
+ },
3305
+ identify(o) {
3306
+ t.setUser(Gi(o));
3307
+ },
3308
+ track(o) {
3309
+ t.addBreadcrumb({
3310
+ category: s,
3311
+ message: o.name,
3312
+ level: "info",
3313
+ ...o.properties ? { data: o.properties } : null
3314
+ });
3315
+ },
3316
+ captureException(o, i) {
3317
+ t.captureException(o, i ? { extra: i } : void 0);
3318
+ },
3319
+ async flush() {
3320
+ t.flush && await t.flush(r);
3321
+ }
3322
+ };
3323
+ }
3324
+ function qi(e) {
3325
+ const { email: t, name: n, traits: r } = e;
3326
+ return {
3327
+ ...t !== void 0 ? { email: t } : null,
3328
+ ...n !== void 0 ? { name: n } : null,
3329
+ ...r ?? null
3330
+ };
3331
+ }
3332
+ function el(e) {
3333
+ const { posthog: t, init: n } = e;
3334
+ return {
3335
+ init() {
3336
+ n && t.init && t.init(n.apiKey, n.options);
3337
+ },
3338
+ identify(r) {
3339
+ if (r === null) {
3340
+ t.reset?.();
3341
+ return;
3342
+ }
3343
+ r.id !== void 0 && t.identify(r.id, qi(r));
3344
+ },
3345
+ track(r) {
3346
+ t.capture(r.name, r.properties);
3347
+ },
3348
+ captureException(r, s) {
3349
+ if (t.captureException) {
3350
+ t.captureException(r, s);
3351
+ return;
3352
+ }
3353
+ const o = r instanceof Error ? r : new Error(String(r));
3354
+ t.capture("$exception", {
3355
+ $exception_message: o.message,
3356
+ $exception_type: o.name,
3357
+ $exception_stack_trace_raw: o.stack,
3358
+ ...s
3359
+ });
3360
+ }
3361
+ };
3362
+ }
3363
+ const He = ne(null);
3364
+ function tl({ adapter: e, children: t }) {
3290
3365
  const n = W(() => e, [e]);
3291
3366
  return k(() => {
3292
3367
  }, [n]), /* @__PURE__ */ l(He.Provider, { value: n, children: t });
@@ -3296,17 +3371,17 @@ function Ke() {
3296
3371
  if (!e) throw new Error("useFeatureFlag requires <FeatureFlagsProvider>");
3297
3372
  return e;
3298
3373
  }
3299
- function Xc(e, t = !1) {
3374
+ function nl(e, t = !1) {
3300
3375
  const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
3301
3376
  }, s = () => n.isEnabled(e, t);
3302
3377
  return Fe(r, s, s);
3303
3378
  }
3304
- function Zc(e, t) {
3379
+ function rl(e, t) {
3305
3380
  const n = Ke(), r = (o) => n.onChange ? n.onChange(o) : () => {
3306
3381
  }, s = () => n.get(e, t);
3307
3382
  return Fe(r, s, s);
3308
3383
  }
3309
- function el(e = {}) {
3384
+ function sl(e = {}) {
3310
3385
  const t = { ...e.initial ?? {} }, n = /* @__PURE__ */ new Set();
3311
3386
  function r() {
3312
3387
  for (const s of n) s();
@@ -3326,7 +3401,47 @@ function el(e = {}) {
3326
3401
  }
3327
3402
  };
3328
3403
  }
3329
- async function tl(e) {
3404
+ function ol(e) {
3405
+ const { growthbook: t } = e, n = /* @__PURE__ */ new Set();
3406
+ let r = !1;
3407
+ function s() {
3408
+ r || !t.setRenderer || (r = !0, t.setRenderer(() => {
3409
+ for (const o of n) o();
3410
+ }));
3411
+ }
3412
+ return {
3413
+ isEnabled(o, i = !1) {
3414
+ const c = t.isOn(o);
3415
+ return typeof c == "boolean" ? c : i;
3416
+ },
3417
+ get(o, i) {
3418
+ return t.getFeatureValue(o, i);
3419
+ },
3420
+ onChange(o) {
3421
+ return s(), n.add(o), () => {
3422
+ n.delete(o);
3423
+ };
3424
+ }
3425
+ };
3426
+ }
3427
+ function il(e) {
3428
+ const { client: t } = e;
3429
+ return {
3430
+ isEnabled(n, r = !1) {
3431
+ return t.variation(n, r) === !0;
3432
+ },
3433
+ get(n, r) {
3434
+ return t.variation(n, r);
3435
+ },
3436
+ onChange(n) {
3437
+ return !t.on || !t.off ? () => {
3438
+ } : (t.on("change", n), () => {
3439
+ t.off("change", n);
3440
+ });
3441
+ }
3442
+ };
3443
+ }
3444
+ async function al(e) {
3330
3445
  if (typeof navigator > "u" || !("share" in navigator))
3331
3446
  return { shared: !1, unsupported: !0, cancelled: !1 };
3332
3447
  if (e.files && !navigator.canShare?.({ files: e.files }))
@@ -3337,10 +3452,10 @@ async function tl(e) {
3337
3452
  return t instanceof DOMException && t.name === "AbortError" ? { shared: !1, unsupported: !1, cancelled: !0 } : { shared: !1, unsupported: !1, cancelled: !1, error: t };
3338
3453
  }
3339
3454
  }
3340
- function nl() {
3455
+ function cl() {
3341
3456
  return typeof navigator < "u" && "share" in navigator;
3342
3457
  }
3343
- const rl = {
3458
+ const ll = {
3344
3459
  get(e, t) {
3345
3460
  if (typeof window > "u") return t;
3346
3461
  try {
@@ -3366,142 +3481,146 @@ const rl = {
3366
3481
  }
3367
3482
  };
3368
3483
  export {
3369
- oc as AuthGuard,
3370
- Zi as Avatar,
3371
- ea as Badge,
3372
- ta as Breadcrumbs,
3484
+ ac as AuthGuard,
3485
+ ta as Avatar,
3486
+ na as Badge,
3487
+ ra as Breadcrumbs,
3373
3488
  ve as Button,
3374
3489
  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,
3490
+ Bc as CEPInput,
3491
+ Oc as CNPJInput,
3492
+ Fc as CPFInput,
3493
+ sa as Card,
3494
+ oa as Checkbox,
3495
+ ia as ChipInput,
3496
+ aa as ConfirmDialog,
3497
+ _a as Container,
3498
+ ca as DatePicker,
3499
+ la as Drawer,
3500
+ ua as EmptyState,
3501
+ Sc as ErrorBoundary,
3502
+ da as ErrorState,
3503
+ tl as FeatureFlagsProvider,
3504
+ pa as FileUpload,
3505
+ fa as Form,
3506
+ ga as FormActions,
3507
+ ha as FormRow,
3508
+ ma as FormSection,
3509
+ wa as Grid,
3510
+ Kc as I18nProvider,
3511
+ xe as Input,
3397
3512
  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,
3513
+ jc as MoneyInput,
3514
+ ba as Pagination,
3515
+ Wc as PhoneInput,
3516
+ va as Progress,
3517
+ fc as QueryProvider,
3518
+ dc as REFETCH_TIME,
3519
+ Na as Radio,
3520
+ $a as RadioGroup,
3406
3521
  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,
3522
+ ka as SearchBar,
3523
+ xa as Select,
3524
+ Sa as Skeleton,
3525
+ Ea as Spinner,
3526
+ ya as Stack,
3527
+ Ta as Stepper,
3528
+ Ca as Switch,
3529
+ La as Table,
3530
+ Ia as Tabs,
3531
+ Qc as TelemetryProvider,
3532
+ Da as Textarea,
3533
+ Jc as ThemeProvider,
3534
+ Aa as ToastProvider,
3535
+ Ma as Tooltip,
3536
+ Ra as VirtualList,
3537
+ Ei as WebPushClient,
3538
+ Si as WebPushPermissionDeniedError,
3424
3539
  De as WebPushUnsupportedError,
3425
- g as cn,
3540
+ _ as cn,
3426
3541
  zi as consoleSink,
3427
- Qc as consoleTelemetryAdapter,
3428
- Xa as createApiClient,
3542
+ Xc as consoleTelemetryAdapter,
3543
+ ec as createApiClient,
3429
3544
  je as createAudioPlayer,
3430
- sc as createAuthStore,
3545
+ ic as createAuthStore,
3431
3546
  ki as createEventStream,
3547
+ ol as createGrowthBookFeatureFlagsAdapter,
3432
3548
  Je as createI18n,
3433
- el as createInMemoryFlags,
3549
+ sl as createInMemoryFlags,
3550
+ il as createLaunchDarklyFeatureFlagsAdapter,
3434
3551
  Ji as createLogger,
3435
- $c as createOfflineStore,
3436
- uc as createQueryKeys,
3437
- cc as createRefreshQueue,
3552
+ xc as createOfflineStore,
3553
+ el as createPostHogTelemetryAdapter,
3554
+ pc as createQueryKeys,
3555
+ uc as createRefreshQueue,
3556
+ Zc as createSentryTelemetryAdapter,
3438
3557
  Oi as createWebSocket,
3439
3558
  bi as decodeJWT,
3440
3559
  Ii as formatCEP,
3441
3560
  Di as formatCNPJ,
3442
3561
  Pi as formatCPF,
3443
- Ic as formatCurrency,
3444
- Dc as formatDate,
3445
- Mc as formatDateTime,
3446
- Pc as formatPercent,
3562
+ Mc as formatCurrency,
3563
+ Pc as formatDate,
3564
+ Ac as formatDateTime,
3565
+ Rc as formatPercent,
3447
3566
  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,
3567
+ sc as generateIdempotencyKey,
3568
+ qc as getInitialTheme,
3569
+ bc as installNotificationClickHandler,
3570
+ wc as installPushHandler,
3571
+ vc as installSkipWaitingListener,
3572
+ cc as isJWTExpired,
3454
3573
  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,
3574
+ cl as isShareSupported,
3575
+ lc as lazyWithRetry,
3576
+ tc as parseResponse,
3577
+ Nc as playAudio,
3578
+ gc as registerServiceWorker,
3579
+ rc as retry,
3580
+ al as share,
3581
+ _c as skipWaiting,
3582
+ $c as stopAudio,
3583
+ ll as storage,
3584
+ Hc as themeInitScript,
3585
+ Dc as unmask,
3586
+ yc as unregisterAllServiceWorkers,
3587
+ nc as uploadWithProgress,
3588
+ xi as urlBase64ToUint8Array,
3589
+ kc as useAudio,
3590
+ Ha as useBeforeInstallPrompt,
3591
+ Wa as useClientFilter,
3592
+ Ga as useClipboard,
3593
+ Fa as useDebounce,
3594
+ Za as useDeepMemo,
3595
+ Ua as useDocumentVisibility,
3596
+ Ec as useErrorHandler,
3597
+ mc as useEventStream,
3598
+ nl as useFeatureFlag,
3599
+ rl as useFlagValue,
3600
+ Ya as useFocusTrap,
3601
+ Va as useGeolocation,
3483
3602
  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,
3603
+ Ka as useIdle,
3604
+ za as useIntersectionObserver,
3605
+ qa as useKeyboardShortcut,
3606
+ Ba as useMediaQuery,
3607
+ ja as useOnline,
3608
+ Oa as usePagination,
3609
+ oc as usePoll,
3610
+ hc as usePushSubscription,
3611
+ Ja as useResizeObserver,
3612
+ Qa as useScrollLock,
3613
+ Xa as useStableCallback,
3614
+ Yc as useTelemetry,
3615
+ Gc as useTheme,
3616
+ Pa as useToast,
3617
+ Vc as useTranslate,
3618
+ Uc as useViaCEP,
3619
+ zc as useWebSocket,
3620
+ Cc as useZodForm,
3621
+ Ic as validateCNPJ,
3622
+ Lc as validateCPF,
3623
+ Tc as validateForm,
3505
3624
  Li as zodResolver
3506
3625
  };
3507
3626
  //# sourceMappingURL=tempest-react-sdk.js.map