elcrm 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5,22 +5,22 @@ import x, { createElement as ja } from "react";
5
5
  let bt = {};
6
6
  const ba = (e) => {
7
7
  bt = e;
8
- }, wa = (e) => bt.enCode(e), Sa = (e) => bt.deCode(e), F = { enCode: wa, deCode: Sa, New: ba }, N = {}, X = {}, je = {}, mn = {}, oe = {};
8
+ }, wa = (e) => bt.enCode(e), Sa = (e) => bt.deCode(e), F = { enCode: wa, deCode: Sa, New: ba }, R = {}, X = {}, je = {}, mn = {}, oe = {};
9
9
  let wt = "M06";
10
10
  function Ea(e) {
11
11
  wt = e;
12
12
  }
13
- function Ra() {
13
+ function Na() {
14
14
  return wt;
15
15
  }
16
- function Na(e) {
16
+ function Ra(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = F.deCode(a), a || Q(), N.id = a.id, N.tab = a.tab, N.page = a.page, N.module = a.module, N.time = a.time, N.payment = { active: !0 }, N.module_admin = a.module_admin) : (N.id = 0, N.tab = "", N.page = "Main", N.module = N.module || wt);
19
+ a ? (a = F.deCode(a), a || Q(), R.id = a.id, R.tab = a.tab, R.page = a.page, R.module = a.module, R.time = a.time, R.payment = { active: !0 }, R.module_admin = a.module_admin) : (R.id = 0, R.tab = "", R.page = "Main", R.module = R.module || wt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
23
- ), ["f"].forEach((a) => sessionStorage.removeItem(a)), N.id = 0, N.tab = "", N.page = "Auth", N.module = "M00";
23
+ ), ["f"].forEach((a) => sessionStorage.removeItem(a)), R.id = 0, R.tab = "", R.page = "Auth", R.module = "M00";
24
24
  return e;
25
25
  }
