elcrm 0.8.2 → 0.8.4

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,7 +5,7 @@ import h, { 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), M = { enCode: wa, deCode: Sa, New: ba }, E = {}, X = {}, ye = {}, mn = {}, xe = {};
8
+ }, wa = (e) => bt.enCode(e), Sa = (e) => bt.deCode(e), M = { enCode: wa, deCode: Sa, New: ba }, E = {}, X = {}, ye = {}, mn = {}, ie = {};
9
9
  let wt = "M06";
10
10
  function Ea(e) {
11
11
  wt = e;
@@ -172,31 +172,34 @@ function pn(e) {
172
172
  return Q(), !1;
173
173
  }
174
174
  function Be(e) {
175
- xe.data = e, localStorage.setItem("q", M.enCode(xe.data));
175
+ ie.data = e, localStorage.setItem("q", M.enCode(ie.data));
176
+ }
177
+ function Xa(e, t) {
178
+ ie.data = { ...ie.data, [e]: t }, localStorage.setItem("q", M.enCode(ie.data));
176
179
  }
177
180
  function Oe(e, t) {
178
- if (!xe.data) {
181
+ if (!ie.data) {
179
182
  let n = localStorage.getItem("q");
180
- n && (xe.data = M.deCode(n));
183
+ n && (ie.data = M.deCode(n));
181
184
  }
182
- return e === void 0 && t === void 0 ? xe.data : e !== void 0 && t === void 0 ? xe.data[e] : xe.data[e][t];
185
+ return e === void 0 && t === void 0 ? ie.data : e !== void 0 && t === void 0 ? ie.data[e] : ie.data[e][t];
183
186
  }
184
- function Xa(e) {
187
+ function Qa(e) {
185
188
  mn.data = e;
186
189
  }
187
- function Qa(e) {
190
+ function er(e) {
188
191
  return mn.data[e];
189
192
  }
190
- function er(e) {
193
+ function tr(e) {
191
194
  E.payment = e;
192
195
  }
193
- function tr() {
196
+ function nr() {
194
197
  return E.payment;
195
198
  }
196
199
  function Cn(e) {
197
200
  localStorage.setItem("u", M.enCode(e));
198
201
  }
199
- function nr() {
202
+ function ar() {
200
203
  let e = localStorage.getItem("u");
201
204
  if (e !== "" && e !== "undefined" && e !== null) {
202
205
  let t = M.deCode(e);
@@ -207,7 +210,7 @@ function nr() {
207
210
  function en(e) {
208
211
  localStorage.setItem("e", M.enCode(e));
209
212
  }
210
- function ar() {
213
+ function rr() {
211
214
  let e = localStorage.getItem("e");
212
215
  if (e !== "" && e !== "undefined" && e !== null)
213
216
  try {
@@ -236,15 +239,16 @@ const re = {
236
239
  setCompany: vn,
237
240
  getCompany: pn,
238
241
  setSelect: Be,
242
+ addSelect: Xa,
239
243
  getSelect: Oe,
240
- setApi: Xa,
241
- getApi: Qa,
242
- setPayment: er,
243
- getPayment: tr,
244
+ setApi: Qa,
245
+ getApi: er,
246
+ setPayment: tr,
247
+ getPayment: nr,
244
248
  setUser: Cn,
245
- getUser: nr,
249
+ getUser: ar,
246
250
  getDefaultModules: Ra
247
- }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", rr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([rr(kn)], { type: "text/javascript;charset=utf-8" });
251
+ }, 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" });
248
252
  function yn(e) {
249
253
  let t;
250
254
  try {
@@ -267,30 +271,30 @@ function yn(e) {
267
271
  t && (window.URL || window.webkitURL).revokeObjectURL(t);
268
272
  }
269
273
  }
270
- const _e = {};
271
- function sr(e) {
272
- return e && (_e.s = e), _e.s;
273
- }
274
+ const ue = {};
274
275
  function ir(e) {
275
- return e && (_e.a = e), _e.a;
276
+ return e && (ue.s = e), ue.s;
276
277
  }
277
278
  function or(e) {
278
- return e && (_e.c = e), _e.c;
279
+ return e && (ue.a = e), ue.a;
279
280
  }
280
281
  function lr(e) {
281
- return e && (_e.h = e), _e.h;
282
+ return e && (ue.c = e), ue.c;
283
+ }
284
+ function cr(e) {
285
+ return e && (ue.h = e), ue.h;
282
286
  }
283
- const St = { version: { Api: ir, Server: sr, Client: or }, Host: lr };
284
- let cr = "api", dr = "elcrm", _r = "online";
285
- function ur() {
287
+ const St = { version: { Api: or, Server: ir, Client: lr }, Host: cr };
288
+ let dr = "api", _r = "elcrm", ur = "online";
289
+ function mr() {
286
290
  let e = re.getPORT(), t = "", n = "";
287
291
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
288
292
  documents: t,
289
293
  files: n
290
294
  };
291
295
  }
292
- let jn = `${cr}.${dr}.${_r}`;
293
- function mr(e) {
296
+ let jn = `${dr}.${_r}.${ur}`;
297
+ function fr(e) {
294
298
  return "https://" + re.getPORT().address + "/audio/" + e;
295
299
  }
296
300
  function Xe(e, t = {}, n = re.getAUTH()) {
@@ -306,7 +310,7 @@ function Xe(e, t = {}, n = re.getAUTH()) {
306
310
  });
307
311
  });
308
312
  }
309
- function fr(e, t = {}, n = re.getAUTH()) {
313
+ function hr(e, t = {}, n = re.getAUTH()) {
310
314
  return new Promise((r) => {
311
315
  const s = new yn();
312
316
  s.onmessage = (i) => {
@@ -319,7 +323,7 @@ function fr(e, t = {}, n = re.getAUTH()) {
319
323
  });
320
324
  });
321
325
  }
322
- function hr(e, t = {}, n) {
326
+ function xr(e, t = {}, n) {
323
327
  const [r, s] = h.useState({ status: "load" }), i = async (c) => {
324
328
  let l = await Xe(e, c, n);
325
329
  s(l);
@@ -332,7 +336,7 @@ let bn = {
332
336
  "Content-type": "application/json;charset=utf-8",
333
337
  ssid: re.getAUTH() || ""
334
338
  };
335
- async function xr(e, t, n = {}) {
339
+ async function gr(e, t, n = {}) {
336
340
  try {
337
341
  return await (await Xe("https://" + e + "/" + t, {
338
342
  method: "POST",
@@ -343,7 +347,7 @@ async function xr(e, t, n = {}) {
343
347
  return { status: "error" };
344
348
  }
345
349
  }
346
- async function gr(e, t = {}) {
350
+ async function vr(e, t = {}) {
347
351
  try {
348
352
  return await (await Xe("https://tb.elcrm.online/v1/" + e, {
349
353
  method: "POST",
@@ -354,7 +358,7 @@ async function gr(e, t = {}) {
354
358
  return { status: "error" };
355
359
  }
356
360
  }
357
- const nn = { audio: mr, fetch: Xe, modules: fr, remoute: xr, url: ur, telegram: gr, use: hr };
361
+ const nn = { audio: fr, fetch: Xe, modules: hr, remoute: gr, url: mr, telegram: vr, use: xr };
358
362
  var ht = { exports: {} }, Ie = {};
359
363
  /**
360
364
  * @license React
@@ -366,7 +370,7 @@ var ht = { exports: {} }, Ie = {};
366
370
  * LICENSE file in the root directory of this source tree.
367
371
  */
368
372
  var an;
369
- function vr() {
373
+ function pr() {
370
374
  if (an)
371
375
  return Ie;
372
376
  an = 1;
@@ -394,13 +398,13 @@ var De = {};
394
398
  * LICENSE file in the root directory of this source tree.
395
399
  */
396
400
  var rn;
397
- function pr() {
401
+ function Cr() {
398
402
  return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
399
- var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = 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"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
403
+ var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = 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"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), C = Symbol.iterator, p = "@@iterator";
400
404
  function j(o) {
401
405
  if (o === null || typeof o != "object")
402
406
  return null;
403
- var f = p && o[p] || o[C];
407
+ var f = C && o[C] || o[p];
404
408
  return typeof f == "function" ? f : null;
405
409
  }
406
410
  var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -421,16 +425,16 @@ function pr() {
421
425
  $.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, $);
422
426
  }
423
427
  }
424
- var R = !1, y = !1, L = !1, P = !1, O = !1, oe;
425
- oe = Symbol.for("react.module.reference");
428
+ var R = !1, y = !1, L = !1, P = !1, O = !1, le;
429
+ le = Symbol.for("react.module.reference");
426
430
  function Ee(o) {
427
431
  return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || O || o === s || o === d || o === u || P || o === g || R || y || L || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
428
432
  // types supported by any Flight configuration anywhere since
429
433
  // we don't know which Flight build this will end up being used
430
434
  // with.
431
- o.$$typeof === oe || o.getModuleId !== void 0));
435
+ o.$$typeof === le || o.getModuleId !== void 0));
432
436
  }
433
- function ce(o, f, v) {
437
+ function de(o, f, v) {
434
438
  var S = o.displayName;
435
439
  if (S)
436
440
  return S;
@@ -470,7 +474,7 @@ function pr() {
470
474
  var v = o;
471
475
  return Z(v._context) + ".Provider";
472
476
  case _:
473
- return ce(o, o.render, "ForwardRef");
477
+ return de(o, o.render, "ForwardRef");
474
478
  case m:
475
479
  var S = o.displayName || null;
476
480
  return S !== null ? S : D(o.type) || "Memo";
@@ -634,8 +638,8 @@ function pr() {
634
638
  } finally {
635
639
  at = !1, tt.current = $, Hn(), Error.prepareStackTrace = F;
636
640
  }
637
- var ke = o ? o.displayName || o.name : "", he = ke ? Ke(ke) : "";
638
- return typeof o == "function" && We.set(o, he), he;
641
+ var ke = o ? o.displayName || o.name : "", xe = ke ? Ke(ke) : "";
642
+ return typeof o == "function" && We.set(o, xe), xe;
639
643
  }
640
644
  function Jn(o, f, v) {
641
645
  return At(o, !1);
@@ -961,17 +965,17 @@ Check the top-level render call using <` + v + ">.");
961
965
  Jt(ee, o);
962
966
  }
963
967
  if (Ne.call(f, "key")) {
964
- var he = D(o), q = Object.keys(f).filter(function(Ca) {
968
+ var xe = D(o), q = Object.keys(f).filter(function(Ca) {
965
969
  return Ca !== "key";
966
970
  }), ct = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
967
- if (!Xt[he + ct]) {
971
+ if (!Xt[xe + ct]) {
968
972
  var pa = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
969
973
  w(`A props object containing a "key" prop is being spread into JSX:
970
974
  let props = %s;
971
975
  <%s {...props} />
972
976
  React keys must be passed directly to JSX without using spread:
973
977
  let props = %s;
974
- <%s key={someKey} {...props} />`, ct, he, pa, he), Xt[he + ct] = !0;
978
+ <%s key={someKey} {...props} />`, ct, xe, pa, xe), Xt[xe + ct] = !0;
975
979
  }
976
980
  }
977
981
  return o === r ? fa(W) : ma(W), W;
@@ -987,25 +991,25 @@ React keys must be passed directly to JSX without using spread:
987
991
  De.Fragment = r, De.jsx = ga, De.jsxs = va;
988
992
  }()), De;
989
993
  }
990
- process.env.NODE_ENV === "production" ? ht.exports = vr() : ht.exports = pr();
994
+ process.env.NODE_ENV === "production" ? ht.exports = pr() : ht.exports = Cr();
991
995
  var a = ht.exports;
992
- const Cr = "_notice_820sc_2", kr = "_error_820sc_9", yr = "_success_820sc_12", jr = "_remark_820sc_15", br = "_copy_820sc_18", wr = {
993
- notice: Cr,
994
- error: kr,
995
- success: yr,
996
- remark: jr,
997
- copy: br,
998
- "show-notice": "_show-notice_820sc_1",
999
- "hide-notice": "_hide-notice_820sc_1"
996
+ const kr = "_notice_9i5tr_2", yr = "_error_9i5tr_9", jr = "_success_9i5tr_12", br = "_remark_9i5tr_15", wr = "_copy_9i5tr_18", Sr = {
997
+ notice: kr,
998
+ error: yr,
999
+ success: jr,
1000
+ remark: br,
1001
+ copy: wr,
1002
+ "show-notice": "_show-notice_9i5tr_1",
1003
+ "hide-notice": "_hide-notice_9i5tr_1"
1000
1004
  };
1001
- let ue = {};
1002
- function Sr() {
1005
+ let me = {};
1006
+ function Er() {
1003
1007
  let [e, t] = h.useState([]);
1004
- return ue.set = (n) => {
1008
+ return me.set = (n) => {
1005
1009
  t([...e, n]);
1006
- }, ue.del = (n) => {
1010
+ }, me.del = (n) => {
1007
1011
  t(e.filter((r) => r.key !== n));
1008
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: wr.notice, children: e.map((n) => n.item) });
1012
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: Sr.notice, children: e.map((n) => n.item) });
1009
1013
  }
1010
1014
  function Ae({ data: e }) {
1011
1015
  let [t, n] = h.useState("show");
@@ -1013,7 +1017,7 @@ function Ae({ data: e }) {
1013
1017
  setTimeout(function() {
1014
1018
  n("hide");
1015
1019
  }, 1800), setTimeout(function() {
1016
- ue.del(e.key);
1020
+ me.del(e.key);
1017
1021
  }, 2500);
1018
1022
  }, [e.key]);
1019
1023
  let r, s;
@@ -1040,25 +1044,25 @@ function Ae({ data: e }) {
1040
1044
  /* @__PURE__ */ a.jsx("p", { children: e.text })
1041
1045
  ] });
1042
1046
  }
1043
- function Er(e) {
1047
+ function Rr(e) {
1044
1048
  let t = Date.now(), n = { key: t, ...e };
1045
- ue.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1049
+ me.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1046
1050
  }
1047
- function Rr(e) {
1051
+ function Nr(e) {
1048
1052
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1049
- ue.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1053
+ me.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1050
1054
  }
1051
- function Nr(e) {
1055
+ function Tr(e) {
1052
1056
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1053
- ue.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1057
+ me.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1054
1058
  }
1055
- function Tr(e) {
1059
+ function Ir(e) {
1056
1060
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1057
- ue.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1061
+ me.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1058
1062
  }
1059
- function Ir(e) {
1063
+ function Dr(e) {
1060
1064
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1061
- ue.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1065
+ me.set({ item: /* @__PURE__ */ a.jsx(Ae, { data: n }, t), key: t });
1062
1066
  }
1063
1067
  const ge = {};
1064
1068
  ge.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1093,21 +1097,21 @@ ge.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1093
1097
  }
1094
1098
  )
1095
1099
  ] });
1096
- const Dr = "_alerts_1pds5_1", Mr = "_menuAnimation_1pds5_1", Fr = "_menuItemAnimation_1pds5_1", Lr = "_allert_1pds5_111", $r = "_al_1pds5_1", xt = {
1097
- alerts: Dr,
1098
- menuAnimation: Mr,
1099
- menuItemAnimation: Fr,
1100
+ const Mr = "_alerts_1pds5_1", Fr = "_menuAnimation_1pds5_1", Lr = "_menuItemAnimation_1pds5_1", $r = "_allert_1pds5_111", Pr = "_al_1pds5_1", xt = {
1101
+ alerts: Mr,
1102
+ menuAnimation: Fr,
1103
+ menuItemAnimation: Lr,
1100
1104
  "--body": "_--body_1pds5_103",
1101
- allert: Lr,
1105
+ allert: $r,
1102
1106
  "--form": "_--form_1pds5_111",
1103
- al: $r
1107
+ al: Pr
1104
1108
  };
1105
1109
  let Le = {};
1106
- function Pr() {
1110
+ function Br() {
1107
1111
  let [e, t] = h.useState("");
1108
1112
  return Le.set = (n) => t(n), Le.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1109
1113
  }
1110
- const Br = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: xt.alerts, children: [
1114
+ const Or = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: xt.alerts, children: [
1111
1115
  /* @__PURE__ */ a.jsxs("dl", { children: [
1112
1116
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1113
1117
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1124,10 +1128,10 @@ const Br = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1124
1128
  ] }),
1125
1129
  /* @__PURE__ */ a.jsx("div", { className: xt["--body"], onClick: Le.del })
1126
1130
  ] }));
1127
- function Or(e, t) {
1128
- Le.set(/* @__PURE__ */ a.jsx(Br, { data: e, callback: t }));
1131
+ function Ar(e, t) {
1132
+ Le.set(/* @__PURE__ */ a.jsx(Or, { data: e, callback: t }));
1129
1133
  }
1130
- const $e = { Send: Er, Error: Rr, Remark: Tr, Success: Nr, Copy: Ir }, He = {
1134
+ const $e = { Send: Rr, Error: Nr, Remark: Ir, Success: Tr, Copy: Dr }, He = {
1131
1135
  Path: Va,
1132
1136
  setPage: Pa,
1133
1137
  getPage: fn,
@@ -1143,7 +1147,7 @@ const $e = { Send: Er, Error: Rr, Remark: Tr, Success: Nr, Copy: Ir }, He = {
1143
1147
  subId: Ga,
1144
1148
  getId: Wa
1145
1149
  };
1146
- function Ar() {
1150
+ function Zr() {
1147
1151
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1148
1152
  /* @__PURE__ */ a.jsx(
1149
1153
  "path",
@@ -1178,7 +1182,7 @@ function Ar() {
1178
1182
  )
1179
1183
  ] });
1180
1184
  }
1181
- function Zr() {
1185
+ function zr() {
1182
1186
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1183
1187
  /* @__PURE__ */ a.jsx(
1184
1188
  "path",
@@ -1207,7 +1211,7 @@ function Zr() {
1207
1211
  )
1208
1212
  ] });
1209
1213
  }
1210
- function zr() {
1214
+ function Gr() {
1211
1215
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
1212
1216
  "path",
1213
1217
  {
@@ -1220,11 +1224,11 @@ function zr() {
1220
1224
  }
1221
1225
  ) });
1222
1226
  }
1223
- const Gr = "_n_euuvm_1", Kr = {
1224
- n: Gr
1227
+ const Kr = "_n_euuvm_1", Wr = {
1228
+ n: Kr
1225
1229
  };
1226
1230
  let Ze = {}, Me = [];
1227
- const Wr = (e, t) => {
1231
+ const Vr = (e, t) => {
1228
1232
  switch (t.type) {
1229
1233
  case "open":
1230
1234
  return {
@@ -1276,27 +1280,27 @@ const Wr = (e, t) => {
1276
1280
  throw new Error();
1277
1281
  }
1278
1282
  };
1279
- function Vr(e) {
1280
- Ze.fn({ action: "add", data: e });
1281
- }
1282
1283
  function Ur(e) {
1283
1284
  Ze.fn({ action: "add", data: e });
1284
1285
  }
1285
1286
  function Yr(e) {
1286
- Ze.fn({ action: "new", data: e });
1287
+ Ze.fn({ action: "add", data: e });
1287
1288
  }
1288
1289
  function Hr(e) {
1290
+ Ze.fn({ action: "new", data: e });
1291
+ }
1292
+ function qr(e) {
1289
1293
  Ze.fn = e;
1290
1294
  }
1291
- function qr() {
1292
- const [e, t] = h.useReducer(Wr, {
1295
+ function Jr() {
1296
+ const [e, t] = h.useReducer(Vr, {
1293
1297
  open: !1,
1294
1298
  active: !1,
1295
1299
  news: [],
1296
1300
  take: {}
1297
1301
  });
1298
- le.useListener("bell", async (r) => {
1299
- }), Hr(async (r) => {
1302
+ ce.useListener("bell", async (r) => {
1303
+ }), qr(async (r) => {
1300
1304
  switch (r.action) {
1301
1305
  case "add":
1302
1306
  Me.push(r.data);
@@ -1304,7 +1308,7 @@ function qr() {
1304
1308
  }
1305
1309
  }), h.useEffect(() => {
1306
1310
  (async () => {
1307
- let r = await le.Send({
1311
+ let r = await ce.Send({
1308
1312
  type: "module",
1309
1313
  module: "M00",
1310
1314
  query: "x0054",
@@ -1360,11 +1364,11 @@ function qr() {
1360
1364
  /* @__PURE__ */ a.jsx(
1361
1365
  "div",
1362
1366
  {
1363
- className: Kr.n,
1367
+ className: Wr.n,
1364
1368
  onClick: () => {
1365
1369
  t({ type: "open", open: !0 });
1366
1370
  },
1367
- children: e.active ? /* @__PURE__ */ a.jsx(Zr, {}) : /* @__PURE__ */ a.jsx(Ar, {})
1371
+ children: e.active ? /* @__PURE__ */ a.jsx(zr, {}) : /* @__PURE__ */ a.jsx(Zr, {})
1368
1372
  }
1369
1373
  ),
1370
1374
  e.open ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1379,7 +1383,7 @@ function qr() {
1379
1383
  ),
1380
1384
  /* @__PURE__ */ a.jsxs("div", { className: "notify-m", children: [
1381
1385
  /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ a.jsx(
1382
- Jr,
1386
+ Xr,
1383
1387
  {
1384
1388
  data: r,
1385
1389
  dispatch: t
@@ -1391,9 +1395,9 @@ function qr() {
1391
1395
  ] }) : ""
1392
1396
  ] });
1393
1397
  }
1394
- const Jr = ({ data: e, dispatch: t }) => {
1398
+ const Xr = ({ data: e, dispatch: t }) => {
1395
1399
  let n = async (r) => {
1396
- t({ type: "hide", id: r.id }), await le.Send({
1400
+ t({ type: "hide", id: r.id }), await ce.Send({
1397
1401
  type: "module",
1398
1402
  module: "M00",
1399
1403
  query: "x0055",
@@ -1408,16 +1412,16 @@ const Jr = ({ data: e, dispatch: t }) => {
1408
1412
  ] }),
1409
1413
  /* @__PURE__ */ a.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
1410
1414
  ] });
1411
- }, Xr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1412
- function Qr(e) {
1415
+ }, Qr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1416
+ function es(e) {
1413
1417
  return new SharedWorker(
1414
- "data:text/javascript;base64," + Xr,
1418
+ "data:text/javascript;base64," + Qr,
1415
1419
  {
1416
1420
  name: e == null ? void 0 : e.name
1417
1421
  }
1418
1422
  );
1419
1423
  }
1420
- function es(e) {
1424
+ function ts(e) {
1421
1425
  let t = {}, n = {};
1422
1426
  e.data.forEach((s) => {
1423
1427
  t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
@@ -1425,7 +1429,7 @@ function es(e) {
1425
1429
  let r = { ...Oe(), 901: t };
1426
1430
  vn(n), Be(r);
1427
1431
  }
1428
- function ts() {
1432
+ function ns() {
1429
1433
  let e = pn(), t = {};
1430
1434
  return Object.keys(e).forEach((n) => {
1431
1435
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
@@ -1441,10 +1445,10 @@ let se = {}, V = {}, Ye = [
1441
1445
  "info",
1442
1446
  "job"
1443
1447
  ];
1444
- function ns() {
1448
+ function as() {
1445
1449
  const [e, t] = h.useState(!1), [n, r] = h.useState(!1);
1446
1450
  function s(i) {
1447
- const c = new Qr();
1451
+ const c = new es();
1448
1452
  se.laodData = (l) => {
1449
1453
  let _ = Ye.indexOf(l);
1450
1454
  _ >= 0 && Ye.splice(_, 1), Ye.length === 0 && t(!0);
@@ -1468,8 +1472,8 @@ function ns() {
1468
1472
  V.module = (e) => {
1469
1473
  se[e.listen] !== void 0 && (se[e.listen](e), delete se[e.listen]);
1470
1474
  };
1471
- V.bell = Yr;
1472
- V.company = es;
1475
+ V.bell = Hr;
1476
+ V.company = ts;
1473
1477
  V.info = (e) => {
1474
1478
  let t = {};
1475
1479
  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), xn(e.data.menu);
@@ -1540,12 +1544,12 @@ V.setting = (e) => {
1540
1544
  };
1541
1545
  V.app = () => {
1542
1546
  };
1543
- const as = (e, t) => {
1547
+ const rs = (e, t) => {
1544
1548
  se[e] = t;
1545
- }, rs = (e, t) => {
1549
+ }, ss = (e, t) => {
1546
1550
  se[e](t);
1547
1551
  };
1548
- function ss(e) {
1552
+ function is(e) {
1549
1553
  let t = "_" + String(Math.random()).substring(2, 7);
1550
1554
  return new Promise((n) => {
1551
1555
  se[t] = (r) => {
@@ -1553,8 +1557,8 @@ function ss(e) {
1553
1557
  }, e = { ...e, listen: t }, e.type = "modules", se.send(e);
1554
1558
  });
1555
1559
  }
1556
- const le = { useConnect: ns, useListener: as, setListener: rs, Send: ss };
1557
- function is(e, t) {
1560
+ const ce = { useConnect: as, useListener: rs, setListener: ss, Send: is };
1561
+ function os(e, t) {
1558
1562
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1559
1563
  let n = {
1560
1564
  yyyy: e.getFullYear(),
@@ -1571,11 +1575,11 @@ function is(e, t) {
1571
1575
  t = t.replace(r, n[r]);
1572
1576
  return t;
1573
1577
  }
1574
- function os(e) {
1578
+ function ls(e) {
1575
1579
  let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], n = new Date(e);
1576
1580
  return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1577
1581
  }
1578
- const ls = (e) => {
1582
+ const cs = (e) => {
1579
1583
  function t(T, R) {
1580
1584
  var y, P, L;
1581
1585
  T = T ?? "", R = R ?? 1;
@@ -1649,14 +1653,14 @@ const ls = (e) => {
1649
1653
  u3: ["тысяча", "тысячи", "тысяч"],
1650
1654
  u2: ["миллион", "миллиона", "миллионов"],
1651
1655
  u1: ["миллиард", "миллиарда", "миллиардов"]
1652
- }, s, i, c, l, j, _, d, C, u, m, x, g;
1656
+ }, s, i, c, l, j, _, d, p, u, m, x, g;
1653
1657
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1654
- var p = 12 - _.length;
1655
- if (p < 0)
1658
+ var C = 12 - _.length;
1659
+ if (C < 0)
1656
1660
  return !1;
1657
- for (var C = []; p--; )
1658
- C.push("0");
1659
- _ = C.join("") + _;
1661
+ for (var p = []; C--; )
1662
+ p.push("0");
1663
+ _ = p.join("") + _;
1660
1664
  var j = [];
1661
1665
  if (_ > 0) {
1662
1666
  m = t(_, 3);
@@ -1673,18 +1677,18 @@ const ls = (e) => {
1673
1677
  j.push(r.null);
1674
1678
  return j.push(n(_, r.ur)), j.push(l + " " + n(l, r.uc)), j.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1675
1679
  };
1676
- function cs(e) {
1680
+ function ds(e) {
1677
1681
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1678
1682
  do
1679
1683
  e = e / 1024, t++;
1680
1684
  while (e > 1024);
1681
1685
  return Math.max(e, 0.1).toFixed(1) + n[t];
1682
1686
  }
1683
- function ds(e) {
1687
+ function _s(e) {
1684
1688
  let t = {};
1685
1689
  return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
1686
1690
  }
1687
- function _s(e, t, n, r) {
1691
+ function us(e, t, n, r) {
1688
1692
  let s = {
1689
1693
  sexM: "m",
1690
1694
  sexF: "f",
@@ -1816,8 +1820,8 @@ function _s(e, t, n, r) {
1816
1820
  return c;
1817
1821
  this.init();
1818
1822
  var g = this.rules[_];
1819
- let p;
1820
- return g.exceptions && (p = this.pick(c, l, d, g.exceptions, !0), p) ? p : (p = this.pick(c, l, d, g.suffixes, !1), p || c);
1823
+ let C;
1824
+ return g.exceptions && (C = this.pick(c, l, d, g.exceptions, !0), C) ? C : (C = this.pick(c, l, d, g.suffixes, !1), C || c);
1821
1825
  },
1822
1826
  // выбираем из списка правил первое подходящее и применяем
1823
1827
  pick: function(c, l, _, d, u) {
@@ -1900,7 +1904,7 @@ function _s(e, t, n, r) {
1900
1904
  }
1901
1905
  return s.ln = e, s.fn = t || "", s.mn = n || "", s.sex = r || s.getSex(), s;
1902
1906
  }
1903
- function us(e) {
1907
+ function ms(e) {
1904
1908
  let t = e.split(" ");
1905
1909
  switch (t.length) {
1906
1910
  case 2:
@@ -1911,7 +1915,7 @@ function us(e) {
1911
1915
  return e;
1912
1916
  }
1913
1917
  }
1914
- function ms(e) {
1918
+ function fs(e) {
1915
1919
  return {
1916
1920
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1917
1921
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1927,96 +1931,96 @@ function ms(e) {
1927
1931
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1928
1932
  }[e];
1929
1933
  }
1930
- function fs(e) {
1934
+ function hs(e) {
1931
1935
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1932
1936
  }
1933
- function hs(e, t) {
1937
+ function xs(e, t) {
1934
1938
  let n = t + "";
1935
1939
  for (; n.length < e; )
1936
1940
  n = "0" + n;
1937
1941
  return n;
1938
1942
  }
1939
- function xs(e, t, n) {
1943
+ function gs(e, t, n) {
1940
1944
  let r = t / e * n;
1941
1945
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1942
1946
  }
1943
- function gs(e) {
1947
+ function vs(e) {
1944
1948
  return e.charAt(0).toUpperCase() + e.slice(1);
1945
1949
  }
1946
- function vs(e, t) {
1950
+ function ps(e, t) {
1947
1951
  e = Math.abs(e) % 100;
1948
1952
  let n = e % 10;
1949
1953
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
1950
1954
  }
1951
1955
  const K = {
1952
- Date: is,
1953
- MoneyString: ls,
1954
- DateSort: os,
1955
- Size: cs,
1956
- TypeFiles: ds,
1957
- Cases: _s,
1958
- Initials: us,
1959
- Month: ms,
1960
- Money: fs,
1961
- Number: hs,
1962
- Percent: xs,
1963
- CapitalizeFirstLetter: gs,
1964
- DeclensionWord: vs
1956
+ Date: os,
1957
+ MoneyString: cs,
1958
+ DateSort: ls,
1959
+ Size: ds,
1960
+ TypeFiles: _s,
1961
+ Cases: us,
1962
+ Initials: ms,
1963
+ Month: fs,
1964
+ Money: hs,
1965
+ Number: xs,
1966
+ Percent: gs,
1967
+ CapitalizeFirstLetter: vs,
1968
+ DeclensionWord: ps
1965
1969
  };
1966
- function ps({ children: e }) {
1970
+ function Cs({ children: e }) {
1967
1971
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
1968
1972
  }
1969
- const Cs = "_white_11p39_14", ks = "_black_11p39_26", ys = "_shake_11p39_1", js = "_modal_11p39_73", bs = "_o_11p39_83", ws = "_w_11p39_14", Ss = "_h_11p39_107", Es = "_l_11p39_121", Rs = "_t_11p39_159", Ns = "_m_11p39_73", Ts = "_x_11p39_167", Is = "_s_11p39_177", Ds = "_c_11p39_182", Ms = "_f_11p39_187", Fs = "_btn_11p39_230", Ls = "_g_11p39_243", $s = "_confirm_11p39_322", Ps = "_cancel_11p39_327", Bs = "_disabled_11p39_332", Os = "_active_11p39_389", As = "_coincidence_11p39_395", Zs = "_sa_11p39_431", zs = "_ss_11p39_435", Gs = "_sm_11p39_439", Ks = "_sl_11p39_443", Ws = "_sx_11p39_447", Vs = "_sf_11p39_451", ae = {
1970
- white: Cs,
1971
- black: ks,
1972
- shake: ys,
1973
- modal: js,
1974
- o: bs,
1975
- w: ws,
1976
- h: Ss,
1977
- l: Es,
1978
- t: Rs,
1979
- m: Ns,
1980
- x: Ts,
1981
- s: Is,
1982
- c: Ds,
1983
- f: Ms,
1984
- btn: Fs,
1985
- g: Ls,
1973
+ const ks = "_white_11p39_14", ys = "_black_11p39_26", js = "_shake_11p39_1", bs = "_modal_11p39_73", ws = "_o_11p39_83", Ss = "_w_11p39_14", Es = "_h_11p39_107", Rs = "_l_11p39_121", Ns = "_t_11p39_159", Ts = "_m_11p39_73", Is = "_x_11p39_167", Ds = "_s_11p39_177", Ms = "_c_11p39_182", Fs = "_f_11p39_187", Ls = "_btn_11p39_230", $s = "_g_11p39_243", Ps = "_confirm_11p39_322", Bs = "_cancel_11p39_327", Os = "_disabled_11p39_332", As = "_active_11p39_389", Zs = "_coincidence_11p39_395", zs = "_sa_11p39_431", Gs = "_ss_11p39_435", Ks = "_sm_11p39_439", Ws = "_sl_11p39_443", Vs = "_sx_11p39_447", Us = "_sf_11p39_451", ae = {
1974
+ white: ks,
1975
+ black: ys,
1976
+ shake: js,
1977
+ modal: bs,
1978
+ o: ws,
1979
+ w: Ss,
1980
+ h: Es,
1981
+ l: Rs,
1982
+ t: Ns,
1983
+ m: Ts,
1984
+ x: Is,
1985
+ s: Ds,
1986
+ c: Ms,
1987
+ f: Fs,
1988
+ btn: Ls,
1989
+ g: $s,
1986
1990
  "size-a": "_size-a_11p39_296",
1987
1991
  "size-s": "_size-s_11p39_300",
1988
1992
  "size-m": "_size-m_11p39_304",
1989
1993
  "size-l": "_size-l_11p39_308",
1990
1994
  "size-x": "_size-x_11p39_312",
1991
1995
  "size-f": "_size-f_11p39_316",
1992
- confirm: $s,
1993
- cancel: Ps,
1994
- disabled: Bs,
1996
+ confirm: Ps,
1997
+ cancel: Bs,
1998
+ disabled: Os,
1995
1999
  await: "_await_11p39_339",
1996
- active: Os,
1997
- coincidence: As,
1998
- sa: Zs,
1999
- ss: zs,
2000
- sm: Gs,
2001
- sl: Ks,
2002
- sx: Ws,
2003
- sf: Vs
2000
+ active: As,
2001
+ coincidence: Zs,
2002
+ sa: zs,
2003
+ ss: Gs,
2004
+ sm: Ks,
2005
+ sl: Ws,
2006
+ sx: Vs,
2007
+ sf: Us
2004
2008
  };
2005
- function Us({ children: e }) {
2009
+ function Ys({ children: e }) {
2006
2010
  return /* @__PURE__ */ a.jsx("div", { className: ae.s, children: e });
2007
2011
  }
2008
- function Ys({ children: e, className: t }) {
2012
+ function Hs({ children: e, className: t }) {
2009
2013
  let n = {};
2010
2014
  return t && (n.className = t), /* @__PURE__ */ a.jsx("div", { "data-form": "outline", ...n, children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
2011
2015
  }
2012
- function Hs({ children: e }) {
2016
+ function qs({ children: e }) {
2013
2017
  return /* @__PURE__ */ a.jsx("div", { className: ae.c, children: e });
2014
2018
  }
2015
- const qs = "_btn_1hz2s_6", Js = "_confirm_1hz2s_19", sn = {
2016
- btn: qs,
2017
- confirm: Js
2019
+ const Js = "_btn_1hz2s_6", Xs = "_confirm_1hz2s_19", sn = {
2020
+ btn: Js,
2021
+ confirm: Xs
2018
2022
  };
2019
- function Xs({ onClick: e, onSend: t, label: n, onRef: r }) {
2023
+ function Qs({ onClick: e, onSend: t, label: n, onRef: r }) {
2020
2024
  let [s, i] = h.useState(!1);
2021
2025
  const c = () => {
2022
2026
  if (e)
@@ -2034,7 +2038,7 @@ function Xs({ onClick: e, onSend: t, label: n, onRef: r }) {
2034
2038
  );
2035
2039
  }
2036
2040
  let pe = {};
2037
- function Qs({ config: e }) {
2041
+ function ei({ config: e }) {
2038
2042
  let [t, n] = h.useState([]);
2039
2043
  return pe.x = (r) => {
2040
2044
  r || n([]);
@@ -2042,7 +2046,7 @@ function Qs({ config: e }) {
2042
2046
  n([...t, r]);
2043
2047
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((r) => r) });
2044
2048
  }
2045
- function ei({
2049
+ function ti({
2046
2050
  title: e,
2047
2051
  children: t,
2048
2052
  button: n,
@@ -2112,7 +2116,7 @@ function ei({
2112
2116
  )
2113
2117
  ] }),
2114
2118
  t,
2115
- n !== void 0 ? /* @__PURE__ */ a.jsx(Xs, { label: n.label, onSend: d }) : ""
2119
+ n !== void 0 ? /* @__PURE__ */ a.jsx(Qs, { label: n.label, onSend: d }) : ""
2116
2120
  ]
2117
2121
  }
2118
2122
  )
@@ -2120,13 +2124,13 @@ function ei({
2120
2124
  }
2121
2125
  ) : "" });
2122
2126
  }
2123
- function ti(e) {
2124
- pe.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2127
+ function ni(e) {
2128
+ pe.add(/* @__PURE__ */ a.jsx(ai, { children: e }, String(Date.now())));
2125
2129
  }
2126
- function ni({ children: e }) {
2130
+ function ai({ children: e }) {
2127
2131
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
2128
2132
  }
2129
- function ai(e) {
2133
+ function ri(e) {
2130
2134
  if (e.target.classList[0] !== "modal")
2131
2135
  return;
2132
2136
  let t = e.target.children[0];
@@ -2134,29 +2138,29 @@ function ai(e) {
2134
2138
  t.setAttribute("shake", !1);
2135
2139
  }, 1e3);
2136
2140
  }
2137
- function ri({ type: e, name: t, params: n }) {
2141
+ function si({ type: e, name: t, params: n }) {
2138
2142
  let [r, s] = h.useState(null);
2139
2143
  return h.useEffect(() => {
2140
2144
  pe.config(e, t, n, s);
2141
2145
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2142
2146
  }
2143
- function si(e, t, n) {
2147
+ function ii(e, t, n) {
2144
2148
  pe.config(e, t, n);
2145
2149
  }
2146
- function ii(e) {
2150
+ function oi(e) {
2147
2151
  pe.x(e);
2148
2152
  }
2149
2153
  const Et = {
2150
- List: ps,
2151
- Scroll: Us,
2152
- Main: ei,
2153
- Add: ti,
2154
- Icon: ri,
2155
- Open: si,
2156
- Shake: ai,
2157
- Form: Ys,
2158
- Center: Hs,
2159
- Close: ii
2154
+ List: Cs,
2155
+ Scroll: Ys,
2156
+ Main: ti,
2157
+ Add: ni,
2158
+ Icon: si,
2159
+ Open: ii,
2160
+ Shake: ri,
2161
+ Form: Hs,
2162
+ Center: qs,
2163
+ Close: oi
2160
2164
  };
2161
2165
  function wn({ text: e, type: t, button: n }) {
2162
2166
  let [r, s] = h.useState(!1), i = { active: t };
@@ -2190,22 +2194,22 @@ function wn({ text: e, type: t, button: n }) {
2190
2194
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2191
2195
  ] });
2192
2196
  }
2193
- const oi = "_h_1usnu_1", li = "_g_1usnu_11", ci = "_hr_1usnu_16", di = "_hl_1usnu_28", _i = "_t_1usnu_40", ui = "_s_1usnu_60", mi = "_u_1usnu_69", fi = "_o_1usnu_76", hi = "_l_1usnu_105", xi = "_hh_1usnu_115", gi = "_c_1usnu_128", vi = "_loadingB_1usnu_1", pi = "_m_1usnu_180", Ci = "_ul_1usnu_196", ki = "_f_1usnu_226", J = {
2194
- h: oi,
2195
- g: li,
2196
- hr: ci,
2197
- hl: di,
2198
- t: _i,
2199
- s: ui,
2200
- u: mi,
2201
- o: fi,
2202
- l: hi,
2203
- hh: xi,
2204
- c: gi,
2205
- loadingB: vi,
2206
- m: pi,
2207
- ul: Ci,
2208
- f: ki
2197
+ const li = "_h_1usnu_1", ci = "_g_1usnu_11", di = "_hr_1usnu_16", _i = "_hl_1usnu_28", ui = "_t_1usnu_40", mi = "_s_1usnu_60", fi = "_u_1usnu_69", hi = "_o_1usnu_76", xi = "_l_1usnu_105", gi = "_hh_1usnu_115", vi = "_c_1usnu_128", pi = "_loadingB_1usnu_1", Ci = "_m_1usnu_180", ki = "_ul_1usnu_196", yi = "_f_1usnu_226", J = {
2198
+ h: li,
2199
+ g: ci,
2200
+ hr: di,
2201
+ hl: _i,
2202
+ t: ui,
2203
+ s: mi,
2204
+ u: fi,
2205
+ o: hi,
2206
+ l: xi,
2207
+ hh: gi,
2208
+ c: vi,
2209
+ loadingB: pi,
2210
+ m: Ci,
2211
+ ul: ki,
2212
+ f: yi
2209
2213
  }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: J.h, children: [
2210
2214
  /* @__PURE__ */ a.jsx("div", { className: J.t, children: e }),
2211
2215
  t && /* @__PURE__ */ a.jsx("div", { className: J.hl, children: t }),
@@ -2218,26 +2222,26 @@ const oi = "_h_1usnu_1", li = "_g_1usnu_11", ci = "_hr_1usnu_16", di = "_hl_1usn
2218
2222
  function _n({ children: e }) {
2219
2223
  return /* @__PURE__ */ a.jsx("div", { className: J.g, children: e });
2220
2224
  }
2221
- const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [J.o, t].join(" "), children: [
2225
+ const ji = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [J.o, t].join(" "), children: [
2222
2226
  n && /* @__PURE__ */ a.jsx("div", { className: J.hh, children: n }),
2223
2227
  e
2224
- ] }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: J.u, children: e }), bi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: J.c, children: e }), wi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: J.m, children: e }), un = {
2228
+ ] }), bi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: J.u, children: e }), wi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: J.c, children: e }), Si = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: J.m, children: e }), un = {
2225
2229
  Header: on,
2226
2230
  Section: cn,
2227
2231
  Group: _n,
2228
2232
  Form: dn,
2229
2233
  List: ln,
2230
2234
  A: wn,
2231
- U: ji,
2235
+ U: bi,
2232
2236
  G: _n,
2233
- C: bi,
2237
+ C: wi,
2234
2238
  L: ln,
2235
- O: yi,
2239
+ O: ji,
2236
2240
  S: cn,
2237
2241
  H: on,
2238
- M: wi,
2242
+ M: Si,
2239
2243
  F: dn
2240
- }, Si = (e, t) => {
2244
+ }, Ei = (e, t) => {
2241
2245
  switch (t.type) {
2242
2246
  case "load":
2243
2247
  return {
@@ -2298,14 +2302,14 @@ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2298
2302
  default:
2299
2303
  return e;
2300
2304
  }
2301
- }, Ei = () => ({
2305
+ }, Ri = () => ({
2302
2306
  load: !0,
2303
2307
  list: [],
2304
2308
  name: "Файлы",
2305
2309
  add: !1,
2306
2310
  search: !1,
2307
2311
  revers: !0
2308
- }), Ri = () => {
2312
+ }), Ni = () => {
2309
2313
  let [e, t] = h.useState([]);
2310
2314
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2311
2315
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
@@ -2321,17 +2325,17 @@ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2321
2325
  ] }),
2322
2326
  /* @__PURE__ */ a.jsx("div", { className: "--list", children: e.map((n) => n) })
2323
2327
  ] }) : "" });
2324
- }, Ni = ({
2328
+ }, Ti = ({
2325
2329
  id: e,
2326
2330
  name: t,
2327
2331
  listen: n,
2328
2332
  dir: r
2329
2333
  }) => {
2330
2334
  t = t || "Файлы";
2331
- const [s, i] = h.useReducer(Si, {}, Ei), c = () => {
2335
+ const [s, i] = h.useReducer(Ei, {}, Ri), c = () => {
2332
2336
  Et.Add(
2333
2337
  /* @__PURE__ */ a.jsx(
2334
- Ti,
2338
+ Ii,
2335
2339
  {
2336
2340
  dir: r,
2337
2341
  dispatch: i,
@@ -2343,7 +2347,7 @@ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2343
2347
  };
2344
2348
  return h.useEffect(() => {
2345
2349
  (async () => {
2346
- let l = await le.Send({
2350
+ let l = await ce.Send({
2347
2351
  type: "module",
2348
2352
  module: "M09",
2349
2353
  query: "x0900",
@@ -2380,9 +2384,9 @@ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2380
2384
  /* @__PURE__ */ a.jsx("i", {}),
2381
2385
  /* @__PURE__ */ a.jsx("i", {}),
2382
2386
  /* @__PURE__ */ a.jsx("i", {})
2383
- ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ii, { dispatch: i, data: l }, _)) })
2387
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Di, { dispatch: i, data: l }, _)) })
2384
2388
  ] });
2385
- }, Ti = ({ id: e, dir: t, dispatch: n }) => {
2389
+ }, Ii = ({ id: e, dir: t, dispatch: n }) => {
2386
2390
  let [r, s] = h.useState(!0), i = h.useRef(null), c = (d) => {
2387
2391
  d.preventDefault(), d.stopPropagation();
2388
2392
  }, l = (d) => {
@@ -2431,7 +2435,7 @@ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2431
2435
  },
2432
2436
  (/* @__PURE__ */ new Date()).getTime()
2433
2437
  ) }) : "" });
2434
- }, Ii = ({ data: e, dispatch: t }) => {
2438
+ }, Di = ({ data: e, dispatch: t }) => {
2435
2439
  let n = async () => {
2436
2440
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2437
2441
  headers: {
@@ -2481,9 +2485,9 @@ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2481
2485
  ] });
2482
2486
  }, Rt = { setSetting: Ya, getSetting: Ha };
2483
2487
  let A = {};
2484
- A.list = ar();
2488
+ A.list = rr();
2485
2489
  A.active = null;
2486
- const Di = () => {
2490
+ const Mi = () => {
2487
2491
  var s;
2488
2492
  let [e, t] = h.useState([]), [n, r] = h.useState(Rt.getSetting("s03"));
2489
2493
  return h.useEffect(() => {
@@ -2521,7 +2525,7 @@ const Di = () => {
2521
2525
  "bookmarks",
2522
2526
  n === 1 && e.length !== 0 ? "bottom" : ""
2523
2527
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2524
- }, Mi = ({ id: e, type: t, name: n }) => {
2528
+ }, Fi = ({ id: e, type: t, name: n }) => {
2525
2529
  let r = t + "-" + e, [s, i] = h.useState(
2526
2530
  A.list[r] !== void 0
2527
2531
  );
@@ -2549,7 +2553,7 @@ const Di = () => {
2549
2553
  He.setId(e.id);
2550
2554
  };
2551
2555
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2552
- }, Fi = (e) => {
2556
+ }, Li = (e) => {
2553
2557
  A.active(e);
2554
2558
  }, B = {}, vt = {}, b = {};
2555
2559
  b.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
@@ -2613,7 +2617,7 @@ B.setListener = (e) => {
2613
2617
  B.callTo = async (e) => {
2614
2618
  B.start(async () => {
2615
2619
  const t = await b.rtc.createOffer();
2616
- await b.rtc.setLocalDescription(t), b.uid = e, le.Send({
2620
+ await b.rtc.setLocalDescription(t), b.uid = e, ce.Send({
2617
2621
  type: "module",
2618
2622
  module: "M00",
2619
2623
  query: "x0050",
@@ -2634,7 +2638,7 @@ B.callRise = async () => {
2634
2638
  new RTCSessionDescription(JSON.parse(atob(b.offer)))
2635
2639
  );
2636
2640
  const e = await b.rtc.createAnswer();
2637
- await b.rtc.setLocalDescription(e), le.Send({
2641
+ await b.rtc.setLocalDescription(e), ce.Send({
2638
2642
  type: "module",
2639
2643
  module: "M00",
2640
2644
  query: "x0050",
@@ -2649,7 +2653,7 @@ B.callRise = async () => {
2649
2653
  B.callOk = async (e) => {
2650
2654
  b.asset = e.id;
2651
2655
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2652
- await b.rtc.setRemoteDescription(t), le.Send({
2656
+ await b.rtc.setRemoteDescription(t), ce.Send({
2653
2657
  type: "module",
2654
2658
  module: "M00",
2655
2659
  query: "x0050",
@@ -2664,7 +2668,7 @@ B.callOk = async (e) => {
2664
2668
  B.IceCandidate = async (e) => {
2665
2669
  e.candidate.forEach((t) => {
2666
2670
  b.rtc.addIceCandidate(new RTCIceCandidate(t));
2667
- }), e.send && le.Send({
2671
+ }), e.send && ce.Send({
2668
2672
  type: "module",
2669
2673
  module: "M00",
2670
2674
  query: "x0050",
@@ -2685,7 +2689,7 @@ B.callOf = () => {
2685
2689
  b.asset = 0, b.time = !1, b.rtc.close();
2686
2690
  };
2687
2691
  B.callRefuser = async () => {
2688
- le.Send({
2692
+ ce.Send({
2689
2693
  type: "module",
2690
2694
  module: "M00",
2691
2695
  query: "x0050",
@@ -2696,7 +2700,7 @@ B.Run = async (e) => {
2696
2700
  B[e.data.type] && B[e.data.type](e.data);
2697
2701
  };
2698
2702
  let Fe = {};
2699
- function Li() {
2703
+ function $i() {
2700
2704
  let [e, t] = h.useState([]), n = h.useRef(null);
2701
2705
  return h.useEffect(() => {
2702
2706
  }, []), Fe.set = (r) => {
@@ -2710,14 +2714,14 @@ function Li() {
2710
2714
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2711
2715
  ] });
2712
2716
  }
2713
- function $i(e, t) {
2717
+ function Pi(e, t) {
2714
2718
  let n = (/* @__PURE__ */ new Date()).getTime();
2715
2719
  Fe.set({
2716
- item: /* @__PURE__ */ a.jsx(Pi, { type: t, id: e }, n),
2720
+ item: /* @__PURE__ */ a.jsx(Bi, { type: t, id: e }, n),
2717
2721
  key: n
2718
2722
  });
2719
2723
  }
2720
- function Pi({ id: e, type: t }) {
2724
+ function Bi({ id: e, type: t }) {
2721
2725
  const [n, r] = h.useState({}), [s, i] = h.useState(t);
2722
2726
  h.useEffect(() => {
2723
2727
  r(re.getSelect("user")[e]);
@@ -2818,13 +2822,13 @@ function Pi({ id: e, type: t }) {
2818
2822
  ] }) });
2819
2823
  }
2820
2824
  const pt = {};
2821
- function Bi(e) {
2825
+ function Oi(e) {
2822
2826
  pt.add(e);
2823
2827
  }
2824
- function Oi({ color: e, size: t, name: n }) {
2828
+ function Ai({ color: e, size: t, name: n }) {
2825
2829
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2826
2830
  }
2827
- function Ai() {
2831
+ function Zi() {
2828
2832
  let [e, t] = h.useState([]);
2829
2833
  if (pt.x = () => {
2830
2834
  t([]);
@@ -2846,69 +2850,69 @@ function Ai() {
2846
2850
  )) });
2847
2851
  }
2848
2852
  const Ct = {};
2849
- function Zi(e, t) {
2853
+ function zi(e, t) {
2850
2854
  Ct[e] = t;
2851
2855
  }
2852
- function zi(e, t) {
2856
+ function Gi(e, t) {
2853
2857
  Ct[e] !== void 0 && Ct[e](t);
2854
2858
  }
2855
- const de = {};
2856
- function Gi(e, t) {
2859
+ const _e = {};
2860
+ function Ki(e, t) {
2857
2861
  const [n, r] = h.useState(t);
2858
2862
  return h.useEffect(() => {
2859
- if (de[e])
2860
- return de[e].push(r);
2861
- de[e] = [r];
2863
+ if (_e[e])
2864
+ return _e[e].push(r);
2865
+ _e[e] = [r];
2862
2866
  }, []), [n];
2863
2867
  }
2864
- function Ki(e, t) {
2865
- if (de[e])
2866
- return de[e].push(t);
2867
- de[e] = [t];
2868
- }
2869
2868
  function Wi(e, t) {
2870
- de[e] && de[e].forEach((n) => n(t));
2869
+ if (_e[e])
2870
+ return _e[e].push(t);
2871
+ _e[e] = [t];
2872
+ }
2873
+ function Vi(e, t) {
2874
+ _e[e] && _e[e].forEach((n) => n(t));
2871
2875
  }
2872
- const we = { setListener: zi, useListener: Zi, setEmitter: Wi, useEmitter: Gi, subEmitter: Ki };
2873
- function Vi() {
2876
+ const we = { setListener: Gi, useListener: zi, setEmitter: Vi, useEmitter: Ki, subEmitter: Wi };
2877
+ function Ui() {
2874
2878
  let [e, t] = h.useState([]);
2875
2879
  return we.useListener("form", (n) => {
2876
2880
  t([n]);
2877
2881
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2878
2882
  }
2879
- const Ui = ({ children: e, config: t }) => (M.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2883
+ const Yi = ({ children: e, config: t }) => (M.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2880
2884
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2881
- /* @__PURE__ */ a.jsx(Qs, { config: t.modal }),
2882
- /* @__PURE__ */ a.jsx(Sr, {}),
2883
- /* @__PURE__ */ a.jsx(Pr, {}),
2884
- /* @__PURE__ */ a.jsx(Ri, {}),
2885
- /* @__PURE__ */ a.jsx(Ai, {}),
2886
- /* @__PURE__ */ a.jsx(Vi, {}),
2887
- /* @__PURE__ */ a.jsx(Li, {}),
2888
- /* @__PURE__ */ a.jsx(Di, {}),
2885
+ /* @__PURE__ */ a.jsx(ei, { config: t.modal }),
2886
+ /* @__PURE__ */ a.jsx(Er, {}),
2887
+ /* @__PURE__ */ a.jsx(Br, {}),
2888
+ /* @__PURE__ */ a.jsx(Ni, {}),
2889
+ /* @__PURE__ */ a.jsx(Zi, {}),
2890
+ /* @__PURE__ */ a.jsx(Ui, {}),
2891
+ /* @__PURE__ */ a.jsx($i, {}),
2892
+ /* @__PURE__ */ a.jsx(Mi, {}),
2889
2893
  e
2890
2894
  ] })
2891
- )), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Hi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2895
+ )), Hi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), qi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2892
2896
  "xz",
2893
2897
  e
2894
- ] }), qi = "_payment_1lxfv_1", Ji = {
2895
- payment: qi
2898
+ ] }), Ji = "_payment_1lxfv_1", Xi = {
2899
+ payment: Ji
2896
2900
  };
2897
- function Xi() {
2901
+ function Qi() {
2898
2902
  let [e, t] = h.useState({});
2899
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Ji.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2903
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Xi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2900
2904
  }
2901
- const Ml = ({ children: e, ...t }) => {
2905
+ const Fl = ({ children: e, ...t }) => {
2902
2906
  let n = {};
2903
2907
  return n.enCode = (r) => JSON.stringify(r).toString(), n.deCode = (r) => JSON.parse(r), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2904
- /* @__PURE__ */ a.jsx(Xi, {}),
2905
- /* @__PURE__ */ a.jsx(Yi, {}),
2908
+ /* @__PURE__ */ a.jsx(Qi, {}),
2906
2909
  /* @__PURE__ */ a.jsx(Hi, {}),
2907
- /* @__PURE__ */ a.jsx(Ui, { config: { modal: {}, crypto: n } }),
2910
+ /* @__PURE__ */ a.jsx(qi, {}),
2911
+ /* @__PURE__ */ a.jsx(Yi, { config: { modal: {}, crypto: n } }),
2908
2912
  e
2909
2913
  ] });
2910
- }, Qi = ({ list: e, onClick: t, active: n, size: r, view: s }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2911
- eo,
2914
+ }, eo = ({ list: e, onClick: t, active: n, size: r, view: s }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2915
+ to,
2912
2916
  {
2913
2917
  onClick: t,
2914
2918
  active: n,
@@ -2916,9 +2920,9 @@ const Ml = ({ children: e, ...t }) => {
2916
2920
  link: i.link
2917
2921
  },
2918
2922
  i.link
2919
- )) }) }), eo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2920
- Qi.defaultProps = { size: "M", view: "H" };
2921
- const to = ({
2923
+ )) }) }), to = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2924
+ eo.defaultProps = { size: "M", view: "H" };
2925
+ const no = ({
2922
2926
  title: e = "",
2923
2927
  button: t,
2924
2928
  description: n = "",
@@ -2938,9 +2942,9 @@ const to = ({
2938
2942
  ] }),
2939
2943
  /* @__PURE__ */ a.jsx("ul", { children: r }),
2940
2944
  n && /* @__PURE__ */ a.jsx("article", { children: n })
2941
- ] }), no = "_setting_dva4m_2", ao = {
2942
- setting: no
2943
- }, ro = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ao.setting, children: e }), so = ({ label: e, children: t }) => {
2945
+ ] }), ao = "_setting_dva4m_2", ro = {
2946
+ setting: ao
2947
+ }, so = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ro.setting, children: e }), io = ({ label: e, children: t }) => {
2944
2948
  let [n, r] = h.useState(!1);
2945
2949
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2946
2950
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
@@ -2949,10 +2953,10 @@ const to = ({
2949
2953
  ] }),
2950
2954
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2951
2955
  ] });
2952
- }, io = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2956
+ }, oo = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2953
2957
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2954
2958
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
2955
- ] }) }), oo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2959
+ ] }) }), lo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2956
2960
  "div",
2957
2961
  {
2958
2962
  role: "switch",
@@ -2961,25 +2965,25 @@ const to = ({
2961
2965
  },
2962
2966
  "aria-checked": e ? "true" : "false"
2963
2967
  }
2964
- )), lo = { Switch: oo }, co = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2968
+ )), co = { Switch: lo }, _o = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2965
2969
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2966
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(lo.Switch, { onClick: t, active: n }) })
2967
- ] }) }), _o = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2970
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(co.Switch, { onClick: t, active: n }) })
2971
+ ] }) }), uo = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2968
2972
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2969
2973
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2970
- ] }) }), uo = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2974
+ ] }) }), mo = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2971
2975
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2972
2976
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2973
- ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2977
+ ] }) }), fo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2974
2978
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2975
2979
  /* @__PURE__ */ a.jsx("dd", { children: t })
2976
- ] }) }), fo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2980
+ ] }) }), ho = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2977
2981
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2978
2982
  /* @__PURE__ */ a.jsx("dd", { children: t })
2979
- ] }) }), ho = { Accordion: so, Button: io, Switch: co, Info: uo, Select: _o, Component: mo, Node: fo };
2983
+ ] }) }), xo = { Accordion: io, Button: oo, Switch: _o, Info: mo, Select: uo, Component: fo, Node: ho };
2980
2984
  function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2981
2985
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2982
- xo,
2986
+ go,
2983
2987
  {
2984
2988
  onClick: t,
2985
2989
  active: n,
@@ -2989,10 +2993,10 @@ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2989
2993
  i.link
2990
2994
  )) }) });
2991
2995
  }
