@selectwin/kit 0.1.100 → 0.1.102

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
@@ -5006,23 +5006,23 @@ function Xr(e) {
5006
5006
  function Zr({ phase: e, nextAttemptAt: t, waitMs: n, attempt: r = 0, mark: i, action: a, waitingLabel: s = (e) => /* @__PURE__ */ h(p, { children: ["Nova tentativa em ", /* @__PURE__ */ h("span", {
5007
5007
  className: "select-retry__num",
5008
5008
  children: [e, "s"]
5009
- })] }), tryingLabel: c = "Reconectando…", doneLabel: l = "Conexão restabelecida", attemptLabel: u = (e) => e === 1 ? "1 tentativa sem resposta" : `${e} tentativas sem resposta`, className: f }) {
5010
- let [g, _] = d(() => Xr(t));
5009
+ })] }), tryingLabel: c = "Reconectando…", doneLabel: l = "Conexão restabelecida", attemptLabel: u = (e) => e === 1 ? "1 tentativa sem resposta" : `${e} tentativas sem resposta`, firstLabel: f = "Primeira tentativa a caminho", doneCaption: g = "Atualizando seus dados", className: _ }) {
5010
+ let [v, y] = d(() => Xr(t));
5011
5011
  o(() => {
5012
- if (_(Xr(t)), e !== "waiting" || !t) return;
5013
- let n = setInterval(() => _(Xr(t)), 250);
5012
+ if (y(Xr(t)), e !== "waiting" || !t) return;
5013
+ let n = setInterval(() => y(Xr(t)), 250);
5014
5014
  return () => clearInterval(n);
5015
5015
  }, [e, t]);
5016
- let v;
5016
+ let b;
5017
5017
  if (e === "waiting" && t && n) {
5018
5018
  let e = Math.max(0, t - Date.now());
5019
- v = {
5019
+ b = {
5020
5020
  "--select-retry-from": String(Math.min(1, e / n)),
5021
5021
  animationDuration: `${e}ms`
5022
5022
  };
5023
5023
  }
5024
5024
  return /* @__PURE__ */ h("div", {
5025
- className: `select-retry select-retry--${e}${f ? " " + f : ""}`,
5025
+ className: `select-retry select-retry--${e}${_ ? " " + _ : ""}`,
5026
5026
  children: [
5027
5027
  /* @__PURE__ */ h("div", {
5028
5028
  className: "select-retry__line",
@@ -5048,7 +5048,7 @@ function Zr({ phase: e, nextAttemptAt: t, waitMs: n, attempt: r = 0, mark: i, ac
5048
5048
  }),
5049
5049
  /* @__PURE__ */ m("span", {
5050
5050
  className: "select-retry__label",
5051
- children: e === "waiting" ? s(g) : e === "trying" ? c : l
5051
+ children: e === "waiting" ? s(v) : e === "trying" ? c : l
5052
5052
  }),
5053
5053
  e === "waiting" && a != null && /* @__PURE__ */ m("span", {
5054
5054
  className: "select-retry__action",
@@ -5061,12 +5061,12 @@ function Zr({ phase: e, nextAttemptAt: t, waitMs: n, attempt: r = 0, mark: i, ac
5061
5061
  "aria-hidden": "true",
5062
5062
  children: /* @__PURE__ */ m("div", {
5063
5063
  className: "select-retry__fill",
5064
- style: v
5064
+ style: b
5065
5065
  }, t ?? e)
5066
5066
  }),
5067
- r > 0 && e !== "done" && /* @__PURE__ */ m("p", {
5067
+ /* @__PURE__ */ m("p", {
5068
5068
  className: "select-retry__caption",
5069
- children: u(r)
5069
+ children: e === "done" ? g : r > 0 ? u(r) : f
5070
5070
  })
5071
5071
  ]
5072
5072
  });
@@ -5692,17 +5692,37 @@ function Di({ title: e, description: t, action: n, filters: r, tools: i }) {
5692
5692
  hasTitleRow: s || n != null || o != null
5693
5693
  };
5694
5694
  }
5695
- function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a }) {
5696
- let { hasFilters: o, inlineTools: s, hasIdentity: c, hasTitleRow: l } = Di({
5695
+ function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a, toggle: o }) {
5696
+ let { hasFilters: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } = Di({
5697
5697
  title: e,
5698
5698
  description: n,
5699
5699
  action: r,
5700
5700
  filters: i,
5701
5701
  tools: a
5702
5702
  });
5703
- return /* @__PURE__ */ h(p, { children: [l && /* @__PURE__ */ h("div", {
5703
+ return /* @__PURE__ */ h(p, { children: [u && /* @__PURE__ */ h("div", {
5704
5704
  className: "select-table__title",
5705
- children: [c && /* @__PURE__ */ h("div", {
5705
+ children: [o ? /* @__PURE__ */ h("button", {
5706
+ type: "button",
5707
+ className: "select-table__toggle",
5708
+ "aria-expanded": o.open,
5709
+ "aria-controls": o.controls,
5710
+ onClick: o.onToggle,
5711
+ children: [/* @__PURE__ */ h("span", {
5712
+ className: "select-table__heading",
5713
+ children: [e != null && /* @__PURE__ */ m("span", {
5714
+ className: "select-table__titletext",
5715
+ children: e
5716
+ }), n != null && /* @__PURE__ */ m("span", {
5717
+ className: "select-table__desc",
5718
+ children: n
5719
+ })]
5720
+ }), /* @__PURE__ */ m("span", {
5721
+ className: "select-table__chevron",
5722
+ "aria-hidden": "true",
5723
+ children: /* @__PURE__ */ m(W, {})
5724
+ })]
5725
+ }) : l && /* @__PURE__ */ h("div", {
5706
5726
  className: "select-table__heading",
5707
5727
  children: [e != null && /* @__PURE__ */ h("h3", {
5708
5728
  className: `select-table__titletext${t == null ? "" : " select-table__titletext--help"}`,
@@ -5711,11 +5731,11 @@ function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a
5711
5731
  className: "select-table__desc",
5712
5732
  children: n
5713
5733
  })]
5714
- }), (r != null || s != null) && /* @__PURE__ */ h("div", {
5734
+ }), (r != null || c != null) && /* @__PURE__ */ h("div", {
5715
5735
  className: "select-table__actions",
5716
- children: [r, s]
5736
+ children: [r, c]
5717
5737
  })]
5718
- }), o && /* @__PURE__ */ h("div", {
5738
+ }), s && /* @__PURE__ */ h("div", {
5719
5739
  className: "select-table__toolbar",
5720
5740
  children: [/* @__PURE__ */ m("div", {
5721
5741
  className: "select-table__filters",
@@ -5808,118 +5828,144 @@ function Pi(e) {
5808
5828
  let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
5809
5829
  return `${Math.round(e / t * 1e3) / 1e3}rem`;
5810
5830
  }
5811
- var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, help: s, description: l, action: d, filters: f, tools: p, onColumnResize: g, onColumnResizeReset: _, className: v, ...y }, b) {
5812
- let x = e.count(n) === 0, S = x && !!r, { hasFilters: C, hasTitleRow: w } = Di({
5831
+ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, help: l, description: f, action: p, filters: g, tools: _, onColumnResize: v, onColumnResizeReset: y, collapsible: b = !1, defaultOpen: x = !0, className: S, ...C }, w) {
5832
+ let [T, E] = d(x), D = s(), O = b && o != null ? {
5833
+ open: T,
5834
+ onToggle: () => E((e) => !e),
5835
+ controls: D
5836
+ } : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } = Di({
5813
5837
  title: o,
5814
- description: l,
5815
- action: d,
5816
- filters: f,
5817
- tools: p
5818
- }), T = S && !w && !C, E = Qt({
5838
+ description: f,
5839
+ action: p,
5840
+ filters: g,
5841
+ tools: _
5842
+ }), N = A && !M && !j, P = Qt({
5819
5843
  selector: ".select-table__row",
5820
5844
  y: 8,
5821
5845
  duration: .45,
5822
5846
  stagger: .05,
5823
5847
  scroll: !0
5824
- }), D = t.length ? t.map((e) => e.width ?? `minmax(${e.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${e.grow ?? 1}fr)`).join(" ") : "1fr", O = u(null), k = i((e) => {
5825
- O.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
5826
- }, [b]);
5848
+ }), F = t.length ? t.map((e) => e.width ?? `minmax(${e.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${e.grow ?? 1}fr)`).join(" ") : "1fr", I = u(null), L = i((e) => {
5849
+ I.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
5850
+ }, [w]);
5827
5851
  c(() => {
5828
5852
  var e;
5829
- (e = O.current) == null || e.style.setProperty("--select-table-cols", D);
5830
- }, [D]);
5831
- let A = (e, n) => {
5832
- let r = O.current;
5853
+ (e = I.current) == null || e.style.setProperty("--select-table-cols", F);
5854
+ }, [F]);
5855
+ let ee = (e, n) => {
5856
+ let r = I.current;
5833
5857
  if (!r) return;
5834
5858
  let i = t.map((t, r) => r === e ? `${n}px` : t.width ?? `minmax(${t.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${t.grow ?? 1}fr)`);
5835
5859
  r.style.setProperty("--select-table-cols", i.join(" "));
5836
- }, j = (e) => (t) => {
5860
+ }, R = (e) => (t) => {
5837
5861
  var n;
5838
- if (!g || t.button !== 0) return;
5862
+ if (!v || t.button !== 0) return;
5839
5863
  let r = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
5840
5864
  if (!r) return;
5841
5865
  let i = t.clientX, a = r.width;
5842
5866
  t.preventDefault(), t.stopPropagation(), t.currentTarget.setPointerCapture(t.pointerId);
5843
- let o = O.current;
5867
+ let o = I.current;
5844
5868
  o == null || o.classList.add("select-table--resizing");
5845
5869
  let s = a, c = (t) => {
5846
- s = Math.min(Mi, Math.max(ji, a + (t.clientX - i))), A(e, s);
5870
+ s = Math.min(Mi, Math.max(ji, a + (t.clientX - i))), ee(e, s);
5847
5871
  }, l = () => {
5848
- window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), g(e, Pi(s));
5872
+ window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e, Pi(s));
5849
5873
  };
5850
5874
  window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
5851
- }, M = (e) => (t) => {
5875
+ }, te = (e) => (t) => {
5852
5876
  var n;
5853
- if (!g) return;
5877
+ if (!v) return;
5854
5878
  let r = t.key === "ArrowRight" ? 1 : t.key === "ArrowLeft" ? -1 : 0;
5855
5879
  if (r === 0) return;
5856
5880
  let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
5857
5881
  if (!i) return;
5858
5882
  t.preventDefault();
5859
5883
  let a = Ni * (t.shiftKey ? 10 : 1), o = Math.min(Mi, Math.max(ji, i.width + r * a));
5860
- A(e, o), g(e, Pi(o));
5884
+ ee(e, o), v(e, Pi(o));
5861
5885
  };
5862
5886
  return /* @__PURE__ */ h("div", {
5863
- ref: k,
5864
- ...y,
5865
- className: `select-table${T ? " select-table--empty" : ""}${v ? " " + v : ""}`,
5866
- style: { "--select-table-cols": D },
5867
- children: [
5868
- /* @__PURE__ */ m(Oi, {
5869
- title: o,
5870
- help: s,
5871
- description: l,
5872
- action: d,
5873
- filters: f,
5874
- tools: p
5875
- }),
5876
- /* @__PURE__ */ m("div", {
5877
- className: `select-table__scroll${S ? " select-table__scroll--empty" : ""}`,
5878
- children: /* @__PURE__ */ h("div", {
5879
- className: "select-table__scrollinner",
5880
- children: [!S && /* @__PURE__ */ m("div", {
5881
- className: "select-table__head",
5882
- role: "row",
5883
- children: t.map((e, n) => /* @__PURE__ */ h("div", {
5884
- role: "columnheader",
5885
- "aria-sort": e.sortable ? e.sortDir === "asc" ? "ascending" : e.sortDir === "desc" ? "descending" : "none" : void 0,
5886
- className: `select-table__th select-table__cell--${e.align ?? "start"}`,
5887
- children: [e.sortable ? /* @__PURE__ */ h("button", {
5888
- type: "button",
5889
- className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
5890
- onClick: e.onSort,
5891
- children: [e.label, /* @__PURE__ */ m(W, {})]
5892
- }) : e.label, g && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ m("span", {
5893
- role: "separator",
5894
- "aria-orientation": "vertical",
5895
- "aria-label": "Ajustar a largura da coluna",
5896
- tabIndex: 0,
5897
- className: "select-table__resizer",
5898
- onPointerDown: j(n),
5899
- onKeyDown: M(n),
5900
- onDoubleClick: _ ? () => _(n) : void 0
5901
- })]
5902
- }, n))
5903
- }), /* @__PURE__ */ m("div", {
5904
- className: "select-table__body",
5905
- children: /* @__PURE__ */ m("div", {
5906
- className: "select-table__rows",
5907
- ref: E,
5908
- children: x && r ? /* @__PURE__ */ m("div", {
5909
- className: "select-table__empty",
5910
- children: r
5911
- }) : n
5912
- })
5913
- })]
5887
+ ref: L,
5888
+ ...C,
5889
+ className: `select-table${N ? " select-table--empty" : ""}${O ? ` select-table--collapsible${T ? " is-open" : ""}` : ""}${S ? " " + S : ""}`,
5890
+ style: { "--select-table-cols": F },
5891
+ children: [/* @__PURE__ */ m(Oi, {
5892
+ title: o,
5893
+ help: O ? void 0 : l,
5894
+ description: f,
5895
+ action: p,
5896
+ filters: O ? void 0 : g,
5897
+ tools: O ? void 0 : _,
5898
+ toggle: O
5899
+ }), /* @__PURE__ */ h(Ii, {
5900
+ enabled: !!O,
5901
+ open: T,
5902
+ id: D,
5903
+ children: [
5904
+ O && (g != null || _ != null) ? /* @__PURE__ */ m(Oi, {
5905
+ filters: g,
5906
+ tools: _
5907
+ }) : null,
5908
+ /* @__PURE__ */ m("div", {
5909
+ className: `select-table__scroll${A ? " select-table__scroll--empty" : ""}`,
5910
+ children: /* @__PURE__ */ h("div", {
5911
+ className: "select-table__scrollinner",
5912
+ children: [!A && /* @__PURE__ */ m("div", {
5913
+ className: "select-table__head",
5914
+ role: "row",
5915
+ children: t.map((e, n) => /* @__PURE__ */ h("div", {
5916
+ role: "columnheader",
5917
+ "aria-sort": e.sortable ? e.sortDir === "asc" ? "ascending" : e.sortDir === "desc" ? "descending" : "none" : void 0,
5918
+ className: `select-table__th select-table__cell--${e.align ?? "start"}`,
5919
+ children: [e.sortable ? /* @__PURE__ */ h("button", {
5920
+ type: "button",
5921
+ className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
5922
+ onClick: e.onSort,
5923
+ children: [e.label, /* @__PURE__ */ m(W, {})]
5924
+ }) : e.label, v && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ m("span", {
5925
+ role: "separator",
5926
+ "aria-orientation": "vertical",
5927
+ "aria-label": "Ajustar a largura da coluna",
5928
+ tabIndex: 0,
5929
+ className: "select-table__resizer",
5930
+ onPointerDown: R(n),
5931
+ onKeyDown: te(n),
5932
+ onDoubleClick: y ? () => y(n) : void 0
5933
+ })]
5934
+ }, n))
5935
+ }), /* @__PURE__ */ m("div", {
5936
+ className: "select-table__body",
5937
+ children: /* @__PURE__ */ m("div", {
5938
+ className: "select-table__rows",
5939
+ ref: P,
5940
+ children: k && r ? /* @__PURE__ */ m("div", {
5941
+ className: "select-table__empty",
5942
+ children: r
5943
+ }) : n
5944
+ })
5945
+ })]
5946
+ })
5947
+ }),
5948
+ a && /* @__PURE__ */ m("div", {
5949
+ className: "select-table__footer",
5950
+ children: a
5914
5951
  })
5915
- }),
5916
- a && /* @__PURE__ */ m("div", {
5917
- className: "select-table__footer",
5918
- children: a
5919
- })
5920
- ]
5952
+ ]
5953
+ })]
5921
5954
  });
5922
- }), Ii = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
5955
+ });
5956
+ function Ii({ enabled: e, open: t, id: n, children: r }) {
5957
+ return e ? /* @__PURE__ */ m("div", {
5958
+ className: "select-table__collapse",
5959
+ id: n,
5960
+ "data-open": t,
5961
+ "aria-hidden": !t,
5962
+ children: /* @__PURE__ */ m("div", {
5963
+ className: "select-table__collapsewrap",
5964
+ children: r
5965
+ })
5966
+ }) : /* @__PURE__ */ m(p, { children: r });
5967
+ }
5968
+ var Li = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
5923
5969
  return /* @__PURE__ */ h("span", {
5924
5970
  ref: a,
5925
5971
  ...i,
@@ -5939,27 +5985,33 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
5939
5985
  })]
5940
5986
  });
5941
5987
  });
5942
- function Li({ children: e, onClick: t }) {
5988
+ function Ri({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
5989
+ let i = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${n ? " is-expanded" : ""}`;
5943
5990
  return t ? /* @__PURE__ */ m("button", {
5944
5991
  type: "button",
5945
- className: "select-table__row select-table__row--clickable",
5992
+ className: i,
5946
5993
  onClick: t,
5994
+ "aria-expanded": n,
5947
5995
  children: e
5948
5996
  }) : /* @__PURE__ */ m("div", {
5949
- className: "select-table__row",
5997
+ className: i,
5950
5998
  role: "row",
5951
5999
  children: e
5952
6000
  });
5953
6001
  }
5954
- var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i) {
5955
- return /* @__PURE__ */ m("div", {
5956
- ref: i,
5957
- ...r,
6002
+ var zi = r(function({ children: e, align: t = "start", disclosure: n, className: r, ...i }, a) {
6003
+ return /* @__PURE__ */ h("div", {
6004
+ ref: a,
6005
+ ...i,
5958
6006
  role: "cell",
5959
- className: `select-table__td select-table__cell--${t}${n ? " " + n : ""}`,
5960
- children: e
6007
+ className: `select-table__td select-table__cell--${t}${r ? " " + r : ""}`,
6008
+ children: [n ? /* @__PURE__ */ m("span", {
6009
+ className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
6010
+ "aria-hidden": "true",
6011
+ children: n !== "none" && /* @__PURE__ */ m(ae, {})
6012
+ }) : null, e]
5961
6013
  });
5962
- }), zi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
6014
+ }), Bi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
5963
6015
  return /* @__PURE__ */ h("div", {
5964
6016
  ref: o,
5965
6017
  ...a,
@@ -5983,7 +6035,7 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
5983
6035
  })
5984
6036
  ]
5985
6037
  });
5986
- }), Bi = r(function({ children: e, className: t, ...n }, r) {
6038
+ }), Vi = r(function({ children: e, className: t, ...n }, r) {
5987
6039
  return /* @__PURE__ */ m("div", {
5988
6040
  ref: r,
5989
6041
  ...n,
@@ -5991,7 +6043,7 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
5991
6043
  role: "menu",
5992
6044
  children: e
5993
6045
  });
5994
- }), Vi = r(function({ children: e, icon: t, trailing: n, onClick: r, active: i = !1, tone: a = "default", className: o, ...s }, c) {
6046
+ }), Hi = r(function({ children: e, icon: t, trailing: n, onClick: r, active: i = !1, tone: a = "default", className: o, ...s }, c) {
5995
6047
  return /* @__PURE__ */ h("button", {
5996
6048
  ref: c,
5997
6049
  ...s,
@@ -6014,7 +6066,7 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
6014
6066
  })
6015
6067
  ]
6016
6068
  });
6017
- }), Hi = r(function({ children: e, href: t, icon: n, trailing: r, external: i, tone: a = "default", className: o, ...s }, c) {
6069
+ }), Ui = r(function({ children: e, href: t, icon: n, trailing: r, external: i, tone: a = "default", className: o, ...s }, c) {
6018
6070
  let l = qr(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(q, {}) : void 0);
6019
6071
  return /* @__PURE__ */ h("a", {
6020
6072
  ref: c,
@@ -6040,19 +6092,19 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
6040
6092
  ]
6041
6093
  });
6042
6094
  });
6043
- function Ui({ children: e }) {
6095
+ function Wi({ children: e }) {
6044
6096
  return /* @__PURE__ */ m("div", {
6045
6097
  className: "select-menu__heading",
6046
6098
  children: e
6047
6099
  });
6048
6100
  }
6049
- function Wi() {
6101
+ function Gi() {
6050
6102
  return /* @__PURE__ */ m("div", {
6051
6103
  className: "select-menu__divider",
6052
6104
  role: "separator"
6053
6105
  });
6054
6106
  }
6055
- var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
6107
+ var Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
6056
6108
  return /* @__PURE__ */ h("button", {
6057
6109
  ref: a,
6058
6110
  ...i,
@@ -6067,7 +6119,7 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
6067
6119
  children: /* @__PURE__ */ m(W, {})
6068
6120
  })]
6069
6121
  });
6070
- }), Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
6122
+ }), qi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
6071
6123
  return /* @__PURE__ */ h("button", {
6072
6124
  ref: a,
6073
6125
  ...i,
@@ -6080,7 +6132,7 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
6080
6132
  children: /* @__PURE__ */ m(Me, {})
6081
6133
  }), e]
6082
6134
  });
6083
- }), qi = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
6135
+ }), Ji = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
6084
6136
  let [s, c] = d(!1), l = qr(n), u = () => {
6085
6137
  navigator.clipboard.writeText(t).then(() => {
6086
6138
  c(!0), setTimeout(() => c(!1), 1200), r == null || r(t);
@@ -6120,7 +6172,7 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
6120
6172
  });
6121
6173
  //#endregion
6122
6174
  //#region src/SelectCopyableId.tsx
6123
- function Ji({ value: e, children: t, truncate: n, label: r = "Copiar id", fallback: i = "—", to: a, reveal: o = "hover" }) {
6175
+ function Yi({ value: e, children: t, truncate: n, label: r = "Copiar id", fallback: i = "—", to: a, reveal: o = "hover" }) {
6124
6176
  let [s, c] = d(!1);
6125
6177
  if (!e) return /* @__PURE__ */ m(p, { children: i });
6126
6178
  let l = t ?? (n ? e.slice(0, n) : e), u = qr(a);
@@ -6152,7 +6204,7 @@ function Ji({ value: e, children: t, truncate: n, label: r = "Copiar id", fallba
6152
6204
  }
6153
6205
  //#endregion
6154
6206
  //#region src/SelectCollapsible.tsx
6155
- var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
6207
+ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
6156
6208
  let [s, c] = d(n);
6157
6209
  return /* @__PURE__ */ h("div", {
6158
6210
  ref: o,
@@ -6183,7 +6235,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
6183
6235
  })
6184
6236
  })]
6185
6237
  });
6186
- }), Xi = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
6238
+ }), Zi = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
6187
6239
  return /* @__PURE__ */ h("div", {
6188
6240
  ref: s,
6189
6241
  ...o,
@@ -6218,7 +6270,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
6218
6270
  })
6219
6271
  ]
6220
6272
  });
6221
- }), Zi = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
6273
+ }), Qi = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
6222
6274
  return /* @__PURE__ */ h("button", {
6223
6275
  ref: l,
6224
6276
  ...c,
@@ -6255,7 +6307,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
6255
6307
  })
6256
6308
  ]
6257
6309
  });
6258
- }), Qi = r(function({ label: e, onClick: t, className: n, ...r }, i) {
6310
+ }), $i = r(function({ label: e, onClick: t, className: n, ...r }, i) {
6259
6311
  return /* @__PURE__ */ h("button", {
6260
6312
  ref: i,
6261
6313
  ...r,
@@ -6271,7 +6323,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
6271
6323
  children: e
6272
6324
  })]
6273
6325
  });
6274
- }), $i = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
6326
+ }), ea = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
6275
6327
  return /* @__PURE__ */ h("button", {
6276
6328
  ref: o,
6277
6329
  ...a,
@@ -6296,8 +6348,8 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
6296
6348
  })
6297
6349
  ]
6298
6350
  });
6299
- }), ea = 220;
6300
- function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a, aside: s, size: c = "md", showClose: l = !0, noise: u = !0, dividedHeader: f = !1, backdrop: _ = "dim", theme: v = "light" }) {
6351
+ }), ta = 220;
6352
+ function na({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a, aside: s, size: c = "md", showClose: l = !0, noise: u = !0, dividedHeader: f = !1, backdrop: _ = "dim", theme: v = "light" }) {
6301
6353
  let [y, b] = d(e), [x, S] = d(!1);
6302
6354
  if (o(() => {
6303
6355
  if (e) b(!0), S(!1);
@@ -6305,7 +6357,7 @@ function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
6305
6357
  S(!0);
6306
6358
  let e = setTimeout(() => {
6307
6359
  b(!1), S(!1);
6308
- }, ea);
6360
+ }, ta);
6309
6361
  return () => clearTimeout(e);
6310
6362
  }
6311
6363
  }, [e, y]), o(() => {
@@ -6383,7 +6435,7 @@ function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
6383
6435
  }
6384
6436
  //#endregion
6385
6437
  //#region src/SelectRowActions.tsx
6386
- function na({ actions: e, label: t = "Ações" }) {
6438
+ function ra({ actions: e, label: t = "Ações" }) {
6387
6439
  let [n, r] = d(!1);
6388
6440
  return /* @__PURE__ */ m(on, {
6389
6441
  active: n,
@@ -6405,8 +6457,8 @@ function na({ actions: e, label: t = "Ações" }) {
6405
6457
  }
6406
6458
  //#endregion
6407
6459
  //#region src/SelectConfirmModal.tsx
6408
- function ra({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
6409
- return /* @__PURE__ */ m(ta, {
6460
+ function ia({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
6461
+ return /* @__PURE__ */ m(na, {
6410
6462
  open: e,
6411
6463
  onClose: t,
6412
6464
  title: r,
@@ -6435,8 +6487,8 @@ function ra({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
6435
6487
  }
6436
6488
  //#endregion
6437
6489
  //#region src/SelectFormModal.tsx
6438
- function ia({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
6439
- return /* @__PURE__ */ h(ta, {
6490
+ function aa({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
6491
+ return /* @__PURE__ */ h(na, {
6440
6492
  open: e,
6441
6493
  onClose: t,
6442
6494
  title: r,
@@ -6478,30 +6530,30 @@ function ia({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
6478
6530
  }
6479
6531
  //#endregion
6480
6532
  //#region src/SelectDataTable.tsx
6481
- var aa = "9.5rem", oa = {
6533
+ var oa = "9.5rem", sa = {
6482
6534
  minWidth: "9.5rem",
6483
6535
  grow: 2
6484
- }, sa = "select-datatable:hidden-cols:";
6485
- function ca(e) {
6536
+ }, ca = "select-datatable:hidden-cols:";
6537
+ function la(e) {
6486
6538
  try {
6487
- let t = localStorage.getItem(sa + e), n = t ? JSON.parse(t) : null;
6539
+ let t = localStorage.getItem(ca + e), n = t ? JSON.parse(t) : null;
6488
6540
  return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
6489
6541
  } catch {
6490
6542
  return [];
6491
6543
  }
6492
6544
  }
6493
- function la(e, t) {
6545
+ function ua(e, t) {
6494
6546
  try {
6495
- t.length === 0 ? localStorage.removeItem(sa + e) : localStorage.setItem(sa + e, JSON.stringify(t));
6547
+ t.length === 0 ? localStorage.removeItem(ca + e) : localStorage.setItem(ca + e, JSON.stringify(t));
6496
6548
  } catch {}
6497
6549
  }
6498
- function ua(e) {
6550
+ function da(e) {
6499
6551
  return e.hideable ?? !!e.title;
6500
6552
  }
6501
- var da = "select-datatable:col-widths:";
6502
- function fa(e) {
6553
+ var fa = "select-datatable:col-widths:";
6554
+ function pa(e) {
6503
6555
  try {
6504
- let t = localStorage.getItem(da + e), n = t ? JSON.parse(t) : null;
6556
+ let t = localStorage.getItem(fa + e), n = t ? JSON.parse(t) : null;
6505
6557
  if (!n || typeof n != "object" || Array.isArray(n)) return {};
6506
6558
  let r = {};
6507
6559
  for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
@@ -6510,16 +6562,16 @@ function fa(e) {
6510
6562
  return {};
6511
6563
  }
6512
6564
  }
6513
- function pa(e, t) {
6565
+ function ma(e, t) {
6514
6566
  try {
6515
- Object.keys(t).length === 0 ? localStorage.removeItem(da + e) : localStorage.setItem(da + e, JSON.stringify(t));
6567
+ Object.keys(t).length === 0 ? localStorage.removeItem(fa + e) : localStorage.setItem(fa + e, JSON.stringify(t));
6516
6568
  } catch {}
6517
6569
  }
6518
- var ma = "select-datatable:page-size:";
6519
- function ha(e, t, n) {
6570
+ var ha = "select-datatable:page-size:";
6571
+ function ga(e, t, n) {
6520
6572
  let [r, i] = d(() => {
6521
6573
  try {
6522
- let r = Number(localStorage.getItem(ma + e));
6574
+ let r = Number(localStorage.getItem(ha + e));
6523
6575
  return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
6524
6576
  } catch {
6525
6577
  return t;
@@ -6528,22 +6580,22 @@ function ha(e, t, n) {
6528
6580
  return [r, (t) => {
6529
6581
  i(t);
6530
6582
  try {
6531
- localStorage.setItem(ma + e, String(t));
6583
+ localStorage.setItem(ha + e, String(t));
6532
6584
  } catch {}
6533
6585
  }];
6534
6586
  }
6535
- function ga(e, t, n) {
6587
+ function _a(e, t, n) {
6536
6588
  let r = e == null || e === "", i = t == null || t === "";
6537
6589
  return r || i ? r && i ? 0 : r ? 1 : -1 : typeof e == "number" && typeof t == "number" ? n * (e - t) : n * String(e).localeCompare(String(t), "pt-BR", {
6538
6590
  numeric: !0,
6539
6591
  sensitivity: "base"
6540
6592
  });
6541
6593
  }
6542
- function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g }) {
6543
- let [_, v] = d(() => g ? ca(g) : []), [y, b] = d(!1), [x, S] = d(() => g ? fa(g) : {}), C = l(() => new Set(_), [_]), w = e.filter(ua), T = w.length > 0 && w.every((e) => C.has(e.key)), E = (e) => !T && C.has(e.key) && ua(e), D = e.filter((e) => !E(e)), O = w.filter((e) => !E(e)), [k, A] = d(null), j = (e) => {
6594
+ function va({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g }) {
6595
+ let [_, v] = d(() => g ? la(g) : []), [y, b] = d(!1), [x, S] = d(() => g ? pa(g) : {}), C = l(() => new Set(_), [_]), w = e.filter(da), T = w.length > 0 && w.every((e) => C.has(e.key)), E = (e) => !T && C.has(e.key) && da(e), D = e.filter((e) => !E(e)), O = w.filter((e) => !E(e)), [k, A] = d(null), j = (e) => {
6544
6596
  v((t) => {
6545
6597
  let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
6546
- return g && la(g, r), n && A((t) => t && t.key === e.key ? null : t), r;
6598
+ return g && ua(g, r), n && A((t) => t && t.key === e.key ? null : t), r;
6547
6599
  });
6548
6600
  }, M = (e) => {
6549
6601
  A((t) => {
@@ -6560,7 +6612,7 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
6560
6612
  let e = N == null ? void 0 : N.sortValue;
6561
6613
  if (!k || !e) return t;
6562
6614
  let n = k.dir === "asc" ? 1 : -1;
6563
- return [...t].sort((t, r) => ga(e(t), e(r), n));
6615
+ return [...t].sort((t, r) => _a(e(t), e(r), n));
6564
6616
  }, [
6565
6617
  t,
6566
6618
  k,
@@ -6579,11 +6631,11 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
6579
6631
  let n = D[e];
6580
6632
  n && S((e) => {
6581
6633
  let r = { ...e };
6582
- return t ? r[n.key] = t : delete r[n.key], g && pa(g, r), r;
6634
+ return t ? r[n.key] = t : delete r[n.key], g && ma(g, r), r;
6583
6635
  });
6584
6636
  }, L = () => {
6585
- S({}), g && pa(g, {});
6586
- }, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(zi, {
6637
+ S({}), g && ma(g, {});
6638
+ }, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(Bi, {
6587
6639
  icon: i.icon,
6588
6640
  title: i.heading,
6589
6641
  subtitle: i.text,
@@ -6650,13 +6702,13 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
6650
6702
  tools: te,
6651
6703
  onColumnResize: (e, t) => I(e, t),
6652
6704
  onColumnResizeReset: (e) => I(e, null),
6653
- children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Li, { children: D.map((e, t) => /* @__PURE__ */ m(Ri, {
6705
+ children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Ri, { children: D.map((e, t) => /* @__PURE__ */ m(zi, {
6654
6706
  align: e.align,
6655
6707
  width: e.width,
6656
6708
  children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
6657
- }, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(Li, {
6709
+ }, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(Ri, {
6658
6710
  onClick: o ? () => o(e) : void 0,
6659
- children: D.map((t, n) => /* @__PURE__ */ m(Ri, {
6711
+ children: D.map((t, n) => /* @__PURE__ */ m(zi, {
6660
6712
  align: t.align,
6661
6713
  width: t.width,
6662
6714
  children: t.render(e)
@@ -6667,7 +6719,7 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
6667
6719
  }
6668
6720
  //#endregion
6669
6721
  //#region src/SelectAddCard.tsx
6670
- var va = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
6722
+ var ya = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
6671
6723
  return /* @__PURE__ */ h("button", {
6672
6724
  ref: o,
6673
6725
  ...a,
@@ -6693,7 +6745,7 @@ var va = r(function({ label: e, description: t, onClick: n, icon: r, className:
6693
6745
  });
6694
6746
  //#endregion
6695
6747
  //#region src/SelectCardGrid.tsx
6696
- function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", title: l, help: u, description: d, action: f, filters: p, tools: g }) {
6748
+ function ba({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", title: l, help: u, description: d, action: f, filters: p, tools: g }) {
6697
6749
  let _ = !r && e.length === 0 && a != null, { hasTitleRow: v, hasFilters: y } = Di({
6698
6750
  title: l,
6699
6751
  description: d,
@@ -6717,7 +6769,7 @@ function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
6717
6769
  }),
6718
6770
  _ ? /* @__PURE__ */ m("div", {
6719
6771
  className: "select-cardgrid__empty",
6720
- children: /* @__PURE__ */ m(zi, {
6772
+ children: /* @__PURE__ */ m(Bi, {
6721
6773
  icon: a.icon,
6722
6774
  title: a.heading,
6723
6775
  subtitle: a.text,
@@ -6735,7 +6787,7 @@ function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
6735
6787
  }, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
6736
6788
  className: "select-cardgrid__item",
6737
6789
  children: n(e)
6738
- }, t(e))), !r && s && /* @__PURE__ */ m(va, {
6790
+ }, t(e))), !r && s && /* @__PURE__ */ m(ya, {
6739
6791
  label: s.label,
6740
6792
  description: s.description,
6741
6793
  onClick: s.onAction
@@ -6747,7 +6799,7 @@ function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
6747
6799
  }
6748
6800
  //#endregion
6749
6801
  //#region src/SelectRecordCard.tsx
6750
- var ba = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags: a, status: o, meta: s, to: c, accent: l = !1, className: u, ...d }, f) {
6802
+ var xa = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags: a, status: o, meta: s, to: c, accent: l = !1, className: u, ...d }, f) {
6751
6803
  let p = o != null || s != null, g = qr(c);
6752
6804
  return /* @__PURE__ */ h("div", {
6753
6805
  ref: f,
@@ -6813,7 +6865,7 @@ var ba = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
6813
6865
  })
6814
6866
  ]
6815
6867
  });
6816
- }), xa = r(function({ kind: e, className: t, ...n }, r) {
6868
+ }), Sa = r(function({ kind: e, className: t, ...n }, r) {
6817
6869
  return /* @__PURE__ */ h("span", {
6818
6870
  ref: r,
6819
6871
  ...n,
@@ -6831,18 +6883,18 @@ var ba = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
6831
6883
  });
6832
6884
  //#endregion
6833
6885
  //#region src/SelectSplitChain.tsx
6834
- function Sa(e) {
6886
+ function Ca(e) {
6835
6887
  var t;
6836
6888
  return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
6837
6889
  }
6838
- function Ca({ node: e, origin: t = !1 }) {
6890
+ function wa({ node: e, origin: t = !1 }) {
6839
6891
  return /* @__PURE__ */ h("span", {
6840
6892
  className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
6841
6893
  children: [
6842
6894
  /* @__PURE__ */ m("span", {
6843
6895
  className: "select-chain__dot",
6844
6896
  "aria-hidden": "true",
6845
- children: Sa(e)
6897
+ children: Ca(e)
6846
6898
  }),
6847
6899
  /* @__PURE__ */ m("span", {
6848
6900
  className: "select-chain__label",
@@ -6856,16 +6908,16 @@ function Ca({ node: e, origin: t = !1 }) {
6856
6908
  ]
6857
6909
  });
6858
6910
  }
6859
- var wa = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
6911
+ var Ta = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
6860
6912
  let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
6861
6913
  className: "select-chain__link",
6862
6914
  "aria-hidden": "true"
6863
6915
  }, e);
6864
- t && c.push(/* @__PURE__ */ m(Ca, {
6916
+ t && c.push(/* @__PURE__ */ m(wa, {
6865
6917
  node: t,
6866
6918
  origin: !0
6867
6919
  }, "__origin"));
6868
- for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(Ca, { node: e }, e.id));
6920
+ for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(wa, { node: e }, e.id));
6869
6921
  return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
6870
6922
  className: "select-chain__more",
6871
6923
  children: ["+", s]
@@ -6875,43 +6927,43 @@ var wa = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
6875
6927
  className: `select-chain${r ? " " + r : ""}`,
6876
6928
  children: c
6877
6929
  });
6878
- }), Ta = new Intl.NumberFormat("pt-BR", {
6930
+ }), Ea = new Intl.NumberFormat("pt-BR", {
6879
6931
  style: "currency",
6880
6932
  currency: "BRL"
6881
6933
  });
6882
- function Ea(e) {
6934
+ function Da(e) {
6883
6935
  let t = typeof e == "string" ? Number(e) : e;
6884
6936
  return typeof t == "number" && Number.isFinite(t) ? t : 0;
6885
6937
  }
6886
- function Da(e) {
6887
- return Ta.format(Ea(e) / 100);
6938
+ function Oa(e) {
6939
+ return Ea.format(Da(e) / 100);
6888
6940
  }
6889
6941
  //#endregion
6890
6942
  //#region src/SelectMoney.tsx
6891
- var Oa = "sw:hide-money", ka = {
6943
+ var ka = "sw:hide-money", Aa = {
6892
6944
  hidden: !1,
6893
6945
  toggle: () => {},
6894
6946
  setHidden: () => {}
6895
- }, Aa = n(null);
6896
- function ja() {
6947
+ }, ja = n(null);
6948
+ function Ma() {
6897
6949
  try {
6898
- return localStorage.getItem(Oa) === "1";
6950
+ return localStorage.getItem(ka) === "1";
6899
6951
  } catch {
6900
6952
  return !1;
6901
6953
  }
6902
6954
  }
6903
- function Ma(e) {
6955
+ function Na(e) {
6904
6956
  try {
6905
- localStorage.setItem(Oa, e ? "1" : "0");
6957
+ localStorage.setItem(ka, e ? "1" : "0");
6906
6958
  } catch {}
6907
6959
  }
6908
- function Na({ children: e }) {
6909
- let [t, n] = d(ja), r = i((e) => {
6910
- n(e), Ma(e);
6960
+ function Pa({ children: e }) {
6961
+ let [t, n] = d(Ma), r = i((e) => {
6962
+ n(e), Na(e);
6911
6963
  }, []), a = i(() => {
6912
6964
  n((e) => {
6913
6965
  let t = !e;
6914
- return Ma(t), t;
6966
+ return Na(t), t;
6915
6967
  });
6916
6968
  }, []), o = l(() => ({
6917
6969
  hidden: t,
@@ -6922,16 +6974,16 @@ function Na({ children: e }) {
6922
6974
  a,
6923
6975
  r
6924
6976
  ]);
6925
- return /* @__PURE__ */ m(Aa.Provider, {
6977
+ return /* @__PURE__ */ m(ja.Provider, {
6926
6978
  value: o,
6927
6979
  children: e
6928
6980
  });
6929
6981
  }
6930
- function Pa() {
6931
- return a(Aa) ?? ka;
6982
+ function Fa() {
6983
+ return a(ja) ?? Aa;
6932
6984
  }
6933
- var Fa = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
6934
- let { hidden: a } = Pa();
6985
+ var Ia = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
6986
+ let { hidden: a } = Fa();
6935
6987
  return /* @__PURE__ */ m("span", {
6936
6988
  ref: i,
6937
6989
  ...r,
@@ -6940,15 +6992,15 @@ var Fa = r(function({ children: e, label: t = "valor oculto", className: n, ...r
6940
6992
  children: e
6941
6993
  });
6942
6994
  });
6943
- function Ia({ cents: e, sensitive: t = !0 }) {
6944
- let n = Da(e);
6945
- return m(t ? Fa : p, { children: n });
6995
+ function La({ cents: e, sensitive: t = !0 }) {
6996
+ let n = Oa(e);
6997
+ return m(t ? Ia : p, { children: n });
6946
6998
  }
6947
- var La = new Intl.NumberFormat("pt-BR", {
6999
+ var Ra = new Intl.NumberFormat("pt-BR", {
6948
7000
  signDisplay: "exceptZero",
6949
7001
  minimumFractionDigits: 1,
6950
7002
  maximumFractionDigits: 1
6951
- }), Ra = r(function({ value: e, invert: t = !1, caption: n, className: r, ...i }, a) {
7003
+ }), za = r(function({ value: e, invert: t = !1, caption: n, className: r, ...i }, a) {
6952
7004
  if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
6953
7005
  ref: a,
6954
7006
  ...i,
@@ -6964,7 +7016,7 @@ var La = new Intl.NumberFormat("pt-BR", {
6964
7016
  className: `select-delta__value select-delta__value--${l}`,
6965
7017
  children: [
6966
7018
  u ? `${u} ` : "",
6967
- La.format(e),
7019
+ Ra.format(e),
6968
7020
  "%"
6969
7021
  ]
6970
7022
  }), n != null && /* @__PURE__ */ m("span", {
@@ -6973,8 +7025,8 @@ var La = new Intl.NumberFormat("pt-BR", {
6973
7025
  })]
6974
7026
  });
6975
7027
  });
6976
- function za() {
6977
- let { hidden: e, toggle: t } = Pa();
7028
+ function Ba() {
7029
+ let { hidden: e, toggle: t } = Fa();
6978
7030
  return /* @__PURE__ */ m(J, {
6979
7031
  variant: "outline",
6980
7032
  icon: m(e ? Ue : He, {}),
@@ -6985,7 +7037,7 @@ function za() {
6985
7037
  }
6986
7038
  //#endregion
6987
7039
  //#region src/SelectOfferPrice.tsx
6988
- var Ba = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, className: a, ...o }, s) {
7040
+ var Va = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, className: a, ...o }, s) {
6989
7041
  let c = Number(e);
6990
7042
  if (!Number.isFinite(c)) return null;
6991
7043
  let l = Number(t), u = Number.isFinite(l) && l > c, d = u ? Math.round((l - c) / l * 100) : 0;
@@ -6996,11 +7048,11 @@ var Ba = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
6996
7048
  children: [
6997
7049
  /* @__PURE__ */ m("span", {
6998
7050
  className: "select-offerprice__now",
6999
- children: c === 0 && r != null ? r : /* @__PURE__ */ m(Ia, { cents: c })
7051
+ children: c === 0 && r != null ? r : /* @__PURE__ */ m(La, { cents: c })
7000
7052
  }),
7001
7053
  u && /* @__PURE__ */ m("s", {
7002
7054
  className: "select-offerprice__was",
7003
- children: /* @__PURE__ */ m(Ia, { cents: l })
7055
+ children: /* @__PURE__ */ m(La, { cents: l })
7004
7056
  }),
7005
7057
  u && !n && d > 0 && /* @__PURE__ */ h("span", {
7006
7058
  className: "select-offerprice__off",
@@ -7019,7 +7071,7 @@ var Ba = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
7019
7071
  });
7020
7072
  //#endregion
7021
7073
  //#region src/SelectRating.tsx
7022
- function Va({ size: e }) {
7074
+ function Ha({ size: e }) {
7023
7075
  return /* @__PURE__ */ m("svg", {
7024
7076
  width: e,
7025
7077
  height: e,
@@ -7031,7 +7083,7 @@ function Va({ size: e }) {
7031
7083
  })
7032
7084
  });
7033
7085
  }
7034
- var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
7086
+ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
7035
7087
  let l = !!n && !a, [u, f] = d(null), p = u ?? e;
7036
7088
  return /* @__PURE__ */ m("div", {
7037
7089
  ref: c,
@@ -7046,7 +7098,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
7046
7098
  children: Array.from({ length: t }, (e, t) => {
7047
7099
  let i = /* @__PURE__ */ m("span", {
7048
7100
  className: `select-rating__star${t < p ? " is-filled" : ""}`,
7049
- children: /* @__PURE__ */ m(Va, { size: r })
7101
+ children: /* @__PURE__ */ m(Ha, { size: r })
7050
7102
  });
7051
7103
  return l ? /* @__PURE__ */ m("button", {
7052
7104
  type: "button",
@@ -7060,14 +7112,14 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
7060
7112
  }, t) : /* @__PURE__ */ m("span", { children: i }, t);
7061
7113
  })
7062
7114
  });
7063
- }), Ua = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
7115
+ }), Wa = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
7064
7116
  let s = Number(e), c = Number.isFinite(s) && s > 0;
7065
7117
  return /* @__PURE__ */ h("div", {
7066
7118
  ref: o,
7067
7119
  ...a,
7068
7120
  className: `select-quote${i ? " " + i : ""}`,
7069
7121
  children: [
7070
- c && /* @__PURE__ */ m(Ha, {
7122
+ c && /* @__PURE__ */ m(Ua, {
7071
7123
  value: s,
7072
7124
  max: t,
7073
7125
  size: 13
@@ -7082,7 +7134,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
7082
7134
  })
7083
7135
  ]
7084
7136
  });
7085
- }), Wa = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
7137
+ }), Ga = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
7086
7138
  let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
7087
7139
  return /* @__PURE__ */ h("div", {
7088
7140
  ref: i,
@@ -7104,7 +7156,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
7104
7156
  children: ["+", o]
7105
7157
  })]
7106
7158
  });
7107
- }), Ga = [
7159
+ }), Ka = [
7108
7160
  "Dom",
7109
7161
  "Seg",
7110
7162
  "Ter",
@@ -7112,7 +7164,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
7112
7164
  "Qui",
7113
7165
  "Sex",
7114
7166
  "Sáb"
7115
- ], Ka = [
7167
+ ], qa = [
7116
7168
  "Janeiro",
7117
7169
  "Fevereiro",
7118
7170
  "Março",
@@ -7125,29 +7177,29 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
7125
7177
  "Outubro",
7126
7178
  "Novembro",
7127
7179
  "Dezembro"
7128
- ], qa = (e) => String(e).padStart(2, "0"), Ja = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ya = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Xa = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Za = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Qa = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
7129
- function $a(e) {
7180
+ ], Ja = (e) => String(e).padStart(2, "0"), Ya = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Xa = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Za = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Qa = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), $a = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
7181
+ function eo(e) {
7130
7182
  let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
7131
7183
  return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
7132
7184
  }
7133
- function eo(e, t) {
7134
- let n = `${e.getFullYear()}-${qa(e.getMonth() + 1)}-${qa(e.getDate())}`;
7135
- return t ? `${n}T${qa(e.getHours())}:${qa(e.getMinutes())}` : n;
7136
- }
7137
7185
  function to(e, t) {
7138
- let n = `${qa(e.getDate())}/${qa(e.getMonth() + 1)}/${e.getFullYear()}`;
7139
- return t ? `${n} ${qa(e.getHours())}:${qa(e.getMinutes())}` : n;
7186
+ let n = `${e.getFullYear()}-${Ja(e.getMonth() + 1)}-${Ja(e.getDate())}`;
7187
+ return t ? `${n}T${Ja(e.getHours())}:${Ja(e.getMinutes())}` : n;
7140
7188
  }
7141
- var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: f, clearable: p = !0, id: g, className: _, ...v }, y) {
7142
- let b = s(), x = g ?? b, [S, C] = d(!1), w = $a(t), [T, E] = d(() => Ya(w ?? /* @__PURE__ */ new Date())), D = u ? Ja(u) : null, O = f ? Ja(f) : null, k = (e) => !!D && Ja(e) < D || !!O && Ja(e) > O, A = Xa(Ya(T), -Ya(T).getDay()), j = Array.from({ length: 42 }, (e, t) => Xa(A, t)), M = Ja(/* @__PURE__ */ new Date()), N = () => {
7143
- o || (E(Ya(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
7189
+ function no(e, t) {
7190
+ let n = `${Ja(e.getDate())}/${Ja(e.getMonth() + 1)}/${e.getFullYear()}`;
7191
+ return t ? `${n} ${Ja(e.getHours())}:${Ja(e.getMinutes())}` : n;
7192
+ }
7193
+ var ro = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: f, clearable: p = !0, id: g, className: _, ...v }, y) {
7194
+ let b = s(), x = g ?? b, [S, C] = d(!1), w = eo(t), [T, E] = d(() => Xa(w ?? /* @__PURE__ */ new Date())), D = u ? Ya(u) : null, O = f ? Ya(f) : null, k = (e) => !!D && Ya(e) < D || !!O && Ya(e) > O, A = Za(Xa(T), -Xa(T).getDay()), j = Array.from({ length: 42 }, (e, t) => Za(A, t)), M = Ya(/* @__PURE__ */ new Date()), N = () => {
7195
+ o || (E(Xa(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
7144
7196
  }, P = (e) => {
7145
7197
  if (k(e)) return;
7146
7198
  let t = new Date(e);
7147
- r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(eo(t, r)), r || C(!1);
7199
+ r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(to(t, r)), r || C(!1);
7148
7200
  }, F = (e) => {
7149
7201
  let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
7150
- o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(eo(o, !0));
7202
+ o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(to(o, !0));
7151
7203
  }, I = () => {
7152
7204
  n(""), C(!1);
7153
7205
  }, L = /* @__PURE__ */ h("div", {
@@ -7161,7 +7213,7 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
7161
7213
  "aria-haspopup": "dialog",
7162
7214
  "aria-expanded": S,
7163
7215
  "aria-invalid": c ? !0 : void 0,
7164
- children: w ? to(w, r) : /* @__PURE__ */ m("span", {
7216
+ children: w ? no(w, r) : /* @__PURE__ */ m("span", {
7165
7217
  className: "select-datefield__ph",
7166
7218
  children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
7167
7219
  })
@@ -7198,13 +7250,13 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
7198
7250
  type: "button",
7199
7251
  className: "select-datepicker__nav",
7200
7252
  "aria-label": "Mês anterior",
7201
- onClick: () => E((e) => Za(e, -1)),
7253
+ onClick: () => E((e) => Qa(e, -1)),
7202
7254
  children: /* @__PURE__ */ m(U, {})
7203
7255
  }),
7204
7256
  /* @__PURE__ */ h("span", {
7205
7257
  className: "select-datepicker__monthlabel",
7206
7258
  children: [
7207
- Ka[T.getMonth()],
7259
+ qa[T.getMonth()],
7208
7260
  " ",
7209
7261
  T.getFullYear()
7210
7262
  ]
@@ -7213,7 +7265,7 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
7213
7265
  type: "button",
7214
7266
  className: "select-datepicker__nav",
7215
7267
  "aria-label": "Próximo mês",
7216
- onClick: () => E((e) => Za(e, 1)),
7268
+ onClick: () => E((e) => Qa(e, 1)),
7217
7269
  children: /* @__PURE__ */ m(ae, {})
7218
7270
  })
7219
7271
  ]
@@ -7221,11 +7273,11 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
7221
7273
  /* @__PURE__ */ h("div", {
7222
7274
  className: "select-datepicker__grid",
7223
7275
  role: "grid",
7224
- children: [Ga.map((e) => /* @__PURE__ */ m("div", {
7276
+ children: [Ka.map((e) => /* @__PURE__ */ m("div", {
7225
7277
  className: "select-datepicker__weekday",
7226
7278
  children: e
7227
7279
  }, e)), j.map((e) => {
7228
- let t = e.getMonth() !== T.getMonth(), n = !!w && Qa(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (Qa(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
7280
+ let t = e.getMonth() !== T.getMonth(), n = !!w && $a(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + ($a(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
7229
7281
  return /* @__PURE__ */ m("div", {
7230
7282
  className: "select-datepicker__day",
7231
7283
  children: /* @__PURE__ */ m("button", {
@@ -7247,7 +7299,7 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
7247
7299
  type: "time",
7248
7300
  className: "select-input select-datefield__time-input",
7249
7301
  "aria-label": "Horário",
7250
- value: w ? `${qa(w.getHours())}:${qa(w.getMinutes())}` : "",
7302
+ value: w ? `${Ja(w.getHours())}:${Ja(w.getMinutes())}` : "",
7251
7303
  onChange: (e) => F(e.target.value)
7252
7304
  })]
7253
7305
  }),
@@ -7288,25 +7340,25 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
7288
7340
  }) : null
7289
7341
  ]
7290
7342
  });
7291
- }), ro = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
7292
- function io(e) {
7293
- let t = ro.exec(e ?? "");
7343
+ }), io = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
7344
+ function ao(e) {
7345
+ let t = io.exec(e ?? "");
7294
7346
  if (!t) return null;
7295
7347
  let n = `${t[3]}/${t[2]}/${t[1]}`;
7296
7348
  return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
7297
7349
  }
7298
7350
  //#endregion
7299
7351
  //#region src/SelectFilterBar.tsx
7300
- function ao(e, t) {
7352
+ function oo(e, t) {
7301
7353
  var n;
7302
- return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? io(t) ?? t : t;
7354
+ return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? ao(t) ?? t : t;
7303
7355
  }
7304
- function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
7356
+ function so({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
7305
7357
  let [c, l] = d("");
7306
7358
  o(() => {
7307
7359
  r || l("");
7308
7360
  }, [r]);
7309
- let u = t.trim() !== "", f = u ? ao(e, t) : null, p = u && !!e.error, g = e.options ?? [], _ = g.length > 7, v = _ ? g.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : g;
7361
+ let u = t.trim() !== "", f = u ? oo(e, t) : null, p = u && !!e.error, g = e.options ?? [], _ = g.length > 7, v = _ ? g.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : g;
7310
7362
  return /* @__PURE__ */ h(on, {
7311
7363
  active: r,
7312
7364
  onClose: a,
@@ -7364,7 +7416,7 @@ function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
7364
7416
  })]
7365
7417
  }) : e.type === "date" ? /* @__PURE__ */ m("div", {
7366
7418
  className: "select-facet__field",
7367
- children: /* @__PURE__ */ m(no, {
7419
+ children: /* @__PURE__ */ m(ro, {
7368
7420
  value: t,
7369
7421
  onChange: n,
7370
7422
  placeholder: e.placeholder,
@@ -7402,7 +7454,7 @@ function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
7402
7454
  ]
7403
7455
  });
7404
7456
  }
7405
- var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, disabled: a, className: o, ...s }, c) {
7457
+ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, disabled: a, className: o, ...s }, c) {
7406
7458
  let [l, u] = d([]), [f, p] = d(null), [g, _] = d(!1), v = (e) => (t[e.key] ?? "").trim() !== "", y = (e) => !!e.pinned || v(e) || l.includes(e.key), b = e.filter(y), x = e.filter((e) => !y(e)), S = e.filter(v), C = () => {
7407
7459
  u([]), p(null), r();
7408
7460
  }, w = (e) => {
@@ -7440,7 +7492,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
7440
7492
  })
7441
7493
  ]
7442
7494
  }),
7443
- b.map((e) => /* @__PURE__ */ m(oo, {
7495
+ b.map((e) => /* @__PURE__ */ m(so, {
7444
7496
  filter: e,
7445
7497
  value: t[e.key] ?? "",
7446
7498
  onChange: (t) => n(e.key, t),
@@ -7486,7 +7538,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
7486
7538
  children: [
7487
7539
  e.label,
7488
7540
  ": ",
7489
- ao(e, t[e.key] ?? ""),
7541
+ oo(e, t[e.key] ?? ""),
7490
7542
  /* @__PURE__ */ m("button", {
7491
7543
  type: "button",
7492
7544
  className: "select-filterbar__tagx",
@@ -7503,7 +7555,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
7503
7555
  })]
7504
7556
  })]
7505
7557
  });
7506
- }), co = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", className: u, ...f }, p) {
7558
+ }), lo = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", className: u, ...f }, p) {
7507
7559
  let [g, _] = d(!1), [v, y] = d(""), b = t.filter((e) => e.label.toLowerCase().includes(v.trim().toLowerCase())), x = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), S = n.map((e) => t.find((t) => t.value === e)).filter((e) => e != null);
7508
7560
  return /* @__PURE__ */ h("div", {
7509
7561
  ref: p,
@@ -7616,7 +7668,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
7616
7668
  }) : null
7617
7669
  ]
7618
7670
  });
7619
- }), lo = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
7671
+ }), uo = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
7620
7672
  return /* @__PURE__ */ h("div", {
7621
7673
  ref: c,
7622
7674
  ...s,
@@ -7648,8 +7700,8 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
7648
7700
  })
7649
7701
  ]
7650
7702
  });
7651
- }), uo = n(null), fo = 220, po = 4e3, mo = 8, ho = .04, go = 5;
7652
- function _o({ children: e }) {
7703
+ }), fo = n(null), po = 220, mo = 4e3, ho = 8, go = .04, _o = 5;
7704
+ function vo({ children: e }) {
7653
7705
  let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
7654
7706
  n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
7655
7707
  }, []), c = i((e) => {
@@ -7657,9 +7709,9 @@ function _o({ children: e }) {
7657
7709
  t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
7658
7710
  ...t,
7659
7711
  exiting: !0
7660
- } : t)), a.current.set(e, setTimeout(() => s(e), fo));
7712
+ } : t)), a.current.set(e, setTimeout(() => s(e), po));
7661
7713
  }, [s]), f = i((e, t) => {
7662
- let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? po;
7714
+ let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? mo;
7663
7715
  n((n) => [...n, {
7664
7716
  id: i,
7665
7717
  content: e,
@@ -7687,7 +7739,7 @@ function _o({ children: e }) {
7687
7739
  duration: t
7688
7740
  })
7689
7741
  }), [f]);
7690
- return /* @__PURE__ */ h(uo.Provider, {
7742
+ return /* @__PURE__ */ h(fo.Provider, {
7691
7743
  value: p,
7692
7744
  children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
7693
7745
  className: "select select-toasts",
@@ -7695,8 +7747,8 @@ function _o({ children: e }) {
7695
7747
  "aria-live": "polite",
7696
7748
  "aria-label": "Notificações",
7697
7749
  children: t.map((e, n) => {
7698
- let r = t.length - 1 - n, i = e.exiting || r >= go, a = {
7699
- transform: `translate(-50%, ${-r * mo}px) scale(${1 - r * ho})`,
7750
+ let r = t.length - 1 - n, i = e.exiting || r >= _o, a = {
7751
+ transform: `translate(-50%, ${-r * ho}px) scale(${1 - r * go})`,
7700
7752
  opacity: +!i,
7701
7753
  zIndex: 1e3 - r,
7702
7754
  pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
@@ -7720,14 +7772,14 @@ function _o({ children: e }) {
7720
7772
  }), document.body)]
7721
7773
  });
7722
7774
  }
7723
- function vo() {
7724
- let e = a(uo);
7775
+ function yo() {
7776
+ let e = a(fo);
7725
7777
  if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
7726
7778
  return e;
7727
7779
  }
7728
7780
  //#endregion
7729
7781
  //#region src/SelectPreviewFrame.tsx
7730
- var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So = r(function({ src: e, sandbox: t = yo, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, emptyLabel: s = "Salve para gerar a pré-visualização.", onReload: l, notice: f, iframeRef: g, desktopWidth: _ = xo, className: v, ...y }, b) {
7782
+ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co = r(function({ src: e, sandbox: t = bo, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, emptyLabel: s = "Salve para gerar a pré-visualização.", onReload: l, notice: f, iframeRef: g, desktopWidth: _ = So, className: v, ...y }, b) {
7731
7783
  let x = qr(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
7732
7784
  w: 0,
7733
7785
  h: 0
@@ -7745,7 +7797,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7745
7797
  });
7746
7798
  return t.observe(e), () => t.disconnect();
7747
7799
  }, []);
7748
- let j = S === "mobile" ? bo : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
7800
+ let j = S === "mobile" ? xo : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
7749
7801
  if (D(!0), l) {
7750
7802
  l();
7751
7803
  return;
@@ -7834,7 +7886,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7834
7886
  })
7835
7887
  })]
7836
7888
  });
7837
- }), Co = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, className: a, ...o }, s) {
7889
+ }), wo = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, className: a, ...o }, s) {
7838
7890
  return /* @__PURE__ */ h("div", {
7839
7891
  ref: s,
7840
7892
  ...o,
@@ -7859,8 +7911,8 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7859
7911
  className: "select-balance__heromain",
7860
7912
  children: [/* @__PURE__ */ m("span", {
7861
7913
  className: "select-balance__heroamount",
7862
- children: /* @__PURE__ */ m(Ia, { cents: e })
7863
- }), n != null && /* @__PURE__ */ m(Ra, {
7914
+ children: /* @__PURE__ */ m(La, { cents: e })
7915
+ }), n != null && /* @__PURE__ */ m(za, {
7864
7916
  value: n,
7865
7917
  caption: "vs. período anterior"
7866
7918
  })]
@@ -7879,14 +7931,14 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7879
7931
  children: e.label
7880
7932
  }), /* @__PURE__ */ m("span", {
7881
7933
  className: "select-balance__bucketamount",
7882
- children: /* @__PURE__ */ m(Ia, { cents: e.cents })
7934
+ children: /* @__PURE__ */ m(La, { cents: e.cents })
7883
7935
  })]
7884
7936
  })]
7885
7937
  }, e.label))
7886
7938
  })]
7887
7939
  })]
7888
7940
  });
7889
- }), wo = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", className: a, ...o }, s) {
7941
+ }), To = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", className: a, ...o }, s) {
7890
7942
  let c = n ?? e - t.reduce((e, t) => e + t.cents, 0);
7891
7943
  return /* @__PURE__ */ h("div", {
7892
7944
  ref: s,
@@ -7895,13 +7947,13 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7895
7947
  children: [
7896
7948
  /* @__PURE__ */ h("div", {
7897
7949
  className: "select-fees__row",
7898
- children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(Ia, { cents: e }) })]
7950
+ children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(La, { cents: e }) })]
7899
7951
  }),
7900
7952
  t.map((e) => /* @__PURE__ */ h("div", {
7901
7953
  className: "select-fees__row",
7902
7954
  children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
7903
7955
  className: "select-fees__neg",
7904
- children: ["−\xA0", /* @__PURE__ */ m(Ia, { cents: e.cents })]
7956
+ children: ["−\xA0", /* @__PURE__ */ m(La, { cents: e.cents })]
7905
7957
  })]
7906
7958
  }, e.label)),
7907
7959
  /* @__PURE__ */ m("div", { className: "select-fees__divider" }),
@@ -7909,12 +7961,12 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7909
7961
  className: "select-fees__row select-fees__row--net",
7910
7962
  children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
7911
7963
  className: "select-fees__netvalue",
7912
- children: /* @__PURE__ */ m(Ia, { cents: c })
7964
+ children: /* @__PURE__ */ m(La, { cents: c })
7913
7965
  })]
7914
7966
  })
7915
7967
  ]
7916
7968
  });
7917
- }), To = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, className: l, ...u }, d) {
7969
+ }), Eo = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, className: l, ...u }, d) {
7918
7970
  let f = s != null, p = f ? {
7919
7971
  role: "button",
7920
7972
  tabIndex: 0,
@@ -7954,7 +8006,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7954
8006
  })
7955
8007
  ]
7956
8008
  });
7957
- }), Eo = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
8009
+ }), Do = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
7958
8010
  let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
7959
8011
  return /* @__PURE__ */ h("div", {
7960
8012
  ref: p,
@@ -7997,7 +8049,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
7997
8049
  });
7998
8050
  //#endregion
7999
8051
  //#region src/chartUtils.ts
8000
- function Do() {
8052
+ function Oo() {
8001
8053
  let [e, t] = d(1);
8002
8054
  return c(() => {
8003
8055
  let e = () => {
@@ -8008,7 +8060,7 @@ function Do() {
8008
8060
  }, []), e;
8009
8061
  }
8010
8062
  function Y(e) {
8011
- let t = u(null), [n, r] = d(0), i = Do();
8063
+ let t = u(null), [n, r] = d(0), i = Oo();
8012
8064
  return c(() => {
8013
8065
  let e = t.current;
8014
8066
  if (!e) return;
@@ -8025,7 +8077,7 @@ function Y(e) {
8025
8077
  height: Math.round(e * i)
8026
8078
  };
8027
8079
  }
8028
- function Oo(e, t) {
8080
+ function ko(e, t) {
8029
8081
  let [n, r] = d(t);
8030
8082
  return c(() => {
8031
8083
  let t = e.current;
@@ -8039,15 +8091,15 @@ function Oo(e, t) {
8039
8091
  return i.observe(t), () => i.disconnect();
8040
8092
  }, [e]), n;
8041
8093
  }
8042
- function ko(e) {
8094
+ function Ao(e) {
8043
8095
  if (e <= 0) return 1;
8044
8096
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
8045
8097
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
8046
8098
  }
8047
- function Ao(e, t = 4) {
8099
+ function jo(e, t = 4) {
8048
8100
  return Array.from({ length: t + 1 }, (n, r) => e / t * r);
8049
8101
  }
8050
- function jo(e, t = 5) {
8102
+ function Mo(e, t = 5) {
8051
8103
  if (!(e > 0)) return {
8052
8104
  max: 1,
8053
8105
  values: [0, 1]
@@ -8059,10 +8111,10 @@ function jo(e, t = 5) {
8059
8111
  values: s
8060
8112
  };
8061
8113
  }
8062
- function Mo(e) {
8114
+ function No(e) {
8063
8115
  return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
8064
8116
  }
8065
- function No(e) {
8117
+ function Po(e) {
8066
8118
  let t = e.length;
8067
8119
  if (t === 0) return "";
8068
8120
  if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
@@ -8086,23 +8138,23 @@ function No(e) {
8086
8138
  }
8087
8139
  return s;
8088
8140
  }
8089
- function Po(e, t) {
8141
+ function Fo(e, t) {
8090
8142
  if (e.length === 0) return "";
8091
8143
  let n = e[0], r = e[e.length - 1];
8092
- return `${No(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
8144
+ return `${Po(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
8093
8145
  }
8094
- function Fo(e, t) {
8095
- return e.length === 0 || t.length === 0 ? "" : `${No(e)} ${No([...t].reverse()).replace(/^M/, "L")} Z`;
8146
+ function Io(e, t) {
8147
+ return e.length === 0 || t.length === 0 ? "" : `${Po(e)} ${Po([...t].reverse()).replace(/^M/, "L")} Z`;
8096
8148
  }
8097
- function Io(e, t, n, r) {
8149
+ function Lo(e, t, n, r) {
8098
8150
  let i = (r - 90) * Math.PI / 180;
8099
8151
  return [e + n * Math.cos(i), t + n * Math.sin(i)];
8100
8152
  }
8101
- function Lo(e, t, n, r, i, a) {
8102
- let [o, s] = Io(e, t, n, i), [c, l] = Io(e, t, n, a), [u, d] = Io(e, t, r, a), [f, p] = Io(e, t, r, i), m = +(a - i > 180);
8153
+ function Ro(e, t, n, r, i, a) {
8154
+ let [o, s] = Lo(e, t, n, i), [c, l] = Lo(e, t, n, a), [u, d] = Lo(e, t, r, a), [f, p] = Lo(e, t, r, i), m = +(a - i > 180);
8103
8155
  return `M${o.toFixed(2)},${s.toFixed(2)} A${n},${n} 0 ${m} 1 ${c.toFixed(2)},${l.toFixed(2)} L${u.toFixed(2)},${d.toFixed(2)} A${r},${r} 0 ${m} 0 ${f.toFixed(2)},${p.toFixed(2)} Z`;
8104
8156
  }
8105
- var Ro = [
8157
+ var zo = [
8106
8158
  "var(--select-chart-1)",
8107
8159
  "var(--select-chart-2)",
8108
8160
  "var(--select-chart-3)",
@@ -8110,13 +8162,13 @@ var Ro = [
8110
8162
  "var(--select-chart-5)"
8111
8163
  ];
8112
8164
  function X(e) {
8113
- return Ro[e % Ro.length];
8165
+ return zo[e % zo.length];
8114
8166
  }
8115
8167
  function Z(e) {
8116
8168
  let t = Math.abs(e);
8117
8169
  return t >= 1e9 ? (e / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : t >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(e));
8118
8170
  }
8119
- var zo = {
8171
+ var Bo = {
8120
8172
  top: 16,
8121
8173
  right: 22,
8122
8174
  bottom: 32,
@@ -8124,7 +8176,7 @@ var zo = {
8124
8176
  };
8125
8177
  //#endregion
8126
8178
  //#region src/SelectSparkline.tsx
8127
- function Bo({ data: e, color: t, height: n = 40, className: r, ...i }) {
8179
+ function Vo({ data: e, color: t, height: n = 40, className: r, ...i }) {
8128
8180
  let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
8129
8181
  if (o > 0 && e.length > 1) {
8130
8182
  let t = Math.max(...e), r = Math.min(...e), i = t - r || 1, a = e.map((t, a) => [4 + a / (e.length - 1) * (o - 8), n - 4 - (t - r) / i * (n - 8)]), s = a[a.length - 1];
@@ -8151,11 +8203,11 @@ function Bo({ data: e, color: t, height: n = 40, className: r, ...i }) {
8151
8203
  })]
8152
8204
  }) }),
8153
8205
  /* @__PURE__ */ m("path", {
8154
- d: Po(a, n - 4),
8206
+ d: Fo(a, n - 4),
8155
8207
  fill: `url(#${l}-sa)`
8156
8208
  }),
8157
8209
  /* @__PURE__ */ m("path", {
8158
- d: No(a),
8210
+ d: Po(a),
8159
8211
  fill: "none",
8160
8212
  stroke: c,
8161
8213
  strokeWidth: 2,
@@ -8236,8 +8288,8 @@ function $({ tip: e, className: t, ...n }) {
8236
8288
  }
8237
8289
  //#endregion
8238
8290
  //#region src/SelectBarChart.tsx
8239
- function Vo({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
8240
- let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = ko(Math.max(0, ...e.map((e) => e.value))), p = zo, g = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? g / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
8291
+ function Ho({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
8292
+ let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = Ao(Math.max(0, ...e.map((e) => e.value))), p = Bo, g = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? g / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
8241
8293
  return /* @__PURE__ */ h("div", {
8242
8294
  ...a,
8243
8295
  className: `select-chart-wrap${i ? " " + i : ""}`,
@@ -8263,7 +8315,7 @@ function Vo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
8263
8315
  stopOpacity: .62
8264
8316
  })]
8265
8317
  }) }),
8266
- Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8318
+ jo(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8267
8319
  x1: p.left,
8268
8320
  x2: c - p.right,
8269
8321
  y1: x(e),
@@ -8313,8 +8365,8 @@ function Vo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
8313
8365
  }
8314
8366
  //#endregion
8315
8367
  //#region src/SelectLineChart.tsx
8316
- function Ho({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
8317
- let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = jo(Math.max(0, ...e.flatMap((e) => e.data))), y = zo, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
8368
+ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
8369
+ let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Mo(Math.max(0, ...e.flatMap((e) => e.data))), y = Bo, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
8318
8370
  return /* @__PURE__ */ h("div", {
8319
8371
  ...o,
8320
8372
  className: `select-chart-wrap${a ? " " + a : ""}`,
@@ -8367,11 +8419,11 @@ function Ho({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
8367
8419
  e.map((e, t) => {
8368
8420
  let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
8369
8421
  return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
8370
- d: Po(r, D),
8422
+ d: Fo(r, D),
8371
8423
  fill: `url(#${f}-a${t})`,
8372
8424
  className: "select-chart__area"
8373
8425
  }), /* @__PURE__ */ m("path", {
8374
- d: No(r),
8426
+ d: Po(r),
8375
8427
  fill: "none",
8376
8428
  stroke: n,
8377
8429
  strokeWidth: 2.25,
@@ -8426,8 +8478,8 @@ function Ho({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
8426
8478
  }
8427
8479
  //#endregion
8428
8480
  //#region src/SelectStackedArea.tsx
8429
- function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
8430
- let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = ko(Math.max(0, ..._)), b = zo, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (g <= 1 ? x / 2 : e / (g - 1) * x), w = (e) => b.top + S - e / y * S, T = g > 1 ? x / (g - 1) : x, E = Math.max(1, Math.ceil(g / 7)), D = b.top + S, O = v[v.length - 1];
8481
+ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
8482
+ let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = Ao(Math.max(0, ..._)), b = Bo, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (g <= 1 ? x / 2 : e / (g - 1) * x), w = (e) => b.top + S - e / y * S, T = g > 1 ? x / (g - 1) : x, E = Math.max(1, Math.ceil(g / 7)), D = b.top + S, O = v[v.length - 1];
8431
8483
  return /* @__PURE__ */ h("div", {
8432
8484
  ...a,
8433
8485
  className: `select-chart-wrap${i ? " " + i : ""}`,
@@ -8456,7 +8508,7 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
8456
8508
  })]
8457
8509
  }, t);
8458
8510
  }) }),
8459
- Ao(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8511
+ jo(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8460
8512
  x1: b.left,
8461
8513
  x2: c - b.right,
8462
8514
  y1: w(e),
@@ -8475,10 +8527,10 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
8475
8527
  return /* @__PURE__ */ h("g", {
8476
8528
  className: "select-chart__area",
8477
8529
  children: [/* @__PURE__ */ m("path", {
8478
- d: Fo(i, a),
8530
+ d: Io(i, a),
8479
8531
  fill: `url(#${u}-b${n})`
8480
8532
  }), /* @__PURE__ */ m("path", {
8481
- d: No(i),
8533
+ d: Po(i),
8482
8534
  fill: "none",
8483
8535
  stroke: r,
8484
8536
  strokeWidth: 1.5,
@@ -8532,11 +8584,11 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
8532
8584
  }
8533
8585
  //#endregion
8534
8586
  //#region src/SelectComboChart.tsx
8535
- function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
8587
+ function Go({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
8536
8588
  let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
8537
- ...zo,
8589
+ ...Bo,
8538
8590
  right: 58
8539
- }, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = ko(Math.max(0, ...t.data)), C = ko(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
8591
+ }, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Ao(Math.max(0, ...t.data)), C = Ao(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
8540
8592
  return /* @__PURE__ */ h("div", {
8541
8593
  ...c,
8542
8594
  className: `select-chart-wrap${o ? " " + o : ""}`,
@@ -8562,7 +8614,7 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
8562
8614
  stopOpacity: .55
8563
8615
  })]
8564
8616
  }) }),
8565
- Ao(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8617
+ jo(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8566
8618
  x1: v.left,
8567
8619
  x2: u - v.right,
8568
8620
  y1: A(e),
@@ -8576,7 +8628,7 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
8576
8628
  textAnchor: "end",
8577
8629
  children: i(e)
8578
8630
  })] }, t)),
8579
- Ao(C).map((e, t) => /* @__PURE__ */ m("text", {
8631
+ jo(C).map((e, t) => /* @__PURE__ */ m("text", {
8580
8632
  x: u - 4,
8581
8633
  y: j(e),
8582
8634
  className: "select-chart__ylabel",
@@ -8605,7 +8657,7 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
8605
8657
  className: "select-chart__crosshair"
8606
8658
  }),
8607
8659
  /* @__PURE__ */ m("path", {
8608
- d: No(N),
8660
+ d: Po(N),
8609
8661
  fill: "none",
8610
8662
  stroke: O,
8611
8663
  strokeWidth: 2.5,
@@ -8663,8 +8715,8 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
8663
8715
  }
8664
8716
  //#endregion
8665
8717
  //#region src/SelectDonut.tsx
8666
- var Go = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...d }, f) {
8667
- let p = Q(), g = s(), _ = u(null), v = Oo(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
8718
+ var Ko = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...d }, f) {
8719
+ let p = Q(), g = s(), _ = u(null), v = ko(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
8668
8720
  return /* @__PURE__ */ h("div", {
8669
8721
  ref: f,
8670
8722
  ...d,
@@ -8707,7 +8759,7 @@ var Go = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
8707
8759
  w += e.value;
8708
8760
  let i = w / y * 360, a = e.color ?? X(t), s = i - n > o * 1.5 ? o / 2 : 0, c = n + s, l = Math.max(c + .01, i - s);
8709
8761
  return /* @__PURE__ */ m("path", {
8710
- d: Lo(b, x, S, C, c, l),
8762
+ d: Ro(b, x, S, C, c, l),
8711
8763
  fill: `url(#${g}-s${t})`,
8712
8764
  className: "select-chart__seg",
8713
8765
  onMouseEnter: () => {
@@ -8758,8 +8810,8 @@ var Go = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
8758
8810
  });
8759
8811
  //#endregion
8760
8812
  //#region src/SelectColumnChart.tsx
8761
- function Ko({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, className: a, ...o }) {
8762
- let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ = ko(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data))), v = zo, y = Math.max(0, l - v.left - v.right), b = n - v.top - v.bottom, x = v.top + b, S = f ? y / f : 0, C = (e) => x - e / _ * b, w = Math.min(S * .72, p * 40), T = i ? Math.min(S * .5, 44) : w / p;
8813
+ function qo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, className: a, ...o }) {
8814
+ let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ = Ao(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data))), v = Bo, y = Math.max(0, l - v.left - v.right), b = n - v.top - v.bottom, x = v.top + b, S = f ? y / f : 0, C = (e) => x - e / _ * b, w = Math.min(S * .72, p * 40), T = i ? Math.min(S * .5, 44) : w / p;
8763
8815
  return /* @__PURE__ */ h("div", {
8764
8816
  ...o,
8765
8817
  className: `select-chart-wrap${a ? " " + a : ""}`,
@@ -8788,7 +8840,7 @@ function Ko({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
8788
8840
  })]
8789
8841
  }, t);
8790
8842
  }) }),
8791
- Ao(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8843
+ jo(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
8792
8844
  x1: v.left,
8793
8845
  x2: l - v.right,
8794
8846
  y1: C(e),
@@ -8870,7 +8922,7 @@ function Ko({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
8870
8922
  }
8871
8923
  //#endregion
8872
8924
  //#region src/SelectFunnel.tsx
8873
- var qo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
8925
+ var Jo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
8874
8926
  let a = Math.max(1, ...e.map((e) => e.value));
8875
8927
  return /* @__PURE__ */ m("div", {
8876
8928
  ref: i,
@@ -8912,19 +8964,19 @@ var qo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
8912
8964
  });
8913
8965
  //#endregion
8914
8966
  //#region src/SelectGauge.tsx
8915
- function Jo(e) {
8967
+ function Yo(e) {
8916
8968
  return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
8917
8969
  }
8918
- function Yo(e, t, n, r) {
8970
+ function Xo(e, t, n, r) {
8919
8971
  let i = Math.PI + r * Math.PI;
8920
8972
  return [e + n * Math.cos(i), t + n * Math.sin(i)];
8921
8973
  }
8922
- function Xo(e, t, n, r, i) {
8923
- let [a, o] = Yo(e, t, n, r), [s, c] = Yo(e, t, n, i);
8974
+ function Zo(e, t, n, r, i) {
8975
+ let [a, o] = Xo(e, t, n, r), [s, c] = Xo(e, t, n, i);
8924
8976
  return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
8925
8977
  }
8926
- var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Qo = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Zo, className: s, ...c }, l) {
8927
- let u = Jo(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = $t({
8978
+ var Qo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, $o = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Qo, className: s, ...c }, l) {
8979
+ let u = Yo(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = $t({
8928
8980
  value: u,
8929
8981
  format: o
8930
8982
  });
@@ -8947,13 +8999,13 @@ var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
8947
8999
  "aria-hidden": "true",
8948
9000
  children: [/* @__PURE__ */ m("path", {
8949
9001
  className: "select-gauge__track",
8950
- d: Xo(g, _, p, 0, 1),
9002
+ d: Zo(g, _, p, 0, 1),
8951
9003
  fill: "none",
8952
9004
  strokeWidth: d,
8953
9005
  strokeLinecap: "round"
8954
9006
  }), u > 0 && /* @__PURE__ */ m("path", {
8955
9007
  className: "select-gauge__arc",
8956
- d: Xo(g, _, p, 0, u / 100),
9008
+ d: Zo(g, _, p, 0, u / 100),
8957
9009
  fill: "none",
8958
9010
  stroke: a ?? "var(--select-chart-1)",
8959
9011
  strokeWidth: d,
@@ -8976,7 +9028,7 @@ var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
8976
9028
  children: n
8977
9029
  })]
8978
9030
  });
8979
- }), $o = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, g) {
9031
+ }), es = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, g) {
8980
9032
  let _ = Q(), v = n.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e)), y = s ?? (v.length ? Math.min(...v) : 0), b = (c ?? (v.length ? Math.max(...v) : 1)) - y || 1, x = { "--heat-color": a }, S = {
8981
9033
  gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
8982
9034
  width: "fit-content",
@@ -9041,7 +9093,7 @@ var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
9041
9093
  });
9042
9094
  //#endregion
9043
9095
  //#region src/SelectProgressList.tsx
9044
- function es({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
9096
+ function ts({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
9045
9097
  if (e.length === 0) return /* @__PURE__ */ m("div", {
9046
9098
  className: "select-progresslist__empty",
9047
9099
  children: r
@@ -9092,7 +9144,7 @@ function es({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
9092
9144
  }
9093
9145
  //#endregion
9094
9146
  //#region src/SelectRadialBar.tsx
9095
- var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(function({ series: e, size: t = 200, thickness: n = 14, gap: r = 8, format: i = (e) => `${Math.round(e)}%`, centerLabel: a, legend: o = !0, className: c, ...l }, u) {
9147
+ var ns = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, rs = r(function({ series: e, size: t = 200, thickness: n = 14, gap: r = 8, format: i = (e) => `${Math.round(e)}%`, centerLabel: a, legend: o = !0, className: c, ...l }, u) {
9096
9148
  let d = s(), f = t / 2, p = t / 2;
9097
9149
  return /* @__PURE__ */ h("div", {
9098
9150
  ref: u,
@@ -9132,7 +9184,7 @@ var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(f
9132
9184
  }) }), e.map((e, i) => {
9133
9185
  let a = t / 2 - 2 - n / 2 - i * (n + r);
9134
9186
  if (a <= n / 2) return null;
9135
- let o = ts(e.value);
9187
+ let o = ns(e.value);
9136
9188
  return /* @__PURE__ */ h("g", {
9137
9189
  transform: `rotate(-90 ${f} ${p})`,
9138
9190
  children: [/* @__PURE__ */ m("circle", {
@@ -9161,7 +9213,7 @@ var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(f
9161
9213
  className: "select-radial__center",
9162
9214
  children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
9163
9215
  className: "select-radial__value",
9164
- children: i(ts(e[0].value))
9216
+ children: i(ns(e[0].value))
9165
9217
  }) : null)
9166
9218
  })]
9167
9219
  }), o && /* @__PURE__ */ m("ul", {
@@ -9179,15 +9231,15 @@ var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(f
9179
9231
  }),
9180
9232
  /* @__PURE__ */ m("span", {
9181
9233
  className: "select-donut__legval",
9182
- children: i(ts(e.value))
9234
+ children: i(ns(e.value))
9183
9235
  })
9184
9236
  ]
9185
9237
  }, t))
9186
9238
  })]
9187
9239
  });
9188
- }), rs = 6.1, is = 12, as = 56, os = .4;
9189
- function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, className: c, ...l }) {
9190
- let u = t ?? e.length * 36 + 6 + 26, { ref: d, width: f } = Y(u), p = Q(), g = s(), _ = ko(Math.max(0, ...e.map((e) => e.value))), v = e.reduce((e, t) => Math.max(e, t.label.length), 0), y = Math.min(Math.max(as, v * rs + is), Math.max(as, f * os)), b = o ?? y, x = Math.max(3, Math.floor((b - is) / rs)), S = (e) => e.length <= x ? e : `${e.slice(0, x - 1).trimEnd()}…`, C = Math.max(0, f - b - 28), w = u - 6 - 26, T = e.length ? w / e.length : 0, E = Math.min(T * .62, 22), D = (e) => b + e / _ * C, O = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
9240
+ }), is = 6.1, as = 12, os = 56, ss = .4;
9241
+ function cs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, className: c, ...l }) {
9242
+ let u = t ?? e.length * 36 + 6 + 26, { ref: d, width: f } = Y(u), p = Q(), g = s(), _ = Ao(Math.max(0, ...e.map((e) => e.value))), v = e.reduce((e, t) => Math.max(e, t.label.length), 0), y = Math.min(Math.max(os, v * is + as), Math.max(os, f * ss)), b = o ?? y, x = Math.max(3, Math.floor((b - as) / is)), S = (e) => e.length <= x ? e : `${e.slice(0, x - 1).trimEnd()}…`, C = Math.max(0, f - b - 28), w = u - 6 - 26, T = e.length ? w / e.length : 0, E = Math.min(T * .62, 22), D = (e) => b + e / _ * C, O = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
9191
9243
  return /* @__PURE__ */ h("div", {
9192
9244
  ...l,
9193
9245
  className: `select-chart-wrap${c ? " " + c : ""}`,
@@ -9216,7 +9268,7 @@ function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
9216
9268
  })]
9217
9269
  }, t);
9218
9270
  }) }),
9219
- Ao(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9271
+ jo(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9220
9272
  x1: D(e),
9221
9273
  x2: D(e),
9222
9274
  y1: 6,
@@ -9262,7 +9314,7 @@ function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
9262
9314
  onMouseLeave: p.hide
9263
9315
  }),
9264
9316
  /* @__PURE__ */ h("text", {
9265
- x: b - is / 2,
9317
+ x: b - as / 2,
9266
9318
  y: n,
9267
9319
  className: "select-chart__ylabel",
9268
9320
  dominantBaseline: "middle",
@@ -9277,7 +9329,7 @@ function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
9277
9329
  }
9278
9330
  //#endregion
9279
9331
  //#region src/SelectWaterfall.tsx
9280
- function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9332
+ function ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9281
9333
  let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
9282
9334
  if (e.total) return u = e.value, {
9283
9335
  ...e,
@@ -9290,7 +9342,7 @@ function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9290
9342
  start: t,
9291
9343
  end: u
9292
9344
  };
9293
- }), f = ko(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = zo, g = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? g / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
9345
+ }), f = Ao(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Bo, g = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? g / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
9294
9346
  total: "var(--select-chart-1)",
9295
9347
  inc: "var(--select-chart-4)",
9296
9348
  dec: "var(--select-chart-3)"
@@ -9324,7 +9376,7 @@ function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9324
9376
  stopOpacity: .62
9325
9377
  })]
