dgz-ui-shared 1.1.30 → 1.1.31

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.
Files changed (32) hide show
  1. package/dist/{DateRangePicker-hhQndFoD.js → DateRangePicker-BbvT7XEr.js} +6 -6
  2. package/dist/{DateRangePicker-DqzcyN7H.cjs → DateRangePicker-DlH-0Nyv.cjs} +1 -1
  3. package/dist/{Empty-DspeyPQa.js → Empty-R6tJosqw.js} +7 -7
  4. package/dist/Empty-RpS8tJNv.cjs +6 -0
  5. package/dist/{FilterWrapper-OjCn16Bf.cjs → FilterWrapper-D0oACPk3.cjs} +4 -4
  6. package/dist/{FilterWrapper-BU6BOSt1.js → FilterWrapper-vMOeud_S.js} +4 -4
  7. package/dist/{MyLimitSelect-BNdB8P5s.cjs → MyLimitSelect-CFjO6tYM.cjs} +2 -2
  8. package/dist/{MyLimitSelect-CNRAneFY.js → MyLimitSelect-JkR-SZXb.js} +1 -1
  9. package/dist/components/confirm/index.cjs.js +1 -1
  10. package/dist/components/confirm/index.es.js +1 -1
  11. package/dist/components/datatable/index.cjs.js +2 -2
  12. package/dist/components/datatable/index.es.js +21 -21
  13. package/dist/components/datepicker/index.cjs.js +1 -1
  14. package/dist/components/datepicker/index.es.js +1 -1
  15. package/dist/components/empty/index.cjs.js +1 -1
  16. package/dist/components/empty/index.es.js +1 -1
  17. package/dist/components/filters/index.cjs.js +1 -1
  18. package/dist/components/filters/index.es.js +15 -15
  19. package/dist/components/form/index.cjs.js +1 -1
  20. package/dist/components/form/index.es.js +1 -1
  21. package/dist/components/pagination/index.cjs.js +1 -1
  22. package/dist/components/pagination/index.es.js +1 -1
  23. package/dist/components/theme/index.cjs.js +2 -2
  24. package/dist/components/theme/index.es.js +5 -5
  25. package/dist/hooks/index.cjs.js +1 -1
  26. package/dist/hooks/index.es.js +1 -1
  27. package/dist/{unstyled-3gQZkMky.js → unstyled-B5s-hwxJ.js} +1 -1
  28. package/dist/{unstyled-CD5LId4m.cjs → unstyled-D8OC13a0.cjs} +1 -1
  29. package/package.json +1 -1
  30. package/dist/Empty-DPsWiBRX.cjs +0 -6
  31. package/dist/useTranslation-CZf20ucv.cjs +0 -1
  32. package/dist/useTranslation-dH-uwymc.js +0 -147
@@ -6,8 +6,8 @@ import { c as _n, m as be } from "./utils-B6fNqzRf-B1_jG1K7.js";
6
6
  import { J as _t, o as Lt, c as Et, z as vt, n as Ln } from "./react-select-DVPHHTAP-D2u3DqGr.js";
7
7
  import { k as En } from "./createLucideIcon-B950nf2d-9wLYOF5y.js";
8
8
  import { g as Pn } from "./_commonjsHelpers-DaMA6jEr.js";
9
- import { _ as jn, w as Fn, u as Hn } from "./popover-OZcfKDD9-C2PVWPLS.js";
10
- import { u as In } from "./useTranslation-dH-uwymc.js";
9
+ import { useTranslation as jn } from "react-i18next";
10
+ import { _ as Fn, w as Hn, u as In } from "./popover-OZcfKDD9-C2PVWPLS.js";
11
11
  import { c as zn } from "./createLucideIcon-B950nf2d.js";
