elcrm 0.6.8 → 0.6.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
@@ -2,22 +2,22 @@ import './index.css';var ka = Object.defineProperty;
2
2
  var ya = (e, t, n) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ot = (e, t, n) => (ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import g, { createElement as ja } from "react";
5
- let Ct = {};
5
+ let kt = {};
6
6
  const ba = (e) => {
7
- console.log("+++++", e), Ct = e;
8
- }, wa = (e) => Ct.enCode(e), Sa = (e) => Ct.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, un = {}, he = {};
9
- let kt = "M06";
7
+ console.log("+++++", e), kt = e;
8
+ }, wa = (e) => kt.enCode(e), Sa = (e) => kt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
9
+ let yt = "M06";
10
10
  function Ea(e) {
11
- kt = e;
11
+ yt = e;
12
12
  }
13
13
  function Ra() {
14
- return kt;
14
+ return yt;
15
15
  }
16
16
  function Na(e) {
17
17
  let t = localStorage.getItem("d");
18
18
  if (console.log(t), t) {
19
19
  let n = sessionStorage.getItem("f");
20
- n ? (n = D.deCode(n), n || ee(), E.id = n.id, E.tab = n.tab, E.page = n.page, E.module = n.module, E.time = n.time, E.payment = { active: !0 }, E.module_admin = n.module_admin) : (E.id = 0, E.tab = "", E.page = "Main", E.module = E.module || kt);
20
+ n ? (n = D.deCode(n), n || ee(), E.id = n.id, E.tab = n.tab, E.page = n.page, E.module = n.module, E.time = n.time, E.payment = { active: !0 }, E.module_admin = n.module_admin) : (E.id = 0, E.tab = "", E.page = "Main", E.module = E.module || yt);
21
21
  } else
22
22
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
23
23
  (n) => localStorage.removeItem(n)
@@ -67,7 +67,7 @@ function dt() {
67
67
  return ee(), !1;
68
68
  }
69
69
  function $a() {
70
- const [e, t] = g.useState(mn()), n = (s) => {
70
+ const [e, t] = g.useState(fn()), n = (s) => {
71
71
  t(s);
72
72
  };
73
73
  return Q.page = n, [e];
@@ -75,11 +75,11 @@ function $a() {
75
75
  function Pa(e) {
76
76
  E.page = e, sessionStorage.setItem("f", D.enCode(E)), Q.page(e);
77
77
  }
78
- function mn() {
78
+ function fn() {
79
79
  return E.page;
80
80
  }
81
81
  function Ba() {
82
- const [e, t] = g.useState(fn()), n = (s) => {
82
+ const [e, t] = g.useState(hn()), n = (s) => {
83
83
  t(s);
84
84
  };
85
85
  return Q.module = n, [e];
@@ -87,7 +87,7 @@ function Ba() {
87
87
  function Oa(e, t) {
88
88
  E.module = e, sessionStorage.setItem("f", D.enCode(E)), t !== "false" && Q.module(e);
89
89
  }
90
- function fn() {
90
+ function hn() {
91
91
  return E.module;
92
92
  }
93
93
  function Aa(e) {
@@ -132,7 +132,7 @@ function Ha(e) {
132
132
  let t = localStorage.getItem("s");
133
133
  return t === null ? {} : (t = D.deCode(t), t ? e !== void 0 ? t[e] : t : ee());
134
134
  }
135
- function hn(e) {
135
+ function gn(e) {
136
136
  localStorage.setItem("m", D.enCode({ data: e }));
137
137
  }
138
138
  function qa() {
@@ -153,7 +153,7 @@ function qa() {
153
153
  function Ja(e) {
154
154
  Q.sort = e;
155
155
  }
156
- function gn(e) {
156
+ function xn(e) {
157
157
  let t = localStorage.getItem("b");
158
158
  t = t === null ? {} : D.deCode(t), t[He()] = e, localStorage.setItem("b", D.enCode(t));
159
159
  }
@@ -161,10 +161,10 @@ function _t() {
161
161
  let e = localStorage.getItem("b");
162
162
  return e === null ? {} : (e = D.deCode(e), e = e[He()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
163
163
  }
164
- function xn(e) {
164
+ function pn(e) {
165
165
  localStorage.setItem("c", D.enCode(e));
166
166
  }
167
- function pn(e) {
167
+ function vn(e) {
168
168
  let t = localStorage.getItem("c");
169
169
  if (t !== "" && t !== "undefined" && t !== null) {
170
170
  let n = D.deCode(t);
@@ -183,10 +183,10 @@ function Be(e, t) {
183
183
  return e === void 0 && t === void 0 ? he.data : e !== void 0 && t === void 0 ? he.data[e] : he.data[e][t];
184
184
  }
185
185
  function Xa(e) {
186
- un.data = e;
186
+ mn.data = e;
187
187
  }
188
188
  function Qa(e) {
189
- return un.data[e];
189
+ return mn.data[e];
190
190
  }
191
191
  function es(e) {
192
192
  E.payment = e;
@@ -194,7 +194,7 @@ function es(e) {
194
194
  function ts() {
195
195
  return E.payment;
196
196
  }
197
- function vn(e) {
197
+ function Cn(e) {
198
198
  localStorage.setItem("u", D.enCode(e));
199
199
  }
200
200
  function ns() {
@@ -205,7 +205,7 @@ function ns() {
205
205
  } else
206
206
  return ee(), !1;
207
207
  }
208
- function Qt(e) {
208
+ function en(e) {
209
209
  localStorage.setItem("e", D.enCode(e));
210
210
  }
211
211
  function as() {
@@ -229,27 +229,27 @@ const re = {
229
229
  getAUTH: Fa,
230
230
  Logaut: ee,
231
231
  Start: Ta,
232
- setMenu: hn,
232
+ setMenu: gn,
233
233
  getMenu: qa,
234
234
  useSort: Ja,
235
- setSort: gn,
235
+ setSort: xn,
236
236
  getSort: _t,
237
- setCompany: xn,
238
- getCompany: pn,
237
+ setCompany: pn,
238
+ getCompany: vn,
239
239
  setSelect: Pe,
240
240
  getSelect: Be,
241
241
  setApi: Xa,
242
242
  getApi: Qa,
243
243
  setPayment: es,
244
244
  getPayment: ts,
245
- setUser: vn,
245
+ setUser: Cn,
246
246
  getUser: ns,
247
247
  getDefaultModules: Ra
248
- }, Cn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2xldCBzPWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOmEuZGF0YS5zc2lkfSxib2R5OkpTT04uc3RyaW5naWZ5KGEuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IHMuanNvbigpKX1jYXRjaChzKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOnN9KX19fSkoKTsK", ss = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), en = typeof window < "u" && window.Blob && new Blob([ss(Cn)], { type: "text/javascript;charset=utf-8" });
249
- function kn(e) {
248
+ }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2xldCBzPWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOmEuZGF0YS5zc2lkfSxib2R5OkpTT04uc3RyaW5naWZ5KGEuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IHMuanNvbigpKX1jYXRjaChzKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOnN9KX19fSkoKTsK", ss = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([ss(kn)], { type: "text/javascript;charset=utf-8" });
249
+ function yn(e) {
250
250
  let t;
251
251
  try {
252
- if (t = en && (window.URL || window.webkitURL).createObjectURL(en), !t)
252
+ if (t = tn && (window.URL || window.webkitURL).createObjectURL(tn), !t)
253
253
  throw "";
254
254
  const n = new Worker(t, {
255
255
  name: e == null ? void 0 : e.name
@@ -259,7 +259,7 @@ function kn(e) {
259
259
  }), n;
260
260
  } catch {
261
261
  return new Worker(
262
- "data:text/javascript;base64," + Cn,
262
+ "data:text/javascript;base64," + kn,
263
263
  {
264
264
  name: e == null ? void 0 : e.name
265
265
  }
@@ -281,7 +281,7 @@ function os(e) {
281
281
  function ls(e) {
282
282
  return e && (_e.h = e), _e.h;
283
283
  }
284
- const yt = { version: { Api: is, Server: rs, Client: os }, Host: ls };
284
+ const jt = { version: { Api: is, Server: rs, Client: os }, Host: ls };
285
285
  let cs = "api", ds = "elcrm", _s = "online";
286
286
  function us() {
287
287
  let e = re.getPORT(), t = "", n = "";
@@ -290,45 +290,45 @@ function us() {
290
290
  files: n
291
291
  };
292
292
  }
293
- let yn = `${cs}.${ds}.${_s}`;
293
+ let jn = `${cs}.${ds}.${_s}`;
294
294
  function ms(e) {
295
295
  return "https://" + re.getPORT().address + "/audio/" + e;
296
296
  }
297
- function jt(e, t = {}, n = re.getAUTH()) {
297
+ function bt(e, t = {}, n = re.getAUTH()) {
298
298
  return new Promise((s) => {
299
- const r = new kn();
299
+ const r = new yn();
300
300
  r.onmessage = (i) => {
301
301
  s(i.data), r.terminate();
302
302
  }, r.postMessage({
303
303
  link: e,
304
304
  data: t,
305
305
  ssid: n,
306
- host: yt.Host() || `https://${yn}/`
306
+ host: jt.Host() || `https://${jn}/`
307
307
  });
308
308
  });
309
309
  }
310
310
  function fs(e, t = {}, n = re.getAUTH()) {
311
311
  return new Promise((s) => {
312
- const r = new kn();
312
+ const r = new yn();
313
313
  r.onmessage = (i) => {
314
314
  s(i.data), r.terminate();
315
315
  }, r.postMessage({
316
316
  link: e,
317
317
  data: t,
318
318
  ssid: n,
319
- host: yt.Host() + "modules/" || `https://${yn}/modules`
319
+ host: jt.Host() + "modules/" || `https://${jn}/modules`
320
320
  });
321
321
  });
322
322
  }
323
- let jn = {
323
+ let bn = {
324
324
  "Content-type": "application/json;charset=utf-8",
325
325
  ssid: re.getAUTH() || ""
326
326
  };
327
327
  async function hs(e, t, n = {}) {
328
328
  try {
329
- return await (await jt("https://" + e + "/" + t, {
329
+ return await (await bt("https://" + e + "/" + t, {
330
330
  method: "POST",
331
- headers: jn,
331
+ headers: bn,
332
332
  body: JSON.stringify(n)
333
333
  })).json();
334
334
  } catch {
@@ -337,16 +337,16 @@ async function hs(e, t, n = {}) {
337
337
  }
338
338
  async function gs(e, t = {}) {
339
339
  try {
340
- return await (await jt("https://tb.elcrm.online/v1/" + e, {
340
+ return await (await bt("https://tb.elcrm.online/v1/" + e, {
341
341
  method: "POST",
342
- headers: jn,
342
+ headers: bn,
343
343
  body: JSON.stringify(t)
344
344
  })).json();
345
345
  } catch {
346
346
  return { status: "error" };
347
347
  }
348
348
  }
349
- const tn = { audio: ms, fetch: jt, modules: fs, remoute: hs, url: us, telegram: gs };
349
+ const nn = { audio: ms, fetch: bt, modules: fs, remoute: hs, url: us, telegram: gs };
350
350
  var ut = { exports: {} }, Te = {};
351
351
  /**
352
352
  * @license React
@@ -357,11 +357,11 @@ var ut = { exports: {} }, Te = {};
357
357
  * This source code is licensed under the MIT license found in the
358
358
  * LICENSE file in the root directory of this source tree.
359
359
  */
360
- var nn;
360
+ var an;
361
361
  function xs() {
362
- if (nn)
362
+ if (an)
363
363
  return Te;
364
- nn = 1;
364
+ an = 1;
365
365
  var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
366
366
  function c(l, _, d) {
367
367
  var u, m = {}, h = null, x = null;
@@ -385,9 +385,9 @@ var Ie = {};
385
385
  * This source code is licensed under the MIT license found in the
386
386
  * LICENSE file in the root directory of this source tree.
387
387
  */
388
- var an;
388
+ var sn;
389
389
  function ps() {
390
- return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
390
+ return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
391
391
  var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), p = Symbol.iterator, k = "@@iterator";
392
392
  function w(o) {
393
393
  if (o === null || typeof o != "object")
@@ -477,18 +477,18 @@ function ps() {
477
477
  }
478
478
  return null;
479
479
  }
480
- var le = Object.assign, q = 0, Ee, Je, ze, Ft, Lt, $t, Pt;
481
- function Bt() {
480
+ var le = Object.assign, q = 0, Ee, Je, ze, Lt, $t, Pt, Bt;
481
+ function Ot() {
482
482
  }
483
- Bt.__reactDisabledLog = !0;
483
+ Ot.__reactDisabledLog = !0;
484
484
  function Yn() {
485
485
  {
486
486
  if (q === 0) {
487
- Ee = console.log, Je = console.info, ze = console.warn, Ft = console.error, Lt = console.group, $t = console.groupCollapsed, Pt = console.groupEnd;
487
+ Ee = console.log, Je = console.info, ze = console.warn, Lt = console.error, $t = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
488
488
  var o = {
489
489
  configurable: !0,
490
490
  enumerable: !0,
491
- value: Bt,
491
+ value: Ot,
492
492
  writable: !0
493
493
  };
494
494
  Object.defineProperties(console, {
@@ -523,16 +523,16 @@ function ps() {
523
523
  value: ze
524
524
  }),
525
525
  error: le({}, o, {
526
- value: Ft
526
+ value: Lt
527
527
  }),
528
528
  group: le({}, o, {
529
- value: Lt
529
+ value: $t
530
530
  }),
531
531
  groupCollapsed: le({}, o, {
532
- value: $t
532
+ value: Pt
533
533
  }),
534
534
  groupEnd: le({}, o, {
535
- value: Pt
535
+ value: Bt
536
536
  })
537
537
  });
538
538
  }
@@ -558,7 +558,7 @@ function ps() {
558
558
  var qn = typeof WeakMap == "function" ? WeakMap : Map;
559
559
  Ge = new qn();
560
560
  }
561
- function Ot(o, f) {
561
+ function At(o, f) {
562
562
  if (!o || et)
563
563
  return "";
564
564
  {
@@ -630,7 +630,7 @@ function ps() {
630
630
  return typeof o == "function" && Ge.set(o, fe), fe;
631
631
  }
632
632
  function Jn(o, f, v) {
633
- return Ot(o, !1);
633
+ return At(o, !1);
634
634
  }
635
635
  function Xn(o) {
636
636
  var f = o.prototype;
@@ -640,7 +640,7 @@ function ps() {
640
640
  if (o == null)
641
641
  return "";
642
642
  if (typeof o == "function")
643
- return Ot(o, Xn(o));
643
+ return At(o, Xn(o));
644
644
  if (typeof o == "string")
645
645
  return Ze(o);
646
646
  switch (o) {
@@ -665,13 +665,13 @@ function ps() {
665
665
  }
666
666
  return "";
667
667
  }
668
- var Re = Object.prototype.hasOwnProperty, At = {}, zt = y.ReactDebugCurrentFrame;
668
+ var Re = Object.prototype.hasOwnProperty, zt = {}, Zt = y.ReactDebugCurrentFrame;
669
669
  function We(o) {
670
670
  if (o) {
671
671
  var f = o._owner, v = Ke(o.type, o._source, f ? f.type : null);
672
- zt.setExtraStackFrame(v);
672
+ Zt.setExtraStackFrame(v);
673
673
  } else
674
- zt.setExtraStackFrame(null);
674
+ Zt.setExtraStackFrame(null);
675
675
  }
676
676
  function Qn(o, f, v, S, M) {
677
677
  {
@@ -688,7 +688,7 @@ function ps() {
688
688
  } catch (z) {
689
689
  R = z;
690
690
  }
691
- R && !(R instanceof Error) && (We(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, T, typeof R), We(null)), R instanceof Error && !(R.message in At) && (At[R.message] = !0, We(M), b("Failed %s type: %s", v, R.message), We(null));
691
+ R && !(R instanceof Error) && (We(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, T, typeof R), We(null)), R instanceof Error && !(R.message in zt) && (zt[R.message] = !0, We(M), b("Failed %s type: %s", v, R.message), We(null));
692
692
  }
693
693
  }
694
694
  }
@@ -704,24 +704,24 @@ function ps() {
704
704
  }
705
705
  function na(o) {
706
706
  try {
707
- return Zt(o), !1;
707
+ return Gt(o), !1;
708
708
  } catch {
709
709
  return !0;
710
710
  }
711
711
  }
712
- function Zt(o) {
712
+ function Gt(o) {
713
713
  return "" + o;
714
714
  }
715
- function Gt(o) {
715
+ function Kt(o) {
716
716
  if (na(o))
717
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Zt(o);
717
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Gt(o);
718
718
  }
719
719
  var Ne = y.ReactCurrentOwner, aa = {
720
720
  key: !0,
721
721
  ref: !0,
722
722
  __self: !0,
723
723
  __source: !0
724
- }, Kt, Wt, nt;
724
+ }, Wt, Vt, nt;
725
725
  nt = {};
726
726
  function sa(o) {
727
727
  if (Re.call(o, "ref")) {
@@ -748,7 +748,7 @@ function ps() {
748
748
  function oa(o, f) {
749
749
  {
750
750
  var v = function() {
751
- Kt || (Kt = !0, b("%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)", f));
751
+ Wt || (Wt = !0, b("%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)", f));
752
752
  };
753
753
  v.isReactWarning = !0, Object.defineProperty(o, "key", {
754
754
  get: v,
@@ -759,7 +759,7 @@ function ps() {
759
759
  function la(o, f) {
760
760
  {
761
761
  var v = function() {
762
- Wt || (Wt = !0, b("%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)", f));
762
+ Vt || (Vt = !0, b("%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)", f));
763
763
  };
764
764
  v.isReactWarning = !0, Object.defineProperty(o, "ref", {
765
765
  get: v,
@@ -799,7 +799,7 @@ function ps() {
799
799
  function da(o, f, v, S, M) {
800
800
  {
801
801
  var L, T = {}, R = null, H = null;
802
- v !== void 0 && (Gt(v), R = "" + v), ra(f) && (Gt(f.key), R = "" + f.key), sa(f) && (H = f.ref, ia(f, M));
802
+ v !== void 0 && (Kt(v), R = "" + v), ra(f) && (Kt(f.key), R = "" + f.key), sa(f) && (H = f.ref, ia(f, M));
803
803
  for (L in f)
804
804
  Re.call(f, L) && !aa.hasOwnProperty(L) && (T[L] = f[L]);
805
805
  if (o && o.defaultProps) {
@@ -814,20 +814,20 @@ function ps() {
814
814
  return ca(o, R, H, M, S, Ne.current, T);
815
815
  }
816
816
  }
817
- var at = y.ReactCurrentOwner, Vt = y.ReactDebugCurrentFrame;
817
+ var at = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
818
818
  function ve(o) {
819
819
  if (o) {
820
820
  var f = o._owner, v = Ke(o.type, o._source, f ? f.type : null);
821
- Vt.setExtraStackFrame(v);
821
+ Ut.setExtraStackFrame(v);
822
822
  } else
823
- Vt.setExtraStackFrame(null);
823
+ Ut.setExtraStackFrame(null);
824
824
  }
825
825
  var st;
826
826
  st = !1;
827
827
  function rt(o) {
828
828
  return typeof o == "object" && o !== null && o.$$typeof === t;
829
829
  }
830
- function Ut() {
830
+ function Yt() {
831
831
  {
832
832
  if (at.current) {
833
833
  var o = K(at.current.type);
@@ -842,10 +842,10 @@ Check the render method of \`` + o + "`.";
842
842
  function _a(o) {
843
843
  return "";
844
844
  }
845
- var Yt = {};
845
+ var Ht = {};
846
846
  function ua(o) {
847
847
  {
848
- var f = Ut();
848
+ var f = Yt();
849
849
  if (!f) {
850
850
  var v = typeof o == "string" ? o : o.displayName || o.name;
851
851
  v && (f = `
@@ -855,27 +855,27 @@ Check the top-level render call using <` + v + ">.");
855
855
  return f;
856
856
  }
857
857
  }
858
- function Ht(o, f) {
858
+ function qt(o, f) {
859
859
  {
860
860
  if (!o._store || o._store.validated || o.key != null)
861
861
  return;
862
862
  o._store.validated = !0;
863
863
  var v = ua(f);
864
- if (Yt[v])
864
+ if (Ht[v])
865
865
  return;
866
- Yt[v] = !0;
866
+ Ht[v] = !0;
867
867
  var S = "";
868
868
  o && o._owner && o._owner !== at.current && (S = " It was passed a child from " + K(o._owner.type) + "."), ve(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), ve(null);
869
869
  }
870
870
  }
871
- function qt(o, f) {
871
+ function Jt(o, f) {
872
872
  {
873
873
  if (typeof o != "object")
874
874
  return;
875
875
  if (tt(o))
876
876
  for (var v = 0; v < o.length; v++) {
877
877
  var S = o[v];
878
- rt(S) && Ht(S, f);
878
+ rt(S) && qt(S, f);
879
879
  }
880
880
  else if (rt(o))
881
881
  o._store && (o._store.validated = !0);
@@ -883,7 +883,7 @@ Check the top-level render call using <` + v + ">.");
883
883
  var M = w(o);
884
884
  if (typeof M == "function" && M !== o.entries)
885
885
  for (var L = M.call(o), T; !(T = L.next()).done; )
886
- rt(T.value) && Ht(T.value, f);
886
+ rt(T.value) && qt(T.value, f);
887
887
  }
888
888
  }
889
889
  }
@@ -924,15 +924,15 @@ Check the top-level render call using <` + v + ">.");
924
924
  o.ref !== null && (ve(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
925
925
  }
926
926
  }
927
- var Jt = {};
928
- function Xt(o, f, v, S, M, L) {
927
+ var Xt = {};
928
+ function Qt(o, f, v, S, M, L) {
929
929
  {
930
930
  var T = V(o);
931
931
  if (!T) {
932
932
  var R = "";
933
933
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
934
934
  var H = _a();
935
- H ? R += H : R += Ut();
935
+ H ? R += H : R += Yt();
936
936
  var z;
937
937
  o === null ? z = "null" : tt(o) ? z = "array" : o !== void 0 && o.$$typeof === t ? (z = "<" + (K(o.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : z = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, R);
938
938
  }
@@ -945,35 +945,35 @@ Check the top-level render call using <` + v + ">.");
945
945
  if (S)
946
946
  if (tt(te)) {
947
947
  for (var Ce = 0; Ce < te.length; Ce++)
948
- qt(te[Ce], o);
948
+ Jt(te[Ce], o);
949
949
  Object.freeze && Object.freeze(te);
950
950
  } else
951
951
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
952
952
  else
953
- qt(te, o);
953
+ Jt(te, o);
954
954
  }
955
955
  if (Re.call(f, "key")) {
956
956
  var fe = K(o), J = Object.keys(f).filter(function(Ca) {
957
957
  return Ca !== "key";
958
958
  }), it = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
959
- if (!Jt[fe + it]) {
959
+ if (!Xt[fe + it]) {
960
960
  var va = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
961
961
  b(`A props object containing a "key" prop is being spread into JSX:
962
962
  let props = %s;
963
963
  <%s {...props} />
964
964
  React keys must be passed directly to JSX without using spread:
965
965
  let props = %s;
966
- <%s key={someKey} {...props} />`, it, fe, va, fe), Jt[fe + it] = !0;
966
+ <%s key={someKey} {...props} />`, it, fe, va, fe), Xt[fe + it] = !0;
967
967
  }
968
968
  }
969
969
  return o === s ? fa(W) : ma(W), W;
970
970
  }
971
971
  }
972
972
  function ha(o, f, v) {
973
- return Xt(o, f, v, !0);
973
+ return Qt(o, f, v, !0);
974
974
  }
975
975
  function ga(o, f, v) {
976
- return Xt(o, f, v, !1);
976
+ return Qt(o, f, v, !1);
977
977
  }
978
978
  var xa = ga, pa = ha;
979
979
  Ie.Fragment = s, Ie.jsx = xa, Ie.jsxs = pa;
@@ -1085,7 +1085,7 @@ ge.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1085
1085
  }
1086
1086
  )
1087
1087
  ] });
1088
- const Is = "_alerts_1pds5_1", Ds = "_menuAnimation_1pds5_1", Ms = "_menuItemAnimation_1pds5_1", Fs = "_allert_1pds5_111", Ls = "_al_1pds5_1", bn = {
1088
+ const Is = "_alerts_1pds5_1", Ds = "_menuAnimation_1pds5_1", Ms = "_menuItemAnimation_1pds5_1", Fs = "_allert_1pds5_111", Ls = "_al_1pds5_1", mt = {
1089
1089
  alerts: Is,
1090
1090
  menuAnimation: Ds,
1091
1091
  menuItemAnimation: Ms,
@@ -1099,7 +1099,7 @@ function $s() {
1099
1099
  let [e, t] = g.useState("");
1100
1100
  return Fe.set = (n) => t(n), Fe.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1101
1101
  }
1102
- const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: bn.alerts, children: [
1102
+ const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: mt.alerts, children: [
1103
1103
  /* @__PURE__ */ a.jsxs("dl", { children: [
1104
1104
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1105
1105
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1114,7 +1114,7 @@ const Ps = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1114
1114
  }
1115
1115
  ) })
1116
1116
  ] }),
1117
- /* @__PURE__ */ a.jsx("div", { className: "--body", onClick: Fe.del })
1117
+ /* @__PURE__ */ a.jsx("div", { className: mt["--body"], onClick: Fe.del })
1118
1118
  ] }));
1119
1119
  function Bs(e, t) {
1120
1120
  Fe.set(/* @__PURE__ */ a.jsx(Ps, { data: e, callback: t }));
@@ -1122,10 +1122,10 @@ function Bs(e, t) {
1122
1122
  const Le = { Send: Ss, Error: Es, Remark: Ns, Success: Rs, Copy: Ts }, Ue = {
1123
1123
  Path: Va,
1124
1124
  setPage: Pa,
1125
- getPage: mn,
1125
+ getPage: fn,
1126
1126
  usePage: $a,
1127
1127
  setModule: Oa,
1128
- getModule: fn,
1128
+ getModule: hn,
1129
1129
  useModule: Ba,
1130
1130
  setTabs: za,
1131
1131
  getTabs: He,
@@ -1419,10 +1419,10 @@ function Qs(e) {
1419
1419
  t[r.id] = { s: r.v, n: r.a }, n[r.id] = r;
1420
1420
  });
1421
1421
  let s = { ...Be(), 901: t };
1422
- xn(n), Pe(s);
1422
+ pn(n), Pe(s);
1423
1423
  }
1424
1424
  function er() {
1425
- let e = pn(), t = {};
1425
+ let e = vn(), t = {};
1426
1426
  return Object.keys(e).forEach((n) => {
1427
1427
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
1428
1428
  }), t;
@@ -1468,10 +1468,10 @@ U.bell = Us;
1468
1468
  U.company = Qs;
1469
1469
  U.info = (e) => {
1470
1470
  let t = {};
1471
- t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), vn(t), hn(e.data.menu);
1471
+ t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), Cn(t), gn(e.data.menu);
1472
1472
  };
1473
1473
  U.version = async (e) => {
1474
- yt.version.Server(e.data);
1474
+ jt.version.Server(e.data);
1475
1475
  };
1476
1476
  U.online = async (e) => {
1477
1477
  };
@@ -2010,7 +2010,7 @@ function Ur({ children: e, className: t }) {
2010
2010
  function Yr({ children: e }) {
2011
2011
  return /* @__PURE__ */ a.jsx("div", { className: se.c, children: e });
2012
2012
  }
2013
- const Hr = "_btn_1hz2s_6", qr = "_confirm_1hz2s_19", sn = {
2013
+ const Hr = "_btn_1hz2s_6", qr = "_confirm_1hz2s_19", rn = {
2014
2014
  btn: Hr,
2015
2015
  confirm: qr
2016
2016
  };
@@ -2025,7 +2025,7 @@ function Jr({ onClick: e, onSend: t, label: n, onRef: s }) {
2025
2025
  "button",
2026
2026
  {
2027
2027
  ref: s,
2028
- className: [sn.btn, sn.confirm].join(" "),
2028
+ className: [rn.btn, rn.confirm].join(" "),
2029
2029
  onClick: c,
2030
2030
  children: r ? "Ожидайте" : n
2031
2031
  }
@@ -2138,7 +2138,7 @@ function ai({ type: e, name: t, params: n }) {
2138
2138
  function si(e, t, n) {
2139
2139
  ye.config(e, t, n);
2140
2140
  }
2141
- const bt = { List: pr, Scroll: Vr, Main: Qr, Add: ei, Icon: ai, Open: si, Shake: ni, Form: Ur, Center: Yr };
2141
+ const wt = { List: pr, Scroll: Vr, Main: Qr, Add: ei, Icon: ai, Open: si, Shake: ni, Form: Ur, Center: Yr };
2142
2142
  function wn({ text: e, type: t, button: n }) {
2143
2143
  let [s, r] = g.useState(!1), i = { active: t };
2144
2144
  const c = () => {
@@ -2149,7 +2149,7 @@ function wn({ text: e, type: t, button: n }) {
2149
2149
  return s ? void 0 : (r(!0), n.onSend(r));
2150
2150
  }
2151
2151
  };
2152
- return /* @__PURE__ */ a.jsxs("div", { className: bn.al, ...i, children: [
2152
+ return /* @__PURE__ */ a.jsxs("div", { className: mt.al, ...i, children: [
2153
2153
  /* @__PURE__ */ a.jsx(
2154
2154
  "svg",
2155
2155
  {
@@ -2187,37 +2187,37 @@ const ri = "_h_1usnu_1", ii = "_g_1usnu_11", oi = "_hr_1usnu_16", li = "_hl_1usn
2187
2187
  m: xi,
2188
2188
  ul: pi,
2189
2189
  f: vi
2190
- }, rn = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2190
+ }, on = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2191
2191
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2192
2192
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
2193
2193
  n && /* @__PURE__ */ a.jsx("div", { className: X.hr, children: n }),
2194
2194
  s
2195
- ] }), on = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: X.l, children: e }), ln = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.s, children: e }), cn = ({ children: e, edit: t }) => {
2195
+ ] }), ln = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: X.l, children: e }), cn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.s, children: e }), dn = ({ children: e, edit: t }) => {
2196
2196
  const n = {};
2197
2197
  return t && (n.edit = ""), console.log(n), /* @__PURE__ */ a.jsx("div", { ...n, className: X.f, children: e });
2198
2198
  };
2199
- function dn({ children: e }) {
2199
+ function _n({ children: e }) {
2200
2200
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
2201
2201
  }
2202
2202
  const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2203
2203
  n && /* @__PURE__ */ a.jsx("div", { className: X.hh, children: n }),
2204
2204
  e
2205
- ] }), ki = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), yi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), _n = {
2206
- Header: rn,
2207
- Section: ln,
2208
- Group: dn,
2209
- Form: cn,
2210
- List: on,
2205
+ ] }), ki = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), yi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2206
+ Header: on,
2207
+ Section: cn,
2208
+ Group: _n,
2209
+ Form: dn,
2210
+ List: ln,
2211
2211
  A: wn,
2212
2212
  U: ki,
2213
- G: dn,
2213
+ G: _n,
2214
2214
  C: yi,
2215
- L: on,
2215
+ L: ln,
2216
2216
  O: Ci,
2217
- S: ln,
2218
- H: rn,
2217
+ S: cn,
2218
+ H: on,
2219
2219
  M: ji,
2220
- F: cn
2220
+ F: dn
2221
2221
  }, bi = (e, t) => {
2222
2222
  switch (t.type) {
2223
2223
  case "load":
@@ -2312,7 +2312,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2312
2312
  const [r, i] = g.useReducer(bi, {}, wi);
2313
2313
  console.log(n);
2314
2314
  const c = () => {
2315
- bt.Add(
2315
+ wt.Add(
2316
2316
  /* @__PURE__ */ a.jsx(
2317
2317
  Ri,
2318
2318
  {
@@ -2334,10 +2334,10 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2334
2334
  });
2335
2335
  i({ type: "load", list: l });
2336
2336
  })();
2337
- }, [e, s]), /* @__PURE__ */ a.jsxs(_n.O, { children: [
2337
+ }, [e, s]), /* @__PURE__ */ a.jsxs(un.O, { children: [
2338
2338
  " ",
2339
2339
  /* @__PURE__ */ a.jsx(
2340
- _n.H,
2340
+ un.H,
2341
2341
  {
2342
2342
  title: t,
2343
2343
  right: /* @__PURE__ */ a.jsx(
@@ -2384,7 +2384,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2384
2384
  "div",
2385
2385
  {
2386
2386
  className: "modal o ",
2387
- onClick: bt.Shake,
2387
+ onClick: wt.Shake,
2388
2388
  children: /* @__PURE__ */ a.jsxs("div", { className: "b", children: [
2389
2389
  /* @__PURE__ */ a.jsx("div", { className: "h", children: "Загрузка файлов" }),
2390
2390
  /* @__PURE__ */ a.jsx(
@@ -2416,7 +2416,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2416
2416
  ) }) : "" });
2417
2417
  }, Ni = ({ data: e, dispatch: t }) => {
2418
2418
  let n = async () => {
2419
- let i = await (await fetch(tn.url().files + "/yandex/data/" + e.id, {
2419
+ let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2420
2420
  headers: {
2421
2421
  "Content-type": "application/json;charset=utf-8",
2422
2422
  SSID: re.getSSID() || ""
@@ -2429,7 +2429,7 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2429
2429
  l.setAttribute("href", c), l.setAttribute("download", e.name), l.click();
2430
2430
  }
2431
2431
  }, s = async () => {
2432
- (await (await fetch(tn.url().files + "/yandex/delete/" + e.id, {
2432
+ (await (await fetch(nn.url().files + "/yandex/delete/" + e.id, {
2433
2433
  headers: {
2434
2434
  "Content-type": "application/json;charset=utf-8",
2435
2435
  SSID: re.getSSID() || ""
@@ -2462,13 +2462,13 @@ const Ci = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2462
2462
  ] }),
2463
2463
  /* @__PURE__ */ a.jsx("div", { className: "f080", children: G.Size(e.size) })
2464
2464
  ] });
2465
- }, wt = { setSetting: Ya, getSetting: Ha };
2465
+ }, St = { setSetting: Ya, getSetting: Ha };
2466
2466
  let A = {};
2467
2467
  A.list = as();
2468
2468
  A.active = null;
2469
2469
  const Ti = () => {
2470
2470
  var r;
2471
- let [e, t] = g.useState([]), [n, s] = g.useState(wt.getSetting("s03"));
2471
+ let [e, t] = g.useState([]), [n, s] = g.useState(St.getSetting("s03"));
2472
2472
  return g.useEffect(() => {
2473
2473
  (async () => {
2474
2474
  let i = Object.keys(A.list);
@@ -2477,7 +2477,7 @@ const Ti = () => {
2477
2477
  i.forEach((l, _) => {
2478
2478
  c.push({
2479
2479
  item: /* @__PURE__ */ a.jsx(
2480
- mt,
2480
+ ft,
2481
2481
  {
2482
2482
  data: A.list[l]
2483
2483
  },
@@ -2494,7 +2494,7 @@ const Ti = () => {
2494
2494
  }, A.set = (i) => {
2495
2495
  t([
2496
2496
  ...e,
2497
- { item: /* @__PURE__ */ a.jsx(mt, { data: i }, i.id), link: i.link }
2497
+ { item: /* @__PURE__ */ a.jsx(ft, { data: i }, i.id), link: i.link }
2498
2498
  ]);
2499
2499
  }, A.del = (i) => {
2500
2500
  e.forEach((c, l) => {
@@ -2512,12 +2512,12 @@ const Ti = () => {
2512
2512
  i(A.list[s] !== void 0);
2513
2513
  }, [s]);
2514
2514
  let c = () => {
2515
- A.list[s] !== void 0 ? (A.del(s), delete A.list[s], Qt(A.list), i(!1), Le.Send({ type: "success", text: "Запись удален из закладок" })) : (A.list[s] = { id: e, name: n, type: t, link: s }, A.set(A.list[s]), Qt(A.list), i(!0), Le.Send({
2515
+ A.list[s] !== void 0 ? (A.del(s), delete A.list[s], en(A.list), i(!1), Le.Send({ type: "success", text: "Запись удален из закладок" })) : (A.list[s] = { id: e, name: n, type: t, link: s }, A.set(A.list[s]), en(A.list), i(!0), Le.Send({
2516
2516
  type: "success",
2517
2517
  text: "Запись добавлен в закладки"
2518
2518
  }));
2519
2519
  };
2520
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: wt.getSetting("s03") !== 0 ? /* @__PURE__ */ a.jsx(
2520
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: St.getSetting("s03") !== 0 ? /* @__PURE__ */ a.jsx(
2521
2521
  "i",
2522
2522
  {
2523
2523
  "data-icon": "C018",
@@ -2525,7 +2525,7 @@ const Ti = () => {
2525
2525
  onClick: c
2526
2526
  }
2527
2527
  ) : "" });
2528
- }, mt = ({ data: e }) => {
2528
+ }, ft = ({ data: e }) => {
2529
2529
  let t = (s) => {
2530
2530
  s.preventDefault(), delete A.list[e.link], A.del(e.link);
2531
2531
  }, n = () => {
@@ -2534,7 +2534,7 @@ const Ti = () => {
2534
2534
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2535
2535
  }, Di = (e) => {
2536
2536
  A.active(e);
2537
- }, O = {}, ft = {}, C = {};
2537
+ }, O = {}, ht = {}, C = {};
2538
2538
  C.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2539
2539
  C.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2540
2540
  C.other = [];
@@ -2598,10 +2598,10 @@ O.start = async (e) => {
2598
2598
  }, e();
2599
2599
  };
2600
2600
  O.useListener = (e) => {
2601
- ft.rtc = e;
2601
+ ht.rtc = e;
2602
2602
  };
2603
2603
  O.setListener = (e) => {
2604
- ft.rtc && ft.rtc(e);
2604
+ ht.rtc && ht.rtc(e);
2605
2605
  };
2606
2606
  O.callTo = async (e) => {
2607
2607
  O.start(async () => {
@@ -2810,18 +2810,18 @@ function Li({ id: e, type: t }) {
2810
2810
  /* @__PURE__ */ a.jsx("div", { className: "b", children: c() })
2811
2811
  ] }) });
2812
2812
  }
2813
- const ht = {};
2813
+ const gt = {};
2814
2814
  function $i(e) {
2815
- ht.add(e);
2815
+ gt.add(e);
2816
2816
  }
2817
2817
  function Pi({ color: e, size: t, name: n }) {
2818
2818
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2819
2819
  }
2820
2820
  function Bi() {
2821
2821
  let [e, t] = g.useState([]);
2822
- if (ht.x = () => {
2822
+ if (gt.x = () => {
2823
2823
  t([]);
2824
- }, ht.add = (s) => {
2824
+ }, gt.add = (s) => {
2825
2825
  t(s);
2826
2826
  }, e.length === 0)
2827
2827
  return "";
@@ -2838,12 +2838,12 @@ function Bi() {
2838
2838
  r
2839
2839
  )) });
2840
2840
  }
2841
- const gt = {};
2841
+ const xt = {};
2842
2842
  function Oi(e, t) {
2843
- gt[e] = t;
2843
+ xt[e] = t;
2844
2844
  }
2845
2845
  function Ai(e, t) {
2846
- gt[e] !== void 0 && gt[e](t);
2846
+ xt[e] !== void 0 && xt[e](t);
2847
2847
  }
2848
2848
  const de = {};
2849
2849
  function zi(e, t) {
@@ -2984,7 +2984,7 @@ function Sn({ list: e, onClick: t, active: n, size: s, view: r }) {
2984
2984
  }
2985
2985
  const fo = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
2986
2986
  Sn.defaultProps = { size: "M", view: "H" };
2987
- const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: mt, Active: Di }, Fl = { Send: Bs, Line: wn };
2987
+ const Dl = { Section: Qi, Main: no, Item: mo, Tabs: Sn }, Ml = { Icon: Ii, Item: ft, Active: Di }, Fl = { Send: Bs, Line: wn };
2988
2988
  function ho() {
2989
2989
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2990
2990
  "path",
@@ -3002,7 +3002,7 @@ function po(e, t) {
3002
3002
  switch (t.type) {
3003
3003
  case "active":
3004
3004
  let n = "<";
3005
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), gn({ active: t.data, sort: n }), {
3005
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), qe.get({ active: t.data, sort: n }, !1), xn({ active: t.data, sort: n }), {
3006
3006
  ...e,
3007
3007
  active: t.data,
3008
3008
  sort: n
@@ -3126,7 +3126,7 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3126
3126
  });
3127
3127
  }) : Z[e], Eo = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3128
3128
  n.delete(e);
3129
- }), xt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3129
+ }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3130
3130
  t.clear();
3131
3131
  }), Ro = (e = Se()) => {
3132
3132
  const t = [];
@@ -3148,7 +3148,7 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3148
3148
  y[b] = t[k][b];
3149
3149
  });
3150
3150
  for (let b in c)
3151
- t[k][c[b]] === void 0 && (xt(), location.reload()), b === "s1" && (y[b] = new Date(t[k][c[b]]).getTime()), b === "s2" && (y[b] = t[k][c[b]]), b === "s3" && (y[b] = t[k][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3151
+ t[k][c[b]] === void 0 && (pt(), location.reload()), b === "s1" && (y[b] = new Date(t[k][c[b]]).getTime()), b === "s2" && (y[b] = t[k][c[b]]), b === "s3" && (y[b] = t[k][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3152
3152
  i.push({ id: k, text: w, ...y });
3153
3153
  } else
3154
3154
  i.push({ id: k, text: w });
@@ -3157,7 +3157,7 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3157
3157
  return d.forEach((k) => {
3158
3158
  m.push(t[k]);
3159
3159
  }), m.forEach((k) => {
3160
- k === void 0 ? (xt(), location.reload()) : (r && x(k.id), l && p(k.id));
3160
+ k === void 0 ? (pt(), location.reload()) : (r && x(k.id), l && p(k.id));
3161
3161
  }), { list: h, search: i, filter: s };
3162
3162
  }, To = (e, t, n, s = Se()) => {
3163
3163
  if (Z[e] === void 0)
@@ -3213,7 +3213,7 @@ const Se = () => (lt || (lt = new So()), lt), me = (e, t, n = Se()) => n._withID
3213
3213
  key: Ro,
3214
3214
  load: Po,
3215
3215
  split: No,
3216
- clear: xt,
3216
+ clear: pt,
3217
3217
  updAll: Do,
3218
3218
  delAll: Mo,
3219
3219
  delList: Fo,
@@ -3679,7 +3679,7 @@ const Ko = "_o_ff5dx_1", Wo = "_c_ff5dx_11", je = {
3679
3679
  o: Ko,
3680
3680
  c: Wo
3681
3681
  };
3682
- function St(e) {
3682
+ function Et(e) {
3683
3683
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [c, l] = g.useState(
3684
3684
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
3685
3685
  ), _ = !s && r;
@@ -3804,7 +3804,7 @@ const Vo = (e) => {
3804
3804
  )
3805
3805
  ] }) : "" });
3806
3806
  };
3807
- function Et({
3807
+ function Rt({
3808
3808
  value: e,
3809
3809
  onValue: t,
3810
3810
  name: n,
@@ -3820,7 +3820,7 @@ function Et({
3820
3820
  // item,
3821
3821
  }) {
3822
3822
  let [h, x] = g.useState(e), p = (k) => {
3823
- bt.Open("M13", "Regulations", (w) => {
3823
+ wt.Open("M13", "Regulations", (w) => {
3824
3824
  x(w);
3825
3825
  });
3826
3826
  };
@@ -3839,7 +3839,7 @@ function Et({
3839
3839
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
3840
3840
  ] });
3841
3841
  }
3842
- function Rt(e) {
3842
+ function Nt(e) {
3843
3843
  let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), s = (m, h) => {
3844
3844
  let x = document.createRange(), p = window.getSelection();
3845
3845
  x.setStart(h.childNodes[0], m), x.collapse(!0), p.removeAllRanges(), p.addRange(x), h.focus();
@@ -4042,7 +4042,7 @@ function Bn(e) {
4042
4042
  n()
4043
4043
  ] });
4044
4044
  }
4045
- function Nt({
4045
+ function Tt({
4046
4046
  onValue: e,
4047
4047
  active: t,
4048
4048
  max: n,
@@ -5537,7 +5537,7 @@ const ct = {
5537
5537
  mask: "+1939(___) ___-__-__"
5538
5538
  }
5539
5539
  };
5540
- function Tt({
5540
+ function It({
5541
5541
  value: e,
5542
5542
  onValue: t,
5543
5543
  name: n,
@@ -5649,7 +5649,7 @@ const An = (e) => {
5649
5649
  }
5650
5650
  );
5651
5651
  };
5652
- function It({
5652
+ function Dt({
5653
5653
  title: e,
5654
5654
  error: t,
5655
5655
  edit: n = !0,
@@ -5731,7 +5731,7 @@ const Yo = ({ onValue: e, parent: t, view: n, options: s }) => {
5731
5731
  )
5732
5732
  ] }) : "" });
5733
5733
  };
5734
- function Dt(e) {
5734
+ function Mt(e) {
5735
5735
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(s && r), l = e.placeholder !== void 0 ? e.placeholder : "", _ = (x) => {
5736
5736
  u(e.options[x]), e.onValue({ value: x, name: e.name });
5737
5737
  }, [d, u] = g.useState(
@@ -5813,7 +5813,7 @@ const Ho = ({ onValue: e, parent: t, view: n, options: s }) => {
5813
5813
  )
5814
5814
  ] }) : "" });
5815
5815
  };
5816
- function pt({
5816
+ function vt({
5817
5817
  set: e,
5818
5818
  value: t,
5819
5819
  onValue: n,
@@ -5851,7 +5851,7 @@ function pt({
5851
5851
  );
5852
5852
  case "Select":
5853
5853
  return x && (k = re.getSelect(parseInt(x)) ? re.getSelect(parseInt(x)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5854
- It,
5854
+ Dt,
5855
5855
  {
5856
5856
  title: i,
5857
5857
  show: d,
@@ -5869,7 +5869,7 @@ function pt({
5869
5869
  );
5870
5870
  case "Users":
5871
5871
  return re.getSelect("user"), /* @__PURE__ */ a.jsx(
5872
- Dt,
5872
+ Mt,
5873
5873
  {
5874
5874
  title: i,
5875
5875
  show: d,
@@ -5887,7 +5887,7 @@ function pt({
5887
5887
  );
5888
5888
  case "Date":
5889
5889
  return /* @__PURE__ */ a.jsx(
5890
- St,
5890
+ Et,
5891
5891
  {
5892
5892
  title: i,
5893
5893
  show: d,
@@ -5904,7 +5904,7 @@ function pt({
5904
5904
  );
5905
5905
  case "Phone":
5906
5906
  return /* @__PURE__ */ a.jsx(
5907
- Tt,
5907
+ It,
5908
5908
  {
5909
5909
  title: i,
5910
5910
  show: d,
@@ -5921,7 +5921,7 @@ function pt({
5921
5921
  );
5922
5922
  case "Number":
5923
5923
  return /* @__PURE__ */ a.jsx(
5924
- Nt,
5924
+ Tt,
5925
5925
  {
5926
5926
  title: i,
5927
5927
  show: d,
@@ -5938,7 +5938,7 @@ function pt({
5938
5938
  );
5939
5939
  case "Money":
5940
5940
  return /* @__PURE__ */ a.jsx(
5941
- Rt,
5941
+ Nt,
5942
5942
  {
5943
5943
  title: i,
5944
5944
  show: d,
@@ -5955,7 +5955,7 @@ function pt({
5955
5955
  );
5956
5956
  case "Modal":
5957
5957
  return /* @__PURE__ */ a.jsx(
5958
- Et,
5958
+ Rt,
5959
5959
  {
5960
5960
  title: i,
5961
5961
  show: d,
@@ -6191,7 +6191,7 @@ function Qo() {
6191
6191
  }
6192
6192
  const Zl = {
6193
6193
  Color: $n,
6194
- Date: St,
6194
+ Date: Et,
6195
6195
  Code: Ln,
6196
6196
  Check: Gn,
6197
6197
  Switch: Tn,
@@ -6200,27 +6200,27 @@ const Zl = {
6200
6200
  Message: Dn,
6201
6201
  Generator: Mn,
6202
6202
  Captcha: Fn,
6203
- Modal: Et,
6204
- Money: Rt,
6203
+ Modal: Rt,
6204
+ Money: Nt,
6205
6205
  Month: Pn,
6206
6206
  Notes: Bn,
6207
- Number: Nt,
6207
+ Number: Tt,
6208
6208
  Password: On,
6209
- Phone: Tt,
6209
+ Phone: It,
6210
6210
  Search: An,
6211
- Select: It,
6212
- Set: pt,
6211
+ Select: Dt,
6212
+ Set: vt,
6213
6213
  Textarea: zn,
6214
6214
  Time: Zn,
6215
- Users: Dt,
6215
+ Users: Mt,
6216
6216
  String: $e,
6217
- Form: pt,
6217
+ Form: vt,
6218
6218
  runReload: Qo,
6219
6219
  useData: Jo,
6220
6220
  setValue: Xo
6221
6221
  }, Gl = {
6222
6222
  Color: $n,
6223
- Date: St,
6223
+ Date: Et,
6224
6224
  Code: Ln,
6225
6225
  Check: Gn,
6226
6226
  Switch: Tn,
@@ -6229,19 +6229,19 @@ const Zl = {
6229
6229
  Message: Dn,
6230
6230
  Generator: Mn,
6231
6231
  Captcha: Fn,
6232
- Modal: Et,
6233
- Money: Rt,
6232
+ Modal: Rt,
6233
+ Money: Nt,
6234
6234
  Month: Pn,
6235
6235
  Notes: Bn,
6236
- Number: Nt,
6236
+ Number: Tt,
6237
6237
  Password: On,
6238
- Phone: Tt,
6238
+ Phone: It,
6239
6239
  Search: An,
6240
- Select: It,
6241
- Set: pt,
6240
+ Select: Dt,
6241
+ Set: vt,
6242
6242
  Textarea: zn,
6243
6243
  Time: Zn,
6244
- Users: Dt,
6244
+ Users: Mt,
6245
6245
  String: $e
6246
6246
  }, el = "_spinner_1ul0m_1", tl = "_l_1ul0m_75", nl = "_loadingB_1ul0m_1", Kn = {
6247
6247
  spinner: el,
@@ -6267,10 +6267,10 @@ function sl() {
6267
6267
  const Kl = { Spinner: al, Inline: sl }, rl = "_s_t9swc_1", il = {
6268
6268
  s: rl
6269
6269
  };
6270
- let Mt;
6270
+ let Ft;
6271
6271
  function ol() {
6272
6272
  let e = (r) => {
6273
- Mt(r.target.textContent);
6273
+ Ft(r.target.textContent);
6274
6274
  }, t = (r) => {
6275
6275
  r.key === "Enter" && r.preventDefault();
6276
6276
  }, n = (r) => {
@@ -6303,10 +6303,10 @@ function ll(e, t, n) {
6303
6303
  }), c;
6304
6304
  }
6305
6305
  function cl(e) {
6306
- Mt = e;
6306
+ Ft = e;
6307
6307
  }
6308
6308
  function dl(e) {
6309
- Mt = e;
6309
+ Ft = e;
6310
6310
  }
6311
6311
  const Wl = { Field: ol, Run: ll, Get: cl, useValue: dl }, _l = "_f_q3r0i_1", ul = {
6312
6312
  f: _l
@@ -6591,7 +6591,7 @@ function wl({ head: e, load: t, list: n, item: s }) {
6591
6591
  const r = e;
6592
6592
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6593
6593
  /* @__PURE__ */ a.jsx(r, {}),
6594
- wt.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: s }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: s })
6594
+ St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: s }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: s })
6595
6595
  ] });
6596
6596
  }
6597
6597
  function Sl(e, t) {
@@ -6635,24 +6635,24 @@ function Sl(e, t) {
6635
6635
  throw new Error();
6636
6636
  }
6637
6637
  }
6638
- const vt = {};
6638
+ const Ct = {};
6639
6639
  function El(e) {
6640
- vt.get = e;
6640
+ Ct.get = e;
6641
6641
  }
6642
6642
  function Rl(e) {
6643
- vt.get && vt.get(e);
6643
+ Ct.get && Ct.get(e);
6644
6644
  }
6645
6645
  const Hl = { View: wl, Reducer: Sl, useValue: El, setValue: Rl }, ql = { Get: er }, Jl = { Open: Fi };
6646
6646
  export {
6647
6647
  io as Action,
6648
6648
  Fl as Alert,
6649
- tn as Api,
6649
+ nn as Api,
6650
6650
  Pl as Badge,
6651
6651
  Ml as Bookmarks,
6652
6652
  Il as Browser,
6653
6653
  Jr as Button,
6654
6654
  ql as Company,
6655
- _n as Component,
6655
+ un as Component,
6656
6656
  Bl as DataBase,
6657
6657
  we as Event,
6658
6658
  zl as Files,
@@ -6665,7 +6665,7 @@ export {
6665
6665
  Gl as Input,
6666
6666
  Hl as List,
6667
6667
  Kl as Loading,
6668
- bt as Modal,
6668
+ wt as Modal,
6669
6669
  Le as Notice,
6670
6670
  Ul as Notifications,
6671
6671
  Yl as Pagination,
@@ -6674,11 +6674,11 @@ export {
6674
6674
  Al as Scrolling,
6675
6675
  Wl as Search,
6676
6676
  Dl as Setting,
6677
- yt as Sistym,
6677
+ jt as Sistym,
6678
6678
  ce as Socket,
6679
6679
  re as Store,
6680
6680
  Ji as Tabs,
6681
6681
  $l as Triage,
6682
- wt as User,
6682
+ St as User,
6683
6683
  O as WebRTC
6684
6684
  };