2992
- const xo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2996
+ const go = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2993
2997
  Sn.defaultProps = { size: "M", view: "H" };
2994
- const Fl = { Section: to, Main: ro, Item: ho, Tabs: Sn }, Ll = { Icon: Mi, Item: gt, Active: Fi }, $l = { Send: Or, Line: wn };
2995
- function go() {
2998
+ const Ll = { Section: no, Main: so, Item: xo, Tabs: Sn }, $l = { Icon: Fi, Item: gt, Active: Li }, Pl = { Send: Ar, Line: wn };
2999
+ function vo() {
2996
3000
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2997
3001
  "path",
2998
3002
  {
@@ -3001,11 +3005,11 @@ function go() {
3001
3005
  }
3002
3006
  ) });
3003
3007
  }
3004
- const Pl = { Logo: go, Sprite: Bi, Symbol: Oi }, vo = "_sort_1yrvt_1", po = {
3005
- sort: vo
3008
+ const Bl = { Logo: vo, Sprite: Oi, Symbol: Ai }, po = "_sort_1yrvt_1", Co = {
3009
+ sort: po
3006
3010
  };
3007
3011
  let Qe = {};
3008
- function Co(e, t) {
3012
+ function ko(e, t) {
3009
3013
  switch (t.type) {
3010
3014
  case "active":
3011
3015
  let n = "<";
@@ -3018,12 +3022,12 @@ function Co(e, t) {
3018
3022
  throw new Error();
3019
3023
  }
3020
3024
  }
3021
- function ko() {
3025
+ function yo() {
3022
3026
  const [e, t] = h.useReducer(
3023
- Co,
3027
+ ko,
3024
3028
  ft() === void 0 ? { active: 1, sort: "<" } : ft()
3025
3029
  );
3026
- return /* @__PURE__ */ a.jsxs("div", { className: po.sort, children: [
3030
+ return /* @__PURE__ */ a.jsxs("div", { className: Co.sort, children: [
3027
3031
  /* @__PURE__ */ a.jsx(
3028
3032
  "i",
3029
3033
  {
@@ -3050,13 +3054,13 @@ function ko() {
3050
3054
  )
3051
3055
  ] });
3052
3056
  }
3053
- function yo(e) {
3057
+ function jo(e) {
3054
3058
  Qe.get = e;
3055
3059
  }
3056
- function jo(e) {
3060
+ function bo(e) {
3057
3061
  Qe.set(e);
3058
3062
  }
3059
- function bo(e, t, n) {
3063
+ function wo(e, t, n) {
3060
3064
  let r = 1, s = 0, i = {}, c = 50;
3061
3065
  i[r] = [];
3062
3066
  let l = {}, _ = "s1a";
@@ -3075,11 +3079,11 @@ function bo(e, t, n) {
3075
3079
  s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3076
3080
  }), { data: i };
3077
3081
  }
3078
- function wo(e) {
3082
+ function So(e) {
3079
3083
  Qe.count(e);
3080
3084
  }
3081
- const Bl = { Init: ko, useValue: yo, Set: jo, Run: bo, Count: wo }, qe = {}, En = {};
3082
- function So(e) {
3085
+ const Ol = { Init: yo, useValue: jo, Set: bo, Run: wo, Count: So }, qe = {}, En = {};
3086
+ function Eo(e) {
3083
3087
  const [t, n] = h.useState({}), r = async (s) => {
3084
3088
  n(
3085
3089
  Object.keys(qe).reduce((i, c) => (i ? i[c] = qe[c].all : i = {}, i), {})
@@ -3089,15 +3093,15 @@ function So(e) {
3089
3093
  e.forEach((s) => qe[s] = { all: 0 }), En.menu = r, r();
3090
3094
  }, [e]), t;
3091
3095
  }
3092
- function Eo(e, t) {
3096
+ function Ro(e, t) {
3093
3097
  switch (typeof t) {
3094
3098
  case "number":
3095
3099
  qe[e].all += t, En.menu();
3096
3100
  break;
3097
3101
  }
3098
3102
  }
3099
- const Ol = { useMenu: So, setUpdate: Eo };
3100
- class Ro {
3103
+ const Al = { useMenu: Eo, setUpdate: Ro };
3104
+ class No {
3101
3105
  constructor(t = "el", n = "db") {
3102
3106
  dt(this, "storeName");
3103
3107
  dt(this, "_dbp");
@@ -3118,9 +3122,9 @@ class Ro {
3118
3122
  }
3119
3123
  }
3120
3124
  let _t, G = {};
3121
- const Se = () => (_t || (_t = new Ro()), _t), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3125
+ const Se = () => (_t || (_t = new No()), _t), fe = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3122
3126
  G[e] = t, r.put(M.enCode(t), e);
3123
- }), ie = (e, t = Se()) => G[e] === void 0 ? new Promise((n, r) => {
3127
+ }), oe = (e, t = Se()) => G[e] === void 0 ? new Promise((n, r) => {
3124
3128
  let s;
3125
3129
  t._withIDBStore("readonly", (i) => {
3126
3130
  s = i.get(e);
@@ -3131,42 +3135,42 @@ const Se = () => (_t || (_t = new Ro()), _t), me = (e, t, n = Se()) => n._withID
3131
3135
  } else
3132
3136
  n({});
3133
3137
  });
3134
- }) : G[e], No = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3138
+ }) : G[e], To = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3135
3139
  n.delete(e);
3136
3140
  }), kt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3137
3141
  t.clear();
3138
- }), To = (e = Se()) => {
3142
+ }), Io = (e = Se()) => {
3139
3143
  const t = [];
3140
3144
  return e._withIDBStore("readonly", (n) => {
3141
3145
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3142
3146
  this.result && (t.push(this.result.key), this.result.continue());
3143
3147
  };
3144
3148
  }).then(() => t);
3145
- }, Io = (e, t, n = [], r = {}) => {
3149
+ }, Do = (e, t, n = [], r = {}) => {
3146
3150
  let s = n.length !== 0, i = [], c = r.sort, l = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], x = {};
3147
3151
  x[u] = [];
3148
- let g = (C) => {
3152
+ let g = (p) => {
3149
3153
  let j = "";
3150
3154
  if (n.forEach((k) => {
3151
- j += t[C][k];
3155
+ j += t[p][k];
3152
3156
  }), l) {
3153
3157
  let k = {};
3154
3158
  _.forEach((w) => {
3155
- k[w] = t[C][w];
3159
+ k[w] = t[p][w];
3156
3160
  });
3157
3161
  for (let w in c)
3158
- t[C][c[w]] === void 0 && (kt(), location.reload()), w === "s1" && (k[w] = new Date(t[C][c[w]]).getTime()), w === "s2" && (k[w] = t[C][c[w]]), w === "s3" && (k[w] = t[C][c[w]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3159
- i.push({ id: C, text: j, ...k });
3162
+ t[p][c[w]] === void 0 && (kt(), location.reload()), w === "s1" && (k[w] = new Date(t[p][c[w]]).getTime()), w === "s2" && (k[w] = t[p][c[w]]), w === "s3" && (k[w] = t[p][c[w]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3163
+ i.push({ id: p, text: j, ...k });
3160
3164
  } else
3161
- i.push({ id: C, text: j });
3162
- }, p = (C) => {
3165
+ i.push({ id: p, text: j });
3166
+ }, C = (p) => {
3163
3167
  };
3164
- return d.forEach((C) => {
3165
- m.push(t[C]);
3166
- }), m.forEach((C) => {
3167
- C === void 0 ? (kt(), location.reload()) : (s && g(C.id), l && p(C.id));
3168
+ return d.forEach((p) => {
3169
+ m.push(t[p]);
3170
+ }), m.forEach((p) => {
3171
+ p === void 0 ? (kt(), location.reload()) : (s && g(p.id), l && C(p.id));
3168
3172
  }), { list: x, search: i, filter: r };
3169
- }, Do = (e, t, n, r = Se()) => {
3173
+ }, Mo = (e, t, n, r = Se()) => {
3170
3174
  if (G[e] === void 0)
3171
3175
  return new Promise((s, i) => {
3172
3176
  let c;
@@ -3187,45 +3191,45 @@ const Se = () => (_t || (_t = new Ro()), _t), me = (e, t, n = Se()) => n._withID
3187
3191
  return G[e][t.id] = { ...G[e][t.id], ...t.data }, n !== void 0 && G[n] !== void 0 ? G[n][t.id] !== void 0 && (G[n][t.id] = t.data.eDate) : G[n] = [], delete G[e][t.id].$_item, delete G[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3188
3192
  s.put(M.enCode(G[e]), e), n !== void 0 && s.put(M.enCode(G[n]), n);
3189
3193
  });
3190
- }, Mo = async (e, t, n, r) => {
3191
- let s, i;
3192
- i = await ie(n), i[e.id] = e, await me(n, i), s !== null && (s = await ie(t), s[e.id] = e.eDate, await me(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3193
3194
  }, Fo = async (e, t, n, r) => {
3194
- let s = await ie(t), i = await ie(n);
3195
+ let s, i;
3196
+ i = await oe(n), i[e.id] = e, await fe(n, i), s !== null && (s = await oe(t), s[e.id] = e.eDate, await fe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3197
+ }, Lo = async (e, t, n, r) => {
3198
+ let s = await oe(t), i = await oe(n);
3195
3199
  for (let c in e)
3196
3200
  i[c] = e[c], s[c] = e[c].eDate;
3197
- await me(t, s), await me(n, i), r !== void 0 && r({ type: "load", page: s, base: i });
3198
- }, Lo = async (e, t, n, r) => {
3199
- let s = await ie(t), i = await ie(n);
3200
- e.forEach((c) => delete s[c]), await me(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3201
- }, $o = async (e, t, n) => {
3202
- let r = await ie(t);
3203
- e.forEach((s) => delete r[s]), await me(t, r);
3201
+ await fe(t, s), await fe(n, i), r !== void 0 && r({ type: "load", page: s, base: i });
3202
+ }, $o = async (e, t, n, r) => {
3203
+ let s = await oe(t), i = await oe(n);
3204
+ e.forEach((c) => delete s[c]), await fe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3204
3205
  }, Po = async (e, t, n) => {
3205
- let r = await ie(t);
3206
- e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3206
+ let r = await oe(t);
3207
+ e.forEach((s) => delete r[s]), await fe(t, r);
3207
3208
  }, Bo = async (e, t, n) => {
3208
- let r = await ie(t);
3209
+ let r = await oe(t);
3210
+ e.forEach((s) => r[s.id] = s.eDate), await fe(t, r);
3211
+ }, Oo = async (e, t, n) => {
3212
+ let r = await oe(t);
3209
3213
  if (n !== void 0)
3210
3214
  n({ type: "load", base: r });
3211
3215
  else
3212
3216
  return r[e];
3213
- }, Oo = (e) => G[e], Al = {
3214
- id: Bo,
3215
- get: ie,
3216
- set: me,
3217
- add: Mo,
3218
- del: No,
3219
- upd: Do,
3220
- key: To,
3221
- load: Oo,
3222
- split: Io,
3217
+ }, Ao = (e) => G[e], Zl = {
3218
+ id: Oo,
3219
+ get: oe,
3220
+ set: fe,
3221
+ add: Fo,
3222
+ del: To,
3223
+ upd: Mo,
3224
+ key: Io,
3225
+ load: Ao,
3226
+ split: Do,
3223
3227
  clear: kt,
3224
- updAll: Fo,
3225
- delAll: Lo,
3226
- delList: $o,
3227
- addList: Po
3228
- }, Ao = (e, t) => {
3228
+ updAll: Lo,
3229
+ delAll: $o,
3230
+ delList: Po,
3231
+ addList: Bo
3232
+ }, Zo = (e, t) => {
3229
3233
  const n = [];
3230
3234
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3231
3235
  n.push(r.keyCode);
@@ -3236,15 +3240,15 @@ const Se = () => (_t || (_t = new Ro()), _t), me = (e, t, n = Se()) => n._withID
3236
3240
  }, document.onkeyup = function(r) {
3237
3241
  n.length = 0;
3238
3242
  };
3239
- }, Zl = { useKey: Ao }, Zo = "_s_18bde_1", zo = "_loadingB_18bde_1", Go = "_ul_18bde_31", Ko = {
3240
- s: Zo,
3241
- loadingB: zo,
3242
- ul: Go
3243
+ }, zl = { useKey: Zo }, zo = "_s_18bde_1", Go = "_loadingB_18bde_1", Ko = "_ul_18bde_31", Wo = {
3244
+ s: zo,
3245
+ loadingB: Go,
3246
+ ul: Ko
3243
3247
  };
3244
3248
  function Rn({ children: e }) {
3245
3249
  return /* @__PURE__ */ a.jsx("ul", { className: J.ul, children: e });
3246
3250
  }
3247
- function Wo(e, t) {
3251
+ function Vo(e, t) {
3248
3252
  switch (t.type) {
3249
3253
  case "load":
3250
3254
  return {
@@ -3278,7 +3282,7 @@ function Wo(e, t) {
3278
3282
  }
3279
3283
  }
3280
3284
  function Nn(e) {
3281
- const t = h.useRef(null), [n, r] = h.useReducer(Wo, {
3285
+ const t = h.useRef(null), [n, r] = h.useReducer(Vo, {
3282
3286
  load: !1,
3283
3287
  list: [],
3284
3288
  data: {},
@@ -3293,13 +3297,13 @@ function Nn(e) {
3293
3297
  let s = () => {
3294
3298
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3295
3299
  };
3296
- return /* @__PURE__ */ a.jsx("div", { className: Ko.s, ref: t, onScroll: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: n.load && n.list !== void 0 ? n.list.map((i) => /* @__PURE__ */ a.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3300
+ return /* @__PURE__ */ a.jsx("div", { className: Wo.s, ref: t, onScroll: s, children: /* @__PURE__ */ a.jsx(Rn, { "el-empty": "Данные не найдены", children: n.load && n.list !== void 0 ? n.list.map((i) => /* @__PURE__ */ a.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3297
3301
  /* @__PURE__ */ a.jsx("i", {}),
3298
3302
  /* @__PURE__ */ a.jsx("i", {}),
3299
3303
  /* @__PURE__ */ a.jsx("i", {})
3300
3304
  ] }) }) });
3301
3305
  }
3302
- const zl = { Scrolling: Nn }, Gl = { Widget: Ni }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3306
+ const Gl = { Scrolling: Nn }, Kl = { Widget: Ti }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3303
3307
  "div",
3304
3308
  {
3305
3309
  role: "switch",
@@ -3307,20 +3311,20 @@ const zl = { Scrolling: Nn }, Gl = { Widget: Ni }, Tn = ({ onClick: e, active: t
3307
3311
  "aria-checked": `${t ? "true" : "false"}`
3308
3312
  }
3309
3313
  ));
3310
- let fe = {};
3311
- fe.KeyDown = (e) => {
3314
+ let he = {};
3315
+ he.KeyDown = (e) => {
3312
3316
  e.key === "Enter" && e.preventDefault();
3313
3317
  };
3314
- fe.PasteOne = (e) => {
3318
+ he.PasteOne = (e) => {
3315
3319
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3316
3320
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3317
3321
  }).catch((t) => {
3318
3322
  });
3319
3323
  };
3320
- fe.Focus = (e) => {
3324
+ he.Focus = (e) => {
3321
3325
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3322
3326
  };
3323
- fe.Blur = (e) => {
3327
+ he.Blur = (e) => {
3324
3328
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3325
3329
  };
3326
3330
  function Pe({
@@ -3338,9 +3342,9 @@ function Pe({
3338
3342
  view: m,
3339
3343
  onBlur: x,
3340
3344
  onSave: g,
3341
- className: p = ""
3345
+ className: C = ""
3342
3346
  }) {
3343
- let C = !!(c && (e === "" || e === void 0)), j = (P) => {
3347
+ let p = !!(c && (e === "" || e === void 0)), j = (P) => {
3344
3348
  t && t({ value: P.target.textContent, name: n });
3345
3349
  }, k = (P) => {
3346
3350
  P.key === "Enter" && P.preventDefault();
@@ -3354,14 +3358,14 @@ function Pe({
3354
3358
  }
3355
3359
  );
3356
3360
  };
3357
- if (!(l && _) && !u || !(l && _) && C)
3361
+ if (!(l && _) && !u || !(l && _) && p)
3358
3362
  return "";
3359
3363
  const R = {};
3360
- R.field = "input", p && (R.className = p);
3364
+ R.field = "input", C && (R.className = C);
3361
3365
  const y = {};
3362
3366
  r && (y.placeholder = r), y.edit = (l && _) + "";
3363
3367
  const L = (P) => {
3364
- fe.Blur(P), g && g({ value: P.target.textContent, name: n });
3368
+ he.Blur(P), g && g({ value: P.target.textContent, name: n });
3365
3369
  };
3366
3370
  return /* @__PURE__ */ a.jsxs("dl", { ...R, children: [
3367
3371
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
@@ -3426,12 +3430,12 @@ function Dn({
3426
3430
  k.keyCode === 16 && (d.current.shift = !0), k.keyCode === 13 && !d.current.shift && (k.preventDefault(), d.current.value.length !== 0 && (k.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3427
3431
  }, g = (k) => {
3428
3432
  k.keyCode === 16 && (d.current.shift = !1);
3429
- }, p = (k) => {
3433
+ }, C = (k) => {
3430
3434
  k.preventDefault(), navigator.clipboard.readText().then((w) => {
3431
3435
  window.document.execCommand("insertText", !1, w);
3432
3436
  }).catch((w) => {
3433
3437
  });
3434
- }, C = () => {
3438
+ }, p = () => {
3435
3439
  n(!1);
3436
3440
  }, j = {
3437
3441
  spellCheck: "true"
@@ -3439,11 +3443,11 @@ function Dn({
3439
3443
  return _ && (j.placeholder = _), c && l && (j.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3440
3444
  "dd",
3441
3445
  {
3442
- onPaste: p,
3446
+ onPaste: C,
3443
3447
  onInput: m,
3444
3448
  onKeyUp: g,
3445
3449
  onKeyDown: x,
3446
- onBlur: C,
3450
+ onBlur: p,
3447
3451
  ...j,
3448
3452
  suppressContentEditableWarning: !0,
3449
3453
  children: e
@@ -3478,23 +3482,23 @@ function Mn(e) {
3478
3482
  ] });
3479
3483
  }
3480
3484
  function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3481
- let s = (g, p) => Number(Math.round(g + Math.random() * (p - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3485
+ let s = (g, C) => Number(Math.round(g + Math.random() * (C - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3482
3486
  g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3483
3487
  }, d = (g) => {
3484
3488
  t({ value: Number(g.target.textContent) === l, name: r });
3485
3489
  }, u = (g) => {
3486
- g.preventDefault(), navigator.clipboard.readText().then((p) => {
3490
+ g.preventDefault(), navigator.clipboard.readText().then((C) => {
3487
3491
  window.document.execCommand(
3488
3492
  "insertText",
3489
3493
  !1,
3490
- p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3494
+ C.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3491
3495
  );
3492
- }).catch((p) => {
3496
+ }).catch((C) => {
3493
3497
  });
3494
3498
  };
3495
3499
  h.useEffect(() => {
3496
- const g = i.current, p = g.getContext("2d");
3497
- p.clearRect(0, 0, g.width, g.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), c.current.textContent = "";
3500
+ const g = i.current, C = g.getContext("2d");
3501
+ C.clearRect(0, 0, g.width, g.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(l, 50, 27), c.current.textContent = "";
3498
3502
  }, [l]);
3499
3503
  const m = {};
3500
3504
  m.field = "captcha";
@@ -3506,7 +3510,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3506
3510
  ref: c,
3507
3511
  onPaste: u,
3508
3512
  onInput: d,
3509
- onBlur: fe.Blur,
3513
+ onBlur: he.Blur,
3510
3514
  onKeyDown: _,
3511
3515
  contentEditable: "plaintext-only",
3512
3516
  suppressContentEditableWarning: !0,
@@ -3679,9 +3683,9 @@ function $n(e) {
3679
3683
  }
3680
3684
  ) });
3681
3685
  }
3682
- const Vo = "_o_ff5dx_1", Uo = "_c_ff5dx_11", je = {
3683
- o: Vo,
3684
- c: Uo
3686
+ const Uo = "_o_1kqkq_1", Yo = "_c_1kqkq_11", je = {
3687
+ o: Uo,
3688
+ c: Yo
3685
3689
  };
3686
3690
  function Nt(e) {
3687
3691
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.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 : "", [c, l] = h.useState(
@@ -3693,13 +3697,13 @@ function Nt(e) {
3693
3697
  let d = (g) => {
3694
3698
  l(g), e.onValue({ value: g, name: e.name });
3695
3699
  }, u = (g) => {
3696
- const p = g.target.getBoundingClientRect(), C = p.left, j = p.top;
3700
+ const C = g.target.getBoundingClientRect(), p = C.left, j = C.top;
3697
3701
  we.setListener(
3698
3702
  "form",
3699
3703
  /* @__PURE__ */ a.jsx(
3700
- Yo,
3704
+ Ho,
3701
3705
  {
3702
- position: { x: C, y: j },
3706
+ position: { x: p, y: j },
3703
3707
  onValue: d,
3704
3708
  date: c
3705
3709
  },
@@ -3738,7 +3742,7 @@ function Nt(e) {
3738
3742
  }
3739
3743
  ) });
3740
3744
  }
3741
- const Yo = (e) => {
3745
+ const Ho = (e) => {
3742
3746
  let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3743
3747
  y: parseInt(r.getFullYear()),
3744
3748
  d: parseInt(r.getDate()),
@@ -3755,16 +3759,16 @@ const Yo = (e) => {
3755
3759
  g.push(0);
3756
3760
  for (; x.getMonth() === m; )
3757
3761
  g.push(x.getDate()), x.setDate(x.getDate() + 1);
3758
- let p = () => {
3762
+ let C = () => {
3759
3763
  n(!1);
3760
- }, C = () => {
3764
+ }, p = () => {
3761
3765
  w(l.m + 1, l.y);
3762
3766
  }, j = () => {
3763
3767
  w(l.m - 1, l.y);
3764
3768
  }, k = (y) => {
3765
3769
  e.onValue(
3766
3770
  l.y + "-" + K.Number(2, l.m) + "-" + K.Number(2, y)
3767
- ), p();
3771
+ ), C();
3768
3772
  }, w = (y, L) => {
3769
3773
  L = y > 12 ? L + 1 : y < 1 ? L - 1 : L, y = y > 12 ? 1 : y < 1 ? 12 : y, _({ y: L, m: y });
3770
3774
  }, T = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, R = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
@@ -3773,7 +3777,7 @@ const Yo = (e) => {
3773
3777
  "div",
3774
3778
  {
3775
3779
  className: je.o,
3776
- onClick: () => p()
3780
+ onClick: () => C()
3777
3781
  },
3778
3782
  (/* @__PURE__ */ new Date()).getTime()
3779
3783
  ),
@@ -3790,7 +3794,7 @@ const Yo = (e) => {
3790
3794
  " ",
3791
3795
  l.y
3792
3796
  ] }),
3793
- /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => C() })
3797
+ /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => p() })
3794
3798
  ] }),
3795
3799
  /* @__PURE__ */ a.jsxs("div", { children: [
3796
3800
  u.map((y, L) => /* @__PURE__ */ a.jsx("p", { children: y }, "v" + L)),
@@ -3823,9 +3827,9 @@ function Tt({
3823
3827
  view: m,
3824
3828
  modal: x,
3825
3829
  module: g,
3826
- options: p
3830
+ options: C
3827
3831
  }) {
3828
- let [C, j] = h.useState(e), k = (T) => {
3832
+ let [p, j] = h.useState(e), k = (T) => {
3829
3833
  if (!x)
3830
3834
  return;
3831
3835
  let R = x.split(".");
@@ -3834,7 +3838,7 @@ function Tt({
3834
3838
  t && t({ value: y, name: n }), j(y);
3835
3839
  },
3836
3840
  onValue: t,
3837
- options: p,
3841
+ options: C,
3838
3842
  name: n,
3839
3843
  value: e
3840
3844
  });
@@ -3849,7 +3853,7 @@ function Tt({
3849
3853
  "data-edit": (l && d) + "",
3850
3854
  "data-placeholder": r,
3851
3855
  "data-after": u,
3852
- children: C
3856
+ children: p
3853
3857
  }
3854
3858
  ),
3855
3859
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
@@ -3857,8 +3861,8 @@ function Tt({
3857
3861
  }
3858
3862
  function It(e) {
3859
3863
  let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, x) => {
3860
- let g = document.createRange(), p = window.getSelection();
3861
- g.setStart(x.childNodes[0], m), g.collapse(!0), p.removeAllRanges(), p.addRange(g), x.focus();
3864
+ let g = document.createRange(), C = window.getSelection();
3865
+ g.setStart(x.childNodes[0], m), g.collapse(!0), C.removeAllRanges(), C.addRange(g), x.focus();
3862
3866
  }, s = (m) => {
3863
3867
  e.onValue({
3864
3868
  value: n(m.target.textContent),
@@ -3920,16 +3924,16 @@ function Pn({
3920
3924
  h.useEffect(() => {
3921
3925
  m(e);
3922
3926
  }, [e]);
3923
- let x = (C) => {
3924
- m(C), t && t({ value: C, name: n });
3925
- }, g = (C) => {
3927
+ let x = (p) => {
3928
+ m(p), t && t({ value: p, name: n });
3929
+ }, g = (p) => {
3926
3930
  if (!i || !c)
3927
3931
  return;
3928
- const j = C.target.getBoundingClientRect(), k = j.left, w = j.top;
3932
+ const j = p.target.getBoundingClientRect(), k = j.left, w = j.top;
3929
3933
  we.setListener(
3930
3934
  "form",
3931
3935
  /* @__PURE__ */ a.jsx(
3932
- Ho,
3936
+ qo,
3933
3937
  {
3934
3938
  position: { x: k, y: w },
3935
3939
  onValue: x,
@@ -3939,8 +3943,8 @@ function Pn({
3939
3943
  )
3940
3944
  );
3941
3945
  };
3942
- const p = {};
3943
- return _ && (p.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3946
+ const C = {};
3947
+ return _ && (C.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3944
3948
  "i",
3945
3949
  {
3946
3950
  "data-icon": "F043",
@@ -3955,7 +3959,7 @@ function Pn({
3955
3959
  "dd",
3956
3960
  {
3957
3961
  onClick: g,
3958
- ...p,
3962
+ ...C,
3959
3963
  children: K.Date(u, "mm.yyyy")
3960
3964
  }
3961
3965
  ),
@@ -3964,7 +3968,7 @@ function Pn({
3964
3968
  }
3965
3969
  ) });
3966
3970
  }
3967
- const Ho = (e) => {
3971
+ const qo = (e) => {
3968
3972
  let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3969
3973
  y: parseInt(r.getFullYear()),
3970
3974
  m: parseInt(r.getMonth()) + 1
@@ -3979,7 +3983,7 @@ const Ho = (e) => {
3979
3983
  _(l - 1);
3980
3984
  }, x = (k) => {
3981
3985
  e.onValue(l + "-" + K.Number(2, k)), d();
3982
- }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", p = Array(12).fill("").map((k, w) => w + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, j = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3986
+ }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, w) => w + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, j = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3983
3987
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3984
3988
  /* @__PURE__ */ a.jsx(
3985
3989
  "div",
@@ -3993,7 +3997,7 @@ const Ho = (e) => {
3993
3997
  "div",
3994
3998
  {
3995
3999
  className: je.c,
3996
- style: { top: C + "px", left: j + "px" },
4000
+ style: { top: p + "px", left: j + "px" },
3997
4001
  children: [
3998
4002
  /* @__PURE__ */ a.jsxs("s", { children: [
3999
4003
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => m() }),
@@ -4003,7 +4007,7 @@ const Ho = (e) => {
4003
4007
  /* @__PURE__ */ a.jsx(
4004
4008
  "div",
4005
4009
  {
4006
- children: p.map((k, w) => /* @__PURE__ */ a.jsx(
4010
+ children: C.map((k, w) => /* @__PURE__ */ a.jsx(
4007
4011
  "span",
4008
4012
  {
4009
4013
  onClick: () => {
@@ -4036,10 +4040,10 @@ function Bn(e) {
4036
4040
  };
4037
4041
  const g = (j) => {
4038
4042
  e.onSave && e.onSave({ value: j.target.innerText, name: e.name });
4039
- }, p = {};
4040
- p.field = "notes", e.className && (p.className = e.className);
4041
- const C = {};
4042
- return d && (C.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4043
+ }, C = {};
4044
+ C.field = "notes", e.className && (C.className = e.className);
4045
+ const p = {};
4046
+ return d && (p.placeholder = d), p.edit = (i && c) + "", p.open = "" + r, _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4043
4047
  t(),
4044
4048
  /* @__PURE__ */ a.jsx(
4045
4049
  "dd",
@@ -4048,9 +4052,7 @@ function Bn(e) {
4048
4052
  onInput: u,
4049
4053
  onBlur: g,
4050
4054
  contentEditable: i && c ? "plaintext-only" : "false",
4051
- "data-edit": (i && c) + "",
4052
- "data-open": "" + r,
4053
- ...C,
4055
+ ...p,
4054
4056
  onDoubleClick: x,
4055
4057
  suppressContentEditableWarning: !0,
4056
4058
  children: e.value
@@ -4075,7 +4077,7 @@ function Dt({
4075
4077
  after: x,
4076
4078
  view: g
4077
4079
  }) {
4078
- let p = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4080
+ let C = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", p = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4079
4081
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(r && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4080
4082
  let k = !1, w = (O) => {
4081
4083
  e && e({ value: O.target.textContent, name: m });
@@ -4089,20 +4091,20 @@ function Dt({
4089
4091
  if (O.which === 17 || O.which === 91)
4090
4092
  return k = !1;
4091
4093
  }, y = (O) => {
4092
- O.preventDefault(), navigator.clipboard.readText().then((oe) => {
4093
- oe = oe.replace(/\D/g, ""), window.document.execCommand(
4094
+ O.preventDefault(), navigator.clipboard.readText().then((le) => {
4095
+ le = le.replace(/\D/g, ""), window.document.execCommand(
4094
4096
  "insertText",
4095
4097
  !1,
4096
- "" + oe.replace(/\D/g, "")
4098
+ "" + le.replace(/\D/g, "")
4097
4099
  );
4098
- }).catch((oe) => {
4100
+ }).catch((le) => {
4099
4101
  });
4100
4102
  };
4101
4103
  const L = {};
4102
4104
  L.field = "input", u && (L.className = u);
4103
4105
  let P = {};
4104
4106
  return r && t ? (P.edit = "true", P.contentEditable = "plaintext-only") : P.contentEditable = "false", d && (P.placeholder = d), x && (P.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
4105
- p(),
4107
+ C(),
4106
4108
  /* @__PURE__ */ a.jsx(
4107
4109
  "dd",
4108
4110
  {
@@ -4115,7 +4117,7 @@ function Dt({
4115
4117
  children: _
4116
4118
  }
4117
4119
  ),
4118
- C()
4120
+ p()
4119
4121
  ] });
4120
4122
  }
4121
4123
  function On({
@@ -4149,10 +4151,10 @@ function On({
4149
4151
  }).catch((k) => {
4150
4152
  });
4151
4153
  };
4152
- const p = {};
4153
- p.field = "password", s && (p.className = s);
4154
4154
  const C = {};
4155
- return r && (C.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4155
+ C.field = "password", s && (C.className = s);
4156
+ const p = {};
4157
+ return r && (p.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4156
4158
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
4157
4159
  /* @__PURE__ */ a.jsx(
4158
4160
  "dd",
@@ -4160,9 +4162,9 @@ function On({
4160
4162
  onPaste: g,
4161
4163
  onInput: m,
4162
4164
  onKeyDown: x,
4163
- onBlur: fe.Blur,
4165
+ onBlur: he.Blur,
4164
4166
  contentEditable: l && _ ? "plaintext-only" : "false",
4165
- ...C,
4167
+ ...p,
4166
4168
  suppressContentEditableWarning: !0,
4167
4169
  children: e
4168
4170
  }
@@ -5569,7 +5571,7 @@ function Mt({
5569
5571
  className: g = ""
5570
5572
  }) {
5571
5573
  _ = _ !== void 0 ? _ : !0, d = d !== void 0 ? d : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && d), h.useRef(null);
5572
- let C = "+_(___) ___-__-__", j = !0, k = 0, w = (Z, D) => {
5574
+ let p = "+_(___) ___-__-__", j = !0, k = 0, w = (Z, D) => {
5573
5575
  let U = document.createRange(), Y = window.getSelection();
5574
5576
  U.setStart(D.childNodes[0], Z), U.collapse(!0), Y.removeAllRanges(), Y.addRange(U), D.focus();
5575
5577
  }, T = (Z) => {
@@ -5582,16 +5584,16 @@ function Mt({
5582
5584
  Y === "" && (j = !0);
5583
5585
  let ze = Y.split(""), ne = "";
5584
5586
  ze.forEach((Ge) => {
5585
- j && (ne += Ge, ut[ne] !== void 0 && j ? (j = !1, C = ut[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), U = ut[ne].code) : (j && (k = ("" + ne).length, C = `+${ne}_(___) ___-__-__`.replace(
5587
+ j && (ne += Ge, ut[ne] !== void 0 && j ? (j = !1, p = ut[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), U = ut[ne].code) : (j && (k = ("" + ne).length, p = `+${ne}_(___) ___-__-__`.replace(
5586
5588
  new RegExp("[0-9]", "g"),
5587
5589
  "_"
5588
- ), U = ""), k > ("" + ne).length && (j = !0, C = `+${ne}_(___) ___-__-__`.replace(
5590
+ ), U = ""), k > ("" + ne).length && (j = !0, p = `+${ne}_(___) ___-__-__`.replace(
5589
5591
  new RegExp("[0-9]", "g"),
5590
5592
  "_"
5591
5593
  ), U = "")));
5592
5594
  });
5593
- let Re = C.replace(/\D/g, "");
5594
- return Re.length >= Y.length && (Y = Re), { q: C.replace(/[_\d]/g, function() {
5595
+ let Re = p.replace(/\D/g, "");
5596
+ return Re.length >= Y.length && (Y = Re), { q: p.replace(/[_\d]/g, function() {
5595
5597
  return Y.charAt(D++) || "_";
5596
5598
  }), i: D, v: Y, f: U };
5597
5599
  }, y = (Z) => {
@@ -5604,29 +5606,29 @@ function Mt({
5604
5606
  );
5605
5607
  }, L = R(e), P = (Z) => {
5606
5608
  let D = R(Z.target.textContent);
5607
- Z.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== C ? D.i++ : D.i = D.q.indexOf("_"), w(D.i, Z.target), t && t({ value: D.q.replace(/\D/g, ""), name: r });
5609
+ Z.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== p ? D.i++ : D.i = D.q.indexOf("_"), w(D.i, Z.target), t && t({ value: D.q.replace(/\D/g, ""), name: r });
5608
5610
  }, O = (Z) => {
5609
5611
  Z.key === "Enter" && Z.preventDefault();
5610
5612
  };
5611
- const oe = (Z) => {
5612
- fe.Blur(Z), n && n({
5613
+ const le = (Z) => {
5614
+ he.Blur(Z), n && n({
5613
5615
  value: Z.target.textContent.replace(/\D/g, ""),
5614
5616
  name: r
5615
5617
  });
5616
5618
  }, Ee = {};
5617
5619
  Ee.field = "input", g && (Ee.className = g);
5618
- let ce = {};
5619
- return _ && d ? (ce.edit = "true", ce.contentEditable = "plaintext-only") : ce.contentEditable = "false", s && (ce.placeholder = s), u && (ce.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...Ee, children: [
5620
+ let de = {};
5621
+ return _ && d ? (de.edit = "true", de.contentEditable = "plaintext-only") : de.contentEditable = "false", s && (de.placeholder = s), u && (de.after = u), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...Ee, children: [
5620
5622
  i && /* @__PURE__ */ a.jsx("dt", { children: i }),
5621
5623
  /* @__PURE__ */ a.jsx(
5622
5624
  "dd",
5623
5625
  {
5624
- ...ce,
5626
+ ...de,
5625
5627
  onPaste: T,
5626
5628
  onInput: P,
5627
5629
  onKeyDown: O,
5628
5630
  onContextMenu: y,
5629
- onBlur: oe,
5631
+ onBlur: le,
5630
5632
  suppressContentEditableWarning: !0,
5631
5633
  children: L.q
5632
5634
  }
@@ -5685,7 +5687,7 @@ function Ft({
5685
5687
  }) {
5686
5688
  const x = h.useRef();
5687
5689
  s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5688
- let p = i !== void 0 && i !== "" ? l[i].n : i, C = (T) => {
5690
+ let C = i !== void 0 && i !== "" ? l[i].n : i, p = (T) => {
5689
5691
  x.current.textContent = l[T].n, c && c({ value: T, name: d });
5690
5692
  }, j = (T) => {
5691
5693
  if (!(n && r))
@@ -5694,10 +5696,10 @@ function Ft({
5694
5696
  we.setListener(
5695
5697
  "form",
5696
5698
  /* @__PURE__ */ a.jsx(
5697
- qo,
5699
+ Jo,
5698
5700
  {
5699
5701
  parent: R,
5700
- onValue: C,
5702
+ onValue: p,
5701
5703
  view: m,
5702
5704
  options: l
5703
5705
  },
@@ -5707,11 +5709,11 @@ function Ft({
5707
5709
  }, k = { field: "select" }, w = { onClick: j };
5708
5710
  return n && r && (w.edit = "true"), _ && (w.placeholder = _), u && (w.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
5709
5711
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5710
- /* @__PURE__ */ a.jsx("dd", { ...w, ref: x, children: p }),
5712
+ /* @__PURE__ */ a.jsx("dd", { ...w, ref: x, children: C }),
5711
5713
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5712
5714
  ] });
5713
5715
  }
5714
- const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5716
+ const Jo = ({ onValue: e, parent: t, view: n, options: r }) => {
5715
5717
  let [s, i] = h.useState(!0), c = () => {
5716
5718
  i(!1);
5717
5719
  }, l = (u) => {
@@ -5759,13 +5761,13 @@ function Lt(e) {
5759
5761
  ), m = (g) => {
5760
5762
  if (!(r && s))
5761
5763
  return;
5762
- const p = g.target.getBoundingClientRect();
5764
+ const C = g.target.getBoundingClientRect();
5763
5765
  we.setListener(
5764
5766
  "form",
5765
5767
  /* @__PURE__ */ a.jsx(
5766
- Jo,
5768
+ Xo,
5767
5769
  {
5768
- parent: p,
5770
+ parent: C,
5769
5771
  onValue: _,
5770
5772
  view: e.view,
5771
5773
  options: e.options
@@ -5795,7 +5797,7 @@ function Lt(e) {
5795
5797
  }
5796
5798
  );
5797
5799
  }
5798
- const Jo = ({ onValue: e, parent: t, view: n, options: r }) => {
5800
+ const Xo = ({ onValue: e, parent: t, view: n, options: r }) => {
5799
5801
  let [s, i] = h.useState(!0), c = () => {
5800
5802
  i(!1);
5801
5803
  }, l = (m) => {
@@ -5848,8 +5850,8 @@ function yt({
5848
5850
  after: m = "",
5849
5851
  view: x,
5850
5852
  module: g,
5851
- item: p,
5852
- className: C = ""
5853
+ item: C,
5854
+ className: p = ""
5853
5855
  }) {
5854
5856
  let j = {};
5855
5857
  switch (e) {
@@ -5867,11 +5869,11 @@ function yt({
5867
5869
  onValue: n,
5868
5870
  name: r,
5869
5871
  placeholder: s,
5870
- className: C
5872
+ className: p
5871
5873
  }
5872
5874
  );
5873
5875
  case "Select":
5874
- return p && (j = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5876
+ return C && (j = re.getSelect(parseInt(C)) ? re.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5875
5877
  Ft,
5876
5878
  {
5877
5879
  title: i,
@@ -5884,7 +5886,7 @@ function yt({
5884
5886
  onValue: n,
5885
5887
  name: r,
5886
5888
  placeholder: s,
5887
- className: C,
5889
+ className: p,
5888
5890
  options: j
5889
5891
  }
5890
5892
  );
@@ -5902,7 +5904,7 @@ function yt({
5902
5904
  onValue: n,
5903
5905
  name: r,
5904
5906
  placeholder: s,
5905
- className: C,
5907
+ className: p,
5906
5908
  options: j
5907
5909
  }
5908
5910
  );
@@ -5920,7 +5922,7 @@ function yt({
5920
5922
  onValue: n,
5921
5923
  name: r,
5922
5924
  placeholder: s,
5923
- className: C
5925
+ className: p
5924
5926
  }
5925
5927
  );
5926
5928
  case "Phone":
@@ -5937,7 +5939,7 @@ function yt({
5937
5939
  onValue: n,
5938
5940
  name: r,
5939
5941
  placeholder: s,
5940
- className: C
5942
+ className: p
5941
5943
  }
5942
5944
  );
5943
5945
  case "Number":
@@ -5954,7 +5956,7 @@ function yt({
5954
5956
  onValue: n,
5955
5957
  name: r,
5956
5958
  placeholder: s,
5957
- className: C
5959
+ className: p
5958
5960
  }
5959
5961
  );
5960
5962
  case "Money":
@@ -5971,7 +5973,7 @@ function yt({
5971
5973
  onValue: n,
5972
5974
  name: r,
5973
5975
  placeholder: s,
5974
- className: C
5976
+ className: p
5975
5977
  }
5976
5978
  );
5977
5979
  case "Modal":
@@ -5988,7 +5990,7 @@ function yt({
5988
5990
  onValue: n,
5989
5991
  name: r || "",
5990
5992
  placeholder: s,
5991
- className: C,
5993
+ className: p,
5992
5994
  options: j,
5993
5995
  module: g || ""
5994
5996
  }
@@ -6043,7 +6045,7 @@ function zn(e) {
6043
6045
  we.setListener(
6044
6046
  "form",
6045
6047
  /* @__PURE__ */ a.jsx(
6046
- Xo,
6048
+ Qo,
6047
6049
  {
6048
6050
  position: { x, y: g },
6049
6051
  onSave: l,
@@ -6080,7 +6082,7 @@ function zn(e) {
6080
6082
  }
6081
6083
  ) });
6082
6084
  }
6083
- const Xo = (e) => {
6085
+ const Qo = (e) => {
6084
6086
  let t = e.date.split(":"), n = {
6085
6087
  h: K.Number(2, t[0]),
6086
6088
  m: K.Number(2, t[1])
@@ -6149,10 +6151,10 @@ const Xo = (e) => {
6149
6151
  }
6150
6152
  }
6151
6153
  e.onValue(n.h + ":" + n.m);
6152
- }, [p, C] = h.useState(!0), j = () => {
6153
- C(!1), e.onSave(n.h + ":" + n.m);
6154
+ }, [C, p] = h.useState(!0), j = () => {
6155
+ p(!1), e.onSave(n.h + ":" + n.m);
6154
6156
  }, k = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6155
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6157
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: C ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6156
6158
  /* @__PURE__ */ a.jsx(
6157
6159
  "div",
6158
6160
  {
@@ -6197,7 +6199,7 @@ function Gn({
6197
6199
  ] });
6198
6200
  }
6199
6201
  const be = {};
6200
- function Qo(e) {
6202
+ function el(e) {
6201
6203
  const [t, n] = h.useState({}), r = h.useRef(e);
6202
6204
  return be.u = (s) => {
6203
6205
  r.current = { ...r.current, [s.name]: s.value };
@@ -6205,13 +6207,13 @@ function Qo(e) {
6205
6207
  n(Date.now());
6206
6208
  }, [r.current];
6207
6209
  }
6208
- function el(e) {
6210
+ function tl(e) {
6209
6211
  be.u(e), e.reload && be.r();
6210
6212
  }
6211
- function tl() {
6213
+ function nl() {
6212
6214
  be.r && be.r();
6213
6215
  }
6214
- const Kl = {
6216
+ const Wl = {
6215
6217
  Color: $n,
6216
6218
  Date: Nt,
6217
6219
  Code: Ln,
@@ -6237,10 +6239,10 @@ const Kl = {
6237
6239
  Users: Lt,
6238
6240
  String: Pe,
6239
6241
  Form: yt,
6240
- runReload: tl,
6241
- useData: Qo,
6242
- setValue: el
6243
- }, Wl = {
6242
+ runReload: nl,
6243
+ useData: el,
6244
+ setValue: tl
6245
+ }, Vl = {
6244
6246
  Color: $n,
6245
6247
  Date: Nt,
6246
6248
  Code: Ln,
@@ -6265,12 +6267,12 @@ const Kl = {
6265
6267
  Time: zn,
6266
6268
  Users: Lt,
6267
6269
  String: Pe
6268
- }, nl = "_spinner_1ul0m_1", al = "_l_1ul0m_75", rl = "_loadingB_1ul0m_1", Kn = {
6269
- spinner: nl,
6270
- l: al,
6271
- loadingB: rl
6270
+ }, al = "_spinner_1ul0m_1", rl = "_l_1ul0m_75", sl = "_loadingB_1ul0m_1", Kn = {
6271
+ spinner: al,
6272
+ l: rl,
6273
+ loadingB: sl
6272
6274
  };
6273
- function sl() {
6275
+ function il() {
6274
6276
  return /* @__PURE__ */ a.jsx("div", { className: Kn.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
6275
6277
  "path",
6276
6278
  {
@@ -6279,18 +6281,18 @@ function sl() {
6279
6281
  }
6280
6282
  ) }) });
6281
6283
  }
6282
- function il() {
6284
+ function ol() {
6283
6285
  return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6284
6286
  /* @__PURE__ */ a.jsx("i", {}),
6285
6287
  /* @__PURE__ */ a.jsx("i", {}),
6286
6288
  /* @__PURE__ */ a.jsx("i", {})
6287
6289
  ] });
6288
6290
  }
6289
- const Vl = { Spinner: sl, Inline: il }, ol = "_s_t9swc_1", ll = {
6290
- s: ol
6291
+ const Ul = { Spinner: il, Inline: ol }, ll = "_s_t9swc_1", cl = {
6292
+ s: ll
6291
6293
  };
6292
6294
  let $t;
6293
- function cl() {
6295
+ function dl() {
6294
6296
  let e = (s) => {
6295
6297
  $t(s.target.textContent);
6296
6298
  }, t = (s) => {
@@ -6305,7 +6307,7 @@ function cl() {
6305
6307
  return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6306
6308
  "div",
6307
6309
  {
6308
- className: ll.s,
6310
+ className: cl.s,
6309
6311
  onPaste: n,
6310
6312
  onInput: e,
6311
6313
  onKeyDown: t,
@@ -6315,7 +6317,7 @@ function cl() {
6315
6317
  }
6316
6318
  );
6317
6319
  }
6318
- function dl(e, t, n) {
6320
+ function _l(e, t, n) {
6319
6321
  let r = [], s = 1, i = 0, c = {}, l = 50;
6320
6322
  return c[s] = [], e.forEach((_) => {
6321
6323
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6323,17 +6325,17 @@ function dl(e, t, n) {
6323
6325
  i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6324
6326
  }), c;
6325
6327
  }
6326
- function _l(e) {
6328
+ function ul(e) {
6327
6329
  $t = e;
6328
6330
  }
6329
- function ul(e) {
6331
+ function ml(e) {
6330
6332
  $t = e;
6331
6333
  }
6332
- const Ul = { Field: cl, Run: dl, Get: _l, useValue: ul }, ml = "_f_q3r0i_1", fl = {
6333
- f: ml
6334
+ const Yl = { Field: dl, Run: _l, Get: ul, useValue: ml }, fl = "_f_q3r0i_1", hl = {
6335
+ f: fl
6334
6336
  };
6335
6337
  let te = {};
6336
- function hl(e, t) {
6338
+ function xl(e, t) {
6337
6339
  switch (t.type) {
6338
6340
  case "open":
6339
6341
  return {
@@ -6383,8 +6385,8 @@ function hl(e, t) {
6383
6385
  throw new Error();
6384
6386
  }
6385
6387
  }
6386
- function xl() {
6387
- const [e, t] = h.useReducer(hl, {
6388
+ function gl() {
6389
+ const [e, t] = h.useReducer(xl, {
6388
6390
  open: !1,
6389
6391
  view: null,
6390
6392
  data: {},
@@ -6402,12 +6404,12 @@ function xl() {
6402
6404
  /* @__PURE__ */ a.jsxs(
6403
6405
  "div",
6404
6406
  {
6405
- className: fl.f,
6407
+ className: hl.f,
6406
6408
  onClick: () => {
6407
6409
  t({ type: "open", open: !0 });
6408
6410
  },
6409
6411
  children: [
6410
- /* @__PURE__ */ a.jsx(zr, {}),
6412
+ /* @__PURE__ */ a.jsx(Gr, {}),
6411
6413
  e.active && /* @__PURE__ */ a.jsxs("i", { children: [
6412
6414
  e.size,
6413
6415
  "1"
@@ -6427,7 +6429,7 @@ function xl() {
6427
6429
  ),
6428
6430
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6429
6431
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6430
- kl,
6432
+ yl,
6431
6433
  {
6432
6434
  data: n,
6433
6435
  dispatch: t,
@@ -6449,16 +6451,16 @@ function xl() {
6449
6451
  ] }) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6450
6452
  ] });
6451
6453
  }
6452
- function gl(e) {
6454
+ function vl(e) {
6453
6455
  te.get = e;
6454
6456
  }
6455
- function vl(e) {
6457
+ function pl(e) {
6456
6458
  te.set !== void 0 && te.set(e);
6457
6459
  }
6458
- function pl(e) {
6460
+ function Cl(e) {
6459
6461
  te.reset !== void 0 && te.reset(e);
6460
6462
  }
6461
- function Cl(e, t, n, r) {
6463
+ function kl(e, t, n, r) {
6462
6464
  let s = [], i = 1, c = 0, l = {}, _ = 50;
6463
6465
  return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6464
6466
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
@@ -6473,7 +6475,7 @@ function Cl(e, t, n, r) {
6473
6475
  function Wn(e) {
6474
6476
  te.count(e);
6475
6477
  }
6476
- function kl({ data: e, state: t, dispatch: n }) {
6478
+ function yl({ data: e, state: t, dispatch: n }) {
6477
6479
  let r = () => {
6478
6480
  n({ type: "view", view: e });
6479
6481
  }, s = () => {
@@ -6496,7 +6498,7 @@ function kl({ data: e, state: t, dispatch: n }) {
6496
6498
  ) : ""
6497
6499
  ] }),
6498
6500
  /* @__PURE__ */ a.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, c) => /* @__PURE__ */ a.jsx(
6499
- yl,
6501
+ jl,
6500
6502
  {
6501
6503
  data: t.data[e].list[i],
6502
6504
  head: e,
@@ -6508,7 +6510,7 @@ function kl({ data: e, state: t, dispatch: n }) {
6508
6510
  )) })
6509
6511
  ] });
6510
6512
  }
6511
- function yl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6513
+ function jl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6512
6514
  if (s !== "999" && e.count === void 0)
6513
6515
  return "";
6514
6516
  const i = () => {
@@ -6527,11 +6529,11 @@ function yl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6527
6529
  }
6528
6530
  );
6529
6531
  }
6530
- const Yl = { Button: xl, useValue: gl, Set: vl, Run: Cl, Count: Wn, Reset: pl }, Hl = { Bell: qr, Send: Ur, Add: Vr }, jl = "_p_djnh1_1", bl = "_l_djnh1_38", Vn = {
6531
- p: jl,
6532
- l: bl
6532
+ const Hl = { Button: gl, useValue: vl, Set: pl, Run: kl, Count: Wn, Reset: Cl }, ql = { Bell: Jr, Send: Yr, Add: Ur }, bl = "_p_djnh1_1", wl = "_l_djnh1_38", Vn = {
6533
+ p: bl,
6534
+ l: wl
6533
6535
  };
6534
- function wl(e) {
6536
+ function Sl(e) {
6535
6537
  let t = 3, n = e.page, r = e.count, s = [], i = () => {
6536
6538
  s.push({ page: 1 }), s.push({ text: "..." });
6537
6539
  }, c = () => {
@@ -6549,7 +6551,7 @@ function wl(e) {
6549
6551
  /* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n + 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.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" }) }) })
6550
6552
  ] });
6551
6553
  }
6552
- function Sl(e, t) {
6554
+ function El(e, t) {
6553
6555
  switch (t.type) {
6554
6556
  case "load":
6555
6557
  return {
@@ -6571,7 +6573,7 @@ function Sl(e, t) {
6571
6573
  }
6572
6574
  }
6573
6575
  function Un({ load: e, list: t, item: n }) {
6574
- const r = h.useRef(null), [s, i] = h.useReducer(Sl, {
6576
+ const r = h.useRef(null), [s, i] = h.useReducer(El, {
6575
6577
  load: !1,
6576
6578
  list: [],
6577
6579
  data: {},
@@ -6597,7 +6599,7 @@ function Un({ load: e, list: t, item: n }) {
6597
6599
  /* @__PURE__ */ a.jsx("i", {})
6598
6600
  ] }) }) }),
6599
6601
  s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6600
- wl,
6602
+ Sl,
6601
6603
  {
6602
6604
  page: s.page,
6603
6605
  count: s.size,
@@ -6606,15 +6608,15 @@ function Un({ load: e, list: t, item: n }) {
6606
6608
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6607
6609
  ] });
6608
6610
  }
6609
- const ql = { Pagination: Un };
6610
- function El({ head: e, load: t, list: n, item: r }) {
6611
+ const Jl = { Pagination: Un };
6612
+ function Rl({ head: e, load: t, list: n, item: r }) {
6611
6613
  const s = e;
6612
6614
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6613
6615
  /* @__PURE__ */ a.jsx(s, {}),
6614
6616
  Rt.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: r }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: r })
6615
6617
  ] });
6616
6618
  }
6617
- function Rl(e, t) {
6619
+ function Nl(e, t) {
6618
6620
  switch (t.type) {
6619
6621
  case "load":
6620
6622
  return {
@@ -6656,50 +6658,50 @@ function Rl(e, t) {
6656
6658
  }
6657
6659
  }
6658
6660
  const jt = {};
6659
- function Nl(e) {
6661
+ function Tl(e) {
6660
6662
  jt.get = e;
6661
6663
  }
6662
- function Tl(e) {
6664
+ function Il(e) {
6663
6665
  jt.get && jt.get(e);
6664
6666
  }
6665
- const Jl = { View: El, Reducer: Rl, useValue: Nl, setValue: Tl }, Xl = { Get: ts }, Ql = { Open: $i };
6667
+ const Xl = { View: Rl, Reducer: Nl, useValue: Tl, setValue: Il }, Ql = { Get: ns }, ec = { Open: Pi };
6666
6668
  export {
6667
- lo as Action,
6668
- $l as Alert,
6669
+ co as Action,
6670
+ Pl as Alert,
6669
6671
  nn as Api,
6670
- Ol as Badge,
6671
- Ll as Bookmarks,
6672
- Ml as Browser,
6673
- Xs as Button,
6674
- Xl as Company,
6672
+ Al as Badge,
6673
+ $l as Bookmarks,
6674
+ Fl as Browser,
6675
+ Qs as Button,
6676
+ Ql as Company,
6675
6677
  un as Component,
6676
- Al as DataBase,
6678
+ Zl as DataBase,
6677
6679
  we as Event,
6678
6680
  we as Events,
6679
- Gl as Files,
6680
- Yl as Filter,
6681
- Kl as Form,
6681
+ Kl as Files,
6682
+ Hl as Filter,
6683
+ Wl as Form,
6682
6684
  K as Format,
6683
- Zl as HotKey,
6684
- Pl as Icon,
6685
- Ui as Init,
6686
- Wl as Input,
6687
- Jl as List,
6688
- Vl as Loading,
6685
+ zl as HotKey,
6686
+ Bl as Icon,
6687
+ Yi as Init,
6688
+ Vl as Input,
6689
+ Xl as List,
6690
+ Ul as Loading,
6689
6691
  Et as Modal,
6690
6692
  $e as Notice,
6691
- Hl as Notifications,
6692
- ql as Pagination,
6693
- Ql as Phone,
6693
+ ql as Notifications,
6694
+ Jl as Pagination,
6695
+ ec as Phone,
6694
6696
  He as Router,
6695
- zl as Scrolling,
6696
- Ul as Search,
6697
- Fl as Setting,
6697
+ Gl as Scrolling,
6698
+ Yl as Search,
6699
+ Ll as Setting,
6698
6700
  St as Sistym,
6699
- le as Socket,
6701
+ ce as Socket,
6700
6702
  re as Store,
6701
- Qi as Tabs,
6702
- Bl as Triage,
6703
+ eo as Tabs,
6704
+ Ol as Triage,
6703
6705
  Rt as User,
6704
6706
  B as WebRTC
6705
6707
  };