26
26
  function Q() {
@@ -29,16 +29,16 @@ function Q() {
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
31
  function Ta(e) {
32
- e = e.split("/"), N.page = "Main", N.module = e[0], N.tab = e[1], N.id = 0, sessionStorage.setItem(
32
+ e = e.split("/"), R.page = "Main", R.module = e[0], R.tab = e[1], R.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  F.enCode({
35
- module: N.module,
36
- page: N.page,
37
- tab: N.tab,
38
- id: N.id,
35
+ module: R.module,
36
+ page: R.page,
37
+ tab: R.tab,
38
+ id: R.id,
39
39
  time: (/* @__PURE__ */ new Date()).getTime()
40
40
  })
41
- ), X.page(N.page);
41
+ ), X.page(R.page);
42
42
  }
43
43
  function Ia(e) {
44
44
  return localStorage.setItem("d", e);
@@ -72,10 +72,10 @@ function $a() {
72
72
  return X.page = a, [e];
73
73
  }
74
74
  function Pa(e) {
75
- N.page = e, sessionStorage.setItem("f", F.enCode(N)), X.page(e);
75
+ R.page = e, sessionStorage.setItem("f", F.enCode(R)), X.page(e);
76
76
  }
77
77
  function fn() {
78
- return N.page;
78
+ return R.page;
79
79
  }
80
80
  function Ba() {
81
81
  const [e, t] = x.useState(hn()), a = (r) => {
@@ -84,10 +84,10 @@ function Ba() {
84
84
  return X.module = a, [e];
85
85
  }
86
86
  function Oa(e, t) {
87
- N.module = e, sessionStorage.setItem("f", F.enCode(N)), t !== "false" && X.module(e);
87
+ R.module = e, sessionStorage.setItem("f", F.enCode(R)), t !== "false" && X.module(e);
88
88
  }
89
89
  function hn() {
90
- return N.module;
90
+ return R.module;
91
91
  }
92
92
  function Aa(e) {
93
93
  const [t, a] = x.useState(Je() || e), r = (s) => {
@@ -96,13 +96,13 @@ function Aa(e) {
96
96
  return X.tabs = r, [t];
97
97
  }
98
98
  function Za(e, t) {
99
- N.tab = e, sessionStorage.setItem("f", F.enCode(N)), t !== "false" && X.tabs(e);
99
+ R.tab = e, sessionStorage.setItem("f", F.enCode(R)), t !== "false" && X.tabs(e);
100
100
  }
101
101
  function Je() {
102
- return N.tab;
102
+ return R.tab;
103
103
  }
104
104
  function za(e) {
105
- const [t, a] = x.useState(N.id), r = (s) => {
105
+ const [t, a] = x.useState(R.id), r = (s) => {
106
106
  if (e)
107
107
  return e(s);
108
108
  a(s);
@@ -113,13 +113,13 @@ function Ga(e) {
113
113
  X.id = e;
114
114
  }
115
115
  function Ka(e, t = !0) {
116
- N.id = e, sessionStorage.setItem("f", F.enCode(N)), t && X.id(e);
116
+ R.id = e, sessionStorage.setItem("f", F.enCode(R)), t && X.id(e);
117
117
  }
118
118
  function Wa() {
119
- return N.id;
119
+ return R.id;
120
120
  }
121
121
  function Ua(e, t, a) {
122
- N.module = e, N.id = a, N.tab = t, sessionStorage.setItem("f", F.enCode(N)), X.module(e), X.tabs(t);
122
+ R.module = e, R.id = a, R.tab = t, sessionStorage.setItem("f", F.enCode(R)), X.module(e), X.tabs(t);
123
123
  }
124
124
  function Va(e) {
125
125
  je.data = e[0], delete je.data.id, document.body.dataset.theme = je.data.s15, localStorage.setItem("s", F.enCode(je.data));
@@ -192,10 +192,10 @@ function er(e) {
192
192
  return mn.data[e];
193
193
  }
194
194
  function tr(e) {
195
- N.payment = e;
195
+ R.payment = e;
196
196
  }
197
197
  function nr() {
198
- return N.payment;
198
+ return R.payment;
199
199
  }
200
200
  function Cn(e) {
201
201
  localStorage.setItem("u", F.enCode(e));
@@ -248,7 +248,7 @@ const se = {
248
248
  getPayment: nr,
249
249
  setUser: Cn,
250
250
  getUser: ar,
251
- getDefaultModules: Ra
251
+ getDefaultModules: Na
252
252
  }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", sr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([sr(kn)], { type: "text/javascript;charset=utf-8" });
253
253
  function yn(e) {
254
254
  let t;
@@ -426,10 +426,10 @@ function Cr() {
426
426
  B.unshift("Warning: " + h), Function.prototype.apply.call(console[o], console, B);
427
427
  }
428
428
  }
429
- var P = !1, S = !1, T = !1, R = !1, w = !1, ne;
429
+ var P = !1, S = !1, T = !1, N = !1, w = !1, ne;
430
430
  ne = Symbol.for("react.module.reference");
431
431
  function xe(o) {
432
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || w || o === s || o === d || o === u || R || o === g || P || S || T || typeof o == "object" && o !== null && (o.$$typeof === f || o.$$typeof === m || o.$$typeof === l || o.$$typeof === c || o.$$typeof === _ || // This needs to include all possible module reference object
432
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || w || o === s || o === d || o === u || N || o === g || P || S || T || typeof o == "object" && o !== null && (o.$$typeof === f || o.$$typeof === m || o.$$typeof === l || o.$$typeof === c || o.$$typeof === _ || // This needs to include all possible module reference object
433
433
  // types supported by any Flight configuration anywhere since
434
434
  // we don't know which Flight build this will end up being used
435
435
  // with.
@@ -490,14 +490,14 @@ function Cr() {
490
490
  }
491
491
  return null;
492
492
  }
493
- var V = Object.assign, Y = 0, ze, ae, Ne, et, Ge, Pt, Bt;
493
+ var V = Object.assign, Y = 0, ze, ae, Re, et, Ge, Pt, Bt;
494
494
  function Ot() {
495
495
  }
496
496
  Ot.__reactDisabledLog = !0;
497
497
  function Yn() {
498
498
  {
499
499
  if (Y === 0) {
500
- ze = console.log, ae = console.info, Ne = console.warn, et = console.error, Ge = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
500
+ ze = console.log, ae = console.info, Re = console.warn, et = console.error, Ge = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
501
501
  var o = {
502
502
  configurable: !0,
503
503
  enumerable: !0,
@@ -533,7 +533,7 @@ function Cr() {
533
533
  value: ae
534
534
  }),
535
535
  warn: V({}, o, {
536
- value: Ne
536
+ value: Re
537
537
  }),
538
538
  error: V({}, o, {
539
539
  value: et
@@ -1045,11 +1045,11 @@ function Ae({ data: e }) {
1045
1045
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1046
1046
  ] });
1047
1047
  }
1048
- function Rr(e) {
1048
+ function Nr(e) {
1049
1049
  let t = Date.now(), a = { key: t, ...e };
1050
1050
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1051
1051
  }
1052
- function Nr(e) {
1052
+ function Rr(e) {
1053
1053
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1054
1054
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1055
1055
  }
@@ -1132,7 +1132,7 @@ const Or = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1132
1132
  function Ar(e, t) {
1133
1133
  $e.set(/* @__PURE__ */ n.jsx(Or, { data: e, callback: t }));
1134
1134
  }
1135
- const Pe = { Send: Rr, Error: Nr, Remark: Ir, Success: Tr, Copy: Dr }, He = {
1135
+ const Pe = { Send: Nr, Error: Rr, Remark: Ir, Success: Tr, Copy: Dr }, He = {
1136
1136
  Path: Ua,
1137
1137
  setPage: Pa,
1138
1138
  getPage: fn,
@@ -1598,9 +1598,9 @@ function ls(e) {
1598
1598
  }
1599
1599
  const cs = (e) => {
1600
1600
  function t($, P) {
1601
- var S, R, T;
1601
+ var S, N, T;
1602
1602
  $ = $ ?? "", P = P ?? 1;
1603
- for (var S = [], T = 0, R = $.length; T < R; )
1603
+ for (var S = [], T = 0, N = $.length; T < N; )
1604
1604
  S.push($.slice(T, T += P));
1605
1605
  return S;
1606
1606
  }
@@ -1991,15 +1991,15 @@ const K = {
1991
1991
  function ks({ children: e }) {
1992
1992
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
1993
1993
  }
1994
- const ys = "_white_11p39_14", js = "_black_11p39_26", bs = "_shake_11p39_1", ws = "_modal_11p39_73", Ss = "_o_11p39_83", Es = "_w_11p39_14", Rs = "_h_11p39_107", Ns = "_l_11p39_121", Ts = "_t_11p39_159", Is = "_m_11p39_73", Ds = "_x_11p39_167", Ms = "_s_11p39_177", Fs = "_c_11p39_182", Ls = "_f_11p39_187", $s = "_btn_11p39_230", Ps = "_g_11p39_243", Bs = "_confirm_11p39_322", Os = "_cancel_11p39_327", As = "_disabled_11p39_332", Zs = "_active_11p39_389", zs = "_coincidence_11p39_395", Gs = "_sa_11p39_431", Ks = "_ss_11p39_435", Ws = "_sm_11p39_439", Us = "_sl_11p39_443", Vs = "_sx_11p39_447", Ys = "_sf_11p39_451", re = {
1994
+ const ys = "_white_11p39_14", js = "_black_11p39_26", bs = "_shake_11p39_1", ws = "_modal_11p39_73", Ss = "_o_11p39_83", Es = "_w_11p39_14", Ns = "_h_11p39_107", Rs = "_l_11p39_121", Ts = "_t_11p39_159", Is = "_m_11p39_73", Ds = "_x_11p39_167", Ms = "_s_11p39_177", Fs = "_c_11p39_182", Ls = "_f_11p39_187", $s = "_btn_11p39_230", Ps = "_g_11p39_243", Bs = "_confirm_11p39_322", Os = "_cancel_11p39_327", As = "_disabled_11p39_332", Zs = "_active_11p39_389", zs = "_coincidence_11p39_395", Gs = "_sa_11p39_431", Ks = "_ss_11p39_435", Ws = "_sm_11p39_439", Us = "_sl_11p39_443", Vs = "_sx_11p39_447", Ys = "_sf_11p39_451", re = {
1995
1995
  white: ys,
1996
1996
  black: js,
1997
1997
  shake: bs,
1998
1998
  modal: ws,
1999
1999
  o: Ss,
2000
2000
  w: Es,
2001
- h: Rs,
2002
- l: Ns,
2001
+ h: Ns,
2002
+ l: Rs,
2003
2003
  t: Ts,
2004
2004
  m: Is,
2005
2005
  x: Ds,
@@ -2262,7 +2262,7 @@ const bi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2262
2262
  H: on,
2263
2263
  M: Ei,
2264
2264
  F: dn
2265
- }, Ri = (e, t) => {
2265
+ }, Ni = (e, t) => {
2266
2266
  switch (t.type) {
2267
2267
  case "load":
2268
2268
  return {
@@ -2323,7 +2323,7 @@ const bi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2323
2323
  default:
2324
2324
  return e;
2325
2325
  }
2326
- }, Ni = () => ({
2326
+ }, Ri = () => ({
2327
2327
  load: !0,
2328
2328
  list: [],
2329
2329
  name: "Файлы",
@@ -2353,7 +2353,7 @@ const bi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2353
2353
  dir: r
2354
2354
  }) => {
2355
2355
  t = t || "Файлы";
2356
- const [s, i] = x.useReducer(Ri, {}, Ni), l = () => {
2356
+ const [s, i] = x.useReducer(Ni, {}, Ri), l = () => {
2357
2357
  Et.Add(
2358
2358
  /* @__PURE__ */ n.jsx(
2359
2359
  Di,
@@ -2504,13 +2504,13 @@ const bi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2504
2504
  ] }),
2505
2505
  /* @__PURE__ */ n.jsx("div", { className: "f080", children: K.Size(e.size) })
2506
2506
  ] });
2507
- }, Rt = { setSetting: Ya, getSetting: Ha };
2507
+ }, Nt = { setSetting: Ya, getSetting: Ha };
2508
2508
  let A = {};
2509
2509
  A.list = rr();
2510
2510
  A.active = null;
2511
2511
  const Fi = () => {
2512
2512
  var s;
2513
- let [e, t] = x.useState([]), [a, r] = x.useState(Rt.getSetting("s03"));
2513
+ let [e, t] = x.useState([]), [a, r] = x.useState(Nt.getSetting("s03"));
2514
2514
  return x.useEffect(() => {
2515
2515
  (async () => {
2516
2516
  let i = Object.keys(A.list);
@@ -2559,7 +2559,7 @@ const Fi = () => {
2559
2559
  text: "Запись добавлен в закладки"
2560
2560
  }));
2561
2561
  };
2562
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: Rt.getSetting("s03") !== 0 ? /* @__PURE__ */ n.jsx(
2562
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: Nt.getSetting("s03") !== 0 ? /* @__PURE__ */ n.jsx(
2563
2563
  "i",
2564
2564
  {
2565
2565
  "data-icon": "C018",
@@ -2901,7 +2901,7 @@ function Yi() {
2901
2901
  t([a]);
2902
2902
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
2903
2903
  }
2904
- const Hi = ({ children: e, config: t }) => (F.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2904
+ const Hi = ({ children: e, config: t }) => (F.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Ra(
2905
2905
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2906
2906
  /* @__PURE__ */ n.jsx(ti, { config: t.modal }),
2907
2907
  /* @__PURE__ */ n.jsx(Er, {}),
@@ -3104,7 +3104,7 @@ function Eo(e) {
3104
3104
  Qe.count(e);
3105
3105
  }
3106
3106
  const Al = { Init: jo, useValue: bo, Set: wo, Run: So, Count: Eo }, qe = {}, En = {};
3107
- function Ro(e) {
3107
+ function No(e) {
3108
3108
  const [t, a] = x.useState({}), r = async (s) => {
3109
3109
  a(
3110
3110
  Object.keys(qe).reduce((i, l) => (i ? i[l] = qe[l].all : i = {}, i), {})
@@ -3114,14 +3114,14 @@ function Ro(e) {
3114
3114
  e.forEach((s) => qe[s] = { all: 0 }), En.menu = r, r();
3115
3115
  }, [e]), t;
3116
3116
  }
3117
- function No(e, t) {
3117
+ function Ro(e, t) {
3118
3118
  switch (typeof t) {
3119
3119
  case "number":
3120
3120
  qe[e].all += t, En.menu();
3121
3121
  break;
3122
3122
  }
3123
3123
  }
3124
- const Zl = { useMenu: Ro, setUpdate: No };
3124
+ const Zl = { useMenu: No, setUpdate: Ro };
3125
3125
  class To {
3126
3126
  constructor(t = "el", a = "db") {
3127
3127
  dt(this, "storeName");
@@ -3143,9 +3143,9 @@ class To {
3143
3143
  }
3144
3144
  }
3145
3145
  let _t, G = {};
3146
- const Re = () => (_t || (_t = new To()), _t), fe = (e, t, a = Re()) => a._withIDBStore("readwrite", (r) => {
3146
+ const Ne = () => (_t || (_t = new To()), _t), fe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
3147
3147
  G[e] = t, r.put(F.enCode(t), e);
3148
- }), le = (e, t = Re()) => G[e] === void 0 ? new Promise((a, r) => {
3148
+ }), le = (e, t = Ne()) => G[e] === void 0 ? new Promise((a, r) => {
3149
3149
  let s;
3150
3150
  t._withIDBStore("readonly", (i) => {
3151
3151
  s = i.get(e);
@@ -3156,11 +3156,11 @@ const Re = () => (_t || (_t = new To()), _t), fe = (e, t, a = Re()) => a._withID
3156
3156
  } else
3157
3157
  a({});
3158
3158
  });
3159
- }) : G[e], Io = (e, t = Re()) => t._withIDBStore("readwrite", (a) => {
3159
+ }) : G[e], Io = (e, t = Ne()) => t._withIDBStore("readwrite", (a) => {
3160
3160
  a.delete(e);
3161
- }), kt = (e = Re()) => e._withIDBStore("readwrite", (t) => {
3161
+ }), kt = (e = Ne()) => e._withIDBStore("readwrite", (t) => {
3162
3162
  t.clear();
3163
- }), Do = (e = Re()) => {
3163
+ }), Do = (e = Ne()) => {
3164
3164
  const t = [];
3165
3165
  return e._withIDBStore("readonly", (a) => {
3166
3166
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
@@ -3191,7 +3191,7 @@ const Re = () => (_t || (_t = new To()), _t), fe = (e, t, a = Re()) => a._withID
3191
3191
  }), m.forEach((v) => {
3192
3192
  v === void 0 ? (kt(), location.reload()) : (s && g(v.id), c && C(v.id));
3193
3193
  }), { list: f, search: i, filter: r };
3194
- }, Fo = (e, t, a, r = Re()) => {
3194
+ }, Fo = (e, t, a, r = Ne()) => {
3195
3195
  if (G[e] === void 0)
3196
3196
  return new Promise((s, i) => {
3197
3197
  let l;
@@ -3266,7 +3266,7 @@ const Re = () => (_t || (_t = new To()), _t), fe = (e, t, a = Re()) => a._withID
3266
3266
  loadingB: Ko,
3267
3267
  ul: Wo
3268
3268
  };
3269
- function Rn({ children: e }) {
3269
+ function Nn({ children: e }) {
3270
3270
  return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
3271
3271
  }
3272
3272
  function Vo(e, t) {
@@ -3302,7 +3302,7 @@ function Vo(e, t) {
3302
3302
  throw new Error();
3303
3303
  }
3304
3304
  }
3305
- function Nn(e) {
3305
+ function Rn(e) {
3306
3306
  const t = x.useRef(null), [a, r] = x.useReducer(Vo, {
3307
3307
  load: !1,
3308
3308
  list: [],
@@ -3318,13 +3318,13 @@ function Nn(e) {
3318
3318
  let s = () => {
3319
3319
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !a.wait && r({ type: "update" });
3320
3320
  };
3321
- return /* @__PURE__ */ n.jsx("div", { className: Uo.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Rn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3321
+ return /* @__PURE__ */ n.jsx("div", { className: Uo.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3322
3322
  /* @__PURE__ */ n.jsx("i", {}),
3323
3323
  /* @__PURE__ */ n.jsx("i", {}),
3324
3324
  /* @__PURE__ */ n.jsx("i", {})
3325
3325
  ] }) }) });
3326
3326
  }
3327
- const Kl = { Scrolling: Nn }, Wl = { Widget: Ii }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3327
+ const Kl = { Scrolling: Rn }, Wl = { Widget: Ii }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3328
3328
  "div",
3329
3329
  {
3330
3330
  role: "switch",
@@ -3365,13 +3365,13 @@ function Be({
3365
3365
  onSave: g,
3366
3366
  className: C = ""
3367
3367
  }) {
3368
- let v = !!(l && (e === "" || e === void 0)), y = (R) => {
3369
- t && t({ value: R.target.textContent, name: a });
3370
- }, k = (R) => {
3371
- R.key === "Enter" && R.preventDefault();
3372
- }, j = (R) => {
3373
- }, $ = (R) => {
3374
- R.preventDefault(), navigator.clipboard.writeText(R.target.textContent).then(
3368
+ let v = !!(l && (e === "" || e === void 0)), y = (N) => {
3369
+ t && t({ value: N.target.textContent, name: a });
3370
+ }, k = (N) => {
3371
+ N.key === "Enter" && N.preventDefault();
3372
+ }, j = (N) => {
3373
+ }, $ = (N) => {
3374
+ N.preventDefault(), navigator.clipboard.writeText(N.target.textContent).then(
3375
3375
  function() {
3376
3376
  Pe.Copy("Данные в буфер обмене");
3377
3377
  },
@@ -3385,8 +3385,8 @@ function Be({
3385
3385
  P.field = "input", C && (P.className = C);
3386
3386
  const S = {};
3387
3387
  r && (S.placeholder = r), c && _ && (S.edit = "");
3388
- const T = (R) => {
3389
- he.Blur(R), g && g({ value: R.target.textContent, name: a });
3388
+ const T = (N) => {
3389
+ he.Blur(N), g && g({ value: N.target.textContent, name: a });
3390
3390
  };
3391
3391
  return /* @__PURE__ */ n.jsxs("dl", { ...P, children: [
3392
3392
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
@@ -3708,7 +3708,7 @@ const Yo = "_o_1kqkq_1", Ho = "_c_1kqkq_11", be = {
3708
3708
  o: Yo,
3709
3709
  c: Ho
3710
3710
  };
3711
- function Nt(e) {
3711
+ function Rt(e) {
3712
3712
  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 : "", [l, c] = x.useState(
3713
3713
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3714
3714
  ), _ = !r && s;
@@ -4123,13 +4123,13 @@ function Dt({
4123
4123
  };
4124
4124
  const T = {};
4125
4125
  T.field = "input", u && (T.className = u);
4126
- let R = {};
4127
- return r && t ? (R.edit = "true", R.contentEditable = "plaintext-only") : R.contentEditable = "false", d && (R.placeholder = d), f && (R.after = f), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4126
+ let N = {};
4127
+ return r && t ? (N.edit = "true", N.contentEditable = "plaintext-only") : N.contentEditable = "false", d && (N.placeholder = d), f && (N.after = f), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4128
4128
  C(),
4129
4129
  /* @__PURE__ */ n.jsx(
4130
4130
  "dd",
4131
4131
  {
4132
- ...R,
4132
+ ...N,
4133
4133
  onPaste: S,
4134
4134
  onInput: j,
4135
4135
  onKeyDown: $,
@@ -5613,8 +5613,8 @@ function Mt({
5613
5613
  "_"
5614
5614
  ), V = "")));
5615
5615
  });
5616
- let Ne = v.replace(/\D/g, "");
5617
- return Ne.length >= Y.length && (Y = Ne), { q: v.replace(/[_\d]/g, function() {
5616
+ let Re = v.replace(/\D/g, "");
5617
+ return Re.length >= Y.length && (Y = Re), { q: v.replace(/[_\d]/g, function() {
5618
5618
  return Y.charAt(M++) || "_";
5619
5619
  }), i: M, v: Y, f: V };
5620
5620
  }, S = (Z) => {
@@ -5625,7 +5625,7 @@ function Mt({
5625
5625
  function(M) {
5626
5626
  }
5627
5627
  );
5628
- }, T = P(e), R = (Z) => {
5628
+ }, T = P(e), N = (Z) => {
5629
5629
  let M = P(Z.target.textContent);
5630
5630
  Z.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !== v ? M.i++ : M.i = M.q.indexOf("_"), j(M.i, Z.target), t && t({ value: M.q.replace(/\D/g, ""), name: r });
5631
5631
  }, w = (Z) => {
@@ -5646,7 +5646,7 @@ function Mt({
5646
5646
  {
5647
5647
  ...de,
5648
5648
  onPaste: $,
5649
- onInput: R,
5649
+ onInput: N,
5650
5650
  onKeyDown: w,
5651
5651
  onContextMenu: S,
5652
5652
  onBlur: ne,
@@ -5931,7 +5931,7 @@ function yt({
5931
5931
  );
5932
5932
  case "Date":
5933
5933
  return /* @__PURE__ */ n.jsx(
5934
- Nt,
5934
+ Rt,
5935
5935
  {
5936
5936
  title: i,
5937
5937
  show: d,
@@ -6071,12 +6071,12 @@ function zn({
6071
6071
  let v = !!(l && (e === "" || e === void 0)), y = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = x.useRef(null);
6072
6072
  if (!(c && _) && !u || !(c && _) && v)
6073
6073
  return "";
6074
- let j = (R) => {
6075
- k.current.textContent = R, t && t({ value: R, name: a });
6076
- }, $ = (R) => {
6077
- g && g({ value: R, name: a });
6078
- }, P = (R) => {
6079
- const w = R.target.getBoundingClientRect(), ne = w.left, xe = w.top;
6074
+ let j = (N) => {
6075
+ k.current.textContent = N, t && t({ value: N, name: a });
6076
+ }, $ = (N) => {
6077
+ g && g({ value: N, name: a });
6078
+ }, P = (N) => {
6079
+ const w = N.target.getBoundingClientRect(), ne = w.left, xe = w.top;
6080
6080
  Ee.setListener(
6081
6081
  "form",
6082
6082
  /* @__PURE__ */ n.jsx(
@@ -6142,34 +6142,34 @@ const el = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6142
6142
  if (l === "hour")
6143
6143
  if (T.deltaY > 0) {
6144
6144
  u += T.deltaY;
6145
- let R = parseInt(String(u / 50));
6146
- if (m !== R) {
6147
- m = R;
6145
+ let N = parseInt(String(u / 50));
6146
+ if (m !== N) {
6147
+ m = N;
6148
6148
  let w = parseInt(i.h, 10) + 1;
6149
6149
  w = w > 23 ? 0 : w, i = { ...i, h: K.Number(2, w) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6150
6150
  }
6151
6151
  } else {
6152
6152
  u -= T.deltaY;
6153
- let R = parseInt(String(u / 50));
6154
- if (m !== R) {
6155
- m = R;
6153
+ let N = parseInt(String(u / 50));
6154
+ if (m !== N) {
6155
+ m = N;
6156
6156
  let w = parseInt(i.h, 10) - 1;
6157
6157
  w = w < 0 ? 23 : w, i = { ...i, h: K.Number(2, w) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6158
6158
  }
6159
6159
  }
6160
6160
  else if (T.deltaY > 0) {
6161
6161
  u += T.deltaY;
6162
- let R = parseInt(String(u / 50));
6163
- if (m !== R) {
6164
- m = R;
6162
+ let N = parseInt(String(u / 50));
6163
+ if (m !== N) {
6164
+ m = N;
6165
6165
  let w = parseInt(i.m, 10) + 1;
6166
6166
  w = w > 59 ? 0 : w, i = { ...i, m: K.Number(2, w) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6167
6167
  }
6168
6168
  } else {
6169
6169
  u -= T.deltaY;
6170
- let R = parseInt(String(u / 50));
6171
- if (m !== R) {
6172
- m = R;
6170
+ let N = parseInt(String(u / 50));
6171
+ if (m !== N) {
6172
+ m = N;
6173
6173
  let w = parseInt(i.m, 10) - 1;
6174
6174
  w = w < 0 ? 59 : w, i = { ...i, m: K.Number(2, w) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6175
6175
  }
@@ -6187,7 +6187,7 @@ const el = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6187
6187
  },
6188
6188
  (/* @__PURE__ */ new Date()).getTime()
6189
6189
  ),
6190
- /* @__PURE__ */ n.jsx(
6190
+ /* @__PURE__ */ n.jsxs(
6191
6191
  "div",
6192
6192
  {
6193
6193
  className: be.c,
@@ -6197,7 +6197,18 @@ const el = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6197
6197
  onWheel: y,
6198
6198
  ref: f.body,
6199
6199
  style: { top: P + "px", left: S + "px" },
6200
- children: "xxxx"
6200
+ children: [
6201
+ /* @__PURE__ */ n.jsx("div", { className: "b" }),
6202
+ /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
6203
+ /* @__PURE__ */ n.jsx("span", { className: "hour", ref: f.hourText, children: i.h }),
6204
+ " ",
6205
+ ":",
6206
+ " ",
6207
+ /* @__PURE__ */ n.jsx("span", { className: "min", ref: f.timeText, children: i.m })
6208
+ ] }),
6209
+ /* @__PURE__ */ n.jsx("div", { className: "h", ref: f.hour }),
6210
+ /* @__PURE__ */ n.jsx("div", { className: "t", ref: f.time })
6211
+ ]
6201
6212
  }
6202
6213
  )
6203
6214
  ] }) : "" });
@@ -6239,7 +6250,7 @@ function al() {
6239
6250
  }
6240
6251
  const Ul = {
6241
6252
  Color: $n,
6242
- Date: Nt,
6253
+ Date: Rt,
6243
6254
  Code: Ln,
6244
6255
  Check: Gn,
6245
6256
  Switch: Tn,
@@ -6268,7 +6279,7 @@ const Ul = {
6268
6279
  setValue: nl
6269
6280
  }, Vl = {
6270
6281
  Color: $n,
6271
- Date: Nt,
6282
+ Date: Rt,
6272
6283
  Code: Ln,
6273
6284
  Check: Gn,
6274
6285
  Switch: Tn,
@@ -6575,7 +6586,7 @@ function El(e) {
6575
6586
  /* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
6576
6587
  ] });
6577
6588
  }
6578
- function Rl(e, t) {
6589
+ function Nl(e, t) {
6579
6590
  switch (t.type) {
6580
6591
  case "load":
6581
6592
  return {
@@ -6597,7 +6608,7 @@ function Rl(e, t) {
6597
6608
  }
6598
6609
  }
6599
6610
  function Vn({ load: e, list: t, item: a }) {
6600
- const r = x.useRef(null), [s, i] = x.useReducer(Rl, {
6611
+ const r = x.useRef(null), [s, i] = x.useReducer(Nl, {
6601
6612
  load: !1,
6602
6613
  list: [],
6603
6614
  data: {},
@@ -6617,7 +6628,7 @@ function Vn({ load: e, list: t, item: a }) {
6617
6628
  };
6618
6629
  return x.useEffect(() => {
6619
6630
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6620
- /* @__PURE__ */ n.jsx("div", { className: Un.l, ref: r, children: /* @__PURE__ */ n.jsx(Rn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((c) => /* @__PURE__ */ n.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
6631
+ /* @__PURE__ */ n.jsx("div", { className: Un.l, ref: r, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((c) => /* @__PURE__ */ n.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
6621
6632
  /* @__PURE__ */ n.jsx("i", {}),
6622
6633
  /* @__PURE__ */ n.jsx("i", {}),
6623
6634
  /* @__PURE__ */ n.jsx("i", {})
@@ -6633,11 +6644,11 @@ function Vn({ load: e, list: t, item: a }) {
6633
6644
  ] });
6634
6645
  }
6635
6646
  const Xl = { Pagination: Vn };
6636
- function Nl({ head: e, load: t, list: a, item: r }) {
6647
+ function Rl({ head: e, load: t, list: a, item: r }) {
6637
6648
  const s = e;
6638
6649
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6639
6650
  /* @__PURE__ */ n.jsx(s, {}),
6640
- Rt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Vn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(Nn, { list: a, load: t, item: r })
6651
+ Nt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Vn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(Rn, { list: a, load: t, item: r })
6641
6652
  ] });
6642
6653
  }
6643
6654
  function Tl(e, t) {
@@ -6688,7 +6699,7 @@ function Il(e) {
6688
6699
  function Dl(e) {
6689
6700
  jt.get && jt.get(e);
6690
6701
  }
6691
- const Ql = { View: Nl, Reducer: Tl, useValue: Il, setValue: Dl }, ec = { Get: ns }, tc = { Open: Bi };
6702
+ const Ql = { View: Rl, Reducer: Tl, useValue: Il, setValue: Dl }, ec = { Get: ns }, tc = { Open: Bi };
6692
6703
  export {
6693
6704
  _o as Action,
6694
6705
  Bl as Alert,
@@ -6726,6 +6737,6 @@ export {
6726
6737
  se as Store,
6727
6738
  to as Tabs,
6728
6739
  Al as Triage,
6729
- Rt as User,
6740
+ Nt as User,
6730
6741
  O as WebRTC
6731
6742
  };