elcrm 0.8.34 → 0.8.35

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.
@@ -19,7 +19,7 @@ export declare function useModule(fn?: string | ((name: string) => void)): strin
19
19
  export declare function setModule(module: string, reload?: boolean): void;
20
20
  export declare function getModule(): any;
21
21
  export declare function isModule(module: string): boolean;
22
- export declare function useTabs(fn?: string | ((name: string) => void)): string[] | undefined;
22
+ export declare function useTabs(fn?: string | ((name: string) => void)): (string | boolean)[] | undefined;
23
23
  export declare function setTabs(tabs: string, reload?: boolean): void;
24
24
  export declare function getTabs(): any;
25
25
  export declare function isTabs(tab: string): boolean;
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './index.css';var ba = Object.defineProperty;
2
2
  var wa = (e, t, a) => t in e ? ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var dt = (e, t, a) => (wa(e, typeof t != "symbol" ? t + "" : t, a), a);
4
- import p, { createElement as Sa } from "react";
4
+ import x, { createElement as Sa } from "react";
5
5
  let bt = {};
6
6
  const Ea = (e) => {
7
7
  bt = e;
@@ -66,7 +66,7 @@ function mt() {
66
66
  return te(), !1;
67
67
  }
68
68
  function Oa() {
69
- const [e, t] = p.useState(hn()), a = (r) => {
69
+ const [e, t] = x.useState(hn()), a = (r) => {
70
70
  t(r);
71
71
  };
72
72
  return H.page = a, [e];
@@ -82,7 +82,7 @@ function Za(e) {
82
82
  }
83
83
  function za(e) {
84
84
  if (typeof e != "function") {
85
- const [t, a] = p.useState(xn() || e), r = (s) => {
85
+ const [t, a] = x.useState(xn() || e), r = (s) => {
86
86
  a(s);
87
87
  };
88
88
  return H.module = r, [t];
@@ -100,10 +100,14 @@ function Wa(e) {
100
100
  }
101
101
  function Ka(e) {
102
102
  if (typeof e != "function") {
103
- const [t, a] = p.useState(Je() || e), r = (s) => {
104
- a(s);
103
+ const [t, a] = x.useState(Je() || e), [r, s] = x.useState(!1);
104
+ x.useEffect(() => {
105
+ s(!0);
106
+ }, []);
107
+ const i = (o) => {
108
+ a(o);
105
109
  };
106
- return H.tabs = r, [t];
110
+ return H.tabs = i, [t, r];
107
111
  } else
108
112
  H.tabs = e;
109
113
  }
@@ -118,7 +122,7 @@ function Va(e) {
118
122
  }
119
123
  function Ya(e) {
120
124
  if (typeof e != "function") {
121
- const [t, a] = p.useState(pn() || e), r = (s) => {
125
+ const [t, a] = x.useState(pn() || e), r = (s) => {
122
126
  a(s);
123
127
  };
124
128
  return H.id = r, [t];
@@ -374,11 +378,11 @@ function wr(e, t = {}, a = ie.getAUTH()) {
374
378
  });
375
379
  }
376
380
  function Sr(e, t = {}, a) {
377
- const [r, s] = p.useState({ status: "load" }), i = async (o) => {
381
+ const [r, s] = x.useState({ status: "load" }), i = async (o) => {
378
382
  let l = await Xe(e, o, a);
379
383
  s(l);
380
384
  };
381
- return p.useEffect(() => {
385
+ return x.useEffect(() => {
382
386
  i(t);
383
387
  }, []), [r, i];
384
388
  }
@@ -424,7 +428,7 @@ function Rr() {
424
428
  if (an)
425
429
  return De;
426
430
  an = 1;
427
- var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
431
+ var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
428
432
  function o(l, d, _) {
429
433
  var u, m = {}, f = null, h = null;
430
434
  _ !== void 0 && (f = "" + _), d.key !== void 0 && (f = "" + d.key), d.ref !== void 0 && (h = d.ref);
@@ -450,29 +454,29 @@ var Me = {};
450
454
  var rn;
451
455
  function Tr() {
452
456
  return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
453
- var e = p, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
457
+ var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
454
458
  function g(c) {
455
459
  if (c === null || typeof c != "object")
456
460
  return null;
457
- var x = v && c[v] || c[C];
458
- return typeof x == "function" ? x : null;
461
+ var p = v && c[v] || c[C];
462
+ return typeof p == "function" ? p : null;
459
463
  }
460
464
  var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
461
465
  function S(c) {
462
466
  {
463
- for (var x = arguments.length, k = new Array(x > 1 ? x - 1 : 0), R = 1; R < x; R++)
467
+ for (var p = arguments.length, k = new Array(p > 1 ? p - 1 : 0), R = 1; R < p; R++)
464
468
  k[R - 1] = arguments[R];
465
469
  F("error", c, k);
466
470
  }
467
471
  }
468
- function F(c, x, k) {
472
+ function F(c, p, k) {
469
473
  {
470
474
  var R = j.ReactDebugCurrentFrame, B = R.getStackAddendum();
471
- B !== "" && (x += "%s", k = k.concat([B]));
475
+ B !== "" && (p += "%s", k = k.concat([B]));
472
476
  var P = k.map(function(L) {
473
477
  return String(L);
474
478
  });
475
- P.unshift("Warning: " + x), Function.prototype.apply.call(console[c], console, P);
479
+ P.unshift("Warning: " + p), Function.prototype.apply.call(console[c], console, P);
476
480
  }
477
481
  }
478
482
  var I = !1, w = !1, T = !1, N = !1, E = !1, A;
@@ -484,11 +488,11 @@ function Tr() {
484
488
  // with.
485
489
  c.$$typeof === A || c.getModuleId !== void 0));
486
490
  }
487
- function le(c, x, k) {
491
+ function le(c, p, k) {
488
492
  var R = c.displayName;
489
493
  if (R)
490
494
  return R;
491
- var B = x.displayName || x.name || "";
495
+ var B = p.displayName || p.name || "";
492
496
  return B !== "" ? k + "(" + B + ")" : k;
493
497
  }
494
498
  function z(c) {
@@ -518,8 +522,8 @@ function Tr() {
518
522
  if (typeof c == "object")
519
523
  switch (c.$$typeof) {
520
524
  case l:
521
- var x = c;
522
- return z(x) + ".Consumer";
525
+ var p = c;
526
+ return z(p) + ".Consumer";
523
527
  case o:
524
528
  var k = c;
525
529
  return z(k._context) + ".Provider";
@@ -602,7 +606,7 @@ function Tr() {
602
606
  }
603
607
  }
604
608
  var tt = j.ReactCurrentDispatcher, nt;
605
- function We(c, x, k) {
609
+ function We(c, p, k) {
606
610
  {
607
611
  if (nt === void 0)
608
612
  try {
@@ -620,7 +624,7 @@ function Tr() {
620
624
  var Qn = typeof WeakMap == "function" ? WeakMap : Map;
621
625
  Ke = new Qn();
622
626
  }
623
- function At(c, x) {
627
+ function At(c, p) {
624
628
  if (!c || at)
625
629
  return "";
626
630
  {
@@ -635,7 +639,7 @@ function Tr() {
635
639
  var P;
636
640
  P = tt.current, tt.current = null, Jn();
637
641
  try {
638
- if (x) {
642
+ if (p) {
639
643
  var L = function() {
640
644
  throw Error();
641
645
  };
@@ -691,14 +695,14 @@ function Tr() {
691
695
  var ye = c ? c.displayName || c.name : "", pe = ye ? We(ye) : "";
692
696
  return typeof c == "function" && Ke.set(c, pe), pe;
693
697
  }
694
- function ea(c, x, k) {
698
+ function ea(c, p, k) {
695
699
  return At(c, !1);
696
700
  }
697
701
  function ta(c) {
698
- var x = c.prototype;
699
- return !!(x && x.isReactComponent);
702
+ var p = c.prototype;
703
+ return !!(p && p.isReactComponent);
700
704
  }
701
- function Ue(c, x, k) {
705
+ function Ue(c, p, k) {
702
706
  if (c == null)
703
707
  return "";
704
708
  if (typeof c == "function")
@@ -716,11 +720,11 @@ function Tr() {
716
720
  case d:
717
721
  return ea(c.render);
718
722
  case m:
719
- return Ue(c.type, x, k);
723
+ return Ue(c.type, p, k);
720
724
  case f: {
721
725
  var R = c, B = R._payload, P = R._init;
722
726
  try {
723
- return Ue(P(B), x, k);
727
+ return Ue(P(B), p, k);
724
728
  } catch {
725
729
  }
726
730
  }
@@ -730,12 +734,12 @@ function Tr() {
730
734
  var Te = Object.prototype.hasOwnProperty, Zt = {}, zt = j.ReactDebugCurrentFrame;
731
735
  function Ve(c) {
732
736
  if (c) {
733
- var x = c._owner, k = Ue(c.type, c._source, x ? x.type : null);
737
+ var p = c._owner, k = Ue(c.type, c._source, p ? p.type : null);
734
738
  zt.setExtraStackFrame(k);
735
739
  } else
736
740
  zt.setExtraStackFrame(null);
737
741
  }
738
- function na(c, x, k, R, B) {
742
+ function na(c, p, k, R, B) {
739
743
  {
740
744
  var P = Function.call.bind(Te);
741
745
  for (var L in c)
@@ -746,7 +750,7 @@ function Tr() {
746
750
  var J = Error((R || "React class") + ": " + k + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
747
751
  throw J.name = "Invariant Violation", J;
748
752
  }
749
- D = c[L](x, L, R, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
753
+ D = c[L](p, L, R, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
750
754
  } catch (G) {
751
755
  D = G;
752
756
  }
@@ -760,7 +764,7 @@ function Tr() {
760
764
  }
761
765
  function ra(c) {
762
766
  {
763
- var x = typeof Symbol == "function" && Symbol.toStringTag, k = x && c[Symbol.toStringTag] || c.constructor.name || "Object";
767
+ var p = typeof Symbol == "function" && Symbol.toStringTag, k = p && c[Symbol.toStringTag] || c.constructor.name || "Object";
764
768
  return k;
765
769
  }
766
770
  }
@@ -787,30 +791,30 @@ function Tr() {
787
791
  st = {};
788
792
  function oa(c) {
789
793
  if (Te.call(c, "ref")) {
790
- var x = Object.getOwnPropertyDescriptor(c, "ref").get;
791
- if (x && x.isReactWarning)
794
+ var p = Object.getOwnPropertyDescriptor(c, "ref").get;
795
+ if (p && p.isReactWarning)
792
796
  return !1;
793
797
  }
794
798
  return c.ref !== void 0;
795
799
  }
796
800
  function la(c) {
797
801
  if (Te.call(c, "key")) {
798
- var x = Object.getOwnPropertyDescriptor(c, "key").get;
799
- if (x && x.isReactWarning)
802
+ var p = Object.getOwnPropertyDescriptor(c, "key").get;
803
+ if (p && p.isReactWarning)
800
804
  return !1;
801
805
  }
802
806
  return c.key !== void 0;
803
807
  }
804
- function ca(c, x) {
805
- if (typeof c.ref == "string" && Ie.current && x && Ie.current.stateNode !== x) {
808
+ function ca(c, p) {
809
+ if (typeof c.ref == "string" && Ie.current && p && Ie.current.stateNode !== p) {
806
810
  var k = $(Ie.current.type);
807
811
  st[k] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(Ie.current.type), c.ref), st[k] = !0);
808
812
  }
809
813
  }
810
- function da(c, x) {
814
+ function da(c, p) {
811
815
  {
812
816
  var k = function() {
813
- Kt || (Kt = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
817
+ Kt || (Kt = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
814
818
  };
815
819
  k.isReactWarning = !0, Object.defineProperty(c, "key", {
816
820
  get: k,
@@ -818,10 +822,10 @@ function Tr() {
818
822
  });
819
823
  }
820
824
  }
821
- function _a(c, x) {
825
+ function _a(c, p) {
822
826
  {
823
827
  var k = function() {
824
- Ut || (Ut = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
828
+ Ut || (Ut = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
825
829
  };
826
830
  k.isReactWarning = !0, Object.defineProperty(c, "ref", {
827
831
  get: k,
@@ -829,13 +833,13 @@ function Tr() {
829
833
  });
830
834
  }
831
835
  }
832
- var ua = function(c, x, k, R, B, P, L) {
836
+ var ua = function(c, p, k, R, B, P, L) {
833
837
  var D = {
834
838
  // This tag allows us to uniquely identify this as a React Element
835
839
  $$typeof: t,
836
840
  // Built-in properties that belong on the element
837
841
  type: c,
838
- key: x,
842
+ key: p,
839
843
  ref: k,
840
844
  props: L,
841
845
  // Record the component responsible for creating this element.
@@ -858,12 +862,12 @@ function Tr() {
858
862
  value: B
859
863
  }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
860
864
  };
861
- function ma(c, x, k, R, B) {
865
+ function ma(c, p, k, R, B) {
862
866
  {
863
867
  var P, L = {}, D = null, J = null;
864
- k !== void 0 && (Wt(k), D = "" + k), la(x) && (Wt(x.key), D = "" + x.key), oa(x) && (J = x.ref, ca(x, B));
865
- for (P in x)
866
- Te.call(x, P) && !ia.hasOwnProperty(P) && (L[P] = x[P]);
868
+ k !== void 0 && (Wt(k), D = "" + k), la(p) && (Wt(p.key), D = "" + p.key), oa(p) && (J = p.ref, ca(p, B));
869
+ for (P in p)
870
+ Te.call(p, P) && !ia.hasOwnProperty(P) && (L[P] = p[P]);
867
871
  if (c && c.defaultProps) {
868
872
  var G = c.defaultProps;
869
873
  for (P in G)
@@ -879,7 +883,7 @@ function Tr() {
879
883
  var it = j.ReactCurrentOwner, Vt = j.ReactDebugCurrentFrame;
880
884
  function je(c) {
881
885
  if (c) {
882
- var x = c._owner, k = Ue(c.type, c._source, x ? x.type : null);
886
+ var p = c._owner, k = Ue(c.type, c._source, p ? p.type : null);
883
887
  Vt.setExtraStackFrame(k);
884
888
  } else
885
889
  Vt.setExtraStackFrame(null);
@@ -907,22 +911,22 @@ Check the render method of \`` + c + "`.";
907
911
  var Ht = {};
908
912
  function ha(c) {
909
913
  {
910
- var x = Yt();
911
- if (!x) {
914
+ var p = Yt();
915
+ if (!p) {
912
916
  var k = typeof c == "string" ? c : c.displayName || c.name;
913
- k && (x = `
917
+ k && (p = `
914
918
 
915
919
  Check the top-level render call using <` + k + ">.");
916
920
  }
917
- return x;
921
+ return p;
918
922
  }
919
923
  }
920
- function qt(c, x) {
924
+ function qt(c, p) {
921
925
  {
922
926
  if (!c._store || c._store.validated || c.key != null)
923
927
  return;
924
928
  c._store.validated = !0;
925
- var k = ha(x);
929
+ var k = ha(p);
926
930
  if (Ht[k])
927
931
  return;
928
932
  Ht[k] = !0;
@@ -930,14 +934,14 @@ Check the top-level render call using <` + k + ">.");
930
934
  c && c._owner && c._owner !== it.current && (R = " It was passed a child from " + $(c._owner.type) + "."), je(c), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, R), je(null);
931
935
  }
932
936
  }
933
- function Jt(c, x) {
937
+ function Jt(c, p) {
934
938
  {
935
939
  if (typeof c != "object")
936
940
  return;
937
941
  if (rt(c))
938
942
  for (var k = 0; k < c.length; k++) {
939
943
  var R = c[k];
940
- lt(R) && qt(R, x);
944
+ lt(R) && qt(R, p);
941
945
  }
942
946
  else if (lt(c))
943
947
  c._store && (c._store.validated = !0);
@@ -945,39 +949,39 @@ Check the top-level render call using <` + k + ">.");
945
949
  var B = g(c);
946
950
  if (typeof B == "function" && B !== c.entries)
947
951
  for (var P = B.call(c), L; !(L = P.next()).done; )
948
- lt(L.value) && qt(L.value, x);
952
+ lt(L.value) && qt(L.value, p);
949
953
  }
950
954
  }
951
955
  }
952
956
  function xa(c) {
953
957
  {
954
- var x = c.type;
955
- if (x == null || typeof x == "string")
958
+ var p = c.type;
959
+ if (p == null || typeof p == "string")
956
960
  return;
957
961
  var k;
958
- if (typeof x == "function")
959
- k = x.propTypes;
960
- else if (typeof x == "object" && (x.$$typeof === d || // Note: Memo only checks outer props here.
962
+ if (typeof p == "function")
963
+ k = p.propTypes;
964
+ else if (typeof p == "object" && (p.$$typeof === d || // Note: Memo only checks outer props here.
961
965
  // Inner props are checked in the reconciler.
962
- x.$$typeof === m))
963
- k = x.propTypes;
966
+ p.$$typeof === m))
967
+ k = p.propTypes;
964
968
  else
965
969
  return;
966
970
  if (k) {
967
- var R = $(x);
971
+ var R = $(p);
968
972
  na(k, c.props, "prop", R, c);
969
- } else if (x.PropTypes !== void 0 && !ot) {
973
+ } else if (p.PropTypes !== void 0 && !ot) {
970
974
  ot = !0;
971
- var B = $(x);
975
+ var B = $(p);
972
976
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
973
977
  }
974
- typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
978
+ typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
975
979
  }
976
980
  }
977
981
  function pa(c) {
978
982
  {
979
- for (var x = Object.keys(c.props), k = 0; k < x.length; k++) {
980
- var R = x[k];
983
+ for (var p = Object.keys(c.props), k = 0; k < p.length; k++) {
984
+ var R = p[k];
981
985
  if (R !== "children" && R !== "key") {
982
986
  je(c), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), je(null);
983
987
  break;
@@ -987,7 +991,7 @@ Check the top-level render call using <` + k + ">.");
987
991
  }
988
992
  }
989
993
  var Xt = {};
990
- function Qt(c, x, k, R, B, P) {
994
+ function Qt(c, p, k, R, B, P) {
991
995
  {
992
996
  var L = X(c);
993
997
  if (!L) {
@@ -998,11 +1002,11 @@ Check the top-level render call using <` + k + ">.");
998
1002
  var G;
999
1003
  c === null ? G = "null" : rt(c) ? G = "array" : c !== void 0 && c.$$typeof === t ? (G = "<" + ($(c.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, D);
1000
1004
  }
1001
- var U = ma(c, x, k, B, P);
1005
+ var U = ma(c, p, k, B, P);
1002
1006
  if (U == null)
1003
1007
  return U;
1004
1008
  if (L) {
1005
- var ne = x.children;
1009
+ var ne = p.children;
1006
1010
  if (ne !== void 0)
1007
1011
  if (R)
1008
1012
  if (rt(ne)) {
@@ -1014,8 +1018,8 @@ Check the top-level render call using <` + k + ">.");
1014
1018
  else
1015
1019
  Jt(ne, c);
1016
1020
  }
1017
- if (Te.call(x, "key")) {
1018
- var pe = $(c), Q = Object.keys(x).filter(function(ya) {
1021
+ if (Te.call(p, "key")) {
1022
+ var pe = $(c), Q = Object.keys(p).filter(function(ya) {
1019
1023
  return ya !== "key";
1020
1024
  }), ct = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
1021
1025
  if (!Xt[pe + ct]) {
@@ -1031,11 +1035,11 @@ React keys must be passed directly to JSX without using spread:
1031
1035
  return c === r ? pa(U) : xa(U), U;
1032
1036
  }
1033
1037
  }
1034
- function ga(c, x, k) {
1035
- return Qt(c, x, k, !0);
1038
+ function ga(c, p, k) {
1039
+ return Qt(c, p, k, !0);
1036
1040
  }
1037
- function va(c, x, k) {
1038
- return Qt(c, x, k, !1);
1041
+ function va(c, p, k) {
1042
+ return Qt(c, p, k, !1);
1039
1043
  }
1040
1044
  var Ca = va, ka = ga;
1041
1045
  Me.Fragment = r, Me.jsx = Ca, Me.jsxs = ka;
@@ -1054,7 +1058,7 @@ const Ir = "_notice_9i5tr_2", Dr = "_error_9i5tr_9", Mr = "_success_9i5tr_12", F
1054
1058
  };
1055
1059
  let he = {};
1056
1060
  function Br() {
1057
- let [e, t] = p.useState([]);
1061
+ let [e, t] = x.useState([]);
1058
1062
  return he.set = (a) => {
1059
1063
  t([...e, a]);
1060
1064
  }, he.del = (a) => {
@@ -1062,8 +1066,8 @@ function Br() {
1062
1066
  }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: $r.notice, children: e.map((a) => a.item) });
1063
1067
  }
1064
1068
  function Ae({ data: e }) {
1065
- let [t, a] = p.useState("show");
1066
- p.useEffect(() => {
1069
+ let [t, a] = x.useState("show");
1070
+ x.useEffect(() => {
1067
1071
  setTimeout(function() {
1068
1072
  a("hide");
1069
1073
  }, 1800), setTimeout(function() {
@@ -1158,7 +1162,7 @@ const Gr = "_alerts_1pds5_1", Wr = "_menuAnimation_1pds5_1", Kr = "_menuItemAnim
1158
1162
  };
1159
1163
  let $e = {};
1160
1164
  function Yr() {
1161
- let [e, t] = p.useState("");
1165
+ let [e, t] = x.useState("");
1162
1166
  return $e.set = (a) => t(a), $e.del = () => t(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1163
1167
  }
1164
1168
  const Hr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: xt.alerts, children: [
@@ -1347,7 +1351,7 @@ function is(e) {
1347
1351
  Ze.fn = e;
1348
1352
  }
1349
1353
  function os() {
1350
- const [e, t] = p.useReducer(ns, {
1354
+ const [e, t] = x.useReducer(ns, {
1351
1355
  open: !1,
1352
1356
  active: !1,
1353
1357
  news: [],
@@ -1360,7 +1364,7 @@ function os() {
1360
1364
  Fe.push(r.data);
1361
1365
  break;
1362
1366
  }
1363
- }), p.useEffect(() => {
1367
+ }), x.useEffect(() => {
1364
1368
  (async () => {
1365
1369
  let r = await _e.Send({
1366
1370
  type: "module",
@@ -1500,7 +1504,7 @@ let oe = {}, V = {}, Ye = [
1500
1504
  "job"
1501
1505
  ];
1502
1506
  function ms() {
1503
- const [e, t] = p.useState(!1), [a, r] = p.useState(!1);
1507
+ const [e, t] = x.useState(!1), [a, r] = x.useState(!1);
1504
1508
  function s(i) {
1505
1509
  const o = new ds();
1506
1510
  oe.laodData = (l) => {
@@ -2106,7 +2110,7 @@ const di = "_btn_1hz2s_6", _i = "_confirm_1hz2s_19", sn = {
2106
2110
  confirm: _i
2107
2111
  };
2108
2112
  function ui({ onClick: e, onSend: t, label: a, onRef: r }) {
2109
- let [s, i] = p.useState(!1);
2113
+ let [s, i] = x.useState(!1);
2110
2114
  const o = () => {
2111
2115
  if (e)
2112
2116
  return e();
@@ -2124,7 +2128,7 @@ function ui({ onClick: e, onSend: t, label: a, onRef: r }) {
2124
2128
  }
2125
2129
  let Ce = {};
2126
2130
  function mi({ config: e }) {
2127
- let [t, a] = p.useState([]);
2131
+ let [t, a] = x.useState([]);
2128
2132
  return Ce.x = (r) => {
2129
2133
  r || a([]);
2130
2134
  }, Ce.config = e, Ce.add = (r) => {
@@ -2139,7 +2143,7 @@ function fi({
2139
2143
  size: s = "m",
2140
2144
  menu: i
2141
2145
  }) {
2142
- const [o, l] = p.useState(!0), d = p.useRef(), _ = (m) => {
2146
+ const [o, l] = x.useState(!0), d = x.useRef(), _ = (m) => {
2143
2147
  if (a) {
2144
2148
  if (a.onClick)
2145
2149
  return m(!1), a.onClick({ setOpen: l });
@@ -2224,8 +2228,8 @@ function pi(e) {
2224
2228
  }, 1e3);
2225
2229
  }
2226
2230
  function gi({ type: e, name: t, params: a }) {
2227
- let [r, s] = p.useState(null);
2228
- return p.useEffect(() => {
2231
+ let [r, s] = x.useState(null);
2232
+ return x.useEffect(() => {
2229
2233
  Ce.config(e, t, a, s);
2230
2234
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2231
2235
  }
@@ -2248,7 +2252,7 @@ const Et = {
2248
2252
  Close: Ci
2249
2253
  };
2250
2254
  function En({ text: e, type: t, button: a }) {
2251
- let [r, s] = p.useState(!1), i = { active: t };
2255
+ let [r, s] = x.useState(!1), i = { active: t };
2252
2256
  const o = () => {
2253
2257
  if (a) {
2254
2258
  if (a.onClick)
@@ -2395,7 +2399,7 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2395
2399
  search: !1,
2396
2400
  revers: !0
2397
2401
  }), zi = () => {
2398
- let [e, t] = p.useState([]);
2402
+ let [e, t] = x.useState([]);
2399
2403
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2400
2404
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
2401
2405
  /* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
@@ -2417,7 +2421,7 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2417
2421
  dir: r
2418
2422
  }) => {
2419
2423
  t = t || "Файлы";
2420
- const [s, i] = p.useReducer(Ai, {}, Zi), o = () => {
2424
+ const [s, i] = x.useReducer(Ai, {}, Zi), o = () => {
2421
2425
  Et.Add(
2422
2426
  /* @__PURE__ */ n.jsx(
2423
2427
  Wi,
@@ -2430,7 +2434,7 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2430
2434
  )
2431
2435
  );
2432
2436
  };
2433
- return p.useEffect(() => {
2437
+ return x.useEffect(() => {
2434
2438
  (async () => {
2435
2439
  let l = await _e.Send({
2436
2440
  type: "module",
@@ -2472,12 +2476,12 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2472
2476
  ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((l, d) => /* @__PURE__ */ n.jsx(Ki, { dispatch: i, data: l }, d)) })
2473
2477
  ] });
2474
2478
  }, Wi = ({ id: e, dir: t, dispatch: a }) => {
2475
- let [r, s] = p.useState(!0), i = p.useRef(null), o = (_) => {
2479
+ let [r, s] = x.useState(!0), i = x.useRef(null), o = (_) => {
2476
2480
  _.preventDefault(), _.stopPropagation();
2477
2481
  }, l = (_) => {
2478
2482
  }, d = (_) => {
2479
2483
  };
2480
- return p.useEffect(() => {
2484
+ return x.useEffect(() => {
2481
2485
  let _ = i.current;
2482
2486
  ["dragenter", "dragover", "dragleave", "drop"].forEach((u) => {
2483
2487
  _.addEventListener(u, o, !1), document.body.addEventListener(u, o, !1);
@@ -2574,8 +2578,8 @@ Z.list = dr();
2574
2578
  Z.active = null;
2575
2579
  const Ui = () => {
2576
2580
  var s;
2577
- let [e, t] = p.useState([]), [a, r] = p.useState(Nt.getSetting("s03"));
2578
- return p.useEffect(() => {
2581
+ let [e, t] = x.useState([]), [a, r] = x.useState(Nt.getSetting("s03"));
2582
+ return x.useEffect(() => {
2579
2583
  (async () => {
2580
2584
  let i = Object.keys(Z.list);
2581
2585
  if (i.length !== 0) {
@@ -2611,10 +2615,10 @@ const Ui = () => {
2611
2615
  a === 1 && e.length !== 0 ? "bottom" : ""
2612
2616
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2613
2617
  }, Vi = ({ id: e, type: t, name: a }) => {
2614
- let r = t + "-" + e, [s, i] = p.useState(
2618
+ let r = t + "-" + e, [s, i] = x.useState(
2615
2619
  Z.list[r] !== void 0
2616
2620
  );
2617
- p.useEffect(() => {
2621
+ x.useEffect(() => {
2618
2622
  i(Z.list[r] !== void 0);
2619
2623
  }, [r]);
2620
2624
  let o = () => {
@@ -2786,8 +2790,8 @@ O.Run = async (e) => {
2786
2790
  };
2787
2791
  let Le = {};
2788
2792
  function Hi() {
2789
- let [e, t] = p.useState([]), a = p.useRef(null);
2790
- return p.useEffect(() => {
2793
+ let [e, t] = x.useState([]), a = x.useRef(null);
2794
+ return x.useEffect(() => {
2791
2795
  }, []), Le.set = (r) => {
2792
2796
  t([...e, r]);
2793
2797
  }, Le.del = () => {
@@ -2807,8 +2811,8 @@ function qi(e, t) {
2807
2811
  });
2808
2812
  }
2809
2813
  function Ji({ id: e, type: t }) {
2810
- const [a, r] = p.useState({}), [s, i] = p.useState(t);
2811
- p.useEffect(() => {
2814
+ const [a, r] = x.useState({}), [s, i] = x.useState(t);
2815
+ x.useEffect(() => {
2812
2816
  r(ie.getSelect("user")[e]);
2813
2817
  }, []), O.useListener((d) => {
2814
2818
  switch (d.type) {
@@ -2914,7 +2918,7 @@ function Qi({ color: e, size: t, name: a }) {
2914
2918
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
2915
2919
  }
2916
2920
  function eo() {
2917
- let [e, t] = p.useState([]);
2921
+ let [e, t] = x.useState([]);
2918
2922
  if (vt.x = () => {
2919
2923
  t([]);
2920
2924
  }, vt.add = (r) => {
@@ -2943,8 +2947,8 @@ function no(e, t) {
2943
2947
  }
2944
2948
  const me = {};
2945
2949
  function ao(e, t) {
2946
- const [a, r] = p.useState(t);
2947
- return p.useEffect(() => {
2950
+ const [a, r] = x.useState(t);
2951
+ return x.useEffect(() => {
2948
2952
  if (me[e])
2949
2953
  return me[e].push(r);
2950
2954
  me[e] = [r];
@@ -2960,7 +2964,7 @@ function so(e, t) {
2960
2964
  }
2961
2965
  const Ee = { setListener: no, useListener: to, setEmitter: so, useEmitter: ao, subEmitter: ro };
2962
2966
  function io() {
2963
- let [e, t] = p.useState([]);
2967
+ let [e, t] = x.useState([]);
2964
2968
  return Ee.useListener("form", (a) => {
2965
2969
  t([a]);
2966
2970
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
@@ -2984,7 +2988,7 @@ const oo = ({ children: e, config: t }) => (M.New(t.crypto), t.defaultModule &&
2984
2988
  payment: _o
2985
2989
  };
2986
2990
  function mo() {
2987
- let [e, t] = p.useState({});
2991
+ let [e, t] = x.useState({});
2988
2992
  return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: uo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2989
2993
  }
2990
2994
  const Yl = ({ children: e, ...t }) => {
@@ -3030,7 +3034,7 @@ const xo = ({
3030
3034
  ] }), po = "_setting_dva4m_2", go = {
3031
3035
  setting: po
3032
3036
  }, vo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: go.setting, children: e }), Co = ({ label: e, children: t }) => {
3033
- let [a, r] = p.useState(!1);
3037
+ let [a, r] = x.useState(!1);
3034
3038
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3035
3039
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
3036
3040
  /* @__PURE__ */ n.jsx("dt", { children: e }),
@@ -3108,7 +3112,7 @@ function Fo(e, t) {
3108
3112
  }
3109
3113
  }
3110
3114
  function Lo() {
3111
- const [e, t] = p.useReducer(
3115
+ const [e, t] = x.useReducer(
3112
3116
  Fo,
3113
3117
  ft() === void 0 ? { active: 1, sort: "<" } : ft()
3114
3118
  );
@@ -3169,12 +3173,12 @@ function Oo(e) {
3169
3173
  }
3170
3174
  const Ql = { Init: Lo, useValue: $o, Set: Bo, Run: Po, Count: Oo }, qe = {}, Rn = {};
3171
3175
  function Ao(e) {
3172
- const [t, a] = p.useState({}), r = async (s) => {
3176
+ const [t, a] = x.useState({}), r = async (s) => {
3173
3177
  a(
3174
3178
  Object.keys(qe).reduce((i, o) => (i ? i[o] = qe[o].all : i = {}, i), {})
3175
3179
  );
3176
3180
  };
3177
- return p.useEffect(() => {
3181
+ return x.useEffect(() => {
3178
3182
  e.forEach((s) => qe[s] = { all: 0 }), Rn.menu = r, r();
3179
3183
  }, [e]), t;
3180
3184
  }
@@ -3370,7 +3374,7 @@ function il({
3370
3374
  className: a,
3371
3375
  ...r
3372
3376
  }) {
3373
- const s = p.useRef(null), [i, o] = p.useReducer(sl, {
3377
+ const s = x.useRef(null), [i, o] = x.useReducer(sl, {
3374
3378
  load: !1,
3375
3379
  list: [],
3376
3380
  data: {},
@@ -3378,7 +3382,7 @@ function il({
3378
3382
  wait: !1,
3379
3383
  size: 0
3380
3384
  });
3381
- p.useEffect(() => {
3385
+ x.useEffect(() => {
3382
3386
  s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3383
3387
  }, [t]);
3384
3388
  let l = () => {
@@ -3482,7 +3486,7 @@ function Pe({
3482
3486
  ] });
3483
3487
  }
3484
3488
  function Dn({ onClick: e, onSend: t, name: a, onRef: r }) {
3485
- let [s, i] = p.useState(!1);
3489
+ let [s, i] = x.useState(!1);
3486
3490
  const o = () => {
3487
3491
  if (e)
3488
3492
  return e();
@@ -3510,7 +3514,7 @@ function Mn({
3510
3514
  active: l = !0,
3511
3515
  placeholder: d = "Введите сообщение"
3512
3516
  }) {
3513
- const _ = p.useRef({
3517
+ const _ = x.useRef({
3514
3518
  value: e,
3515
3519
  timerId: null,
3516
3520
  shift: !1,
@@ -3577,7 +3581,7 @@ function Fn(e) {
3577
3581
  ] });
3578
3582
  }
3579
3583
  function Ln({ value: e, onValue: t, placeholder: a = "", name: r }) {
3580
- let s = (h, v) => Number(Math.round(h + Math.random() * (v - h))), i = p.useRef(null), o = p.useRef(null), l = s(1e4, 99999), d = (h) => {
3584
+ let s = (h, v) => Number(Math.round(h + Math.random() * (v - h))), i = x.useRef(null), o = x.useRef(null), l = s(1e4, 99999), d = (h) => {
3581
3585
  h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
3582
3586
  }, _ = (h) => {
3583
3587
  t({ value: Number(h.target.textContent) === l, name: r });
@@ -3591,7 +3595,7 @@ function Ln({ value: e, onValue: t, placeholder: a = "", name: r }) {
3591
3595
  }).catch((v) => {
3592
3596
  });
3593
3597
  };
3594
- p.useEffect(() => {
3598
+ x.useEffect(() => {
3595
3599
  const h = i.current, v = h.getContext("2d");
3596
3600
  v.clearRect(0, 0, h.width, h.height), v.font = "30px brush script mt", v.fillStyle = "#eee", v.textAlign = "center", v.fillText(l, 50, 27), o.current.textContent = "";
3597
3601
  }, [l]);
@@ -3751,7 +3755,7 @@ function $n(e) {
3751
3755
  function Bn(e) {
3752
3756
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
3753
3757
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
3754
- let [r, s] = p.useState(e.value), i = (o) => {
3758
+ let [r, s] = x.useState(e.value), i = (o) => {
3755
3759
  let l = o.target.getAttribute("set-color");
3756
3760
  s(l), e.onValue({ value: l, name: e.name });
3757
3761
  };
@@ -3783,10 +3787,10 @@ const ol = "_o_1kqkq_1", ll = "_c_1kqkq_11", we = {
3783
3787
  c: ll
3784
3788
  };
3785
3789
  function Rt(e) {
3786
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = p.useState(
3790
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = x.useState(
3787
3791
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3788
3792
  ), d = !r && s;
3789
- p.useEffect(() => {
3793
+ x.useEffect(() => {
3790
3794
  l(e.value === void 0 ? /* @__PURE__ */ new Date() : e.value);
3791
3795
  }, [e.value]);
3792
3796
  let _ = (h) => {
@@ -3838,7 +3842,7 @@ function Rt(e) {
3838
3842
  ) });
3839
3843
  }
3840
3844
  const cl = (e) => {
3841
- let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3845
+ let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3842
3846
  y: parseInt(r.getFullYear()),
3843
3847
  d: parseInt(r.getDate()),
3844
3848
  m: parseInt(r.getMonth()) + 1
@@ -3846,7 +3850,7 @@ const cl = (e) => {
3846
3850
  y: parseInt(s.getFullYear()),
3847
3851
  d: parseInt(s.getDate()),
3848
3852
  m: parseInt(s.getMonth()) + 1
3849
- }, [l, d] = p.useState({ y: o.y, m: o.m }), _ = (w) => {
3853
+ }, [l, d] = x.useState({ y: o.y, m: o.m }), _ = (w) => {
3850
3854
  let T = w.getDay();
3851
3855
  return T === 0 && (T = 7), T - 1;
3852
3856
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, f = new Date(l.y, m), h = [];
@@ -3924,7 +3928,7 @@ function Tt({
3924
3928
  module: h,
3925
3929
  options: v
3926
3930
  }) {
3927
- let [C, g] = p.useState(e), j = (F) => {
3931
+ let [C, g] = x.useState(e), j = (F) => {
3928
3932
  if (!f)
3929
3933
  return;
3930
3934
  let I = f.split(".");
@@ -4015,8 +4019,8 @@ function Pn({
4015
4019
  placeholder: d = "",
4016
4020
  after: _
4017
4021
  }) {
4018
- let [u, m] = p.useState(e);
4019
- p.useEffect(() => {
4022
+ let [u, m] = x.useState(e);
4023
+ x.useEffect(() => {
4020
4024
  m(e);
4021
4025
  }, [e]);
4022
4026
  let f = (C) => {
@@ -4064,13 +4068,13 @@ function Pn({
4064
4068
  ) });
4065
4069
  }
4066
4070
  const dl = (e) => {
4067
- let [t, a] = p.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4071
+ let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4068
4072
  y: parseInt(r.getFullYear()),
4069
4073
  m: parseInt(r.getMonth()) + 1
4070
4074
  }, o = {
4071
4075
  y: parseInt(s.getFullYear()),
4072
4076
  m: parseInt(s.getMonth()) + 1
4073
- }, [l, d] = p.useState(o.y), _ = () => {
4077
+ }, [l, d] = x.useState(o.y), _ = () => {
4074
4078
  a(!1);
4075
4079
  }, u = () => {
4076
4080
  d(l + 1);
@@ -4121,7 +4125,7 @@ const dl = (e) => {
4121
4125
  ] }) : "" });
4122
4126
  };
4123
4127
  function On(e) {
4124
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = p.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4128
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, s] = x.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4125
4129
  r = i ? !0 : r;
4126
4130
  let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (g) => {
4127
4131
  e.onValue && e.onValue({ value: g.target.innerText, name: e.name });
@@ -5665,7 +5669,7 @@ function Mt({
5665
5669
  view: f,
5666
5670
  className: h = ""
5667
5671
  }) {
5668
- d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), p.useRef(null);
5672
+ d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(d && _), x.useRef(null);
5669
5673
  let C = "+_(___) ___-__-__", g = !0, j = 0, S = (z, $) => {
5670
5674
  let Y = document.createRange(), q = window.getSelection();
5671
5675
  Y.setStart($.childNodes[0], z), Y.collapse(!0), q.removeAllRanges(), q.addRange(Y), $.focus();
@@ -5780,7 +5784,7 @@ function Ft({
5780
5784
  after: u,
5781
5785
  view: m
5782
5786
  }) {
5783
- const f = p.useRef();
5787
+ const f = x.useRef();
5784
5788
  s = !!(s && (i === "" || l[i].n === void 0)) && !(a && r);
5785
5789
  let v = i !== void 0 && i !== "" ? l[i].n : i, C = (F) => {
5786
5790
  f.current.textContent = l[F].n, o && o({ value: F, name: _ });
@@ -5809,7 +5813,7 @@ function Ft({
5809
5813
  ] });
5810
5814
  }
5811
5815
  const _l = ({ onValue: e, parent: t, view: a, options: r }) => {
5812
- let [s, i] = p.useState(!0), o = () => {
5816
+ let [s, i] = x.useState(!0), o = () => {
5813
5817
  i(!1);
5814
5818
  }, l = (u) => {
5815
5819
  i(!1), e(u);
@@ -5851,7 +5855,7 @@ const _l = ({ onValue: e, parent: t, view: a, options: r }) => {
5851
5855
  function Lt(e) {
5852
5856
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), l = e.placeholder !== void 0 ? e.placeholder : "", d = (h) => {
5853
5857
  u(e.options[h]), e.onValue({ value: h, name: e.name });
5854
- }, [_, u] = p.useState(
5858
+ }, [_, u] = x.useState(
5855
5859
  e.default !== void 0 ? e.options[e.default] : e.default
5856
5860
  ), m = (h) => {
5857
5861
  if (!(r && s))
@@ -5893,7 +5897,7 @@ function Lt(e) {
5893
5897
  );
5894
5898
  }
5895
5899
  const ul = ({ onValue: e, parent: t, view: a, options: r }) => {
5896
- let [s, i] = p.useState(!0), o = () => {
5900
+ let [s, i] = x.useState(!0), o = () => {
5897
5901
  i(!1);
5898
5902
  }, l = (m) => {
5899
5903
  i(!1), e(m);
@@ -6157,7 +6161,7 @@ function Gn({
6157
6161
  onSave: h,
6158
6162
  className: v = ""
6159
6163
  }) {
6160
- let C = !!(o && (e === "" || e === void 0)), g = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), j = p.useRef(null);
6164
+ let C = !!(o && (e === "" || e === void 0)), g = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), j = x.useRef(null);
6161
6165
  if (!(l && d) && !u || !(l && d) && C)
6162
6166
  return "";
6163
6167
  let S = (N) => {
@@ -6199,14 +6203,14 @@ const ml = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6199
6203
  let s = r.split(":"), i = {
6200
6204
  h: K.Number(2, s[0]),
6201
6205
  m: K.Number(2, s[1])
6202
- }, o = "hour", [l, d] = p.useState({}), _ = !1, u = 0, m = 0, f = {
6203
- body: p.useRef(null),
6204
- time: p.useRef(null),
6205
- hour: p.useRef(null),
6206
- timeText: p.useRef(null),
6207
- hourText: p.useRef(null)
6206
+ }, o = "hour", [l, d] = x.useState({}), _ = !1, u = 0, m = 0, f = {
6207
+ body: x.useRef(null),
6208
+ time: x.useRef(null),
6209
+ hour: x.useRef(null),
6210
+ timeText: x.useRef(null),
6211
+ hourText: x.useRef(null)
6208
6212
  };
6209
- p.useEffect(() => {
6213
+ x.useEffect(() => {
6210
6214
  d(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6211
6215
  }, [f.body, f.hour, f.time, i.m, i.h]);
6212
6216
  let h = () => {
@@ -6264,7 +6268,7 @@ const ml = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6264
6268
  }
6265
6269
  }
6266
6270
  a(i.h + ":" + i.m);
6267
- }, [j, S] = p.useState(!0), F = () => {
6271
+ }, [j, S] = x.useState(!0), F = () => {
6268
6272
  S(!1), t(i.h + ":" + i.m);
6269
6273
  }, I = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, w = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6270
6274
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: j ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -6311,7 +6315,7 @@ function Wn({
6311
6315
  reload: i
6312
6316
  }) {
6313
6317
  a = !!a;
6314
- const [o, l] = p.useState(a), d = () => {
6318
+ const [o, l] = x.useState(a), d = () => {
6315
6319
  let m = !o;
6316
6320
  e({ name: s, value: m, reload: i }), l(m);
6317
6321
  }, _ = {};
@@ -6323,8 +6327,8 @@ function Wn({
6323
6327
  ] });
6324
6328
  }
6325
6329
  const fl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6326
- const [i, o] = p.useState(!!a);
6327
- p.useEffect(() => {
6330
+ const [i, o] = x.useState(!!a);
6331
+ x.useEffect(() => {
6328
6332
  o(!!a);
6329
6333
  }, [a]);
6330
6334
  let l = () => {
@@ -6340,8 +6344,8 @@ const fl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6340
6344
  }
6341
6345
  );
6342
6346
  }, Kn = ({ onValue: e, value: t, name: a, item: r }) => {
6343
- const [s, i] = p.useState(!!t);
6344
- p.useEffect(() => {
6347
+ const [s, i] = x.useState(!!t);
6348
+ x.useEffect(() => {
6345
6349
  i(!!t);
6346
6350
  }, [t]);
6347
6351
  let o = () => {
@@ -6374,10 +6378,10 @@ function Un({
6374
6378
  onSave: h,
6375
6379
  className: v = ""
6376
6380
  }) {
6377
- const [C, g] = p.useState(
6381
+ const [C, g] = x.useState(
6378
6382
  e !== void 0 ? e.split(",") : []
6379
6383
  );
6380
- p.useEffect(() => {
6384
+ x.useEffect(() => {
6381
6385
  e !== void 0 && g(e !== void 0 ? e.split(",") : []);
6382
6386
  }, [e]);
6383
6387
  let j = () => {
@@ -6464,7 +6468,7 @@ function Un({
6464
6468
  }
6465
6469
  const Se = {};
6466
6470
  function hl(e) {
6467
- const [t, a] = p.useState({}), r = p.useRef(e);
6471
+ const [t, a] = x.useState({}), r = x.useRef(e);
6468
6472
  return Se.u = (s) => {
6469
6473
  r.current = { ...r.current, [s.name]: s.value };
6470
6474
  }, Se.r = () => {
@@ -6654,7 +6658,7 @@ function Tl(e, t) {
6654
6658
  }
6655
6659
  }
6656
6660
  function Il() {
6657
- const [e, t] = p.useReducer(Tl, {
6661
+ const [e, t] = x.useReducer(Tl, {
6658
6662
  open: !1,
6659
6663
  view: null,
6660
6664
  data: {},
@@ -6841,7 +6845,7 @@ function Zl(e, t) {
6841
6845
  }
6842
6846
  }
6843
6847
  function qn({ load: e, list: t, item: a }) {
6844
- const r = p.useRef(null), [s, i] = p.useReducer(Zl, {
6848
+ const r = x.useRef(null), [s, i] = x.useReducer(Zl, {
6845
6849
  load: !1,
6846
6850
  list: [],
6847
6851
  data: {},
@@ -6849,7 +6853,7 @@ function qn({ load: e, list: t, item: a }) {
6849
6853
  wait: !1,
6850
6854
  item: a
6851
6855
  });
6852
- p.useEffect(() => {
6856
+ x.useEffect(() => {
6853
6857
  t !== null && i({ type: "load", load: e, data: t });
6854
6858
  }, [e]);
6855
6859
  let o = (l) => {
@@ -6859,7 +6863,7 @@ function qn({ load: e, list: t, item: a }) {
6859
6863
  return l = s.size;
6860
6864
  i({ type: "page", page: l });
6861
6865
  };
6862
- return p.useEffect(() => {
6866
+ return x.useEffect(() => {
6863
6867
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6864
6868
  /* @__PURE__ */ n.jsx("div", { className: Hn.l, ref: r, children: /* @__PURE__ */ n.jsx(Tn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((l) => /* @__PURE__ */ n.jsx(s.item, { data: l }, l.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
6865
6869
  /* @__PURE__ */ n.jsx("i", {}),
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(S,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],p):(S=typeof globalThis<"u"?globalThis:S||self,p((S.elCRM=S.elCRM||{},S.elCRM.components={}),S.React))})(this,function(S,p){"use strict";var js=Object.defineProperty;var Ss=(S,p,me)=>p in S?js(S,p,{enumerable:!0,configurable:!0,writable:!0,value:me}):S[p]=me;var Ot=(S,p,me)=>(Ss(S,typeof p!="symbol"?p+"":p,me),me);var me=document.createElement("style");me.textContent=`@charset "UTF-8";._notice_9i5tr_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_9i5tr_2 ._error_9i5tr_9{color:#bb2014}._notice_9i5tr_2 ._success_9i5tr_12{color:#367738}._notice_9i5tr_2 ._remark_9i5tr_15{color:#b77513}._notice_9i5tr_2 ._copy_9i5tr_18{color:#3f51b5}._notice_9i5tr_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_9i5tr_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_9i5tr_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}._notice_9i5tr_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_9i5tr_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_9i5tr_1{0%{opacity:1}to{opacity:0}}._alerts_1pds5_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1pds5_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1pds5_1 .4s 0s both;animation:_menuAnimation_1pds5_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1pds5_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1pds5_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1pds5_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1pds5_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1pds5_1 .2s 0s both;animation:_menuItemAnimation_1pds5_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1pds5_1 button[color=blue]{color:#1b6ac0}._alerts_1pds5_1 button[color=red]{color:#c21c0d}._alerts_1pds5_1 button:hover{background:var(--system-hover)}._alerts_1pds5_1 ._--body_1pds5_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1pds5_111 ._--form_1pds5_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}._al_1pds5_1{display:flex;color:#fff;font-weight:700;height:40px;align-items:center}._al_1pds5_1 svg{fill:#fff;width:25px;height:25px;margin:0 15px}._al_1pds5_1[active=success]{background:#4caf51}._al_1pds5_1[active=error]{background:#f44336}._al_1pds5_1[active=remark]{background:#ff9800}._al_1pds5_1[active=none],._al_1pds5_1[active="0"]{display:none}._al_1pds5_1[active="1"]{background:#ff9800}._al_1pds5_1[active="2"]{background:#f44336}._al_1pds5_1[active="3"]{background:#4caf51}._al_1pds5_1[active="4"]{background:#abb6d2}._al_1pds5_1[active="5"]{background:#506290}._al_1pds5_1 button{height:30px;line-height:30px;padding:0 20px;font-weight:400;margin-left:20px;background:#e6e6e6}._n_euuvm_1{flex:0 0 50px;cursor:pointer;color:#fff;border-right:1px solid #000;display:flex;justify-content:center;align-items:center}._n_euuvm_1 svg{width:30px;height:30px;color:#fff}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_11p39_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_11p39_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_11p39_1;animation-name:_shake_11p39_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_11p39_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_11p39_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_11p39_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_11p39_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_11p39_107{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_11p39_121{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_11p39_121 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_11p39_121 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_11p39_121 li:last-child{border-bottom:0}._l_11p39_121 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_11p39_159{padding-right:10px}._m_11p39_73{flex:1}._x_11p39_167{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_11p39_167 svg{width:20px}._s_11p39_177{flex:1;overflow-y:scroll}._c_11p39_182{text-align:center;margin:20px}._f_11p39_187{padding:0 20px;display:flex;flex-direction:column}._f_11p39_187 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_11p39_187 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_11p39_187 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_11p39_187 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_11p39_167:hover{opacity:1}._btn_11p39_230{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._g_11p39_243{display:flex;gap:10px}._c_11p39_182{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_11p39_182:first-child{margin-left:20px}._c_11p39_182:last-child{margin-right:20px}._c_11p39_182:hover{opacity:1;background:var(--tinge)}._c_11p39_182 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_11p39_182 b{text-align:center;display:block;color:var(--color)}._c_11p39_182 p{text-align:center;font-size:15px;color:var(--text)}._btn_11p39_230:hover{opacity:1}._modal_11p39_73._size-a_11p39_296 ._w_11p39_14{width:auto}._modal_11p39_73._size-s_11p39_300 ._w_11p39_14{width:400px}._modal_11p39_73._size-m_11p39_304 ._w_11p39_14{width:500px}._modal_11p39_73._size-l_11p39_308 ._w_11p39_14{width:800px}._modal_11p39_73._size-x_11p39_312 ._w_11p39_14{width:1000px}._modal_11p39_73._size-f_11p39_316 ._w_11p39_14{width:100%;max-width:1200px;min-width:910px}._btn_11p39_230._confirm_11p39_322{background:#4caf50;color:#fff}._btn_11p39_230._cancel_11p39_327{background:#f44336;color:#fff}._btn_11p39_230._disabled_11p39_332,._btn_11p39_230._await_11p39_339{background:#efefef;color:#000;opacity:1;cursor:default}._m_11p39_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_11p39_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_11p39_73 big i:hover{box-shadow:var(--inset)}._m_11p39_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_11p39_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_11p39_73 span._active_11p39_389{box-shadow:var(--inset);color:var(--color)}._coincidence_11p39_395{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_11p39_395 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_11p39_395 dl{display:flex;padding:0;margin:5px}._coincidence_11p39_395 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}._sa_11p39_431{width:auto}._ss_11p39_435{width:400px}._sm_11p39_439{width:500px}._sl_11p39_443{width:800px}._sx_11p39_447{width:1000px}._sf_11p39_451{width:100%;max-width:1200px;min-width:910px}button{background:#b95656;font-weight:700}._btn_1hz2s_6{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._confirm_1hz2s_19{background:#4caf50;color:#fff}._h_1usnu_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._g_1usnu_11{display:flex;gap:5px}._hr_1usnu_16{text-align:center;position:absolute;display:flex;top:0;right:0;align-items:center;gap:6px;padding-right:4px;height:35px}._hl_1usnu_28{text-align:center;position:absolute;display:flex;top:0;left:0;align-items:center;gap:6px;padding-left:4px;height:35px}._t_1usnu_40{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_1usnu_60{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_1usnu_69{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_1usnu_76{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._o_1usnu_76 ul{border-top:1px solid var(--separator);display:flex;flex-direction:column;gap:1px;background:var(--separator)}._o_1usnu_76 li{background:var(--content);display:flex}._o_1usnu_76 li[data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}._l_1usnu_105{flex:1;overflow:hidden;overflow-y:scroll;border-radius:0 0 5px 5px}._l_1usnu_105:last-child{border-radius:0}._hh_1usnu_115{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._c_1usnu_128{width:300px;height:150px;margin:auto;border-radius:5px;text-align:center;background:#0000004a;line-height:150px;color:#fff}[type=load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}[type=load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}[type=load] i:nth-last-child(1){animation:_loadingB_1usnu_1 1.5s 1s infinite}[type=load] i:nth-last-child(2){animation:_loadingB_1usnu_1 1.5s .5s infinite}[type=load] i:nth-last-child(3){animation:_loadingB_1usnu_1 1.5s 0s infinite}@keyframes _loadingB_1usnu_1{0%{width:15px}50%{width:35px}to{width:15px}}._m_1usnu_180{-webkit-app-region:no-drag;overflow:hidden;border-radius:5px;margin-top:5px;background:#fff;display:block;min-height:35px;padding:10px;text-align:justify;white-space:pre-line}._m_1usnu_180 dd{min-height:35px}._ul_1usnu_196{overflow:hidden;border-radius:0;background:var(--separator);list-style-type:none;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}._ul_1usnu_196 li{display:flex;font-size:12px;min-height:25px;cursor:pointer;align-items:center;gap:1px}._ul_1usnu_196 span{background:var(--content);flex:1;height:25px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._f_1usnu_226{border-top:1px solid var(--separator)}._f_1usnu_226 dl{display:flex;border-bottom:1px solid #ddd;margin:0}._f_1usnu_226 dt{flex:0 120px;font-size:13px;color:#999;margin:0;padding:6px 0 5px 9px}._f_1usnu_226 dd{flex:1;margin:0;border-left:1px solid #ddd;padding:5px;font-size:15px;min-height:17px;margin-inline-start:0px;overflow:hidden;overflow-x:scroll}._f_1usnu_226[edit] [edit=true]{color:red}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_dva4m_2{width:100%;overflow:auto}._setting_dva4m_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_dva4m_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_dva4m_2 nav li[tabs-active=true]{opacity:1}._setting_dva4m_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_dva4m_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_dva4m_2 li{font-size:20px;line-height:40px}._setting_dva4m_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;color:var(--setting-color);background:var(--setting-bg)}._setting_dva4m_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_dva4m_2 dt{flex:1;padding:0 15px}._setting_dva4m_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_dva4m_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_dva4m_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_dva4m_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_dva4m_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_dva4m_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_dva4m_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_dva4m_2 [role=button]:hover{background:var(--setting-action)}._setting_dva4m_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_dva4m_2 [role=button-outline]:hover{background:#00000038}._setting_dva4m_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_dva4m_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_dva4m_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_dva4m_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_dva4m_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_dva4m_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}._s_18bde_1{flex:1;overflow:scroll}._s_18bde_1 [data-load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._s_18bde_1 [data-load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._s_18bde_1 [data-load] i:nth-last-child(1){animation:_loadingB_18bde_1 1.5s 1s infinite}._s_18bde_1 [data-load] i:nth-last-child(2){animation:_loadingB_18bde_1 1.5s .5s infinite}._s_18bde_1 [data-load] i:nth-last-child(3){animation:_loadingB_18bde_1 1.5s 0s infinite}._ul_18bde_31{overflow:hidden;border-radius:0 0 5px 5px;background:var(--separator);display:block;list-style-type:none;list-style:none;padding:0;margin:0}._ul_18bde_31 [data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}@keyframes _loadingB_18bde_1{0%{width:15px}50%{width:35px}to{width:15px}}._o_1kqkq_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_1kqkq_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:#394264;z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_1kqkq_11 div{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_1kqkq_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_1kqkq_11 b:hover{background:#00000073}._c_1kqkq_11 p{color:#abb6d2;text-align:center;padding:0;margin:3px;cursor:default}._c_1kqkq_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_1kqkq_11 i:hover{background:#00000073}._c_1kqkq_11 i:before{cursor:pointer;display:block}._c_1kqkq_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_1kqkq_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_1kqkq_11 span{padding:2px;text-align:center}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password] dd:before{-webkit-text-security:none}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}._spinner_1ul0m_1{fill:#fff;display:block;width:70px;height:70px;margin:70px auto;animation:_spinner_1ul0m_1 1.5s infinite linear;border-radius:50%}@-webkit-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}._l_1ul0m_75{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._l_1ul0m_75 i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._l_1ul0m_75 i:nth-last-child(1){animation:_loadingB_1ul0m_1 1.5s 1s infinite}._l_1ul0m_75 i:nth-last-child(2){animation:_loadingB_1ul0m_1 1.5s .5s infinite}._l_1ul0m_75 i:nth-last-child(3){animation:_loadingB_1ul0m_1 1.5s 0s infinite}@keyframes _loadingB_1ul0m_1{0%{width:15px}50%{width:35px}to{width:15px}}._s_t9swc_1{flex:0 0 200px;cursor:text;text-align:left;line-height:30px;max-width:200px;overflow:hidden;white-space:nowrap;outline:none;height:30px;padding:0 5px 0 10px;color:#fff;margin-top:10px;margin-left:5px;background:#0000004d;border:1px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:inset 0 -5px 45px #64646433,0 1px 1px #fff3}._s_t9swc_1:empty:before{content:attr(placeholder);display:block;color:#ccc}._f_q3r0i_1{flex:0 0 50px;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}._f_q3r0i_1 svg{width:30px;height:30px;color:#fff}._f_q3r0i_1 i{width:15px;height:15px;color:#fff;position:absolute;background:red;border-radius:50%;font-style:normal;top:5px;right:0;display:flex;align-items:center;justify-content:center;padding:10px}._p_djnh1_1{background:#fff;display:none;height:35px;line-height:35px;margin-top:2px;display:flex}._p_djnh1_1 span{flex:1 1;display:flex;text-align:center;cursor:pointer;color:#999;font-style:normal}._p_djnh1_1 span[active]{color:#000}._p_djnh1_1 i{cursor:pointer;flex:0 1 40px;align-items:center;display:flex;fill:#999;justify-content:center}._p_djnh1_1 i:hover{fill:#000}._p_djnh1_1 i:first-child{transform:rotate(180deg)}._p_djnh1_1 svg{width:20px}._l_djnh1_38{flex:1;overflow:scroll}
2
- `,document.head.appendChild(me);let rt={};const F={enCode:e=>rt.enCode(e),deCode:e=>rt.deCode(e),New:e=>{rt=e}},C={},Y={},je={},At={},de={};let ot="M06";function ia(e){ot=e}function ra(){return ot}function oa(e){if(localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=F.deCode(a),a||ne(),C.id=a.id,C.tab=a.tab,C.page=a.page,C.module=a.module,C.time=a.time,C.payment={active:!0},C.module_admin=a.module_admin):(C.id=0,C.tab="",C.page="Main",C.module=C.module||ot)}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),C.id=0,C.tab="",C.page="Auth",C.module="M00";return e}function ne(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function sa(e){e=e.split("/"),C.page="Main",C.module=e[0],C.tab=e[1],C.id=0,sessionStorage.setItem("f",F.enCode({module:C.module,page:C.page,tab:C.tab,id:C.id,time:new Date().getTime()})),Y.page(C.page)}function la(e){return localStorage.setItem("d",e)}function da(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function ca(e){return localStorage.setItem("a",e)}function _a(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function ua(e){localStorage.setItem("p",F.enCode(e))}function st(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function fa(){const[e,t]=p.useState(Zt()),a=i=>{t(i)};return Y.page=a,[e]}function ma(e,t=!0){C.page=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.page(e)}function Zt(){return C.page}function pa(e){return C.page===e}function xa(e){if(typeof e!="function"){const[t,a]=p.useState(Gt()||e),i=r=>{a(r)};return Y.module=i,[t]}else Y.module=e}function ha(e,t=!0){C.module=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.module(e)}function Gt(){return C.module}function ga(e){return C.module===e}function va(e){if(typeof e!="function"){const[t,a]=p.useState(Ke()||e),i=r=>{a(r)};return Y.tabs=i,[t]}else Y.tabs=e}function ba(e,t=!0){C.tab=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.tabs(e)}function Ke(){return C.tab}function ka(e){return C.tab===e}function ya(e){if(typeof e!="function"){const[t,a]=p.useState(Wt()||e),i=r=>{a(r)};return Y.id=i,[t]}else Y.id=e}function wa(e){Y.id=e}function Ca(e,t=!0){C.id=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.id(e)}function Wt(){return C.id}function ja(e){return Number(C.id)===e}function Sa(e,t,a){C.module=e,C.id=a,C.tab=t,sessionStorage.setItem("f",F.enCode(C)),Y.module(e),Y.tabs(t)}function Ea(e){je.data=e[0],delete je.data.id,document.body.dataset.theme=je.data.s15,localStorage.setItem("s",F.enCode(je.data))}function Na(e,t){je.data[e]=t,localStorage.setItem("s",F.enCode(je.data))}function Ta(e){let t=localStorage.getItem("s");return t===null?{}:(t=F.deCode(t),t?e!==void 0?t[e]:t:ne())}function Kt(e){localStorage.setItem("m",F.enCode({data:e}))}function Ia(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),a=F.deCode(t);a||ne();const i=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return a.data.split(",").map(o=>"M"+i(2,o))}else return ne(),!1}function Da(e){Y.sort=e}function Ut(e){let t=localStorage.getItem("b");t=t===null?{}:F.deCode(t),t[Ke()]=e,localStorage.setItem("b",F.enCode(t))}function lt(){let e=localStorage.getItem("b");return e===null?{}:(e=F.deCode(e),e=e[Ke()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Vt(e){localStorage.setItem("c",F.enCode(e))}function qt(e,t){var i;let a=localStorage.getItem("c");if(a!==""&&a!=="undefined"&&a!==null){let r=F.deCode(a);return r||ne(),e===void 0?r:t?(i=r[e][t])==null?void 0:i.n:r[e]}else return ne(),!1}function Me(e){de.data=e,localStorage.setItem("q",F.enCode(de.data))}function Ma(e,t){de.data={...de.data,[e]:t},localStorage.setItem("q",F.enCode(de.data))}function be(e,t){if(!de.data){let a=localStorage.getItem("q");a&&(de.data=F.deCode(a))}return e===void 0&&t===void 0?de.data:e!==void 0&&t===void 0?de.data[e]:de.data[e][t]}function Fa(e){At.data=e}function $a(e){return At.data[e]}function Ba(e){C.payment=e}function La(){return C.payment}function Yt(e){localStorage.setItem("u",F.enCode(e))}function Pa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function Ht(e){localStorage.setItem("e",F.enCode(e))}function Ra(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=F.deCode(e);return t||ne(),t}catch{return{}}else return{}}function za(e){const t=a=>{let i=localStorage.getItem(a);if(i!==""&&i!=="undefined"&&i!==null)try{let r=F.deCode(i);if(!r)return;C[a]={is:!0,time:r.time,data:r.data}}catch{C[a]={is:!1,time:0,data:{}}}else C[a]={is:!1,time:0,data:{}}};e.forEach(a=>t(a))}function Oa(e){return C[e]===void 0?(C[e]={data:{},time:0},{data:{},time:0}):C[e]}function Aa(e,t){C[e]={data:t.data,time:t.time},localStorage.setItem(e,F.enCode(C[e]))}function Za(e,t,a){C[e].time=a,C[e].data[t.item][t.name]=t.value,localStorage.setItem(e,F.enCode(C[e]))}const ae={setSSID:la,getSSID:da,getPORT:st,setPORT:ua,setAUTH:ca,getAUTH:_a,Logaut:ne,Start:sa,setMenu:Kt,getMenu:Ia,useSort:Da,setSort:Ut,getSort:lt,setCompany:Vt,getCompany:qt,setSelect:Me,addSelect:Ma,getSelect:be,setApi:Fa,getApi:$a,setPayment:Ba,getPayment:La,setUser:Yt,getUser:Pa,getDefaultModules:ra,getBase:Oa,setBase:Aa,editBase:Za,loadBase:za},Jt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK",Ga=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Xt=typeof window<"u"&&window.Blob&&new Blob([Ga(Jt)],{type:"text/javascript;charset=utf-8"});function Qt(e){let t;try{if(t=Xt&&(window.URL||window.webkitURL).createObjectURL(Xt),!t)throw"";const a=new Worker(t,{name:e==null?void 0:e.name});return a.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+Jt,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const pe={};function Wa(e){return e&&(pe.s=e),pe.s}function Ka(e){return e&&(pe.a=e),pe.a}function Ua(e){return e&&(pe.c=e),pe.c}function Va(e){return e&&(pe.h=e),pe.h}const Ue={version:{Api:Ka,Server:Wa,Client:Ua},Host:Va};let qa="api",Ya="elcrm",Ha="online";function Ja(){let e=ae.getPORT(),t="",a="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,a=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",a="https://"+e.address+"/files"),{documents:t,files:a}}let en=`${qa}.${Ya}.${Ha}`;function Xa(e){return"https://"+ae.getPORT().address+"/audio/"+e}function Ve(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Qt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()||`https://${en}/`})})}function Qa(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Qt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()+"modules/"||`https://${en}/modules`})})}function ei(e,t={},a){const[i,r]=p.useState({status:"load"}),o=async s=>{let l=await Ve(e,s,a);r(l)};return p.useEffect(()=>{o(t)},[]),[i,o]}let tn={"Content-type":"application/json;charset=utf-8",ssid:ae.getAUTH()||""};async function ti(e,t,a={}){try{return await(await Ve("https://"+e+"/"+t,{method:"POST",headers:tn,body:JSON.stringify(a)})).json()}catch{return{status:"error"}}}async function ni(e,t={}){try{return await(await Ve("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:tn,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}const dt={audio:Xa,fetch:Ve,modules:Qa,remoute:ti,url:Ja,telegram:ni,use:ei};var ct={exports:{}},Fe={};/**
2
+ `,document.head.appendChild(me);let rt={};const F={enCode:e=>rt.enCode(e),deCode:e=>rt.deCode(e),New:e=>{rt=e}},C={},Y={},je={},At={},de={};let ot="M06";function ia(e){ot=e}function ra(){return ot}function oa(e){if(localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=F.deCode(a),a||ne(),C.id=a.id,C.tab=a.tab,C.page=a.page,C.module=a.module,C.time=a.time,C.payment={active:!0},C.module_admin=a.module_admin):(C.id=0,C.tab="",C.page="Main",C.module=C.module||ot)}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),C.id=0,C.tab="",C.page="Auth",C.module="M00";return e}function ne(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function sa(e){e=e.split("/"),C.page="Main",C.module=e[0],C.tab=e[1],C.id=0,sessionStorage.setItem("f",F.enCode({module:C.module,page:C.page,tab:C.tab,id:C.id,time:new Date().getTime()})),Y.page(C.page)}function la(e){return localStorage.setItem("d",e)}function da(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function ca(e){return localStorage.setItem("a",e)}function _a(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function ua(e){localStorage.setItem("p",F.enCode(e))}function st(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function fa(){const[e,t]=p.useState(Zt()),a=i=>{t(i)};return Y.page=a,[e]}function ma(e,t=!0){C.page=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.page(e)}function Zt(){return C.page}function pa(e){return C.page===e}function xa(e){if(typeof e!="function"){const[t,a]=p.useState(Gt()||e),i=r=>{a(r)};return Y.module=i,[t]}else Y.module=e}function ha(e,t=!0){C.module=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.module(e)}function Gt(){return C.module}function ga(e){return C.module===e}function va(e){if(typeof e!="function"){const[t,a]=p.useState(Ke()||e),[i,r]=p.useState(!1);p.useEffect(()=>{r(!0)},[]);const o=s=>{a(s)};return Y.tabs=o,[t,i]}else Y.tabs=e}function ba(e,t=!0){C.tab=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.tabs(e)}function Ke(){return C.tab}function ka(e){return C.tab===e}function ya(e){if(typeof e!="function"){const[t,a]=p.useState(Wt()||e),i=r=>{a(r)};return Y.id=i,[t]}else Y.id=e}function wa(e){Y.id=e}function Ca(e,t=!0){C.id=e,sessionStorage.setItem("f",F.enCode(C)),t&&Y.id(e)}function Wt(){return C.id}function ja(e){return Number(C.id)===e}function Sa(e,t,a){C.module=e,C.id=a,C.tab=t,sessionStorage.setItem("f",F.enCode(C)),Y.module(e),Y.tabs(t)}function Ea(e){je.data=e[0],delete je.data.id,document.body.dataset.theme=je.data.s15,localStorage.setItem("s",F.enCode(je.data))}function Na(e,t){je.data[e]=t,localStorage.setItem("s",F.enCode(je.data))}function Ta(e){let t=localStorage.getItem("s");return t===null?{}:(t=F.deCode(t),t?e!==void 0?t[e]:t:ne())}function Kt(e){localStorage.setItem("m",F.enCode({data:e}))}function Ia(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),a=F.deCode(t);a||ne();const i=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return a.data.split(",").map(o=>"M"+i(2,o))}else return ne(),!1}function Da(e){Y.sort=e}function Ut(e){let t=localStorage.getItem("b");t=t===null?{}:F.deCode(t),t[Ke()]=e,localStorage.setItem("b",F.enCode(t))}function lt(){let e=localStorage.getItem("b");return e===null?{}:(e=F.deCode(e),e=e[Ke()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Vt(e){localStorage.setItem("c",F.enCode(e))}function qt(e,t){var i;let a=localStorage.getItem("c");if(a!==""&&a!=="undefined"&&a!==null){let r=F.deCode(a);return r||ne(),e===void 0?r:t?(i=r[e][t])==null?void 0:i.n:r[e]}else return ne(),!1}function Me(e){de.data=e,localStorage.setItem("q",F.enCode(de.data))}function Ma(e,t){de.data={...de.data,[e]:t},localStorage.setItem("q",F.enCode(de.data))}function be(e,t){if(!de.data){let a=localStorage.getItem("q");a&&(de.data=F.deCode(a))}return e===void 0&&t===void 0?de.data:e!==void 0&&t===void 0?de.data[e]:de.data[e][t]}function Fa(e){At.data=e}function $a(e){return At.data[e]}function Ba(e){C.payment=e}function La(){return C.payment}function Yt(e){localStorage.setItem("u",F.enCode(e))}function Pa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function Ht(e){localStorage.setItem("e",F.enCode(e))}function Ra(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=F.deCode(e);return t||ne(),t}catch{return{}}else return{}}function za(e){const t=a=>{let i=localStorage.getItem(a);if(i!==""&&i!=="undefined"&&i!==null)try{let r=F.deCode(i);if(!r)return;C[a]={is:!0,time:r.time,data:r.data}}catch{C[a]={is:!1,time:0,data:{}}}else C[a]={is:!1,time:0,data:{}}};e.forEach(a=>t(a))}function Oa(e){return C[e]===void 0?(C[e]={data:{},time:0},{data:{},time:0}):C[e]}function Aa(e,t){C[e]={data:t.data,time:t.time},localStorage.setItem(e,F.enCode(C[e]))}function Za(e,t,a){C[e].time=a,C[e].data[t.item][t.name]=t.value,localStorage.setItem(e,F.enCode(C[e]))}const ae={setSSID:la,getSSID:da,getPORT:st,setPORT:ua,setAUTH:ca,getAUTH:_a,Logaut:ne,Start:sa,setMenu:Kt,getMenu:Ia,useSort:Da,setSort:Ut,getSort:lt,setCompany:Vt,getCompany:qt,setSelect:Me,addSelect:Ma,getSelect:be,setApi:Fa,getApi:$a,setPayment:Ba,getPayment:La,setUser:Yt,getUser:Pa,getDefaultModules:ra,getBase:Oa,setBase:Aa,editBase:Za,loadBase:za},Jt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK",Ga=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Xt=typeof window<"u"&&window.Blob&&new Blob([Ga(Jt)],{type:"text/javascript;charset=utf-8"});function Qt(e){let t;try{if(t=Xt&&(window.URL||window.webkitURL).createObjectURL(Xt),!t)throw"";const a=new Worker(t,{name:e==null?void 0:e.name});return a.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+Jt,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const pe={};function Wa(e){return e&&(pe.s=e),pe.s}function Ka(e){return e&&(pe.a=e),pe.a}function Ua(e){return e&&(pe.c=e),pe.c}function Va(e){return e&&(pe.h=e),pe.h}const Ue={version:{Api:Ka,Server:Wa,Client:Ua},Host:Va};let qa="api",Ya="elcrm",Ha="online";function Ja(){let e=ae.getPORT(),t="",a="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,a=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",a="https://"+e.address+"/files"),{documents:t,files:a}}let en=`${qa}.${Ya}.${Ha}`;function Xa(e){return"https://"+ae.getPORT().address+"/audio/"+e}function Ve(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Qt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()||`https://${en}/`})})}function Qa(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Qt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()+"modules/"||`https://${en}/modules`})})}function ei(e,t={},a){const[i,r]=p.useState({status:"load"}),o=async s=>{let l=await Ve(e,s,a);r(l)};return p.useEffect(()=>{o(t)},[]),[i,o]}let tn={"Content-type":"application/json;charset=utf-8",ssid:ae.getAUTH()||""};async function ti(e,t,a={}){try{return await(await Ve("https://"+e+"/"+t,{method:"POST",headers:tn,body:JSON.stringify(a)})).json()}catch{return{status:"error"}}}async function ni(e,t={}){try{return await(await Ve("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:tn,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}const dt={audio:Xa,fetch:Ve,modules:Qa,remoute:ti,url:Ja,telegram:ni,use:ei};var ct={exports:{}},Fe={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elcrm",
3
- "version": "0.8.34",
3
+ "version": "0.8.35",
4
4
  "description": "React framework for creating modules for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",