@iclips/ui 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as t, jsxs as o, Fragment as te } from "react/jsx-runtime";
2
2
  import * as Ce from "@radix-ui/react-accordion";
3
- import { ChevronDownIcon as Ee, Home as la, Folder as da, Users as ca, Calendar as Ct, BarChart3 as ua, Settings as ma, Pin as fa, Plus as kt, LayoutGrid as pa, FileText as ha, Star as St, MessageSquare as Pt, Download as at, Sparkles as ga, ChevronRight as Le, Zap as ba, PanelLeftClose as va, PanelLeft as xa, Bell as Na, MoreHorizontal as wa, ChevronLeft as zt, Printer as ya, Eye as Ca, ArrowRight as ka, ArrowLeft as Sa, Check as Pa, CheckIcon as He, ChevronUpIcon as za, Clock as Ze, CalendarIcon as Mt, CircleIcon as rt, ChevronRightIcon as Ve, MoreVertical as Ma, AlertCircle as Ta, CheckSquare as Da, Paperclip as Ia, Activity as _a, TrendingUp as Aa, TrendingDown as Ra, XIcon as Tt, SearchIcon as ja, MinusIcon as Fa, MoreHorizontalIcon as Ea, ChevronLeftIcon as La, GripVerticalIcon as Ha, PanelLeftIcon as Va, ChevronsLeft as Oa, ChevronsRight as Ba, X as Ae, Filter as Dt, Search as $a, ArrowUpDown as Wa, Trash2 as qa } from "lucide-react";
3
+ import { ChevronDownIcon as Ee, Home as la, Folder as da, Users as ca, Calendar as Ct, BarChart3 as ua, Settings as ma, Pin as fa, Plus as kt, LayoutGrid as pa, FileText as ha, Star as St, MessageSquare as Pt, Download as at, Sparkles as ga, ChevronRight as Le, Zap as ba, PanelLeftClose as va, PanelLeft as xa, Bell as Na, MoreHorizontal as wa, ChevronLeft as zt, Printer as ya, Eye as Ca, ArrowRight as ka, ArrowLeft as Sa, Check as Pa, CheckIcon as He, ChevronUpIcon as za, Clock as Ze, CalendarIcon as Mt, CircleIcon as rt, ChevronRightIcon as Ve, MoreVertical as Ma, AlertCircle as Ta, CheckSquare as Da, Paperclip as Ia, Activity as _a, TrendingUp as Aa, TrendingDown as Ra, XIcon as Tt, SearchIcon as ja, MinusIcon as Fa, MoreHorizontalIcon as Ea, ChevronLeftIcon as La, GripVerticalIcon as Ha, PanelLeftIcon as Va, ChevronsLeft as Oa, ChevronsRight as Ba, X as Ae, Filter as Dt, Search as Wa, ArrowUpDown as $a, Trash2 as qa } from "lucide-react";
4
4
  import { clsx as Ga } from "clsx";
5
5
  import { twMerge as Za } from "tailwind-merge";
6
- import * as g from "react";
6
+ import * as b from "react";
7
7
  import { useState as G, useMemo as Re, useCallback as xe } from "react";
8
8
  import * as Z from "@radix-ui/react-alert-dialog";
9
9
  import { Slot as J } from "@radix-ui/react-slot";
@@ -125,7 +125,7 @@ const de = ge(
125
125
  size: "default"
126
126
  }
127
127
  }
