@archbase/components 3.0.7 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as n, Fragment as ot, jsxs as b } from "react/jsx-runtime";
2
- import { useMantineTheme as Lt, useMantineColorScheme as Ft, TextInput as st, Tooltip as _e, ActionIcon as ke, Checkbox as kt, useInputProps as zo, CloseButton as Wr, Input as rt, Popover as wt, ScrollArea as Rt, useCombobox as Io, Combobox as or, ComboboxTarget as Ro, PillsInput as Fi, Pill as $o, Loader as sn, ComboboxDropdown as Po, Group as ze, Image as ii, Text as X, CheckIcon as qs, InputBase as Ys, Chip as Wn, Flex as dt, Rating as No, Button as Oe, rem as Wt, Avatar as Qs, JsonInput as Xs, Select as Tt, PasswordInput as Ks, Radio as Mi, Skeleton as Vo, Switch as Js, Card as Zs, ColorPicker as ea, Textarea as yn, MultiSelect as Lo, Stack as He, Box as ye, Paper as Qe, Space as br, UnstyledButton as ta, Progress as nn, Modal as Jt, Slider as Gn, px as Ir, Menu as pt, Center as mt, LoadingOverlay as Ot, Alert as vr, Accordion as sr, NumberInput as _r, useProps as ra, ColorInput as na, Badge as oi, Code as Fo, Anchor as ia, Tabs as $n, MantineProvider as oa, SegmentedControl as sa, ColorSwatch as Bi, CopyButton as aa, Pagination as la, Title as Nr, Drawer as ca, HoverCard as Pn } from "@mantine/core";
2
+ import { useMantineTheme as Lt, useMantineColorScheme as Ft, TextInput as st, Tooltip as _e, ActionIcon as ke, Checkbox as kt, useInputProps as zo, CloseButton as Wr, Input as rt, Popover as wt, ScrollArea as Rt, useCombobox as Io, Combobox as or, ComboboxTarget as Ro, PillsInput as Fi, Pill as $o, Loader as sn, ComboboxDropdown as Po, Group as ze, Image as ii, Text as X, CheckIcon as qs, InputBase as Ys, Chip as Wn, Flex as dt, Rating as No, Button as Oe, rem as Wt, Avatar as Qs, JsonInput as Xs, Select as Tt, PasswordInput as Ks, Radio as Mi, Skeleton as Vo, Switch as Js, Card as Zs, ColorPicker as ea, Textarea as yn, MultiSelect as Lo, Stack as Ue, Box as ye, Paper as Qe, Space as br, UnstyledButton as ta, Progress as nn, Modal as Jt, Slider as Gn, px as Ir, Menu as pt, Center as mt, LoadingOverlay as Ot, Alert as vr, Accordion as sr, NumberInput as _r, useProps as ra, ColorInput as na, Badge as oi, Code as Fo, Anchor as ia, Tabs as $n, MantineProvider as oa, SegmentedControl as sa, ColorSwatch as Bi, CopyButton as aa, Pagination as la, Title as Nr, Drawer as ca, HoverCard as Pn } from "@mantine/core";
3
3
  import { ActionIcon as tm, Badge as rm, Breadcrumbs as nm, Button as im, Fieldset as om, Loader as sm, Alert as am, Image as lm, NavLink as cm, Notification as dm, Pagination as um, Progress as hm, Text as fm, Title as pm } from "@mantine/core";
4
4
  import { useForceUpdate as nt, useUncontrolled as on, useDidUpdate as da, useDebouncedValue as si, useDebouncedState as ua, useId as ha, useMediaQuery as Oi, useElementSize as Mo, useHotkeys as fa, useDisclosure as pa, useLocalStorage as Bo } from "@mantine/hooks";
5
5
  import * as _i from "react";
6
- import Ue, { useState as S, useRef as de, useEffect as W, useCallback as T, forwardRef as ai, useContext as _t, memo as xr, useMemo as Ge, Fragment as ma, useLayoutEffect as ga, Component as ya, Children as qn, isValidElement as Yn, useImperativeHandle as ba } from "react";
6
+ import He, { useState as S, useRef as de, useEffect as W, useCallback as T, forwardRef as ai, useContext as _t, memo as xr, useMemo as Ge, Fragment as ma, useLayoutEffect as ga, Component as ya, Children as qn, isValidElement as Yn, useImperativeHandle as ba } from "react";
7
7
  import { DataSourceEventNames as q, useArchbaseDidUpdate as at, useArchbaseV1V2Compatibility as Ze, ArchbaseDataSource as an, useArchbaseDataSourceListener as Oo } from "@archbase/data";
8
8
  import { useValidationErrors as it, convertISOStringToDate as ln, useArchbaseTranslation as Xe, useArchbaseTheme as Zt, processErrorMessage as wa, isBase64 as Vr, formatStr as ar, ArchbaseObjectHelper as Bt, ArchbaseError as cn, isBase64Validate as Ca, useArchbaseSize as va, isLastElementOfArray as xa, useArchbaseBool as Ea, archbaseI18next as Xt, getPathDepthLevel as _o, setNestedObjectValue as Sa, emit as tr, builder as Qt, EQ as jo, NEQ as Ho, GT as Qn, LT as Xn, GE as Uo, LE as Wo, OUT as Aa, IN as ka, BT as ji, ArchbaseMasker as Da, useArchbaseAppContext as Ta } from "@archbase/core";
9
9
  import { pickCalendarProps as za, useDatesContext as Ia, Calendar as Ra, HiddenDatesInput as $a, DateTimePicker as Pa, DatePickerInput as Hi, TimeInput as jr } from "@mantine/dates";
@@ -42,7 +42,7 @@ import { t as $l } from "i18next";
42
42
  import { useNavigate as Pl } from "react-router";
43
43
  import { createSearchParams as Nl } from "react-router-dom";
44
44
  import { useEventListener as Vl, useIsomorphicLayoutEffect as Ll } from "usehooks-ts";