12
12
  /**
13
13
  * @license lucide-react v0.511.0 - ISC
@@ -3751,7 +3751,7 @@ const Qe = /* @__PURE__ */ Pn(as), ys = ({
3751
3751
  error: s,
3752
3752
  ...i
3753
3753
  }) => {
3754
- const { t: u } = In(), [h, v] = me(!1), [l, M] = me();
3754
+ const { t: u } = jn(), [h, v] = me(!1), [l, M] = me();
3755
3755
  Je(() => {
3756
3756
  M(t);
3757
3757
  }, [t]);
@@ -3803,8 +3803,8 @@ const Qe = /* @__PURE__ */ Pn(as), ys = ({
3803
3803
  const { from: k, to: $ } = b;
3804
3804
  M({ from: k, to: $ }), k && $ && (a({ from: k, to: $ }), v(!1));
3805
3805
  };
3806
- return /* @__PURE__ */ ce.jsx("div", { className: be("grid gap-2", e), children: /* @__PURE__ */ ce.jsxs(jn, { open: h, onOpenChange: v, children: [
3807
- /* @__PURE__ */ ce.jsx(Fn, { asChild: !0, children: /* @__PURE__ */ ce.jsxs(
3806
+ return /* @__PURE__ */ ce.jsx("div", { className: be("grid gap-2", e), children: /* @__PURE__ */ ce.jsxs(Fn, { open: h, onOpenChange: v, children: [
3807
+ /* @__PURE__ */ ce.jsx(Hn, { asChild: !0, children: /* @__PURE__ */ ce.jsxs(
3808
3808
  ge,
3809
3809
  {
3810
3810
  id: "date",
@@ -3827,7 +3827,7 @@ const Qe = /* @__PURE__ */ Pn(as), ys = ({
3827
3827
  ]
3828
3828
  }
3829
3829
  ) }),
3830
- /* @__PURE__ */ ce.jsxs(Hn, { className: "flex w-auto p-0", align: "end", side: "bottom", children: [
3830
+ /* @__PURE__ */ ce.jsxs(In, { className: "flex w-auto p-0", align: "end", side: "bottom", children: [
3831
3831
  /* @__PURE__ */ ce.jsx(
3832
3832
  "div",
3833
3833
  {
@@ -1,4 +1,4 @@
1
- "use strict";const ce=require("./jsx-runtime-h4oGeKUK.cjs"),m=require("react"),A=require("./index-BL59b1Bz-COeLljOH.cjs"),fe=require("./button-CdZDBhmr-3yMPCRDo.cjs"),me=require("./utils-B6fNqzRf-BNysSCt9.cjs"),De=require("./react-select-DVPHHTAP-DKDInFsM.cjs"),kn=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),xn=require("./_commonjsHelpers-DKOUU3wS.cjs"),Ve=require("./popover-OZcfKDD9-KUWOsIOs.cjs"),On=require("./useTranslation-CZf20ucv.cjs"),Sn=require("./createLucideIcon-BnAj0RnC.cjs");/**
1
+ "use strict";const ce=require("./jsx-runtime-h4oGeKUK.cjs"),m=require("react"),A=require("./index-BL59b1Bz-COeLljOH.cjs"),fe=require("./button-CdZDBhmr-3yMPCRDo.cjs"),me=require("./utils-B6fNqzRf-BNysSCt9.cjs"),De=require("./react-select-DVPHHTAP-DKDInFsM.cjs"),kn=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),xn=require("./_commonjsHelpers-DKOUU3wS.cjs"),On=require("react-i18next"),Ve=require("./popover-OZcfKDD9-KUWOsIOs.cjs"),Sn=require("./createLucideIcon-BnAj0RnC.cjs");/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-DS1N_tNq.js";
2
- import { m as n } from "./utils-B6fNqzRf-B1_jG1K7.js";
3
- import { u as c } from "./useTranslation-dH-uwymc.js";
2
+ import { useTranslation as n } from "react-i18next";
3
+ import { m as c } from "./utils-B6fNqzRf-B1_jG1K7.js";
4
4
  import { c as m } from "./createLucideIcon-B950nf2d.js";
5
5
  /**
6
6
  * @license lucide-react v0.511.0 - ISC
@@ -16,18 +16,18 @@ const i = [
16
16
  key: "usdka0"
17
17
  }
18
18
  ]
19
- ], l = m("folder-open", i), u = ({ children: t, icon: s, className: o, ...r }) => {
20
- const { t: a } = c();
19
+ ], l = m("folder-open", i), u = ({ children: t, icon: o, className: s, ...r }) => {
20
+ const { t: a } = n();
21
21
  return /* @__PURE__ */ e.jsxs(
22
22
  "div",
23
23
  {
24
24
  ...r,
25
- className: n(
25
+ className: c(
26
26
  "flex h-16 flex-col items-center justify-center text-center text-base",
27
- o
27
+ s
28
28
  ),
29
29
  children: [
30
- s || /* @__PURE__ */ e.jsx(l, { size: 48, strokeWidth: 1 }),
30
+ o || /* @__PURE__ */ e.jsx(l, { size: 48, strokeWidth: 1 }),
31
31
  t || a("No results")
32
32
  ]
33
33
  }
@@ -0,0 +1,6 @@
1
+ "use strict";const e=require("./jsx-runtime-h4oGeKUK.cjs"),o=require("react-i18next"),i=require("./utils-B6fNqzRf-BNysSCt9.cjs"),a=require("./createLucideIcon-BnAj0RnC.cjs");/**
2
+ * @license lucide-react v0.511.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const u=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],l=a.createLucideIcon("folder-open",u),x=({children:t,icon:s,className:r,...n})=>{const{t:c}=o.useTranslation();return e.jsxRuntimeExports.jsxs("div",{...n,className:i.mo("flex h-16 flex-col items-center justify-center text-center text-base",r),children:[s||e.jsxRuntimeExports.jsx(l,{size:48,strokeWidth:1}),t||c("No results")]})};exports.Empty=x;
@@ -1,14 +1,14 @@
1
- "use strict";const e=require("./jsx-runtime-h4oGeKUK.cjs"),b=require("./input-mask-DBLFIvhN-C_0RAR2l.cjs"),i=require("./button-CdZDBhmr-3yMPCRDo.cjs"),z=require("./utils-B6fNqzRf-BNysSCt9.cjs"),F=require("./useTranslation-CZf20ucv.cjs"),u=require("./createLucideIcon-BnAj0RnC.cjs"),o=require("react"),$=require("./lodash-C5w_OPmE.cjs"),j=require("./popover-OZcfKDD9-KUWOsIOs.cjs"),B=require("./MyInput-OECIw9XS.cjs"),C=require("./MySelect-ClBq6zbD.cjs"),O=require("./useFilter-Cwz8oftI.cjs");/**
1
+ "use strict";const e=require("./jsx-runtime-h4oGeKUK.cjs"),b=require("./input-mask-DBLFIvhN-C_0RAR2l.cjs"),z=require("react-i18next"),i=require("./button-CdZDBhmr-3yMPCRDo.cjs"),F=require("./utils-B6fNqzRf-BNysSCt9.cjs"),u=require("./createLucideIcon-BnAj0RnC.cjs"),c=require("react"),$=require("./lodash-C5w_OPmE.cjs"),j=require("./popover-OZcfKDD9-KUWOsIOs.cjs"),B=require("./MyInput-OECIw9XS.cjs"),C=require("./MySelect-ClBq6zbD.cjs"),O=require("./useFilter-Cwz8oftI.cjs");/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const A=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],T=u.createLucideIcon("chevron-down",A);/**
6
+ */const A=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W=u.createLucideIcon("chevron-down",A);/**
7
7
  * @license lucide-react v0.511.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const W=[["path",{d:"M10 18h4",key:"1ulq68"}],["path",{d:"M11 6H3",key:"1u26ik"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 9V3",key:"xwwp7m"}],["path",{d:"M7 12h8",key:"7a1bxv"}]],P=u.createLucideIcon("list-filter-plus",W);/**
11
+ */const P=[["path",{d:"M10 18h4",key:"1ulq68"}],["path",{d:"M11 6H3",key:"1u26ik"}],["path",{d:"M15 6h6",key:"1jlkvy"}],["path",{d:"M18 9V3",key:"xwwp7m"}],["path",{d:"M7 12h8",key:"7a1bxv"}]],T=u.createLucideIcon("list-filter-plus",P);/**
12
12
  * @license lucide-react v0.511.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const G=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],H=u.createLucideIcon("search",G),K=({name:l="search",defaultValue:n,onSearchChange:r,placeholder:t,className:c,...y})=>{const{t:x}=F.useTranslation(),p=a=>{const d=new FormData(a.currentTarget);r(d.get(l)||void 0),a.preventDefault(),a.stopPropagation()};return e.jsxRuntimeExports.jsxs("form",{className:z.mo("relative w-full max-w-64 min-w-40",c),onSubmit:p,children:[e.jsxRuntimeExports.jsx(b.yp,{...y,className:"h-8 rounded-lg",name:l,placeholder:t||x("Search..."),defaultValue:n?`${n}`:""}),e.jsxRuntimeExports.jsx(i.u,{type:"submit",variant:"ghost",className:"text-foreground absolute top-0 right-0 cursor-pointer rounded-md !bg-transparent",size:"sm",children:e.jsxRuntimeExports.jsx(H,{})})]})},J=o.memo(function({filters:n,params:r,onFilter:t,onChange:c,onCancel:y,triggerProps:x,contentProps:p,title:a,resetText:d,applyText:v,...N}){const[q,f]=o.useState(!1),[M,m]=o.useState(!1),{form:E}=O.useFilter({params:r}),{watch:w,getValues:S,handleSubmit:g,control:R,reset:k}=E;o.useEffect(()=>{let s=!1;n.map(L=>{const h=$.lodashExports.get(r,`${L.name}`);(Array.isArray(h)?h.length>0:h)&&(s=!0),f(s)})},[n,r]);const I=w();o.useEffect(()=>{c==null||c(S())},[I]);const _=o.useCallback((s={})=>{t==null||t(s),m(!1)},[t]),D=o.useCallback(()=>{k(),t&&r&&t({...r,...Object.fromEntries(n.map(s=>[s.name,void 0]))}),m(!1)},[t,k,r,n]);return e.jsxRuntimeExports.jsxs(j._e,{open:M,onOpenChange:m,children:[e.jsxRuntimeExports.jsx(j.we,{...x,children:e.jsxRuntimeExports.jsx(i.u,{asChild:!0,size:"sm",variant:"secondary",className:"ml-auto px-3",...N,children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[q?e.jsxRuntimeExports.jsx(P,{className:"size-5"}):e.jsxRuntimeExports.jsx(Z,{className:"size-5"})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:a||"Filter"}),e.jsxRuntimeExports.jsx(T,{})]})})}),e.jsxRuntimeExports.jsx(j.ue,{side:"bottom",align:"end",...p,children:e.jsxRuntimeExports.jsx(b.Gx,{...E,children:e.jsxRuntimeExports.jsxs("form",{onSubmit:g(_),className:"space-y-2",children:[e.jsxRuntimeExports.jsx("div",{className:"h-full shrink p-1",children:n.map(s=>s.options?e.jsxRuntimeExports.jsx(C.MySelect,{control:R,name:s.name,placeholder:s.placeholder,isMulti:s.isMulti,options:s.options,label:s.label},s.name):e.jsxRuntimeExports.jsx(B.MyInput,{control:R,placeholder:s.placeholder,name:s.name,label:s.label},s.name))}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 justify-end gap-2",children:[e.jsxRuntimeExports.jsx(i.u,{variant:"destructive",type:"reset",size:"sm",onClick:D,children:d||"Reset"}),e.jsxRuntimeExports.jsx(i.u,{type:"submit",size:"sm",children:v||"Apply"})]})]})})})]})});exports.FilterWrapper=J;exports.Search=K;
21
+ */const G=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],H=u.createLucideIcon("search",G),K=({name:l="search",defaultValue:n,onSearchChange:r,placeholder:t,className:o,...y})=>{const{t:x}=z.useTranslation(),p=a=>{const d=new FormData(a.currentTarget);r(d.get(l)||void 0),a.preventDefault(),a.stopPropagation()};return e.jsxRuntimeExports.jsxs("form",{className:F.mo("relative w-full max-w-64 min-w-40",o),onSubmit:p,children:[e.jsxRuntimeExports.jsx(b.yp,{...y,className:"h-8 rounded-lg",name:l,placeholder:t||x("Search..."),defaultValue:n?`${n}`:""}),e.jsxRuntimeExports.jsx(i.u,{type:"submit",variant:"ghost",className:"text-foreground absolute top-0 right-0 cursor-pointer rounded-md !bg-transparent",size:"sm",children:e.jsxRuntimeExports.jsx(H,{})})]})},J=c.memo(function({filters:n,params:r,onFilter:t,onChange:o,onCancel:y,triggerProps:x,contentProps:p,title:a,resetText:d,applyText:v,...N}){const[q,f]=c.useState(!1),[M,m]=c.useState(!1),{form:E}=O.useFilter({params:r}),{watch:w,getValues:S,handleSubmit:g,control:R,reset:k}=E;c.useEffect(()=>{let s=!1;n.map(L=>{const h=$.lodashExports.get(r,`${L.name}`);(Array.isArray(h)?h.length>0:h)&&(s=!0),f(s)})},[n,r]);const I=w();c.useEffect(()=>{o==null||o(S())},[I]);const _=c.useCallback((s={})=>{t==null||t(s),m(!1)},[t]),D=c.useCallback(()=>{k(),t&&r&&t({...r,...Object.fromEntries(n.map(s=>[s.name,void 0]))}),m(!1)},[t,k,r,n]);return e.jsxRuntimeExports.jsxs(j._e,{open:M,onOpenChange:m,children:[e.jsxRuntimeExports.jsx(j.we,{...x,children:e.jsxRuntimeExports.jsx(i.u,{asChild:!0,size:"sm",variant:"secondary",className:"ml-auto px-3",...N,children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[q?e.jsxRuntimeExports.jsx(T,{className:"size-5"}):e.jsxRuntimeExports.jsx(Z,{className:"size-5"})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:a||"Filter"}),e.jsxRuntimeExports.jsx(W,{})]})})}),e.jsxRuntimeExports.jsx(j.ue,{side:"bottom",align:"end",...p,children:e.jsxRuntimeExports.jsx(b.Gx,{...E,children:e.jsxRuntimeExports.jsxs("form",{onSubmit:g(_),className:"space-y-2",children:[e.jsxRuntimeExports.jsx("div",{className:"h-full shrink p-1",children:n.map(s=>s.options?e.jsxRuntimeExports.jsx(C.MySelect,{control:R,name:s.name,placeholder:s.placeholder,isMulti:s.isMulti,options:s.options,label:s.label},s.name):e.jsxRuntimeExports.jsx(B.MyInput,{control:R,placeholder:s.placeholder,name:s.name,label:s.label},s.name))}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 justify-end gap-2",children:[e.jsxRuntimeExports.jsx(i.u,{variant:"destructive",type:"reset",size:"sm",onClick:D,children:d||"Reset"}),e.jsxRuntimeExports.jsx(i.u,{type:"submit",size:"sm",children:v||"Apply"})]})]})})})]})});exports.FilterWrapper=J;exports.Search=K;
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-DS1N_tNq.js";
2
2
  import { y as A, b as I } from "./input-mask-DBLFIvhN-BBxoZxnd.js";
3
+ import { useTranslation as L } from "react-i18next";
3
4
  import { u as c } from "./button-CdZDBhmr-BT_j3ig5.js";
4
- import { m as L } from "./utils-B6fNqzRf-B1_jG1K7.js";
5
- import { u as O } from "./useTranslation-dH-uwymc.js";
5
+ import { m as O } from "./utils-B6fNqzRf-B1_jG1K7.js";
6
6
  import { c as l } from "./createLucideIcon-B950nf2d.js";
7
7
  import { memo as R, useState as b, useEffect as k, useCallback as v } from "react";
8
8
  import { l as C } from "./lodash-CYNxjS-I.js";
@@ -58,14 +58,14 @@ const Y = [
58
58
  className: r,
59
59
  ...x
60
60
  }) => {
61
- const { t: m } = O(), d = (n) => {
61
+ const { t: m } = L(), d = (n) => {
62
62
  const p = new FormData(n.currentTarget);
63
63
  o(p.get(i) || void 0), n.preventDefault(), n.stopPropagation();
64
64
  };
65
65
  return /* @__PURE__ */ e.jsxs(
66
66
  "form",
67
67
  {
68
- className: L("relative w-full max-w-64 min-w-40", r),
68
+ className: O("relative w-full max-w-64 min-w-40", r),
69
69
  onSubmit: d,
70
70
  children: [
71
71
  /* @__PURE__ */ e.jsx(
@@ -1,6 +1,6 @@
1
- "use strict";const i=require("./jsx-runtime-h4oGeKUK.cjs"),x=require("./index-BL59b1Bz-COeLljOH.cjs"),p=require("react"),I=require("./button-CdZDBhmr-3yMPCRDo.cjs"),L=require("./chevron-right-HWBijj-I-CZBu0GKg.cjs"),M=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),n=require("./utils-B6fNqzRf-BNysSCt9.cjs"),l=require("./input-mask-DBLFIvhN-C_0RAR2l.cjs"),d=require("./useTranslation-CZf20ucv.cjs");function q(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const f=q(p);/**
1
+ "use strict";const i=require("./jsx-runtime-h4oGeKUK.cjs"),x=require("./index-BL59b1Bz-COeLljOH.cjs"),p=require("react"),I=require("./button-CdZDBhmr-3yMPCRDo.cjs"),L=require("./chevron-right-HWBijj-I-CZBu0GKg.cjs"),M=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),n=require("./utils-B6fNqzRf-BNysSCt9.cjs"),l=require("./input-mask-DBLFIvhN-C_0RAR2l.cjs"),d=require("react-i18next");function q(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const f=q(p);/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const z=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],T=M.k("chevron-left",z),h=({className:s,...e})=>x.ae.jsx("nav",{role:"navigation","aria-label":"pagination",className:n.mo("flex w-full justify-center",s),...e});h.displayName="Pagination";const N=f.forwardRef(({className:s,...e},t)=>x.ae.jsx("ul",{ref:t,className:n.mo("flex flex-row items-center gap-1",s),...e}));N.displayName="PaginationContent";const r=f.forwardRef(({className:s,...e},t)=>x.ae.jsx("li",{ref:t,className:n.mo("",s),...e}));r.displayName="PaginationItem";const u=({className:s,isActive:e,size:t="icon",...o})=>x.ae.jsx("a",{"aria-current":e?"page":void 0,className:n.mo(I.g({variant:e?"tertiary":"ghost",size:t}),"cursor-pointer",s),...o});u.displayName="PaginationLink";const v=({className:s,...e})=>x.ae.jsx(u,{"aria-label":"Go to previous page",size:"default",className:n.mo("gap-1 px-2.5",s),...e,children:x.ae.jsx(T,{className:"h-4 w-4"})});v.displayName="PaginationPrevious";const R=({className:s,...e})=>x.ae.jsx(u,{"aria-label":"Go to next page",size:"default",className:n.mo("gap-1 px-2.5",s),...e,children:x.ae.jsx(L.e,{className:"h-4 w-4"})});R.displayName="PaginationNext";const g=({currentPage:s=1,totalPages:e=0,onPageChange:t,className:o,...m})=>{const{t:E}=d.useTranslation(),y=p.useCallback(()=>{const a=[];a.push(1),s-1>2&&a.push("...");for(let j=Math.max(2,s-1);j<=Math.min(e-1,s+1);j++)a.push(j);return s+1<e-1&&a.push("..."),e>1&&a.push(e),a},[s,e]),w=p.useMemo(()=>{const a=[];for(let c=0;c<e;c++)a.push({value:`${c+1}`,label:`${c+1}`});return a},[e]);return i.jsxRuntimeExports.jsxs("div",{...m,className:n.mo("flex flex-col items-center justify-end gap-3 lg:flex-row",o),children:[i.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[i.jsxRuntimeExports.jsxs("div",{className:"min-w-20 font-semibold",children:[E("Go to page"),":"]}),i.jsxRuntimeExports.jsxs(l.Zx,{onValueChange:a=>t(parseInt(a)),value:`${s}`,children:[i.jsxRuntimeExports.jsx(l.jm,{className:"h-8.5 w-16",children:i.jsxRuntimeExports.jsx(l.Qx,{})}),i.jsxRuntimeExports.jsx(l.Um,{options:w})]})]}),i.jsxRuntimeExports.jsx(h,{className:"justify-end",children:i.jsxRuntimeExports.jsxs(N,{children:[i.jsxRuntimeExports.jsx(r,{children:i.jsxRuntimeExports.jsx(v,{isActive:s>1,size:"sm",className:n.mo(s>1?"disabled":"shadow"),onClick:()=>{s>1&&t(s-1)}})}),y().map((a,c)=>i.jsxRuntimeExports.jsx(r,{onClick:()=>{typeof a=="number"&&t(a)},children:i.jsxRuntimeExports.jsx(u,{size:"sm",className:n.mo("w-9 px-0 text-center",a===s&&"shadow"),isActive:a===s,children:a})},c)),i.jsxRuntimeExports.jsx(r,{children:i.jsxRuntimeExports.jsx(R,{size:"sm",onClick:()=>{s<e&&t(s+1)},className:n.mo(s<e?"disabled":"shadow"),isActive:s<e})})]})})]})},b=50,k=[{value:10,label:"10"},{value:20,label:"20"},{value:50,label:"50"},{value:100,label:"100"}],O=({defaultValue:s=b,options:e=k,onLimitChange:t})=>{const{t:o}=d.useTranslation();return i.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxRuntimeExports.jsxs("span",{className:"font-semibold",children:[o("Rows per page"),":"]}),i.jsxRuntimeExports.jsxs(l.Zx,{onValueChange:t,value:`${s}`,children:[i.jsxRuntimeExports.jsx(l.jm,{className:"h-8.5 w-17",children:i.jsxRuntimeExports.jsx(l.Qx,{})}),i.jsxRuntimeExports.jsx(l.Jh,{children:e==null?void 0:e.map(m=>i.jsxRuntimeExports.jsx(l.ed,{value:`${m.value}`,children:m.label},m.value))})]})]})};exports.DEFAULT_LIMIT=b;exports.MyLimitSelect=O;exports.MyPagination=g;
6
+ */const z=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],g=M.k("chevron-left",z),h=({className:s,...e})=>x.ae.jsx("nav",{role:"navigation","aria-label":"pagination",className:n.mo("flex w-full justify-center",s),...e});h.displayName="Pagination";const N=f.forwardRef(({className:s,...e},t)=>x.ae.jsx("ul",{ref:t,className:n.mo("flex flex-row items-center gap-1",s),...e}));N.displayName="PaginationContent";const r=f.forwardRef(({className:s,...e},t)=>x.ae.jsx("li",{ref:t,className:n.mo("",s),...e}));r.displayName="PaginationItem";const u=({className:s,isActive:e,size:t="icon",...o})=>x.ae.jsx("a",{"aria-current":e?"page":void 0,className:n.mo(I.g({variant:e?"tertiary":"ghost",size:t}),"cursor-pointer",s),...o});u.displayName="PaginationLink";const v=({className:s,...e})=>x.ae.jsx(u,{"aria-label":"Go to previous page",size:"default",className:n.mo("gap-1 px-2.5",s),...e,children:x.ae.jsx(g,{className:"h-4 w-4"})});v.displayName="PaginationPrevious";const R=({className:s,...e})=>x.ae.jsx(u,{"aria-label":"Go to next page",size:"default",className:n.mo("gap-1 px-2.5",s),...e,children:x.ae.jsx(L.e,{className:"h-4 w-4"})});R.displayName="PaginationNext";const k=({currentPage:s=1,totalPages:e=0,onPageChange:t,className:o,...m})=>{const{t:E}=d.useTranslation(),y=p.useCallback(()=>{const a=[];a.push(1),s-1>2&&a.push("...");for(let j=Math.max(2,s-1);j<=Math.min(e-1,s+1);j++)a.push(j);return s+1<e-1&&a.push("..."),e>1&&a.push(e),a},[s,e]),w=p.useMemo(()=>{const a=[];for(let c=0;c<e;c++)a.push({value:`${c+1}`,label:`${c+1}`});return a},[e]);return i.jsxRuntimeExports.jsxs("div",{...m,className:n.mo("flex flex-col items-center justify-end gap-3 lg:flex-row",o),children:[i.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[i.jsxRuntimeExports.jsxs("div",{className:"min-w-20 font-semibold",children:[E("Go to page"),":"]}),i.jsxRuntimeExports.jsxs(l.Zx,{onValueChange:a=>t(parseInt(a)),value:`${s}`,children:[i.jsxRuntimeExports.jsx(l.jm,{className:"h-8.5 w-16",children:i.jsxRuntimeExports.jsx(l.Qx,{})}),i.jsxRuntimeExports.jsx(l.Um,{options:w})]})]}),i.jsxRuntimeExports.jsx(h,{className:"justify-end",children:i.jsxRuntimeExports.jsxs(N,{children:[i.jsxRuntimeExports.jsx(r,{children:i.jsxRuntimeExports.jsx(v,{isActive:s>1,size:"sm",className:n.mo(s>1?"disabled":"shadow"),onClick:()=>{s>1&&t(s-1)}})}),y().map((a,c)=>i.jsxRuntimeExports.jsx(r,{onClick:()=>{typeof a=="number"&&t(a)},children:i.jsxRuntimeExports.jsx(u,{size:"sm",className:n.mo("w-9 px-0 text-center",a===s&&"shadow"),isActive:a===s,children:a})},c)),i.jsxRuntimeExports.jsx(r,{children:i.jsxRuntimeExports.jsx(R,{size:"sm",onClick:()=>{s<e&&t(s+1)},className:n.mo(s<e?"disabled":"shadow"),isActive:s<e})})]})})]})},b=50,T=[{value:10,label:"10"},{value:20,label:"20"},{value:50,label:"50"},{value:100,label:"100"}],O=({defaultValue:s=b,options:e=T,onLimitChange:t})=>{const{t:o}=d.useTranslation();return i.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxRuntimeExports.jsxs("span",{className:"font-semibold",children:[o("Rows per page"),":"]}),i.jsxRuntimeExports.jsxs(l.Zx,{onValueChange:t,value:`${s}`,children:[i.jsxRuntimeExports.jsx(l.jm,{className:"h-8.5 w-17",children:i.jsxRuntimeExports.jsx(l.Qx,{})}),i.jsxRuntimeExports.jsx(l.Jh,{children:e==null?void 0:e.map(m=>i.jsxRuntimeExports.jsx(l.ed,{value:`${m.value}`,children:m.label},m.value))})]})]})};exports.DEFAULT_LIMIT=b;exports.MyLimitSelect=O;exports.MyPagination=k;
@@ -7,7 +7,7 @@ import { e as A } from "./chevron-right-HWBijj-I-DsFUufdU.js";
7
7
  import { k as I } from "./createLucideIcon-B950nf2d-9wLYOF5y.js";
8
8
  import { m as n } from "./utils-B6fNqzRf-B1_jG1K7.js";
9
9
  import { Z as p, j as h, Q as j, U as L, J as T, e as C } from "./input-mask-DBLFIvhN-BBxoZxnd.js";
10
- import { u as N } from "./useTranslation-dH-uwymc.js";
10
+ import { useTranslation as N } from "react-i18next";
11
11
  /**
12
12
  * @license lucide-react v0.511.0 - ISC
13
13
  *
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../unstyled-CD5LId4m.cjs");exports.Confirm=r.Confirm;exports.ConfirmContainer=r.Lt;exports.PasswordConfirm=r.PasswordConfirm;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../unstyled-D8OC13a0.cjs");exports.Confirm=r.Confirm;exports.ConfirmContainer=r.Lt;exports.PasswordConfirm=r.PasswordConfirm;
@@ -1,4 +1,4 @@
1
- import { C as a, L as n, P as s } from "../../unstyled-3gQZkMky.js";
1
+ import { C as a, L as n, P as s } from "../../unstyled-B5s-hwxJ.js";
2
2
  export {
3
3
  a as Confirm,
4
4
  n as ConfirmContainer,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-h4oGeKUK.cjs"),re=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),y=require("../../dropdown-menu-TWRSm6RK-DQ03CnVw.cjs"),A=require("../../MyLimitSelect-BNdB8P5s.cjs"),H=require("../../index-CGv7FLNy.cjs"),j=require("react"),g=require("../../lodash-C5w_OPmE.cjs"),f=require("../../index-BL59b1Bz-COeLljOH.cjs"),c=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),O=require("../../useSortable-BvLbSWXW.cjs"),I=require("../../input-mask-DBLFIvhN-C_0RAR2l.cjs"),J=require("../../SortOrder-81BrXp3i.cjs"),xe=require("../../Empty-DPsWiBRX.cjs"),D=require("../../createLucideIcon-BnAj0RnC.cjs"),Z=require("../../FilterWrapper-OjCn16Bf.cjs"),de=require("../../Loader-BsYF7B7O.cjs"),le=require("../../Actions-Dh8TPahn.cjs"),ie=require("../../ExportData-DV3HcBlK.cjs"),oe=require("../../useTranslation-CZf20ucv.cjs"),G=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("table",{ref:x,className:c.mo("w-full caption-bottom text-sm",s),...r}));G.displayName="Table";const Q=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("thead",{ref:x,className:c.mo("[&_tr]:border-b",s),...r}));Q.displayName="TableHeader";const X=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("tbody",{ref:x,className:c.mo("[&_tr:last-child]:border-0",s),...r}));X.displayName="TableBody";const ne=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("tfoot",{ref:x,className:c.mo("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",s),...r}));ne.displayName="TableFooter";const L=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("tr",{ref:x,className:c.mo("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),...r}));L.displayName="TableRow";const _=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("th",{ref:x,className:c.mo("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",s),...r}));_.displayName="TableHead";const q=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("td",{ref:x,className:c.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...r}));q.displayName="TableCell";const ce=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("caption",{ref:x,className:c.mo("text-muted-foreground mt-4 text-sm",s),...r}));ce.displayName="TableCaption";/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-h4oGeKUK.cjs"),re=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),y=require("../../dropdown-menu-TWRSm6RK-DQ03CnVw.cjs"),A=require("../../MyLimitSelect-CFjO6tYM.cjs"),xe=require("react-i18next"),O=require("../../index-CGv7FLNy.cjs"),j=require("react"),g=require("../../lodash-C5w_OPmE.cjs"),f=require("../../index-BL59b1Bz-COeLljOH.cjs"),c=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),I=require("../../useSortable-BvLbSWXW.cjs"),H=require("../../input-mask-DBLFIvhN-C_0RAR2l.cjs"),J=require("../../SortOrder-81BrXp3i.cjs"),de=require("../../Empty-RpS8tJNv.cjs"),D=require("../../createLucideIcon-BnAj0RnC.cjs"),Z=require("../../FilterWrapper-D0oACPk3.cjs"),le=require("../../Loader-BsYF7B7O.cjs"),ie=require("../../Actions-Dh8TPahn.cjs"),oe=require("../../ExportData-DV3HcBlK.cjs"),G=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("table",{ref:x,className:c.mo("w-full caption-bottom text-sm",s),...r}));G.displayName="Table";const Q=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("thead",{ref:x,className:c.mo("[&_tr]:border-b",s),...r}));Q.displayName="TableHeader";const X=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("tbody",{ref:x,className:c.mo("[&_tr:last-child]:border-0",s),...r}));X.displayName="TableBody";const ne=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("tfoot",{ref:x,className:c.mo("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",s),...r}));ne.displayName="TableFooter";const L=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("tr",{ref:x,className:c.mo("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),...r}));L.displayName="TableRow";const _=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("th",{ref:x,className:c.mo("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",s),...r}));_.displayName="TableHead";const q=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("td",{ref:x,className:c.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...r}));q.displayName="TableCell";const ce=j.forwardRef(({className:s,...r},x)=>f.ae.jsx("caption",{ref:x,className:c.mo("text-muted-foreground mt-4 text-sm",s),...r}));ce.displayName="TableCaption";/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const Ee=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Re=D.createLucideIcon("refresh-cw",Ee),Y=({rows:s=[],columns:r,onRowClick:x,rowKey:m,params:a={page:1,limit:A.DEFAULT_LIMIT},hasNumbers:u=!1,hasCheckbox:h=!1,selectedItems:v,onSelectedItemsChange:N,onSortOrderChange:z,isStickyHeader:d,className:F,...$})=>{const{sortObject:o,handleSort:M}=O.useSortable({sortField:a==null?void 0:a.sortField,sortOrder:a==null?void 0:a.sortOrder,onSortOrderChange:z}),{selectedRows:E,isRowSelected:w,isAllRowsSelected:p,handleSelectAllRows:B,handleSelectRow:k}=O.useDataTable({rows:s,defaultSelectedRows:v});return j.useEffect(()=>{JSON.stringify(v)!==JSON.stringify(E)&&E&&(N==null||N(E))},[E,v,N]),e.jsxRuntimeExports.jsxs(G,{...$,className:c.mo("relative",F),children:[e.jsxRuntimeExports.jsx(Q,{className:c.mo("bg-bg",d&&"sticky top-0 z-10"),children:e.jsxRuntimeExports.jsxs(L,{children:[h&&e.jsxRuntimeExports.jsx(_,{className:"w-12 p-3",children:e.jsxRuntimeExports.jsx(I.vp,{className:"mt-1",checked:p(m),onCheckedChange:t=>B(m,!!t),"aria-label":"Select all"})}),u&&e.jsxRuntimeExports.jsx(_,{className:"w-12 p-2",children:"#"}),r.filter(t=>!t.hidden).map(t=>e.jsxRuntimeExports.jsx(_,{style:t.styles,className:c.mo("p-2",t.sortable&&"cursor-pointer"),onClick:()=>t.sortable&&M(t.dataIndex),children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[t.name," ",t.sortable&&((o==null?void 0:o.sortField)===t.key?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(o==null?void 0:o.sortOrder)===J.SortOrder.DESC&&e.jsxRuntimeExports.jsx(ae,{size:15}),(o==null?void 0:o.sortOrder)===J.SortOrder.ASC&&e.jsxRuntimeExports.jsx(he,{size:15})]}):e.jsxRuntimeExports.jsx(me,{size:15}))]})},t.key))]})}),e.jsxRuntimeExports.jsx(X,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:s.length?s.map((t,R)=>e.jsxRuntimeExports.jsxs(L,{onClick:()=>x==null?void 0:x(t),className:c.mo(x&&"cursor-pointer"),"data-state":w(t[m])&&"selected",children:[h&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-3",onClick:i=>i.stopPropagation(),children:e.jsxRuntimeExports.jsx(I.vp,{className:"mt-1",checked:w(t[m]),onCheckedChange:i=>k(t[m],!!i),"aria-label":"Select row"})}),u&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-2",children:(a.page-1)*(a.limit||A.DEFAULT_LIMIT)+R+1}),r.filter(i=>!i.hidden).map(i=>e.jsxRuntimeExports.jsx(q,{className:"text-body-xs-medium max-w-xs p-2",style:i.styles,children:i.render?i.render(g.lodashExports.get(t,i.dataIndex),t):g.lodashExports.get(t,i.dataIndex,"")},`${R}-${i.key}`))]},`${t[m]}`)):e.jsxRuntimeExports.jsx(L,{children:e.jsxRuntimeExports.jsx(q,{colSpan:u?h?r.length+2:r.length+1:r.length,children:e.jsxRuntimeExports.jsx(xe.Empty,{})})})})]})},ue=({dataSource:s,columns:r,onRowClick:x,rowKey:m,hasNumbers:a,hasSearch:u,exportOptions:h,hasCheckbox:v,hasPagination:N,isStickyHeader:z,onParamChange:d,dataKey:F="docs",loading:$,tableKey:o,filters:M,actions:E,handleFilterChange:w,params:p,exportLoading:B=!1,onColumnsUpdate:k,hasColumnsVisibilityDropdown:t,onSelectedItemsChange:R,actionProps:i,filterWrapperProps:U,exportOptionsProps:K,columnsVisibilityProps:n,paginationProps:S,searchProps:V,...C})=>{const{t:P}=oe.useTranslation(),[T,ee]=j.useState([]),{formattedColumns:b,handleColumnsChange:se,resetColumns:te}=O.useColumns({key:o,columns:r});return j.useEffect(()=>{k==null||k(b)},[b,k]),j.useEffect(()=>{R==null||R(T)},[T,R]),e.jsxRuntimeExports.jsxs("div",{className:"border-border-alpha-light flex grow flex-col overflow-auto rounded-xl border shadow-xs",children:[(u||t&&o||!g.lodashExports.isEmpty(h)||!g.lodashExports.isEmpty(M))&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"w-full shrink",children:u&&e.jsxRuntimeExports.jsx(Z.Search,{...V,defaultValue:g.lodashExports.get(p,"search",""),onSearchChange:l=>d==null?void 0:d({...p,search:l,page:1})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[h&&e.jsxRuntimeExports.jsx(ie.ExportData,{...K,options:h,loading:B}),t&&o&&e.jsxRuntimeExports.jsxs(y.Tt,{children:[e.jsxRuntimeExports.jsx(y.At,{asChild:!0,...n==null?void 0:n.triggerProps,children:e.jsxRuntimeExports.jsx(re.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:(n==null?void 0:n.title)||e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(H.yn,{})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:P("Customize columns")}),e.jsxRuntimeExports.jsx(H.f1,{})]})})}),e.jsxRuntimeExports.jsxs(y.it,{align:"end",...n==null?void 0:n.contentProps,children:[e.jsxRuntimeExports.jsxs(y.ut,{className:"capitalize",onClick:te,children:[e.jsxRuntimeExports.jsx(Re,{})," ",(n==null?void 0:n.resetText)||"Reset columns"]}),e.jsxRuntimeExports.jsx(y.ft,{}),b.map(l=>e.jsxRuntimeExports.jsx(y.dt,{className:"capitalize",checked:!l.hidden,onCheckedChange:W=>se(l,!W),children:l.name},l.key))]})]}),E&&e.jsxRuntimeExports.jsx(le.Actions,{...i,actions:E}),M&&e.jsxRuntimeExports.jsx(Z.FilterWrapper,{...U,filters:M,params:p,onFilter:l=>{d==null||d({...p,...l,page:1}),w==null||w(l)}})]})]}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-auto border-y",children:$?e.jsxRuntimeExports.jsx(de.Loader,{}):e.jsxRuntimeExports.jsx(Y,{...C,params:{page:(s==null?void 0:s.page)||1,limit:s==null?void 0:s.limit,...p},rows:g.lodashExports.get(s,F,[]),rowKey:m,selectedItems:T,isStickyHeader:z,columns:b,hasCheckbox:v,hasNumbers:a,onRowClick:x,onSelectedItemsChange:ee,onSortOrderChange:({sortField:l,sortOrder:W})=>{d==null||d({...p,sortField:l,sortOrder:W})}})}),N&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"text-sm",children:e.jsxRuntimeExports.jsx(A.MyLimitSelect,{onLimitChange:l=>d==null?void 0:d({...p,limit:l,page:1}),defaultValue:s==null?void 0:s.limit})}),e.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground text-sm",children:[T.length," of ",(s==null?void 0:s.total)||0," row(s) selected."]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(A.MyPagination,{...S,onPageChange:l=>d==null?void 0:d({...p,page:l}),currentPage:s==null?void 0:s.page,totalPages:s==null?void 0:s.totalPages})})]})]})};exports.DataTable=ue;exports.MyTable=Y;
21
+ */const Ee=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Re=D.createLucideIcon("refresh-cw",Ee),Y=({rows:s=[],columns:r,onRowClick:x,rowKey:m,params:a={page:1,limit:A.DEFAULT_LIMIT},hasNumbers:u=!1,hasCheckbox:h=!1,selectedItems:v,onSelectedItemsChange:N,onSortOrderChange:z,isStickyHeader:d,className:F,...$})=>{const{sortObject:o,handleSort:M}=I.useSortable({sortField:a==null?void 0:a.sortField,sortOrder:a==null?void 0:a.sortOrder,onSortOrderChange:z}),{selectedRows:E,isRowSelected:w,isAllRowsSelected:p,handleSelectAllRows:B,handleSelectRow:k}=I.useDataTable({rows:s,defaultSelectedRows:v});return j.useEffect(()=>{JSON.stringify(v)!==JSON.stringify(E)&&E&&(N==null||N(E))},[E,v,N]),e.jsxRuntimeExports.jsxs(G,{...$,className:c.mo("relative",F),children:[e.jsxRuntimeExports.jsx(Q,{className:c.mo("bg-bg",d&&"sticky top-0 z-10"),children:e.jsxRuntimeExports.jsxs(L,{children:[h&&e.jsxRuntimeExports.jsx(_,{className:"w-12 p-3",children:e.jsxRuntimeExports.jsx(H.vp,{className:"mt-1",checked:p(m),onCheckedChange:t=>B(m,!!t),"aria-label":"Select all"})}),u&&e.jsxRuntimeExports.jsx(_,{className:"w-12 p-2",children:"#"}),r.filter(t=>!t.hidden).map(t=>e.jsxRuntimeExports.jsx(_,{style:t.styles,className:c.mo("p-2",t.sortable&&"cursor-pointer"),onClick:()=>t.sortable&&M(t.dataIndex),children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[t.name," ",t.sortable&&((o==null?void 0:o.sortField)===t.key?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(o==null?void 0:o.sortOrder)===J.SortOrder.DESC&&e.jsxRuntimeExports.jsx(ae,{size:15}),(o==null?void 0:o.sortOrder)===J.SortOrder.ASC&&e.jsxRuntimeExports.jsx(he,{size:15})]}):e.jsxRuntimeExports.jsx(me,{size:15}))]})},t.key))]})}),e.jsxRuntimeExports.jsx(X,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:s.length?s.map((t,R)=>e.jsxRuntimeExports.jsxs(L,{onClick:()=>x==null?void 0:x(t),className:c.mo(x&&"cursor-pointer"),"data-state":w(t[m])&&"selected",children:[h&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-3",onClick:i=>i.stopPropagation(),children:e.jsxRuntimeExports.jsx(H.vp,{className:"mt-1",checked:w(t[m]),onCheckedChange:i=>k(t[m],!!i),"aria-label":"Select row"})}),u&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-2",children:(a.page-1)*(a.limit||A.DEFAULT_LIMIT)+R+1}),r.filter(i=>!i.hidden).map(i=>e.jsxRuntimeExports.jsx(q,{className:"text-body-xs-medium max-w-xs p-2",style:i.styles,children:i.render?i.render(g.lodashExports.get(t,i.dataIndex),t):g.lodashExports.get(t,i.dataIndex,"")},`${R}-${i.key}`))]},`${t[m]}`)):e.jsxRuntimeExports.jsx(L,{children:e.jsxRuntimeExports.jsx(q,{colSpan:u?h?r.length+2:r.length+1:r.length,children:e.jsxRuntimeExports.jsx(de.Empty,{})})})})]})},ue=({dataSource:s,columns:r,onRowClick:x,rowKey:m,hasNumbers:a,hasSearch:u,exportOptions:h,hasCheckbox:v,hasPagination:N,isStickyHeader:z,onParamChange:d,dataKey:F="docs",loading:$,tableKey:o,filters:M,actions:E,handleFilterChange:w,params:p,exportLoading:B=!1,onColumnsUpdate:k,hasColumnsVisibilityDropdown:t,onSelectedItemsChange:R,actionProps:i,filterWrapperProps:U,exportOptionsProps:K,columnsVisibilityProps:n,paginationProps:S,searchProps:V,...C})=>{const{t:P}=xe.useTranslation(),[T,ee]=j.useState([]),{formattedColumns:b,handleColumnsChange:se,resetColumns:te}=I.useColumns({key:o,columns:r});return j.useEffect(()=>{k==null||k(b)},[b,k]),j.useEffect(()=>{R==null||R(T)},[T,R]),e.jsxRuntimeExports.jsxs("div",{className:"border-border-alpha-light flex grow flex-col overflow-auto rounded-xl border shadow-xs",children:[(u||t&&o||!g.lodashExports.isEmpty(h)||!g.lodashExports.isEmpty(M))&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"w-full shrink",children:u&&e.jsxRuntimeExports.jsx(Z.Search,{...V,defaultValue:g.lodashExports.get(p,"search",""),onSearchChange:l=>d==null?void 0:d({...p,search:l,page:1})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[h&&e.jsxRuntimeExports.jsx(oe.ExportData,{...K,options:h,loading:B}),t&&o&&e.jsxRuntimeExports.jsxs(y.Tt,{children:[e.jsxRuntimeExports.jsx(y.At,{asChild:!0,...n==null?void 0:n.triggerProps,children:e.jsxRuntimeExports.jsx(re.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:(n==null?void 0:n.title)||e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(O.yn,{})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:P("Customize columns")}),e.jsxRuntimeExports.jsx(O.f1,{})]})})}),e.jsxRuntimeExports.jsxs(y.it,{align:"end",...n==null?void 0:n.contentProps,children:[e.jsxRuntimeExports.jsxs(y.ut,{className:"capitalize",onClick:te,children:[e.jsxRuntimeExports.jsx(Re,{})," ",(n==null?void 0:n.resetText)||"Reset columns"]}),e.jsxRuntimeExports.jsx(y.ft,{}),b.map(l=>e.jsxRuntimeExports.jsx(y.dt,{className:"capitalize",checked:!l.hidden,onCheckedChange:W=>se(l,!W),children:l.name},l.key))]})]}),E&&e.jsxRuntimeExports.jsx(ie.Actions,{...i,actions:E}),M&&e.jsxRuntimeExports.jsx(Z.FilterWrapper,{...U,filters:M,params:p,onFilter:l=>{d==null||d({...p,...l,page:1}),w==null||w(l)}})]})]}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-auto border-y",children:$?e.jsxRuntimeExports.jsx(le.Loader,{}):e.jsxRuntimeExports.jsx(Y,{...C,params:{page:(s==null?void 0:s.page)||1,limit:s==null?void 0:s.limit,...p},rows:g.lodashExports.get(s,F,[]),rowKey:m,selectedItems:T,isStickyHeader:z,columns:b,hasCheckbox:v,hasNumbers:a,onRowClick:x,onSelectedItemsChange:ee,onSortOrderChange:({sortField:l,sortOrder:W})=>{d==null||d({...p,sortField:l,sortOrder:W})}})}),N&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"text-sm",children:e.jsxRuntimeExports.jsx(A.MyLimitSelect,{onLimitChange:l=>d==null?void 0:d({...p,limit:l,page:1}),defaultValue:s==null?void 0:s.limit})}),e.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground text-sm",children:[T.length," of ",(s==null?void 0:s.total)||0," row(s) selected."]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(A.MyPagination,{...S,onPageChange:l=>d==null?void 0:d({...p,page:l}),currentPage:s==null?void 0:s.page,totalPages:s==null?void 0:s.totalPages})})]})]})};exports.DataTable=ue;exports.MyTable=Y;
@@ -1,22 +1,22 @@
1
1
  import { j as e } from "../../jsx-runtime-DS1N_tNq.js";
2
2
  import { u as P } from "../../button-CdZDBhmr-BT_j3ig5.js";
3
3
  import { T as ee, A as se, i as te, u as le, f as de, d as re } from "../../dropdown-menu-TWRSm6RK-D_FJpI4C.js";
4
- import { D as J, a as ae, M as xe } from "../../MyLimitSelect-CNRAneFY.js";
5
- import { y as ce, f as ie } from "../../index-BrQ82Wyu.js";
6
- import { forwardRef as N, useEffect as W, useState as fe } from "react";
4
+ import { D as J, a as ae, M as xe } from "../../MyLimitSelect-JkR-SZXb.js";
5
+ import { useTranslation as ce } from "react-i18next";
6
+ import { y as ie, f as fe } from "../../index-BrQ82Wyu.js";
7
+ import { forwardRef as N, useEffect as W, useState as he } from "react";
7
8
  import { l as M } from "../../lodash-CYNxjS-I.js";
8
9
  import { a as m } from "../../index-BL59b1Bz-C9bJE_xn.js";
9
10
  import { m as f } from "../../utils-B6fNqzRf-B1_jG1K7.js";
10
- import { u as he, a as je, b as pe } from "../../useSortable-DwSvT1qU.js";
11
+ import { u as je, a as pe, b as Ne } from "../../useSortable-DwSvT1qU.js";
11
12
  import { v as B } from "../../input-mask-DBLFIvhN-BBxoZxnd.js";
12
13
  import { S as O } from "../../SortOrder-CwuehjY1.js";
13
- import { E as Ne } from "../../Empty-DspeyPQa.js";
14
+ import { E as me } from "../../Empty-R6tJosqw.js";
14
15
  import { c as R } from "../../createLucideIcon-B950nf2d.js";
15
- import { S as me, F as oe } from "../../FilterWrapper-BU6BOSt1.js";
16
- import { L as ne } from "../../Loader-gLl5AAz4.js";
17
- import { A as ke } from "../../Actions-DYmkv_J9.js";
18
- import { E as we } from "../../ExportData-DvwQ6UCI.js";
19
- import { u as ye } from "../../useTranslation-dH-uwymc.js";
16
+ import { S as oe, F as ne } from "../../FilterWrapper-vMOeud_S.js";
17
+ import { L as ke } from "../../Loader-gLl5AAz4.js";
18
+ import { A as we } from "../../Actions-DYmkv_J9.js";
19
+ import { E as ye } from "../../ExportData-DvwQ6UCI.js";
20
20
  const G = N(
21
21
  ({ className: s, ...l }, d) => /* @__PURE__ */ m.jsx(
22
22
  "table",
@@ -160,7 +160,7 @@ const Le = [
160
160
  className: F,
161
161
  ...$
162
162
  }) => {
163
- const { sortObject: c, handleSort: b } = he({
163
+ const { sortObject: c, handleSort: b } = je({
164
164
  sortField: h == null ? void 0 : h.sortField,
165
165
  sortOrder: h == null ? void 0 : h.sortOrder,
166
166
  onSortOrderChange: D
@@ -170,7 +170,7 @@ const Le = [
170
170
  isAllRowsSelected: j,
171
171
  handleSelectAllRows: q,
172
172
  handleSelectRow: v
173
- } = je({ rows: s, defaultSelectedRows: T });
173
+ } = pe({ rows: s, defaultSelectedRows: T });
174
174
  return W(() => {
175
175
  JSON.stringify(T) !== JSON.stringify(n) && n && (y == null || y(n));
176
176
  }, [n, T, y]), /* @__PURE__ */ e.jsxs(G, { ...$, className: f("relative", F), children: [
@@ -249,7 +249,7 @@ const Le = [
249
249
  A,
250
250
  {
251
251
  colSpan: w ? o ? l.length + 2 : l.length + 1 : l.length,
252
- children: /* @__PURE__ */ e.jsx(Ne, {})
252
+ children: /* @__PURE__ */ e.jsx(me, {})
253
253
  }
254
254
  ) }) })
255
255
  ] });
@@ -284,7 +284,7 @@ const Le = [
284
284
  searchProps: I,
285
285
  ...K
286
286
  }) => {
287
- const { t: u } = ye(), [E, V] = fe([]), { formattedColumns: _, handleColumnsChange: S, resetColumns: C } = pe({ key: c, columns: l });
287
+ const { t: u } = ce(), [E, V] = he([]), { formattedColumns: _, handleColumnsChange: S, resetColumns: C } = Ne({ key: c, columns: l });
288
288
  return W(() => {
289
289
  v == null || v(_);
290
290
  }, [_, v]), W(() => {
@@ -296,7 +296,7 @@ const Le = [
296
296
  children: [
297
297
  (w || t && c || !M.isEmpty(o) || !M.isEmpty(b)) && /* @__PURE__ */ e.jsxs("div", { className: "flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row", children: [
298
298
  /* @__PURE__ */ e.jsx("div", { className: "w-full shrink", children: w && /* @__PURE__ */ e.jsx(
299
- me,
299
+ oe,
300
300
  {
301
301
  ...I,
302
302
  defaultValue: M.get(j, "search", ""),
@@ -305,7 +305,7 @@ const Le = [
305
305
  ) }),
306
306
  /* @__PURE__ */ e.jsxs("div", { className: "flex shrink-0 items-center justify-end gap-3", children: [
307
307
  o && /* @__PURE__ */ e.jsx(
308
- we,
308
+ ye,
309
309
  {
310
310
  ...Z,
311
311
  options: o,
@@ -325,10 +325,10 @@ const Le = [
325
325
  size: "sm",
326
326
  className: "ml-auto rounded-lg px-3",
327
327
  children: (i == null ? void 0 : i.title) || /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
328
- /* @__PURE__ */ e.jsx(ce, {}),
328
+ /* @__PURE__ */ e.jsx(ie, {}),
329
329
  " ",
330
330
  /* @__PURE__ */ e.jsx("span", { className: "hidden lg:!inline", children: u("Customize columns") }),
331
- /* @__PURE__ */ e.jsx(ie, {})
331
+ /* @__PURE__ */ e.jsx(fe, {})
332
332
  ] })
333
333
  }
334
334
  )
@@ -367,9 +367,9 @@ const Le = [
367
367
  }
368
368
  )
369
369
  ] }),
370
- n && /* @__PURE__ */ e.jsx(ke, { ...x, actions: n }),
370
+ n && /* @__PURE__ */ e.jsx(we, { ...x, actions: n }),
371
371
  b && /* @__PURE__ */ e.jsx(
372
- oe,
372
+ ne,
373
373
  {
374
374
  ...Y,
375
375
  filters: b,
@@ -381,7 +381,7 @@ const Le = [
381
381
  )
382
382
  ] })
383
383
  ] }),
384
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col overflow-auto border-y", children: $ ? /* @__PURE__ */ e.jsx(ne, {}) : /* @__PURE__ */ e.jsx(
384
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col overflow-auto border-y", children: $ ? /* @__PURE__ */ e.jsx(ke, {}) : /* @__PURE__ */ e.jsx(
385
385
  Re,
386
386
  {
387
387
  ...K,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DateRangePicker-DqzcyN7H.cjs");exports.DateRangePicker=e.DateRangePicker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DateRangePicker-DlH-0Nyv.cjs");exports.DateRangePicker=e.DateRangePicker;
@@ -1,4 +1,4 @@
1
- import { D as r } from "../../DateRangePicker-hhQndFoD.js";
1
+ import { D as r } from "../../DateRangePicker-BbvT7XEr.js";
2
2
  export {
3
3
  r as DateRangePicker
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../Empty-DPsWiBRX.cjs");exports.Empty=t.Empty;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../Empty-RpS8tJNv.cjs");exports.Empty=t.Empty;
@@ -1,4 +1,4 @@
1
- import { E as p } from "../../Empty-DspeyPQa.js";
1
+ import { E as p } from "../../Empty-R6tJosqw.js";
2
2
  export {
3
3
  p as Empty
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../FilterWrapper-OjCn16Bf.cjs"),t=require("../../jsx-runtime-h4oGeKUK.cjs"),p=require("react"),l=require("../../input-mask-DBLFIvhN-C_0RAR2l.cjs"),d=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),x=require("../../index-CGv7FLNy.cjs"),h=require("../../lodash-C5w_OPmE.cjs"),m=require("../../Keyboard-kyPAAQWP.cjs"),q=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),y=require("../../useTranslation-CZf20ucv.cjs"),j=({placeholder:r,onSearchChange:s,className:i,...a})=>{const{t:u}=y.useTranslation(),[o,c]=p.useState("");return t.jsxRuntimeExports.jsxs("div",{...a,className:q.mo("relative my-2 w-full",i),children:[t.jsxRuntimeExports.jsx(l.yp,{placeholder:r||u("Type text and press CTRL + Enter"),onInput:e=>c(h.lodashExports.get(e,"target.value","")),onKeyUp:e=>{e.key===m.Keyboard.ENTER&&(e.ctrlKey&&s(o||void 0),e.stopPropagation(),e.preventDefault())}}),t.jsxRuntimeExports.jsx(d.u,{type:"button",variant:"ghost",className:"text-foreground absolute top-0 right-0 cursor-pointer rounded-md !bg-transparent",onClick:()=>s(o),children:t.jsxRuntimeExports.jsx(x.pv,{})})]})};exports.FilterWrapper=n.FilterWrapper;exports.Search=n.Search;exports.SearchWithCtrl=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../FilterWrapper-D0oACPk3.cjs"),t=require("../../jsx-runtime-h4oGeKUK.cjs"),p=require("react"),l=require("../../input-mask-DBLFIvhN-C_0RAR2l.cjs"),x=require("react-i18next"),d=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),h=require("../../index-CGv7FLNy.cjs"),m=require("../../lodash-C5w_OPmE.cjs"),q=require("../../Keyboard-kyPAAQWP.cjs"),y=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),j=({placeholder:r,onSearchChange:s,className:i,...a})=>{const{t:u}=x.useTranslation(),[o,c]=p.useState("");return t.jsxRuntimeExports.jsxs("div",{...a,className:y.mo("relative my-2 w-full",i),children:[t.jsxRuntimeExports.jsx(l.yp,{placeholder:r||u("Type text and press CTRL + Enter"),onInput:e=>c(m.lodashExports.get(e,"target.value","")),onKeyUp:e=>{e.key===q.Keyboard.ENTER&&(e.ctrlKey&&s(o||void 0),e.stopPropagation(),e.preventDefault())}}),t.jsxRuntimeExports.jsx(d.u,{type:"button",variant:"ghost",className:"text-foreground absolute top-0 right-0 cursor-pointer rounded-md !bg-transparent",onClick:()=>s(o),children:t.jsxRuntimeExports.jsx(h.pv,{})})]})};exports.FilterWrapper=n.FilterWrapper;exports.Search=n.Search;exports.SearchWithCtrl=j;
@@ -1,39 +1,39 @@
1
- import { F as C, S as F } from "../../FilterWrapper-BU6BOSt1.js";
1
+ import { F as C, S as F } from "../../FilterWrapper-vMOeud_S.js";
2
2
  import { j as t } from "../../jsx-runtime-DS1N_tNq.js";
3
3
  import { useState as n } from "react";
4
4
  import { y as l } from "../../input-mask-DBLFIvhN-BBxoZxnd.js";
5
- import { u as f } from "../../button-CdZDBhmr-BT_j3ig5.js";
6
- import { p as u } from "../../index-BrQ82Wyu.js";
7
- import { l as c } from "../../lodash-CYNxjS-I.js";
8
- import { K as d } from "../../Keyboard-CJVAJWdO.js";
9
- import { m as x } from "../../utils-B6fNqzRf-B1_jG1K7.js";
10
- import { u as y } from "../../useTranslation-dH-uwymc.js";
5
+ import { useTranslation as f } from "react-i18next";
6
+ import { u } from "../../button-CdZDBhmr-BT_j3ig5.js";
7
+ import { p as c } from "../../index-BrQ82Wyu.js";
8
+ import { l as d } from "../../lodash-CYNxjS-I.js";
9
+ import { K as x } from "../../Keyboard-CJVAJWdO.js";
10
+ import { m as y } from "../../utils-B6fNqzRf-B1_jG1K7.js";
11
11
  const N = ({
12
12
  placeholder: o,
13
- onSearchChange: s,
13
+ onSearchChange: e,
14
14
  className: a,
15
15
  ...p
16
16
  }) => {
17
- const { t: m } = y(), [e, i] = n("");
18
- return /* @__PURE__ */ t.jsxs("div", { ...p, className: x("relative my-2 w-full", a), children: [
17
+ const { t: m } = f(), [s, i] = n("");
18
+ return /* @__PURE__ */ t.jsxs("div", { ...p, className: y("relative my-2 w-full", a), children: [
19
19
  /* @__PURE__ */ t.jsx(
20
20
  l,
21
21
  {
22
22
  placeholder: o || m("Type text and press CTRL + Enter"),
23
- onInput: (r) => i(c.get(r, "target.value", "")),
23
+ onInput: (r) => i(d.get(r, "target.value", "")),
24
24
  onKeyUp: (r) => {
25
- r.key === d.ENTER && (r.ctrlKey && s(e || void 0), r.stopPropagation(), r.preventDefault());
25
+ r.key === x.ENTER && (r.ctrlKey && e(s || void 0), r.stopPropagation(), r.preventDefault());
26
26
  }
27
27
  }
28
28
  ),
29
29
  /* @__PURE__ */ t.jsx(
30
- f,
30
+ u,
31
31
  {
32
32
  type: "button",
33
33
  variant: "ghost",
34
34
  className: "text-foreground absolute top-0 right-0 cursor-pointer rounded-md !bg-transparent",
35
- onClick: () => s(e),
36
- children: /* @__PURE__ */ t.jsx(u, {})
35
+ onClick: () => e(s),
36
+ children: /* @__PURE__ */ t.jsx(c, {})
37
37
  }
38
38
  )
39
39
  ] });
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../MyInput-OECIw9XS.cjs"),N=require("../../MySelect-ClBq6zbD.cjs"),s=require("../../jsx-runtime-h4oGeKUK.cjs"),g=require("../../lodash-C5w_OPmE.cjs"),e=require("../../input-mask-DBLFIvhN-C_0RAR2l.cjs"),R=require("../../popover-OZcfKDD9-KUWOsIOs.cjs"),v=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),l=require("../../DateRangePicker-DqzcyN7H.cjs"),d=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),k=require("../../createLucideIcon-BnAj0RnC.cjs");require("react");const S=require("../../react-select-DVPHHTAP-DKDInFsM.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../MyInput-OECIw9XS.cjs"),N=require("../../MySelect-ClBq6zbD.cjs"),s=require("../../jsx-runtime-h4oGeKUK.cjs"),g=require("../../lodash-C5w_OPmE.cjs"),e=require("../../input-mask-DBLFIvhN-C_0RAR2l.cjs"),R=require("../../popover-OZcfKDD9-KUWOsIOs.cjs"),v=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),l=require("../../DateRangePicker-DlH-0Nyv.cjs"),d=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),k=require("../../createLucideIcon-BnAj0RnC.cjs");require("react");const S=require("../../react-select-DVPHHTAP-DKDInFsM.cjs");/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -7,7 +7,7 @@ import { K as m, z as j, G as h, a as u, W as g, H as p, v as E, c as F, t as G,
7
7
  import { k as hs, b as us, y as ps, o as gs, h as ys, Z as Ns, J as vs, X as fs, e as ks, V as bs, i as Ss, l as Cs, $ as Ms, j as ws, Q as Es, U as Fs, m as Gs, n as Is } from "../../input-mask-DBLFIvhN-BBxoZxnd.js";
8
8
  import { _ as D, w as L, u as z } from "../../popover-OZcfKDD9-C2PVWPLS.js";
9
9
  import { u as P } from "../../button-CdZDBhmr-BT_j3ig5.js";
10
- import { d as _, n as S, L as H, D as V, G as b } from "../../DateRangePicker-hhQndFoD.js";
10
+ import { d as _, n as S, L as H, D as V, G as b } from "../../DateRangePicker-BbvT7XEr.js";
11
11
  import { m as y } from "../../utils-B6fNqzRf-B1_jG1K7.js";
12
12
  import { c as $ } from "../../createLucideIcon-B950nf2d.js";
13
13
  import "react";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../MyLimitSelect-BNdB8P5s.cjs");exports.MyLimitSelect=e.MyLimitSelect;exports.MyPagination=e.MyPagination;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../MyLimitSelect-CFjO6tYM.cjs");exports.MyLimitSelect=e.MyLimitSelect;exports.MyPagination=e.MyPagination;
@@ -1,4 +1,4 @@
1
- import { a as t, M as e } from "../../MyLimitSelect-CNRAneFY.js";
1
+ import { a as t, M as e } from "../../MyLimitSelect-JkR-SZXb.js";
2
2
  export {
3
3
  t as MyLimitSelect,
4
4
  e as MyPagination
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-h4oGeKUK.cjs"),t=require("../../dropdown-menu-TWRSm6RK-DQ03CnVw.cjs"),c=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),r=require("../../ThemeMode-BO6tit_Z.cjs"),a=require("../../useTheme-DSAqyhTz.cjs"),u=require("../../useTranslation-CZf20ucv.cjs"),o=require("../../createLucideIcon-BnAj0RnC.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-h4oGeKUK.cjs"),t=require("../../dropdown-menu-TWRSm6RK-DQ03CnVw.cjs"),c=require("react-i18next"),a=require("../../button-CdZDBhmr-3yMPCRDo.cjs"),r=require("../../ThemeMode-BO6tit_Z.cjs"),u=require("../../useTheme-DSAqyhTz.cjs"),o=require("../../createLucideIcon-BnAj0RnC.cjs");/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const l=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],h=o.createLucideIcon("sun",l);function x({className:i}){const{t:s}=u.useTranslation(),{setTheme:n}=a.useTheme();return e.jsxRuntimeExports.jsxs(t.Tt,{children:[e.jsxRuntimeExports.jsx(t.At,{asChild:!0,children:e.jsxRuntimeExports.jsxs(c.u,{variant:"tertiary",size:"icon",className:i,children:[e.jsxRuntimeExports.jsx(h,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),e.jsxRuntimeExports.jsx(d,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),e.jsxRuntimeExports.jsxs(t.it,{align:"end",children:[e.jsxRuntimeExports.jsx(t.ut,{onClick:()=>n(r.ThemeMode.LIGHT),children:s("Light")}),e.jsxRuntimeExports.jsx(t.ut,{onClick:()=>n(r.ThemeMode.DARK),children:s("Dark")}),e.jsxRuntimeExports.jsx(t.ut,{onClick:()=>n(r.ThemeMode.SYSTEM),children:s("System")})]})]})}exports.ThemeToggle=x;
11
+ */const h=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],l=o.createLucideIcon("sun",h);function x({className:i}){const{t:s}=c.useTranslation(),{setTheme:n}=u.useTheme();return e.jsxRuntimeExports.jsxs(t.Tt,{children:[e.jsxRuntimeExports.jsx(t.At,{asChild:!0,children:e.jsxRuntimeExports.jsxs(a.u,{variant:"tertiary",size:"icon",className:i,children:[e.jsxRuntimeExports.jsx(l,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),e.jsxRuntimeExports.jsx(d,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),e.jsxRuntimeExports.jsxs(t.it,{align:"end",children:[e.jsxRuntimeExports.jsx(t.ut,{onClick:()=>n(r.ThemeMode.LIGHT),children:s("Light")}),e.jsxRuntimeExports.jsx(t.ut,{onClick:()=>n(r.ThemeMode.DARK),children:s("Dark")}),e.jsxRuntimeExports.jsx(t.ut,{onClick:()=>n(r.ThemeMode.SYSTEM),children:s("System")})]})]})}exports.ThemeToggle=x;
@@ -1,9 +1,9 @@
1
1
  import { j as e } from "../../jsx-runtime-DS1N_tNq.js";
2
2
  import { T as i, A as c, i as m, u as a } from "../../dropdown-menu-TWRSm6RK-D_FJpI4C.js";
3
- import { u as l } from "../../button-CdZDBhmr-BT_j3ig5.js";
3
+ import { useTranslation as l } from "react-i18next";
4
+ import { u as h } from "../../button-CdZDBhmr-BT_j3ig5.js";
4
5
  import { T as r } from "../../ThemeMode-CqURAYDL.js";
5
- import { u as h } from "../../useTheme-B5ZHXyfv.js";
6
- import { u as d } from "../../useTranslation-dH-uwymc.js";
6
+ import { u as d } from "../../useTheme-B5ZHXyfv.js";
7
7
  import { c as o } from "../../createLucideIcon-B950nf2d.js";
8
8
  /**
9
9
  * @license lucide-react v0.511.0 - ISC
@@ -32,9 +32,9 @@ const u = [
32
32
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
33
33
  ], x = o("sun", u);
34
34
  function v({ className: n }) {
35
- const { t } = d(), { setTheme: s } = h();
35
+ const { t } = l(), { setTheme: s } = d();
36
36
  return /* @__PURE__ */ e.jsxs(i, { children: [
37
- /* @__PURE__ */ e.jsx(c, { asChild: !0, children: /* @__PURE__ */ e.jsxs(l, { variant: "tertiary", size: "icon", className: n, children: [
37
+ /* @__PURE__ */ e.jsx(c, { asChild: !0, children: /* @__PURE__ */ e.jsxs(h, { variant: "tertiary", size: "icon", className: n, children: [
38
38
  /* @__PURE__ */ e.jsx(x, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
39
39
  /* @__PURE__ */ e.jsx(k, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
40
40
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Toggle theme" })
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("../useSortable-BvLbSWXW.cjs"),V=require("../jsx-runtime-h4oGeKUK.cjs"),$=require("react"),U=require("../unstyled-CD5LId4m.cjs"),Ee=require("../lodash-C5w_OPmE.cjs"),Ye=require("../useFilter-Cwz8oftI.cjs"),je=require("../_commonjsHelpers-DKOUU3wS.cjs"),We=require("../useTheme-DSAqyhTz.cjs"),Fe=()=>{const e=$.useCallback(({onConfirm:a})=>{const n=Ee.lodashExports.uniqueId();U.y.warning(V.jsxRuntimeExports.jsx(V.jsxRuntimeExports.Fragment,{}),{toastId:n,autoClose:!1}),U.y.update(n,{position:"bottom-left",render:V.jsxRuntimeExports.jsx(U.Confirm,{defaultOpen:!0,onConfirm:()=>{a(),U.y.dismiss(n)}})})},[]),o=$.useCallback(({onSubmit:a})=>{const n=Ee.lodashExports.uniqueId();U.y.warning(V.jsxRuntimeExports.jsx(V.jsxRuntimeExports.Fragment,{}),{position:"bottom-left",toastId:n,autoClose:!1}),U.y.update(n,{render:V.jsxRuntimeExports.jsx(U.PasswordConfirm,{defaultOpen:!0,onSubmit:f=>{a(f),U.y.dismiss(n)}})})},[]);return{confirm:e,confirmPassword:o}},Ue=(e,o=!1)=>{const a=$.useRef(document.title);$.useEffect(()=>(o&&a.current===document.title&&(a.current=document.title),document.title=e,()=>{o&&(document.title=a.current)}),[e,o])};var G={},Te;function ze(){if(Te)return G;Te=1,G.match=c,G.parse=l;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,a=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,f=/(dpi|dpcm|dppx)?$/;function c(d,u){return l(d).some(function(v){var g=v.inverse,q=v.type==="all"||u.type===v.type;if(q&&g||!(q||g))return!1;var A=v.expressions.every(function(j){var D=j.feature,Y=j.modifier,x=j.value,R=u[D];if(!R)return!1;switch(D){case"orientation":case"scan":return R.toLowerCase()===x.toLowerCase();case"width":case"height":case"device-width":case"device-height":x=C(x),R=C(R);break;case"resolution":x=m(x),R=m(R);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":x=p(x),R=p(R);break;case"grid":case"color":case"color-index":case"monochrome":x=parseInt(x,10)||1,R=parseInt(R,10)||0;break}switch(Y){case"min":return R>=x;case"max":return R<=x;default:return R===x}});return A&&!g||!A&&g})}function l(d){return d.split(",").map(function(u){u=u.trim();var v=u.match(e),g=v[1],q=v[2],A=v[3]||"",j={};return j.inverse=!!g&&g.toLowerCase()==="not",j.type=q?q.toLowerCase():"all",A=A.match(/\([^\)]+\)/g)||[],j.expressions=A.map(function(D){var Y=D.match(o),x=Y[1].toLowerCase().match(a);return{modifier:x[1],feature:x[2],value:Y[2]}}),j})}function p(d){var u=Number(d),v;return u||(v=d.match(/^(\d+)\s*\/\s*(\d+)$/),u=v[1]/v[2]),u}function m(d){var u=parseFloat(d),v=String(d).match(f)[1];switch(v){case"dpcm":return u/2.54;case"dppx":return u*96;default:return u}}function C(d){var u=parseFloat(d),v=String(d).match(n)[1];switch(v){case"em":return u*16;case"rem":return u*16;case"cm":return u*96/2.54;case"mm":return u*96/2.54/10;case"in":return u*96;case"pt":return u*72;case"pc":return u*72/12;default:return u}}return G}var ce,ge;function Ne(){if(ge)return ce;ge=1;var e=ze().match,o=typeof window<"u"?window.matchMedia:null;function a(f,c,l){var p=this,m;o&&!l&&(m=o.call(window,f)),m?(this.matches=m.matches,this.media=m.media,m.addListener(u)):(this.matches=e(f,c),this.media=f),this.addListener=C,this.removeListener=d,this.dispose=v;function C(g){m&&m.addListener(g)}function d(g){m&&m.removeListener(g)}function u(g){p.matches=g.matches,p.media=g.media}function v(){m&&m.removeListener(u)}}function n(f,c,l){return new a(f,c,l)}return ce=n,ce}var He=Ne();const Qe=je.getDefaultExportFromCjs(He);var Ve=/[A-Z]/g,Ke=/^ms-/,ue={};function Je(e){return"-"+e.toLowerCase()}function qe(e){if(ue.hasOwnProperty(e))return ue[e];var o=e.replace(Ve,Je);return ue[e]=Ke.test(o)?"-"+o:o}function Xe(e,o){if(e===o)return!0;if(!e||!o)return!1;const a=Object.keys(e),n=Object.keys(o),f=a.length;if(n.length!==f)return!1;for(let c=0;c<f;c++){const l=a[c];if(e[l]!==o[l]||!Object.prototype.hasOwnProperty.call(o,l))return!1}return!0}var Z={exports:{}},B={exports:{}},_={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("../useSortable-BvLbSWXW.cjs"),V=require("../jsx-runtime-h4oGeKUK.cjs"),$=require("react"),U=require("../unstyled-D8OC13a0.cjs"),Ee=require("../lodash-C5w_OPmE.cjs"),Ye=require("../useFilter-Cwz8oftI.cjs"),je=require("../_commonjsHelpers-DKOUU3wS.cjs"),We=require("../useTheme-DSAqyhTz.cjs"),Fe=()=>{const e=$.useCallback(({onConfirm:a})=>{const n=Ee.lodashExports.uniqueId();U.y.warning(V.jsxRuntimeExports.jsx(V.jsxRuntimeExports.Fragment,{}),{toastId:n,autoClose:!1}),U.y.update(n,{position:"bottom-left",render:V.jsxRuntimeExports.jsx(U.Confirm,{defaultOpen:!0,onConfirm:()=>{a(),U.y.dismiss(n)}})})},[]),o=$.useCallback(({onSubmit:a})=>{const n=Ee.lodashExports.uniqueId();U.y.warning(V.jsxRuntimeExports.jsx(V.jsxRuntimeExports.Fragment,{}),{position:"bottom-left",toastId:n,autoClose:!1}),U.y.update(n,{render:V.jsxRuntimeExports.jsx(U.PasswordConfirm,{defaultOpen:!0,onSubmit:f=>{a(f),U.y.dismiss(n)}})})},[]);return{confirm:e,confirmPassword:o}},Ue=(e,o=!1)=>{const a=$.useRef(document.title);$.useEffect(()=>(o&&a.current===document.title&&(a.current=document.title),document.title=e,()=>{o&&(document.title=a.current)}),[e,o])};var G={},Te;function ze(){if(Te)return G;Te=1,G.match=c,G.parse=l;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,a=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,f=/(dpi|dpcm|dppx)?$/;function c(d,u){return l(d).some(function(v){var g=v.inverse,q=v.type==="all"||u.type===v.type;if(q&&g||!(q||g))return!1;var A=v.expressions.every(function(j){var D=j.feature,Y=j.modifier,x=j.value,R=u[D];if(!R)return!1;switch(D){case"orientation":case"scan":return R.toLowerCase()===x.toLowerCase();case"width":case"height":case"device-width":case"device-height":x=C(x),R=C(R);break;case"resolution":x=m(x),R=m(R);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":x=p(x),R=p(R);break;case"grid":case"color":case"color-index":case"monochrome":x=parseInt(x,10)||1,R=parseInt(R,10)||0;break}switch(Y){case"min":return R>=x;case"max":return R<=x;default:return R===x}});return A&&!g||!A&&g})}function l(d){return d.split(",").map(function(u){u=u.trim();var v=u.match(e),g=v[1],q=v[2],A=v[3]||"",j={};return j.inverse=!!g&&g.toLowerCase()==="not",j.type=q?q.toLowerCase():"all",A=A.match(/\([^\)]+\)/g)||[],j.expressions=A.map(function(D){var Y=D.match(o),x=Y[1].toLowerCase().match(a);return{modifier:x[1],feature:x[2],value:Y[2]}}),j})}function p(d){var u=Number(d),v;return u||(v=d.match(/^(\d+)\s*\/\s*(\d+)$/),u=v[1]/v[2]),u}function m(d){var u=parseFloat(d),v=String(d).match(f)[1];switch(v){case"dpcm":return u/2.54;case"dppx":return u*96;default:return u}}function C(d){var u=parseFloat(d),v=String(d).match(n)[1];switch(v){case"em":return u*16;case"rem":return u*16;case"cm":return u*96/2.54;case"mm":return u*96/2.54/10;case"in":return u*96;case"pt":return u*72;case"pc":return u*72/12;default:return u}}return G}var ce,ge;function Ne(){if(ge)return ce;ge=1;var e=ze().match,o=typeof window<"u"?window.matchMedia:null;function a(f,c,l){var p=this,m;o&&!l&&(m=o.call(window,f)),m?(this.matches=m.matches,this.media=m.media,m.addListener(u)):(this.matches=e(f,c),this.media=f),this.addListener=C,this.removeListener=d,this.dispose=v;function C(g){m&&m.addListener(g)}function d(g){m&&m.removeListener(g)}function u(g){p.matches=g.matches,p.media=g.media}function v(){m&&m.removeListener(u)}}function n(f,c,l){return new a(f,c,l)}return ce=n,ce}var He=Ne();const Qe=je.getDefaultExportFromCjs(He);var Ve=/[A-Z]/g,Ke=/^ms-/,ue={};function Je(e){return"-"+e.toLowerCase()}function qe(e){if(ue.hasOwnProperty(e))return ue[e];var o=e.replace(Ve,Je);return ue[e]=Ke.test(o)?"-"+o:o}function Xe(e,o){if(e===o)return!0;if(!e||!o)return!1;const a=Object.keys(e),n=Object.keys(o),f=a.length;if(n.length!==f)return!1;for(let c=0;c<f;c++){const l=a[c];if(e[l]!==o[l]||!Object.prototype.hasOwnProperty.call(o,l))return!1}return!0}var Z={exports:{}},B={exports:{}},_={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1,7 +1,7 @@
1
1
  import { b as jr, a as qr, u as $r } from "../useSortable-DwSvT1qU.js";
2
2
  import { j as Q } from "../jsx-runtime-DS1N_tNq.js";
3
3
  import { useCallback as Ee, useRef as qe, useEffect as F, useContext as Fe, createContext as Ue, useState as ee } from "react";
4
- import { y as V, C as Ne, P as ze } from "../unstyled-3gQZkMky.js";
4
+ import { y as V, C as Ne, P as ze } from "../unstyled-B5s-hwxJ.js";
5
5
  import { l as ge } from "../lodash-CYNxjS-I.js";
6
6
  import { u as Lr } from "../useFilter-DJunNBm2.js";
7
7
  import { g as $e } from "../_commonjsHelpers-DaMA6jEr.js";
@@ -1,7 +1,7 @@
1
1
  import { j as R } from "./jsx-runtime-DS1N_tNq.js";
2
2
  import * as P from "react";
3
3
  import j, { useMemo as ls, useState as Ze, useRef as he, useLayoutEffect as kt, useEffect as Ee, useSyncExternalStore as ds, isValidElement as Ae, cloneElement as qe } from "react";
4
- import { u as bt } from "./useTranslation-dH-uwymc.js";
4
+ import { useTranslation as bt } from "react-i18next";
5
5
  import { a as O, i as wt, j as cs, b as us, e as fs } from "./index-BL59b1Bz-C9bJE_xn.js";
6
6
  import { D as Tt, x as hs, C as ms, R as ps, v as gs, h as ys, E as vs, y as Ct, P as _s, _ as xs } from "./index-C4qYhCZt-BZQduTld.js";
7
7
  import { g as Nt } from "./button-CdZDBhmr-BT_j3ig5.js";
@@ -1,4 +1,4 @@
1
- "use strict";const O=require("./jsx-runtime-h4oGeKUK.cjs"),p=require("react"),gt=require("./useTranslation-CZf20ucv.cjs"),N=require("./index-BL59b1Bz-COeLljOH.cjs"),B=require("./index-C4qYhCZt-DWBiWQ93.cjs"),yt=require("./button-CdZDBhmr-3yMPCRDo.cjs"),re=require("./utils-B6fNqzRf-BNysSCt9.cjs"),Kt=require("./input-mask-DBLFIvhN-C_0RAR2l.cjs"),es=require("./MyInput-OECIw9XS.cjs"),G=require("./index.esm-TI7V1a5F.cjs");function ts(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const D=ts(p);var vt="AlertDialog",[ss,Rr]=N.j(vt,[B.De]),X=B.De(),_t=t=>{const{__scopeAlertDialog:e,...s}=t,r=X(e);return N.ae.jsx(B.xe,{...r,...s,modal:!0})};_t.displayName=vt;var rs="AlertDialogTrigger",xt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.Ce,{...a,...r,ref:e})});xt.displayName=rs;var as="AlertDialogPortal",bt=t=>{const{__scopeAlertDialog:e,...s}=t,r=X(e);return N.ae.jsx(B.Re,{...r,...s})};bt.displayName=as;var ns="AlertDialogOverlay",kt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B._e,{...a,...r,ref:e})});kt.displayName=ns;var ce="AlertDialogContent",[is,os]=ss(ce),ls=N.j$1("AlertDialogContent"),wt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,children:r,...a}=t,n=X(s),i=D.useRef(null),o=N.i(e,i),l=D.useRef(null);return N.ae.jsx(B.ve,{contentName:ce,titleName:Tt,docsSlug:"alert-dialog",children:N.ae.jsx(is,{scope:s,cancelRef:l,children:N.ae.jsxs(B.he,{role:"alertdialog",...n,...a,ref:o,onOpenAutoFocus:N.y$1(a.onOpenAutoFocus,c=>{var f;c.preventDefault(),(f=l.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[N.ae.jsx(ls,{children:r}),N.ae.jsx(ds,{contentRef:i})]})})})});wt.displayName=ce;var Tt="AlertDialogTitle",Et=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.Ee,{...a,...r,ref:e})});Et.displayName=Tt;var Ct="AlertDialogDescription",Nt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.Pe,{...a,...r,ref:e})});Nt.displayName=Ct;var cs="AlertDialogAction",jt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.ye,{...a,...r,ref:e})});jt.displayName=cs;var At="AlertDialogCancel",Rt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,{cancelRef:a}=os(At,s),n=X(s),i=N.i(e,a);return N.ae.jsx(B.ye,{...n,...r,ref:i})});Rt.displayName=At;var ds=({contentRef:t})=>{const e=`\`${ce}\` requires a description for the component to be accessible for screen reader users.
1
+ "use strict";const O=require("./jsx-runtime-h4oGeKUK.cjs"),p=require("react"),gt=require("react-i18next"),N=require("./index-BL59b1Bz-COeLljOH.cjs"),B=require("./index-C4qYhCZt-DWBiWQ93.cjs"),yt=require("./button-CdZDBhmr-3yMPCRDo.cjs"),re=require("./utils-B6fNqzRf-BNysSCt9.cjs"),Kt=require("./input-mask-DBLFIvhN-C_0RAR2l.cjs"),es=require("./MyInput-OECIw9XS.cjs"),G=require("./index.esm-TI7V1a5F.cjs");function ts(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const D=ts(p);var vt="AlertDialog",[ss,Rr]=N.j(vt,[B.De]),X=B.De(),_t=t=>{const{__scopeAlertDialog:e,...s}=t,r=X(e);return N.ae.jsx(B.xe,{...r,...s,modal:!0})};_t.displayName=vt;var rs="AlertDialogTrigger",xt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.Ce,{...a,...r,ref:e})});xt.displayName=rs;var as="AlertDialogPortal",bt=t=>{const{__scopeAlertDialog:e,...s}=t,r=X(e);return N.ae.jsx(B.Re,{...r,...s})};bt.displayName=as;var ns="AlertDialogOverlay",kt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B._e,{...a,...r,ref:e})});kt.displayName=ns;var ce="AlertDialogContent",[is,os]=ss(ce),ls=N.j$1("AlertDialogContent"),wt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,children:r,...a}=t,n=X(s),i=D.useRef(null),o=N.i(e,i),l=D.useRef(null);return N.ae.jsx(B.ve,{contentName:ce,titleName:Tt,docsSlug:"alert-dialog",children:N.ae.jsx(is,{scope:s,cancelRef:l,children:N.ae.jsxs(B.he,{role:"alertdialog",...n,...a,ref:o,onOpenAutoFocus:N.y$1(a.onOpenAutoFocus,c=>{var f;c.preventDefault(),(f=l.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[N.ae.jsx(ls,{children:r}),N.ae.jsx(ds,{contentRef:i})]})})})});wt.displayName=ce;var Tt="AlertDialogTitle",Et=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.Ee,{...a,...r,ref:e})});Et.displayName=Tt;var Ct="AlertDialogDescription",Nt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.Pe,{...a,...r,ref:e})});Nt.displayName=Ct;var cs="AlertDialogAction",jt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,a=X(s);return N.ae.jsx(B.ye,{...a,...r,ref:e})});jt.displayName=cs;var At="AlertDialogCancel",Rt=D.forwardRef((t,e)=>{const{__scopeAlertDialog:s,...r}=t,{cancelRef:a}=os(At,s),n=X(s),i=N.i(e,a);return N.ae.jsx(B.ye,{...n,...r,ref:i})});Rt.displayName=At;var ds=({contentRef:t})=>{const e=`\`${ce}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${ce}\` by passing a \`${Ct}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dgz-ui-shared",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,6 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-h4oGeKUK.cjs"),c=require("./utils-B6fNqzRf-BNysSCt9.cjs"),i=require("./useTranslation-CZf20ucv.cjs"),a=require("./createLucideIcon-BnAj0RnC.cjs");/**
2
- * @license lucide-react v0.511.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const u=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],l=a.createLucideIcon("folder-open",u),x=({children:t,icon:s,className:n,...r})=>{const{t:o}=i.useTranslation();return e.jsxRuntimeExports.jsxs("div",{...r,className:c.mo("flex h-16 flex-col items-center justify-center text-center text-base",n),children:[s||e.jsxRuntimeExports.jsx(l,{size:48,strokeWidth:1}),t||o("No results")]})};exports.Empty=x;
@@ -1 +0,0 @@
1
- "use strict";const d=require("react"),k=(e,s,n,a)=>{var t,f,h,m;const r=[n,{code:s,...a||{}}];if((f=(t=e==null?void 0:e.services)==null?void 0:t.logger)!=null&&f.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);N(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(m=(h=e==null?void 0:e.services)==null?void 0:h.logger)!=null&&m.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},F={},x=(e,s,n,a)=>{N(n)&&F[n]||(N(n)&&(F[n]=new Date),k(e,s,n,a))},A=(e,s)=>()=>{if(e.isInitialized)s();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),s()};e.on("initialized",n)}},S=(e,s,n)=>{e.loadNamespaces(s,A(e,n))},L=(e,s,n,a)=>{if(N(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(s)>-1)return S(e,n,a);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(s,A(e,a))},H=(e,s,n={})=>!s.languages||!s.languages.length?(x(s,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:s.languages}),!0):s.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,r)=>{var t;if(((t=n.bindI18n)==null?void 0:t.indexOf("languageChanging"))>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),N=e=>typeof e=="string",M=e=>typeof e=="object"&&e!==null,U=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,_={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$=e=>_[e],q=e=>e.replace(U,$);let G={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:q};const B=()=>G;let W;const J=()=>W,K=d.createContext();class X{constructor(){this.usedNamespaces={}}addUsedNamespaces(s){s.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Y=(e,s)=>{const n=d.useRef();return d.useEffect(()=>{n.current=e},[e,s]),n.current},P=(e,s,n,a)=>e.getFixedT(s,n,a),D=(e,s,n,a)=>d.useCallback(P(e,s,n,a),[e,s,n,a]),Q=(e,s={})=>{var O,R,v,z;const{i18n:n}=s,{i18n:a,defaultNS:r}=d.useContext(K)||{},t=n||a||J();if(t&&!t.reportNamespaces&&(t.reportNamespaces=new X),!t){x(t,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=(u,l)=>N(l)?l:M(l)&&N(l.defaultValue)?l.defaultValue:Array.isArray(u)?u[u.length-1]:u,c=[i,{},!1];return c.t=i,c.i18n={},c.ready=!1,c}(O=t.options.react)!=null&&O.wait&&x(t,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const f={...B(),...t.options.react,...s},{useSuspense:h,keyPrefix:m}=f;let o=r||((R=t.options)==null?void 0:R.defaultNS);o=N(o)?[o]:o||["translation"],(z=(v=t.reportNamespaces).addUsedNamespaces)==null||z.call(v,o);const g=(t.isInitialized||t.initializedStoreOnce)&&o.every(i=>H(i,t,f)),j=D(t,s.lng||null,f.nsMode==="fallback"?o:o[0],m),b=()=>j,E=()=>P(t,s.lng||null,f.nsMode==="fallback"?o:o[0],m),[C,y]=d.useState(b);let w=o.join();s.lng&&(w=`${s.lng}${w}`);const I=Y(w),p=d.useRef(!0);d.useEffect(()=>{const{bindI18n:i,bindI18nStore:c}=f;p.current=!0,!g&&!h&&(s.lng?L(t,s.lng,o,()=>{p.current&&y(E)}):S(t,o,()=>{p.current&&y(E)})),g&&I&&I!==w&&p.current&&y(E);const u=()=>{p.current&&y(E)};return i&&(t==null||t.on(i,u)),c&&(t==null||t.store.on(c,u)),()=>{p.current=!1,t&&(i==null||i.split(" ").forEach(l=>t.off(l,u))),c&&t&&c.split(" ").forEach(l=>t.store.off(l,u))}},[t,w]),d.useEffect(()=>{p.current&&g&&y(b)},[t,m,g]);const T=[C,t,g];if(T.t=C,T.i18n=t,T.ready=g,g||!g&&!h)return T;throw new Promise(i=>{s.lng?L(t,s.lng,o,()=>i()):S(t,o,()=>i())})};exports.useTranslation=Q;
@@ -1,147 +0,0 @@
1
- import { createContext as H, useContext as M, useCallback as U, useState as _, useRef as A, useEffect as x } from "react";
2
- const G = (e, s, n, a) => {
3
- var t, d, N, m;
4
- const r = [n, {
5
- code: s,
6
- ...a || {}
7
- }];
8
- if ((d = (t = e == null ? void 0 : e.services) == null ? void 0 : t.logger) != null && d.forward)
9
- return e.services.logger.forward(r, "warn", "react-i18next::", !0);
10
- p(r[0]) && (r[0] = `react-i18next:: ${r[0]}`), (m = (N = e == null ? void 0 : e.services) == null ? void 0 : N.logger) != null && m.warn ? e.services.logger.warn(...r) : console != null && console.warn && console.warn(...r);
11
- }, L = {}, S = (e, s, n, a) => {
12
- p(n) && L[n] || (p(n) && (L[n] = /* @__PURE__ */ new Date()), G(e, s, n, a));
13
- }, P = (e, s) => () => {
14
- if (e.isInitialized)
15
- s();
16
- else {
17
- const n = () => {
18
- setTimeout(() => {
19
- e.off("initialized", n);
20
- }, 0), s();
21
- };
22
- e.on("initialized", n);
23
- }
24
- }, b = (e, s, n) => {
25
- e.loadNamespaces(s, P(e, n));
26
- }, R = (e, s, n, a) => {
27
- if (p(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(s) > -1) return b(e, n, a);
28
- n.forEach((r) => {
29
- e.options.ns.indexOf(r) < 0 && e.options.ns.push(r);
30
- }), e.loadLanguages(s, P(e, a));
31
- }, $ = (e, s, n = {}) => !s.languages || !s.languages.length ? (S(s, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
32
- languages: s.languages
33
- }), !0) : s.hasLoadedNamespace(e, {
34
- lng: n.lng,
35
- precheck: (a, r) => {
36
- var t;
37
- if (((t = n.bindI18n) == null ? void 0 : t.indexOf("languageChanging")) > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !r(a.isLanguageChangingTo, e)) return !1;
38
- }
39
- }), p = (e) => typeof e == "string", q = (e) => typeof e == "object" && e !== null, B = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, W = {
40
- "&amp;": "&",
41
- "&#38;": "&",
42
- "&lt;": "<",
43
- "&#60;": "<",
44
- "&gt;": ">",
45
- "&#62;": ">",
46
- "&apos;": "'",
47
- "&#39;": "'",
48
- "&quot;": '"',
49
- "&#34;": '"',
50
- "&nbsp;": " ",
51
- "&#160;": " ",
52
- "&copy;": "©",
53
- "&#169;": "©",
54
- "&reg;": "®",
55
- "&#174;": "®",
56
- "&hellip;": "…",
57
- "&#8230;": "…",
58
- "&#x2F;": "/",
59
- "&#47;": "/"
60
- }, J = (e) => W[e], K = (e) => e.replace(B, J);
61
- let X = {
62
- bindI18n: "languageChanged",
63
- bindI18nStore: "",
64
- transEmptyNodeValue: "",
65
- transSupportBasicHtmlNodes: !0,
66
- transWrapTextNodes: "",
67
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
68
- useSuspense: !0,
69
- unescape: K
70
- };
71
- const Y = () => X;
72
- let D;
73
- const Q = () => D, Z = H();
74
- class V {
75
- constructor() {
76
- this.usedNamespaces = {};
77
- }
78
- addUsedNamespaces(s) {
79
- s.forEach((n) => {
80
- this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
81
- });
82
- }
83
- getUsedNamespaces() {
84
- return Object.keys(this.usedNamespaces);
85
- }
86
- }
87
- const ee = (e, s) => {
88
- const n = A();
89
- return x(() => {
90
- n.current = e;
91
- }, [e, s]), n.current;
92
- }, j = (e, s, n, a) => e.getFixedT(s, n, a), te = (e, s, n, a) => U(j(e, s, n, a), [e, s, n, a]), ne = (e, s = {}) => {
93
- var O, v, z, F;
94
- const {
95
- i18n: n
96
- } = s, {
97
- i18n: a,
98
- defaultNS: r
99
- } = M(Z) || {}, t = n || a || Q();
100
- if (t && !t.reportNamespaces && (t.reportNamespaces = new V()), !t) {
101
- S(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
102
- const i = (l, u) => p(u) ? u : q(u) && p(u.defaultValue) ? u.defaultValue : Array.isArray(l) ? l[l.length - 1] : l, c = [i, {}, !1];
103
- return c.t = i, c.i18n = {}, c.ready = !1, c;
104
- }
105
- (O = t.options.react) != null && O.wait && S(t, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
106
- const d = {
107
- ...Y(),
108
- ...t.options.react,
109
- ...s
110
- }, {
111
- useSuspense: N,
112
- keyPrefix: m
113
- } = d;
114
- let o = r || ((v = t.options) == null ? void 0 : v.defaultNS);
115
- o = p(o) ? [o] : o || ["translation"], (F = (z = t.reportNamespaces).addUsedNamespaces) == null || F.call(z, o);
116
- const f = (t.isInitialized || t.initializedStoreOnce) && o.every((i) => $(i, t, d)), k = te(t, s.lng || null, d.nsMode === "fallback" ? o : o[0], m), E = () => k, T = () => j(t, s.lng || null, d.nsMode === "fallback" ? o : o[0], m), [C, h] = _(E);
117
- let y = o.join();
118
- s.lng && (y = `${s.lng}${y}`);
119
- const I = ee(y), g = A(!0);
120
- x(() => {
121
- const {
122
- bindI18n: i,
123
- bindI18nStore: c
124
- } = d;
125
- g.current = !0, !f && !N && (s.lng ? R(t, s.lng, o, () => {
126
- g.current && h(T);
127
- }) : b(t, o, () => {
128
- g.current && h(T);
129
- })), f && I && I !== y && g.current && h(T);
130
- const l = () => {
131
- g.current && h(T);
132
- };
133
- return i && (t == null || t.on(i, l)), c && (t == null || t.store.on(c, l)), () => {
134
- g.current = !1, t && (i == null || i.split(" ").forEach((u) => t.off(u, l))), c && t && c.split(" ").forEach((u) => t.store.off(u, l));
135
- };
136
- }, [t, y]), x(() => {
137
- g.current && f && h(E);
138
- }, [t, m, f]);
139
- const w = [C, t, f];
140
- if (w.t = C, w.i18n = t, w.ready = f, f || !f && !N) return w;
141
- throw new Promise((i) => {
142
- s.lng ? R(t, s.lng, o, () => i()) : b(t, o, () => i());
143
- });
144
- };
145
- export {
146
- ne as u
147
- };