128
- ), M = g.forwardRef(({ className: e, variant: a, size: r, asChild: n = !1, ...s }, l) => /* @__PURE__ */ t(
128
+ ), M = b.forwardRef(({ className: e, variant: a, size: r, asChild: n = !1, ...s }, l) => /* @__PURE__ */ t(
129
129
  n ? J : "button",
130
130
  {
131
131
  "data-slot": "button",
@@ -135,12 +135,12 @@ const de = ge(
135
135
  }
136
136
  ));
137
137
  M.displayName = "Button";
138
- function $o({
138
+ function Wo({
139
139
  ...e
140
140
  }) {
141
141
  return /* @__PURE__ */ t(Z.Root, { "data-slot": "alert-dialog", ...e });
142
142
  }
143
- function Wo({
143
+ function $o({
144
144
  ...e
145
145
  }) {
146
146
  return /* @__PURE__ */ t(Z.Trigger, { "data-slot": "alert-dialog-trigger", ...e });
@@ -150,7 +150,7 @@ function cr({
150
150
  }) {
151
151
  return /* @__PURE__ */ t(Z.Portal, { "data-slot": "alert-dialog-portal", ...e });
152
152
  }
153
- const _t = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
153
+ const _t = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
154
154
  Z.Overlay,
155
155
  {
156
156
  ref: r,
@@ -387,7 +387,7 @@ const fr = ge(
387
387
  variant: "default"
388
388
  }
389
389
  }
390
- ), q = g.forwardRef(({ className: e, variant: a, asChild: r = !1, ...n }, s) => /* @__PURE__ */ t(
390
+ ), q = b.forwardRef(({ className: e, variant: a, asChild: r = !1, ...n }, s) => /* @__PURE__ */ t(
391
391
  r ? J : "span",
392
392
  {
393
393
  ref: s,
@@ -511,11 +511,11 @@ function ti({
511
511
  onPrimaryItemClick: u,
512
512
  logoComponent: h,
513
513
  hideSecondaryNav: f = !1,
514
- defaultPrimaryNavPinned: b = !1,
515
- defaultSecondaryNavOpen: v = !0
514
+ defaultPrimaryNavPinned: v = !1,
515
+ defaultSecondaryNavOpen: g = !0
516
516
  }) {
517
517
  var I;
518
- const [m, N] = g.useState(b), [C, y] = g.useState(!1), [w, P] = g.useState(v), [x, p] = g.useState(c || ((I = s[0]) == null ? void 0 : I.id)), k = m || C, z = (T) => {
518
+ const [m, N] = b.useState(v), [k, y] = b.useState(!1), [w, P] = b.useState(g), [x, p] = b.useState(c || ((I = s[0]) == null ? void 0 : I.id)), S = m || k, z = (T) => {
519
519
  p(T), u && u(T);
520
520
  };
521
521
  return /* @__PURE__ */ o("div", { className: "flex h-screen w-full bg-background", children: [
@@ -524,12 +524,12 @@ function ti({
524
524
  {
525
525
  className: i(
526
526
  "relative border-r bg-background transition-all duration-200",
527
- k ? "w-56" : "w-16"
527
+ S ? "w-56" : "w-16"
528
528
  ),
529
529
  onMouseEnter: () => y(!0),
530
530
  onMouseLeave: () => y(!1),
531
531
  children: /* @__PURE__ */ t(Ue, { className: "h-full", children: /* @__PURE__ */ o("div", { className: "flex h-full flex-col", children: [
532
- /* @__PURE__ */ t("div", { className: "flex h-14 min-h-[65px] items-center border-b bg-background px-3", children: k ? /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 items-center justify-between overflow-hidden", children: [
532
+ /* @__PURE__ */ t("div", { className: "flex h-14 min-h-[65px] items-center border-b bg-background px-3", children: S ? /* @__PURE__ */ o("div", { className: "flex min-w-0 flex-1 items-center justify-between overflow-hidden", children: [
533
533
  h || /* @__PURE__ */ t(bt, { variant: "full", className: "h-8 w-auto" }),
534
534
  /* @__PURE__ */ t(
535
535
  "button",
@@ -557,7 +557,7 @@ function ti({
557
557
  {
558
558
  className: i(
559
559
  "transition-all duration-300",
560
- k ? "opacity-100" : "w-0 opacity-0"
560
+ S ? "opacity-100" : "w-0 opacity-0"
561
561
  ),
562
562
  children: T.label
563
563
  }
@@ -806,9 +806,9 @@ function we(e) {
806
806
  const n = r.width, s = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], l = a.match(s);
807
807
  if (!l)
808
808
  return null;
809
- const d = l[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? Nr(c, (b) => b.test(d)) : (
809
+ const d = l[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(c) ? Nr(c, (v) => v.test(d)) : (
810
810
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
811
- xr(c, (b) => b.test(d))
811
+ xr(c, (v) => v.test(d))
812
812
  );
813
813
  let h;
814
814
  h = e.valueCallback ? e.valueCallback(u) : u, h = r.valueCallback ? (
@@ -1108,9 +1108,9 @@ const yr = {
1108
1108
  narrow: /^[1234]/i,
1109
1109
  abbreviated: /^T[1234]/i,
1110
1110
  wide: /^[1234](º)? trimestre/i
1111
- }, $r = {
1112
- any: [/1/i, /2/i, /3/i, /4/i]
1113
1111
  }, Wr = {
1112
+ any: [/1/i, /2/i, /3/i, /4/i]
1113
+ }, $r = {
1114
1114
  narrow: /^[jfmajsond]/i,
1115
1115
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
1116
1116
  wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
@@ -1181,12 +1181,12 @@ const yr = {
1181
1181
  quarter: we({
1182
1182
  matchPatterns: Br,
1183
1183
  defaultMatchWidth: "wide",
1184
- parsePatterns: $r,
1184
+ parsePatterns: Wr,
1185
1185
  defaultParseWidth: "any",
1186
1186
  valueCallback: (e) => e + 1
1187
1187
  }),
1188
1188
  month: we({
1189
- matchPatterns: Wr,
1189
+ matchPatterns: $r,
1190
1190
  defaultMatchWidth: "wide",
1191
1191
  parsePatterns: qr,
1192
1192
  defaultParseWidth: "any"
@@ -1436,7 +1436,7 @@ function Rt({
1436
1436
  ] }) })
1437
1437
  ] }) });
1438
1438
  }
1439
- function $({
1439
+ function W({
1440
1440
  title: e,
1441
1441
  subtitle: a,
1442
1442
  children: r,
@@ -1543,7 +1543,7 @@ function jt({
1543
1543
  "avoid-break"
1544
1544
  ),
1545
1545
  children: e.map((h, f) => {
1546
- const b = c[h.key], v = h.render ? h.render(b, c) : b;
1546
+ const v = c[h.key], g = h.render ? h.render(v, c) : v;
1547
1547
  return /* @__PURE__ */ t(
1548
1548
  "td",
1549
1549
  {
@@ -1553,7 +1553,7 @@ function jt({
1553
1553
  h.align === "center" && "text-center",
1554
1554
  h.align === "right" && "text-right"
1555
1555
  ),
1556
- children: v
1556
+ children: g
1557
1557
  },
1558
1558
  f
1559
1559
  );
@@ -1637,7 +1637,7 @@ function Et({
1637
1637
  issueDate: l(e.dataEmissao)
1638
1638
  }
1639
1639
  ),
1640
- /* @__PURE__ */ t($, { title: "Informações do Contrato", children: /* @__PURE__ */ t(
1640
+ /* @__PURE__ */ t(W, { title: "Informações do Contrato", children: /* @__PURE__ */ t(
1641
1641
  pe,
1642
1642
  {
1643
1643
  columns: 2,
@@ -1671,7 +1671,7 @@ function Et({
1671
1671
  ]
1672
1672
  }
1673
1673
  ) }),
1674
- /* @__PURE__ */ o($, { title: "Partes Contratantes", className: "grid grid-cols-2 gap-6", children: [
1674
+ /* @__PURE__ */ o(W, { title: "Partes Contratantes", className: "grid grid-cols-2 gap-6", children: [
1675
1675
  /* @__PURE__ */ o("div", { children: [
1676
1676
  /* @__PURE__ */ t("h3", { className: "font-semibold text-sm mb-3 text-primary", children: "CONTRATANTE" }),
1677
1677
  /* @__PURE__ */ t(
@@ -1717,7 +1717,7 @@ function Et({
1717
1717
  )
1718
1718
  ] })
1719
1719
  ] }),
1720
- n && e.servicos && e.servicos.length > 0 && /* @__PURE__ */ t($, { title: "Escopo dos Serviços", children: /* @__PURE__ */ t(
1720
+ n && e.servicos && e.servicos.length > 0 && /* @__PURE__ */ t(W, { title: "Escopo dos Serviços", children: /* @__PURE__ */ t(
1721
1721
  jt,
1722
1722
  {
1723
1723
  columns: [
@@ -1736,7 +1736,7 @@ function Et({
1736
1736
  density: "comfortable"
1737
1737
  }
1738
1738
  ) }),
1739
- /* @__PURE__ */ t($, { title: "Condições Comerciais", children: /* @__PURE__ */ t(
1739
+ /* @__PURE__ */ t(W, { title: "Condições Comerciais", children: /* @__PURE__ */ t(
1740
1740
  pe,
1741
1741
  {
1742
1742
  columns: 2,
@@ -1769,7 +1769,7 @@ function Et({
1769
1769
  ]
1770
1770
  }
1771
1771
  ) }),
1772
- e.clausulas && e.clausulas.length > 0 && /* @__PURE__ */ t($, { title: "Cláusulas Contratuais", pageBreak: !0, children: /* @__PURE__ */ t("div", { className: "space-y-6", children: e.clausulas.map((d, c) => /* @__PURE__ */ o("div", { className: "clause avoid-break", children: [
1772
+ e.clausulas && e.clausulas.length > 0 && /* @__PURE__ */ t(W, { title: "Cláusulas Contratuais", pageBreak: !0, children: /* @__PURE__ */ t("div", { className: "space-y-6", children: e.clausulas.map((d, c) => /* @__PURE__ */ o("div", { className: "clause avoid-break", children: [
1773
1773
  /* @__PURE__ */ o("h4", { className: "font-semibold text-sm mb-2", children: [
1774
1774
  "Cláusula ",
1775
1775
  c + 1,
@@ -1778,7 +1778,7 @@ function Et({
1778
1778
  ] }),
1779
1779
  /* @__PURE__ */ t("p", { className: "text-sm text-gray-700 leading-relaxed pl-4", children: d.conteudo })
1780
1780
  ] }, c)) }) }),
1781
- e.observacoes && /* @__PURE__ */ t($, { title: "Observações", children: /* @__PURE__ */ t("p", { className: "text-sm text-gray-700 leading-relaxed", children: e.observacoes }) }),
1781
+ e.observacoes && /* @__PURE__ */ t(W, { title: "Observações", children: /* @__PURE__ */ t("p", { className: "text-sm text-gray-700 leading-relaxed", children: e.observacoes }) }),
1782
1782
  /* @__PURE__ */ t(
1783
1783
  Ft,
1784
1784
  {
@@ -1899,15 +1899,15 @@ function tn(e, a, r = {}) {
1899
1899
  /** Imprime o contrato em nova janela */
1900
1900
  printContract: () => {
1901
1901
  try {
1902
- const b = e.current;
1903
- if (!b)
1902
+ const v = e.current;
1903
+ if (!v)
1904
1904
  throw new Error("Ref do conteúdo não está disponível");
1905
1905
  n == null || n();
1906
- const v = window.open("", "_blank");
1907
- if (!v)
1906
+ const g = window.open("", "_blank");
1907
+ if (!g)
1908
1908
  throw new Error("Não foi possível abrir janela de impressão");
1909
1909
  const m = a ? `Contrato-${a}` : "Contrato";
1910
- v.document.write(`
1910
+ g.document.write(`
1911
1911
  <!DOCTYPE html>
1912
1912
  <html>
1913
1913
  <head>
@@ -1956,17 +1956,17 @@ function tn(e, a, r = {}) {
1956
1956
  </head>
1957
1957
  <body>
1958
1958
  <div class="container">
1959
- ${b.innerHTML}
1959
+ ${v.innerHTML}
1960
1960
  </div>
1961
1961
  </body>
1962
1962
  </html>
1963
- `), v.document.close(), v.onload = () => {
1963
+ `), g.document.close(), g.onload = () => {
1964
1964
  setTimeout(() => {
1965
- v.print(), v.close(), s == null || s();
1965
+ g.print(), g.close(), s == null || s();
1966
1966
  }, 250);
1967
1967
  };
1968
- } catch (b) {
1969
- l == null || l(b), console.error("Erro ao imprimir contrato:", b);
1968
+ } catch (v) {
1969
+ l == null || l(v), console.error("Erro ao imprimir contrato:", v);
1970
1970
  }
1971
1971
  },
1972
1972
  /** Gera e baixa PDF do contrato (implementação simulada) */
@@ -1980,8 +1980,8 @@ function tn(e, a, r = {}) {
1980
1980
  }, 1500), console.info(
1981
1981
  "usePrintContract: downloadPDF é uma implementação simulada. Para gerar PDFs reais, integre com html2pdf.js ou jsPDF. Veja a documentação do hook para exemplos."
1982
1982
  );
1983
- } catch (b) {
1984
- u == null || u(b), console.error("Erro ao gerar PDF:", b);
1983
+ } catch (v) {
1984
+ u == null || u(v), console.error("Erro ao gerar PDF:", v);
1985
1985
  }
1986
1986
  }
1987
1987
  };
@@ -1998,10 +1998,10 @@ function mi({
1998
1998
  onPrintSuccess: u,
1999
1999
  onPrintError: h,
2000
2000
  onDownloadStart: f,
2001
- onDownloadSuccess: b,
2002
- onDownloadError: v
2001
+ onDownloadSuccess: v,
2002
+ onDownloadError: g
2003
2003
  }) {
2004
- const m = g.useRef(null), { printContract: N, downloadPDF: C } = tn(
2004
+ const m = b.useRef(null), { printContract: N, downloadPDF: k } = tn(
2005
2005
  m,
2006
2006
  e.numeroContrato,
2007
2007
  {
@@ -2009,8 +2009,8 @@ function mi({
2009
2009
  onPrintSuccess: u,
2010
2010
  onPrintError: h,
2011
2011
  onDownloadStart: f,
2012
- onDownloadSuccess: b,
2013
- onDownloadError: v
2012
+ onDownloadSuccess: v,
2013
+ onDownloadError: g
2014
2014
  }
2015
2015
  ), y = (w) => new Intl.NumberFormat("pt-BR", {
2016
2016
  style: "currency",
@@ -2026,7 +2026,7 @@ function mi({
2026
2026
  {
2027
2027
  variant: "outline",
2028
2028
  size: "sm",
2029
- onClick: C,
2029
+ onClick: k,
2030
2030
  className: "gap-2",
2031
2031
  children: [
2032
2032
  /* @__PURE__ */ t(at, { className: "h-4 w-4" }),
@@ -2108,7 +2108,7 @@ function mi({
2108
2108
  ] })
2109
2109
  ] });
2110
2110
  }
2111
- const an = g.forwardRef(({ data: e, logo: a, showServices: r = !0, className: n }, s) => /* @__PURE__ */ t("div", { className: i("bg-white rounded-lg shadow-sm p-8", n), ref: s, children: /* @__PURE__ */ t(
2111
+ const an = b.forwardRef(({ data: e, logo: a, showServices: r = !0, className: n }, s) => /* @__PURE__ */ t("div", { className: i("bg-white rounded-lg shadow-sm p-8", n), ref: s, children: /* @__PURE__ */ t(
2112
2112
  Et,
2113
2113
  {
2114
2114
  data: e,
@@ -2118,9 +2118,9 @@ const an = g.forwardRef(({ data: e, logo: a, showServices: r = !0, className: n
2118
2118
  }
2119
2119
  ) }));
2120
2120
  an.displayName = "ContractPrintPreview";
2121
- const Lt = g.createContext(null);
2121
+ const Lt = b.createContext(null);
2122
2122
  function Be() {
2123
- const e = g.useContext(Lt);
2123
+ const e = b.useContext(Lt);
2124
2124
  if (!e)
2125
2125
  throw new Error("useCarousel must be used within a <Carousel />");
2126
2126
  return e;
@@ -2140,21 +2140,21 @@ function fi({
2140
2140
  axis: e === "horizontal" ? "x" : "y"
2141
2141
  },
2142
2142
  n
2143
- ), [h, f] = g.useState(!1), [b, v] = g.useState(!1), m = g.useCallback((w) => {
2144
- w && (f(w.canScrollPrev()), v(w.canScrollNext()));
2145
- }, []), N = g.useCallback(() => {
2143
+ ), [h, f] = b.useState(!1), [v, g] = b.useState(!1), m = b.useCallback((w) => {
2144
+ w && (f(w.canScrollPrev()), g(w.canScrollNext()));
2145
+ }, []), N = b.useCallback(() => {
2146
2146
  u == null || u.scrollPrev();
2147
- }, [u]), C = g.useCallback(() => {
2147
+ }, [u]), k = b.useCallback(() => {
2148
2148
  u == null || u.scrollNext();
2149
- }, [u]), y = g.useCallback(
2149
+ }, [u]), y = b.useCallback(
2150
2150
  (w) => {
2151
- w.key === "ArrowLeft" ? (w.preventDefault(), N()) : w.key === "ArrowRight" && (w.preventDefault(), C());
2151
+ w.key === "ArrowLeft" ? (w.preventDefault(), N()) : w.key === "ArrowRight" && (w.preventDefault(), k());
2152
2152
  },
2153
- [N, C]
2153
+ [N, k]
2154
2154
  );
2155
- return g.useEffect(() => {
2155
+ return b.useEffect(() => {
2156
2156
  !u || !r || r(u);
2157
- }, [u, r]), g.useEffect(() => {
2157
+ }, [u, r]), b.useEffect(() => {
2158
2158
  if (u)
2159
2159
  return m(u), u.on("reInit", m), u.on("select", m), () => {
2160
2160
  u == null || u.off("select", m);
@@ -2168,9 +2168,9 @@ function fi({
2168
2168
  opts: a,
2169
2169
  orientation: e || ((a == null ? void 0 : a.axis) === "y" ? "vertical" : "horizontal"),
2170
2170
  scrollPrev: N,
2171
- scrollNext: C,
2171
+ scrollNext: k,
2172
2172
  canScrollPrev: h,
2173
- canScrollNext: b
2173
+ canScrollNext: v
2174
2174
  },
2175
2175
  children: /* @__PURE__ */ t(
2176
2176
  "div",
@@ -2282,9 +2282,9 @@ function bi({
2282
2282
  }
2283
2283
  );
2284
2284
  }
2285
- const rn = { light: "", dark: ".dark" }, Ht = g.createContext(null);
2285
+ const rn = { light: "", dark: ".dark" }, Ht = b.createContext(null);
2286
2286
  function Vt() {
2287
- const e = g.useContext(Ht);
2287
+ const e = b.useContext(Ht);
2288
2288
  if (!e)
2289
2289
  throw new Error("useChart must be used within a <ChartContainer />");
2290
2290
  return e;
@@ -2296,7 +2296,7 @@ function vi({
2296
2296
  config: n,
2297
2297
  ...s
2298
2298
  }) {
2299
- const l = g.useId(), d = `chart-${e || l.replace(/:/g, "")}`;
2299
+ const l = b.useId(), d = `chart-${e || l.replace(/:/g, "")}`;
2300
2300
  return /* @__PURE__ */ t(Ht.Provider, { value: { config: n }, children: /* @__PURE__ */ o(
2301
2301
  "div",
2302
2302
  {
@@ -2351,14 +2351,14 @@ function Ni({
2351
2351
  labelClassName: u,
2352
2352
  formatter: h,
2353
2353
  color: f,
2354
- nameKey: b,
2355
- labelKey: v
2354
+ nameKey: v,
2355
+ labelKey: g
2356
2356
  }) {
2357
- const { config: m } = Vt(), N = g.useMemo(() => {
2357
+ const { config: m } = Vt(), N = b.useMemo(() => {
2358
2358
  var p;
2359
2359
  if (s || !(a != null && a.length))
2360
2360
  return null;
2361
- const [y] = a, w = `${v || (y == null ? void 0 : y.dataKey) || (y == null ? void 0 : y.name) || "value"}`, P = et(m, y, w), x = !v && typeof d == "string" ? ((p = m[d]) == null ? void 0 : p.label) || d : P == null ? void 0 : P.label;
2361
+ const [y] = a, w = `${g || (y == null ? void 0 : y.dataKey) || (y == null ? void 0 : y.name) || "value"}`, P = et(m, y, w), x = !g && typeof d == "string" ? ((p = m[d]) == null ? void 0 : p.label) || d : P == null ? void 0 : P.label;
2362
2362
  return c ? /* @__PURE__ */ t("div", { className: i("font-medium", u), children: c(x, a) }) : x ? /* @__PURE__ */ t("div", { className: i("font-medium", u), children: x }) : null;
2363
2363
  }, [
2364
2364
  d,
@@ -2367,11 +2367,11 @@ function Ni({
2367
2367
  s,
2368
2368
  u,
2369
2369
  m,
2370
- v
2370
+ g
2371
2371
  ]);
2372
2372
  if (!e || !(a != null && a.length))
2373
2373
  return null;
2374
- const C = a.length === 1 && n !== "dot";
2374
+ const k = a.length === 1 && n !== "dot";
2375
2375
  return /* @__PURE__ */ o(
2376
2376
  "div",
2377
2377
  {
@@ -2380,9 +2380,9 @@ function Ni({
2380
2380
  r
2381
2381
  ),
2382
2382
  children: [
2383
- C ? null : N,
2383
+ k ? null : N,
2384
2384
  /* @__PURE__ */ t("div", { className: "grid gap-1.5", children: a.map((y, w) => {
2385
- const P = `${b || y.name || y.dataKey || "value"}`, x = et(m, y, P), p = f || y.payload.fill || y.color;
2385
+ const P = `${v || y.name || y.dataKey || "value"}`, x = et(m, y, P), p = f || y.payload.fill || y.color;
2386
2386
  return /* @__PURE__ */ t(
2387
2387
  "div",
2388
2388
  {
@@ -2400,7 +2400,7 @@ function Ni({
2400
2400
  "h-2.5 w-2.5": n === "dot",
2401
2401
  "w-1": n === "line",
2402
2402
  "w-0 border-[1.5px] border-dashed bg-transparent": n === "dashed",
2403
- "my-0.5": C && n === "dashed"
2403
+ "my-0.5": k && n === "dashed"
2404
2404
  }
2405
2405
  ),
2406
2406
  style: {
@@ -2414,11 +2414,11 @@ function Ni({
2414
2414
  {
2415
2415
  className: i(
2416
2416
  "flex flex-1 justify-between leading-none",
2417
- C ? "items-end" : "items-center"
2417
+ k ? "items-end" : "items-center"
2418
2418
  ),
2419
2419
  children: [
2420
2420
  /* @__PURE__ */ o("div", { className: "grid gap-1.5", children: [
2421
- C ? N : null,
2421
+ k ? N : null,
2422
2422
  /* @__PURE__ */ t("span", { className: "text-muted-foreground", children: (x == null ? void 0 : x.label) || y.name })
2423
2423
  ] }),
2424
2424
  y.value && /* @__PURE__ */ t("span", { className: "text-foreground font-mono font-medium tabular-nums", children: y.value.toLocaleString() })
@@ -2514,9 +2514,9 @@ function ee({
2514
2514
  }) {
2515
2515
  return /* @__PURE__ */ t(ae.Root, { "data-slot": "popover", ...e });
2516
2516
  }
2517
- const Y = g.forwardRef((e, a) => /* @__PURE__ */ t(ae.Trigger, { ref: a, "data-slot": "popover-trigger", ...e }));
2517
+ const Y = b.forwardRef((e, a) => /* @__PURE__ */ t(ae.Trigger, { ref: a, "data-slot": "popover-trigger", ...e }));
2518
2518
  Y.displayName = ae.Trigger.displayName;
2519
- const Q = g.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...n }, s) => /* @__PURE__ */ t(ae.Portal, { children: /* @__PURE__ */ t(
2519
+ const Q = b.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...n }, s) => /* @__PURE__ */ t(ae.Portal, { children: /* @__PURE__ */ t(
2520
2520
  ae.Content,
2521
2521
  {
2522
2522
  ref: s,
@@ -2531,7 +2531,7 @@ const Q = g.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4,
2531
2531
  }
2532
2532
  ) }));
2533
2533
  Q.displayName = ae.Content.displayName;
2534
- const sn = g.forwardRef((e, a) => /* @__PURE__ */ t(ae.Anchor, { ref: a, "data-slot": "popover-anchor", ...e }));
2534
+ const sn = b.forwardRef((e, a) => /* @__PURE__ */ t(ae.Anchor, { ref: a, "data-slot": "popover-anchor", ...e }));
2535
2535
  sn.displayName = ae.Anchor.displayName;
2536
2536
  function ze({ className: e, type: a, ...r }) {
2537
2537
  return /* @__PURE__ */ t(
@@ -2573,16 +2573,16 @@ function Ci({
2573
2573
  disabled: s = !1
2574
2574
  }) {
2575
2575
  const [l, d] = G(e), [c, u] = G(!1);
2576
- g.useEffect(() => {
2576
+ b.useEffect(() => {
2577
2577
  d(e);
2578
2578
  }, [e]);
2579
- const h = (b) => {
2580
- d(b), a == null || a(b);
2581
- }, f = (b) => {
2582
- let v = b.target.value;
2583
- v = v.replace("#", ""), v = v.replace(/[^0-9A-Fa-f]/g, ""), v.length > 6 && (v = v.slice(0, 6));
2584
- const m = "#" + v;
2585
- d(m), v.length === 6 && (a == null || a(m));
2579
+ const h = (v) => {
2580
+ d(v), a == null || a(v);
2581
+ }, f = (v) => {
2582
+ let g = v.target.value;
2583
+ g = g.replace("#", ""), g = g.replace(/[^0-9A-Fa-f]/g, ""), g.length > 6 && (g = g.slice(0, 6));
2584
+ const m = "#" + g;
2585
+ d(m), g.length === 6 && (a == null || a(m));
2586
2586
  };
2587
2587
  return /* @__PURE__ */ o("div", { className: i("space-y-2", n), children: [
2588
2588
  r && /* @__PURE__ */ t(ce, { children: r }),
@@ -2666,19 +2666,19 @@ function Ci({
2666
2666
  "#C5CDD9",
2667
2667
  "#FFFFFF"
2668
2668
  // Grays
2669
- ].map((b) => /* @__PURE__ */ t(
2669
+ ].map((v) => /* @__PURE__ */ t(
2670
2670
  "button",
2671
2671
  {
2672
2672
  type: "button",
2673
2673
  className: i(
2674
2674
  "w-6 h-6 rounded border transition-all hover:scale-110",
2675
- l.toLowerCase() === b.toLowerCase() ? "border-2 border-primary ring-2 ring-primary/20" : "border-border"
2675
+ l.toLowerCase() === v.toLowerCase() ? "border-2 border-primary ring-2 ring-primary/20" : "border-border"
2676
2676
  ),
2677
- style: { backgroundColor: b },
2678
- onClick: () => h(b),
2679
- title: b
2677
+ style: { backgroundColor: v },
2678
+ onClick: () => h(v),
2679
+ title: v
2680
2680
  },
2681
- b
2681
+ v
2682
2682
  )) })
2683
2683
  ] })
2684
2684
  ] }) })
@@ -2919,16 +2919,16 @@ function Fe({
2919
2919
  showIcon: h = !0,
2920
2920
  variant: f = "input"
2921
2921
  }) {
2922
- const [b, v] = g.useMemo(() => {
2922
+ const [v, g] = b.useMemo(() => {
2923
2923
  if (!e) return ["", ""];
2924
2924
  const [w, P] = e.split(":");
2925
2925
  return [w || "", P || ""];
2926
- }, [e]), [m, N] = g.useState(() => b && parseInt(b) >= 12 ? "PM" : "AM"), C = (w, P, x) => {
2926
+ }, [e]), [m, N] = b.useState(() => v && parseInt(v) >= 12 ? "PM" : "AM"), k = (w, P, x) => {
2927
2927
  if (!w || !P) return;
2928
2928
  let p = parseInt(w);
2929
- const k = parseInt(P);
2929
+ const S = parseInt(P);
2930
2930
  r === "12h" && x && (p = un(p, x));
2931
- const z = `${p.toString().padStart(2, "0")}:${k.toString().padStart(2, "0")}`;
2931
+ const z = `${p.toString().padStart(2, "0")}:${S.toString().padStart(2, "0")}`;
2932
2932
  Nt(z, s, l) && (a == null || a(z));
2933
2933
  }, y = (w) => {
2934
2934
  const x = w.target.value.replace(/[^\d:]/g, "");
@@ -2938,8 +2938,8 @@ function Fe({
2938
2938
  return;
2939
2939
  }
2940
2940
  if (x.match(/^\d{2}:\d{2}$/)) {
2941
- const [p, k] = x.split(":").map(Number);
2942
- p >= 0 && p <= 23 && k >= 0 && k <= 59 && Nt(x, s, l) && (a == null || a(x));
2941
+ const [p, S] = x.split(":").map(Number);
2942
+ p >= 0 && p <= 23 && S >= 0 && S <= 59 && Nt(x, s, l) && (a == null || a(x));
2943
2943
  } else
2944
2944
  a == null || a(x);
2945
2945
  };
@@ -2960,7 +2960,7 @@ function Fe({
2960
2960
  )
2961
2961
  ] });
2962
2962
  if (f === "select") {
2963
- const w = vt(r), P = xt(n), x = r === "12h" && b ? cn(parseInt(b)).hour.toString().padStart(2, "0") : b;
2963
+ const w = vt(r), P = xt(n), x = r === "12h" && v ? cn(parseInt(v)).hour.toString().padStart(2, "0") : v;
2964
2964
  return /* @__PURE__ */ o("div", { className: i("flex items-center gap-2", u), children: [
2965
2965
  h && /* @__PURE__ */ t(Ze, { className: "size-4 text-muted-foreground" }),
2966
2966
  /* @__PURE__ */ o(
@@ -2968,7 +2968,7 @@ function Fe({
2968
2968
  {
2969
2969
  value: x,
2970
2970
  onValueChange: (p) => {
2971
- C(p, v || "00", r === "12h" ? m : void 0);
2971
+ k(p, g || "00", r === "12h" ? m : void 0);
2972
2972
  },
2973
2973
  disabled: d,
2974
2974
  children: [
@@ -2981,9 +2981,9 @@ function Fe({
2981
2981
  /* @__PURE__ */ o(
2982
2982
  oe,
2983
2983
  {
2984
- value: v,
2984
+ value: g,
2985
2985
  onValueChange: (p) => {
2986
- C(b || "00", p, r === "12h" ? m : void 0);
2986
+ k(v || "00", p, r === "12h" ? m : void 0);
2987
2987
  },
2988
2988
  disabled: d,
2989
2989
  children: [
@@ -2997,7 +2997,7 @@ function Fe({
2997
2997
  {
2998
2998
  value: m,
2999
2999
  onValueChange: (p) => {
3000
- N(p), b && v && C(b, v, p);
3000
+ N(p), v && g && k(v, g, p);
3001
3001
  },
3002
3002
  disabled: d,
3003
3003
  children: [
@@ -3019,8 +3019,8 @@ function Fe({
3019
3019
  /* @__PURE__ */ o(
3020
3020
  oe,
3021
3021
  {
3022
- value: b,
3023
- onValueChange: (x) => C(x, v || "00", r === "12h" ? m : void 0),
3022
+ value: v,
3023
+ onValueChange: (x) => k(x, g || "00", r === "12h" ? m : void 0),
3024
3024
  disabled: d,
3025
3025
  children: [
3026
3026
  /* @__PURE__ */ t(se, { className: "w-[65px] h-8 text-sm", children: /* @__PURE__ */ t(ie, { placeholder: "HH" }) }),
@@ -3032,8 +3032,8 @@ function Fe({
3032
3032
  /* @__PURE__ */ o(
3033
3033
  oe,
3034
3034
  {
3035
- value: v,
3036
- onValueChange: (x) => C(b || "00", x, r === "12h" ? m : void 0),
3035
+ value: g,
3036
+ onValueChange: (x) => k(v || "00", x, r === "12h" ? m : void 0),
3037
3037
  disabled: d,
3038
3038
  children: [
3039
3039
  /* @__PURE__ */ t(se, { className: "w-[65px] h-8 text-sm", children: /* @__PURE__ */ t(ie, { placeholder: "MM" }) }),
@@ -3046,7 +3046,7 @@ function Fe({
3046
3046
  {
3047
3047
  value: m,
3048
3048
  onValueChange: (x) => {
3049
- N(x), b && v && C(b, v, x);
3049
+ N(x), v && g && k(v, g, x);
3050
3050
  },
3051
3051
  disabled: d,
3052
3052
  children: [
@@ -3075,13 +3075,13 @@ function mn({
3075
3075
  className: u,
3076
3076
  error: h = !1,
3077
3077
  showTime: f = !1,
3078
- timeFormat: b = "24h",
3079
- minuteStep: v = 5,
3078
+ timeFormat: v = "24h",
3079
+ minuteStep: g = 5,
3080
3080
  defaultTime: m = "09:00",
3081
3081
  id: N,
3082
- name: C
3082
+ name: k
3083
3083
  }) {
3084
- const [y, w] = g.useState(!1), P = d || (f ? "dd/MM/yyyy HH:mm" : "dd/MM/yyyy"), x = g.useMemo(() => {
3084
+ const [y, w] = b.useState(!1), P = d || (f ? "dd/MM/yyyy HH:mm" : "dd/MM/yyyy"), x = b.useMemo(() => {
3085
3085
  if (!e) return m;
3086
3086
  const I = e.getHours().toString().padStart(2, "0"), T = e.getMinutes().toString().padStart(2, "0");
3087
3087
  return `${I}:${T}`;
@@ -3096,7 +3096,7 @@ function mn({
3096
3096
  } else
3097
3097
  I.setHours(0, 0, 0, 0);
3098
3098
  a == null || a(I), f || w(!1);
3099
- }, k = (I) => {
3099
+ }, S = (I) => {
3100
3100
  if (e) {
3101
3101
  const T = new Date(e), [D, O] = I.split(":").map(Number);
3102
3102
  T.setHours(D, O, 0, 0), a == null || a(T);
@@ -3104,13 +3104,13 @@ function mn({
3104
3104
  const T = /* @__PURE__ */ new Date(), [D, O] = I.split(":").map(Number);
3105
3105
  T.setHours(D, O, 0, 0), a == null || a(T);
3106
3106
  }
3107
- }, z = g.useMemo(() => e ? Qe(e, P, { locale: c }) : "", [e, P, c]);
3107
+ }, z = b.useMemo(() => e ? Qe(e, P, { locale: c }) : "", [e, P, c]);
3108
3108
  return /* @__PURE__ */ o(ee, { open: y, onOpenChange: w, children: [
3109
3109
  /* @__PURE__ */ t(Y, { asChild: !0, children: /* @__PURE__ */ o(
3110
3110
  M,
3111
3111
  {
3112
3112
  id: N,
3113
- name: C,
3113
+ name: k,
3114
3114
  variant: "outline",
3115
3115
  disabled: n,
3116
3116
  className: i(
@@ -3141,9 +3141,9 @@ function mn({
3141
3141
  Fe,
3142
3142
  {
3143
3143
  value: x,
3144
- onChange: k,
3145
- format: b,
3146
- minuteStep: v,
3144
+ onChange: S,
3145
+ format: v,
3146
+ minuteStep: g,
3147
3147
  variant: "inline",
3148
3148
  showIcon: !0
3149
3149
  }
@@ -3200,19 +3200,19 @@ function pn({
3200
3200
  className: u,
3201
3201
  error: h = !1,
3202
3202
  numberOfMonths: f = 2,
3203
- showTime: b = !1,
3204
- timeFormat: v = "24h",
3203
+ showTime: v = !1,
3204
+ timeFormat: g = "24h",
3205
3205
  minuteStep: m = 15,
3206
3206
  presets: N,
3207
- showDefaultPresets: C = !0,
3207
+ showDefaultPresets: k = !0,
3208
3208
  id: y,
3209
3209
  name: w
3210
3210
  }) {
3211
- const [P, x] = g.useState(!1), p = b ? `${d} HH:mm` : d, k = g.useMemo(() => [...C ? fn() : [], ...N || []], [N, C]), z = g.useMemo(() => {
3211
+ const [P, x] = b.useState(!1), p = v ? `${d} HH:mm` : d, S = b.useMemo(() => [...k ? fn() : [], ...N || []], [N, k]), z = b.useMemo(() => {
3212
3212
  if (!(e != null && e.from)) return "00:00";
3213
3213
  const _ = e.from.getHours().toString().padStart(2, "0"), A = e.from.getMinutes().toString().padStart(2, "0");
3214
3214
  return `${_}:${A}`;
3215
- }, [e == null ? void 0 : e.from]), I = g.useMemo(() => {
3215
+ }, [e == null ? void 0 : e.from]), I = b.useMemo(() => {
3216
3216
  if (!(e != null && e.to)) return "23:59";
3217
3217
  const _ = e.to.getHours().toString().padStart(2, "0"), A = e.to.getMinutes().toString().padStart(2, "0");
3218
3218
  return `${_}:${A}`;
@@ -3221,37 +3221,37 @@ function pn({
3221
3221
  a == null || a(void 0);
3222
3222
  return;
3223
3223
  }
3224
- if (b) {
3224
+ if (v) {
3225
3225
  if (_.from) {
3226
- const [A, W] = z.split(":").map(Number);
3227
- _.from.setHours(A, W, 0, 0);
3226
+ const [A, $] = z.split(":").map(Number);
3227
+ _.from.setHours(A, $, 0, 0);
3228
3228
  }
3229
3229
  if (_.to) {
3230
- const [A, W] = I.split(":").map(Number);
3231
- _.to.setHours(A, W, 0, 0);
3230
+ const [A, $] = I.split(":").map(Number);
3231
+ _.to.setHours(A, $, 0, 0);
3232
3232
  }
3233
3233
  } else
3234
3234
  _.from && _.from.setHours(0, 0, 0, 0), _.to && _.to.setHours(23, 59, 59, 999);
3235
3235
  a == null || a(_);
3236
3236
  }, D = (_) => {
3237
3237
  if (!(e != null && e.from)) return;
3238
- const A = new Date(e.from), [W, ne] = _.split(":").map(Number);
3239
- A.setHours(W, ne, 0, 0), a == null || a({ ...e, from: A });
3238
+ const A = new Date(e.from), [$, ne] = _.split(":").map(Number);
3239
+ A.setHours($, ne, 0, 0), a == null || a({ ...e, from: A });
3240
3240
  }, O = (_) => {
3241
3241
  if (!(e != null && e.to)) return;
3242
- const A = new Date(e.to), [W, ne] = _.split(":").map(Number);
3243
- A.setHours(W, ne, 0, 0), a == null || a({ ...e, to: A });
3242
+ const A = new Date(e.to), [$, ne] = _.split(":").map(Number);
3243
+ A.setHours($, ne, 0, 0), a == null || a({ ...e, to: A });
3244
3244
  }, ve = (_) => {
3245
3245
  const A = {
3246
3246
  from: new Date(_.value.from),
3247
3247
  to: new Date(_.value.to)
3248
3248
  };
3249
- if (b) {
3250
- const [W, ne] = z.split(":").map(Number), [Me, Te] = I.split(":").map(Number);
3251
- A.from.setHours(W, ne, 0, 0), A.to.setHours(Me, Te, 0, 0);
3249
+ if (v) {
3250
+ const [$, ne] = z.split(":").map(Number), [Me, Te] = I.split(":").map(Number);
3251
+ A.from.setHours($, ne, 0, 0), A.to.setHours(Me, Te, 0, 0);
3252
3252
  }
3253
3253
  a == null || a(A);
3254
- }, qe = g.useMemo(() => {
3254
+ }, qe = b.useMemo(() => {
3255
3255
  if (!(e != null && e.from)) return "";
3256
3256
  const _ = Qe(e.from, p, { locale: c });
3257
3257
  if (!e.to) return _;
@@ -3279,9 +3279,9 @@ function pn({
3279
3279
  }
3280
3280
  ) }),
3281
3281
  /* @__PURE__ */ t(Q, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ o("div", { className: "flex", children: [
3282
- k.length > 0 && /* @__PURE__ */ o("div", { className: "border-r p-3 space-y-1 min-w-[140px]", children: [
3282
+ S.length > 0 && /* @__PURE__ */ o("div", { className: "border-r p-3 space-y-1 min-w-[140px]", children: [
3283
3283
  /* @__PURE__ */ t("p", { className: "text-xs font-medium text-muted-foreground mb-2", children: "Atalhos" }),
3284
- k.map((_) => /* @__PURE__ */ t(
3284
+ S.map((_) => /* @__PURE__ */ t(
3285
3285
  M,
3286
3286
  {
3287
3287
  variant: "ghost",
@@ -3306,7 +3306,7 @@ function pn({
3306
3306
  initialFocus: !0
3307
3307
  }
3308
3308
  ),
3309
- b && (e == null ? void 0 : e.from) && (e == null ? void 0 : e.to) && /* @__PURE__ */ o("div", { className: "border-t p-3 flex gap-6", children: [
3309
+ v && (e == null ? void 0 : e.from) && (e == null ? void 0 : e.to) && /* @__PURE__ */ o("div", { className: "border-t p-3 flex gap-6", children: [
3310
3310
  /* @__PURE__ */ o("div", { className: "flex-1", children: [
3311
3311
  /* @__PURE__ */ t("p", { className: "text-xs font-medium text-muted-foreground mb-2", children: "Hora início" }),
3312
3312
  /* @__PURE__ */ t(
@@ -3314,7 +3314,7 @@ function pn({
3314
3314
  {
3315
3315
  value: z,
3316
3316
  onChange: D,
3317
- format: v,
3317
+ format: g,
3318
3318
  minuteStep: m,
3319
3319
  variant: "select",
3320
3320
  showIcon: !1
@@ -3328,7 +3328,7 @@ function pn({
3328
3328
  {
3329
3329
  value: I,
3330
3330
  onChange: O,
3331
- format: v,
3331
+ format: g,
3332
3332
  minuteStep: m,
3333
3333
  variant: "select",
3334
3334
  showIcon: !1
@@ -3401,7 +3401,7 @@ function Bt({
3401
3401
  }
3402
3402
  );
3403
3403
  }
3404
- function $t({
3404
+ function Wt({
3405
3405
  className: e,
3406
3406
  sideOffset: a = 4,
3407
3407
  ...r
@@ -3615,7 +3615,7 @@ const bn = {
3615
3615
  textColor: "text-red-700",
3616
3616
  bgColor: "bg-red-50 dark:bg-red-950/20"
3617
3617
  }
3618
- }, vn = g.forwardRef(
3618
+ }, vn = b.forwardRef(
3619
3619
  ({
3620
3620
  title: e,
3621
3621
  description: a,
@@ -3628,21 +3628,21 @@ const bn = {
3628
3628
  comments: u,
3629
3629
  attachments: h,
3630
3630
  checklist: f,
3631
- progress: b,
3632
- status: v,
3631
+ progress: v,
3632
+ status: g,
3633
3633
  variant: m = "default",
3634
3634
  isDragging: N = !1,
3635
- onClick: C,
3635
+ onClick: k,
3636
3636
  onEdit: y,
3637
3637
  onDelete: w,
3638
3638
  onDuplicate: P,
3639
3639
  className: x
3640
3640
  }, p) => {
3641
- const k = c && new Date(c) < /* @__PURE__ */ new Date(), z = d ? bn[d] : null, I = (D) => {
3641
+ const S = c && new Date(c) < /* @__PURE__ */ new Date(), z = d ? bn[d] : null, I = (D) => {
3642
3642
  const O = D.getDate().toString().padStart(2, "0"), ve = (D.getMonth() + 1).toString().padStart(2, "0");
3643
3643
  return `${O}/${ve}`;
3644
3644
  }, T = (D) => {
3645
- D.target.closest("button") || D.target.closest("[role='menuitem']") || C == null || C();
3645
+ D.target.closest("button") || D.target.closest("[role='menuitem']") || k == null || k();
3646
3646
  };
3647
3647
  return /* @__PURE__ */ o(
3648
3648
  ue,
@@ -3711,7 +3711,7 @@ const bn = {
3711
3711
  children: e
3712
3712
  }
3713
3713
  ),
3714
- v && m === "detailed" && /* @__PURE__ */ t(q, { variant: "outline", className: "mt-1 text-xs", children: v })
3714
+ g && m === "detailed" && /* @__PURE__ */ t(q, { variant: "outline", className: "mt-1 text-xs", children: g })
3715
3715
  ] })
3716
3716
  ] }),
3717
3717
  a && m !== "compact" && /* @__PURE__ */ t(Yr, { className: "mt-2 line-clamp-2 text-xs", children: a })
@@ -3726,7 +3726,7 @@ const bn = {
3726
3726
  children: /* @__PURE__ */ t(Ma, { className: "h-4 w-4" })
3727
3727
  }
3728
3728
  ) }),
3729
- /* @__PURE__ */ o($t, { align: "end", children: [
3729
+ /* @__PURE__ */ o(Wt, { align: "end", children: [
3730
3730
  y && /* @__PURE__ */ t(Xe, { onClick: y, children: "Editar" }),
3731
3731
  P && /* @__PURE__ */ t(Xe, { onClick: P, children: "Duplicar" }),
3732
3732
  w && /* @__PURE__ */ t(
@@ -3777,15 +3777,15 @@ const bn = {
3777
3777
  }
3778
3778
  )
3779
3779
  ] }),
3780
- b !== void 0 && m !== "compact" && /* @__PURE__ */ t(Pe, { className: "px-4 pb-3 pt-0", children: /* @__PURE__ */ o("div", { className: "space-y-1", children: [
3780
+ v !== void 0 && m !== "compact" && /* @__PURE__ */ t(Pe, { className: "px-4 pb-3 pt-0", children: /* @__PURE__ */ o("div", { className: "space-y-1", children: [
3781
3781
  /* @__PURE__ */ o("div", { className: "flex items-center justify-between text-xs text-muted-foreground", children: [
3782
3782
  /* @__PURE__ */ t("span", { children: "Progresso" }),
3783
3783
  /* @__PURE__ */ o("span", { children: [
3784
- b,
3784
+ v,
3785
3785
  "%"
3786
3786
  ] })
3787
3787
  ] }),
3788
- /* @__PURE__ */ t(hn, { value: b, className: "h-1.5" })
3788
+ /* @__PURE__ */ t(hn, { value: v, className: "h-1.5" })
3789
3789
  ] }) }),
3790
3790
  /* @__PURE__ */ o(
3791
3791
  Qr,
@@ -3801,10 +3801,10 @@ const bn = {
3801
3801
  {
3802
3802
  className: i(
3803
3803
  "flex items-center gap-1",
3804
- k && "text-destructive font-medium"
3804
+ S && "text-destructive font-medium"
3805
3805
  ),
3806
3806
  children: [
3807
- k && /* @__PURE__ */ t(Ta, { className: "h-3 w-3" }),
3807
+ S && /* @__PURE__ */ t(Ta, { className: "h-3 w-3" }),
3808
3808
  /* @__PURE__ */ t(Ct, { className: "h-3 w-3" }),
3809
3809
  /* @__PURE__ */ t("span", { children: I(c) })
3810
3810
  ]
@@ -3860,7 +3860,7 @@ function j({ className: e, variant: a = "pulse", ...r }) {
3860
3860
  }
3861
3861
  );
3862
3862
  }
3863
- const xn = g.forwardRef(
3863
+ const xn = b.forwardRef(
3864
3864
  ({
3865
3865
  title: e,
3866
3866
  primaryContent: a,
@@ -3907,7 +3907,7 @@ const xn = g.forwardRef(
3907
3907
  ),
3908
3908
  children: [
3909
3909
  n > 0 ? /* @__PURE__ */ t(Aa, { className: "h-3 w-3 mr-0.5 inline" }) : /* @__PURE__ */ t(Ra, { className: "h-3 w-3 mr-0.5 inline" }),
3910
- s || `${n > 0 ? "+" : ""}${n}%`
3910
+ s
3911
3911
  ]
3912
3912
  }
3913
3913
  )
@@ -3939,7 +3939,7 @@ function Oi({
3939
3939
  }) {
3940
3940
  return /* @__PURE__ */ t(R.Close, { "data-slot": "dialog-close", ...e });
3941
3941
  }
3942
- const Wt = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
3942
+ const $t = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
3943
3943
  R.Overlay,
3944
3944
  {
3945
3945
  ref: r,
@@ -3951,14 +3951,14 @@ const Wt = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
3951
3951
  ...a
3952
3952
  }
3953
3953
  ));
3954
- Wt.displayName = R.Overlay.displayName;
3954
+ $t.displayName = R.Overlay.displayName;
3955
3955
  function yn({
3956
3956
  className: e,
3957
3957
  children: a,
3958
3958
  ...r
3959
3959
  }) {
3960
3960
  return /* @__PURE__ */ o(wn, { "data-slot": "dialog-portal", children: [
3961
- /* @__PURE__ */ t(Wt, {}),
3961
+ /* @__PURE__ */ t($t, {}),
3962
3962
  /* @__PURE__ */ o(
3963
3963
  R.Content,
3964
3964
  {
@@ -4044,7 +4044,7 @@ function Pn({
4044
4044
  }
4045
4045
  );
4046
4046
  }
4047
- function $i({
4047
+ function Wi({
4048
4048
  title: e = "Command Palette",
4049
4049
  description: a = "Search for a command to run...",
4050
4050
  children: r,
@@ -4058,7 +4058,7 @@ function $i({
4058
4058
  /* @__PURE__ */ t(yn, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t(Pn, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r }) })
4059
4059
  ] });
4060
4060
  }
4061
- function Wi({
4061
+ function $i({
4062
4062
  className: e,
4063
4063
  ...a
4064
4064
  }) {
@@ -4380,16 +4380,16 @@ function ms({
4380
4380
  }) {
4381
4381
  return /* @__PURE__ */ t(re.Root, { "data-slot": "drawer", ...e });
4382
4382
  }
4383
- const zn = g.forwardRef(({ ...e }, a) => /* @__PURE__ */ t(re.Trigger, { ref: a, "data-slot": "drawer-trigger", ...e }));
4383
+ const zn = b.forwardRef(({ ...e }, a) => /* @__PURE__ */ t(re.Trigger, { ref: a, "data-slot": "drawer-trigger", ...e }));
4384
4384
  zn.displayName = "DrawerTrigger";
4385
4385
  function Mn({
4386
4386
  ...e
4387
4387
  }) {
4388
4388
  return /* @__PURE__ */ t(re.Portal, { "data-slot": "drawer-portal", ...e });
4389
4389
  }
4390
- const Tn = g.forwardRef(({ ...e }, a) => /* @__PURE__ */ t(re.Close, { ref: a, "data-slot": "drawer-close", ...e }));
4390
+ const Tn = b.forwardRef(({ ...e }, a) => /* @__PURE__ */ t(re.Close, { ref: a, "data-slot": "drawer-close", ...e }));
4391
4391
  Tn.displayName = "DrawerClose";
4392
- const qt = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4392
+ const qt = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4393
4393
  re.Overlay,
4394
4394
  {
4395
4395
  ref: r,
@@ -4402,7 +4402,7 @@ const qt = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4402
4402
  }
4403
4403
  ));
4404
4404
  qt.displayName = "DrawerOverlay";
4405
- const Dn = g.forwardRef(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ o(Mn, { "data-slot": "drawer-portal", children: [
4405
+ const Dn = b.forwardRef(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ o(Mn, { "data-slot": "drawer-portal", children: [
4406
4406
  /* @__PURE__ */ t(qt, {}),
4407
4407
  /* @__PURE__ */ o(
4408
4408
  re.Content,
@@ -4446,7 +4446,7 @@ function ps({ className: e, ...a }) {
4446
4446
  }
4447
4447
  );
4448
4448
  }
4449
- const In = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4449
+ const In = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4450
4450
  re.Title,
4451
4451
  {
4452
4452
  ref: r,
@@ -4456,7 +4456,7 @@ const In = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4456
4456
  }
4457
4457
  ));
4458
4458
  In.displayName = "DrawerTitle";
4459
- const _n = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4459
+ const _n = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4460
4460
  re.Description,
4461
4461
  {
4462
4462
  ref: r,
@@ -4466,12 +4466,12 @@ const _n = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
4466
4466
  }
4467
4467
  ));
4468
4468
  _n.displayName = "DrawerDescription";
4469
- const hs = er, Gt = g.createContext(
4469
+ const hs = er, Gt = b.createContext(
4470
4470
  {}
4471
4471
  ), gs = ({
4472
4472
  ...e
4473
- }) => /* @__PURE__ */ t(Gt.Provider, { value: { name: e.name }, children: /* @__PURE__ */ t(tr, { ...e }) }), $e = () => {
4474
- const e = g.useContext(Gt), a = g.useContext(Zt), { getFieldState: r } = ar(), n = rr({ name: e.name }), s = r(e.name, n);
4473
+ }) => /* @__PURE__ */ t(Gt.Provider, { value: { name: e.name }, children: /* @__PURE__ */ t(tr, { ...e }) }), We = () => {
4474
+ const e = b.useContext(Gt), a = b.useContext(Zt), { getFieldState: r } = ar(), n = rr({ name: e.name }), s = r(e.name, n);
4475
4475
  if (!e)
4476
4476
  throw new Error("useFormField should be used within <FormField>");
4477
4477
  const { id: l } = a;
@@ -4483,11 +4483,11 @@ const hs = er, Gt = g.createContext(
4483
4483
  formMessageId: `${l}-form-item-message`,
4484
4484
  ...s
4485
4485
  };
4486
- }, Zt = g.createContext(
4486
+ }, Zt = b.createContext(
4487
4487
  {}
4488
4488
  );
4489
4489
  function bs({ className: e, ...a }) {
4490
- const r = g.useId();
4490
+ const r = b.useId();
4491
4491
  return /* @__PURE__ */ t(Zt.Provider, { value: { id: r }, children: /* @__PURE__ */ t(
4492
4492
  "div",
4493
4493
  {
@@ -4501,7 +4501,7 @@ function vs({
4501
4501
  className: e,
4502
4502
  ...a
4503
4503
  }) {
4504
- const { error: r, formItemId: n } = $e();
4504
+ const { error: r, formItemId: n } = We();
4505
4505
  return /* @__PURE__ */ t(
4506
4506
  ce,
4507
4507
  {
@@ -4514,7 +4514,7 @@ function vs({
4514
4514
  );
4515
4515
  }
4516
4516
  function xs({ ...e }) {
4517
- const { error: a, formItemId: r, formDescriptionId: n, formMessageId: s } = $e();
4517
+ const { error: a, formItemId: r, formDescriptionId: n, formMessageId: s } = We();
4518
4518
  return /* @__PURE__ */ t(
4519
4519
  J,
4520
4520
  {
@@ -4527,7 +4527,7 @@ function xs({ ...e }) {
4527
4527
  );
4528
4528
  }
4529
4529
  function Ns({ className: e, ...a }) {
4530
- const { formDescriptionId: r } = $e();
4530
+ const { formDescriptionId: r } = We();
4531
4531
  return /* @__PURE__ */ t(
4532
4532
  "p",
4533
4533
  {
@@ -4539,7 +4539,7 @@ function Ns({ className: e, ...a }) {
4539
4539
  );
4540
4540
  }
4541
4541
  function ws({ className: e, ...a }) {
4542
- const { error: r, formMessageId: n } = $e(), s = r ? String((r == null ? void 0 : r.message) ?? "") : a.children;
4542
+ const { error: r, formMessageId: n } = We(), s = r ? String((r == null ? void 0 : r.message) ?? "") : a.children;
4543
4543
  return s ? /* @__PURE__ */ t(
4544
4544
  "p",
4545
4545
  {
@@ -4614,7 +4614,7 @@ function zs({
4614
4614
  className: a,
4615
4615
  ...r
4616
4616
  }) {
4617
- const n = g.useContext(or), { char: s, hasFakeCaret: l, isActive: d } = (n == null ? void 0 : n.slots[e]) ?? {};
4617
+ const n = b.useContext(or), { char: s, hasFakeCaret: l, isActive: d } = (n == null ? void 0 : n.slots[e]) ?? {};
4618
4618
  return /* @__PURE__ */ o(
4619
4619
  "div",
4620
4620
  {
@@ -4848,7 +4848,7 @@ function Bs({
4848
4848
  }
4849
4849
  );
4850
4850
  }
4851
- function $s({
4851
+ function Ws({
4852
4852
  className: e,
4853
4853
  ...a
4854
4854
  }) {
@@ -4864,7 +4864,7 @@ function $s({
4864
4864
  }
4865
4865
  );
4866
4866
  }
4867
- function Ws({
4867
+ function $s({
4868
4868
  className: e,
4869
4869
  children: a,
4870
4870
  viewport: r = !0,
@@ -5220,7 +5220,7 @@ function Ln({
5220
5220
  }) {
5221
5221
  return /* @__PURE__ */ t(R.Portal, { "data-slot": "sheet-portal", ...e });
5222
5222
  }
5223
- const Kt = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
5223
+ const Kt = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
5224
5224
  R.Overlay,
5225
5225
  {
5226
5226
  ref: r,
@@ -5312,11 +5312,11 @@ function Bn({
5312
5312
  );
5313
5313
  }
5314
5314
  const Ye = 768;
5315
- function $n() {
5316
- const [e, a] = g.useState(
5315
+ function Wn() {
5316
+ const [e, a] = b.useState(
5317
5317
  void 0
5318
5318
  );
5319
- return g.useEffect(() => {
5319
+ return b.useEffect(() => {
5320
5320
  const r = window.matchMedia(`(max-width: ${Ye - 1}px)`), n = () => {
5321
5321
  a(window.innerWidth < Ye);
5322
5322
  };
@@ -5336,7 +5336,7 @@ function Xt({
5336
5336
  }
5337
5337
  );
5338
5338
  }
5339
- function Wn({
5339
+ function $n({
5340
5340
  ...e
5341
5341
  }) {
5342
5342
  return /* @__PURE__ */ t(Xt, { children: /* @__PURE__ */ t(he.Root, { "data-slot": "tooltip", ...e }) });
@@ -5369,9 +5369,9 @@ function Gn({
5369
5369
  }
5370
5370
  ) });
5371
5371
  }
5372
- const Zn = "sidebar_state", Un = 3600 * 24 * 7, Kn = "16rem", Xn = "18rem", Yn = "3rem", Qn = "b", Yt = g.createContext(null);
5373
- function We() {
5374
- const e = g.useContext(Yt);
5372
+ const Zn = "sidebar_state", Un = 3600 * 24 * 7, Kn = "16rem", Xn = "18rem", Yn = "3rem", Qn = "b", Yt = b.createContext(null);
5373
+ function $e() {
5374
+ const e = b.useContext(Yt);
5375
5375
  if (!e)
5376
5376
  throw new Error("useSidebar must be used within a SidebarProvider.");
5377
5377
  return e;
@@ -5385,30 +5385,30 @@ function cl({
5385
5385
  children: l,
5386
5386
  ...d
5387
5387
  }) {
5388
- const c = $n(), [u, h] = g.useState(!1), [f, b] = g.useState(e), v = a ?? f, m = g.useCallback(
5388
+ const c = Wn(), [u, h] = b.useState(!1), [f, v] = b.useState(e), g = a ?? f, m = b.useCallback(
5389
5389
  (w) => {
5390
- const P = typeof w == "function" ? w(v) : w;
5391
- r ? r(P) : b(P), document.cookie = `${Zn}=${P}; path=/; max-age=${Un}`;
5390
+ const P = typeof w == "function" ? w(g) : w;
5391
+ r ? r(P) : v(P), document.cookie = `${Zn}=${P}; path=/; max-age=${Un}`;
5392
5392
  },
5393
- [r, v]
5394
- ), N = g.useCallback(() => c ? h((w) => !w) : m((w) => !w), [c, m, h]);
5395
- g.useEffect(() => {
5393
+ [r, g]
5394
+ ), N = b.useCallback(() => c ? h((w) => !w) : m((w) => !w), [c, m, h]);
5395
+ b.useEffect(() => {
5396
5396
  const w = (P) => {
5397
5397
  P.key === Qn && (P.metaKey || P.ctrlKey) && (P.preventDefault(), N());
5398
5398
  };
5399
5399
  return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
5400
5400
  }, [N]);
5401
- const C = v ? "expanded" : "collapsed", y = g.useMemo(
5401
+ const k = g ? "expanded" : "collapsed", y = b.useMemo(
5402
5402
  () => ({
5403
- state: C,
5404
- open: v,
5403
+ state: k,
5404
+ open: g,
5405
5405
  setOpen: m,
5406
5406
  isMobile: c,
5407
5407
  openMobile: u,
5408
5408
  setOpenMobile: h,
5409
5409
  toggleSidebar: N
5410
5410
  }),
5411
- [C, v, m, c, u, h, N]
5411
+ [k, g, m, c, u, h, N]
5412
5412
  );
5413
5413
  return /* @__PURE__ */ t(Yt.Provider, { value: y, children: /* @__PURE__ */ t(Xt, { delayDuration: 0, children: /* @__PURE__ */ t(
5414
5414
  "div",
@@ -5436,7 +5436,7 @@ function ul({
5436
5436
  children: s,
5437
5437
  ...l
5438
5438
  }) {
5439
- const { isMobile: d, state: c, openMobile: u, setOpenMobile: h } = We();
5439
+ const { isMobile: d, state: c, openMobile: u, setOpenMobile: h } = $e();
5440
5440
  return r === "none" ? /* @__PURE__ */ t(
5441
5441
  "div",
5442
5442
  {
@@ -5521,7 +5521,7 @@ function ml({
5521
5521
  onClick: a,
5522
5522
  ...r
5523
5523
  }) {
5524
- const { toggleSidebar: n } = We();
5524
+ const { toggleSidebar: n } = $e();
5525
5525
  return /* @__PURE__ */ o(
5526
5526
  M,
5527
5527
  {
@@ -5542,7 +5542,7 @@ function ml({
5542
5542
  );
5543
5543
  }
5544
5544
  function fl({ className: e, ...a }) {
5545
- const { toggleSidebar: r } = We();
5545
+ const { toggleSidebar: r } = $e();
5546
5546
  return /* @__PURE__ */ t(
5547
5547
  "button",
5548
5548
  {
@@ -5745,7 +5745,7 @@ function Sl({
5745
5745
  className: l,
5746
5746
  ...d
5747
5747
  }) {
5748
- const c = e ? J : "button", { isMobile: u, state: h } = We(), f = /* @__PURE__ */ t(
5748
+ const c = e ? J : "button", { isMobile: u, state: h } = $e(), f = /* @__PURE__ */ t(
5749
5749
  c,
5750
5750
  {
5751
5751
  "data-slot": "sidebar-menu-button",
@@ -5758,7 +5758,7 @@ function Sl({
5758
5758
  );
5759
5759
  return s ? (typeof s == "string" && (s = {
5760
5760
  children: s
5761
- }), /* @__PURE__ */ o(Wn, { children: [
5761
+ }), /* @__PURE__ */ o($n, { children: [
5762
5762
  /* @__PURE__ */ t(qn, { asChild: !0, children: f }),
5763
5763
  /* @__PURE__ */ t(
5764
5764
  Gn,
@@ -5824,7 +5824,7 @@ function Ml({
5824
5824
  showIcon: a = !1,
5825
5825
  ...r
5826
5826
  }) {
5827
- const n = g.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
5827
+ const n = b.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
5828
5828
  return /* @__PURE__ */ o(
5829
5829
  "div",
5830
5830
  {
@@ -5917,7 +5917,7 @@ function _l({
5917
5917
  max: s = 100,
5918
5918
  ...l
5919
5919
  }) {
5920
- const d = g.useMemo(
5920
+ const d = b.useMemo(
5921
5921
  () => Array.isArray(r) ? r : Array.isArray(a) ? a : [n, s],
5922
5922
  [r, a, n, s]
5923
5923
  );
@@ -6006,7 +6006,7 @@ function Rl({
6006
6006
  }
6007
6007
  );
6008
6008
  }
6009
- const Qt = g.forwardRef(
6009
+ const Qt = b.forwardRef(
6010
6010
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6011
6011
  "div",
6012
6012
  {
@@ -6025,7 +6025,7 @@ const Qt = g.forwardRef(
6025
6025
  )
6026
6026
  );
6027
6027
  Qt.displayName = "Table";
6028
- const Jt = g.forwardRef(
6028
+ const Jt = b.forwardRef(
6029
6029
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6030
6030
  "thead",
6031
6031
  {
@@ -6037,7 +6037,7 @@ const Jt = g.forwardRef(
6037
6037
  )
6038
6038
  );
6039
6039
  Jt.displayName = "TableHeader";
6040
- const ea = g.forwardRef(
6040
+ const ea = b.forwardRef(
6041
6041
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6042
6042
  "tbody",
6043
6043
  {
@@ -6049,7 +6049,7 @@ const ea = g.forwardRef(
6049
6049
  )
6050
6050
  );
6051
6051
  ea.displayName = "TableBody";
6052
- const eo = g.forwardRef(
6052
+ const eo = b.forwardRef(
6053
6053
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6054
6054
  "tfoot",
6055
6055
  {
@@ -6064,7 +6064,7 @@ const eo = g.forwardRef(
6064
6064
  )
6065
6065
  );
6066
6066
  eo.displayName = "TableFooter";
6067
- const _e = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
6067
+ const _e = b.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
6068
6068
  "tr",
6069
6069
  {
6070
6070
  ref: r,
@@ -6077,7 +6077,7 @@ const _e = g.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ t(
6077
6077
  }
6078
6078
  ));
6079
6079
  _e.displayName = "TableRow";
6080
- const ta = g.forwardRef(
6080
+ const ta = b.forwardRef(
6081
6081
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6082
6082
  "th",
6083
6083
  {
@@ -6093,7 +6093,7 @@ const ta = g.forwardRef(
6093
6093
  )
6094
6094
  );
6095
6095
  ta.displayName = "TableHead";
6096
- const tt = g.forwardRef(
6096
+ const tt = b.forwardRef(
6097
6097
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6098
6098
  "td",
6099
6099
  {
@@ -6109,7 +6109,7 @@ const tt = g.forwardRef(
6109
6109
  )
6110
6110
  );
6111
6111
  tt.displayName = "TableCell";
6112
- const to = g.forwardRef(
6112
+ const to = b.forwardRef(
6113
6113
  ({ className: e, ...a }, r) => /* @__PURE__ */ t(
6114
6114
  "caption",
6115
6115
  {
@@ -6155,11 +6155,11 @@ function aa({
6155
6155
  showInfo: u = !0,
6156
6156
  showPageNumbers: h = !0,
6157
6157
  showPageSizeSelector: f = !0,
6158
- showFirstLastButtons: b = !0,
6159
- labels: v,
6158
+ showFirstLastButtons: v = !0,
6159
+ labels: g,
6160
6160
  className: m
6161
6161
  }) {
6162
- const N = { ...ao, ...v }, C = no(e, a, c), y = (e - 1) * r + 1, w = Math.min(e * r, n), P = e > 1, x = e < a;
6162
+ const N = { ...ao, ...g }, k = no(e, a, c), y = (e - 1) * r + 1, w = Math.min(e * r, n), P = e > 1, x = e < a;
6163
6163
  return a === 0 ? null : /* @__PURE__ */ o(
6164
6164
  "div",
6165
6165
  {
@@ -6208,7 +6208,7 @@ function aa({
6208
6208
  a
6209
6209
  ] }),
6210
6210
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1", children: [
6211
- b && /* @__PURE__ */ t(
6211
+ v && /* @__PURE__ */ t(
6212
6212
  M,
6213
6213
  {
6214
6214
  variant: "outline",
@@ -6232,15 +6232,15 @@ function aa({
6232
6232
  children: /* @__PURE__ */ t(zt, { className: "h-4 w-4" })
6233
6233
  }
6234
6234
  ),
6235
- h && /* @__PURE__ */ t("div", { className: "hidden sm:flex items-center gap-1", children: C.map(
6236
- (p, k) => p === "ellipsis" ? /* @__PURE__ */ t(
6235
+ h && /* @__PURE__ */ t("div", { className: "hidden sm:flex items-center gap-1", children: k.map(
6236
+ (p, S) => p === "ellipsis" ? /* @__PURE__ */ t(
6237
6237
  "span",
6238
6238
  {
6239
6239
  className: "flex items-center justify-center w-8 h-8 text-muted-foreground",
6240
6240
  "aria-hidden": !0,
6241
6241
  children: "..."
6242
6242
  },
6243
- `ellipsis-${k}`
6243
+ `ellipsis-${S}`
6244
6244
  ) : /* @__PURE__ */ t(
6245
6245
  M,
6246
6246
  {
@@ -6267,7 +6267,7 @@ function aa({
6267
6267
  children: /* @__PURE__ */ t(Le, { className: "h-4 w-4" })
6268
6268
  }
6269
6269
  ),
6270
- b && /* @__PURE__ */ t(
6270
+ v && /* @__PURE__ */ t(
6271
6271
  M,
6272
6272
  {
6273
6273
  variant: "outline",
@@ -6306,29 +6306,29 @@ function io({
6306
6306
  Re(() => {
6307
6307
  r && l(1);
6308
6308
  }, [e.length, r]);
6309
- const f = Math.ceil(h / d), b = Math.min(Math.max(1, s), Math.max(1, f)), v = (b - 1) * d, m = Math.min(v + d, h), N = Re(() => u ? e : e.slice(v, m), [e, v, m, u]), C = (k) => {
6310
- const z = Math.max(1, Math.min(k, f));
6309
+ const f = Math.ceil(h / d), v = Math.min(Math.max(1, s), Math.max(1, f)), g = (v - 1) * d, m = Math.min(g + d, h), N = Re(() => u ? e : e.slice(g, m), [e, g, m, u]), k = (S) => {
6310
+ const z = Math.max(1, Math.min(S, f));
6311
6311
  l(z);
6312
6312
  }, y = () => {
6313
- s < f && l((k) => k + 1);
6313
+ s < f && l((S) => S + 1);
6314
6314
  }, w = () => {
6315
- s > 1 && l((k) => k - 1);
6316
- }, P = (k) => {
6317
- c(k), l(1);
6315
+ s > 1 && l((S) => S - 1);
6316
+ }, P = (S) => {
6317
+ c(S), l(1);
6318
6318
  }, x = {
6319
- currentPage: b,
6319
+ currentPage: v,
6320
6320
  pageSize: d,
6321
6321
  totalItems: h,
6322
- onPageChange: C,
6322
+ onPageChange: k,
6323
6323
  onPageSizeChange: P
6324
6324
  }, p = oo(x);
6325
6325
  return {
6326
- currentPage: b,
6326
+ currentPage: v,
6327
6327
  pageSize: d,
6328
6328
  totalItems: h,
6329
6329
  totalPages: f,
6330
6330
  paginatedData: N,
6331
- goToPage: C,
6331
+ goToPage: k,
6332
6332
  nextPage: y,
6333
6333
  prevPage: w,
6334
6334
  setPageSize: P,
@@ -6345,29 +6345,29 @@ function so({
6345
6345
  totalItems: l
6346
6346
  }) {
6347
6347
  const [d, c] = G(a), [u, h] = G([]), f = Re(() => s || u.length === 0 ? e : e.filter((x) => u.every((p) => {
6348
- const k = x[p.column];
6348
+ const S = x[p.column];
6349
6349
  switch (p.operator) {
6350
6350
  case "equals":
6351
- return k == p.value;
6351
+ return S == p.value;
6352
6352
  case "contains":
6353
- return String(k).toLowerCase().includes(String(p.value).toLowerCase());
6353
+ return String(S).toLowerCase().includes(String(p.value).toLowerCase());
6354
6354
  case "startsWith":
6355
- return String(k).toLowerCase().startsWith(String(p.value).toLowerCase());
6355
+ return String(S).toLowerCase().startsWith(String(p.value).toLowerCase());
6356
6356
  case "greaterThan":
6357
- return k > p.value;
6357
+ return S > p.value;
6358
6358
  case "lessThan":
6359
- return k < p.value;
6359
+ return S < p.value;
6360
6360
  default:
6361
6361
  return !0;
6362
6362
  }
6363
- })), [e, u, s]), b = Re(() => s || !d.column || !d.direction ? f : [...f].sort((x, p) => {
6364
- const k = x[d.column], z = p[d.column];
6365
- return k < z ? d.direction === "asc" ? -1 : 1 : k > z ? d.direction === "asc" ? 1 : -1 : 0;
6366
- }), [f, d, s]), v = s ? l ?? e.length : b.length, m = io({
6367
- data: s ? e : b,
6363
+ })), [e, u, s]), v = Re(() => s || !d.column || !d.direction ? f : [...f].sort((x, p) => {
6364
+ const S = x[d.column], z = p[d.column];
6365
+ return S < z ? d.direction === "asc" ? -1 : 1 : S > z ? d.direction === "asc" ? 1 : -1 : 0;
6366
+ }), [f, d, s]), g = s ? l ?? e.length : v.length, m = io({
6367
+ data: s ? e : v,
6368
6368
  initialPageSize: r,
6369
6369
  resetOnDataChange: !0,
6370
- serverSideTotalItems: s ? v : void 0
6370
+ serverSideTotalItems: s ? g : void 0
6371
6371
  }), N = (x) => {
6372
6372
  c((p) => {
6373
6373
  if (p.column === x) {
@@ -6376,16 +6376,16 @@ function so({
6376
6376
  }
6377
6377
  return { column: x, direction: "asc" };
6378
6378
  });
6379
- }, C = (x, p, k = "contains") => {
6379
+ }, k = (x, p, S = "contains") => {
6380
6380
  h((z) => {
6381
6381
  const I = z.filter((T) => T.column !== x);
6382
- return p === "" || p === null || p === void 0 ? I : [...I, { column: x, operator: k, value: p }];
6382
+ return p === "" || p === null || p === void 0 ? I : [...I, { column: x, operator: S, value: p }];
6383
6383
  });
6384
6384
  }, y = (x) => {
6385
- h((p) => p.filter((k) => k.column !== x));
6385
+ h((p) => p.filter((S) => S.column !== x));
6386
6386
  }, w = (x) => d.column === x ? d.direction : null;
6387
6387
  return {
6388
- data: s ? e : n ? m.paginatedData : b,
6388
+ data: s ? e : n ? m.paginatedData : v,
6389
6389
  state: {
6390
6390
  sort: d,
6391
6391
  filters: u,
@@ -6393,7 +6393,7 @@ function so({
6393
6393
  },
6394
6394
  handlers: {
6395
6395
  onSort: N,
6396
- setFilter: C,
6396
+ setFilter: k,
6397
6397
  removeFilter: y,
6398
6398
  clearFilters: () => h([])
6399
6399
  },
@@ -6552,18 +6552,18 @@ function mo({
6552
6552
  onUpdate: n,
6553
6553
  onRemove: s
6554
6554
  }) {
6555
- var v;
6555
+ var g;
6556
6556
  const l = a.find((m) => m.value === e.field), d = wt.find((m) => m.value === e.operator), c = (l == null ? void 0 : l.multiSelect) || (d == null ? void 0 : d.multiSelect) || !1, u = !["is_empty", "is_not_empty"].includes(e.operator), h = Array.isArray(e.value) ? e.value : e.value ? [e.value] : [], f = (m) => {
6557
6557
  if (!c) {
6558
6558
  n({ value: m });
6559
6559
  return;
6560
6560
  }
6561
- const N = Array.isArray(e.value) ? e.value : [], C = N.includes(m) ? N.filter((y) => y !== m) : [...N, m];
6562
- n({ value: C });
6563
- }, b = (m) => {
6561
+ const N = Array.isArray(e.value) ? e.value : [], k = N.includes(m) ? N.filter((y) => y !== m) : [...N, m];
6562
+ n({ value: k });
6563
+ }, v = (m) => {
6564
6564
  if (!c) return;
6565
6565
  const N = Array.isArray(e.value) ? e.value : [];
6566
- n({ value: N.filter((C) => C !== m) });
6566
+ n({ value: N.filter((k) => k !== m) });
6567
6567
  };
6568
6568
  return /* @__PURE__ */ o("div", { className: "flex items-start gap-2 group", children: [
6569
6569
  /* @__PURE__ */ t("div", { className: "flex items-center h-9 px-2 text-sm text-muted-foreground", children: r === 0 ? "Onde" : "E" }),
@@ -6638,9 +6638,9 @@ function mo({
6638
6638
  h.length,
6639
6639
  " selecionado",
6640
6640
  h.length > 1 ? "s" : ""
6641
- ] }) : !c && e.value && ((v = l.options.find(
6641
+ ] }) : !c && e.value && ((g = l.options.find(
6642
6642
  (m) => m.value === e.value
6643
- )) == null ? void 0 : v.label) || "Selecionar valor"
6643
+ )) == null ? void 0 : g.label) || "Selecionar valor"
6644
6644
  }
6645
6645
  ) }),
6646
6646
  /* @__PURE__ */ t(Q, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ o("div", { className: "space-y-2", children: [
@@ -6715,8 +6715,8 @@ function mo({
6715
6715
  ] })
6716
6716
  ),
6717
6717
  c && h.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 flex-wrap", children: h.map((m) => {
6718
- var C, y;
6719
- const N = ((y = (C = l == null ? void 0 : l.options) == null ? void 0 : C.find((w) => w.value === m)) == null ? void 0 : y.label) || m;
6718
+ var k, y;
6719
+ const N = ((y = (k = l == null ? void 0 : l.options) == null ? void 0 : k.find((w) => w.value === m)) == null ? void 0 : y.label) || m;
6720
6720
  return /* @__PURE__ */ o(
6721
6721
  q,
6722
6722
  {
@@ -6728,7 +6728,7 @@ function mo({
6728
6728
  "button",
6729
6729
  {
6730
6730
  type: "button",
6731
- onClick: () => b(m),
6731
+ onClick: () => v(m),
6732
6732
  className: "ml-1 rounded-sm hover:bg-muted p-0.5 transition-colors",
6733
6733
  "aria-label": `Remover ${N}`,
6734
6734
  children: /* @__PURE__ */ t(Ae, { className: "h-3 w-3" })
@@ -6767,40 +6767,40 @@ function fo({
6767
6767
  initialPageSize: u = 10,
6768
6768
  toolbarActions: h,
6769
6769
  serverConfig: f,
6770
- className: b
6770
+ className: v
6771
6771
  }) {
6772
6772
  var Me, Te;
6773
- const v = !!f, {
6773
+ const g = !!f, {
6774
6774
  data: m,
6775
6775
  state: N,
6776
- handlers: C,
6776
+ handlers: k,
6777
6777
  getSortDirection: y
6778
6778
  } = so({
6779
6779
  data: e,
6780
6780
  initialPageSize: u,
6781
6781
  initialSort: { column: null, direction: null },
6782
- serverMode: v,
6782
+ serverMode: g,
6783
6783
  totalItems: f == null ? void 0 : f.totalItems
6784
- }), [w, P] = G(""), [x, p] = G(!1), [k, z] = G([]), I = n ? n[0] : ((Me = a.find((S) => S.key === "nome" || S.key === "name" || S.key === "title" || S.key === "titulo")) == null ? void 0 : Me.key) || ((Te = a[0]) == null ? void 0 : Te.key), T = xe(async (S) => {
6785
- P(S), v && (f != null && f.onFilterChange) ? await f.onFilterChange(k, S) : C.setFilter(I, S, "contains");
6786
- }, [v, f, k, C, I]), D = k.map((S) => {
6787
- const B = l.find((De) => De.value === S.field), H = S.operator === "is" ? "" : ` ${S.operator}`, Ge = Array.isArray(S.value) ? S.value.join(", ") : S.value;
6784
+ }), [w, P] = G(""), [x, p] = G(!1), [S, z] = G([]), I = n ? n[0] : ((Me = a.find((C) => C.key === "nome" || C.key === "name" || C.key === "title" || C.key === "titulo")) == null ? void 0 : Me.key) || ((Te = a[0]) == null ? void 0 : Te.key), T = xe(async (C) => {
6785
+ console.log("[DataTable] handleSearchChange called", { value: C, isServerMode: g, hasCallback: !!(f != null && f.onFilterChange) }), P(C), g && (f != null && f.onFilterChange) ? (console.log("[DataTable] Calling serverConfig.onFilterChange (server-side)"), await f.onFilterChange(S, C), console.log("[DataTable] serverConfig.onFilterChange completed")) : (console.log("[DataTable] Applying local filter (client-side)"), k.setFilter(I, C, "contains"));
6786
+ }, [g, f, S, k, I]), D = S.map((C) => {
6787
+ const B = l.find((De) => De.value === C.field), H = C.operator === "is" ? "" : ` ${C.operator}`, Ge = Array.isArray(C.value) ? C.value.join(", ") : C.value;
6788
6788
  return {
6789
- id: S.id,
6790
- label: (B == null ? void 0 : B.label) || S.field,
6789
+ id: C.id,
6790
+ label: (B == null ? void 0 : B.label) || C.field,
6791
6791
  value: `${H} ${Ge}`.trim(),
6792
6792
  onRemove: () => {
6793
- const De = k.filter((sa) => sa.id !== S.id);
6793
+ const De = S.filter((sa) => sa.id !== C.id);
6794
6794
  z(De), O(De);
6795
6795
  }
6796
6796
  };
6797
- }), O = xe(async (S) => {
6798
- v && (f != null && f.onFilterChange) ? await f.onFilterChange(S, w) : (C.clearFilters(), w && C.setFilter(I, w, "contains"), S.forEach((B) => {
6797
+ }), O = xe(async (C) => {
6798
+ console.log("[DataTable] applyAdvancedFilters called", { filterCount: C.length, isServerMode: g, hasCallback: !!(f != null && f.onFilterChange) }), g && (f != null && f.onFilterChange) ? (console.log("[DataTable] Calling serverConfig.onFilterChange with filters (server-side)"), await f.onFilterChange(C, w), console.log("[DataTable] serverConfig.onFilterChange completed")) : (console.log("[DataTable] Applying filters locally (client-side)"), k.clearFilters(), w && k.setFilter(I, w, "contains"), C.forEach((B) => {
6799
6799
  const H = ve(B.operator);
6800
- C.setFilter(B.field, B.value, H);
6800
+ k.setFilter(B.field, B.value, H);
6801
6801
  }));
6802
- }, [v, f, w, C, I]), ve = (S) => {
6803
- switch (S) {
6802
+ }, [g, f, w, k, I]), ve = (C) => {
6803
+ switch (C) {
6804
6804
  case "is":
6805
6805
  return "equals";
6806
6806
  case "contains":
@@ -6815,37 +6815,40 @@ function fo({
6815
6815
  return "contains";
6816
6816
  }
6817
6817
  }, qe = () => {
6818
- O(k), p(!1);
6818
+ O(S), p(!1);
6819
6819
  }, _ = () => {
6820
- z([]), C.clearFilters(), w && C.setFilter(I, w, "contains");
6821
- }, A = xe(async (S) => {
6822
- if (v && (f != null && f.onSortChange)) {
6820
+ z([]), k.clearFilters(), w && k.setFilter(I, w, "contains");
6821
+ }, A = xe(async (C) => {
6822
+ if (g && (f != null && f.onSortChange)) {
6823
6823
  const B = N.sort;
6824
6824
  let H = "asc";
6825
- B.column === S && (H = B.direction === "asc" ? "desc" : B.direction === "desc" ? null : "asc");
6825
+ B.column === C && (H = B.direction === "asc" ? "desc" : B.direction === "desc" ? null : "asc");
6826
6826
  const Ge = {
6827
- column: H ? S : null,
6827
+ column: H ? C : null,
6828
6828
  direction: H
6829
6829
  };
6830
6830
  await f.onSortChange(Ge);
6831
6831
  } else
6832
- C.onSort(S);
6833
- }, [v, f, N.sort, C]), W = xe(async (S) => {
6834
- v && (f != null && f.onPageChange) ? await f.onPageChange(S, N.pagination.pageSize) : N.pagination.onPageChange && N.pagination.onPageChange(S);
6835
- }, [v, f, N.pagination]), ne = xe(async (S) => {
6836
- v && (f != null && f.onPageChange) ? await f.onPageChange(1, S) : N.pagination.onPageSizeChange && N.pagination.onPageSizeChange(S);
6837
- }, [v, f, N.pagination]);
6838
- return /* @__PURE__ */ o("div", { className: i("space-y-4", b), children: [
6832
+ k.onSort(C);
6833
+ }, [g, f, N.sort, k]), $ = xe(async (C) => {
6834
+ g && (f != null && f.onPageChange) ? await f.onPageChange(C, N.pagination.pageSize) : N.pagination.onPageChange && N.pagination.onPageChange(C);
6835
+ }, [g, f, N.pagination]), ne = xe(async (C) => {
6836
+ g && (f != null && f.onPageChange) ? await f.onPageChange(1, C) : N.pagination.onPageSizeChange && N.pagination.onPageSizeChange(C);
6837
+ }, [g, f, N.pagination]);
6838
+ return /* @__PURE__ */ o("div", { className: i("space-y-4", v), children: [
6839
6839
  /* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-2", children: [
6840
6840
  /* @__PURE__ */ o("div", { className: "flex items-center gap-2 flex-1", children: [
6841
6841
  s && /* @__PURE__ */ o("div", { className: "relative max-w-sm flex-1", children: [
6842
- /* @__PURE__ */ t($a, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none" }),
6842
+ /* @__PURE__ */ t(Wa, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none" }),
6843
6843
  /* @__PURE__ */ t(
6844
6844
  ze,
6845
6845
  {
6846
6846
  placeholder: r,
6847
6847
  value: w,
6848
- onChange: (S) => T(S.target.value),
6848
+ onChange: (C) => T(C.target.value),
6849
+ onKeyDown: (C) => {
6850
+ C.key === "Enter" && C.preventDefault();
6851
+ },
6849
6852
  className: "pl-9"
6850
6853
  }
6851
6854
  )
@@ -6854,7 +6857,7 @@ function fo({
6854
6857
  /* @__PURE__ */ t(Y, { asChild: !0, children: /* @__PURE__ */ o(M, { variant: "outline", size: "sm", className: "gap-2", children: [
6855
6858
  /* @__PURE__ */ t(Dt, { className: "h-4 w-4" }),
6856
6859
  "Filtros",
6857
- k.length > 0 && /* @__PURE__ */ t("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: k.length })
6860
+ S.length > 0 && /* @__PURE__ */ t("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: S.length })
6858
6861
  ] }) }),
6859
6862
  /* @__PURE__ */ o(Q, { className: "w-[700px] p-0", align: "start", sideOffset: 8, children: [
6860
6863
  /* @__PURE__ */ o("div", { className: "p-6 border-b", children: [
@@ -6864,7 +6867,7 @@ function fo({
6864
6867
  /* @__PURE__ */ t("div", { className: "p-6", children: /* @__PURE__ */ t(
6865
6868
  uo,
6866
6869
  {
6867
- conditions: k,
6870
+ conditions: S,
6868
6871
  onConditionsChange: z,
6869
6872
  fields: l
6870
6873
  }
@@ -6893,7 +6896,7 @@ function fo({
6893
6896
  ] }),
6894
6897
  h && /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: h })
6895
6898
  ] }),
6896
- k.length > 0 && /* @__PURE__ */ t(
6899
+ S.length > 0 && /* @__PURE__ */ t(
6897
6900
  co,
6898
6901
  {
6899
6902
  activeFilters: D,
@@ -6901,29 +6904,29 @@ function fo({
6901
6904
  }
6902
6905
  ),
6903
6906
  /* @__PURE__ */ t("div", { className: "rounded-md border", children: /* @__PURE__ */ o(Qt, { children: [
6904
- /* @__PURE__ */ t(Jt, { children: /* @__PURE__ */ t(_e, { children: a.map((S) => /* @__PURE__ */ o(
6907
+ /* @__PURE__ */ t(Jt, { children: /* @__PURE__ */ t(_e, { children: a.map((C) => /* @__PURE__ */ o(
6905
6908
  ta,
6906
6909
  {
6907
6910
  className: i(
6908
- S.headerClassName,
6909
- S.sortable && "cursor-pointer select-none hover:bg-muted/50 transition-colors",
6910
- S.sortable && y(S.key) && "text-primary"
6911
+ C.headerClassName,
6912
+ C.sortable && "cursor-pointer select-none hover:bg-muted/50 transition-colors",
6913
+ C.sortable && y(C.key) && "text-primary"
6911
6914
  ),
6912
- style: { width: S.width },
6913
- onClick: () => S.sortable && A(S.key),
6914
- "aria-sort": S.sortable ? y(S.key) === "asc" ? "ascending" : y(S.key) === "desc" ? "descending" : "none" : void 0,
6915
+ style: { width: C.width },
6916
+ onClick: () => C.sortable && A(C.key),
6917
+ "aria-sort": C.sortable ? y(C.key) === "asc" ? "ascending" : y(C.key) === "desc" ? "descending" : "none" : void 0,
6915
6918
  children: [
6916
- S.header,
6917
- S.sortable && y(S.key) && /* @__PURE__ */ t(Wa, { className: "ml-2 h-4 w-4 inline" })
6919
+ C.header,
6920
+ C.sortable && y(C.key) && /* @__PURE__ */ t($a, { className: "ml-2 h-4 w-4 inline" })
6918
6921
  ]
6919
6922
  },
6920
- String(S.key)
6923
+ String(C.key)
6921
6924
  )) }) }),
6922
- /* @__PURE__ */ t(ea, { children: m.length > 0 ? m.map((S, B) => /* @__PURE__ */ t(_e, { children: a.map((H) => /* @__PURE__ */ t(
6925
+ /* @__PURE__ */ t(ea, { children: m.length > 0 ? m.map((C, B) => /* @__PURE__ */ t(_e, { children: a.map((H) => /* @__PURE__ */ t(
6923
6926
  tt,
6924
6927
  {
6925
6928
  className: i(H.className, H.align ? `text-${H.align}` : "text-left"),
6926
- children: H.render ? H.render(S[H.key], S, B) : S[H.key]
6929
+ children: H.render ? H.render(C[H.key], C, B) : C[H.key]
6927
6930
  },
6928
6931
  String(H.key)
6929
6932
  )) }, B)) : /* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(
@@ -6942,7 +6945,7 @@ function fo({
6942
6945
  totalPages: Math.ceil(N.pagination.totalItems / N.pagination.pageSize),
6943
6946
  pageSize: N.pagination.pageSize,
6944
6947
  totalItems: N.pagination.totalItems,
6945
- onPageChange: W,
6948
+ onPageChange: $,
6946
6949
  onPageSizeChange: ne,
6947
6950
  pageSizeOptions: c
6948
6951
  }
@@ -6961,16 +6964,16 @@ function po({
6961
6964
  enableFilters: u = d.length > 0,
6962
6965
  pageSizeOptions: h = [5, 10, 20, 50],
6963
6966
  initialPageSize: f = 10,
6964
- showCard: b = !0,
6965
- cardPadding: v = "p-6",
6967
+ showCard: v = !0,
6968
+ cardPadding: g = "p-6",
6966
6969
  toolbarActions: m,
6967
6970
  isLoading: N = !1,
6968
- emptyMessage: C = "Nenhum resultado encontrado.",
6971
+ emptyMessage: k = "Nenhum resultado encontrado.",
6969
6972
  className: y,
6970
6973
  serverConfig: w
6971
6974
  }, P) {
6972
6975
  if (N) {
6973
- const k = /* @__PURE__ */ o("div", { className: "space-y-4", children: [
6976
+ const S = /* @__PURE__ */ o("div", { className: "space-y-4", children: [
6974
6977
  /* @__PURE__ */ o("div", { className: "flex items-center justify-between gap-2", children: [
6975
6978
  /* @__PURE__ */ t(j, { className: "h-10 w-full max-w-sm" }),
6976
6979
  /* @__PURE__ */ o("div", { className: "flex gap-2", children: [
@@ -6991,18 +6994,18 @@ function po({
6991
6994
  ] })
6992
6995
  ] })
6993
6996
  ] });
6994
- return b ? /* @__PURE__ */ o(ue, { ref: P, className: i(v, y), children: [
6997
+ return v ? /* @__PURE__ */ o(ue, { ref: P, className: i(g, y), children: [
6995
6998
  (r || n) && /* @__PURE__ */ o("div", { className: "mb-6", children: [
6996
6999
  r && /* @__PURE__ */ t(j, { className: "h-6 w-48 mb-2" }),
6997
7000
  n && /* @__PURE__ */ t(j, { className: "h-4 w-full max-w-md" })
6998
7001
  ] }),
6999
- k
7002
+ S
7000
7003
  ] }) : /* @__PURE__ */ o("div", { ref: P, className: y, children: [
7001
7004
  (r || n) && /* @__PURE__ */ o("div", { className: "mb-6", children: [
7002
7005
  r && /* @__PURE__ */ t(j, { className: "h-6 w-48 mb-2" }),
7003
7006
  n && /* @__PURE__ */ t(j, { className: "h-4 w-full max-w-md" })
7004
7007
  ] }),
7005
- k
7008
+ S
7006
7009
  ] });
7007
7010
  }
7008
7011
  const x = /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-16 text-center", children: [
@@ -7027,7 +7030,7 @@ function po({
7027
7030
  }
7028
7031
  ) }),
7029
7032
  /* @__PURE__ */ t("h3", { className: "text-lg font-semibold mb-1", children: "Nenhum dado disponível" }),
7030
- /* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground max-w-sm", children: C })
7033
+ /* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground max-w-sm", children: k })
7031
7034
  ] }), p = e.length === 0 ? x : /* @__PURE__ */ t(
7032
7035
  fo,
7033
7036
  {
@@ -7044,7 +7047,7 @@ function po({
7044
7047
  serverConfig: w
7045
7048
  }
7046
7049
  );
7047
- return b ? /* @__PURE__ */ o(ue, { ref: P, className: i(v, y), children: [
7050
+ return v ? /* @__PURE__ */ o(ue, { ref: P, className: i(g, y), children: [
7048
7051
  (r || n) && /* @__PURE__ */ o("div", { className: "mb-6", children: [
7049
7052
  r && /* @__PURE__ */ t("h2", { className: "text-lg font-semibold", children: r }),
7050
7053
  n && /* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground mt-1", children: n })
@@ -7058,7 +7061,7 @@ function po({
7058
7061
  p
7059
7062
  ] });
7060
7063
  }
7061
- const ho = g.forwardRef(po);
7064
+ const ho = b.forwardRef(po);
7062
7065
  ho.displayName = "AdvancedDataTable";
7063
7066
  function jl({
7064
7067
  filters: e = [],
@@ -7078,7 +7081,7 @@ function jl({
7078
7081
  ")"
7079
7082
  ] })
7080
7083
  ] }) }),
7081
- /* @__PURE__ */ t($t, { align: "start", className: "w-[280px]", children: e.length === 0 ? /* @__PURE__ */ t("div", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: "No saved filters yet" }) : /* @__PURE__ */ o(te, { children: [
7084
+ /* @__PURE__ */ t(Wt, { align: "start", className: "w-[280px]", children: e.length === 0 ? /* @__PURE__ */ t("div", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: "No saved filters yet" }) : /* @__PURE__ */ o(te, { children: [
7082
7085
  l.length > 0 && /* @__PURE__ */ o(te, { children: [
7083
7086
  /* @__PURE__ */ t("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground", children: "Favorites" }),
7084
7087
  l.map((c) => /* @__PURE__ */ t(
@@ -7220,9 +7223,9 @@ function Hl({
7220
7223
  }
7221
7224
  );
7222
7225
  }
7223
- const ra = g.createContext(void 0);
7226
+ const ra = b.createContext(void 0);
7224
7227
  function na() {
7225
- const e = g.useContext(ra);
7228
+ const e = b.useContext(ra);
7226
7229
  if (!e)
7227
7230
  throw new Error("UnderlineTabs components must be used within UnderlineTabs");
7228
7231
  return e;
@@ -7234,7 +7237,7 @@ function Vl({
7234
7237
  children: n,
7235
7238
  className: s
7236
7239
  }) {
7237
- const [l, d] = g.useState(e || ""), c = a !== void 0 ? a : l, u = (h) => {
7240
+ const [l, d] = b.useState(e || ""), c = a !== void 0 ? a : l, u = (h) => {
7238
7241
  a === void 0 && d(h), r == null || r(h);
7239
7242
  };
7240
7243
  return /* @__PURE__ */ t(ra.Provider, { value: { value: c, onValueChange: u }, children: /* @__PURE__ */ t("div", { className: i("w-full", s), role: "tablist", children: n }) });
@@ -7269,7 +7272,7 @@ function Bl({
7269
7272
  }
7270
7273
  );
7271
7274
  }
7272
- function $l({
7275
+ function Wl({
7273
7276
  value: e,
7274
7277
  children: a,
7275
7278
  className: r
@@ -7285,7 +7288,7 @@ function $l({
7285
7288
  }
7286
7289
  );
7287
7290
  }
7288
- function Wl({ className: e, ...a }) {
7291
+ function $l({ className: e, ...a }) {
7289
7292
  return /* @__PURE__ */ t(
7290
7293
  "textarea",
7291
7294
  {
@@ -7333,7 +7336,7 @@ function ql({
7333
7336
  }
7334
7337
  );
7335
7338
  }
7336
- const ia = g.createContext({
7339
+ const ia = b.createContext({
7337
7340
  size: "default",
7338
7341
  variant: "default"
7339
7342
  });
@@ -7366,7 +7369,7 @@ function Zl({
7366
7369
  size: n,
7367
7370
  ...s
7368
7371
  }) {
7369
- const l = g.useContext(ia);
7372
+ const l = b.useContext(ia);
7370
7373
  return /* @__PURE__ */ t(
7371
7374
  It.Item,
7372
7375
  {
@@ -7582,7 +7585,7 @@ function Kl({
7582
7585
  issueDate: s(e.issueDate)
7583
7586
  }
7584
7587
  ),
7585
- /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(
7588
+ /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(
7586
7589
  pe,
7587
7590
  {
7588
7591
  columns: 2,
@@ -7605,12 +7608,12 @@ function Kl({
7605
7608
  ]
7606
7609
  }
7607
7610
  ) }),
7608
- /* @__PURE__ */ o($, { title: "Projeto", children: [
7611
+ /* @__PURE__ */ o(W, { title: "Projeto", children: [
7609
7612
  /* @__PURE__ */ t("h3", { className: "text-base font-semibold text-primary mb-3", children: e.projectTitle }),
7610
7613
  e.projectDescription && /* @__PURE__ */ t("p", { className: "text-sm text-gray-700 leading-relaxed", children: e.projectDescription })
7611
7614
  ] }),
7612
- e.objectives && e.objectives.length > 0 && /* @__PURE__ */ t($, { title: "Objetivos", children: /* @__PURE__ */ t("ul", { className: "list-disc list-inside space-y-2", children: e.objectives.map((l, d) => /* @__PURE__ */ t("li", { className: "text-sm text-gray-700", children: l }, d)) }) }),
7613
- /* @__PURE__ */ o($, { title: "Escopo e Investimento", children: [
7615
+ e.objectives && e.objectives.length > 0 && /* @__PURE__ */ t(W, { title: "Objetivos", children: /* @__PURE__ */ t("ul", { className: "list-disc list-inside space-y-2", children: e.objectives.map((l, d) => /* @__PURE__ */ t("li", { className: "text-sm text-gray-700", children: l }, d)) }) }),
7616
+ /* @__PURE__ */ o(W, { title: "Escopo e Investimento", children: [
7614
7617
  /* @__PURE__ */ t(
7615
7618
  jt,
7616
7619
  {
@@ -7662,7 +7665,7 @@ function Kl({
7662
7665
  ] })
7663
7666
  ] }) })
7664
7667
  ] }),
7665
- (e.paymentConditions || e.deliveryTime) && /* @__PURE__ */ t($, { title: "Condições Comerciais", children: /* @__PURE__ */ t(
7668
+ (e.paymentConditions || e.deliveryTime) && /* @__PURE__ */ t(W, { title: "Condições Comerciais", children: /* @__PURE__ */ t(
7666
7669
  pe,
7667
7670
  {
7668
7671
  columns: 1,
@@ -7677,7 +7680,7 @@ function Kl({
7677
7680
  ]
7678
7681
  }
7679
7682
  ) }),
7680
- e.notes && /* @__PURE__ */ t($, { title: "Observações", children: /* @__PURE__ */ t("p", { className: "text-sm text-gray-700 leading-relaxed", children: e.notes }) }),
7683
+ e.notes && /* @__PURE__ */ t(W, { title: "Observações", children: /* @__PURE__ */ t("p", { className: "text-sm text-gray-700 leading-relaxed", children: e.notes }) }),
7681
7684
  /* @__PURE__ */ t(
7682
7685
  Ft,
7683
7686
  {
@@ -7712,7 +7715,7 @@ export {
7712
7715
  ho as AdvancedDataTable,
7713
7716
  Qo as Alert,
7714
7717
  ei as AlertDescription,
7715
- $o as AlertDialog,
7718
+ Wo as AlertDialog,
7716
7719
  Xo as AlertDialogAction,
7717
7720
  Yo as AlertDialogCancel,
7718
7721
  qo as AlertDialogContent,
@@ -7720,7 +7723,7 @@ export {
7720
7723
  Zo as AlertDialogFooter,
7721
7724
  Go as AlertDialogHeader,
7722
7725
  Uo as AlertDialogTitle,
7723
- Wo as AlertDialogTrigger,
7726
+ $o as AlertDialogTrigger,
7724
7727
  Jo as AlertTitle,
7725
7728
  ti as AppLayout,
7726
7729
  ai as AspectRatio,
@@ -7760,10 +7763,10 @@ export {
7760
7763
  Si as CollapsibleTrigger,
7761
7764
  Ci as ColorPicker,
7762
7765
  Pn as Command,
7763
- $i as CommandDialog,
7766
+ Wi as CommandDialog,
7764
7767
  Gi as CommandEmpty,
7765
7768
  Zi as CommandGroup,
7766
- Wi as CommandInput,
7769
+ $i as CommandInput,
7767
7770
  Ki as CommandItem,
7768
7771
  qi as CommandList,
7769
7772
  Ui as CommandSeparator,
@@ -7807,7 +7810,7 @@ export {
7807
7810
  zn as DrawerTrigger,
7808
7811
  Ot as DropdownMenu,
7809
7812
  _i as DropdownMenuCheckboxItem,
7810
- $t as DropdownMenuContent,
7813
+ Wt as DropdownMenuContent,
7811
7814
  Ii as DropdownMenuGroup,
7812
7815
  Xe as DropdownMenuItem,
7813
7816
  ji as DropdownMenuLabel,
@@ -7861,10 +7864,10 @@ export {
7861
7864
  Hs as MenubarSeparator,
7862
7865
  Vs as MenubarShortcut,
7863
7866
  Os as MenubarSub,
7864
- $s as MenubarSubContent,
7867
+ Ws as MenubarSubContent,
7865
7868
  Bs as MenubarSubTrigger,
7866
7869
  As as MenubarTrigger,
7867
- Ws as NavigationMenu,
7870
+ $s as NavigationMenu,
7868
7871
  Us as NavigationMenuContent,
7869
7872
  Gs as NavigationMenuItem,
7870
7873
  Ks as NavigationMenuLink,
@@ -7883,7 +7886,7 @@ export {
7883
7886
  Rt as PrintFooter,
7884
7887
  At as PrintHeader,
7885
7888
  pe as PrintInfoGrid,
7886
- $ as PrintSection,
7889
+ W as PrintSection,
7887
7890
  Ft as PrintSignature,
7888
7891
  jt as PrintTable,
7889
7892
  hn as Progress,
@@ -7953,17 +7956,17 @@ export {
7953
7956
  Hl as TabsContent,
7954
7957
  El as TabsList,
7955
7958
  Ll as TabsTrigger,
7956
- Wl as Textarea,
7959
+ $l as Textarea,
7957
7960
  Fe as TimePicker,
7958
7961
  ql as Toggle,
7959
7962
  Gl as ToggleGroup,
7960
7963
  Zl as ToggleGroupItem,
7961
- Wn as Tooltip,
7964
+ $n as Tooltip,
7962
7965
  Gn as TooltipContent,
7963
7966
  Xt as TooltipProvider,
7964
7967
  qn as TooltipTrigger,
7965
7968
  Vl as UnderlineTabs,
7966
- $l as UnderlineTabsContent,
7969
+ Wl as UnderlineTabsContent,
7967
7970
  Ol as UnderlineTabsList,
7968
7971
  Bl as UnderlineTabsTrigger,
7969
7972
  fr as badgeVariants,
@@ -7975,9 +7978,9 @@ export {
7975
7978
  Rn as navigationMenuTriggerStyle,
7976
7979
  Ql as toast,
7977
7980
  oa as toggleVariants,
7978
- $e as useFormField,
7979
- $n as useIsMobile,
7981
+ We as useFormField,
7982
+ Wn as useIsMobile,
7980
7983
  tn as usePrintContract,
7981
- We as useSidebar
7984
+ $e as useSidebar
7982
7985
  };
7983
7986
  //# sourceMappingURL=index.js.map