45
- function mf({
45
+ function pf({
46
46
  dataSource: e,
47
47
  dataField: t,
48
48
  disabled: r = !1,
@@ -152,7 +152,7 @@ function mf({
152
152
  }
153
153
  );
154
154
  }
155
- function gf({
155
+ function mf({
156
156
  dataSource: e,
157
157
  dataField: t,
158
158
  disabled: r = !1,
@@ -608,7 +608,7 @@ function ti(e) {
608
608
  ] }) });
609
609
  }
610
610
  ti.displayName = "ArchbaseDatePickerEdit";
611
- const pi = Ue.createContext({}), ns = pi.Provider;
611
+ const pi = He.createContext({}), ns = pi.Provider;
612
612
  function Ki(e, t, r, i) {
613
613
  return e ? i ? e.map((o) => ({
614
614
  label: t(o),
@@ -639,7 +639,7 @@ const Ol = ({ image: e, label: t, description: r, values: i, value: o, ...s }) =
639
639
  },
640
640
  t
641
641
  );
642
- function yf({
642
+ function gf({
643
643
  allowDeselect: e = !0,
644
644
  clearable: t = !0,
645
645
  dataSource: r,
@@ -877,7 +877,7 @@ function Ji(e, t, r, i) {
877
877
  key: Dt("select")
878
878
  })) : [];
879
879
  }
880
- function bf({
880
+ function yf({
881
881
  allowDeselect: e = !0,
882
882
  clearable: t = !0,
883
883
  dataSource: r,
@@ -1075,7 +1075,7 @@ const os = ai(
1075
1075
  }
1076
1076
  );
1077
1077
  os.displayName = "CustomSelectScrollArea";
1078
- function wf({
1078
+ function bf({
1079
1079
  dataSource: e,
1080
1080
  dataField: t,
1081
1081
  disabled: r = !1,
@@ -1166,13 +1166,13 @@ function wf({
1166
1166
  );
1167
1167
  }
1168
1168
  function jl(e, t, r, i) {
1169
- return !e && !t ? [] : t ? Ue.Children.toArray(t).map((o) => ({ label: o.props.label, value: o.props.value.toString(), key: Dt("chip") })) : Array.isArray(e) ? e.map((o) => ({ label: r(o), value: i(o), key: Dt("chip") })) : Object.keys(e).map((o) => ({
1169
+ return !e && !t ? [] : t ? He.Children.toArray(t).map((o) => ({ label: o.props.label, value: o.props.value.toString(), key: Dt("chip") })) : Array.isArray(e) ? e.map((o) => ({ label: r(o), value: i(o), key: Dt("chip") })) : Object.keys(e).map((o) => ({
1170
1170
  label: o,
1171
1171
  value: e[o].toString(),
1172
1172
  key: Dt("chip")
1173
1173
  }));
1174
1174
  }
1175
- function Cf({
1175
+ function wf({
1176
1176
  dataSource: e,
1177
1177
  dataField: t,
1178
1178
  onSelectValue: r = () => {
@@ -1262,10 +1262,10 @@ function Hl(e) {
1262
1262
  return null;
1263
1263
  }
1264
1264
  Hl.displayName = "ArchbaseChipItem";
1265
- function vf(e) {
1265
+ function Cf(e) {
1266
1266
  return /* @__PURE__ */ n("div", {});
1267
1267
  }
1268
- function xf({
1268
+ function vf({
1269
1269
  label: e,
1270
1270
  disabled: t,
1271
1271
  readOnly: r,
@@ -1423,7 +1423,7 @@ function Ul({
1423
1423
  }
1424
1424
  );
1425
1425
  }
1426
- const ri = Ue.forwardRef(
1426
+ const ri = He.forwardRef(
1427
1427
  (e, t) => Ul({ ...e }, t)
1428
1428
  );
1429
1429
  ri.displayName = "ArchbaseDateTimePickerEdit";
@@ -1536,7 +1536,7 @@ function Wl({
1536
1536
  );
1537
1537
  }
1538
1538
  Wl.displayName = "ArchbaseDateTimePickerRange";
1539
- function Ef({
1539
+ function xf({
1540
1540
  dataSource: e,
1541
1541
  dataField: t,
1542
1542
  disabled: r = !1,
@@ -1607,7 +1607,7 @@ const Gl = 25, ss = (e, t = !1, r, i) => {
1607
1607
  function d(h) {
1608
1608
  ["checkbox", "radio"].includes(e.type) ? (a(h.target.checked), i && i(h.target.checked)) : (a(h.target.value), i && i(h.target.value));
1609
1609
  }
1610
- return /* @__PURE__ */ b(Ue.Fragment, { children: [
1610
+ return /* @__PURE__ */ b(He.Fragment, { children: [
1611
1611
  t && /* @__PURE__ */ n(
1612
1612
  "input",
1613
1613
  {
@@ -2783,7 +2783,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
2783
2783
  /* @__PURE__ */ b("div", { className: "control-panel", children: [
2784
2784
  /* @__PURE__ */ b(Jl, { lazy: !0, borderLine: !0, children: [
2785
2785
  /* @__PURE__ */ b(eo, { name: `${m("Basic")}`, children: [
2786
- (!g.current || g.current && !c) && /* @__PURE__ */ b(Ue.Fragment, { children: [
2786
+ (!g.current || g.current && !c) && /* @__PURE__ */ b(He.Fragment, { children: [
2787
2787
  /* @__PURE__ */ b("div", { style: { display: "flex", width: "100%", justifyContent: "space-between" }, children: [
2788
2788
  /* @__PURE__ */ n("p", { className: "item-panel", children: `${m("Quality")}` }),
2789
2789
  /* @__PURE__ */ n("p", { className: "item-panel", children: o.quality + "%" })
@@ -2890,7 +2890,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
2890
2890
  ),
2891
2891
  /* @__PURE__ */ n("span", { className: "item-panel", style: { marginLeft: "4px" }, children: `${m("Crop")}` })
2892
2892
  ] }) }),
2893
- c && /* @__PURE__ */ b(Ue.Fragment, { children: [
2893
+ c && /* @__PURE__ */ b(He.Fragment, { children: [
2894
2894
  /* @__PURE__ */ b("div", { className: "flex-row-start", style: { marginTop: "10px", justifyContent: "space-between" }, children: [
2895
2895
  /* @__PURE__ */ b("div", { className: "form-field", style: { maxWidth: "48%", width: "48%" }, children: [
2896
2896
  /* @__PURE__ */ n("label", { children: `${m("width(px)")}` }),
@@ -3268,7 +3268,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
3268
3268
  if (i.status !== 200)
3269
3269
  throw new Error(`HTTP error! status: ${i.status}`);
3270
3270
  return i;
3271
- }, Sf = ({ token: e, email: t, ...r }) => {
3271
+ }, Ef = ({ token: e, email: t, ...r }) => {
3272
3272
  const [i, o] = S(null);
3273
3273
  return W(() => {
3274
3274
  o(null), e && t && oc(`/users/${t}/photo/$value`, e, { responseType: "Blob" }).then((s) => {
@@ -3280,7 +3280,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
3280
3280
  console.log(wa(s));
3281
3281
  });
3282
3282
  }, [t, e]), /* @__PURE__ */ n(Qs, { src: i || nc, ...r });
3283
- }, Af = {
3283
+ }, Sf = {
3284
3284
  pt_br: {
3285
3285
  name: "Nome",
3286
3286
  save: "Salvar",
@@ -3579,7 +3579,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
3579
3579
  addImageTitle: "Seleccionar imagen para agregar..."
3580
3580
  }
3581
3581
  };
3582
- function kf({
3582
+ function Af({
3583
3583
  width: e = 240,
3584
3584
  height: t = 240,
3585
3585
  dataSource: r,
@@ -3678,7 +3678,7 @@ function kf({
3678
3678
  }
3679
3679
  ) });
3680
3680
  }
3681
- function Df({
3681
+ function kf({
3682
3682
  dataSource: e,
3683
3683
  dataField: t,
3684
3684
  disabled: r = !1,
@@ -3772,7 +3772,7 @@ function Df({
3772
3772
  }
3773
3773
  );
3774
3774
  }
3775
- function Tf({
3775
+ function Df({
3776
3776
  dataSource: e,
3777
3777
  dataField: t,
3778
3778
  lookupField: r,
@@ -4184,7 +4184,7 @@ function ro(e, t, r) {
4184
4184
  let i = e;
4185
4185
  return t && r && (i = t.getFieldValue(r), i || (i = "")), i;
4186
4186
  }
4187
- function zf({
4187
+ function Tf({
4188
4188
  dataSource: e,
4189
4189
  dataField: t,
4190
4190
  lookupField: r,
@@ -4353,7 +4353,7 @@ function lc(e, t, r, i, o, s) {
4353
4353
  }), l.next();
4354
4354
  return l.first(), a;
4355
4355
  }
4356
- return e && Array.isArray(e) && e.length > 0 && e[0].group ? ac(e) : e || (r ? Ue.Children.toArray(r).map((l) => {
4356
+ return e && Array.isArray(e) && e.length > 0 && e[0].group ? ac(e) : e || (r ? He.Children.toArray(r).map((l) => {
4357
4357
  const { label: a, value: c, origin: u, ...d } = l.props;
4358
4358
  return {
4359
4359
  label: a,
@@ -4559,7 +4559,7 @@ function Jr(e, t, r) {
4559
4559
  });
4560
4560
  }), i;
4561
4561
  }
4562
- function If({
4562
+ function zf({
4563
4563
  lookupDataSource: e,
4564
4564
  lookupDataFieldText: t,
4565
4565
  lookupDataFieldId: r,
@@ -4740,7 +4740,7 @@ function uc(e) {
4740
4740
  ) });
4741
4741
  }
4742
4742
  uc.displayName = "ArchbaseMaskEdit";
4743
- function Rf({
4743
+ function If({
4744
4744
  dataSource: e,
4745
4745
  dataField: t,
4746
4746
  disabled: r = !1,
@@ -4837,13 +4837,13 @@ function Rf({
4837
4837
  );
4838
4838
  }
4839
4839
  function hc(e, t, r, i) {
4840
- return !e && !t ? [] : t ? Ue.Children.toArray(t).map((o) => ({ label: o.props.label, value: o.props.value.toString(), key: Dt("radio") })) : Array.isArray(e) ? e.map((o) => ({ label: r(o), value: i(o), key: Dt("radio") })) : Object.keys(e).map((o) => ({
4840
+ return !e && !t ? [] : t ? He.Children.toArray(t).map((o) => ({ label: o.props.label, value: o.props.value.toString(), key: Dt("radio") })) : Array.isArray(e) ? e.map((o) => ({ label: r(o), value: i(o), key: Dt("radio") })) : Object.keys(e).map((o) => ({
4841
4841
  label: o,
4842
4842
  value: e[o].toString(),
4843
4843
  key: Dt("radio")
4844
4844
  }));
4845
4845
  }
4846
- function $f({
4846
+ function Rf({
4847
4847
  dataSource: e,
4848
4848
  dataField: t,
4849
4849
  style: r,
@@ -4946,7 +4946,7 @@ function fc(e) {
4946
4946
  return null;
4947
4947
  }
4948
4948
  fc.displayName = "ArchbaseRadioItem";
4949
- function Pf({
4949
+ function $f({
4950
4950
  dataSource: e,
4951
4951
  dataField: t,
4952
4952
  readOnly: r = !1,
@@ -5044,7 +5044,7 @@ function mc(e, t, r, i) {
5044
5044
  let o = e;
5045
5045
  return t && r && (o = t.getFieldValue(r), o || (o = ""), Vr(o) && !i && (o = atob(o))), o;
5046
5046
  }
5047
- function Nf({
5047
+ function Pf({
5048
5048
  autoFocus: e,
5049
5049
  dataSource: t,
5050
5050
  dataField: r,
@@ -5200,7 +5200,7 @@ function yc(e, t, r) {
5200
5200
  let i = e;
5201
5201
  return t && r && (i = t.getFieldValue(r), i || (i = "")), i;
5202
5202
  }
5203
- function Vf({
5203
+ function Nf({
5204
5204
  autoFocus: e = !1,
5205
5205
  dataSource: t,
5206
5206
  dataField: r,
@@ -5307,7 +5307,7 @@ function bc(e) {
5307
5307
  return null;
5308
5308
  }
5309
5309
  bc.displayName = "ArchbaseSelectItem";
5310
- function Lf({
5310
+ function Vf({
5311
5311
  dataSource: e,
5312
5312
  dataField: t,
5313
5313
  disabled: r = !1,
@@ -5409,7 +5409,7 @@ function Lf({
5409
5409
  }
5410
5410
  );
5411
5411
  }
5412
- function Ff({
5412
+ function Lf({
5413
5413
  dataSource: e,
5414
5414
  dataField: t,
5415
5415
  value: r,
@@ -5449,7 +5449,7 @@ function Ff({
5449
5449
  }
5450
5450
  ) });
5451
5451
  }
5452
- function Mf({
5452
+ function Ff({
5453
5453
  dataSource: e,
5454
5454
  dataField: t,
5455
5455
  disabled: r = !1,
@@ -5542,7 +5542,7 @@ function Mf({
5542
5542
  }
5543
5543
  );
5544
5544
  }
5545
- const wc = Ue.createContext({}), Bf = wc.Provider;
5545
+ const wc = He.createContext({}), Mf = wc.Provider;
5546
5546
  function Cc(e) {
5547
5547
  const t = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"], r = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
5548
5548
  let i = "Executar: ";
@@ -5633,7 +5633,7 @@ function vc({ label: e, initialValue: t, onChange: r, readOnly: i = !1, error: o
5633
5633
  },
5634
5634
  u
5635
5635
  )),
5636
- /* @__PURE__ */ b(He, { gap: "xs", children: [
5636
+ /* @__PURE__ */ b(Ue, { gap: "xs", children: [
5637
5637
  /* @__PURE__ */ n("strong", { children: "Expressão Cron:" }),
5638
5638
  /* @__PURE__ */ n(X, { c: "blue", children: `${s.seconds} ${s.minutes} ${s.hours} ${s.dayOfMonth} ${s.month} ${s.dayOfWeek}` }),
5639
5639
  /* @__PURE__ */ n("strong", { children: "Descrição:" }),
@@ -5641,7 +5641,7 @@ function vc({ label: e, initialValue: t, onChange: r, readOnly: i = !1, error: o
5641
5641
  ] })
5642
5642
  ] });
5643
5643
  }
5644
- function Of({
5644
+ function Bf({
5645
5645
  initialValue: e,
5646
5646
  keyLabel: t = "Chave",
5647
5647
  valueLabel: r,
@@ -5686,7 +5686,7 @@ function Of({
5686
5686
  }, V = (U, z) => {
5687
5687
  const k = m.map((R, G) => G === U ? { ...R, value: z } : R);
5688
5688
  w(k);
5689
- }, Q = m.some((U) => !U.key || !U.value), _ = p === "horizontal" ? ze : He;
5689
+ }, Q = m.some((U) => !U.key || !U.value), _ = p === "horizontal" ? ze : Ue;
5690
5690
  return /* @__PURE__ */ n(rt.Wrapper, { label: u, error: d, children: /* @__PURE__ */ b(ye, { children: [
5691
5691
  m.map((U, z) => /* @__PURE__ */ n(Qe, { withBorder: !0, shadow: "md", p: "sm", mb: "sm", children: /* @__PURE__ */ b(_, { align: "center", wrap: p === "horizontal" ? "nowrap" : "wrap", gap: g, children: [
5692
5692
  /* @__PURE__ */ n(
@@ -5755,7 +5755,7 @@ const pn = (e) => {
5755
5755
  const r = e.toLocaleString(), i = t.toLocaleString();
5756
5756
  return `De: ${r}
5757
5757
  Até: ${i}`;
5758
- }, _f = (e) => {
5758
+ }, Of = (e) => {
5759
5759
  const {
5760
5760
  ranges: t,
5761
5761
  onRangeChange: r,
@@ -5890,7 +5890,7 @@ Até: ${i}`;
5890
5890
  ) }),
5891
5891
  /* @__PURE__ */ n(wt.Dropdown, { children: /* @__PURE__ */ b(ye, { p: "xs", children: [
5892
5892
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "md", children: l }),
5893
- /* @__PURE__ */ b(He, { gap: "xs", w: "100%", children: [
5893
+ /* @__PURE__ */ b(Ue, { gap: "xs", w: "100%", children: [
5894
5894
  /* @__PURE__ */ n(
5895
5895
  Tt,
5896
5896
  {
@@ -5970,7 +5970,7 @@ Até: ${i}`;
5970
5970
  }
5971
5971
  )
5972
5972
  ] });
5973
- }, yi = Ue.createContext({}), Sc = yi.Provider;
5973
+ }, yi = He.createContext({}), Sc = yi.Provider;
5974
5974
  function mn({
5975
5975
  active: e,
5976
5976
  activeBackgroundColor: t,
@@ -6225,7 +6225,7 @@ function Ac(e) {
6225
6225
  return ce.forEach(($e) => {
6226
6226
  $e.props.index === ue && (We = $e.props.recordData);
6227
6227
  }), We;
6228
- }, Pe = () => Ue.Children.toArray(z).map((ue, We) => {
6228
+ }, Pe = () => He.Children.toArray(z).map((ue, We) => {
6229
6229
  if (ue.props.visible && ue.type && ue.type.componentName !== "ArchbaseListItem")
6230
6230
  throw new cn(
6231
6231
  "Apenas componentes do tipo ArchbaseListItem podem ser usados como filhos de ArchbaseList."
@@ -6800,7 +6800,7 @@ const us = ({
6800
6800
  });
6801
6801
  }
6802
6802
  return i;
6803
- }, Dc = (e) => e.data, Tc = (e) => e.text, jf = ai(
6803
+ }, Dc = (e) => e.data, Tc = (e) => e.text, _f = ai(
6804
6804
  ({
6805
6805
  dataSource: e,
6806
6806
  dataField: t,
@@ -7026,7 +7026,7 @@ const Ic = (e) => !e || e === "" ? [] : e.split(";").map((t) => {
7026
7026
  { value: "SATURDAY", label: "Sáb" },
7027
7027
  { value: "SUNDAY", label: "Dom" }
7028
7028
  ], Pc = (e) => Array.isArray(e) ? e.map((t) => `${t.days.map((i) => i).join(",")}|${t.timeRange}`).join(";") : "";
7029
- function Hf({
7029
+ function jf({
7030
7030
  label: e,
7031
7031
  initialValue: t,
7032
7032
  onChange: r,
@@ -7127,7 +7127,7 @@ function Hf({
7127
7127
  ] });
7128
7128
  }
7129
7129
  vt.extend(fl);
7130
- const Uf = ({ targetDate: e, color: t }) => {
7130
+ const Hf = ({ targetDate: e, color: t }) => {
7131
7131
  const { t: r } = Xe(), i = () => {
7132
7132
  const c = vt(), d = vt(e).diff(c);
7133
7133
  return {
@@ -7147,7 +7147,7 @@ const Uf = ({ targetDate: e, color: t }) => {
7147
7147
  /* @__PURE__ */ n(nn.Root, { size: "xl", children: /* @__PURE__ */ n(nn.Section, { value: a, color: t, children: /* @__PURE__ */ n(nn.Label, { children: `${o.days}d ${o.hours}h ${o.minutes}m` }) }) }),
7148
7148
  /* @__PURE__ */ n(X, { ta: "center", mt: "sm", children: `${r("archbase:Faltam {{days}} dias, {{hours}} horas e {{minutes}} minutos")}`.replace("{{days}}", String(o.days)).replace("{{hours}}", String(o.hours)).replace("{{minutes}}", String(o.minutes)) })
7149
7149
  ] });
7150
- }, Nc = (e) => e < 1024 ? `${e} bytes` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / (1024 * 1024)).toFixed(2)} MB`, Vc = (e) => e === "application/pdf" ? /* @__PURE__ */ n(Wi, { size: 48, style: { color: "red" } }) : e === "application/msword" || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? /* @__PURE__ */ n(Wi, { size: 48, style: { color: "blue" } }) : e === "application/vnd.ms-excel" || e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? /* @__PURE__ */ n(ja, { size: 48, style: { color: "green" } }) : /* @__PURE__ */ n(di, { size: 48 }), Wf = ({
7150
+ }, Nc = (e) => e < 1024 ? `${e} bytes` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / (1024 * 1024)).toFixed(2)} MB`, Vc = (e) => e === "application/pdf" ? /* @__PURE__ */ n(Wi, { size: 48, style: { color: "red" } }) : e === "application/msword" || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? /* @__PURE__ */ n(Wi, { size: 48, style: { color: "blue" } }) : e === "application/vnd.ms-excel" || e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? /* @__PURE__ */ n(ja, { size: 48, style: { color: "green" } }) : /* @__PURE__ */ n(di, { size: 48 }), Uf = ({
7151
7151
  attachments: e,
7152
7152
  accept: t,
7153
7153
  acceptDescription: r,
@@ -7199,7 +7199,7 @@ const Uf = ({ targetDate: e, color: t }) => {
7199
7199
  "application/vnd.ms-excel",
7200
7200
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
7201
7201
  ];
7202
- return /* @__PURE__ */ b(He, { children: [
7202
+ return /* @__PURE__ */ b(Ue, { children: [
7203
7203
  /* @__PURE__ */ n(Qe, { withBorder: !0, style: { border: `2px dashed ${u.colors.gray[5]}`, padding: "20px" }, children: /* @__PURE__ */ n(
7204
7204
  Yr,
7205
7205
  {
@@ -7305,7 +7305,7 @@ const Uf = ({ targetDate: e, color: t }) => {
7305
7305
  )) }) })
7306
7306
  ] });
7307
7307
  };
7308
- function Gf({
7308
+ function Wf({
7309
7309
  value: e,
7310
7310
  onChange: t,
7311
7311
  label: r,
@@ -7356,7 +7356,7 @@ function Gf({
7356
7356
  )
7357
7357
  ] });
7358
7358
  }
7359
- function qf({
7359
+ function Gf({
7360
7360
  dataSource: e,
7361
7361
  dataField: t,
7362
7362
  disabled: r = !1,
@@ -7476,7 +7476,7 @@ function qf({
7476
7476
  }
7477
7477
  );
7478
7478
  }
7479
- function Yf({
7479
+ function qf({
7480
7480
  width: e = 200,
7481
7481
  height: t = 200,
7482
7482
  dataSource: r,
@@ -7769,7 +7769,7 @@ function Yf({
7769
7769
  ]
7770
7770
  }
7771
7771
  ),
7772
- /* @__PURE__ */ b(He, { gap: "xs", mt: "md", children: [
7772
+ /* @__PURE__ */ b(Ue, { gap: "xs", mt: "md", children: [
7773
7773
  /* @__PURE__ */ n(ze, { justify: "space-between", children: /* @__PURE__ */ b(ye, { style: { flex: 1 }, children: [
7774
7774
  /* @__PURE__ */ n(_e, { label: "Zoom", children: /* @__PURE__ */ n(bn, { size: 20 }) }),
7775
7775
  /* @__PURE__ */ n(
@@ -7904,7 +7904,7 @@ function Mc({
7904
7904
  function Bc(e, t, r) {
7905
7905
  return t ? Lc(e, r) : Fc(e, r);
7906
7906
  }
7907
- function Qf({ actions: e, variant: t, customComponents: r, options: i }) {
7907
+ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
7908
7908
  const o = de([]), s = de(null), l = de([]), a = de([]), [c, u] = S(e.length), [d, h] = S([]), f = de(null), [p] = va(f), [g, y] = S(!1), m = Lt(), w = i && i.largerBreakPoint ? i.largerBreakPoint : m.breakpoints.md, E = i && i.smallerBreakPoint ? i.smallerBreakPoint : m.breakpoints.sm, D = Oi(`(min-width: ${w})`), B = Oi(`(max-width: ${E})`), V = Number(i && i.largerSpacing ? Ir(i.largerSpacing) : Ir("1rem")), Q = Number(i && i.smallerSpacing ? Ir(i.smallerSpacing) : Ir("0.25rem")), _ = D ? V : Q, U = i && i.menuPosition ? i.menuPosition : "right", z = D ? l : a, k = T(() => {
7909
7909
  const v = f.current;
7910
7910
  if (v) {
@@ -7977,7 +7977,7 @@ function Qf({ actions: e, variant: t, customComponents: r, options: i }) {
7977
7977
  children: [
7978
7978
  U === "left" ? G() : void 0,
7979
7979
  e.map((v, P) => {
7980
- const L = Ue.createRef();
7980
+ const L = He.createRef();
7981
7981
  if (o.current = [...o.current, L], !(P >= c))
7982
7982
  return /* @__PURE__ */ b(ot, { children: [
7983
7983
  /* @__PURE__ */ n(_e, { withArrow: !0, withinPortal: !0, disabled: !v.hint, label: v.hint, children: /* @__PURE__ */ n("div", { children: Bc(
@@ -7999,7 +7999,7 @@ function Qf({ actions: e, variant: t, customComponents: r, options: i }) {
7999
7999
  }
8000
8000
  );
8001
8001
  }
8002
- function Xf({
8002
+ function Qf({
8003
8003
  data: e,
8004
8004
  formatData: t,
8005
8005
  width: r,
@@ -8343,7 +8343,7 @@ function Wc({
8343
8343
  p: "xl",
8344
8344
  style: { width: l, height: a, minHeight: c },
8345
8345
  className: V,
8346
- children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(He, { align: "center", children: [
8346
+ children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(Ue, { align: "center", children: [
8347
8347
  /* @__PURE__ */ n(Ot, { visible: !0 }),
8348
8348
  typeof k == "string" ? /* @__PURE__ */ n(X, { children: k }) : k
8349
8349
  ] }) })
@@ -8557,7 +8557,7 @@ const nd = "_pointer_9trty_23", Nt = {
8557
8557
  expander: Nt["expander-light"],
8558
8558
  punctuation: Nt["punctuation-light"],
8559
8559
  pointer: Nt.pointer
8560
- }, od = () => !0, Kf = ({
8560
+ }, od = () => !0, Xf = ({
8561
8561
  data: e,
8562
8562
  style: t = id,
8563
8563
  shouldInitiallyExpand: r = od
@@ -8625,7 +8625,7 @@ function co(e) {
8625
8625
  function dd(e) {
8626
8626
  return /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#:.?+=&%@!\-/]))?/.test(e);
8627
8627
  }
8628
- class Jf extends ya {
8628
+ class Kf extends ya {
8629
8629
  static defaultProps = {
8630
8630
  options: sd
8631
8631
  };
@@ -8633,7 +8633,7 @@ class Jf extends ya {
8633
8633
  destRef;
8634
8634
  jsonPathPickerInstance;
8635
8635
  constructor(t) {
8636
- super(t), this.pickerRef = Ue.createRef();
8636
+ super(t), this.pickerRef = He.createRef();
8637
8637
  }
8638
8638
  json2jsx = (t, r) => {
8639
8639
  if (typeof t == "string") {
@@ -8797,7 +8797,7 @@ const Or = () => {
8797
8797
  e
8798
8798
  );
8799
8799
  t.id || (t.id = Date.now().toString()), Object.freeze(t);
8800
- const [r, i] = Ue.useState(t.height), [o, s] = Ue.useState(t.width), [l, a] = Ue.useState(t.top || 0), [c, u] = Ue.useState(t.left || 0), [d, h] = Ue.useState(0), [f, p] = Ue.useState(0), [g, y] = Ue.useState(!1), [m, w] = Ue.useState(!1), [E, D] = Ue.useState("▁"), [B, V] = Ue.useState("□"), [Q, _] = Ue.useState(""), [U, z] = Ue.useState(Or()), [k, R] = Ue.useState(1), { ref: G, width: v, height: P } = Mo(), L = Ue.useRef(null), O = de(r), I = de(o), x = de(l), j = de(c), A = 500, M = (Z) => {
8800
+ const [r, i] = He.useState(t.height), [o, s] = He.useState(t.width), [l, a] = He.useState(t.top || 0), [c, u] = He.useState(t.left || 0), [d, h] = He.useState(0), [f, p] = He.useState(0), [g, y] = He.useState(!1), [m, w] = He.useState(!1), [E, D] = He.useState("▁"), [B, V] = He.useState("□"), [Q, _] = He.useState(""), [U, z] = He.useState(Or()), [k, R] = He.useState(1), { ref: G, width: v, height: P } = Mo(), L = He.useRef(null), O = de(r), I = de(o), x = de(l), j = de(c), A = 500, M = (Z) => {
8801
8801
  p(Z.clientY - l), h(Z.clientX - c), z(Or()), R(0.5);
8802
8802
  }, F = (Z) => {
8803
8803
  u((Z.clientX || Z.screenX || c + d) - d), a((Z.clientY || Z.screenY || l + f) - f);
@@ -8905,7 +8905,7 @@ function hd({ data: e, expandLevel: t }) {
8905
8905
  }
8906
8906
  );
8907
8907
  }
8908
- function Zf({
8908
+ function Jf({
8909
8909
  title: e,
8910
8910
  icon: t,
8911
8911
  debugObjectInspectorHotKey: r,
@@ -8938,12 +8938,12 @@ function Zf({
8938
8938
  }
8939
8939
  ) });
8940
8940
  }
8941
- const dr = Ue.createContext({}), fd = dr.Provider, pd = ({
8941
+ const dr = He.createContext({}), fd = dr.Provider, pd = ({
8942
8942
  path: e,
8943
8943
  item: t
8944
8944
  }) => {
8945
8945
  const { handleChange: r } = _t(dr), { t: i } = Xe();
8946
- return /* @__PURE__ */ n(dt, { direction: "column", w: "100%", wrap: "nowrap", children: /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
8946
+ return /* @__PURE__ */ n(dt, { direction: "column", w: "100%", wrap: "nowrap", children: /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
8947
8947
  Tt,
8948
8948
  {
8949
8949
  label: `${i("archbase:Default value")}`,
@@ -9101,7 +9101,7 @@ const lr = (e, t) => {
9101
9101
  }, a = t.enum !== void 0, u = (t.enum ? t.enum : [])?.join(`
9102
9102
  `);
9103
9103
  return /* @__PURE__ */ b(dt, { direction: "column", w: "100%", wrap: "nowrap", children: [
9104
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9104
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9105
9105
  _r,
9106
9106
  {
9107
9107
  label: `${i("archbase:Default value")}`,
@@ -9114,7 +9114,7 @@ const lr = (e, t) => {
9114
9114
  }
9115
9115
  }
9116
9116
  ) }),
9117
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ b(dt, { justify: "space-between", children: [
9117
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ b(dt, { justify: "space-between", children: [
9118
9118
  /* @__PURE__ */ n(
9119
9119
  _r,
9120
9120
  {
@@ -9140,7 +9140,7 @@ const lr = (e, t) => {
9140
9140
  }
9141
9141
  )
9142
9142
  ] }) }),
9143
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", mt: 8, children: /* @__PURE__ */ b(dt, { align: "center", justify: "space-between", children: [
9143
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", mt: 8, children: /* @__PURE__ */ b(dt, { align: "center", justify: "space-between", children: [
9144
9144
  /* @__PURE__ */ n(X, { children: `${i("archbase:Enum")}` }),
9145
9145
  /* @__PURE__ */ n(
9146
9146
  kt,
@@ -9186,7 +9186,7 @@ const lr = (e, t) => {
9186
9186
  `);
9187
9187
  return u.length > 0 && (u = u.concat(`
9188
9188
  `)), /* @__PURE__ */ b(dt, { direction: "column", w: "100%", wrap: "nowrap", children: [
9189
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9189
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9190
9190
  st,
9191
9191
  {
9192
9192
  id: "default",
@@ -9198,7 +9198,7 @@ const lr = (e, t) => {
9198
9198
  }
9199
9199
  }
9200
9200
  ) }),
9201
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ b(dt, { justify: "space-between", children: [
9201
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ b(dt, { justify: "space-between", children: [
9202
9202
  /* @__PURE__ */ n(
9203
9203
  _r,
9204
9204
  {
@@ -9224,7 +9224,7 @@ const lr = (e, t) => {
9224
9224
  }
9225
9225
  )
9226
9226
  ] }) }),
9227
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9227
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9228
9228
  st,
9229
9229
  {
9230
9230
  id: "pattern",
@@ -9236,7 +9236,7 @@ const lr = (e, t) => {
9236
9236
  }
9237
9237
  }
9238
9238
  ) }),
9239
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", mt: 8, children: /* @__PURE__ */ b(dt, { align: "center", justify: "space-between", children: [
9239
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", mt: 8, children: /* @__PURE__ */ b(dt, { align: "center", justify: "space-between", children: [
9240
9240
  /* @__PURE__ */ n(X, { children: `${s("archbase:Enum")}` }),
9241
9241
  /* @__PURE__ */ n(
9242
9242
  kt,
@@ -9261,7 +9261,7 @@ const lr = (e, t) => {
9261
9261
  }
9262
9262
  ) })
9263
9263
  ] }) }),
9264
- /* @__PURE__ */ n(He, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9264
+ /* @__PURE__ */ n(Ue, { align: "stretch", justify: "center", m: 1, children: /* @__PURE__ */ n(
9265
9265
  Tt,
9266
9266
  {
9267
9267
  label: `${s("archbase:Format1")}`,
@@ -9313,7 +9313,7 @@ const lr = (e, t) => {
9313
9313
  children: /* @__PURE__ */ n(wn, {})
9314
9314
  }
9315
9315
  ) }),
9316
- /* @__PURE__ */ n(wt.Dropdown, { w: "120px", color: "white", children: /* @__PURE__ */ b(He, { children: [
9316
+ /* @__PURE__ */ n(wt.Dropdown, { w: "120px", color: "white", children: /* @__PURE__ */ b(Ue, { children: [
9317
9317
  /* @__PURE__ */ n(
9318
9318
  Oe,
9319
9319
  {
@@ -9816,7 +9816,7 @@ const lr = (e, t) => {
9816
9816
  description: "",
9817
9817
  properties: {},
9818
9818
  required: []
9819
- }, ep = ({
9819
+ }, Zf = ({
9820
9820
  rootSchema: e,
9821
9821
  defaultRootSchema: t,
9822
9822
  onRootSchemaChange: r,
@@ -9869,7 +9869,7 @@ const lr = (e, t) => {
9869
9869
  )
9870
9870
  ] }) });
9871
9871
  };
9872
- function tp({
9872
+ function ep({
9873
9873
  data: e,
9874
9874
  columns: t,
9875
9875
  onRowClick: r,
@@ -9904,7 +9904,7 @@ function tp({
9904
9904
  }
9905
9905
  );
9906
9906
  }
9907
- const kd = Ue.createContext({}), rp = kd.Provider, Dd = 1, bs = typeof window < "u" ? W : W, Td = () => {
9907
+ const kd = He.createContext({}), tp = kd.Provider, Dd = 1, bs = typeof window < "u" ? W : W, Td = () => {
9908
9908
  const [e, t] = S(!1);
9909
9909
  return bs(() => {
9910
9910
  t(!0);
@@ -9917,7 +9917,7 @@ const kd = Ue.createContext({}), rp = kd.Provider, Dd = 1, bs = typeof window <
9917
9917
  if (e)
9918
9918
  return window.addEventListener("resize", i), i(), () => window.removeEventListener("resize", i);
9919
9919
  }, [e, i]), t;
9920
- }, Id = ({
9920
+ }, rp = ({
9921
9921
  children: e,
9922
9922
  columnsCount: t = 3,
9923
9923
  gutter: r = "px",
@@ -9926,8 +9926,8 @@ const kd = Ue.createContext({}), rp = kd.Provider, Dd = 1, bs = typeof window <
9926
9926
  }) => {
9927
9927
  const s = () => {
9928
9928
  const a = Array.from({ length: t }, () => []);
9929
- return Ue.Children.forEach(e, (c, u) => {
9930
- Ue.isValidElement(c) && a[u % t].push(c);
9929
+ return He.Children.forEach(e, (c, u) => {
9930
+ He.isValidElement(c) && a[u % t].push(c);
9931
9931
  }), a;
9932
9932
  }, l = () => s().map((a, c) => /* @__PURE__ */ n(
9933
9933
  "div",
@@ -9941,7 +9941,7 @@ const kd = Ue.createContext({}), rp = kd.Provider, Dd = 1, bs = typeof window <
9941
9941
  width: 0,
9942
9942
  gap: r
9943
9943
  },
9944
- children: a.map((u, d) => /* @__PURE__ */ n(Ue.Fragment, { children: u }, d))
9944
+ children: a.map((u, d) => /* @__PURE__ */ n(He.Fragment, { children: u }, d))
9945
9945
  },
9946
9946
  c
9947
9947
  ));
@@ -9980,7 +9980,13 @@ const kd = Ue.createContext({}), rp = kd.Provider, Dd = 1, bs = typeof window <
9980
9980
  Number(c) < o && (a = e[c]);
9981
9981
  }), a;
9982
9982
  }, [o, e]);
9983
- return /* @__PURE__ */ n(Id, { className: r, style: i, columnsCount: s, children: t });
9983
+ return /* @__PURE__ */ n("div", { className: r, style: i, children: He.Children.map(
9984
+ t,
9985
+ (l, a) => He.cloneElement(l, {
9986
+ key: a,
9987
+ columnsCount: s
9988
+ })
9989
+ ) });
9984
9990
  };
9985
9991
  class ip {
9986
9992
  static showError(t, r, i = 5e3, o) {
@@ -10023,7 +10029,7 @@ class ip {
10023
10029
  });
10024
10030
  }
10025
10031
  }
10026
- const Rd = {
10032
+ const Id = {
10027
10033
  variant: "light"
10028
10034
  };
10029
10035
  function op(e) {
@@ -10041,7 +10047,7 @@ function op(e) {
10041
10047
  variant: h,
10042
10048
  titleColor: f,
10043
10049
  autoClose: p = 0
10044
- } = ra("ArchbaseAlert", Rd, e), [g] = S(!1);
10050
+ } = ra("ArchbaseAlert", Id, e), [g] = S(!1);
10045
10051
  return W(() => {
10046
10052
  p > 0 && !g && setTimeout(() => c ? c() : null, p);
10047
10053
  }, [p]), /* @__PURE__ */ n(
@@ -10303,7 +10309,7 @@ function fo({
10303
10309
  disabled: g
10304
10310
  }) {
10305
10311
  const { t: y } = Xe(), m = typeof o == "boolean" ? o ? ho : {} : { ...ho, ...o }, w = Math.round(r * 100);
10306
- return /* @__PURE__ */ b(He, { gap: "xs", py: "sm", children: [
10312
+ return /* @__PURE__ */ b(Ue, { gap: "xs", py: "sm", children: [
10307
10313
  (m.pageNavigation || m.nextPage || m.previousPage || m.firstPage || m.lastPage) && /* @__PURE__ */ b(ze, { justify: "center", gap: "xs", children: [
10308
10314
  m.firstPage && /* @__PURE__ */ n(_e, { label: String(y("First Page")), children: /* @__PURE__ */ n(
10309
10315
  ke,
@@ -10418,7 +10424,7 @@ function fo({
10418
10424
  const po = {
10419
10425
  highlight: "#ffd700"
10420
10426
  };
10421
- function $d({
10427
+ function Rd({
10422
10428
  annotations: e,
10423
10429
  onAnnotationAdd: t,
10424
10430
  onAnnotationRemove: r,
@@ -10573,7 +10579,7 @@ function $d({
10573
10579
  onClose: () => m(!1),
10574
10580
  title: String(c("Add Annotation")),
10575
10581
  size: "sm",
10576
- children: /* @__PURE__ */ b(He, { gap: "md", children: [
10582
+ children: /* @__PURE__ */ b(Ue, { gap: "md", children: [
10577
10583
  /* @__PURE__ */ b(ze, { children: [
10578
10584
  /* @__PURE__ */ n(
10579
10585
  Oe,
@@ -10631,7 +10637,7 @@ function $d({
10631
10637
  )
10632
10638
  ] });
10633
10639
  }
10634
- function Pd({
10640
+ function $d({
10635
10641
  annotations: e,
10636
10642
  onAnnotationRemove: t,
10637
10643
  onAnnotationClick: r,
@@ -10647,9 +10653,9 @@ function Pd({
10647
10653
  return ei;
10648
10654
  }
10649
10655
  };
10650
- return /* @__PURE__ */ b(He, { gap: "xs", p: "sm", children: [
10656
+ return /* @__PURE__ */ b(Ue, { gap: "xs", p: "sm", children: [
10651
10657
  /* @__PURE__ */ n(X, { fw: 500, children: String(o("Annotations")) }),
10652
- e.length === 0 ? /* @__PURE__ */ n(X, { c: "dimmed", size: "sm", children: String(o("No annotations yet")) }) : Object.entries(s).map(([a, c]) => /* @__PURE__ */ b(He, { gap: 4, children: [
10658
+ e.length === 0 ? /* @__PURE__ */ n(X, { c: "dimmed", size: "sm", children: String(o("No annotations yet")) }) : Object.entries(s).map(([a, c]) => /* @__PURE__ */ b(Ue, { gap: 4, children: [
10653
10659
  /* @__PURE__ */ b(X, { size: "sm", c: "dimmed", children: [
10654
10660
  String(o("Page")),
10655
10661
  " ",
@@ -10787,7 +10793,7 @@ function dp({
10787
10793
  }, [L, r]), oe = T(() => {
10788
10794
  window.print();
10789
10795
  }, []), Ie = L || r, Re = Q || I;
10790
- return /* @__PURE__ */ b(He, { gap: "xs", style: z, className: k, children: [
10796
+ return /* @__PURE__ */ b(Ue, { gap: "xs", style: z, className: k, children: [
10791
10797
  c && h !== "bottom" && /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xs", children: /* @__PURE__ */ n(
10792
10798
  fo,
10793
10799
  {
@@ -10810,7 +10816,7 @@ function dp({
10810
10816
  ) }),
10811
10817
  /* @__PURE__ */ b(ze, { gap: "xs", align: "flex-start", children: [
10812
10818
  V && B && /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xs", style: { width: 250 }, children: /* @__PURE__ */ n(Rt.Autosize, { mah: o, type: "always", children: /* @__PURE__ */ n(
10813
- Pd,
10819
+ $d,
10814
10820
  {
10815
10821
  annotations: m,
10816
10822
  onAnnotationRemove: E,
@@ -10845,7 +10851,7 @@ function dp({
10845
10851
  }
10846
10852
  ),
10847
10853
  B && G.width > 0 && /* @__PURE__ */ n(
10848
- $d,
10854
+ Rd,
10849
10855
  {
10850
10856
  annotations: m,
10851
10857
  onAnnotationAdd: w,
@@ -10987,7 +10993,7 @@ const fr = {
10987
10993
  "ods",
10988
10994
  "odp"
10989
10995
  ]
10990
- }, Nd = {
10996
+ }, Pd = {
10991
10997
  // PDF
10992
10998
  "application/pdf": "pdf",
10993
10999
  // Imagens
@@ -11039,9 +11045,9 @@ function _n(e) {
11039
11045
  return fr.pdf.includes(t) ? "pdf" : fr.image.includes(t) ? "image" : fr.video.includes(t) ? "video" : fr.audio.includes(t) ? "audio" : fr.code.includes(t) ? "code" : fr.office.includes(t) ? "office" : fr.text.includes(t) ? "text" : "unknown";
11040
11046
  }
11041
11047
  function jn(e) {
11042
- return Nd[e] || "unknown";
11048
+ return Pd[e] || "unknown";
11043
11049
  }
11044
- function Vd(e) {
11050
+ function Nd(e) {
11045
11051
  const t = new DataView(e), r = [];
11046
11052
  for (let o = 0; o < Math.min(16, e.byteLength); o++)
11047
11053
  r.push(t.getUint8(o).toString(16).padStart(2, "0"));
@@ -11058,7 +11064,7 @@ function Vd(e) {
11058
11064
  t.getUint8(11)
11059
11065
  ) === "WAVE" ? "audio" : "unknown";
11060
11066
  }
11061
- async function Ld(e, t, r) {
11067
+ async function Vd(e, t, r) {
11062
11068
  if (t) {
11063
11069
  const i = jn(t);
11064
11070
  if (i !== "unknown")
@@ -11104,7 +11110,7 @@ async function Ld(e, t, r) {
11104
11110
  if (e instanceof Blob || e instanceof File)
11105
11111
  try {
11106
11112
  const i = await e.arrayBuffer();
11107
- return Vd(i);
11113
+ return Nd(i);
11108
11114
  } catch {
11109
11115
  return "unknown";
11110
11116
  }
@@ -11113,7 +11119,7 @@ async function Ld(e, t, r) {
11113
11119
  function up(e) {
11114
11120
  return e !== "unknown";
11115
11121
  }
11116
- function Fd(e, t) {
11122
+ function Ld(e, t) {
11117
11123
  const r = t ? `"${t}"` : "Este arquivo", i = {
11118
11124
  pdf: "PDF",
11119
11125
  image: "imagem",
@@ -11140,7 +11146,7 @@ function qr(e) {
11140
11146
  function vn(e) {
11141
11147
  e.startsWith("blob:") && URL.revokeObjectURL(e);
11142
11148
  }
11143
- function Md({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11149
+ function Fd({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11144
11150
  const [s, l] = S(null);
11145
11151
  return W(() => ((async () => {
11146
11152
  try {
@@ -11168,7 +11174,7 @@ function Md({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11168
11174
  }
11169
11175
  ) : /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(Ot, { visible: !0 }) });
11170
11176
  }
11171
- function Bd({ file: e, width: t, height: r, onLoad: i, onError: o, style: s, className: l }) {
11177
+ function Md({ file: e, width: t, height: r, onLoad: i, onError: o, style: s, className: l }) {
11172
11178
  const [a, c] = S(null), [u, d] = S(!1);
11173
11179
  return W(() => ((async () => {
11174
11180
  try {
@@ -11205,7 +11211,7 @@ function Bd({ file: e, width: t, height: r, onLoad: i, onError: o, style: s, cla
11205
11211
  }
11206
11212
  ) }) : /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(Ot, { visible: !0 }) });
11207
11213
  }
11208
- function Od({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11214
+ function Bd({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11209
11215
  const [s, l] = S(null);
11210
11216
  return W(() => ((async () => {
11211
11217
  try {
@@ -11234,7 +11240,7 @@ function Od({ file: e, width: t, height: r, onLoad: i, onError: o }) {
11234
11240
  }
11235
11241
  ) : /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(Ot, { visible: !0 }) });
11236
11242
  }
11237
- function _d({ file: e, onLoad: t, onError: r }) {
11243
+ function Od({ file: e, onLoad: t, onError: r }) {
11238
11244
  const [i, o] = S(null);
11239
11245
  return W(() => ((async () => {
11240
11246
  try {
@@ -11251,7 +11257,7 @@ function _d({ file: e, onLoad: t, onError: r }) {
11251
11257
  i && vn(i);
11252
11258
  }), [e]), i ? /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n("audio", { src: i, controls: !0, style: { width: "100%" } }) }) : /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(Ot, { visible: !0 }) });
11253
11259
  }
11254
- function jd({ file: e, width: t, height: r, onLoad: i, onError: o, className: s }) {
11260
+ function _d({ file: e, width: t, height: r, onLoad: i, onError: o, className: s }) {
11255
11261
  const [l, a] = S(null), [c, u] = S(!1);
11256
11262
  return W(() => {
11257
11263
  (async () => {
@@ -11303,14 +11309,14 @@ function jd({ file: e, width: t, height: r, onLoad: i, onError: o, className: s
11303
11309
  );
11304
11310
  }
11305
11311
  function mo({ fileType: e, fileName: t }) {
11306
- const r = Fd(e, t);
11307
- return /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(He, { align: "center", gap: "md", p: "xl", children: [
11312
+ const r = Ld(e, t);
11313
+ return /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(Ue, { align: "center", gap: "md", p: "xl", children: [
11308
11314
  /* @__PURE__ */ n(di, { size: 64, opacity: 0.3 }),
11309
11315
  /* @__PURE__ */ n(X, { size: "lg", fw: 500, ta: "center", children: "Preview not available" }),
11310
11316
  /* @__PURE__ */ n(X, { size: "sm", c: "dimmed", ta: "center", maw: 400, children: r })
11311
11317
  ] }) });
11312
11318
  }
11313
- function Hd({
11319
+ function jd({
11314
11320
  file: e,
11315
11321
  fileType: t,
11316
11322
  layoutMode: r = "inline",
@@ -11359,7 +11365,7 @@ function Hd({
11359
11365
  }
11360
11366
  Se("loading"), U?.();
11361
11367
  try {
11362
- const oe = await Ld(e, M, A);
11368
+ const oe = await Vd(e, M, A);
11363
11369
  K(oe), Se("loaded"), z?.();
11364
11370
  } catch (oe) {
11365
11371
  const Ie = {
@@ -11504,23 +11510,23 @@ function Hd({
11504
11510
  };
11505
11511
  switch (le) {
11506
11512
  case "pdf":
11507
- return /* @__PURE__ */ n(Md, { ...oe });
11513
+ return /* @__PURE__ */ n(Fd, { ...oe });
11508
11514
  case "image":
11509
- return /* @__PURE__ */ n(Bd, { ...oe });
11515
+ return /* @__PURE__ */ n(Md, { ...oe });
11510
11516
  case "video":
11511
- return /* @__PURE__ */ n(Od, { ...oe });
11517
+ return /* @__PURE__ */ n(Bd, { ...oe });
11512
11518
  case "audio":
11513
- return /* @__PURE__ */ n(_d, { ...oe });
11519
+ return /* @__PURE__ */ n(Od, { ...oe });
11514
11520
  case "text":
11515
11521
  case "code":
11516
- return /* @__PURE__ */ n(jd, { ...oe });
11522
+ return /* @__PURE__ */ n(_d, { ...oe });
11517
11523
  case "office":
11518
11524
  return /* @__PURE__ */ n(mo, { fileType: le, fileName: A });
11519
11525
  default:
11520
11526
  return /* @__PURE__ */ n(mo, { fileType: le, fileName: A });
11521
11527
  }
11522
11528
  };
11523
- return Z === "loading" && V ? /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xl", style: { width: i, height: o }, children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(He, { align: "center", children: [
11529
+ return Z === "loading" && V ? /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xl", style: { width: i, height: o }, children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(Ue, { align: "center", children: [
11524
11530
  /* @__PURE__ */ n(Ot, { visible: !0 }),
11525
11531
  V
11526
11532
  ] }) }) }) : Z === "error" && ce ? /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xl", style: { width: i, height: o }, children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", title: "Error", children: Q || ce.message }) }) }) : e ? /* @__PURE__ */ b(
@@ -11562,13 +11568,13 @@ function Hd({
11562
11568
  a === "bottom" || a === "both" ? $() : null
11563
11569
  ]
11564
11570
  }
11565
- ) : /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xl", style: { width: i, height: o }, children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(He, { align: "center", gap: "md", children: [
11571
+ ) : /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xl", style: { width: i, height: o }, children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(Ue, { align: "center", gap: "md", children: [
11566
11572
  /* @__PURE__ */ n(di, { size: 64, opacity: 0.3 }),
11567
11573
  /* @__PURE__ */ n(X, { size: "lg", c: "dimmed", children: _ || F("No file to preview") })
11568
11574
  ] }) }) });
11569
11575
  }
11570
- Hd.displayName = "ArchbaseFilePreviewer";
11571
- function Ud({
11576
+ jd.displayName = "ArchbaseFilePreviewer";
11577
+ function Hd({
11572
11578
  filter: e,
11573
11579
  onRemove: t,
11574
11580
  onOperatorClick: r,
@@ -11577,7 +11583,7 @@ function Ud({
11577
11583
  compact: s = !1,
11578
11584
  styles: l
11579
11585
  }) {
11580
- const a = Wd(e.operator);
11586
+ const a = Ud(e.operator);
11581
11587
  return /* @__PURE__ */ n(
11582
11588
  oi,
11583
11589
  {
@@ -11637,7 +11643,7 @@ function Ud({
11637
11643
  }
11638
11644
  );
11639
11645
  }
11640
- function Wd(e) {
11646
+ function Ud(e) {
11641
11647
  return {
11642
11648
  contains: "contains",
11643
11649
  starts_with: "starts with",
@@ -11658,7 +11664,7 @@ function Wd(e) {
11658
11664
  not_in: "not in"
11659
11665
  }[e] || e;
11660
11666
  }
11661
- const Gd = {
11667
+ const Wd = {
11662
11668
  // String
11663
11669
  contains: "=like=",
11664
11670
  starts_with: "=like=",
@@ -11683,13 +11689,13 @@ const Gd = {
11683
11689
  in: ka,
11684
11690
  not_in: Aa
11685
11691
  };
11686
- function qd(e) {
11687
- const { key: t, operator: r, value: i, type: o } = e, s = Gd[r];
11692
+ function Gd(e) {
11693
+ const { key: t, operator: r, value: i, type: o } = e, s = Wd[r];
11688
11694
  if (r === "is_null")
11689
11695
  return `${t}=null=true`;
11690
11696
  if (r === "is_not_null")
11691
11697
  return `${t}=null=false`;
11692
- const l = Yd(i, o, r);
11698
+ const l = qd(i, o, r);
11693
11699
  if (r === "contains")
11694
11700
  return `${t}=like=*${l}*`;
11695
11701
  if (r === "starts_with")
@@ -11708,7 +11714,7 @@ function qd(e) {
11708
11714
  }
11709
11715
  return s === jo ? tr(Qt.eq(t, l)) : s === Ho ? tr(Qt.neq(t, l)) : s === Qn ? tr(Qt.gt(t, l)) : s === Xn ? tr(Qt.lt(t, l)) : s === Uo ? tr(Qt.ge(t, l)) : s === Wo ? tr(Qt.le(t, l)) : `${t}${s}${l}`;
11710
11716
  }
11711
- function Yd(e, t, r) {
11717
+ function qd(e, t, r) {
11712
11718
  if ((r === "between" || r === "date_between") && Array.isArray(e)) {
11713
11719
  const [i, o] = e;
11714
11720
  return `${Rr(i, t)},${Rr(o, t)}`;
@@ -11735,9 +11741,9 @@ function Rr(e, t) {
11735
11741
  }
11736
11742
  }
11737
11743
  function Kt(e) {
11738
- return !e || e.length === 0 ? void 0 : e.map(qd).join(";");
11744
+ return !e || e.length === 0 ? void 0 : e.map(Gd).join(";");
11739
11745
  }
11740
- function Qd(e) {
11746
+ function Yd(e) {
11741
11747
  return {
11742
11748
  field: e.key,
11743
11749
  operator: e.operator,
@@ -11745,7 +11751,7 @@ function Qd(e) {
11745
11751
  };
11746
11752
  }
11747
11753
  function ws(e) {
11748
- return e.map(Qd);
11754
+ return e.map(Yd);
11749
11755
  }
11750
11756
  function vi(e, t, r, i) {
11751
11757
  if (r === "is_null")
@@ -11762,7 +11768,7 @@ function vi(e, t, r, i) {
11762
11768
  }
11763
11769
  return Array.isArray(e) ? e.join(", ") : typeof e == "boolean" ? e ? "true" : "false" : e instanceof Date ? e.toLocaleDateString() : String(e);
11764
11770
  }
11765
- function Xd(e) {
11771
+ function Qd(e) {
11766
11772
  const t = ["contains", "starts_with", "ends_with", "=", "!=", "is_null", "is_not_null"], r = ["=", "!=", ">", "<", ">=", "<=", "is_null", "is_not_null", "between"], i = ["=", "!=", "date_before", "date_after", "date_between", "is_null", "is_not_null"], o = ["=", "!=", "in", "not_in", "is_null", "is_not_null"], s = ["=", "!="];
11767
11773
  switch (e) {
11768
11774
  case "text":
@@ -11785,7 +11791,7 @@ function Xd(e) {
11785
11791
  return t;
11786
11792
  }
11787
11793
  }
11788
- function Kd(e) {
11794
+ function Xd(e) {
11789
11795
  switch (e) {
11790
11796
  case "text":
11791
11797
  case "uuid":
@@ -11813,7 +11819,7 @@ function Cs(e, t, r) {
11813
11819
  function gn() {
11814
11820
  return `filter-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
11815
11821
  }
11816
- function Jd({
11822
+ function Kd({
11817
11823
  filters: e,
11818
11824
  value: t,
11819
11825
  onChange: r,
@@ -11853,7 +11859,7 @@ function Jd({
11853
11859
  (ne) => !_.some((ae) => ae.key === ne.key)
11854
11860
  ), [e, _, l]), A = Ge(() => !P || U !== "field" ? j : j.filter(
11855
11861
  (ne) => ne.label.toLowerCase().includes(P.toLowerCase()) || ne.key.toLowerCase().includes(P.toLowerCase())
11856
- ), [j, P, U]), M = Ge(() => k ? k.operators || Xd(k.type) : [], [k]), F = Ge(() => k?.options || [], [k]), C = Ge(() => !P || U !== "value" ? F : F.filter(
11862
+ ), [j, P, U]), M = Ge(() => k ? k.operators || Qd(k.type) : [], [k]), F = Ge(() => k?.options || [], [k]), C = Ge(() => !P || U !== "value" ? F : F.filter(
11857
11863
  (ne) => ne.label.toLowerCase().includes(P.toLowerCase())
11858
11864
  ), [F, P, U]), H = T(() => {
11859
11865
  z("field"), R(null), v(null), L("");
@@ -11928,7 +11934,7 @@ function Jd({
11928
11934
  ae && (v(ae), L(""), ae === "is_null" || ae === "is_not_null" ? K() : z("value"));
11929
11935
  }
11930
11936
  }, [U, A, M, K]), Ce = T((ne) => {
11931
- R(ne), v(Kd(ne.type)), L(""), z("value");
11937
+ R(ne), v(Xd(ne.type)), L(""), z("value");
11932
11938
  }, []), te = T((ne) => {
11933
11939
  v(ne), L(""), ne === "is_null" || ne === "is_not_null" ? K() : z("value");
11934
11940
  }, [K]), ee = T((ne) => {
@@ -11936,7 +11942,7 @@ function Jd({
11936
11942
  }, [K]), re = () => {
11937
11943
  switch (U) {
11938
11944
  case "field":
11939
- return /* @__PURE__ */ n(ot, { children: A.length === 0 ? /* @__PURE__ */ n(X, { p: "md", c: "dimmed", size: "sm", children: String(D("No fields found")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(He, { gap: 0, children: A.map((ae) => /* @__PURE__ */ b(
11945
+ return /* @__PURE__ */ n(ot, { children: A.length === 0 ? /* @__PURE__ */ n(X, { p: "md", c: "dimmed", size: "sm", children: String(D("No fields found")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(Ue, { gap: 0, children: A.map((ae) => /* @__PURE__ */ b(
11940
11946
  Oe,
11941
11947
  {
11942
11948
  variant: "subtle",
@@ -11955,7 +11961,7 @@ function Jd({
11955
11961
  ae.key
11956
11962
  )) }) }) });
11957
11963
  case "operator":
11958
- return /* @__PURE__ */ n(ot, { children: M.length === 0 ? /* @__PURE__ */ n(X, { p: "md", c: "dimmed", size: "sm", children: String(D("No operators available")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(He, { gap: 0, children: M.map((ae) => /* @__PURE__ */ n(
11964
+ return /* @__PURE__ */ n(ot, { children: M.length === 0 ? /* @__PURE__ */ n(X, { p: "md", c: "dimmed", size: "sm", children: String(D("No operators available")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(Ue, { gap: 0, children: M.map((ae) => /* @__PURE__ */ n(
11959
11965
  Oe,
11960
11966
  {
11961
11967
  variant: "subtle",
@@ -11965,13 +11971,13 @@ function Jd({
11965
11971
  inner: { justifyContent: "flex-start" },
11966
11972
  root: { borderRadius: 4 }
11967
11973
  },
11968
- children: /* @__PURE__ */ n(X, { size: "sm", children: Zd(ae) })
11974
+ children: /* @__PURE__ */ n(X, { size: "sm", children: Jd(ae) })
11969
11975
  },
11970
11976
  ae
11971
11977
  )) }) }) });
11972
11978
  case "value":
11973
11979
  if (k && (k.type === "enum" || F.length > 0))
11974
- return /* @__PURE__ */ n(ot, { children: C.length === 0 ? /* @__PURE__ */ n(X, { p: "md", c: "dimmed", size: "sm", children: String(D("No options found")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(He, { gap: 0, children: C.map((ae) => /* @__PURE__ */ n(
11980
+ return /* @__PURE__ */ n(ot, { children: C.length === 0 ? /* @__PURE__ */ n(X, { p: "md", c: "dimmed", size: "sm", children: String(D("No options found")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(Ue, { gap: 0, children: C.map((ae) => /* @__PURE__ */ n(
11975
11981
  Oe,
11976
11982
  {
11977
11983
  variant: "subtle",
@@ -11986,7 +11992,7 @@ function Jd({
11986
11992
  ae.value
11987
11993
  )) }) }) });
11988
11994
  const ne = k?.placeholder || String(D("Enter value"));
11989
- return /* @__PURE__ */ b(He, { p: "md", gap: "xs", children: [
11995
+ return /* @__PURE__ */ b(Ue, { p: "md", gap: "xs", children: [
11990
11996
  /* @__PURE__ */ n(X, { size: "sm", c: "dimmed", children: ne }),
11991
11997
  /* @__PURE__ */ n(X, { size: "xs", c: "dimmed", children: String(D("Press Enter to add filter")) }),
11992
11998
  k?.type === "integer" || k?.type === "float" || k?.type === "currency" ? /* @__PURE__ */ n(X, { size: "xs", c: "blue", children: k.type === "integer" ? String(D("Enter a number")) : String(D("Enter a decimal")) }) : null,
@@ -12009,8 +12015,8 @@ function Jd({
12009
12015
  className: y?.container,
12010
12016
  children: /* @__PURE__ */ b(ze, { gap: "xs", wrap: "wrap", children: [
12011
12017
  !J && /* @__PURE__ */ n(Ka, { size: 18, style: { flexShrink: 0 } }),
12012
- /* @__PURE__ */ n(ye, { style: { flex: 1, display: "flex", flexWrap: "wrap", gap: 6 }, children: _.map((ne) => p ? /* @__PURE__ */ n(Ue.Fragment, { children: p(ne, () => Z(ne.id)) }, ne.id) : /* @__PURE__ */ n(
12013
- Ud,
12018
+ /* @__PURE__ */ n(ye, { style: { flex: 1, display: "flex", flexWrap: "wrap", gap: 6 }, children: _.map((ne) => p ? /* @__PURE__ */ n(He.Fragment, { children: p(ne, () => Z(ne.id)) }, ne.id) : /* @__PURE__ */ n(
12019
+ Hd,
12014
12020
  {
12015
12021
  filter: ne,
12016
12022
  onRemove: () => Z(ne.id),
@@ -12111,7 +12117,7 @@ function Jd({
12111
12117
  a === "minimal" && _.length > 0 && /* @__PURE__ */ n(oi, { size: "xs", circle: !0, style: { marginLeft: 8 }, children: _.length })
12112
12118
  ] });
12113
12119
  }
12114
- function Zd(e) {
12120
+ function Jd(e) {
12115
12121
  return {
12116
12122
  contains: "Contains",
12117
12123
  starts_with: "Starts with",
@@ -12291,10 +12297,10 @@ function pp(e = {}) {
12291
12297
  title: "Preset saved",
12292
12298
  message: `"${p}" has been saved`,
12293
12299
  color: "green",
12294
- icon: Ue.createElement(
12300
+ icon: He.createElement(
12295
12301
  "svg",
12296
12302
  { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" },
12297
- Ue.createElement("path", { d: "M20 6L9 17l-5-5" })
12303
+ He.createElement("path", { d: "M20 6L9 17l-5-5" })
12298
12304
  )
12299
12305
  }), g;
12300
12306
  },
@@ -12435,7 +12441,7 @@ const go = {
12435
12441
  dracula: { bg: "#282a36", text: "#f8f8f2", border: "#44475a" },
12436
12442
  cool: { bg: "#1c1c1c", text: "#b0b0b0", border: "#333333" },
12437
12443
  "high-contrast": { bg: "#000000", text: "#ffffff", border: "#ffffff" }
12438
- }, eu = {
12444
+ }, Zd = {
12439
12445
  js: "javascript",
12440
12446
  ts: "typescript",
12441
12447
  tsx: "typescript",
@@ -12453,13 +12459,13 @@ const go = {
12453
12459
  html: "markup",
12454
12460
  svg: "markup"
12455
12461
  };
12456
- function tu(e) {
12462
+ function eu(e) {
12457
12463
  if (!e)
12458
12464
  return;
12459
12465
  const t = e.toLowerCase().trim();
12460
- return eu[t] || t;
12466
+ return Zd[t] || t;
12461
12467
  }
12462
- function ru(e, t) {
12468
+ function tu(e, t) {
12463
12469
  return e ? e.split(`
12464
12470
  `).map((i) => ({
12465
12471
  line: i || " ",
@@ -12467,14 +12473,14 @@ function ru(e, t) {
12467
12473
  highlight: !1
12468
12474
  })) : [];
12469
12475
  }
12470
- function nu({
12476
+ function ru({
12471
12477
  language: e,
12472
12478
  value: t,
12473
12479
  className: r,
12474
12480
  showLineNumbers: i = !1,
12475
12481
  theme: o = "github-dark"
12476
12482
  }) {
12477
- const s = Lt(), l = tu(e), a = go[o] || go["github-dark"], c = Ge(() => t ? ru(t) : [], [t, l]);
12483
+ const s = Lt(), l = eu(e), a = go[o] || go["github-dark"], c = Ge(() => t ? tu(t) : [], [t, l]);
12478
12484
  if (!t)
12479
12485
  return null;
12480
12486
  const u = c.length.toString().length;
@@ -12547,7 +12553,7 @@ function nu({
12547
12553
  }
12548
12554
  );
12549
12555
  }
12550
- function iu({
12556
+ function nu({
12551
12557
  children: e,
12552
12558
  className: t
12553
12559
  }) {
@@ -12568,7 +12574,7 @@ function iu({
12568
12574
  }
12569
12575
  );
12570
12576
  }
12571
- function ou(e) {
12577
+ function iu(e) {
12572
12578
  if (!e || e.startsWith("#") || e.startsWith("mailto:") || e.startsWith("tel:") || e.startsWith("/"))
12573
12579
  return !1;
12574
12580
  if (/^[a-z]+:\/\//i.test(e)) {
@@ -12582,13 +12588,13 @@ function ou(e) {
12582
12588
  }
12583
12589
  return !1;
12584
12590
  }
12585
- function su({
12591
+ function ou({
12586
12592
  href: e = "#",
12587
12593
  children: t,
12588
12594
  openExternalInNewTab: r = !0,
12589
12595
  onClick: i
12590
12596
  }) {
12591
- const o = ou(e), s = r && o, a = /* @__PURE__ */ b(
12597
+ const o = iu(e), s = r && o, a = /* @__PURE__ */ b(
12592
12598
  ia,
12593
12599
  {
12594
12600
  href: e,
@@ -12610,8 +12616,8 @@ function su({
12610
12616
  );
12611
12617
  return o ? /* @__PURE__ */ n(_e, { label: e, position: "top", openDelay: 500, children: a }) : a;
12612
12618
  }
12613
- const au = "github-dark";
12614
- function lu({
12619
+ const su = "github-dark";
12620
+ function au({
12615
12621
  children: e,
12616
12622
  codeOptions: t = {},
12617
12623
  linkOptions: r = {},
@@ -12742,14 +12748,14 @@ function lu({
12742
12748
  code: ({ node: I, inline: x, className: j, children: A, ...M }) => {
12743
12749
  const F = /language-(\w+)/.exec(j || ""), C = F ? F[1] : "";
12744
12750
  return !x && C ? /* @__PURE__ */ n(
12745
- nu,
12751
+ ru,
12746
12752
  {
12747
12753
  language: C,
12748
12754
  value: String(A).replace(/\n$/, ""),
12749
12755
  showLineNumbers: R.showLineNumbers,
12750
- theme: R.highlightTheme || au
12756
+ theme: R.highlightTheme || su
12751
12757
  }
12752
- ) : /* @__PURE__ */ n(iu, { children: A });
12758
+ ) : /* @__PURE__ */ n(nu, { children: A });
12753
12759
  },
12754
12760
  // Tabelas
12755
12761
  table: ({ node: I, children: x, ...j }) => {
@@ -12831,7 +12837,7 @@ function lu({
12831
12837
  ),
12832
12838
  // Links
12833
12839
  a: ({ node: I, href: x, children: j, ...A }) => /* @__PURE__ */ n(
12834
- su,
12840
+ ou,
12835
12841
  {
12836
12842
  href: x,
12837
12843
  openExternalInNewTab: G.openExternalInNewTab,
@@ -12913,8 +12919,8 @@ function lu({
12913
12919
  }
12914
12920
  );
12915
12921
  }
12916
- lu.displayName = "ArchbaseMarkdown";
12917
- function cu({
12922
+ au.displayName = "ArchbaseMarkdown";
12923
+ function lu({
12918
12924
  src: e,
12919
12925
  autoplay: t = !1,
12920
12926
  loop: r = !1,
@@ -12928,7 +12934,7 @@ function cu({
12928
12934
  }) {
12929
12935
  const d = de(null), h = de(null), [f, p] = S("idle"), [g, y] = S(!1), [m, w] = S(s), [E, D] = S(0), [B, V] = S([]), [Q, _] = S({ volume: o, muted: i }), [U, z] = S(1), [k, R] = S(!1), [G, v] = S(!1), [P, L] = S(
12930
12936
  l?.[0]?.label
12931
- ), [O, I] = S(c), x = du(e), j = T(() => {
12937
+ ), [O, I] = S(c), x = cu(e), j = T(() => {
12932
12938
  p("loading");
12933
12939
  }, []), A = T(() => {
12934
12940
  const $ = d.current;
@@ -13069,7 +13075,7 @@ function cu({
13069
13075
  handleError: ce
13070
13076
  };
13071
13077
  }
13072
- function du(e) {
13078
+ function cu(e) {
13073
13079
  return Array.isArray(e) ? e.map((t) => yo(t)) : [yo(e)];
13074
13080
  }
13075
13081
  function yo(e) {
@@ -13081,7 +13087,7 @@ function bo(e) {
13081
13087
  const t = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), i = Math.floor(e % 60);
13082
13088
  return t > 0 ? `${t}:${r.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}` : `${r}:${i.toString().padStart(2, "0")}`;
13083
13089
  }
13084
- function uu({
13090
+ function du({
13085
13091
  currentTime: e,
13086
13092
  duration: t,
13087
13093
  buffered: r,
@@ -13140,7 +13146,7 @@ function uu({
13140
13146
  )
13141
13147
  ] });
13142
13148
  }
13143
- function hu({
13149
+ function uu({
13144
13150
  isPlaying: e,
13145
13151
  isMuted: t,
13146
13152
  volume: r,
@@ -13171,7 +13177,7 @@ function hu({
13171
13177
  },
13172
13178
  children: [
13173
13179
  /* @__PURE__ */ n(ye, { mb: "xs", children: /* @__PURE__ */ n(
13174
- uu,
13180
+ du,
13175
13181
  {
13176
13182
  currentTime: i,
13177
13183
  duration: o,
@@ -13281,7 +13287,7 @@ function hu({
13281
13287
  }
13282
13288
  );
13283
13289
  }
13284
- function fu({
13290
+ function hu({
13285
13291
  src: e,
13286
13292
  autoplay: t = !1,
13287
13293
  loop: r = !1,
@@ -13335,7 +13341,7 @@ function fu({
13335
13341
  preload: ee = "metadata",
13336
13342
  crossOrigin: re
13337
13343
  }) {
13338
- const { t: J } = Xe(), Y = cu({
13344
+ const { t: J } = Xe(), Y = lu({
13339
13345
  src: e,
13340
13346
  autoplay: t,
13341
13347
  loop: r,
@@ -13428,7 +13434,7 @@ function fu({
13428
13434
  p: "xl",
13429
13435
  style: { width: m, height: typeof w == "number" ? w : void 0 },
13430
13436
  className: Q,
13431
- children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(He, { align: "center", children: [
13437
+ children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(Ue, { align: "center", children: [
13432
13438
  /* @__PURE__ */ n(cr, { size: 48, style: { color: "var(--mantine-color-red-6)" } }),
13433
13439
  /* @__PURE__ */ n(X, { c: "red", children: k || J("Failed to load video") })
13434
13440
  ] }) })
@@ -13557,7 +13563,7 @@ function fu({
13557
13563
  justifyContent: "flex-end"
13558
13564
  },
13559
13565
  children: /* @__PURE__ */ n("div", { style: { pointerEvents: "auto" }, children: /* @__PURE__ */ n(
13560
- hu,
13566
+ uu,
13561
13567
  {
13562
13568
  isPlaying: Y.isPlaying,
13563
13569
  isMuted: Y.muted,
@@ -13594,7 +13600,7 @@ function fu({
13594
13600
  }
13595
13601
  );
13596
13602
  }
13597
- fu.displayName = "ArchbaseVideoPlayer";
13603
+ hu.displayName = "ArchbaseVideoPlayer";
13598
13604
  const Et = "\x1B", $r = "", wo = {
13599
13605
  left: `${Et}a\0`,
13600
13606
  center: `${Et}a`,
@@ -13624,11 +13630,11 @@ function vs(e) {
13624
13630
  minute: "2-digit"
13625
13631
  });
13626
13632
  }
13627
- function pu(e = "-", t = 48) {
13633
+ function fu(e = "-", t = 48) {
13628
13634
  return e.repeat(Math.ceil(t / e.length)).substring(0, t);
13629
13635
  }
13630
13636
  function Co(e = "single", t = 48) {
13631
- return pu({
13637
+ return fu({
13632
13638
  single: "-",
13633
13639
  double: "=",
13634
13640
  dashed: "-"
@@ -13642,7 +13648,7 @@ function bp(e, t = 48) {
13642
13648
  const r = Math.max(0, t - e.length);
13643
13649
  return " ".repeat(r) + e;
13644
13650
  }
13645
- function mu(e = 80, t = 8) {
13651
+ function pu(e = 80, t = 8) {
13646
13652
  const r = [];
13647
13653
  return r.push(Et + "@"), r.push(ni.normal), r.push(Et + "t"), et(r.join(""));
13648
13654
  }
@@ -13662,7 +13668,7 @@ function wp(e = !0) {
13662
13668
  function Ut(e = 1) {
13663
13669
  return et(Et + "d" + String.fromCharCode(Math.min(e, 255)));
13664
13670
  }
13665
- function gu(e = "full") {
13671
+ function mu(e = "full") {
13666
13672
  if (e === "none")
13667
13673
  return new Uint8Array(0);
13668
13674
  const t = e === "full" ? "B" : "C";
@@ -13671,22 +13677,22 @@ function gu(e = "full") {
13671
13677
  function Cp() {
13672
13678
  return et(Et + "p\0<\0");
13673
13679
  }
13674
- function yu(e, t = 8) {
13680
+ function gu(e, t = 8) {
13675
13681
  const r = [];
13676
13682
  r.push($r + "(k"), r.push(""), r.push("\0"), r.push("1"), r.push("P"), r.push($r + "(k"), r.push("\0"), r.push("1"), r.push("Q"), r.push("\0");
13677
13683
  const i = new TextEncoder().encode(e);
13678
13684
  return r.push($r + "(k"), r.push(String.fromCharCode(i.length + 3)), r.push("\0"), r.push("1"), r.push("€"), r.push(String.fromCharCode(...i)), r.push($r + "(k"), r.push("\0"), r.push("2"), r.push(String.fromCharCode(t)), r.push("\0"), et(r.join(""));
13679
13685
  }
13680
- function bu(e, t = 162) {
13686
+ function yu(e, t = 162) {
13681
13687
  const r = [];
13682
13688
  r.push($r + "k"), r.push("I"), r.push("\0"), r.push(String.fromCharCode(Math.min(t, 255))), r.push(String.fromCharCode(e.length));
13683
13689
  const i = new TextEncoder().encode(e);
13684
13690
  return r.push(String.fromCharCode(...i)), et(r.join(""));
13685
13691
  }
13686
- function wu(e = "full", t = 3) {
13692
+ function bu(e = "full", t = 3) {
13687
13693
  const r = [];
13688
13694
  if (r.push(Et + "d" + String.fromCharCode(t)), e !== "none") {
13689
- const i = gu(e);
13695
+ const i = mu(e);
13690
13696
  for (let o = 0; o < i.length; o++)
13691
13697
  r.push(String.fromCharCode(i[o]));
13692
13698
  }
@@ -13704,19 +13710,19 @@ function vp(e) {
13704
13710
  }
13705
13711
  return i;
13706
13712
  }
13707
- function Cu(...e) {
13713
+ function wu(...e) {
13708
13714
  const t = e.reduce((o, s) => o + s.length, 0), r = new Uint8Array(t);
13709
13715
  let i = 0;
13710
13716
  for (const o of e)
13711
13717
  r.set(o, i), i += o.length;
13712
13718
  return r;
13713
13719
  }
13714
- function vu(e) {
13720
+ function Cu(e) {
13715
13721
  return Math.floor(e * 1.5);
13716
13722
  }
13717
13723
  function xs(e, t = 80, r = "full") {
13718
- const i = vu(t), o = [];
13719
- if (o.push(mu(t)), e.header) {
13724
+ const i = Cu(t), o = [];
13725
+ if (o.push(pu(t)), e.header) {
13720
13726
  if (e.header.title && (o.push(pr("center")), o.push(Vt(!0)), o.push(vo("large")), o.push(et(e.header.title + `
13721
13727
  `)), o.push(Vt(!1)), o.push(vo("normal")), o.push(Ut(1))), e.header.address) {
13722
13728
  o.push(pr("center"));
@@ -13786,12 +13792,12 @@ function xs(e, t = 80, r = "full") {
13786
13792
  o.push(et(s + `
13787
13793
  `));
13788
13794
  }
13789
- e.footer.qrCode && (o.push(pr("center")), o.push(Ut(1)), o.push(yu(e.footer.qrCode)), o.push(Ut(1))), e.footer.barcode && (o.push(pr("center")), o.push(Ut(1)), o.push(bu(e.footer.barcode)), o.push(Ut(2)));
13795
+ e.footer.qrCode && (o.push(pr("center")), o.push(Ut(1)), o.push(gu(e.footer.qrCode)), o.push(Ut(1))), e.footer.barcode && (o.push(pr("center")), o.push(Ut(1)), o.push(yu(e.footer.barcode)), o.push(Ut(2)));
13790
13796
  }
13791
- return o.push(wu(r)), Cu(...o);
13797
+ return o.push(bu(r)), wu(...o);
13792
13798
  }
13793
- const mr = (e) => ir(e), xu = (e) => vs(e);
13794
- function Eu({
13799
+ const mr = (e) => ir(e), vu = (e) => vs(e);
13800
+ function xu({
13795
13801
  data: e,
13796
13802
  paperWidth: t = 80,
13797
13803
  align: r = "left",
@@ -13823,7 +13829,7 @@ function Eu({
13823
13829
  e.header.document && /* @__PURE__ */ n(X, { ta: "center", size: "xs", mb: "xs", children: e.header.document }),
13824
13830
  /* @__PURE__ */ b(X, { ta: "left", size: "xs", children: [
13825
13831
  "DATA: ",
13826
- xu(e.header.date)
13832
+ vu(e.header.date)
13827
13833
  ] }),
13828
13834
  e.header.number && /* @__PURE__ */ b(X, { ta: "left", size: "xs", children: [
13829
13835
  "CUPOM: ",
@@ -13908,7 +13914,7 @@ function Eu({
13908
13914
  }
13909
13915
  );
13910
13916
  }
13911
- function Su({
13917
+ function Eu({
13912
13918
  data: e,
13913
13919
  options: t = {},
13914
13920
  printerId: r,
@@ -14005,7 +14011,7 @@ function Su({
14005
14011
  }
14006
14012
  ) })
14007
14013
  ] }),
14008
- (g || V) && /* @__PURE__ */ n(ye, { mb: "md", children: /* @__PURE__ */ n(Eu, { data: e, paperWidth: _ }) }),
14014
+ (g || V) && /* @__PURE__ */ n(ye, { mb: "md", children: /* @__PURE__ */ n(xu, { data: e, paperWidth: _ }) }),
14009
14015
  D === "error" && typeof u != "boolean" && /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", mb: "md", children: typeof u == "string" ? u : E("Failed to print receipt") }),
14010
14016
  !a && /* @__PURE__ */ b(ze, { children: [
14011
14017
  /* @__PURE__ */ n(
@@ -14041,7 +14047,7 @@ function Su({
14041
14047
  }
14042
14048
  );
14043
14049
  }
14044
- Su.displayName = "ArchbaseThermalPrinter";
14050
+ Eu.displayName = "ArchbaseThermalPrinter";
14045
14051
  function xp({
14046
14052
  data: e,
14047
14053
  onPrint: t
@@ -14113,7 +14119,7 @@ const Es = [
14113
14119
  function xo(e) {
14114
14120
  return JSON.stringify(e, null, 2);
14115
14121
  }
14116
- function Au(e, t = "myTheme") {
14122
+ function Su(e, t = "myTheme") {
14117
14123
  const r = e.colors || {}, i = e.fontFamily || "sans-serif", o = e.primaryColor || "blue", s = e.radius || {};
14118
14124
  return `import { MantineTheme } from '@mantine/core';
14119
14125
 
@@ -14128,7 +14134,7 @@ export const ${t}: MantineTheme = {
14128
14134
  export default ${t};
14129
14135
  `;
14130
14136
  }
14131
- function ku(e, t = "mantine") {
14137
+ function Au(e, t = "mantine") {
14132
14138
  const r = e.colors || {}, i = [];
14133
14139
  return Object.entries(r).forEach(([o, s]) => {
14134
14140
  typeof s == "object" ? Object.entries(s).forEach(([, l]) => {
@@ -14138,7 +14144,7 @@ ${i.map((o) => ` ${o}`).join(`
14138
14144
  `)}
14139
14145
  }`;
14140
14146
  }
14141
- function Du(e) {
14147
+ function ku(e) {
14142
14148
  return `import { createTheme } from '@mantine/core';
14143
14149
 
14144
14150
  const theme = createTheme({
@@ -14154,16 +14160,16 @@ function xi(e, t, r = "myTheme") {
14154
14160
  case "json":
14155
14161
  return xo(e);
14156
14162
  case "typescript":
14157
- return Au(e, r);
14163
+ return Su(e, r);
14158
14164
  case "css":
14159
- return ku(e);
14165
+ return Au(e);
14160
14166
  case "mantine":
14161
- return Du(e);
14167
+ return ku(e);
14162
14168
  default:
14163
14169
  return xo(e);
14164
14170
  }
14165
14171
  }
14166
- function Tu(e, t, r = "theme") {
14172
+ function Du(e, t, r = "theme") {
14167
14173
  const i = xi(e, t, r), o = {
14168
14174
  json: "application/json",
14169
14175
  typescript: "text/typescript",
@@ -14236,7 +14242,7 @@ function Ap(e) {
14236
14242
  const t = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/, r = /^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/, i = /^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*[\d.]+\s*\)$/;
14237
14243
  return t.test(e) || r.test(e) || i.test(e);
14238
14244
  }
14239
- function zu(e) {
14245
+ function Tu(e) {
14240
14246
  const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
14241
14247
  return t ? {
14242
14248
  r: parseInt(t[1], 16),
@@ -14244,14 +14250,14 @@ function zu(e) {
14244
14250
  b: parseInt(t[3], 16)
14245
14251
  } : null;
14246
14252
  }
14247
- function Iu(e, t, r) {
14253
+ function zu(e, t, r) {
14248
14254
  return "#" + [e, t, r].map((i) => {
14249
14255
  const o = i.toString(16);
14250
14256
  return o.length === 1 ? "0" + o : o;
14251
14257
  }).join("");
14252
14258
  }
14253
14259
  function kp(e) {
14254
- const t = zu(e);
14260
+ const t = Tu(e);
14255
14261
  if (!t)
14256
14262
  return [e];
14257
14263
  const r = [], i = 10;
@@ -14261,12 +14267,12 @@ function kp(e) {
14261
14267
  r.push(e);
14262
14268
  else {
14263
14269
  const l = Math.round(t.r * s), a = Math.round(t.g * s), c = Math.round(t.b * s);
14264
- r.push(Iu(l, a, c));
14270
+ r.push(zu(l, a, c));
14265
14271
  }
14266
14272
  }
14267
14273
  return r;
14268
14274
  }
14269
- function Ru({
14275
+ function Iu({
14270
14276
  colors: e,
14271
14277
  onChange: t,
14272
14278
  primaryColor: r,
@@ -14277,7 +14283,7 @@ function Ru({
14277
14283
  const l = e[s];
14278
14284
  return typeof l == "object" && l !== null;
14279
14285
  });
14280
- return /* @__PURE__ */ b(He, { gap: "md", children: [
14286
+ return /* @__PURE__ */ b(Ue, { gap: "md", children: [
14281
14287
  /* @__PURE__ */ b(ye, { children: [
14282
14288
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "xs", children: "Cor Primária" }),
14283
14289
  /* @__PURE__ */ n(ze, { gap: "xs", children: o.map((s) => {
@@ -14301,7 +14307,7 @@ function Ru({
14301
14307
  ] }),
14302
14308
  /* @__PURE__ */ b(ye, { children: [
14303
14309
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "xs", children: "Paleta de Cores" }),
14304
- /* @__PURE__ */ n(Rt.Autosize, { mah: 400, children: /* @__PURE__ */ n(He, { gap: "sm", children: o.map((s) => {
14310
+ /* @__PURE__ */ n(Rt.Autosize, { mah: 400, children: /* @__PURE__ */ n(Ue, { gap: "sm", children: o.map((s) => {
14305
14311
  const l = e[s];
14306
14312
  return typeof l != "object" ? null : /* @__PURE__ */ b(ye, { children: [
14307
14313
  /* @__PURE__ */ b(ze, { justify: "space-between", mb: "xs", children: [
@@ -14347,12 +14353,12 @@ function Ru({
14347
14353
  ] })
14348
14354
  ] });
14349
14355
  }
14350
- function $u({
14356
+ function Ru({
14351
14357
  theme: e,
14352
14358
  onChange: t
14353
14359
  }) {
14354
14360
  const r = e.fontSizes || {};
14355
- return e.lineHeight, /* @__PURE__ */ b(He, { gap: "md", children: [
14361
+ return e.lineHeight, /* @__PURE__ */ b(Ue, { gap: "md", children: [
14356
14362
  /* @__PURE__ */ b(ye, { children: [
14357
14363
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "xs", children: "Font Family" }),
14358
14364
  /* @__PURE__ */ n(
@@ -14365,7 +14371,7 @@ function $u({
14365
14371
  ] }),
14366
14372
  /* @__PURE__ */ b(ye, { children: [
14367
14373
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "xs", children: "Tamanhos de Fonte" }),
14368
- /* @__PURE__ */ n(He, { gap: "xs", children: Object.entries(r).map(([i, o]) => /* @__PURE__ */ b(ze, { align: "center", children: [
14374
+ /* @__PURE__ */ n(Ue, { gap: "xs", children: Object.entries(r).map(([i, o]) => /* @__PURE__ */ b(ze, { align: "center", children: [
14369
14375
  /* @__PURE__ */ n(X, { size: "xs", w: 60, children: i }),
14370
14376
  /* @__PURE__ */ n(
14371
14377
  st,
@@ -14393,15 +14399,15 @@ function $u({
14393
14399
  ] })
14394
14400
  ] });
14395
14401
  }
14396
- function Pu({
14402
+ function $u({
14397
14403
  theme: e,
14398
14404
  onChange: t
14399
14405
  }) {
14400
14406
  const r = e.spacing || {};
14401
- return /* @__PURE__ */ b(He, { gap: "md", children: [
14407
+ return /* @__PURE__ */ b(Ue, { gap: "md", children: [
14402
14408
  /* @__PURE__ */ b(ye, { children: [
14403
14409
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "xs", children: "Escala de Espaçamento" }),
14404
- /* @__PURE__ */ n(He, { gap: "xs", children: Object.entries(r).slice(0, 10).map(([i, o]) => /* @__PURE__ */ b(ze, { align: "center", children: [
14410
+ /* @__PURE__ */ n(Ue, { gap: "xs", children: Object.entries(r).slice(0, 10).map(([i, o]) => /* @__PURE__ */ b(ze, { align: "center", children: [
14405
14411
  /* @__PURE__ */ n(X, { size: "xs", w: 40, children: i }),
14406
14412
  /* @__PURE__ */ n(
14407
14413
  st,
@@ -14450,15 +14456,15 @@ function Pu({
14450
14456
  ] })
14451
14457
  ] });
14452
14458
  }
14453
- function Nu({
14459
+ function Pu({
14454
14460
  theme: e,
14455
14461
  onChange: t
14456
14462
  }) {
14457
14463
  const r = e.radius || {};
14458
- return /* @__PURE__ */ b(He, { gap: "md", children: [
14464
+ return /* @__PURE__ */ b(Ue, { gap: "md", children: [
14459
14465
  /* @__PURE__ */ b(ye, { children: [
14460
14466
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "xs", children: "Border Radius" }),
14461
- /* @__PURE__ */ n(He, { gap: "xs", children: Object.entries(r).map(([i, o]) => /* @__PURE__ */ b(ze, { align: "center", children: [
14467
+ /* @__PURE__ */ n(Ue, { gap: "xs", children: Object.entries(r).map(([i, o]) => /* @__PURE__ */ b(ze, { align: "center", children: [
14462
14468
  /* @__PURE__ */ n(X, { size: "xs", w: 50, children: i }),
14463
14469
  /* @__PURE__ */ n(
14464
14470
  st,
@@ -14500,14 +14506,14 @@ function Nu({
14500
14506
  ] })
14501
14507
  ] });
14502
14508
  }
14503
- function Vu({
14509
+ function Nu({
14504
14510
  opened: e,
14505
14511
  onClose: t,
14506
14512
  theme: r,
14507
14513
  themeName: i
14508
14514
  }) {
14509
14515
  const [o, s] = S("typescript"), l = Ge(() => xi(r, o, i), [r, o, i]), [a, c] = S(!1);
14510
- return /* @__PURE__ */ n(Jt, { opened: e, onClose: t, title: "Export Theme", size: "lg", children: /* @__PURE__ */ b(He, { gap: "md", children: [
14516
+ return /* @__PURE__ */ n(Jt, { opened: e, onClose: t, title: "Export Theme", size: "lg", children: /* @__PURE__ */ b(Ue, { gap: "md", children: [
14511
14517
  /* @__PURE__ */ n(
14512
14518
  sa,
14513
14519
  {
@@ -14561,7 +14567,7 @@ function Vu({
14561
14567
  {
14562
14568
  leftSection: /* @__PURE__ */ n(Lr, { size: 16 }),
14563
14569
  onClick: () => {
14564
- Tu(r, o, i);
14570
+ Du(r, o, i);
14565
14571
  },
14566
14572
  children: "Download"
14567
14573
  }
@@ -14569,7 +14575,7 @@ function Vu({
14569
14575
  ] })
14570
14576
  ] }) });
14571
14577
  }
14572
- function Lu({
14578
+ function Vu({
14573
14579
  theme: e = {},
14574
14580
  onChange: t,
14575
14581
  onApply: r,
@@ -14614,7 +14620,7 @@ function Lu({
14614
14620
  switch (R) {
14615
14621
  case "colors":
14616
14622
  return /* @__PURE__ */ n(
14617
- Ru,
14623
+ Iu,
14618
14624
  {
14619
14625
  colors: v.colors || k.colors,
14620
14626
  onChange: (H) => j({ ...v, colors: H }),
@@ -14624,7 +14630,7 @@ function Lu({
14624
14630
  );
14625
14631
  case "typography":
14626
14632
  return /* @__PURE__ */ n(
14627
- $u,
14633
+ Ru,
14628
14634
  {
14629
14635
  theme: v,
14630
14636
  onChange: j
@@ -14632,7 +14638,7 @@ function Lu({
14632
14638
  );
14633
14639
  case "spacing":
14634
14640
  return /* @__PURE__ */ n(
14635
- Pu,
14641
+ $u,
14636
14642
  {
14637
14643
  theme: v,
14638
14644
  onChange: j
@@ -14640,7 +14646,7 @@ function Lu({
14640
14646
  );
14641
14647
  case "borders":
14642
14648
  return /* @__PURE__ */ n(
14643
- Nu,
14649
+ Pu,
14644
14650
  {
14645
14651
  theme: v,
14646
14652
  onChange: j
@@ -14737,7 +14743,7 @@ function Lu({
14737
14743
  },
14738
14744
  children: /* @__PURE__ */ n(oa, { theme: { ...k, ...v, primaryColor: L }, children: /* @__PURE__ */ b(ye, { p: "md", children: [
14739
14745
  /* @__PURE__ */ n(X, { size: "sm", fw: 500, mb: "md", tt: "uppercase", c: "dimmed", children: "Preview" }),
14740
- /* @__PURE__ */ b(He, { gap: "md", children: [
14746
+ /* @__PURE__ */ b(Ue, { gap: "md", children: [
14741
14747
  /* @__PURE__ */ n(Oe, { children: "Primary Button" }),
14742
14748
  /* @__PURE__ */ n(Oe, { variant: "light", children: "Light Button" }),
14743
14749
  /* @__PURE__ */ n(Oe, { variant: "outline", children: "Outline Button" }),
@@ -14757,7 +14763,7 @@ function Lu({
14757
14763
  U && /* @__PURE__ */ n(ye, { p: "md", style: { borderTop: "1px solid var(--mantine-color-gray-3)" }, children: U }),
14758
14764
  Q,
14759
14765
  /* @__PURE__ */ n(
14760
- Vu,
14766
+ Nu,
14761
14767
  {
14762
14768
  opened: I,
14763
14769
  onClose: () => x(!1),
@@ -14769,8 +14775,8 @@ function Lu({
14769
14775
  }
14770
14776
  );
14771
14777
  }
14772
- Lu.displayName = "ArchbaseThemeEditor";
14773
- const Fu = (e, t) => {
14778
+ Vu.displayName = "ArchbaseThemeEditor";
14779
+ const Lu = (e, t) => {
14774
14780
  if (!t || !t.field)
14775
14781
  return "";
14776
14782
  if (t.field.includes(".")) {
@@ -14791,11 +14797,11 @@ const Fu = (e, t) => {
14791
14797
  }
14792
14798
  return e[t.field];
14793
14799
  };
14794
- async function Mu(e, t, r) {
14800
+ async function Fu(e, t, r) {
14795
14801
  const i = r.selectedColumns || t.map((l) => l.field), o = t.filter((l) => i.includes(l.field)), s = e.map((l) => {
14796
14802
  const a = {};
14797
14803
  return o.forEach((c) => {
14798
- let u = Fu(l, c);
14804
+ let u = Lu(l, c);
14799
14805
  if (u != null)
14800
14806
  if ((c.dataType === "date" || c.type === "date") && r.dateFormat)
14801
14807
  try {
@@ -14822,17 +14828,17 @@ async function Mu(e, t, r) {
14822
14828
  });
14823
14829
  switch (r.format) {
14824
14830
  case "csv":
14825
- await Bu(s, r);
14831
+ await Mu(s, r);
14826
14832
  break;
14827
14833
  case "excel":
14828
- await Ou(s, r);
14834
+ await Bu(s, r);
14829
14835
  break;
14830
14836
  case "pdf":
14831
- await _u();
14837
+ await Ou();
14832
14838
  break;
14833
14839
  }
14834
14840
  }
14835
- async function Bu(e, t) {
14841
+ async function Mu(e, t) {
14836
14842
  const r = t.delimiter || ",", i = Object.keys(e[0]);
14837
14843
  let o = t.includeHeaders ? i.join(r) + `
14838
14844
  ` : "";
@@ -14849,7 +14855,7 @@ async function Bu(e, t) {
14849
14855
  });
14850
14856
  ts(s, `${t.filename || "export"}.csv`);
14851
14857
  }
14852
- async function Ou(e, t) {
14858
+ async function Bu(e, t) {
14853
14859
  const r = Br.book_new(), i = Br.json_to_sheet(e, {
14854
14860
  header: Object.keys(e[0])
14855
14861
  }), o = Br.decode_range(i["!ref"] || "A1"), s = {
@@ -14871,10 +14877,10 @@ async function Ou(e, t) {
14871
14877
  });
14872
14878
  ts(a, `${t.filename || "export"}.xlsx`);
14873
14879
  }
14874
- async function _u(e, t) {
14880
+ async function Ou(e, t) {
14875
14881
  console.warn("Exportação para PDF ainda não implementada. Considere usar a função printData em seu lugar.");
14876
14882
  }
14877
- function ju(e, t, r) {
14883
+ function _u(e, t, r) {
14878
14884
  try {
14879
14885
  if (typeof Qi != "function") {
14880
14886
  console.error("jsPDF não está disponível");
@@ -15014,7 +15020,7 @@ function ju(e, t, r) {
15014
15020
  console.error("Erro ao gerar PDF:", i), alert("Ocorreu um erro ao gerar o PDF. Verifique o console para mais detalhes.");
15015
15021
  }
15016
15022
  }
15017
- function Hu({
15023
+ function ju({
15018
15024
  opened: e,
15019
15025
  onClose: t,
15020
15026
  onExport: r,
@@ -15053,7 +15059,7 @@ function Hu({
15053
15059
  }
15054
15060
  },
15055
15061
  children: [
15056
- /* @__PURE__ */ n(Rt.Autosize, { mah: "70vh", p: "md", offsetScrollbars: !0, children: /* @__PURE__ */ b(He, { gap: "md", pb: 8, children: [
15062
+ /* @__PURE__ */ n(Rt.Autosize, { mah: "70vh", p: "md", offsetScrollbars: !0, children: /* @__PURE__ */ b(Ue, { gap: "md", pb: 8, children: [
15057
15063
  /* @__PURE__ */ n(
15058
15064
  Tt,
15059
15065
  {
@@ -15122,7 +15128,7 @@ function Hu({
15122
15128
  ) }),
15123
15129
  /* @__PURE__ */ b(ye, { children: [
15124
15130
  /* @__PURE__ */ n(ye, { mb: "xs", children: `${s("Selecionar Colunas")}` }),
15125
- /* @__PURE__ */ n(He, { gap: "xs", children: i.map((d) => /* @__PURE__ */ n(
15131
+ /* @__PURE__ */ n(Ue, { gap: "xs", children: i.map((d) => /* @__PURE__ */ n(
15126
15132
  kt,
15127
15133
  {
15128
15134
  label: d.title,
@@ -15163,7 +15169,7 @@ function Hu({
15163
15169
  }
15164
15170
  );
15165
15171
  }
15166
- function Uu({
15172
+ function Hu({
15167
15173
  opened: e,
15168
15174
  onClose: t,
15169
15175
  onPrint: r,
@@ -15202,7 +15208,7 @@ function Uu({
15202
15208
  }
15203
15209
  },
15204
15210
  children: [
15205
- /* @__PURE__ */ n(Rt.Autosize, { mah: "70vh", p: "md", offsetScrollbars: !0, children: /* @__PURE__ */ b(He, { gap: "md", pb: 8, children: [
15211
+ /* @__PURE__ */ n(Rt.Autosize, { mah: "70vh", p: "md", offsetScrollbars: !0, children: /* @__PURE__ */ b(Ue, { gap: "md", pb: 8, children: [
15206
15212
  /* @__PURE__ */ n(
15207
15213
  st,
15208
15214
  {
@@ -15248,7 +15254,7 @@ function Uu({
15248
15254
  ] }),
15249
15255
  /* @__PURE__ */ b(ye, { children: [
15250
15256
  /* @__PURE__ */ n(ye, { mb: "xs", children: `${s("Opções")}` }),
15251
- /* @__PURE__ */ b(He, { gap: "xs", children: [
15257
+ /* @__PURE__ */ b(Ue, { gap: "xs", children: [
15252
15258
  /* @__PURE__ */ n(
15253
15259
  kt,
15254
15260
  {
@@ -15304,7 +15310,7 @@ function Uu({
15304
15310
  ] }),
15305
15311
  /* @__PURE__ */ b(ye, { children: [
15306
15312
  /* @__PURE__ */ n(ye, { mb: "xs", children: `${s("Selecionar Colunas")}` }),
15307
- /* @__PURE__ */ n(He, { gap: "xs", children: i.map((h) => /* @__PURE__ */ n(
15313
+ /* @__PURE__ */ n(Ue, { gap: "xs", children: i.map((h) => /* @__PURE__ */ n(
15308
15314
  kt,
15309
15315
  {
15310
15316
  label: h.title,
@@ -15345,7 +15351,7 @@ function Uu({
15345
15351
  }
15346
15352
  );
15347
15353
  }
15348
- const Wu = (e) => {
15354
+ const Uu = (e) => {
15349
15355
  if (!e || typeof e != "string" || e.length < 4 || !/^[A-Za-z0-9+/]*={0,2}$/.test(e))
15350
15356
  return !1;
15351
15357
  try {
@@ -15357,7 +15363,7 @@ const Wu = (e) => {
15357
15363
  } catch {
15358
15364
  return !1;
15359
15365
  }
15360
- }, Gu = (e) => {
15366
+ }, Wu = (e) => {
15361
15367
  try {
15362
15368
  const t = atob(e), r = new Uint8Array(t.length);
15363
15369
  for (let i = 0; i < t.length; i++)
@@ -15371,14 +15377,14 @@ const Wu = (e) => {
15371
15377
  if (r == null)
15372
15378
  return /* @__PURE__ */ n("span", {});
15373
15379
  let i = String(r);
15374
- return Wu(i) && (i = Gu(i)), t && (i = Da.toPattern(i, t)), /* @__PURE__ */ n("span", { children: i });
15375
- }, qu = (e) => {
15380
+ return Uu(i) && (i = Wu(i)), t && (i = Da.toPattern(i, t)), /* @__PURE__ */ n("span", { children: i });
15381
+ }, Gu = (e) => {
15376
15382
  const t = e.getValue();
15377
15383
  if (t == null)
15378
15384
  return /* @__PURE__ */ n("span", {});
15379
15385
  const r = Number.isNaN(Number(t)) ? 0 : Number(t);
15380
15386
  return /* @__PURE__ */ n("span", { style: { textAlign: "right", display: "block" }, children: r });
15381
- }, Yu = (e) => {
15387
+ }, qu = (e) => {
15382
15388
  const t = e.getValue();
15383
15389
  if (t == null)
15384
15390
  return /* @__PURE__ */ n("span", {});
@@ -15392,7 +15398,7 @@ const Wu = (e) => {
15392
15398
  } catch (i) {
15393
15399
  return console.error("Erro ao formatar moeda:", i), /* @__PURE__ */ n("span", { style: { textAlign: "right", display: "block" }, children: r });
15394
15400
  }
15395
- }, Qu = (e) => {
15401
+ }, Yu = (e) => {
15396
15402
  const t = e.getValue();
15397
15403
  if (t == null)
15398
15404
  return /* @__PURE__ */ n("span", {});
@@ -15402,7 +15408,7 @@ const Wu = (e) => {
15402
15408
  } catch (i) {
15403
15409
  return console.error("Erro ao formatar moeda:", i), /* @__PURE__ */ n("span", { style: { textAlign: "right", display: "block" }, children: r });
15404
15410
  }
15405
- }, Xu = (e, t = 2) => {
15411
+ }, Qu = (e, t = 2) => {
15406
15412
  const r = e.getValue();
15407
15413
  if (r == null)
15408
15414
  return /* @__PURE__ */ n("span", {});
@@ -15420,10 +15426,10 @@ const Wu = (e) => {
15420
15426
  "%"
15421
15427
  ] });
15422
15428
  }
15423
- }, Ku = (e) => {
15429
+ }, Xu = (e) => {
15424
15430
  const r = !!e.getValue();
15425
15431
  return /* @__PURE__ */ n("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ n(kt, { readOnly: !0, checked: r }) });
15426
- }, Ju = (e, t = "dd/MM/yyyy") => {
15432
+ }, Ku = (e, t = "dd/MM/yyyy") => {
15427
15433
  const r = e.getValue();
15428
15434
  if (!r)
15429
15435
  return /* @__PURE__ */ n("span", {});
@@ -15433,7 +15439,7 @@ const Wu = (e) => {
15433
15439
  } catch (i) {
15434
15440
  return console.error("Erro ao formatar data:", i), /* @__PURE__ */ n("span", { children: "Data inválida" });
15435
15441
  }
15436
- }, Zu = (e, t = "dd/MM/yyyy HH:mm:ss") => {
15442
+ }, Ju = (e, t = "dd/MM/yyyy HH:mm:ss") => {
15437
15443
  const r = e.getValue();
15438
15444
  if (!r)
15439
15445
  return /* @__PURE__ */ n("span", {});
@@ -15443,7 +15449,7 @@ const Wu = (e) => {
15443
15449
  } catch (i) {
15444
15450
  return console.error("Erro ao formatar data e hora:", i), /* @__PURE__ */ n("span", { children: "Data/hora inválida" });
15445
15451
  }
15446
- }, eh = (e, t = "HH:mm:ss") => {
15452
+ }, Zu = (e, t = "HH:mm:ss") => {
15447
15453
  const r = e.getValue();
15448
15454
  if (!r)
15449
15455
  return /* @__PURE__ */ n("span", {});
@@ -15464,13 +15470,13 @@ const Wu = (e) => {
15464
15470
  } catch (i) {
15465
15471
  return console.error("Erro ao formatar hora:", i), /* @__PURE__ */ n("span", { children: "Hora inválida" });
15466
15472
  }
15467
- }, th = (e, t) => {
15473
+ }, eh = (e, t) => {
15468
15474
  const r = e.getValue();
15469
15475
  if (r == null)
15470
15476
  return /* @__PURE__ */ n("span", {});
15471
15477
  const i = t.find((o) => o.value === r);
15472
15478
  return /* @__PURE__ */ n("span", { children: i ? i.label : String(r) });
15473
- }, rh = (e) => {
15479
+ }, th = (e) => {
15474
15480
  const t = e.getValue();
15475
15481
  if (!t)
15476
15482
  return /* @__PURE__ */ n("span", {});
@@ -15482,36 +15488,36 @@ const Wu = (e) => {
15482
15488
  return /* @__PURE__ */ n("span", { children: i });
15483
15489
  }
15484
15490
  return /* @__PURE__ */ n("span", { children: r });
15485
- }, nh = (e, t, r) => {
15491
+ }, rh = (e, t, r) => {
15486
15492
  if (t)
15487
15493
  return t;
15488
15494
  switch (e) {
15489
15495
  case "text":
15490
15496
  return (i) => So(i, r?.maskOptions);
15491
15497
  case "integer":
15492
- return qu;
15498
+ return Gu;
15493
15499
  case "float":
15494
- return Qu;
15495
- case "currency":
15496
15500
  return Yu;
15501
+ case "currency":
15502
+ return qu;
15497
15503
  case "percent":
15498
- return (i) => Xu(i, r?.decimalPlaces);
15504
+ return (i) => Qu(i, r?.decimalPlaces);
15499
15505
  case "boolean":
15500
- return Ku;
15506
+ return Xu;
15501
15507
  case "date":
15502
- return (i) => Ju(i, r?.dateFormat);
15508
+ return (i) => Ku(i, r?.dateFormat);
15503
15509
  case "datetime":
15504
- return (i) => Zu(i, r?.dateTimeFormat);
15510
+ return (i) => Ju(i, r?.dateTimeFormat);
15505
15511
  case "time":
15506
- return (i) => eh(i, r?.timeFormat);
15512
+ return (i) => Zu(i, r?.timeFormat);
15507
15513
  case "enum":
15508
- return (i) => th(i, r?.enumValues);
15514
+ return (i) => eh(i, r?.enumValues);
15509
15515
  case "uuid":
15510
- return rh;
15516
+ return th;
15511
15517
  default:
15512
15518
  return So;
15513
15519
  }
15514
- }, ih = (e, t) => {
15520
+ }, nh = (e, t) => {
15515
15521
  if (t)
15516
15522
  return t;
15517
15523
  switch (e) {
@@ -15542,10 +15548,10 @@ function Ss(e) {
15542
15548
  return /* @__PURE__ */ n(ot, { children: e.children });
15543
15549
  }
15544
15550
  Ss.componentName = "Columns";
15545
- function oh(e) {
15551
+ function ih(e) {
15546
15552
  return null;
15547
15553
  }
15548
- oh.defaultProps = {
15554
+ ih.defaultProps = {
15549
15555
  visible: !0,
15550
15556
  size: 100,
15551
15557
  align: "left",
@@ -15669,7 +15675,7 @@ const nr = (e, t) => {
15669
15675
  } catch (t) {
15670
15676
  return console.error("Error converting hex to RGB:", t), "0, 0, 0";
15671
15677
  }
15672
- }, sh = (e) => {
15678
+ }, oh = (e) => {
15673
15679
  const t = e && typeof e.getOptions == "function" ? e.getOptions() : {};
15674
15680
  return t && t.originSort ? t.originSort : t && t.sort ? t.sort.map((r) => {
15675
15681
  const [i, o] = r.split(":");
@@ -15721,7 +15727,7 @@ const nr = (e, t) => {
15721
15727
  console.error("Erro ao converter RSQL para FilterModel:", i);
15722
15728
  }
15723
15729
  return { items: r };
15724
- }, ah = (e) => {
15730
+ }, sh = (e) => {
15725
15731
  if (!e || e.length === 0)
15726
15732
  return { items: [] };
15727
15733
  const t = [];
@@ -15754,7 +15760,7 @@ const nr = (e, t) => {
15754
15760
  });
15755
15761
  }
15756
15762
  return { items: t };
15757
- }, lh = (e) => ({
15763
+ }, ah = (e) => ({
15758
15764
  text: "string",
15759
15765
  integer: "number",
15760
15766
  float: "number",
@@ -15766,7 +15772,7 @@ const nr = (e, t) => {
15766
15772
  enum: "singleSelect",
15767
15773
  image: "string",
15768
15774
  uuid: "string"
15769
- })[e] || "string", ch = (e, t) => {
15775
+ })[e] || "string", lh = (e, t) => {
15770
15776
  const {
15771
15777
  includeColumns: r,
15772
15778
  excludeColumns: i = ["actions", "id"],
@@ -15805,7 +15811,7 @@ const nr = (e, t) => {
15805
15811
  const i = {
15806
15812
  field: r.key,
15807
15813
  headerName: r.label,
15808
- type: lh(r.type),
15814
+ type: ah(r.type),
15809
15815
  filterable: !0,
15810
15816
  sortable: !0
15811
15817
  };
@@ -15815,7 +15821,7 @@ const nr = (e, t) => {
15815
15821
  }), t.push(i);
15816
15822
  }
15817
15823
  return t;
15818
- }, dh = ({
15824
+ }, ch = ({
15819
15825
  onRefresh: e,
15820
15826
  onExport: t,
15821
15827
  onPrint: r,
@@ -15867,17 +15873,17 @@ const nr = (e, t) => {
15867
15873
  ] }),
15868
15874
  s && s()
15869
15875
  ] });
15870
- }, uh = ({
15876
+ }, dh = ({
15871
15877
  value: e,
15872
15878
  onChange: t,
15873
15879
  onClear: r,
15874
15880
  debounceTime: i = 500
15875
15881
  // Valor padrão de debounce (300ms)
15876
15882
  }) => {
15877
- const { t: o } = Xe(), s = (y) => String(o(y)), l = Zt(), a = Ft(), [c, u] = Ue.useState(e), d = Ue.useRef(!1), [h] = si(c, i);
15878
- Ue.useEffect(() => {
15883
+ const { t: o } = Xe(), s = (y) => String(o(y)), l = Zt(), a = Ft(), [c, u] = He.useState(e), d = He.useRef(!1), [h] = si(c, i);
15884
+ He.useEffect(() => {
15879
15885
  u(e);
15880
- }, [e]), Ue.useEffect(() => {
15886
+ }, [e]), He.useEffect(() => {
15881
15887
  if (d.current && c === "") {
15882
15888
  h === "" && (d.current = !1);
15883
15889
  return;
@@ -15924,7 +15930,7 @@ const nr = (e, t) => {
15924
15930
  size: "sm"
15925
15931
  }
15926
15932
  );
15927
- }, hh = Ue.memo(({
15933
+ }, uh = He.memo(({
15928
15934
  dataSource: e,
15929
15935
  filterModel: t,
15930
15936
  enableGlobalFilter: r = !0,
@@ -16002,7 +16008,7 @@ const nr = (e, t) => {
16002
16008
  style: { display: "flex", gap: "12px", alignItems: "center", justifyContent: "flex-end" },
16003
16009
  children: [
16004
16010
  w && E ? /* @__PURE__ */ n(
16005
- Jd,
16011
+ Kd,
16006
16012
  {
16007
16013
  filters: E,
16008
16014
  value: D,
@@ -16013,7 +16019,7 @@ const nr = (e, t) => {
16013
16019
  enableQuickFilters: !0
16014
16020
  }
16015
16021
  ) : !V && r ? /* @__PURE__ */ n(
16016
- uh,
16022
+ dh,
16017
16023
  {
16018
16024
  value: z,
16019
16025
  onChange: (O) => {
@@ -16025,7 +16031,7 @@ const nr = (e, t) => {
16025
16031
  }
16026
16032
  ) : null,
16027
16033
  i ? /* @__PURE__ */ n(
16028
- dh,
16034
+ ch,
16029
16035
  {
16030
16036
  onRefresh: v,
16031
16037
  onExport: p,
@@ -16048,7 +16054,7 @@ const nr = (e, t) => {
16048
16054
  ]
16049
16055
  }
16050
16056
  );
16051
- }), fh = ({
16057
+ }), hh = ({
16052
16058
  currentPage: e,
16053
16059
  pageSize: t,
16054
16060
  totalRecords: r,
@@ -16141,7 +16147,7 @@ const nr = (e, t) => {
16141
16147
  ] })
16142
16148
  ] })
16143
16149
  ] });
16144
- }, ph = Ue.memo(({
16150
+ }, fh = He.memo(({
16145
16151
  paginationModel: e,
16146
16152
  totalRecords: t,
16147
16153
  onPaginationModelChange: r,
@@ -16168,7 +16174,7 @@ const nr = (e, t) => {
16168
16174
  borderBottomRightRadius: f
16169
16175
  },
16170
16176
  children: /* @__PURE__ */ n(
16171
- fh,
16177
+ hh,
16172
16178
  {
16173
16179
  currentPage: d.page + 1,
16174
16180
  pageSize: d.pageSize === 1 / 0 ? 1 : d.pageSize,
@@ -16271,7 +16277,7 @@ function Do({
16271
16277
  }
16272
16278
  );
16273
16279
  }
16274
- function mh({
16280
+ function ph({
16275
16281
  rowId: e,
16276
16282
  rowData: t,
16277
16283
  renderDetailPanel: r,
@@ -16312,7 +16318,7 @@ function mh({
16312
16318
  }
16313
16319
  );
16314
16320
  }
16315
- function gh({
16321
+ function mh({
16316
16322
  rowId: e,
16317
16323
  expanded: t,
16318
16324
  onClick: r,
@@ -16337,7 +16343,7 @@ function gh({
16337
16343
  }
16338
16344
  );
16339
16345
  }
16340
- function yh(e, t, r) {
16346
+ function gh(e, t, r) {
16341
16347
  return {
16342
16348
  field: "expandColumn",
16343
16349
  headerName: "",
@@ -16349,10 +16355,10 @@ function yh(e, t, r) {
16349
16355
  if (!r)
16350
16356
  return;
16351
16357
  const s = i.id;
16352
- return r.has(s) || r.set(s, Ue.createRef()), r.get(s);
16358
+ return r.has(s) || r.set(s, He.createRef()), r.get(s);
16353
16359
  };
16354
16360
  return /* @__PURE__ */ n(
16355
- gh,
16361
+ mh,
16356
16362
  {
16357
16363
  rowId: i.id,
16358
16364
  expanded: e.has(i.id),
@@ -16363,7 +16369,7 @@ function yh(e, t, r) {
16363
16369
  }
16364
16370
  };
16365
16371
  }
16366
- function bh({
16372
+ function yh({
16367
16373
  allowMultipleDetailPanels: e = !1,
16368
16374
  onDetailPanelChange: t,
16369
16375
  detailPanelMinHeight: r = 200
@@ -16417,7 +16423,7 @@ function bh({
16417
16423
  setExpandedRowIds: o
16418
16424
  };
16419
16425
  }
16420
- function wh({
16426
+ function bh({
16421
16427
  containerRef: e,
16422
16428
  expandedRowIds: t,
16423
16429
  detailPanelRefs: r,
@@ -16462,7 +16468,7 @@ function Rp({
16462
16468
  }), c;
16463
16469
  }, [e, s, l, i, o, a, t, r]);
16464
16470
  }
16465
- function Ch({
16471
+ function wh({
16466
16472
  containerRef: e,
16467
16473
  rows: t,
16468
16474
  getRowId: r,
@@ -16605,7 +16611,7 @@ function $p(e) {
16605
16611
  Number.isFinite(t?.getPageSize?.()) ? t.getPageSize() : E,
16606
16612
  rn
16607
16613
  )
16608
- }), [Ts, zs] = S(() => sh(t)), Dn = gr(t), [At, Tn] = S({
16614
+ }), [Ts, zs] = S(() => oh(t)), Dn = gr(t), [At, Tn] = S({
16609
16615
  items: Dn.originFilter || [],
16610
16616
  quickFilterValues: Dn.originGlobalFilter ? [Dn.originGlobalFilter] : []
16611
16617
  }), [Is, Rs] = S([]), $s = qe !== void 0 ? qe : Is, {
@@ -16616,19 +16622,19 @@ function $p(e) {
16616
16622
  closeDetailPanel: Sr,
16617
16623
  closeAllDetailPanels: gt,
16618
16624
  expandDetailPanel: zi,
16619
- setExpandedRowIds: kh
16620
- } = bh({
16625
+ setExpandedRowIds: Ah
16626
+ } = yh({
16621
16627
  allowMultipleDetailPanels: xe,
16622
16628
  onDetailPanelChange: Re,
16623
16629
  detailPanelMinHeight: le
16624
16630
  });
16625
- wh({
16631
+ bh({
16626
16632
  containerRef: xt,
16627
16633
  expandedRowIds: $t,
16628
16634
  detailPanelRefs: Di,
16629
16635
  closeAllDetailPanels: gt
16630
16636
  });
16631
- const Ii = Ch({
16637
+ const Ii = wh({
16632
16638
  containerRef: xt,
16633
16639
  rows: ht,
16634
16640
  getRowId: _,
@@ -16698,9 +16704,9 @@ function $p(e) {
16698
16704
  }, Rn = () => {
16699
16705
  Sn(!0);
16700
16706
  }, Vs = (pe) => {
16701
- Mu(ht, zt, pe), En(!1);
16707
+ Fu(ht, zt, pe), En(!1);
16702
16708
  }, Ls = (pe) => {
16703
- ju(ht, zt, pe), Sn(!1);
16709
+ _u(ht, zt, pe), Sn(!1);
16704
16710
  }, $i = () => {
16705
16711
  if (lt) {
16706
16712
  const Ve = tn(At, zt), Le = At.quickFilterValues && At.quickFilterValues.length > 0 ? At.quickFilterValues[0] : "";
@@ -16759,7 +16765,7 @@ function $p(e) {
16759
16765
  Ve.filter = tn(pe, zt), Ve.originFilter = pe.items, Ve.originGlobalFilter = pe.quickFilterValues && pe.quickFilterValues.length > 0 ? pe.quickFilterValues[0] : "", console.log("[FILTER] Filtro global definido como:", Ve.originGlobalFilter), Ve.currentPage = 0, Er((Le) => ({ ...Le, page: 0 })), St(!0), t.refreshData?.(Ve), gt();
16760
16766
  }, Ms = T((pe, Ve) => {
16761
16767
  if (console.log("[COMPOSITE FILTERS] Filtros alterados:", pe, "RSQL:", Ve), qe === void 0 && Rs(pe), Ke && Ke(pe, Ve), Ve || pe && pe.length > 0) {
16762
- const Le = ah(pe || []);
16768
+ const Le = sh(pe || []);
16763
16769
  if (Tn(Le), lt) {
16764
16770
  Er((Be) => ({ ...Be, page: 0 })), St(!0), t.refreshData?.({
16765
16771
  currentPage: 0,
@@ -16929,7 +16935,7 @@ function $p(e) {
16929
16935
  }
16930
16936
  }), Os = Ge(() => typeof m == "string" ? m : Math.max(m, m + ki), [m, ki]), zt = Ge(() => {
16931
16937
  const pe = [], Ve = {};
16932
- if ($ && pe.push(yh($t, Ti, Ae.current)), s && U) {
16938
+ if ($ && pe.push(gh($t, Ti, Ae.current)), s && U) {
16933
16939
  const Le = {
16934
16940
  field: "actions",
16935
16941
  headerName: "Ações",
@@ -16957,7 +16963,7 @@ function $p(e) {
16957
16963
  enableGlobalFilter: Be.enableGlobalFilter,
16958
16964
  dataType: Be.dataType
16959
16965
  };
16960
- const hr = nh(Be.dataType, Be.render, {
16966
+ const hr = rh(Be.dataType, Be.render, {
16961
16967
  maskOptions: Be.maskOptions,
16962
16968
  dateFormat: Fe?.dateFormat || M,
16963
16969
  dateTimeFormat: Fe?.dateTimeFormat,
@@ -16971,7 +16977,7 @@ function $p(e) {
16971
16977
  return typeof kr == "string" ? /* @__PURE__ */ n("span", { style: { color: "#999", fontStyle: "italic" }, children: kr }) : kr;
16972
16978
  }
16973
16979
  return hr(Fr);
16974
- }, Li = ih(Be.dataType, Be.align);
16980
+ }, Li = nh(Be.dataType, Be.align);
16975
16981
  pe.push({
16976
16982
  field: Be.dataField,
16977
16983
  headerName: Be.header,
@@ -16998,7 +17004,7 @@ function $p(e) {
16998
17004
  })
16999
17005
  }
17000
17006
  ),
17001
- valueGetter: (Fr, kr, Dh) => {
17007
+ valueGetter: (Fr, kr, kh) => {
17002
17008
  if (Be.dataField.includes(".")) {
17003
17009
  const Ws = Be.dataField.split(".");
17004
17010
  let Mr = kr;
@@ -17034,7 +17040,7 @@ function $p(e) {
17034
17040
  // Dependências de segurança
17035
17041
  Ee,
17036
17042
  se
17037
- ]), _s = Ge(() => De || ch(zt, {
17043
+ ]), _s = Ge(() => De || lh(zt, {
17038
17044
  excludeColumns: ["actions", "id"],
17039
17045
  onlyFilterable: !0
17040
17046
  }), [zt, De]);
@@ -17165,7 +17171,7 @@ function $p(e) {
17165
17171
  },
17166
17172
  `detail-modal-${pe}`
17167
17173
  ) : Pe === "drawer" ? /* @__PURE__ */ n(
17168
- mh,
17174
+ ph,
17169
17175
  {
17170
17176
  rowId: pe,
17171
17177
  rowData: Ve,
@@ -17212,7 +17218,7 @@ function $p(e) {
17212
17218
  },
17213
17219
  children: [
17214
17220
  c && /* @__PURE__ */ n(
17215
- hh,
17221
+ uh,
17216
17222
  {
17217
17223
  dataSource: t,
17218
17224
  filterModel: At,
@@ -17283,7 +17289,7 @@ function $p(e) {
17283
17289
  }
17284
17290
  ) }),
17285
17291
  Ye ? /* @__PURE__ */ n(
17286
- ph,
17292
+ fh,
17287
17293
  {
17288
17294
  paginationModel: Ht,
17289
17295
  totalRecords: Si,
@@ -17297,7 +17303,7 @@ function $p(e) {
17297
17303
  ) : null,
17298
17304
  Hs(),
17299
17305
  /* @__PURE__ */ n(
17300
- Hu,
17306
+ ju,
17301
17307
  {
17302
17308
  opened: ur,
17303
17309
  onClose: () => En(!1),
@@ -17310,7 +17316,7 @@ function $p(e) {
17310
17316
  }
17311
17317
  ),
17312
17318
  /* @__PURE__ */ n(
17313
- Uu,
17319
+ Hu,
17314
17320
  {
17315
17321
  opened: As,
17316
17322
  onClose: () => Sn(!1),
@@ -17456,7 +17462,7 @@ function Np({
17456
17462
  }
17457
17463
  );
17458
17464
  }
17459
- function vh({
17465
+ function Ch({
17460
17466
  onEditRow: e,
17461
17467
  onRemoveRow: t,
17462
17468
  onViewRow: r,
@@ -17501,7 +17507,7 @@ function vh({
17501
17507
  }
17502
17508
  function Vp(e, t, r, i) {
17503
17509
  return ({ row: o, table: s }) => /* @__PURE__ */ n(
17504
- vh,
17510
+ Ch,
17505
17511
  {
17506
17512
  onEditRow: e,
17507
17513
  onRemoveRow: t,
@@ -17519,7 +17525,7 @@ function Lp({ currentValue: e, values: t }) {
17519
17525
  const To = (e, t) => {
17520
17526
  if (!(!e || !t || t.length === 0 || t.filter((i) => i.enableGlobalFilter !== !1).length === 0))
17521
17527
  return `globalSearch=*${e}*`;
17522
- }, xh = (e, t) => {
17528
+ }, vh = (e, t) => {
17523
17529
  if (!e.items || e.items.length === 0) {
17524
17530
  if (e.quickFilterValues && e.quickFilterValues.length > 0) {
17525
17531
  const i = e.quickFilterValues[0];
@@ -17584,10 +17590,10 @@ const To = (e, t) => {
17584
17590
  }
17585
17591
  if (r.length !== 0)
17586
17592
  return r.join(";");
17587
- }, Eh = (e) => {
17593
+ }, xh = (e) => {
17588
17594
  if (!(!e || e.length === 0))
17589
17595
  return e.map((t) => `${t.field}:${t.sort}`);
17590
- }, Sh = (e) => {
17596
+ }, Eh = (e) => {
17591
17597
  const t = e;
17592
17598
  return e && t.getOptions?.()?.originSort ? t.getOptions().originSort : e && t.getOptions?.()?.sort ? t.getOptions().sort.map((r) => {
17593
17599
  const [i, o] = r.split(":");
@@ -17614,7 +17620,7 @@ function Fp({
17614
17620
  page: e ? e.getCurrentPage() : r,
17615
17621
  pageSize: e ? e.getPageSize() : t
17616
17622
  })), [g, y] = S(
17617
- () => Sh(e)
17623
+ () => Eh(e)
17618
17624
  ), [m, w] = S(() => {
17619
17625
  const A = e;
17620
17626
  return {
@@ -17634,11 +17640,11 @@ function Fp({
17634
17640
  }, [l, s]), L = T((A) => {
17635
17641
  y(A);
17636
17642
  const M = a.current, F = M.getOptions?.() || {};
17637
- F.sort = Eh(A), F.originSort = A, k.current = !0, h(!0), M.refreshData?.(F), s || l();
17643
+ F.sort = xh(A), F.originSort = A, k.current = !0, h(!0), M.refreshData?.(F), s || l();
17638
17644
  }, [l, s]), O = T((A) => {
17639
17645
  w(A);
17640
17646
  const M = a.current, F = M.getOptions?.() || {};
17641
- F.filter = xh(A, o), F.originFilter = A.items, F.originGlobalFilter = A.quickFilterValues && A.quickFilterValues.length > 0 ? A.quickFilterValues[0] : "", F.currentPage = 0, p((C) => ({ ...C, page: 0 })), k.current = !0, h(!0), M.refreshData?.(F), s || l();
17647
+ F.filter = vh(A, o), F.originFilter = A.items, F.originGlobalFilter = A.quickFilterValues && A.quickFilterValues.length > 0 ? A.quickFilterValues[0] : "", F.currentPage = 0, p((C) => ({ ...C, page: 0 })), k.current = !0, h(!0), M.refreshData?.(F), s || l();
17642
17648
  }, [o, l, s]), I = T((A) => {
17643
17649
  if (!R.current)
17644
17650
  try {
@@ -18024,7 +18030,7 @@ function Yp() {
18024
18030
  throw new Error("useArchbaseListContext deve ser usado dentro de um ArchbaseListProvider");
18025
18031
  return e;
18026
18032
  }
18027
- const Ah = {
18033
+ const Sh = {
18028
18034
  root: null,
18029
18035
  rootMargin: "0px",
18030
18036
  threshold: Array.from({ length: 100 }, (e, t) => t * 0.01)
@@ -18036,7 +18042,7 @@ const Ah = {
18036
18042
  }, []);
18037
18043
  return W(() => {
18038
18044
  i.current || r.current && (i.current = new IntersectionObserver(a, {
18039
- ...Ah,
18045
+ ...Sh,
18040
18046
  ...t
18041
18047
  }), i.current.observe(r.current));
18042
18048
  }), [r, l];
@@ -18078,113 +18084,113 @@ function Jp() {
18078
18084
  }, [e?.offsetHeight, e?.offsetWidth]), [t, r];
18079
18085
  }
18080
18086
  export {
18081
- Qf as ArchbaseActionButtons,
18087
+ Yf as ArchbaseActionButtons,
18082
18088
  tm as ArchbaseActionIcon,
18083
18089
  op as ArchbaseAlert,
18084
- yf as ArchbaseAsyncMultiSelect,
18085
- bf as ArchbaseAsyncSelect,
18090
+ gf as ArchbaseAsyncMultiSelect,
18091
+ yf as ArchbaseAsyncSelect,
18086
18092
  pi as ArchbaseAsyncSelectContext,
18087
18093
  ns as ArchbaseAsyncSelectProvider,
18088
- Yf as ArchbaseAvatarEdit,
18094
+ qf as ArchbaseAvatarEdit,
18089
18095
  rm as ArchbaseBadge,
18090
18096
  nm as ArchbaseBreadcrumbs,
18091
18097
  im as ArchbaseButton,
18092
- gf as ArchbaseCheckbox,
18093
- wf as ArchbaseChip,
18094
- Cf as ArchbaseChipGroup,
18098
+ mf as ArchbaseCheckbox,
18099
+ bf as ArchbaseChip,
18100
+ wf as ArchbaseChipGroup,
18095
18101
  Hl as ArchbaseChipItem,
18096
- nu as ArchbaseCodeBlock,
18097
- vf as ArchbaseColorPicker,
18098
- Jd as ArchbaseCompositeFilters,
18099
- Uf as ArchbaseCountdownProgress,
18100
- Gf as ArchbaseCronExpressionEdit,
18102
+ ru as ArchbaseCodeBlock,
18103
+ Cf as ArchbaseColorPicker,
18104
+ Kd as ArchbaseCompositeFilters,
18105
+ Hf as ArchbaseCountdownProgress,
18106
+ Wf as ArchbaseCronExpressionEdit,
18101
18107
  vc as ArchbaseCronExpressionEditor,
18102
18108
  $p as ArchbaseDataGrid,
18103
- oh as ArchbaseDataGridColumn,
18104
- ph as ArchbaseDataGridPagination,
18105
- hh as ArchbaseDataGridToolbar,
18109
+ ih as ArchbaseDataGridColumn,
18110
+ fh as ArchbaseDataGridPagination,
18111
+ uh as ArchbaseDataGridToolbar,
18106
18112
  ti as ArchbaseDatePickerEdit,
18107
- xf as ArchbaseDatePickerRange,
18113
+ vf as ArchbaseDatePickerRange,
18108
18114
  ri as ArchbaseDateTimePickerEdit,
18109
18115
  Wl as ArchbaseDateTimePickerRange,
18110
- Zf as ArchbaseDebugInspector,
18111
- mh as ArchbaseDetailDrawer,
18116
+ Jf as ArchbaseDebugInspector,
18117
+ ph as ArchbaseDetailDrawer,
18112
18118
  Np as ArchbaseDetailHoverCard,
18113
18119
  Do as ArchbaseDetailModal,
18114
18120
  Ip as ArchbaseDetailPanel,
18115
18121
  Pp as ArchbaseDetailPopover,
18116
18122
  sp as ArchbaseDialog,
18117
- mf as ArchbaseEdit,
18118
- gh as ArchbaseExpandButton,
18123
+ pf as ArchbaseEdit,
18124
+ mh as ArchbaseExpandButton,
18119
18125
  om as ArchbaseFieldset,
18120
- Wf as ArchbaseFileAttachment,
18121
- Hd as ArchbaseFilePreviewer,
18122
- vh as ArchbaseGridRowActions,
18123
- Ef as ArchbaseImage,
18124
- kf as ArchbaseImageEdit,
18126
+ Uf as ArchbaseFileAttachment,
18127
+ jd as ArchbaseFilePreviewer,
18128
+ Ch as ArchbaseGridRowActions,
18129
+ xf as ArchbaseImage,
18130
+ Af as ArchbaseImageEdit,
18125
18131
  rc as ArchbaseImagePickerEditor,
18126
- iu as ArchbaseInlineCode,
18132
+ nu as ArchbaseInlineCode,
18127
18133
  Lp as ArchbaseItemRender,
18128
- Df as ArchbaseJsonEdit,
18129
- Jf as ArchbaseJsonPathPicker,
18130
- ep as ArchbaseJsonSchemaEditor,
18131
- Kf as ArchbaseJsonView,
18132
- Of as ArchbaseKeyValueEditor,
18133
- su as ArchbaseLinkRenderer,
18134
+ kf as ArchbaseJsonEdit,
18135
+ Kf as ArchbaseJsonPathPicker,
18136
+ Zf as ArchbaseJsonSchemaEditor,
18137
+ Xf as ArchbaseJsonView,
18138
+ Bf as ArchbaseKeyValueEditor,
18139
+ ou as ArchbaseLinkRenderer,
18134
18140
  Ac as ArchbaseList,
18135
18141
  yi as ArchbaseListContext,
18136
18142
  mn as ArchbaseListItem,
18137
- tp as ArchbaseListViewTable,
18143
+ ep as ArchbaseListViewTable,
18138
18144
  sm as ArchbaseLoader,
18139
- Tf as ArchbaseLookupEdit,
18140
- zf as ArchbaseLookupNumber,
18141
- If as ArchbaseLookupSelect,
18145
+ Df as ArchbaseLookupEdit,
18146
+ Tf as ArchbaseLookupNumber,
18147
+ zf as ArchbaseLookupSelect,
18142
18148
  am as ArchbaseMantineAlert,
18143
18149
  lm as ArchbaseMantineImage,
18144
- lu as ArchbaseMarkdown,
18145
- Vf as ArchbaseMarkdownEdit,
18150
+ au as ArchbaseMarkdown,
18151
+ Nf as ArchbaseMarkdownEdit,
18146
18152
  uc as ArchbaseMaskEdit,
18147
- Id as ArchbaseMasonry,
18153
+ rp as ArchbaseMasonry,
18148
18154
  kd as ArchbaseMasonryContext,
18149
- rp as ArchbaseMasonryProvider,
18155
+ tp as ArchbaseMasonryProvider,
18150
18156
  np as ArchbaseMasonryResponsive,
18151
- Sf as ArchbaseMicrosoftAvatar,
18157
+ Ef as ArchbaseMicrosoftAvatar,
18152
18158
  cm as ArchbaseNavLink,
18153
18159
  dm as ArchbaseNotification,
18154
18160
  ip as ArchbaseNotifications,
18155
18161
  gi as ArchbaseNumberEdit,
18156
18162
  hd as ArchbaseObjectInspector,
18157
18163
  lp as ArchbaseOnboardingTour,
18158
- Hf as ArchbaseOperatingHoursEditor,
18159
- $d as ArchbasePDFAnnotations,
18160
- Pd as ArchbasePDFAnnotationsList,
18164
+ jf as ArchbaseOperatingHoursEditor,
18165
+ Rd as ArchbasePDFAnnotations,
18166
+ $d as ArchbasePDFAnnotationsList,
18161
18167
  dp as ArchbasePDFViewer,
18162
18168
  fo as ArchbasePDFViewerToolbar,
18163
18169
  um as ArchbasePagination,
18164
- Rf as ArchbasePasswordEdit,
18170
+ If as ArchbasePasswordEdit,
18165
18171
  hm as ArchbaseProgress,
18166
- $f as ArchbaseRadioGroup,
18172
+ Rf as ArchbaseRadioGroup,
18167
18173
  fc as ArchbaseRadioItem,
18168
- Pf as ArchbaseRating,
18169
- Nf as ArchbaseRichTextEdit,
18174
+ $f as ArchbaseRating,
18175
+ Pf as ArchbaseRichTextEdit,
18170
18176
  ls as ArchbaseSelect,
18171
18177
  wc as ArchbaseSelectContext,
18172
18178
  bc as ArchbaseSelectItem,
18173
- Bf as ArchbaseSelectProvider,
18174
- Lf as ArchbaseSwitch,
18179
+ Mf as ArchbaseSelectProvider,
18180
+ Vf as ArchbaseSwitch,
18175
18181
  fm as ArchbaseText,
18176
- Mf as ArchbaseTextArea,
18177
- Lu as ArchbaseThemeColorEditor,
18178
- Ff as ArchbaseThemeEditor,
18179
- Su as ArchbaseThermalPrinter,
18180
- qf as ArchbaseTimeEdit,
18181
- _f as ArchbaseTimeRangeSelector,
18182
- Xf as ArchbaseTimeline,
18182
+ Ff as ArchbaseTextArea,
18183
+ Vu as ArchbaseThemeColorEditor,
18184
+ Lf as ArchbaseThemeEditor,
18185
+ Eu as ArchbaseThermalPrinter,
18186
+ Gf as ArchbaseTimeEdit,
18187
+ Of as ArchbaseTimeRangeSelector,
18188
+ Qf as ArchbaseTimeline,
18183
18189
  pm as ArchbaseTitle,
18184
- jf as ArchbaseTreeSelect,
18190
+ _f as ArchbaseTreeSelect,
18185
18191
  kc as ArchbaseTreeView,
18186
18192
  us as ArchbaseTreeViewItem,
18187
- fu as ArchbaseVideoPlayer,
18193
+ hu as ArchbaseVideoPlayer,
18188
18194
  Wc as ArchbaseVisTimeline,
18189
18195
  Es as COLOR_PRESETS,
18190
18196
  Ss as Columns,
@@ -18192,51 +18198,51 @@ export {
18192
18198
  ap as CustomShowErrorModal,
18193
18199
  nc as DEFAULT_AVATAR,
18194
18200
  so as DEFAULT_TIMELINE_OPTIONS,
18195
- Hu as ExportModal,
18196
- Ud as FilterPill,
18197
- uh as GlobalSearchInput,
18198
- fh as GridPagination,
18201
+ ju as ExportModal,
18202
+ Hd as FilterPill,
18203
+ dh as GlobalSearchInput,
18204
+ hh as GridPagination,
18199
18205
  Dp as GridToolBarActions,
18200
- dh as GridToolbar,
18206
+ ch as GridToolbar,
18201
18207
  cc as MaskPattern,
18202
- Uu as PrintModal,
18208
+ Hu as PrintModal,
18203
18209
  xp as QuickPrintButton,
18204
18210
  tn as buildFilterExpression,
18205
18211
  Ao as buildGlobalFilterExpression,
18206
18212
  yp as centerText,
18207
- Cu as combineCommands,
18208
- ah as convertActiveFiltersToFilterModel,
18209
- ch as convertColumnsToFilterDefinitions,
18213
+ wu as combineCommands,
18214
+ sh as convertActiveFiltersToFilterModel,
18215
+ lh as convertColumnsToFilterDefinitions,
18210
18216
  zp as convertFilterDefinitionsToColumns,
18211
18217
  Tp as convertRSQLToFilterModel,
18212
18218
  ws as convertToApiFormatList,
18213
18219
  Kt as convertToRSQL,
18214
18220
  Ep as copyThemeToClipboard,
18215
18221
  Vp as createDataTableRowActions,
18216
- yh as createExpandColumn,
18217
- Ld as detectFileType,
18218
- Vd as detectFileTypeByContent,
18222
+ gh as createExpandColumn,
18223
+ Vd as detectFileType,
18224
+ Nd as detectFileTypeByContent,
18219
18225
  _n as detectFileTypeByExtension,
18220
18226
  jn as detectFileTypeByMimeType,
18221
18227
  Co as divider,
18222
- Tu as downloadTheme,
18228
+ Du as downloadTheme,
18223
18229
  pr as escposAlign,
18224
- bu as escposBarcode,
18230
+ yu as escposBarcode,
18225
18231
  Vt as escposBold,
18226
- gu as escposCut,
18232
+ mu as escposCut,
18227
18233
  Ut as escposFeed,
18228
- wu as escposFinalize,
18234
+ bu as escposFinalize,
18229
18235
  vo as escposFontSize,
18230
- mu as escposInit,
18236
+ pu as escposInit,
18231
18237
  Cp as escposOpenCashDrawer,
18232
- yu as escposQRCode,
18238
+ gu as escposQRCode,
18233
18239
  wp as escposUnderline,
18234
- Mu as exportData,
18240
+ Fu as exportData,
18235
18241
  xi as exportTheme,
18236
- ku as exportThemeAsCSS,
18242
+ Au as exportThemeAsCSS,
18237
18243
  xo as exportThemeAsJSON,
18238
- Au as exportThemeAsTypeScript,
18239
- Du as exportThemeForMantine,
18244
+ Su as exportThemeAsTypeScript,
18245
+ ku as exportThemeForMantine,
18240
18246
  Sp as extractColorPalette,
18241
18247
  qr as fileSourceToUrl,
18242
18248
  Gp as formatBoolean,
@@ -18253,42 +18259,42 @@ export {
18253
18259
  kp as generateColorScale,
18254
18260
  gn as generateFilterId,
18255
18261
  xs as generateReceiptEscpos,
18256
- ih as getAlignmentByDataType,
18257
- vu as getCharsWidth,
18258
- Kd as getDefaultOperatorForType,
18262
+ nh as getAlignmentByDataType,
18263
+ Cu as getCharsWidth,
18264
+ Xd as getDefaultOperatorForType,
18259
18265
  vi as getDisplayValue,
18260
18266
  Bp as getFormattedValueByDataType,
18261
18267
  Op as getFormattedValueForExport,
18262
- sh as getInitialSortModel,
18263
- Xd as getOperatorsForType,
18264
- nh as getRendererByDataType,
18268
+ oh as getInitialSortModel,
18269
+ Qd as getOperatorsForType,
18270
+ rh as getRendererByDataType,
18265
18271
  ko as getRgbValues,
18266
- Fd as getUnsupportedMessage,
18267
- zu as hexToRgb,
18272
+ Ld as getUnsupportedMessage,
18273
+ Tu as hexToRgb,
18268
18274
  up as isFileTypeSupported,
18269
18275
  Ap as isValidColor,
18270
- Af as languages,
18271
- pu as line,
18276
+ Sf as languages,
18277
+ fu as line,
18272
18278
  Hn as mergeTheme,
18273
18279
  Oc as mergeTimelineOptions,
18274
18280
  Pr as normalizeDate,
18275
18281
  Hc as normalizeRange,
18276
18282
  jc as normalizeTimelineGroups,
18277
18283
  _c as normalizeTimelineItems,
18278
- ju as printData,
18279
- Ku as renderBoolean,
18280
- Yu as renderCurrency,
18281
- Ju as renderDate,
18282
- Zu as renderDateTime,
18283
- th as renderEnum,
18284
- Qu as renderFloat,
18285
- qu as renderInteger,
18286
- Xu as renderPercent,
18284
+ _u as printData,
18285
+ Xu as renderBoolean,
18286
+ qu as renderCurrency,
18287
+ Ku as renderDate,
18288
+ Ju as renderDateTime,
18289
+ eh as renderEnum,
18290
+ Yu as renderFloat,
18291
+ Gu as renderInteger,
18292
+ Qu as renderPercent,
18287
18293
  So as renderText,
18288
- eh as renderTime,
18289
- rh as renderUUID,
18294
+ Zu as renderTime,
18295
+ th as renderUUID,
18290
18296
  vn as revokeFileUrl,
18291
- Iu as rgbToHex,
18297
+ zu as rgbToHex,
18292
18298
  bp as rightAlignText,
18293
18299
  nr as safeGetRowId,
18294
18300
  et as stringToUint8Array,
@@ -18306,11 +18312,11 @@ export {
18306
18312
  cp as useArchbaseOnboarding,
18307
18313
  gp as useArchbaseQuickFilters,
18308
18314
  Qp as useArchbaseVisible,
18309
- Ch as useAvailableSpace,
18310
- wh as useDetailPanelAutoClose,
18315
+ wh as useAvailableSpace,
18316
+ bh as useDetailPanelAutoClose,
18311
18317
  Rp as useDetailPanelPositions,
18312
- bh as useDetailPanels,
18318
+ yh as useDetailPanels,
18313
18319
  Fp as useGridData,
18314
- cu as useVideoPlayer,
18320
+ lu as useVideoPlayer,
18315
18321
  Cs as validateFilterValue
18316
18322
  };