9326
9378
  }, e)) }),
9327
- Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9379
+ jo(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9328
9380
  x1: p.left,
9329
9381
  x2: o - p.right,
9330
9382
  y1: S(e),
@@ -9392,7 +9444,7 @@ function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9392
9444
  }
9393
9445
  //#endregion
9394
9446
  //#region src/SelectBullet.tsx
9395
- var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
9447
+ var us = (e) => Math.max(0, Math.min(100, e)), ds = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
9396
9448
  return /* @__PURE__ */ m("div", {
9397
9449
  ref: i,
9398
9450
  ...r,
@@ -9430,12 +9482,12 @@ var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, forma
9430
9482
  children: [/* @__PURE__ */ m("span", {
9431
9483
  className: "select-bullet__fill",
9432
9484
  style: {
9433
- width: `${ls(e.value / i * 100)}%`,
9485
+ width: `${us(e.value / i * 100)}%`,
9434
9486
  background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
9435
9487
  }
9436
9488
  }), /* @__PURE__ */ m("span", {
9437
9489
  className: "select-bullet__tick",
9438
- style: { left: `${ls(e.target / i * 100)}%` }
9490
+ style: { left: `${us(e.target / i * 100)}%` }
9439
9491
  })]
9440
9492
  })]
9441
9493
  }, `${e.label}-${n}`);
@@ -9444,7 +9496,7 @@ var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, forma
9444
9496
  });
9445
9497
  //#endregion
9446
9498
  //#region src/SelectTreemap.tsx
9447
- function ds(e, t, n) {
9499
+ function fs(e, t, n) {
9448
9500
  let r = [], i = (e, t) => {
9449
9501
  let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
9450
9502
  return Math.max(t * t * r / (n * n), n * n / (t * t * i));
@@ -9495,8 +9547,8 @@ function ds(e, t, n) {
9495
9547
  };
9496
9548
  return a(e.map((e, t) => t), 0, 0, t, n), r;
9497
9549
  }
9498
- function fs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9499
- let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? ds(u.map((t) => e[t].value), o, t) : [];
9550
+ function ps({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9551
+ let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? fs(u.map((t) => e[t].value), o, t) : [];
9500
9552
  return /* @__PURE__ */ h("div", {
9501
9553
  ...i,
9502
9554
  className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
@@ -9566,8 +9618,8 @@ function fs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9566
9618
  }
9567
9619
  //#endregion
9568
9620
  //#region src/SelectScatter.tsx
9569
- function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
9570
- let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = ko(i ?? Math.max(0, ...f.map((e) => e.x))), g = ko(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = zo, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
9621
+ function ms({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
9622
+ let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = Ao(i ?? Math.max(0, ...f.map((e) => e.x))), g = Ao(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Bo, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
9571
9623
  return /* @__PURE__ */ h("div", {
9572
9624
  ...c,
9573
9625
  className: `select-chart-wrap${s ? " " + s : ""}`,
@@ -9577,7 +9629,7 @@ function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
9577
9629
  height: t,
9578
9630
  className: "select-chart",
9579
9631
  children: [
9580
- Ao(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9632
+ jo(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9581
9633
  x1: v.left,
9582
9634
  x2: u - v.right,
9583
9635
  y1: C(e),
@@ -9591,7 +9643,7 @@ function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
9591
9643
  textAnchor: "end",
9592
9644
  children: r(e)
9593
9645
  })] }, `y${t}`)),
9594
- Ao(p).map((e, r, i) => /* @__PURE__ */ m("text", {
9646
+ jo(p).map((e, r, i) => /* @__PURE__ */ m("text", {
9595
9647
  x: S(e),
9596
9648
  y: t - v.bottom + 16,
9597
9649
  className: "select-chart__xlabel",
@@ -9638,8 +9690,8 @@ function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
9638
9690
  }
9639
9691
  //#endregion
9640
9692
  //#region src/SelectRadar.tsx
9641
- var ms = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
9642
- let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? ko(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
9693
+ var hs = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
9694
+ let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Ao(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
9643
9695
  return /* @__PURE__ */ h("div", {
9644
9696
  ref: u,
9645
9697
  ...l,
@@ -9748,7 +9800,7 @@ var ms = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
9748
9800
  });
9749
9801
  //#endregion
9750
9802
  //#region src/SelectSankey.tsx
9751
- function hs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
9803
+ function gs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
9752
9804
  let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
9753
9805
  for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
9754
9806
  let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), g = t - 12, _ = Math.max(u.length, d.length), v = (g - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
@@ -9833,8 +9885,8 @@ function hs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
9833
9885
  }
9834
9886
  //#endregion
9835
9887
  //#region src/SelectCandlestick.tsx
9836
- function gs({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
9837
- let { ref: s, width: c } = Y(t), l = Q(), u = zo, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
9888
+ function _s({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
9889
+ let { ref: s, width: c } = Y(t), l = Q(), u = Bo, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
9838
9890
  return /* @__PURE__ */ h("div", {
9839
9891
  ...o,
9840
9892
  className: `select-chart-wrap${a ? " " + a : ""}`,
@@ -9923,8 +9975,8 @@ function gs({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
9923
9975
  }
9924
9976
  //#endregion
9925
9977
  //#region src/SelectBoxPlot.tsx
9926
- function _s({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9927
- let { ref: a, width: o } = Y(t), s = Q(), c = zo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ko(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
9978
+ function vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9979
+ let { ref: a, width: o } = Y(t), s = Q(), c = Bo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Ao(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
9928
9980
  return /* @__PURE__ */ h("div", {
9929
9981
  ...i,
9930
9982
  className: `select-chart-wrap${r ? " " + r : ""}`,
@@ -9933,7 +9985,7 @@ function _s({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
9933
9985
  width: o,
9934
9986
  height: t,
9935
9987
  className: "select-chart",
9936
- children: [Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9988
+ children: [jo(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
9937
9989
  x1: c.left,
9938
9990
  x2: o - c.right,
9939
9991
  y1: p(e),
@@ -10043,7 +10095,7 @@ function _s({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
10043
10095
  }
10044
10096
  //#endregion
10045
10097
  //#region src/SelectRangeBar.tsx
10046
- function vs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
10098
+ function ys({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
10047
10099
  let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Y(l), f = Q(), p = s(), g = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - g || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - g) / _ * y, w = Array.from({ length: 5 }, (e, t) => g + _ * t / 4);
10048
10100
  return /* @__PURE__ */ h("div", {
10049
10101
  ...c,
@@ -10124,7 +10176,7 @@ function vs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
10124
10176
  }
10125
10177
  //#endregion
10126
10178
  //#region src/SelectCalendarHeatmap.tsx
10127
- var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
10179
+ var bs = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
10128
10180
  "Seg",
10129
10181
  "",
10130
10182
  "Qua",
@@ -10197,8 +10249,8 @@ var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
10197
10249
  ]
10198
10250
  }), /* @__PURE__ */ m($, { tip: p.tip })]
10199
10251
  });
10200
- }), bs = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
10201
- let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = ko(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
10252
+ }), xs = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
10253
+ let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Ao(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
10202
10254
  return /* @__PURE__ */ h("div", {
10203
10255
  ref: s,
10204
10256
  ...o,
@@ -10228,7 +10280,7 @@ var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
10228
10280
  }, t)), e.map((e, t) => {
10229
10281
  let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, g(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
10230
10282
  return /* @__PURE__ */ m("path", {
10231
- d: Lo(l, u, o, 0, r, i),
10283
+ d: Ro(l, u, o, 0, r, i),
10232
10284
  fill: a,
10233
10285
  fillOpacity: .8,
10234
10286
  className: "select-chart__seg",
@@ -10271,13 +10323,13 @@ var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
10271
10323
  });
10272
10324
  //#endregion
10273
10325
  //#region src/SelectSlope.tsx
10274
- function xs({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
10326
+ function Ss({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
10275
10327
  let { ref: s, width: c } = Y(r), l = Q(), u = {
10276
10328
  top: 24,
10277
10329
  right: 64,
10278
10330
  bottom: 12,
10279
10331
  left: 132
10280
- }, d = ko(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, g = u.left, _ = c - u.right;
10332
+ }, d = Ao(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, g = u.left, _ = c - u.right;
10281
10333
  return /* @__PURE__ */ h("div", {
10282
10334
  ...o,
10283
10335
  className: `select-chart-wrap${a ? " " + a : ""}`,
@@ -10393,8 +10445,8 @@ function xs({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
10393
10445
  }
10394
10446
  //#endregion
10395
10447
  //#region src/SelectDumbbell.tsx
10396
- function Ss({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
10397
- let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = ko(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
10448
+ function Cs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
10449
+ let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = Ao(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
10398
10450
  return /* @__PURE__ */ h("div", {
10399
10451
  ...s,
10400
10452
  className: `select-chart-wrap${o ? " " + o : ""}`,
@@ -10403,7 +10455,7 @@ function Ss({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
10403
10455
  width: u,
10404
10456
  height: c,
10405
10457
  className: "select-chart",
10406
- children: [Ao(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
10458
+ children: [jo(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
10407
10459
  x1: x(e),
10408
10460
  x2: x(e),
10409
10461
  y1: 6,
@@ -10486,7 +10538,7 @@ function Ss({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
10486
10538
  }
10487
10539
  //#endregion
10488
10540
  //#region src/SelectMarimekko.tsx
10489
- function Cs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
10541
+ function ws({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
10490
10542
  let { ref: o, width: s } = Y(t), c = Q(), l = {
10491
10543
  top: 6,
10492
10544
  right: 6,
@@ -10566,7 +10618,7 @@ function Cs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
10566
10618
  }
10567
10619
  //#endregion
10568
10620
  //#region src/SelectGaugeBands.tsx
10569
- var ws = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness: i, label: a, format: o = (e) => `${Math.round(e)}`, className: s, ...c }, l) {
10621
+ var Ts = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness: i, label: a, format: o = (e) => `${Math.round(e)}`, className: s, ...c }, l) {
10570
10622
  let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, g = r / 2, _ = g + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
10571
10623
  let t = Math.PI + e * Math.PI;
10572
10624
  return [p + f * Math.cos(t), g + f * Math.sin(t)];
@@ -10638,7 +10690,7 @@ var ws = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
10638
10690
  });
10639
10691
  //#endregion
10640
10692
  //#region src/SelectStreamGraph.tsx
10641
- function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
10693
+ function Es({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
10642
10694
  let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
10643
10695
  top: 14,
10644
10696
  right: 14,
@@ -10682,7 +10734,7 @@ function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i
10682
10734
  })]
10683
10735
  }, t)) }),
10684
10736
  w.map((e, t) => /* @__PURE__ */ m("path", {
10685
- d: Fo(e.upper, e.lower),
10737
+ d: Io(e.upper, e.lower),
10686
10738
  fill: `url(#${u}-st${t})`,
10687
10739
  className: "select-chart__area"
10688
10740
  }, t)),
@@ -10729,7 +10781,7 @@ function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i
10729
10781
  }
10730
10782
  //#endregion
10731
10783
  //#region src/SelectSunburst.tsx
10732
- var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
10784
+ var Ds = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
10733
10785
  let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
10734
10786
  var t;
10735
10787
  return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
@@ -10755,7 +10807,7 @@ var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
10755
10807
  _ += r;
10756
10808
  let a = _ / g * 360, o = e.color ?? X(t), v = i;
10757
10809
  return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
10758
- d: Lo(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
10810
+ d: Ro(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
10759
10811
  fill: o,
10760
10812
  className: "select-chart__seg",
10761
10813
  onMouseEnter: () => s.show({
@@ -10775,7 +10827,7 @@ var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
10775
10827
  v += t.value / g * 360;
10776
10828
  let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
10777
10829
  return /* @__PURE__ */ m("path", {
10778
- d: Lo(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
10830
+ d: Ro(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
10779
10831
  fill: p,
10780
10832
  fillOpacity: h,
10781
10833
  className: "select-chart__seg",
@@ -10822,8 +10874,8 @@ var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
10822
10874
  });
10823
10875
  //#endregion
10824
10876
  //#region src/SelectViolin.tsx
10825
- function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
10826
- let { ref: a, width: o } = Y(t), s = Q(), c = zo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ko(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
10877
+ function Os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
10878
+ let { ref: a, width: o } = Y(t), s = Q(), c = Bo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Ao(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
10827
10879
  return /* @__PURE__ */ h("div", {
10828
10880
  ...i,
10829
10881
  className: `select-chart-wrap${r ? " " + r : ""}`,
@@ -10832,7 +10884,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
10832
10884
  width: o,
10833
10885
  height: t,
10834
10886
  className: "select-chart",
10835
- children: [Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
10887
+ children: [jo(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
10836
10888
  x1: c.left,
10837
10889
  x2: o - c.right,
10838
10890
  y1: p(e),
@@ -10849,7 +10901,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
10849
10901
  let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], g = [];
10850
10902
  for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
10851
10903
  for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
10852
- let b = `${Mo(f)} ${Mo(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
10904
+ let b = `${No(f)} ${No(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
10853
10905
  return /* @__PURE__ */ h("g", { children: [
10854
10906
  /* @__PURE__ */ m("path", {
10855
10907
  d: b,
@@ -10910,7 +10962,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
10910
10962
  }
10911
10963
  //#endregion
10912
10964
  //#region src/SelectChord.tsx
10913
- var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
10965
+ var ks = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
10914
10966
  let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, g = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = g.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
10915
10967
  for (let e = 0; e < l; e++) {
10916
10968
  let t = b, n = b + g[e] * v;
@@ -10977,7 +11029,7 @@ var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
10977
11029
  }, n)), y.map((e, n) => {
10978
11030
  let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
10979
11031
  return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
10980
- d: Lo(u, d, f, p, w(e.a0), w(e.a1)),
11032
+ d: Ro(u, d, f, p, w(e.a0), w(e.a1)),
10981
11033
  fill: X(n),
10982
11034
  className: "select-chord__arc"
10983
11035
  }), /* @__PURE__ */ m("text", {
@@ -10995,7 +11047,7 @@ var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
10995
11047
  });
10996
11048
  //#endregion
10997
11049
  //#region src/SelectHexbin.tsx
10998
- function ks({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
11050
+ function As({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
10999
11051
  let { ref: l, width: u } = Y(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, g = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / g * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
11000
11052
  let n = e, r = t, i = -n - r, a = Math.round(n), o = Math.round(i), s = Math.round(r), c = Math.abs(a - n), l = Math.abs(o - i), u = Math.abs(s - r);
11001
11053
  return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
@@ -11047,7 +11099,7 @@ function ks({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
11047
11099
  }
11048
11100
  //#endregion
11049
11101
  //#region src/SelectWordCloud.tsx
11050
- var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
11102
+ var js = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
11051
11103
  let o = e.map((e) => e.value), s = Math.max(1, ...o), c = Math.min(...o), l = s - c || 1, u = (e) => t + (e - c) / l * (n - t);
11052
11104
  return /* @__PURE__ */ m("div", {
11053
11105
  ref: a,
@@ -11064,7 +11116,7 @@ var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
11064
11116
  children: e.text
11065
11117
  }, `${e.text}-${t}`))
11066
11118
  });
11067
- }), js = [
11119
+ }), Ms = [
11068
11120
  [
11069
11121
  -59.6,
11070
11122
  -80,
@@ -21459,24 +21511,24 @@ var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
21459
21511
  -27.1,
21460
21512
  83.5
21461
21513
  ]
21462
- ], Ms = Math.PI / 180;
21463
- function Ns(e, t) {
21464
- let n = e * Ms, r = t * Ms;
21514
+ ], Ns = Math.PI / 180;
21515
+ function Ps(e, t) {
21516
+ let n = e * Ns, r = t * Ns;
21465
21517
  return [
21466
21518
  Math.cos(n) * Math.sin(r),
21467
21519
  Math.sin(n),
21468
21520
  Math.cos(n) * Math.cos(r)
21469
21521
  ];
21470
21522
  }
21471
- function Ps([e, t, n], r, i) {
21472
- let a = r * Ms, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Ms;
21523
+ function Fs([e, t, n], r, i) {
21524
+ let a = r * Ns, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Ns;
21473
21525
  return [
21474
21526
  o,
21475
21527
  t * Math.cos(c) - s * Math.sin(c),
21476
21528
  t * Math.sin(c) + s * Math.cos(c)
21477
21529
  ];
21478
21530
  }
21479
- function Fs(e, t, n) {
21531
+ function Is(e, t, n) {
21480
21532
  let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
21481
21533
  r = Math.max(-1, Math.min(1, r));
21482
21534
  let i = Math.acos(r);
@@ -21488,9 +21540,9 @@ function Fs(e, t, n) {
21488
21540
  e[2] * o + t[2] * s
21489
21541
  ];
21490
21542
  }
21491
- var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Ls = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
21543
+ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Rs = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
21492
21544
  var S, C;
21493
- let w = s(), T = Q(), E = u(null), D = Oo(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
21545
+ let w = s(), T = Q(), E = u(null), D = ko(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
21494
21546
  lng: -O,
21495
21547
  lat: r
21496
21548
  }), j = u({
@@ -21549,7 +21601,7 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
21549
21601
  var t, n;
21550
21602
  P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ne(!1), re());
21551
21603
  }, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, oe = (e) => {
21552
- let t = Ps(e, A.current.lng, A.current.lat);
21604
+ let t = Fs(e, A.current.lng, A.current.lat);
21553
21605
  return {
21554
21606
  x: G + W * t[0],
21555
21607
  y: K - W * t[1],
@@ -21559,25 +21611,25 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
21559
21611
  let e = [];
21560
21612
  for (let t = -180; t < 180; t += 30) {
21561
21613
  let n = [];
21562
- for (let e = 0; e <= 48; e++) n.push(Ns(-90 + 180 * e / 48, t));
21614
+ for (let e = 0; e <= 48; e++) n.push(Ps(-90 + 180 * e / 48, t));
21563
21615
  e.push(n);
21564
21616
  }
21565
21617
  for (let t = -60; t <= 60; t += 30) {
21566
21618
  let n = [];
21567
- for (let e = 0; e <= 48; e++) n.push(Ns(t, -180 + 360 * e / 48));
21619
+ for (let e = 0; e <= 48; e++) n.push(Ps(t, -180 + 360 * e / 48));
21568
21620
  e.push(n);
21569
21621
  }
21570
21622
  return e;
21571
- }, []), ce = l(() => js.map((e) => {
21623
+ }, []), ce = l(() => Ms.map((e) => {
21572
21624
  let t = [];
21573
- for (let n = 0; n < e.length; n += 2) t.push(Ns(e[n + 1], e[n]));
21625
+ for (let n = 0; n < e.length; n += 2) t.push(Ps(e[n + 1], e[n]));
21574
21626
  return t;
21575
21627
  }), []), q = (e) => ({
21576
21628
  x: G + W * e[0],
21577
21629
  y: K - W * e[1]
21578
21630
  }), le = "", ue = "";
21579
21631
  if (g) for (let e of ce) {
21580
- let t = e.map((e) => Ps(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
21632
+ let t = e.map((e) => Fs(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
21581
21633
  for (let e of t) if (e[2] > 0) {
21582
21634
  let t = q(e);
21583
21635
  ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
@@ -21625,7 +21677,7 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
21625
21677
  }
21626
21678
  return t;
21627
21679
  }, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
21628
- let n = oe(Ns(e.lat, e.lng));
21680
+ let n = oe(Ps(e.lat, e.lng));
21629
21681
  return {
21630
21682
  ...e,
21631
21683
  i: t,
@@ -21635,20 +21687,20 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
21635
21687
  col: e.color ?? c
21636
21688
  };
21637
21689
  }), me = z == null ? null : e[z], he = t.map((e, t) => {
21638
- let n = Ns(e.from.lat, e.from.lng), r = Ns(e.to.lat, e.to.lng), i = "", a = !1;
21690
+ let n = Ps(e.from.lat, e.from.lng), r = Ps(e.to.lat, e.to.lng), i = "", a = !1;
21639
21691
  for (let e = 0; e <= 40; e++) {
21640
- let t = e / 40, o = Fs(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Ps(o, A.current.lng, A.current.lat), l = oe([
21692
+ let t = e / 40, o = Is(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Fs(o, A.current.lng, A.current.lat), l = oe([
21641
21693
  o[0] * s,
21642
21694
  o[1] * s,
21643
21695
  o[2] * s
21644
21696
  ]);
21645
21697
  c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
21646
21698
  }
21647
- let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Fs(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Ps(s, A.current.lng, A.current.lat), d = oe([
21699
+ let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Is(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Fs(s, A.current.lng, A.current.lat), d = oe([
21648
21700
  s[0] * l,
21649
21701
  s[1] * l,
21650
21702
  s[2] * l
21651
- ]), f = me != null && (Is(e.from, me) || Is(e.to, me));
21703
+ ]), f = me != null && (Ls(e.from, me) || Ls(e.to, me));
21652
21704
  return {
21653
21705
  d: i,
21654
21706
  col: e.color ?? c,
@@ -21922,8 +21974,8 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
21922
21974
  });
21923
21975
  //#endregion
21924
21976
  //#region src/SelectTicker.tsx
21925
- function Rs({ children: e, speed: t = 28, className: n, ...r }) {
21926
- let i = u(null), a = u(null), s = u(null), c = Oo(i, 0), l = Oo(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
21977
+ function zs({ children: e, speed: t = 28, className: n, ...r }) {
21978
+ let i = u(null), a = u(null), s = u(null), c = ko(i, 0), l = ko(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
21927
21979
  o(() => {
21928
21980
  var e, n;
21929
21981
  let r = a.current;
@@ -21984,12 +22036,12 @@ function Rs({ children: e, speed: t = 28, className: n, ...r }) {
21984
22036
  }
21985
22037
  //#endregion
21986
22038
  //#region src/SelectPareto.tsx
21987
- function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22039
+ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
21988
22040
  var a;
21989
22041
  let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
21990
- ...zo,
22042
+ ...Bo,
21991
22043
  right: 44
21992
- }, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w = ko(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = g.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => g.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
22044
+ }, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w = Ao(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = g.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => g.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
21993
22045
  return /* @__PURE__ */ h("div", {
21994
22046
  ...i,
21995
22047
  className: `select-chart-wrap${r ? " " + r : ""}`,
@@ -22018,7 +22070,7 @@ function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22018
22070
  stopOpacity: .55
22019
22071
  })]
22020
22072
  }) }),
22021
- Ao(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
22073
+ jo(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
22022
22074
  x1: g.left,
22023
22075
  x2: c - g.right,
22024
22076
  y1: O(e),
@@ -22082,7 +22134,7 @@ function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22082
22134
  }, t);
22083
22135
  }),
22084
22136
  /* @__PURE__ */ m("path", {
22085
- d: No(j),
22137
+ d: Po(j),
22086
22138
  fill: "none",
22087
22139
  stroke: N,
22088
22140
  strokeWidth: 2,
@@ -22110,7 +22162,7 @@ function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22110
22162
  }
22111
22163
  //#endregion
22112
22164
  //#region src/SelectWaffle.tsx
22113
- var Bs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
22165
+ var Vs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
22114
22166
  let s = e.reduce((e, t) => e + t.value, 0) || 1, c = t * n, l = e.map((e) => e.value / s * c), u = l.map(Math.floor), d = u.reduce((e, t) => e + t, 0), f = l.map((e, t) => ({
22115
22167
  i: t,
22116
22168
  frac: e - u[t]
@@ -22159,7 +22211,7 @@ var Bs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
22159
22211
  });
22160
22212
  //#endregion
22161
22213
  //#region src/SelectPyramid.tsx
22162
- function Vs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
22214
+ function Hs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
22163
22215
  let u = r ?? Math.max(180, e.length * 40 + 36), { ref: f, width: p } = Y(u), g = Q(), [_, v] = d(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
22164
22216
  return /* @__PURE__ */ h("div", {
22165
22217
  ...l,
@@ -22267,7 +22319,7 @@ function Vs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
22267
22319
  }
22268
22320
  //#endregion
22269
22321
  //#region src/SelectBump.tsx
22270
- function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
22322
+ function Us({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
22271
22323
  let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
22272
22324
  top: 16,
22273
22325
  right: 78,
@@ -22304,7 +22356,7 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
22304
22356
  style: { opacity: l === null || l === n ? 1 : .22 },
22305
22357
  children: [
22306
22358
  /* @__PURE__ */ m("path", {
22307
- d: No(a),
22359
+ d: Po(a),
22308
22360
  fill: "none",
22309
22361
  stroke: i,
22310
22362
  strokeWidth: l === n ? 3.5 : 2.5,
@@ -22352,7 +22404,7 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
22352
22404
  }
22353
22405
  //#endregion
22354
22406
  //#region src/SelectParallel.tsx
22355
- function Us({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
22407
+ function Ws({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
22356
22408
  let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
22357
22409
  top: 30,
22358
22410
  right: 28,
@@ -22444,25 +22496,25 @@ function Us({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
22444
22496
  }
22445
22497
  //#endregion
22446
22498
  //#region src/SelectIcicle.tsx
22447
- function Ws(e) {
22448
- return e.children && e.children.length ? e.children.reduce((e, t) => e + Ws(t), 0) : e.value ?? 0;
22499
+ function Gs(e) {
22500
+ return e.children && e.children.length ? e.children.reduce((e, t) => e + Gs(t), 0) : e.value ?? 0;
22449
22501
  }
22450
- function Gs(e, t = 0) {
22451
- return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => Gs(e, t + 1)));
22502
+ function Ks(e, t = 0) {
22503
+ return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => Ks(e, t + 1)));
22452
22504
  }
22453
- function Ks({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22454
- let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = Gs(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
22505
+ function qs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22506
+ let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = Ks(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
22455
22507
  if (p.push({
22456
22508
  node: e,
22457
22509
  x0: t,
22458
22510
  x1: n,
22459
22511
  depth: r,
22460
22512
  color: e.color ?? X(i),
22461
- value: Ws(e)
22513
+ value: Gs(e)
22462
22514
  }), e.children && e.children.length) {
22463
- let a = e.children.reduce((e, t) => e + Ws(t), 0) || 1, o = t;
22515
+ let a = e.children.reduce((e, t) => e + Gs(t), 0) || 1, o = t;
22464
22516
  e.children.forEach((e, s) => {
22465
- let c = (n - t) * Ws(e) / a;
22517
+ let c = (n - t) * Gs(e) / a;
22466
22518
  g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
22467
22519
  });
22468
22520
  }
@@ -22523,7 +22575,7 @@ function Ks({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
22523
22575
  }
22524
22576
  //#endregion
22525
22577
  //#region src/SelectTree.tsx
22526
- function qs({ data: e, height: t = 260, className: n, ...r }) {
22578
+ function Js({ data: e, height: t = 260, className: n, ...r }) {
22527
22579
  let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
22528
22580
  top: 14,
22529
22581
  right: 96,
@@ -22601,7 +22653,7 @@ function qs({ data: e, height: t = 260, className: n, ...r }) {
22601
22653
  }
22602
22654
  //#endregion
22603
22655
  //#region src/SelectVenn.tsx
22604
- var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
22656
+ var Ys = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
22605
22657
  let a = Math.min(3, e.length), o = t / 2, s = t / 2, c = Math.max(1, ...e.slice(0, a).map((e) => e.size)), l = t * .26, u = (e) => l * .45 + l * .55 * Math.sqrt(e.size / c), d = a <= 2 ? [[o - l * .42, s], [o + l * .42, s]] : [
22606
22658
  [o, s - l * .5],
22607
22659
  [o - l * .5, s + l * .36],
@@ -22666,7 +22718,7 @@ var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
22666
22718
  }, t))
22667
22719
  })]
22668
22720
  });
22669
- }), Ys = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
22721
+ }), Xs = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
22670
22722
  let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
22671
22723
  d: e,
22672
22724
  i: t,
@@ -22769,7 +22821,7 @@ var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
22769
22821
  });
22770
22822
  //#endregion
22771
22823
  //#region src/SelectNetwork.tsx
22772
- function Xs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
22824
+ function Zs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
22773
22825
  let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
22774
22826
  let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
22775
22827
  if (!a) return o;
@@ -22882,8 +22934,73 @@ function Xs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
22882
22934
  });
22883
22935
  }
22884
22936
  //#endregion
22937
+ //#region src/SelectSearchMenu.tsx
22938
+ function Qs({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
22939
+ return /* @__PURE__ */ h("div", {
22940
+ className: "select-combobox__panel select-searchmenu",
22941
+ style: { width: a },
22942
+ children: [
22943
+ /* @__PURE__ */ m("div", {
22944
+ className: "select-combobox__search",
22945
+ children: /* @__PURE__ */ m(Ci, {
22946
+ value: e,
22947
+ onChange: t,
22948
+ placeholder: n
22949
+ })
22950
+ }),
22951
+ r != null && r !== !1 ? /* @__PURE__ */ m("div", {
22952
+ className: "select-combobox__empty",
22953
+ role: "status",
22954
+ children: r
22955
+ }) : /* @__PURE__ */ m($s, { children: o }),
22956
+ i != null && i !== !1 ? /* @__PURE__ */ m("div", {
22957
+ className: "select-searchmenu__footer",
22958
+ children: i
22959
+ }) : null
22960
+ ]
22961
+ });
22962
+ }
22963
+ function $s({ children: e }) {
22964
+ let t = Qt({
22965
+ selector: ".select-combobox__option",
22966
+ y: 6,
22967
+ duration: .3,
22968
+ stagger: .02
22969
+ });
22970
+ return /* @__PURE__ */ m("div", {
22971
+ className: "select-combobox__list",
22972
+ role: "listbox",
22973
+ ref: t,
22974
+ children: e
22975
+ });
22976
+ }
22977
+ function ec({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
22978
+ return /* @__PURE__ */ h("button", {
22979
+ type: "button",
22980
+ role: "option",
22981
+ "aria-selected": n,
22982
+ disabled: r,
22983
+ className: `select-combobox__option${n ? " is-selected" : ""}`,
22984
+ onClick: i,
22985
+ children: [/* @__PURE__ */ h("span", {
22986
+ className: "select-combobox__optiontext",
22987
+ children: [/* @__PURE__ */ m("span", {
22988
+ className: "select-combobox__optionlabel",
22989
+ children: e
22990
+ }), t != null && t !== "" ? /* @__PURE__ */ m("span", {
22991
+ className: "select-combobox__optionsecondary",
22992
+ children: t
22993
+ }) : null]
22994
+ }), n ? /* @__PURE__ */ m("span", {
22995
+ className: "select-combobox__check",
22996
+ "aria-hidden": "true",
22997
+ children: /* @__PURE__ */ m(Ve, {})
22998
+ }) : null]
22999
+ });
23000
+ }
23001
+ //#endregion
22885
23002
  //#region src/SelectThemeSwitcher.tsx
22886
- var Zs = [
23003
+ var tc = [
22887
23004
  {
22888
23005
  value: "light",
22889
23006
  label: "Claro",
@@ -22900,15 +23017,15 @@ var Zs = [
22900
23017
  icon: /* @__PURE__ */ m(ke, {})
22901
23018
  }
22902
23019
  ];
22903
- function Qs(e) {
23020
+ function nc(e) {
22904
23021
  if (e === "system") {
22905
23022
  var t, n;
22906
23023
  return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
22907
23024
  }
22908
23025
  return e;
22909
23026
  }
22910
- function $s({ value: e, onChange: t, className: n, ...r }) {
22911
- let [i, a] = d(!1), s = u(null), c = Zs.find((t) => t.value === e) ?? Zs[2];
23027
+ function rc({ value: e, onChange: t, className: n, ...r }) {
23028
+ let [i, a] = d(!1), s = u(null), c = tc.find((t) => t.value === e) ?? tc[2];
22912
23029
  return o(() => {
22913
23030
  if (!i) return;
22914
23031
  let e = (e) => {
@@ -22919,7 +23036,7 @@ function $s({ value: e, onChange: t, className: n, ...r }) {
22919
23036
  ...r,
22920
23037
  className: `select-themeswitcher${n ? " " + n : ""}`,
22921
23038
  ref: s,
22922
- children: [/* @__PURE__ */ m(Gi, {
23039
+ children: [/* @__PURE__ */ m(Ki, {
22923
23040
  active: i,
22924
23041
  onClick: () => a((e) => !e),
22925
23042
  children: /* @__PURE__ */ h("span", {
@@ -22928,7 +23045,7 @@ function $s({ value: e, onChange: t, className: n, ...r }) {
22928
23045
  })
22929
23046
  }), i && /* @__PURE__ */ m("div", {
22930
23047
  className: "select-themeswitcher__popover",
22931
- children: /* @__PURE__ */ m(Bi, { children: Zs.map((n) => /* @__PURE__ */ m(Vi, {
23048
+ children: /* @__PURE__ */ m(Vi, { children: tc.map((n) => /* @__PURE__ */ m(Hi, {
22932
23049
  icon: n.icon,
22933
23050
  active: n.value === e,
22934
23051
  trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
@@ -22942,8 +23059,8 @@ function $s({ value: e, onChange: t, className: n, ...r }) {
22942
23059
  }
22943
23060
  //#endregion
22944
23061
  //#region src/SelectDetail.tsx
22945
- var ec = n(!1);
22946
- function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
23062
+ var ic = n(!1);
23063
+ function ac({ children: e, stacked: t = !1, loading: n = !1 }) {
22947
23064
  let r = Qt({
22948
23065
  selector: ".select-detail",
22949
23066
  y: 8,
@@ -22951,7 +23068,7 @@ function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
22951
23068
  stagger: .05,
22952
23069
  scroll: !0
22953
23070
  });
22954
- return /* @__PURE__ */ m(ec.Provider, {
23071
+ return /* @__PURE__ */ m(ic.Provider, {
22955
23072
  value: n,
22956
23073
  children: /* @__PURE__ */ m("div", {
22957
23074
  className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
@@ -22960,8 +23077,8 @@ function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
22960
23077
  })
22961
23078
  });
22962
23079
  }
22963
- var nc = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
22964
- let l = a(ec), u = i ?? l;
23080
+ var oc = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
23081
+ let l = a(ic), u = i ?? l;
22965
23082
  return /* @__PURE__ */ h("div", {
22966
23083
  ref: c,
22967
23084
  ...s,
@@ -22981,7 +23098,7 @@ var nc = r(function({ label: e, children: t, action: n, align: r = "center", loa
22981
23098
  })
22982
23099
  ]
22983
23100
  });
22984
- }), rc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
23101
+ }), sc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
22985
23102
  let s = r === "vertical";
22986
23103
  return /* @__PURE__ */ m("ol", {
22987
23104
  ref: o,
@@ -23020,7 +23137,7 @@ var nc = r(function({ label: e, children: t, action: n, align: r = "center", loa
23020
23137
  });
23021
23138
  //#endregion
23022
23139
  //#region src/SelectSetupGuide.tsx
23023
- function ic({ status: e }) {
23140
+ function cc({ status: e }) {
23024
23141
  return /* @__PURE__ */ m("span", {
23025
23142
  className: `select-setupguide__icon select-setupguide__icon--${e}`,
23026
23143
  "aria-hidden": "true",
@@ -23039,13 +23156,13 @@ function ic({ status: e }) {
23039
23156
  })
23040
23157
  });
23041
23158
  }
23042
- var ac = {
23159
+ var lc = {
23043
23160
  done: "feito",
23044
23161
  todo: "a fazer",
23045
23162
  next: "próximo passo",
23046
23163
  skipped: "pulado",
23047
23164
  waiting: "aguardando"
23048
- }, oc = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
23165
+ }, uc = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
23049
23166
  let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
23050
23167
  return /* @__PURE__ */ h("section", {
23051
23168
  ref: u,
@@ -23108,14 +23225,14 @@ var ac = {
23108
23225
  children: e.steps.map((e) => /* @__PURE__ */ h("li", {
23109
23226
  className: `select-setupguide__step is-${e.status}`,
23110
23227
  children: [
23111
- /* @__PURE__ */ m(ic, { status: e.status }),
23228
+ /* @__PURE__ */ m(cc, { status: e.status }),
23112
23229
  /* @__PURE__ */ h("span", {
23113
23230
  className: "select-setupguide__text",
23114
23231
  children: [/* @__PURE__ */ h("span", {
23115
23232
  className: "select-setupguide__steptitle",
23116
23233
  children: [e.title, /* @__PURE__ */ h("span", {
23117
23234
  className: "select-setupguide__sr",
23118
- children: [" — ", ac[e.status]]
23235
+ children: [" — ", lc[e.status]]
23119
23236
  })]
23120
23237
  }), e.description && /* @__PURE__ */ m("span", {
23121
23238
  className: "select-setupguide__stepdesc",
@@ -23134,7 +23251,7 @@ var ac = {
23134
23251
  })]
23135
23252
  });
23136
23253
  });
23137
- function sc({ eyebrow: e, title: t, children: n, actions: r }) {
23254
+ function dc({ eyebrow: e, title: t, children: n, actions: r }) {
23138
23255
  return /* @__PURE__ */ h("div", {
23139
23256
  className: "select-setupnext",
23140
23257
  children: [
@@ -23159,37 +23276,37 @@ function sc({ eyebrow: e, title: t, children: n, actions: r }) {
23159
23276
  }
23160
23277
  //#endregion
23161
23278
  //#region src/SelectTour.tsx
23162
- var cc = 6, lc = 12;
23163
- function uc(e) {
23279
+ var fc = 6, pc = 12;
23280
+ function mc(e) {
23164
23281
  let t = document.querySelector(e);
23165
23282
  if (!t) return null;
23166
23283
  let n = t.getBoundingClientRect();
23167
23284
  return n.width === 0 && n.height === 0 ? null : {
23168
- top: n.top - cc,
23169
- left: n.left - cc,
23285
+ top: n.top - fc,
23286
+ left: n.left - fc,
23170
23287
  width: n.width + 12,
23171
23288
  height: n.height + 12
23172
23289
  };
23173
23290
  }
23174
- function dc(e) {
23291
+ function hc(e) {
23175
23292
  let t = document.querySelector(e);
23176
23293
  if (!t) return !1;
23177
23294
  let n = t.getBoundingClientRect();
23178
23295
  return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
23179
23296
  }
23180
- function fc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
23181
- let s = l(() => e ? t.filter((e) => dc(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
23297
+ function gc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
23298
+ let s = l(() => e ? t.filter((e) => hc(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
23182
23299
  o(() => {
23183
23300
  e && p(0);
23184
23301
  }, [e]);
23185
23302
  let C = s[f], w = f === s.length - 1, T = i(() => {
23186
23303
  if (!C) return;
23187
- let e = uc(C.target);
23304
+ let e = mc(C.target);
23188
23305
  v(e);
23189
23306
  let t = x.current;
23190
23307
  if (!e || !t) return;
23191
- let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + lc, s = e.top;
23192
- o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + lc, s + r > a - 8 && (s = e.top - r - lc)), s = Math.min(Math.max(8, s), a - r - 8), b({
23308
+ let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + pc, s = e.top;
23309
+ o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + pc, s + r > a - 8 && (s = e.top - r - pc)), s = Math.min(Math.max(8, s), a - r - 8), b({
23193
23310
  top: s,
23194
23311
  left: o
23195
23312
  });
@@ -23291,7 +23408,7 @@ function fc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
23291
23408
  }
23292
23409
  //#endregion
23293
23410
  //#region src/SelectPlanCard.tsx
23294
- var pc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summary: i, cta: a, featuresTitle: o, features: s, featured: c = !1, className: l, ...u }, d) {
23411
+ var _c = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summary: i, cta: a, featuresTitle: o, features: s, featured: c = !1, className: l, ...u }, d) {
23295
23412
  return /* @__PURE__ */ h("div", {
23296
23413
  ref: d,
23297
23414
  ...u,
@@ -23346,7 +23463,7 @@ var pc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
23346
23463
  })]
23347
23464
  })]
23348
23465
  });
23349
- }), mc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
23466
+ }), vc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
23350
23467
  return /* @__PURE__ */ h("div", {
23351
23468
  ref: s,
23352
23469
  ...o,
@@ -23382,7 +23499,7 @@ var pc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
23382
23499
  ]
23383
23500
  });
23384
23501
  });
23385
- function hc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
23502
+ function yc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
23386
23503
  let o = /* @__PURE__ */ h(p, { children: [
23387
23504
  e && /* @__PURE__ */ m("span", {
23388
23505
  className: "select-listrow__media",
@@ -23416,7 +23533,7 @@ function hc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
23416
23533
  }
23417
23534
  //#endregion
23418
23535
  //#region src/SelectThumbnail.tsx
23419
- var gc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
23536
+ var bc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
23420
23537
  let [s, c] = d(!1);
23421
23538
  return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
23422
23539
  ref: a,
@@ -23441,8 +23558,8 @@ var gc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
23441
23558
  });
23442
23559
  //#endregion
23443
23560
  //#region src/SelectImageZoomModal.tsx
23444
- function _c({ open: e, onClose: t, src: n, alt: r, title: i }) {
23445
- return /* @__PURE__ */ m(ta, {
23561
+ function xc({ open: e, onClose: t, src: n, alt: r, title: i }) {
23562
+ return /* @__PURE__ */ m(na, {
23446
23563
  open: e,
23447
23564
  onClose: t,
23448
23565
  title: i,
@@ -23460,7 +23577,7 @@ function _c({ open: e, onClose: t, src: n, alt: r, title: i }) {
23460
23577
  }
23461
23578
  //#endregion
23462
23579
  //#region src/SelectZoomThumbnail.tsx
23463
- function vc({ src: e, alt: t = "", size: n = 40, title: r }) {
23580
+ function Sc({ src: e, alt: t = "", size: n = 40, title: r }) {
23464
23581
  let [i, a] = d(!1);
23465
23582
  return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
23466
23583
  type: "button",
@@ -23473,25 +23590,25 @@ function vc({ src: e, alt: t = "", size: n = 40, title: r }) {
23473
23590
  cursor: "zoom-in",
23474
23591
  display: "inline-flex"
23475
23592
  },
23476
- children: /* @__PURE__ */ m(gc, {
23593
+ children: /* @__PURE__ */ m(bc, {
23477
23594
  src: e,
23478
23595
  size: n,
23479
23596
  alt: t
23480
23597
  })
23481
- }), i && /* @__PURE__ */ m(_c, {
23598
+ }), i && /* @__PURE__ */ m(xc, {
23482
23599
  open: !0,
23483
23600
  onClose: () => a(!1),
23484
23601
  src: e,
23485
23602
  alt: t,
23486
23603
  title: r ?? t
23487
- })] }) : /* @__PURE__ */ m(gc, {
23604
+ })] }) : /* @__PURE__ */ m(bc, {
23488
23605
  size: n,
23489
23606
  alt: t
23490
23607
  });
23491
23608
  }
23492
23609
  //#endregion
23493
23610
  //#region src/SelectMediaCell.tsx
23494
- var yc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
23611
+ var Cc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
23495
23612
  return /* @__PURE__ */ h("span", {
23496
23613
  ref: a,
23497
23614
  ...i,
@@ -23513,14 +23630,14 @@ var yc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
23513
23630
  });
23514
23631
  //#endregion
23515
23632
  //#region src/SelectOfflineModal.tsx
23516
- function bc() {
23633
+ function wc() {
23517
23634
  let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
23518
23635
  return o(() => {
23519
23636
  let e = () => t(!1), n = () => t(!0);
23520
23637
  return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
23521
23638
  window.removeEventListener("online", e), window.removeEventListener("offline", n);
23522
23639
  };
23523
- }, []), /* @__PURE__ */ m(ta, {
23640
+ }, []), /* @__PURE__ */ m(na, {
23524
23641
  open: e,
23525
23642
  onClose: () => {},
23526
23643
  showClose: !1,
@@ -23536,7 +23653,7 @@ function bc() {
23536
23653
  }
23537
23654
  //#endregion
23538
23655
  //#region src/SelectKeyValueEditor.tsx
23539
- function xc(e) {
23656
+ function Tc(e) {
23540
23657
  return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
23541
23658
  name: String(e.name ?? e.key ?? ""),
23542
23659
  value: e.value == null ? "" : String(e.value)
@@ -23545,8 +23662,8 @@ function xc(e) {
23545
23662
  value: t == null ? "" : String(t)
23546
23663
  })) : [];
23547
23664
  }
23548
- var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valuePlaceholder: r = "Valor", keyOptions: i, addLabel: a = "Adicionar", max: o, helpText: s = "Linhas vazias serão ignoradas.", className: c, ...l }, u) {
23549
- let d = xc(e), f = (e, n) => t(d.map((t, r) => r === e ? {
23665
+ var Ec = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valuePlaceholder: r = "Valor", keyOptions: i, addLabel: a = "Adicionar", max: o, helpText: s = "Linhas vazias serão ignoradas.", className: c, ...l }, u) {
23666
+ let d = Tc(e), f = (e, n) => t(d.map((t, r) => r === e ? {
23550
23667
  ...t,
23551
23668
  ...n
23552
23669
  } : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
@@ -23610,7 +23727,7 @@ var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
23610
23727
  })
23611
23728
  ]
23612
23729
  });
23613
- }), Cc = (e) => String(e).padStart(2, "0"), wc = {
23730
+ }), Dc = (e) => String(e).padStart(2, "0"), Oc = {
23614
23731
  "en-US": {
23615
23732
  weekdays: [
23616
23733
  "Su",
@@ -23669,34 +23786,34 @@ var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
23669
23786
  to: "Até",
23670
23787
  cancel: "Cancelar",
23671
23788
  apply: "Aplicar",
23672
- formatDate: (e) => `${Cc(e.getDate())} / ${Cc(e.getMonth() + 1)} / ${e.getFullYear()}`
23789
+ formatDate: (e) => `${Dc(e.getDate())} / ${Dc(e.getMonth() + 1)} / ${e.getFullYear()}`
23673
23790
  }
23674
- }, Tc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ec = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Dc = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Oc = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), kc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ac = (e) => {
23791
+ }, kc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ac = (e) => new Date(e.getFullYear(), e.getMonth(), 1), jc = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Mc = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Nc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Pc = (e) => {
23675
23792
  let t = /* @__PURE__ */ new Date();
23676
23793
  return {
23677
23794
  from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
23678
23795
  to: t
23679
23796
  };
23680
- }, jc = [
23797
+ }, Fc = [
23681
23798
  {
23682
23799
  id: "15m",
23683
23800
  label: "Last 15 minutes",
23684
- range: () => Ac(15)
23801
+ range: () => Pc(15)
23685
23802
  },
23686
23803
  {
23687
23804
  id: "1h",
23688
23805
  label: "Last 1 hour",
23689
- range: () => Ac(60)
23806
+ range: () => Pc(60)
23690
23807
  },
23691
23808
  {
23692
23809
  id: "3h",
23693
23810
  label: "Last 3 hours",
23694
- range: () => Ac(180)
23811
+ range: () => Pc(180)
23695
23812
  },
23696
23813
  {
23697
23814
  id: "24h",
23698
23815
  label: "Last 24 hours",
23699
- range: () => Ac(1440)
23816
+ range: () => Pc(1440)
23700
23817
  },
23701
23818
  {
23702
23819
  id: "3d",
@@ -23712,78 +23829,78 @@ var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
23712
23829
  id: "all",
23713
23830
  label: "All",
23714
23831
  range: () => ({
23715
- from: Tc(/* @__PURE__ */ new Date()),
23716
- to: Tc(/* @__PURE__ */ new Date())
23832
+ from: kc(/* @__PURE__ */ new Date()),
23833
+ to: kc(/* @__PURE__ */ new Date())
23717
23834
  })
23718
23835
  }
23719
- ], Mc = (e) => {
23720
- let t = Tc(/* @__PURE__ */ new Date());
23836
+ ], Ic = (e) => {
23837
+ let t = kc(/* @__PURE__ */ new Date());
23721
23838
  return {
23722
- from: Dc(t, -e),
23839
+ from: jc(t, -e),
23723
23840
  to: t
23724
23841
  };
23725
- }, Nc = (e) => {
23726
- let t = Dc(Tc(/* @__PURE__ */ new Date()), -e);
23842
+ }, Lc = (e) => {
23843
+ let t = jc(kc(/* @__PURE__ */ new Date()), -e);
23727
23844
  return {
23728
23845
  from: t,
23729
23846
  to: t
23730
23847
  };
23731
- }, Pc = [
23848
+ }, Rc = [
23732
23849
  {
23733
23850
  id: "today",
23734
23851
  label: "Hoje",
23735
- range: () => Mc(0)
23852
+ range: () => Ic(0)
23736
23853
  },
23737
23854
  {
23738
23855
  id: "yesterday",
23739
23856
  label: "Ontem",
23740
- range: () => Nc(1)
23857
+ range: () => Lc(1)
23741
23858
  },
23742
23859
  {
23743
23860
  id: "7d",
23744
23861
  label: "Últimos 7 dias",
23745
- range: () => Mc(6)
23862
+ range: () => Ic(6)
23746
23863
  },
23747
23864
  {
23748
23865
  id: "10d",
23749
23866
  label: "Últimos 10 dias",
23750
- range: () => Mc(9)
23867
+ range: () => Ic(9)
23751
23868
  },
23752
23869
  {
23753
23870
  id: "15d",
23754
23871
  label: "Últimos 15 dias",
23755
- range: () => Mc(14)
23872
+ range: () => Ic(14)
23756
23873
  },
23757
23874
  {
23758
23875
  id: "20d",
23759
23876
  label: "Últimos 20 dias",
23760
- range: () => Mc(19)
23877
+ range: () => Ic(19)
23761
23878
  },
23762
23879
  {
23763
23880
  id: "30d",
23764
23881
  label: "Últimos 30 dias",
23765
- range: () => Mc(29)
23882
+ range: () => Ic(29)
23766
23883
  },
23767
23884
  {
23768
23885
  id: "90d",
23769
23886
  label: "Últimos 90 dias",
23770
- range: () => Mc(89)
23887
+ range: () => Ic(89)
23771
23888
  }
23772
23889
  ];
23773
- function Fc(e) {
23890
+ function zc(e) {
23774
23891
  if (!e) return "—";
23775
23892
  let t = e.getHours(), n = t < 12 ? "AM" : "PM";
23776
23893
  return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
23777
23894
  }
23778
- var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
23779
- let p = wc[a], g = Tc(/* @__PURE__ */ new Date()), _ = s ? Tc(s) : null, [v, y] = d(e ?? {
23895
+ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
23896
+ let p = Oc[a], g = kc(/* @__PURE__ */ new Date()), _ = s ? kc(s) : null, [v, y] = d(e ?? {
23780
23897
  from: g,
23781
23898
  to: g
23782
- }), [b, x] = d(Ec((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Dc(Ec(b), -Ec(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Dc(w, t)), E = (e) => _ ? Tc(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
23899
+ }), [b, x] = d(Ac((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = jc(Ac(b), -Ac(b).getDay()), T = Array.from({ length: 42 }, (e, t) => jc(w, t)), E = (e) => _ ? kc(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
23783
23900
  className: "select-datepicker__placeholder",
23784
23901
  children: "— / — / ——"
23785
23902
  }), O = (e) => {
23786
- E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Tc(t.from) ? {
23903
+ E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < kc(t.from) ? {
23787
23904
  from: e,
23788
23905
  to: null
23789
23906
  } : {
@@ -23793,7 +23910,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
23793
23910
  }, k = (e) => {
23794
23911
  if (e.disabled || !e.range) return;
23795
23912
  let t = e.range();
23796
- y(t), C(e.id), t.from && x(Ec(t.from));
23913
+ y(t), C(e.id), t.from && x(Ac(t.from));
23797
23914
  }, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
23798
23915
  return /* @__PURE__ */ m("div", {
23799
23916
  ref: f,
@@ -23839,7 +23956,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
23839
23956
  }),
23840
23957
  o && /* @__PURE__ */ m("span", {
23841
23958
  className: "select-datepicker__pill select-datepicker__pill--time",
23842
- children: Fc(v[e])
23959
+ children: zc(v[e])
23843
23960
  })
23844
23961
  ]
23845
23962
  }, e))
@@ -23851,7 +23968,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
23851
23968
  type: "button",
23852
23969
  className: "select-datepicker__nav",
23853
23970
  "aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
23854
- onClick: () => x((e) => Oc(e, -1)),
23971
+ onClick: () => x((e) => Mc(e, -1)),
23855
23972
  children: /* @__PURE__ */ m(U, {})
23856
23973
  }),
23857
23974
  /* @__PURE__ */ h("span", {
@@ -23866,7 +23983,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
23866
23983
  type: "button",
23867
23984
  className: "select-datepicker__nav",
23868
23985
  "aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
23869
- onClick: () => x((e) => Oc(e, 1)),
23986
+ onClick: () => x((e) => Mc(e, 1)),
23870
23987
  children: /* @__PURE__ */ m(ae, {})
23871
23988
  })
23872
23989
  ]
@@ -23878,7 +23995,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
23878
23995
  className: "select-datepicker__weekday",
23879
23996
  children: e
23880
23997
  }, t)), T.map((e) => {
23881
- let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && kc(e, v.from), i = !!v.to && kc(e, v.to), a = r || i, o = !!v.from && !!v.to && !kc(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Tc(v.from) && e < Tc(v.to) ? " select-datepicker__day--in-range" : "") + (o && r ? " select-datepicker__day--range-start" : "") + (o && i ? " select-datepicker__day--range-end" : ""), c = "select-datepicker__daybtn" + (a ? " is-selected" : "") + (kc(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
23998
+ let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Nc(e, v.from), i = !!v.to && Nc(e, v.to), a = r || i, o = !!v.from && !!v.to && !Nc(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > kc(v.from) && e < kc(v.to) ? " select-datepicker__day--in-range" : "") + (o && r ? " select-datepicker__day--range-start" : "") + (o && i ? " select-datepicker__day--range-end" : ""), c = "select-datepicker__daybtn" + (a ? " is-selected" : "") + (Nc(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
23882
23999
  return /* @__PURE__ */ m("div", {
23883
24000
  className: s,
23884
24001
  children: /* @__PURE__ */ m("button", {
@@ -23909,17 +24026,17 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
23909
24026
  })]
23910
24027
  })
23911
24028
  });
23912
- }), Lc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Rc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), zc = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
23913
- function Bc(e, t) {
24029
+ }), Vc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Hc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Uc = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
24030
+ function Wc(e, t) {
23914
24031
  for (let r of t) {
23915
24032
  var n;
23916
24033
  let t = (n = r.range) == null ? void 0 : n.call(r);
23917
- if (t != null && t.from && t != null && t.to && Rc(t.from, e.start) && Rc(t.to, e.end)) return r.label;
24034
+ if (t != null && t.from && t != null && t.to && Hc(t.from, e.start) && Hc(t.to, e.end)) return r.label;
23918
24035
  }
23919
- return Rc(e.start, e.end) ? zc(e.start) : `${zc(e.start)} – ${zc(e.end)}`;
24036
+ return Hc(e.start, e.end) ? Uc(e.start) : `${Uc(e.start)} – ${Uc(e.end)}`;
23920
24037
  }
23921
- function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
23922
- let [c, l] = d(!1), u = r === null ? null : r ?? Lc(/* @__PURE__ */ new Date());
24038
+ function Gc({ value: e, onChange: t, presets: n = Rc, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
24039
+ let [c, l] = d(!1), u = r === null ? null : r ?? Vc(/* @__PURE__ */ new Date());
23923
24040
  return /* @__PURE__ */ m(on, {
23924
24041
  active: c,
23925
24042
  onClose: () => l(!1),
@@ -23933,9 +24050,9 @@ function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i =
23933
24050
  icon: /* @__PURE__ */ m(rt, {}),
23934
24051
  trailingIcon: /* @__PURE__ */ m(W, {}),
23935
24052
  onClick: () => l((e) => !e),
23936
- children: Bc(e, n)
24053
+ children: Wc(e, n)
23937
24054
  }),
23938
- children: /* @__PURE__ */ m(Ic, {
24055
+ children: /* @__PURE__ */ m(Bc, {
23939
24056
  embedded: !0,
23940
24057
  locale: "pt-BR",
23941
24058
  showTime: !1,
@@ -23948,8 +24065,8 @@ function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i =
23948
24065
  onCancel: () => l(!1),
23949
24066
  onApply: (e) => {
23950
24067
  e.from && t({
23951
- start: Lc(e.from),
23952
- end: Lc(e.to ?? e.from)
24068
+ start: Vc(e.from),
24069
+ end: Vc(e.to ?? e.from)
23953
24070
  }), l(!1);
23954
24071
  }
23955
24072
  })
@@ -23957,7 +24074,7 @@ function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i =
23957
24074
  }
23958
24075
  //#endregion
23959
24076
  //#region src/SelectNumberField.tsx
23960
- var Hc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: f, placeholder: p, size: g = "md", className: _, ...v }, y) {
24077
+ var Kc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: f, placeholder: p, size: g = "md", className: _, ...v }, y) {
23961
24078
  let b = s(), x = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), S = (e) => Math.round(e * 1e6) / 1e6, C = t ?? 0, w = r != null && C <= r, T = i != null && C >= i, [E, D] = d(!1), [O, k] = d(""), A = o && E ? O : t == null ? "" : String(t), j = (e) => {
23962
24079
  let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
23963
24080
  if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
@@ -24031,7 +24148,7 @@ var Hc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
24031
24148
  });
24032
24149
  //#endregion
24033
24150
  //#region src/SelectRepeatingFieldArray.tsx
24034
- function Uc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Adicionar", rowLabel: a, min: o = 0, max: s, addDisabled: c = !1, reorderable: l = !1, chrome: u = "card", emptyState: d, helpText: f }) {
24151
+ function qc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Adicionar", rowLabel: a, min: o = 0, max: s, addDisabled: c = !1, reorderable: l = !1, chrome: u = "card", emptyState: d, helpText: f }) {
24035
24152
  let g = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
24036
24153
  let i = n + r;
24037
24154
  if (i < 0 || i >= e.length) return;
@@ -24126,7 +24243,7 @@ function Uc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
24126
24243
  }
24127
24244
  //#endregion
24128
24245
  //#region src/SelectBuilderLayout.tsx
24129
- function Wc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, preview: l, children: u }) {
24246
+ function Jc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, preview: l, children: u }) {
24130
24247
  let d = v();
24131
24248
  return /* @__PURE__ */ m(ri, {
24132
24249
  title: e,
@@ -24166,7 +24283,7 @@ function Wc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
24166
24283
  }
24167
24284
  //#endregion
24168
24285
  //#region src/SelectBuilderWorkspace.tsx
24169
- function Gc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, sections: u, activeId: f, onActiveChange: g, searchable: _ = !1, preview: y, previewLayout: b = "fill", toolbar: x, dirty: S = !1, dirtyLabel: C = "Alterações não salvas" }) {
24286
+ function Yc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, sections: u, activeId: f, onActiveChange: g, searchable: _ = !1, preview: y, previewLayout: b = "fill", toolbar: x, dirty: S = !1, dirtyLabel: C = "Alterações não salvas" }) {
24170
24287
  var w;
24171
24288
  let T = v(), [E, D] = d(((w = u[0]) == null ? void 0 : w.id) ?? ""), [O, k] = d(""), A = f ?? E, j = u.find((e) => e.id === A) ?? u[0], M = (e) => {
24172
24289
  f === void 0 && D(e), g == null || g(e);
@@ -24326,10 +24443,10 @@ function Gc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
24326
24443
  }
24327
24444
  //#endregion
24328
24445
  //#region src/SelectFlowCanvas.tsx
24329
- var Kc = (e) => Math.round(e * 100) / 100;
24330
- function qc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: f = 1.3, onBackgroundClick: p, ariaLabel: g }) {
24446
+ var Xc = (e) => Math.round(e * 100) / 100;
24447
+ function Zc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: f = 1.3, onBackgroundClick: p, ariaLabel: g }) {
24331
24448
  let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
24332
- let t = Kc(Math.min(f, Math.max(u, e)));
24449
+ let t = Xc(Math.min(f, Math.max(u, e)));
24333
24450
  o === void 0 && y(t), l == null || l(t);
24334
24451
  }, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
24335
24452
  return /* @__PURE__ */ h("div", {
@@ -24445,7 +24562,7 @@ function qc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
24445
24562
  })]
24446
24563
  });
24447
24564
  }
24448
- function Jc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: g = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
24565
+ function Qc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: g = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
24449
24566
  let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
24450
24567
  left: e,
24451
24568
  top: t,
@@ -24521,7 +24638,7 @@ function Jc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
24521
24638
  })]
24522
24639
  });
24523
24640
  }
24524
- function Yc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
24641
+ function $c({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
24525
24642
  return /* @__PURE__ */ h("div", {
24526
24643
  className: "select-flowpage",
24527
24644
  children: [
@@ -24583,7 +24700,7 @@ function Yc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
24583
24700
  }
24584
24701
  //#endregion
24585
24702
  //#region src/SelectSwitchField.tsx
24586
- var Xc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
24703
+ var el = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
24587
24704
  return /* @__PURE__ */ h("div", {
24588
24705
  ref: c,
24589
24706
  ...s,
@@ -24611,8 +24728,8 @@ var Xc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
24611
24728
  children: i
24612
24729
  })]
24613
24730
  });
24614
- }), Zc = (e) => /^#[0-9a-fA-F]{6}$/.test(e);
24615
- function Qc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error: a }) {
24731
+ }), tl = (e) => /^#[0-9a-fA-F]{6}$/.test(e);
24732
+ function nl({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error: a }) {
24616
24733
  return /* @__PURE__ */ m(Tt, {
24617
24734
  label: e,
24618
24735
  value: t,
@@ -24630,7 +24747,7 @@ function Qc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
24630
24747
  prefix: /* @__PURE__ */ m("input", {
24631
24748
  type: "color",
24632
24749
  className: "select-color-swatch",
24633
- value: Zc(t) ? t : "#000000",
24750
+ value: tl(t) ? t : "#000000",
24634
24751
  onChange: (e) => n(e.target.value),
24635
24752
  disabled: r,
24636
24753
  "aria-label": e ? `${e} — escolher cor` : "Escolher cor"
@@ -24639,13 +24756,13 @@ function Qc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
24639
24756
  }
24640
24757
  //#endregion
24641
24758
  //#region src/SelectImageField.tsx
24642
- function $c(e) {
24759
+ function rl(e) {
24643
24760
  return new Promise((t, n) => {
24644
24761
  let r = new FileReader();
24645
24762
  r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
24646
24763
  });
24647
24764
  }
24648
- var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
24765
+ var il = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
24649
24766
  let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
24650
24767
  let t = e[0];
24651
24768
  if (!t) {
@@ -24653,7 +24770,7 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
24653
24770
  return;
24654
24771
  }
24655
24772
  if (_(null), !s) {
24656
- n(await $c(t)), p([]);
24773
+ n(await rl(t)), p([]);
24657
24774
  return;
24658
24775
  }
24659
24776
  p([t]);
@@ -24685,7 +24802,7 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
24685
24802
  children: g
24686
24803
  })]
24687
24804
  });
24688
- }), tl = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
24805
+ }), al = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
24689
24806
  let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
24690
24807
  let r = n.has(e), i = new Set(t ? n : []);
24691
24808
  return r ? i.delete(e) : i.add(e), i;
@@ -24731,6 +24848,6 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
24731
24848
  });
24732
24849
  });
24733
24850
  //#endregion
24734
- export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Ce as BellIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, U as ChevronLeftIcon, ae as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, K as FilterIcon, ie as GithubIcon, _e as GlobeIcon, H as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, Yn as SELECT_CARD_BRANDS, aa as SELECT_COL_DATETIME, oa as SELECT_COL_ID, On as SELECT_COUNTRIES, Pc as SELECT_DAILY_PRESETS, jc as SELECT_DATE_PRESETS, Rn as SELECT_SPACE, Pn as SELECT_TRANSACTION_STATUS, oe as SearchIcon, tl as SelectAccordion, Xi as SelectActionCard, In as SelectActionList, Ln as SelectActionMenu, Kt as SelectAddButton, va as SelectAddCard, Lt as SelectAlert, Zi as SelectAppTile, B as SelectAuthFx, Vr as SelectAvatar, Jr as SelectBackLink, Nn as SelectBadge, Co as SelectBalanceCard, fn as SelectBankAccountField, Vo as SelectBarChart, Kn as SelectBox, _s as SelectBoxPlot, Wc as SelectBuilderLayout, Gc as SelectBuilderWorkspace, us as SelectBullet, Hs as SelectBump, V as SelectButton, ys as SelectCalendarHeatmap, gs as SelectCandlestick, re as SelectCard, ya as SelectCardGrid, Eo as SelectChartCard, Et as SelectCheckbox, Os as SelectChord, Ys as SelectCirclePack, Yi as SelectCollapsible, Qc as SelectColorField, Ko as SelectColumnChart, Wo as SelectComboChart, cn as SelectCombobox, ra as SelectConfirmModal, qi as SelectCopyRow, Ji as SelectCopyableId, Qi as SelectCreateTile, _a as SelectDataTable, no as SelectDateField, Ic as SelectDatePicker, Vc as SelectDateRangeField, tc as SelectDetailList, nc as SelectDetailRow, ir as SelectDisclosureButton, Br as SelectDivider, It as SelectDocumentField, Go as SelectDonut, S as SelectDotField, Ss as SelectDumbbell, wo as SelectFeeBreakdown, Tt as SelectField, ln as SelectFieldGrid, Gt as SelectFileDropzone, Rt as SelectFileTile, so as SelectFilterBar, Ki as SelectFilterChip, qc as SelectFlowCanvas, Yc as SelectFlowLayout, Jc as SelectFlowNode, oi as SelectFormLayout, ia as SelectFormModal, qo as SelectFunnel, Qo as SelectGauge, ws as SelectGaugeBands, Ls as SelectGlobe, Un as SelectGrid, $o as SelectHeatmap, ks as SelectHexbin, za as SelectHideMoneyToggle, ss as SelectHorizontalBar, Ks as SelectIcicle, pi as SelectIcon, J as SelectIconButton, Wr as SelectIdentityFooter, el as SelectImageField, Jt as SelectImageUploadField, qt as SelectImageUrlsField, _c as SelectImageZoomModal, Ct as SelectInfoTip, Hn as SelectInline, Ir as SelectJsonViewer, Sc as SelectKeyValueEditor, To as SelectKpiCard, wt as SelectLabelRow, xa as SelectLayoutThumb, Ho as SelectLineChart, zr as SelectLinkButton, mc as SelectListCard, hc as SelectListRow, ni as SelectLoader, Cs as SelectMarimekko, Wa as SelectMarkStack, yc as SelectMediaCell, Bi as SelectMenu, Gi as SelectMenuButton, Wi as SelectMenuDivider, Ui as SelectMenuHeading, Vi as SelectMenuItem, Hi as SelectMenuLink, Ra as SelectMetricDelta, ta as SelectModal, Ia as SelectMoney, Mt as SelectMoneyField, Xs as SelectNetwork, mi as SelectNote, Hc as SelectNumberField, Ba as SelectOfferPrice, bc as SelectOfflineModal, Hr as SelectOptionList, Ur as SelectOptionRow, Gr as SelectOtpInput, ri as SelectPage, Ei as SelectPagination, _i as SelectPanel, Us as SelectParallel, zs as SelectPareto, ti as SelectPasswordStrength, rr as SelectPaymentBrand, An as SelectPhoneField, pc as SelectPlanCard, bs as SelectPolarArea, on as SelectPopover, So as SelectPreviewFrame, es as SelectProgressList, Vs as SelectPyramid, ms as SelectRadar, ns as SelectRadialBar, jn as SelectRadioGroup, vs as SelectRangeBar, Ha as SelectRating, Ua as SelectRatingQuote, ba as SelectRecordCard, Uc as SelectRepeatingFieldArray, Yr as SelectResendButton, Zr as SelectRetryStatus, na as SelectRowActions, hs as SelectSankey, ps as SelectScatter, Ci as SelectSearchInput, vi as SelectSection, Mn as SelectSegmented, Yt as SelectSelect, Fa as SelectSensitiveValue, hi as SelectSettingList, gi as SelectSettingRow, oc as SelectSetupGuide, sc as SelectSetupNext, Si as SelectSideNav, di as SelectSkeleton, xs as SelectSlope, Bo as SelectSparkline, wa as SelectSplitChain, Vn as SelectStack, Uo as SelectStackedArea, Fn as SelectStatusBadge, rc as SelectSteps, Ts as SelectStreamGraph, Es as SelectSunburst, lo as SelectSurface, pn as SelectSwitch, Xc as SelectSwitchField, Fi as SelectTable, Ri as SelectTableCell, zi as SelectTableEmpty, Li as SelectTableRow, yi as SelectTabs, co as SelectTagSelect, qn as SelectText, Dt as SelectTextarea, $s as SelectThemeSwitcher, gc as SelectThumbnail, Rs as SelectTicker, Rr as SelectTimeline, _o as SelectToastProvider, mn as SelectToggleList, gn as SelectTogglePanel, hn as SelectToggleRow, St as SelectTooltip, fc as SelectTour, qs as SelectTree, fs as SelectTreemap, Ot as SelectUnitInput, Ii as SelectUserCell, Na as SelectValueVisibilityProvider, Js as SelectVenn, Ds as SelectViolin, Bs as SelectWaffle, cs as SelectWaterfall, As as SelectWordCloud, $i as SelectWorkspaceSwitcher, vc as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, ge as SplitIcon, he as StarIcon, pt as StoreIcon, vt as StorefrontIcon, De as SunIcon, we as TerminalIcon, Ye as TrashIcon, ut as TruckIcon, se as UploadIcon, Se as UserIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, rn as detectSelectTheme, kn as dialCodeOf, ei as passwordScore, Qs as resolveSelectTheme, Qn as selectCardBrand, $n as selectCardBrandLabel, ha as useSelectPageSize, vo as useSelectToast, Pa as useSelectValueVisibility };
24851
+ export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Ce as BellIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, U as ChevronLeftIcon, ae as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, K as FilterIcon, ie as GithubIcon, _e as GlobeIcon, H as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, Yn as SELECT_CARD_BRANDS, oa as SELECT_COL_DATETIME, sa as SELECT_COL_ID, On as SELECT_COUNTRIES, Rc as SELECT_DAILY_PRESETS, Fc as SELECT_DATE_PRESETS, Rn as SELECT_SPACE, Pn as SELECT_TRANSACTION_STATUS, oe as SearchIcon, al as SelectAccordion, Zi as SelectActionCard, In as SelectActionList, Ln as SelectActionMenu, Kt as SelectAddButton, ya as SelectAddCard, Lt as SelectAlert, Qi as SelectAppTile, B as SelectAuthFx, Vr as SelectAvatar, Jr as SelectBackLink, Nn as SelectBadge, wo as SelectBalanceCard, fn as SelectBankAccountField, Ho as SelectBarChart, Kn as SelectBox, vs as SelectBoxPlot, Jc as SelectBuilderLayout, Yc as SelectBuilderWorkspace, ds as SelectBullet, Us as SelectBump, V as SelectButton, bs as SelectCalendarHeatmap, _s as SelectCandlestick, re as SelectCard, ba as SelectCardGrid, Do as SelectChartCard, Et as SelectCheckbox, ks as SelectChord, Xs as SelectCirclePack, Xi as SelectCollapsible, nl as SelectColorField, qo as SelectColumnChart, Go as SelectComboChart, cn as SelectCombobox, ia as SelectConfirmModal, Ji as SelectCopyRow, Yi as SelectCopyableId, $i as SelectCreateTile, va as SelectDataTable, ro as SelectDateField, Bc as SelectDatePicker, Gc as SelectDateRangeField, ac as SelectDetailList, oc as SelectDetailRow, ir as SelectDisclosureButton, Br as SelectDivider, It as SelectDocumentField, Ko as SelectDonut, S as SelectDotField, Cs as SelectDumbbell, To as SelectFeeBreakdown, Tt as SelectField, ln as SelectFieldGrid, Gt as SelectFileDropzone, Rt as SelectFileTile, co as SelectFilterBar, qi as SelectFilterChip, Zc as SelectFlowCanvas, $c as SelectFlowLayout, Qc as SelectFlowNode, oi as SelectFormLayout, aa as SelectFormModal, Jo as SelectFunnel, $o as SelectGauge, Ts as SelectGaugeBands, Rs as SelectGlobe, Un as SelectGrid, es as SelectHeatmap, As as SelectHexbin, Ba as SelectHideMoneyToggle, cs as SelectHorizontalBar, qs as SelectIcicle, pi as SelectIcon, J as SelectIconButton, Wr as SelectIdentityFooter, il as SelectImageField, Jt as SelectImageUploadField, qt as SelectImageUrlsField, xc as SelectImageZoomModal, Ct as SelectInfoTip, Hn as SelectInline, Ir as SelectJsonViewer, Ec as SelectKeyValueEditor, Eo as SelectKpiCard, wt as SelectLabelRow, Sa as SelectLayoutThumb, Uo as SelectLineChart, zr as SelectLinkButton, vc as SelectListCard, yc as SelectListRow, ni as SelectLoader, ws as SelectMarimekko, Ga as SelectMarkStack, Cc as SelectMediaCell, Vi as SelectMenu, Ki as SelectMenuButton, Gi as SelectMenuDivider, Wi as SelectMenuHeading, Hi as SelectMenuItem, Ui as SelectMenuLink, za as SelectMetricDelta, na as SelectModal, La as SelectMoney, Mt as SelectMoneyField, Zs as SelectNetwork, mi as SelectNote, Kc as SelectNumberField, Va as SelectOfferPrice, wc as SelectOfflineModal, Hr as SelectOptionList, Ur as SelectOptionRow, Gr as SelectOtpInput, ri as SelectPage, Ei as SelectPagination, _i as SelectPanel, Ws as SelectParallel, Bs as SelectPareto, ti as SelectPasswordStrength, rr as SelectPaymentBrand, An as SelectPhoneField, _c as SelectPlanCard, xs as SelectPolarArea, on as SelectPopover, Co as SelectPreviewFrame, ts as SelectProgressList, Hs as SelectPyramid, hs as SelectRadar, rs as SelectRadialBar, jn as SelectRadioGroup, ys as SelectRangeBar, Ua as SelectRating, Wa as SelectRatingQuote, xa as SelectRecordCard, qc as SelectRepeatingFieldArray, Yr as SelectResendButton, Zr as SelectRetryStatus, ra as SelectRowActions, gs as SelectSankey, ms as SelectScatter, Ci as SelectSearchInput, Qs as SelectSearchMenu, ec as SelectSearchMenuOption, vi as SelectSection, Mn as SelectSegmented, Yt as SelectSelect, Ia as SelectSensitiveValue, hi as SelectSettingList, gi as SelectSettingRow, uc as SelectSetupGuide, dc as SelectSetupNext, Si as SelectSideNav, di as SelectSkeleton, Ss as SelectSlope, Vo as SelectSparkline, Ta as SelectSplitChain, Vn as SelectStack, Wo as SelectStackedArea, Fn as SelectStatusBadge, sc as SelectSteps, Es as SelectStreamGraph, Ds as SelectSunburst, uo as SelectSurface, pn as SelectSwitch, el as SelectSwitchField, Fi as SelectTable, zi as SelectTableCell, Bi as SelectTableEmpty, Ri as SelectTableRow, yi as SelectTabs, lo as SelectTagSelect, qn as SelectText, Dt as SelectTextarea, rc as SelectThemeSwitcher, bc as SelectThumbnail, zs as SelectTicker, Rr as SelectTimeline, vo as SelectToastProvider, mn as SelectToggleList, gn as SelectTogglePanel, hn as SelectToggleRow, St as SelectTooltip, gc as SelectTour, Js as SelectTree, ps as SelectTreemap, Ot as SelectUnitInput, Li as SelectUserCell, Pa as SelectValueVisibilityProvider, Ys as SelectVenn, Os as SelectViolin, Vs as SelectWaffle, ls as SelectWaterfall, js as SelectWordCloud, ea as SelectWorkspaceSwitcher, Sc as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, ge as SplitIcon, he as StarIcon, pt as StoreIcon, vt as StorefrontIcon, De as SunIcon, we as TerminalIcon, Ye as TrashIcon, ut as TruckIcon, se as UploadIcon, Se as UserIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, rn as detectSelectTheme, kn as dialCodeOf, ei as passwordScore, nc as resolveSelectTheme, Qn as selectCardBrand, $n as selectCardBrandLabel, ga as useSelectPageSize, yo as useSelectToast, Fa as useSelectValueVisibility };
24735
24852
 
24736
24853
  //# sourceMappingURL=index.js.map