elcrm 0.7.7 → 0.7.8

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 yt = {};
6
6
  const ba = (e) => {
7
7
  yt = e;
8
- }, wa = (e) => yt.enCode(e), Sa = (e) => yt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ke = {}, mn = {}, he = {};
8
+ }, wa = (e) => yt.enCode(e), Sa = (e) => yt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, E = {}, Q = {}, ye = {}, mn = {}, he = {};
9
9
  let jt = "M06";
10
10
  function Ea(e) {
11
11
  jt = e;
@@ -122,10 +122,10 @@ function Va(e, t, n) {
122
122
  E.module = e, E.id = n, E.tab = t, sessionStorage.setItem("f", D.enCode(E)), Q.module(e), Q.tabs(t);
123
123
  }
124
124
  function Ua(e) {
125
- ke.data = e[0], delete ke.data.id, document.body.dataset.theme = ke.data.s15, localStorage.setItem("s", D.enCode(ke.data));
125
+ ye.data = e[0], delete ye.data.id, document.body.dataset.theme = ye.data.s15, localStorage.setItem("s", D.enCode(ye.data));
126
126
  }
127
127
  function Ya(e, t) {
128
- ke.data[e] = t, localStorage.setItem("s", D.enCode(ke.data));
128
+ ye.data[e] = t, localStorage.setItem("s", D.enCode(ye.data));
129
129
  }
130
130
  function Ha(e) {
131
131
  let t = localStorage.getItem("s");
@@ -634,7 +634,7 @@ function pr() {
634
634
  } finally {
635
635
  tt = !1, Qe.current = L, Hn(), Error.prepareStackTrace = M;
636
636
  }
637
- var Ce = o ? o.displayName || o.name : "", fe = Ce ? ze(Ce) : "";
637
+ var ke = o ? o.displayName || o.name : "", fe = ke ? ze(ke) : "";
638
638
  return typeof o == "function" && Ge.set(o, fe), fe;
639
639
  }
640
640
  function Jn(o, f, p) {
@@ -823,7 +823,7 @@ function pr() {
823
823
  }
824
824
  }
825
825
  var rt = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
826
- function pe(o) {
826
+ function Ce(o) {
827
827
  if (o) {
828
828
  var f = o._owner, p = Ke(o.type, o._source, f ? f.type : null);
829
829
  Ut.setExtraStackFrame(p);
@@ -873,7 +873,7 @@ Check the top-level render call using <` + p + ">.");
873
873
  return;
874
874
  Ht[p] = !0;
875
875
  var S = "";
876
- o && o._owner && o._owner !== rt.current && (S = " It was passed a child from " + K(o._owner.type) + "."), pe(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), pe(null);
876
+ o && o._owner && o._owner !== rt.current && (S = " It was passed a child from " + K(o._owner.type) + "."), Ce(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, S), Ce(null);
877
877
  }
878
878
  }
879
879
  function Jt(o, f) {
@@ -925,11 +925,11 @@ Check the top-level render call using <` + p + ">.");
925
925
  for (var f = Object.keys(o.props), p = 0; p < f.length; p++) {
926
926
  var S = f[p];
927
927
  if (S !== "children" && S !== "key") {
928
- pe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), pe(null);
928
+ Ce(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ce(null);
929
929
  break;
930
930
  }
931
931
  }
932
- o.ref !== null && (pe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
932
+ o.ref !== null && (Ce(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
933
933
  }
934
934
  }
935
935
  var Xt = {};
@@ -952,8 +952,8 @@ Check the top-level render call using <` + p + ">.");
952
952
  if (te !== void 0)
953
953
  if (S)
954
954
  if (nt(te)) {
955
- for (var Ce = 0; Ce < te.length; Ce++)
956
- Jt(te[Ce], o);
955
+ for (var ke = 0; ke < te.length; ke++)
956
+ Jt(te[ke], o);
957
957
  Object.freeze && Object.freeze(te);
958
958
  } else
959
959
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -2033,12 +2033,12 @@ function Xs({ onClick: e, onSend: t, label: n, onRef: r }) {
2033
2033
  }
2034
2034
  );
2035
2035
  }
2036
- let ye = {};
2036
+ let ve = {};
2037
2037
  function Qs({ config: e }) {
2038
2038
  let [t, n] = h.useState([]);
2039
- return ye.x = () => {
2040
- n([]);
2041
- }, ye.config = e, ye.add = (r) => {
2039
+ return ve.x = (r) => {
2040
+ r || n([]);
2041
+ }, ve.config = e, ve.add = (r) => {
2042
2042
  n([...t, r]);
2043
2043
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: t.map((r) => r) });
2044
2044
  }
@@ -2118,7 +2118,7 @@ function ei({
2118
2118
  ) : "" });
2119
2119
  }
2120
2120
  function ti(e) {
2121
- ye.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2121
+ ve.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2122
2122
  }
2123
2123
  function ni({ children: e }) {
2124
2124
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
@@ -2134,13 +2134,27 @@ function ai(e) {
2134
2134
  function ri({ type: e, name: t, params: n }) {
2135
2135
  let [r, s] = h.useState(null);
2136
2136
  return h.useEffect(() => {
2137
- ye.config(e, t, n, s);
2137
+ ve.config(e, t, n, s);
2138
2138
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2139
2139
  }
2140
2140
  function si(e, t, n) {
2141
- ye.config(e, t, n);
2142
- }
2143
- const wt = { List: ps, Scroll: Us, Main: ei, Add: ti, Icon: ri, Open: si, Shake: ai, Form: Ys, Center: Hs };
2141
+ ve.config(e, t, n);
2142
+ }
2143
+ function ii(e) {
2144
+ ve.x(e);
2145
+ }
2146
+ const wt = {
2147
+ List: ps,
2148
+ Scroll: Us,
2149
+ Main: ei,
2150
+ Add: ti,
2151
+ Icon: ri,
2152
+ Open: si,
2153
+ Shake: ai,
2154
+ Form: Ys,
2155
+ Center: Hs,
2156
+ Close: ii
2157
+ };
2144
2158
  function wn({ text: e, type: t, button: n }) {
2145
2159
  let [r, s] = h.useState(!1), i = { active: t };
2146
2160
  const c = () => {
@@ -2173,22 +2187,22 @@ function wn({ text: e, type: t, button: n }) {
2173
2187
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2174
2188
  ] });
2175
2189
  }
2176
- const ii = "_h_1usnu_1", oi = "_g_1usnu_11", li = "_hr_1usnu_16", ci = "_hl_1usnu_28", di = "_t_1usnu_40", _i = "_s_1usnu_60", ui = "_u_1usnu_69", mi = "_o_1usnu_76", fi = "_l_1usnu_105", hi = "_hh_1usnu_115", xi = "_c_1usnu_128", gi = "_loadingB_1usnu_1", vi = "_m_1usnu_180", pi = "_ul_1usnu_196", Ci = "_f_1usnu_226", X = {
2177
- h: ii,
2178
- g: oi,
2179
- hr: li,
2180
- hl: ci,
2181
- t: di,
2182
- s: _i,
2183
- u: ui,
2184
- o: mi,
2185
- l: fi,
2186
- hh: hi,
2187
- c: xi,
2188
- loadingB: gi,
2189
- m: vi,
2190
- ul: pi,
2191
- f: Ci
2190
+ 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", X = {
2191
+ h: oi,
2192
+ g: li,
2193
+ hr: ci,
2194
+ hl: di,
2195
+ t: _i,
2196
+ s: ui,
2197
+ u: mi,
2198
+ o: fi,
2199
+ l: hi,
2200
+ hh: xi,
2201
+ c: gi,
2202
+ loadingB: vi,
2203
+ m: pi,
2204
+ ul: Ci,
2205
+ f: ki
2192
2206
  }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2193
2207
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2194
2208
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
@@ -2201,26 +2215,26 @@ const ii = "_h_1usnu_1", oi = "_g_1usnu_11", li = "_hr_1usnu_16", ci = "_hl_1usn
2201
2215
  function _n({ children: e }) {
2202
2216
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
2203
2217
  }
2204
- const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2218
+ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2205
2219
  n && /* @__PURE__ */ a.jsx("div", { className: X.hh, children: n }),
2206
2220
  e
2207
- ] }), yi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), bi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2221
+ ] }), ji = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.u, children: e }), bi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.c, children: e }), wi = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: X.m, children: e }), un = {
2208
2222
  Header: on,
2209
2223
  Section: cn,
2210
2224
  Group: _n,
2211
2225
  Form: dn,
2212
2226
  List: ln,
2213
2227
  A: wn,
2214
- U: yi,
2228
+ U: ji,
2215
2229
  G: _n,
2216
- C: ji,
2230
+ C: bi,
2217
2231
  L: ln,
2218
- O: ki,
2232
+ O: yi,
2219
2233
  S: cn,
2220
2234
  H: on,
2221
- M: bi,
2235
+ M: wi,
2222
2236
  F: dn
2223
- }, wi = (e, t) => {
2237
+ }, Si = (e, t) => {
2224
2238
  switch (t.type) {
2225
2239
  case "load":
2226
2240
  return {
@@ -2281,14 +2295,14 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2281
2295
  default:
2282
2296
  return e;
2283
2297
  }
2284
- }, Si = () => ({
2298
+ }, Ei = () => ({
2285
2299
  load: !0,
2286
2300
  list: [],
2287
2301
  name: "Файлы",
2288
2302
  add: !1,
2289
2303
  search: !1,
2290
2304
  revers: !0
2291
- }), Ei = () => {
2305
+ }), Ri = () => {
2292
2306
  let [e, t] = h.useState([]);
2293
2307
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2294
2308
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
@@ -2304,17 +2318,17 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2304
2318
  ] }),
2305
2319
  /* @__PURE__ */ a.jsx("div", { className: "--list", children: e.map((n) => n) })
2306
2320
  ] }) : "" });
2307
- }, Ri = ({
2321
+ }, Ni = ({
2308
2322
  id: e,
2309
2323
  name: t,
2310
2324
  listen: n,
2311
2325
  dir: r
2312
2326
  }) => {
2313
2327
  t = t || "Файлы";
2314
- const [s, i] = h.useReducer(wi, {}, Si), c = () => {
2328
+ const [s, i] = h.useReducer(Si, {}, Ei), c = () => {
2315
2329
  wt.Add(
2316
2330
  /* @__PURE__ */ a.jsx(
2317
- Ni,
2331
+ Ti,
2318
2332
  {
2319
2333
  dir: r,
2320
2334
  dispatch: i,
@@ -2363,9 +2377,9 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2363
2377
  /* @__PURE__ */ a.jsx("i", {}),
2364
2378
  /* @__PURE__ */ a.jsx("i", {}),
2365
2379
  /* @__PURE__ */ a.jsx("i", {})
2366
- ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ti, { dispatch: i, data: l }, _)) })
2380
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ii, { dispatch: i, data: l }, _)) })
2367
2381
  ] });
2368
- }, Ni = ({ id: e, dir: t, dispatch: n }) => {
2382
+ }, Ti = ({ id: e, dir: t, dispatch: n }) => {
2369
2383
  let [r, s] = h.useState(!0), i = h.useRef(null), c = (d) => {
2370
2384
  d.preventDefault(), d.stopPropagation();
2371
2385
  }, l = (d) => {
@@ -2414,7 +2428,7 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2414
2428
  },
2415
2429
  (/* @__PURE__ */ new Date()).getTime()
2416
2430
  ) }) : "" });
2417
- }, Ti = ({ data: e, dispatch: t }) => {
2431
+ }, Ii = ({ data: e, dispatch: t }) => {
2418
2432
  let n = async () => {
2419
2433
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2420
2434
  headers: {
@@ -2466,7 +2480,7 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2466
2480
  let A = {};
2467
2481
  A.list = ar();
2468
2482
  A.active = null;
2469
- const Ii = () => {
2483
+ const Di = () => {
2470
2484
  var s;
2471
2485
  let [e, t] = h.useState([]), [n, r] = h.useState(St.getSetting("s03"));
2472
2486
  return h.useEffect(() => {
@@ -2504,7 +2518,7 @@ const Ii = () => {
2504
2518
  "bookmarks",
2505
2519
  n === 1 && e.length !== 0 ? "bottom" : ""
2506
2520
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2507
- }, Di = ({ id: e, type: t, name: n }) => {
2521
+ }, Mi = ({ id: e, type: t, name: n }) => {
2508
2522
  let r = t + "-" + e, [s, i] = h.useState(
2509
2523
  A.list[r] !== void 0
2510
2524
  );
@@ -2532,7 +2546,7 @@ const Ii = () => {
2532
2546
  Ue.setId(e.id);
2533
2547
  };
2534
2548
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2535
- }, Mi = (e) => {
2549
+ }, Fi = (e) => {
2536
2550
  A.active(e);
2537
2551
  }, O = {}, xt = {}, j = {};
2538
2552
  j.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
@@ -2679,7 +2693,7 @@ O.Run = async (e) => {
2679
2693
  O[e.data.type] && O[e.data.type](e.data);
2680
2694
  };
2681
2695
  let Me = {};
2682
- function Fi() {
2696
+ function Li() {
2683
2697
  let [e, t] = h.useState([]), n = h.useRef(null);
2684
2698
  return h.useEffect(() => {
2685
2699
  }, []), Me.set = (r) => {
@@ -2693,14 +2707,14 @@ function Fi() {
2693
2707
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2694
2708
  ] });
2695
2709
  }
2696
- function Li(e, t) {
2710
+ function $i(e, t) {
2697
2711
  let n = (/* @__PURE__ */ new Date()).getTime();
2698
2712
  Me.set({
2699
- item: /* @__PURE__ */ a.jsx($i, { type: t, id: e }, n),
2713
+ item: /* @__PURE__ */ a.jsx(Pi, { type: t, id: e }, n),
2700
2714
  key: n
2701
2715
  });
2702
2716
  }
2703
- function $i({ id: e, type: t }) {
2717
+ function Pi({ id: e, type: t }) {
2704
2718
  const [n, r] = h.useState({}), [s, i] = h.useState(t);
2705
2719
  h.useEffect(() => {
2706
2720
  r(se.getSelect("user")[e]);
@@ -2801,13 +2815,13 @@ function $i({ id: e, type: t }) {
2801
2815
  ] }) });
2802
2816
  }
2803
2817
  const gt = {};
2804
- function Pi(e) {
2818
+ function Bi(e) {
2805
2819
  gt.add(e);
2806
2820
  }
2807
- function Bi({ color: e, size: t, name: n }) {
2821
+ function Oi({ color: e, size: t, name: n }) {
2808
2822
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2809
2823
  }
2810
- function Oi() {
2824
+ function Ai() {
2811
2825
  let [e, t] = h.useState([]);
2812
2826
  if (gt.x = () => {
2813
2827
  t([]);
@@ -2829,14 +2843,14 @@ function Oi() {
2829
2843
  )) });
2830
2844
  }
2831
2845
  const vt = {};
2832
- function Ai(e, t) {
2846
+ function Zi(e, t) {
2833
2847
  vt[e] = t;
2834
2848
  }
2835
- function Zi(e, t) {
2849
+ function zi(e, t) {
2836
2850
  vt[e] !== void 0 && vt[e](t);
2837
2851
  }
2838
2852
  const de = {};
2839
- function zi(e, t) {
2853
+ function Gi(e, t) {
2840
2854
  const [n, r] = h.useState(t);
2841
2855
  return h.useEffect(() => {
2842
2856
  if (de[e])
@@ -2844,54 +2858,54 @@ function zi(e, t) {
2844
2858
  de[e] = [r];
2845
2859
  }, []), [n];
2846
2860
  }
2847
- function Gi(e, t) {
2861
+ function Ki(e, t) {
2848
2862
  if (de[e])
2849
2863
  return de[e].push(t);
2850
2864
  de[e] = [t];
2851
2865
  }
2852
- function Ki(e, t) {
2866
+ function Wi(e, t) {
2853
2867
  de[e] && de[e].forEach((n) => n(t));
2854
2868
  }
2855
- const we = { setListener: Zi, useListener: Ai, setEmitter: Ki, useEmitter: zi, subEmitter: Gi };
2856
- function Wi() {
2869
+ const we = { setListener: zi, useListener: Zi, setEmitter: Wi, useEmitter: Gi, subEmitter: Ki };
2870
+ function Vi() {
2857
2871
  let [e, t] = h.useState([]);
2858
2872
  return we.useListener("form", (n) => {
2859
2873
  t([n]);
2860
2874
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2861
2875
  }
2862
- const Vi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2876
+ const Ui = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2863
2877
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2864
2878
  /* @__PURE__ */ a.jsx(Qs, { config: t.modal }),
2865
2879
  /* @__PURE__ */ a.jsx(Sr, {}),
2866
2880
  /* @__PURE__ */ a.jsx(Pr, {}),
2867
- /* @__PURE__ */ a.jsx(Ei, {}),
2868
- /* @__PURE__ */ a.jsx(Oi, {}),
2869
- /* @__PURE__ */ a.jsx(Wi, {}),
2870
- /* @__PURE__ */ a.jsx(Fi, {}),
2871
- /* @__PURE__ */ a.jsx(Ii, {}),
2881
+ /* @__PURE__ */ a.jsx(Ri, {}),
2882
+ /* @__PURE__ */ a.jsx(Ai, {}),
2883
+ /* @__PURE__ */ a.jsx(Vi, {}),
2884
+ /* @__PURE__ */ a.jsx(Li, {}),
2885
+ /* @__PURE__ */ a.jsx(Di, {}),
2872
2886
  e
2873
2887
  ] })
2874
- )), Ui = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2888
+ )), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Hi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2875
2889
  "xz",
2876
2890
  e
2877
- ] }), Hi = "_payment_1lxfv_1", qi = {
2878
- payment: Hi
2891
+ ] }), qi = "_payment_1lxfv_1", Ji = {
2892
+ payment: qi
2879
2893
  };
2880
- function Ji() {
2894
+ function Xi() {
2881
2895
  let [e, t] = h.useState({});
2882
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: qi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2896
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Ji.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2883
2897
  }
2884
- const Dl = ({ children: e, ...t }) => {
2898
+ const Ml = ({ children: e, ...t }) => {
2885
2899
  let n = {};
2886
2900
  return n.enCode = (r) => JSON.stringify(r).toString(), n.deCode = (r) => JSON.parse(r), /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
2887
- /* @__PURE__ */ a.jsx(Ji, {}),
2888
- /* @__PURE__ */ a.jsx(Ui, {}),
2901
+ /* @__PURE__ */ a.jsx(Xi, {}),
2889
2902
  /* @__PURE__ */ a.jsx(Yi, {}),
2890
- /* @__PURE__ */ a.jsx(Vi, { config: { modal: {}, crypto: n } }),
2903
+ /* @__PURE__ */ a.jsx(Hi, {}),
2904
+ /* @__PURE__ */ a.jsx(Ui, { config: { modal: {}, crypto: n } }),
2891
2905
  e
2892
2906
  ] });
2893
- }, Xi = ({ 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(
2894
- Qi,
2907
+ }, 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(
2908
+ eo,
2895
2909
  {
2896
2910
  onClick: t,
2897
2911
  active: n,
@@ -2899,9 +2913,9 @@ const Dl = ({ children: e, ...t }) => {
2899
2913
  link: i.link
2900
2914
  },
2901
2915
  i.link
2902
- )) }) }), Qi = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2903
- Xi.defaultProps = { size: "M", view: "H" };
2904
- const eo = ({
2916
+ )) }) }), eo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2917
+ Qi.defaultProps = { size: "M", view: "H" };
2918
+ const to = ({
2905
2919
  title: e = "",
2906
2920
  button: t,
2907
2921
  description: n = "",
@@ -2921,9 +2935,9 @@ const eo = ({
2921
2935
  ] }),
2922
2936
  /* @__PURE__ */ a.jsx("ul", { children: r }),
2923
2937
  n && /* @__PURE__ */ a.jsx("article", { children: n })
2924
- ] }), to = "_setting_dva4m_2", no = {
2925
- setting: to
2926
- }, ao = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: no.setting, children: e }), ro = ({ label: e, children: t }) => {
2938
+ ] }), no = "_setting_dva4m_2", ao = {
2939
+ setting: no
2940
+ }, ro = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ao.setting, children: e }), so = ({ label: e, children: t }) => {
2927
2941
  let [n, r] = h.useState(!1);
2928
2942
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2929
2943
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
@@ -2932,10 +2946,10 @@ const eo = ({
2932
2946
  ] }),
2933
2947
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2934
2948
  ] });
2935
- }, so = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2949
+ }, io = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2936
2950
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2937
2951
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
2938
- ] }) }), io = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2952
+ ] }) }), oo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2939
2953
  "div",
2940
2954
  {
2941
2955
  role: "switch",
@@ -2944,25 +2958,25 @@ const eo = ({
2944
2958
  },
2945
2959
  "aria-checked": e ? "true" : "false"
2946
2960
  }
2947
- )), oo = { Switch: io }, lo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2961
+ )), lo = { Switch: oo }, co = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2948
2962
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2949
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(oo.Switch, { onClick: t, active: n }) })
2950
- ] }) }), co = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2963
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(lo.Switch, { onClick: t, active: n }) })
2964
+ ] }) }), _o = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2951
2965
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2952
2966
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2953
- ] }) }), _o = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2967
+ ] }) }), uo = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2954
2968
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2955
2969
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2956
- ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2970
+ ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2957
2971
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2958
2972
  /* @__PURE__ */ a.jsx("dd", { children: t })
2959
- ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2973
+ ] }) }), fo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2960
2974
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2961
2975
  /* @__PURE__ */ a.jsx("dd", { children: t })
2962
- ] }) }), fo = { Accordion: ro, Button: so, Switch: lo, Info: _o, Select: co, Component: uo, Node: mo };
2976
+ ] }) }), ho = { Accordion: so, Button: io, Switch: co, Info: uo, Select: _o, Component: mo, Node: fo };
2963
2977
  function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2964
2978
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2965
- ho,
2979
+ xo,
2966
2980
  {
2967
2981
  onClick: t,
2968
2982
  active: n,
@@ -2972,10 +2986,10 @@ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2972
2986
  i.link
2973
2987
  )) }) });
2974
2988
  }
2975
- const ho = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2989
+ const xo = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
2976
2990
  Sn.defaultProps = { size: "M", view: "H" };
2977
- const Ml = { Section: eo, Main: ao, Item: fo, Tabs: Sn }, Fl = { Icon: Di, Item: ht, Active: Mi }, Ll = { Send: Or, Line: wn };
2978
- function xo() {
2991
+ const Fl = { Section: to, Main: ro, Item: ho, Tabs: Sn }, Ll = { Icon: Mi, Item: ht, Active: Fi }, $l = { Send: Or, Line: wn };
2992
+ function go() {
2979
2993
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2980
2994
  "path",
2981
2995
  {
@@ -2984,11 +2998,11 @@ function xo() {
2984
2998
  }
2985
2999
  ) });
2986
3000
  }
2987
- const $l = { Logo: xo, Sprite: Pi, Symbol: Bi }, go = "_sort_1yrvt_1", vo = {
2988
- sort: go
3001
+ const Pl = { Logo: go, Sprite: Bi, Symbol: Oi }, vo = "_sort_1yrvt_1", po = {
3002
+ sort: vo
2989
3003
  };
2990
3004
  let Je = {};
2991
- function po(e, t) {
3005
+ function Co(e, t) {
2992
3006
  switch (t.type) {
2993
3007
  case "active":
2994
3008
  let n = "<";
@@ -3001,12 +3015,12 @@ function po(e, t) {
3001
3015
  throw new Error();
3002
3016
  }
3003
3017
  }
3004
- function Co() {
3018
+ function ko() {
3005
3019
  const [e, t] = h.useReducer(
3006
- po,
3020
+ Co,
3007
3021
  ut() === void 0 ? { active: 1, sort: "<" } : ut()
3008
3022
  );
3009
- return /* @__PURE__ */ a.jsxs("div", { className: vo.sort, children: [
3023
+ return /* @__PURE__ */ a.jsxs("div", { className: po.sort, children: [
3010
3024
  /* @__PURE__ */ a.jsx(
3011
3025
  "i",
3012
3026
  {
@@ -3033,13 +3047,13 @@ function Co() {
3033
3047
  )
3034
3048
  ] });
3035
3049
  }
3036
- function ko(e) {
3050
+ function yo(e) {
3037
3051
  Je.get = e;
3038
3052
  }
3039
- function yo(e) {
3053
+ function jo(e) {
3040
3054
  Je.set(e);
3041
3055
  }
3042
- function jo(e, t, n) {
3056
+ function bo(e, t, n) {
3043
3057
  let r = 1, s = 0, i = {}, c = 50;
3044
3058
  i[r] = [];
3045
3059
  let l = {}, _ = "s1a";
@@ -3058,11 +3072,11 @@ function jo(e, t, n) {
3058
3072
  s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3059
3073
  }), { data: i };
3060
3074
  }
3061
- function bo(e) {
3075
+ function wo(e) {
3062
3076
  Je.count(e);
3063
3077
  }
3064
- const Pl = { Init: Co, useValue: ko, Set: yo, Run: jo, Count: bo }, Ye = {}, En = {};
3065
- function wo(e) {
3078
+ const Bl = { Init: ko, useValue: yo, Set: jo, Run: bo, Count: wo }, Ye = {}, En = {};
3079
+ function So(e) {
3066
3080
  const [t, n] = h.useState({}), r = async (s) => {
3067
3081
  n(
3068
3082
  Object.keys(Ye).reduce((i, c) => (i ? i[c] = Ye[c].all : i = {}, i), {})
@@ -3072,15 +3086,15 @@ function wo(e) {
3072
3086
  e.forEach((s) => Ye[s] = { all: 0 }), En.menu = r, r();
3073
3087
  }, [e]), t;
3074
3088
  }
3075
- function So(e, t) {
3089
+ function Eo(e, t) {
3076
3090
  switch (typeof t) {
3077
3091
  case "number":
3078
3092
  Ye[e].all += t, En.menu();
3079
3093
  break;
3080
3094
  }
3081
3095
  }
3082
- const Bl = { useMenu: wo, setUpdate: So };
3083
- class Eo {
3096
+ const Ol = { useMenu: So, setUpdate: Eo };
3097
+ class Ro {
3084
3098
  constructor(t = "el", n = "db") {
3085
3099
  lt(this, "storeName");
3086
3100
  lt(this, "_dbp");
@@ -3101,7 +3115,7 @@ class Eo {
3101
3115
  }
3102
3116
  }
3103
3117
  let ct, z = {};
3104
- const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3118
+ const Se = () => (ct || (ct = new Ro()), ct), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3105
3119
  z[e] = t, r.put(D.enCode(t), e);
3106
3120
  }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, r) => {
3107
3121
  let s;
@@ -3114,18 +3128,18 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3114
3128
  } else
3115
3129
  n({});
3116
3130
  });
3117
- }) : z[e], Ro = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3131
+ }) : z[e], No = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3118
3132
  n.delete(e);
3119
3133
  }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3120
3134
  t.clear();
3121
- }), No = (e = Se()) => {
3135
+ }), To = (e = Se()) => {
3122
3136
  const t = [];
3123
3137
  return e._withIDBStore("readonly", (n) => {
3124
3138
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3125
3139
  this.result && (t.push(this.result.key), this.result.continue());
3126
3140
  };
3127
3141
  }).then(() => t);
3128
- }, To = (e, t, n = [], r = {}) => {
3142
+ }, Io = (e, t, n = [], r = {}) => {
3129
3143
  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 = {};
3130
3144
  x[u] = [];
3131
3145
  let g = (C) => {
@@ -3149,7 +3163,7 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3149
3163
  }), m.forEach((C) => {
3150
3164
  C === void 0 ? (pt(), location.reload()) : (s && g(C.id), l && v(C.id));
3151
3165
  }), { list: x, search: i, filter: r };
3152
- }, Io = (e, t, n, r = Se()) => {
3166
+ }, Do = (e, t, n, r = Se()) => {
3153
3167
  if (z[e] === void 0)
3154
3168
  return new Promise((s, i) => {
3155
3169
  let c;
@@ -3170,45 +3184,45 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3170
3184
  return z[e][t.id] = { ...z[e][t.id], ...t.data }, n !== void 0 && z[n] !== void 0 ? z[n][t.id] !== void 0 && (z[n][t.id] = t.data.eDate) : z[n] = [], delete z[e][t.id].$_item, delete z[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3171
3185
  s.put(D.enCode(z[e]), e), n !== void 0 && s.put(D.enCode(z[n]), n);
3172
3186
  });
3173
- }, Do = async (e, t, n, r) => {
3187
+ }, Mo = async (e, t, n, r) => {
3174
3188
  let s, i;
3175
3189
  i = await oe(n), i[e.id] = e, await me(n, i), s !== null && (s = await oe(t), s[e.id] = e.eDate, await me(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3176
- }, Mo = async (e, t, n, r) => {
3190
+ }, Fo = async (e, t, n, r) => {
3177
3191
  let s = await oe(t), i = await oe(n);
3178
3192
  for (let c in e)
3179
3193
  i[c] = e[c], s[c] = e[c].eDate;
3180
3194
  await me(t, s), await me(n, i), r !== void 0 && r({ type: "load", page: s, base: i });
3181
- }, Fo = async (e, t, n, r) => {
3195
+ }, Lo = async (e, t, n, r) => {
3182
3196
  let s = await oe(t), i = await oe(n);
3183
3197
  e.forEach((c) => delete s[c]), await me(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3184
- }, Lo = async (e, t, n) => {
3198
+ }, $o = async (e, t, n) => {
3185
3199
  let r = await oe(t);
3186
3200
  e.forEach((s) => delete r[s]), await me(t, r);
3187
- }, $o = async (e, t, n) => {
3201
+ }, Po = async (e, t, n) => {
3188
3202
  let r = await oe(t);
3189
3203
  e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3190
- }, Po = async (e, t, n) => {
3204
+ }, Bo = async (e, t, n) => {
3191
3205
  let r = await oe(t);
3192
3206
  if (n !== void 0)
3193
3207
  n({ type: "load", base: r });
3194
3208
  else
3195
3209
  return r[e];
3196
- }, Bo = (e) => z[e], Ol = {
3197
- id: Po,
3210
+ }, Oo = (e) => z[e], Al = {
3211
+ id: Bo,
3198
3212
  get: oe,
3199
3213
  set: me,
3200
- add: Do,
3201
- del: Ro,
3202
- upd: Io,
3203
- key: No,
3204
- load: Bo,
3205
- split: To,
3214
+ add: Mo,
3215
+ del: No,
3216
+ upd: Do,
3217
+ key: To,
3218
+ load: Oo,
3219
+ split: Io,
3206
3220
  clear: pt,
3207
- updAll: Mo,
3208
- delAll: Fo,
3209
- delList: Lo,
3210
- addList: $o
3211
- }, Oo = (e, t) => {
3221
+ updAll: Fo,
3222
+ delAll: Lo,
3223
+ delList: $o,
3224
+ addList: Po
3225
+ }, Ao = (e, t) => {
3212
3226
  const n = [];
3213
3227
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3214
3228
  n.push(r.keyCode);
@@ -3219,15 +3233,15 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3219
3233
  }, document.onkeyup = function(r) {
3220
3234
  n.length = 0;
3221
3235
  };
3222
- }, Al = { useKey: Oo }, Ao = "_s_18bde_1", Zo = "_loadingB_18bde_1", zo = "_ul_18bde_31", Go = {
3223
- s: Ao,
3224
- loadingB: Zo,
3225
- ul: zo
3236
+ }, Zl = { useKey: Ao }, Zo = "_s_18bde_1", zo = "_loadingB_18bde_1", Go = "_ul_18bde_31", Ko = {
3237
+ s: Zo,
3238
+ loadingB: zo,
3239
+ ul: Go
3226
3240
  };
3227
3241
  function Rn({ children: e }) {
3228
3242
  return /* @__PURE__ */ a.jsx("ul", { className: X.ul, children: e });
3229
3243
  }
3230
- function Ko(e, t) {
3244
+ function Wo(e, t) {
3231
3245
  switch (t.type) {
3232
3246
  case "load":
3233
3247
  return {
@@ -3261,7 +3275,7 @@ function Ko(e, t) {
3261
3275
  }
3262
3276
  }
3263
3277
  function Nn(e) {
3264
- const t = h.useRef(null), [n, r] = h.useReducer(Ko, {
3278
+ const t = h.useRef(null), [n, r] = h.useReducer(Wo, {
3265
3279
  load: !1,
3266
3280
  list: [],
3267
3281
  data: {},
@@ -3276,13 +3290,13 @@ function Nn(e) {
3276
3290
  let s = () => {
3277
3291
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3278
3292
  };
3279
- return /* @__PURE__ */ a.jsx("div", { className: Go.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: [
3293
+ 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: [
3280
3294
  /* @__PURE__ */ a.jsx("i", {}),
3281
3295
  /* @__PURE__ */ a.jsx("i", {}),
3282
3296
  /* @__PURE__ */ a.jsx("i", {})
3283
3297
  ] }) }) });
3284
3298
  }
3285
- const Zl = { Scrolling: Nn }, zl = { Widget: Ri }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3299
+ const zl = { Scrolling: Nn }, Gl = { Widget: Ni }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3286
3300
  "div",
3287
3301
  {
3288
3302
  role: "switch",
@@ -3290,20 +3304,20 @@ const Zl = { Scrolling: Nn }, zl = { Widget: Ri }, Tn = ({ onClick: e, active: t
3290
3304
  "aria-checked": `${t ? "true" : "false"}`
3291
3305
  }
3292
3306
  ));
3293
- let ve = {};
3294
- ve.KeyDown = (e) => {
3307
+ let pe = {};
3308
+ pe.KeyDown = (e) => {
3295
3309
  e.key === "Enter" && e.preventDefault();
3296
3310
  };
3297
- ve.PasteOne = (e) => {
3311
+ pe.PasteOne = (e) => {
3298
3312
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3299
3313
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3300
3314
  }).catch((t) => {
3301
3315
  });
3302
3316
  };
3303
- ve.Focus = (e) => {
3317
+ pe.Focus = (e) => {
3304
3318
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3305
3319
  };
3306
- ve.Blur = (e) => {
3320
+ pe.Blur = (e) => {
3307
3321
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3308
3322
  };
3309
3323
  function $e({
@@ -3344,7 +3358,7 @@ function $e({
3344
3358
  const k = {};
3345
3359
  r && (k.placeholder = r), k.edit = (l && _) + "";
3346
3360
  const F = ($) => {
3347
- ve.Blur($), g && g({ value: $.target.textContent, name: n });
3361
+ pe.Blur($), g && g({ value: $.target.textContent, name: n });
3348
3362
  };
3349
3363
  return /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
3350
3364
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
@@ -3489,7 +3503,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3489
3503
  ref: c,
3490
3504
  onPaste: u,
3491
3505
  onInput: d,
3492
- onBlur: ve.Blur,
3506
+ onBlur: pe.Blur,
3493
3507
  onKeyDown: _,
3494
3508
  contentEditable: "plaintext-only",
3495
3509
  suppressContentEditableWarning: !0,
@@ -3662,9 +3676,9 @@ function $n(e) {
3662
3676
  }
3663
3677
  ) });
3664
3678
  }
3665
- const Wo = "_o_ff5dx_1", Vo = "_c_ff5dx_11", je = {
3666
- o: Wo,
3667
- c: Vo
3679
+ const Vo = "_o_ff5dx_1", Uo = "_c_ff5dx_11", je = {
3680
+ o: Vo,
3681
+ c: Uo
3668
3682
  };
3669
3683
  function Et(e) {
3670
3684
  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(
@@ -3680,7 +3694,7 @@ function Et(e) {
3680
3694
  we.setListener(
3681
3695
  "form",
3682
3696
  /* @__PURE__ */ a.jsx(
3683
- Uo,
3697
+ Yo,
3684
3698
  {
3685
3699
  position: { x: C, y: w },
3686
3700
  onValue: d,
@@ -3721,7 +3735,7 @@ function Et(e) {
3721
3735
  }
3722
3736
  ) });
3723
3737
  }
3724
- const Uo = (e) => {
3738
+ const Yo = (e) => {
3725
3739
  let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3726
3740
  y: parseInt(r.getFullYear()),
3727
3741
  d: parseInt(r.getDate()),
@@ -3912,7 +3926,7 @@ function Pn({
3912
3926
  we.setListener(
3913
3927
  "form",
3914
3928
  /* @__PURE__ */ a.jsx(
3915
- Yo,
3929
+ Ho,
3916
3930
  {
3917
3931
  position: { x: y, y: b },
3918
3932
  onValue: x,
@@ -3947,7 +3961,7 @@ function Pn({
3947
3961
  }
3948
3962
  ) });
3949
3963
  }
3950
- const Yo = (e) => {
3964
+ const Ho = (e) => {
3951
3965
  let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3952
3966
  y: parseInt(r.getFullYear()),
3953
3967
  m: parseInt(r.getMonth()) + 1
@@ -4140,7 +4154,7 @@ function On({
4140
4154
  onPaste: g,
4141
4155
  onInput: m,
4142
4156
  onKeyDown: x,
4143
- onBlur: ve.Blur,
4157
+ onBlur: pe.Blur,
4144
4158
  contentEditable: l && _ ? "plaintext-only" : "false",
4145
4159
  ...C,
4146
4160
  suppressContentEditableWarning: !0,
@@ -5667,7 +5681,7 @@ function Dt({
5667
5681
  we.setListener(
5668
5682
  "form",
5669
5683
  /* @__PURE__ */ a.jsx(
5670
- Ho,
5684
+ qo,
5671
5685
  {
5672
5686
  parent: N,
5673
5687
  onValue: C,
@@ -5684,7 +5698,7 @@ function Dt({
5684
5698
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5685
5699
  ] });
5686
5700
  }
5687
- const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5701
+ const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5688
5702
  let [s, i] = h.useState(!0), c = () => {
5689
5703
  i(!1);
5690
5704
  }, l = (u) => {
@@ -5736,7 +5750,7 @@ function Mt(e) {
5736
5750
  we.setListener(
5737
5751
  "form",
5738
5752
  /* @__PURE__ */ a.jsx(
5739
- qo,
5753
+ Jo,
5740
5754
  {
5741
5755
  parent: v,
5742
5756
  onValue: _,
@@ -5768,7 +5782,7 @@ function Mt(e) {
5768
5782
  }
5769
5783
  );
5770
5784
  }
5771
- const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5785
+ const Jo = ({ onValue: e, parent: t, view: n, options: r }) => {
5772
5786
  let [s, i] = h.useState(!0), c = () => {
5773
5787
  i(!1);
5774
5788
  }, l = (m) => {
@@ -6016,7 +6030,7 @@ function zn(e) {
6016
6030
  we.setListener(
6017
6031
  "form",
6018
6032
  /* @__PURE__ */ a.jsx(
6019
- Jo,
6033
+ Xo,
6020
6034
  {
6021
6035
  position: { x, y: g },
6022
6036
  onSave: l,
@@ -6053,7 +6067,7 @@ function zn(e) {
6053
6067
  }
6054
6068
  ) });
6055
6069
  }
6056
- const Jo = (e) => {
6070
+ const Xo = (e) => {
6057
6071
  let t = e.date.split(":"), n = {
6058
6072
  h: G.Number(2, t[0]),
6059
6073
  m: G.Number(2, t[1])
@@ -6170,7 +6184,7 @@ function Gn({
6170
6184
  ] });
6171
6185
  }
6172
6186
  const be = {};
6173
- function Xo(e) {
6187
+ function Qo(e) {
6174
6188
  const [t, n] = h.useState({}), r = h.useRef(e);
6175
6189
  return be.u = (s) => {
6176
6190
  r.current = { ...r.current, [s.name]: s.value };
@@ -6178,13 +6192,13 @@ function Xo(e) {
6178
6192
  n(Date.now());
6179
6193
  }, r.current;
6180
6194
  }
6181
- function Qo(e) {
6195
+ function el(e) {
6182
6196
  be.u(e), e.reload && be.r();
6183
6197
  }
6184
- function el() {
6198
+ function tl() {
6185
6199
  be.r && be.r();
6186
6200
  }
6187
- const Gl = {
6201
+ const Kl = {
6188
6202
  Color: $n,
6189
6203
  Date: Et,
6190
6204
  Code: Ln,
@@ -6210,10 +6224,10 @@ const Gl = {
6210
6224
  Users: Mt,
6211
6225
  String: $e,
6212
6226
  Form: Ct,
6213
- runReload: el,
6214
- useData: Xo,
6215
- setValue: Qo
6216
- }, Kl = {
6227
+ runReload: tl,
6228
+ useData: Qo,
6229
+ setValue: el
6230
+ }, Wl = {
6217
6231
  Color: $n,
6218
6232
  Date: Et,
6219
6233
  Code: Ln,
@@ -6238,12 +6252,12 @@ const Gl = {
6238
6252
  Time: zn,
6239
6253
  Users: Mt,
6240
6254
  String: $e
6241
- }, tl = "_spinner_1ul0m_1", nl = "_l_1ul0m_75", al = "_loadingB_1ul0m_1", Kn = {
6242
- spinner: tl,
6243
- l: nl,
6244
- loadingB: al
6255
+ }, nl = "_spinner_1ul0m_1", al = "_l_1ul0m_75", rl = "_loadingB_1ul0m_1", Kn = {
6256
+ spinner: nl,
6257
+ l: al,
6258
+ loadingB: rl
6245
6259
  };
6246
- function rl() {
6260
+ function sl() {
6247
6261
  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(
6248
6262
  "path",
6249
6263
  {
@@ -6252,18 +6266,18 @@ function rl() {
6252
6266
  }
6253
6267
  ) }) });
6254
6268
  }
6255
- function sl() {
6269
+ function il() {
6256
6270
  return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6257
6271
  /* @__PURE__ */ a.jsx("i", {}),
6258
6272
  /* @__PURE__ */ a.jsx("i", {}),
6259
6273
  /* @__PURE__ */ a.jsx("i", {})
6260
6274
  ] });
6261
6275
  }
6262
- const Wl = { Spinner: rl, Inline: sl }, il = "_s_t9swc_1", ol = {
6263
- s: il
6276
+ const Vl = { Spinner: sl, Inline: il }, ol = "_s_t9swc_1", ll = {
6277
+ s: ol
6264
6278
  };
6265
6279
  let Ft;
6266
- function ll() {
6280
+ function cl() {
6267
6281
  let e = (s) => {
6268
6282
  Ft(s.target.textContent);
6269
6283
  }, t = (s) => {
@@ -6278,7 +6292,7 @@ function ll() {
6278
6292
  return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6279
6293
  "div",
6280
6294
  {
6281
- className: ol.s,
6295
+ className: ll.s,
6282
6296
  onPaste: n,
6283
6297
  onInput: e,
6284
6298
  onKeyDown: t,
@@ -6288,7 +6302,7 @@ function ll() {
6288
6302
  }
6289
6303
  );
6290
6304
  }
6291
- function cl(e, t, n) {
6305
+ function dl(e, t, n) {
6292
6306
  let r = [], s = 1, i = 0, c = {}, l = 50;
6293
6307
  return c[s] = [], e.forEach((_) => {
6294
6308
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6296,17 +6310,17 @@ function cl(e, t, n) {
6296
6310
  i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6297
6311
  }), c;
6298
6312
  }
6299
- function dl(e) {
6313
+ function _l(e) {
6300
6314
  Ft = e;
6301
6315
  }
6302
- function _l(e) {
6316
+ function ul(e) {
6303
6317
  Ft = e;
6304
6318
  }
6305
- const Vl = { Field: ll, Run: cl, Get: dl, useValue: _l }, ul = "_f_q3r0i_1", ml = {
6306
- f: ul
6319
+ const Ul = { Field: cl, Run: dl, Get: _l, useValue: ul }, ml = "_f_q3r0i_1", fl = {
6320
+ f: ml
6307
6321
  };
6308
6322
  let ne = {};
6309
- function fl(e, t) {
6323
+ function hl(e, t) {
6310
6324
  switch (t.type) {
6311
6325
  case "open":
6312
6326
  return {
@@ -6356,8 +6370,8 @@ function fl(e, t) {
6356
6370
  throw new Error();
6357
6371
  }
6358
6372
  }
6359
- function hl() {
6360
- const [e, t] = h.useReducer(fl, {
6373
+ function xl() {
6374
+ const [e, t] = h.useReducer(hl, {
6361
6375
  open: !1,
6362
6376
  view: null,
6363
6377
  data: {},
@@ -6375,7 +6389,7 @@ function hl() {
6375
6389
  /* @__PURE__ */ a.jsxs(
6376
6390
  "div",
6377
6391
  {
6378
- className: ml.f,
6392
+ className: fl.f,
6379
6393
  onClick: () => {
6380
6394
  t({ type: "open", open: !0 });
6381
6395
  },
@@ -6400,7 +6414,7 @@ function hl() {
6400
6414
  ),
6401
6415
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6402
6416
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6403
- Cl,
6417
+ kl,
6404
6418
  {
6405
6419
  data: n,
6406
6420
  dispatch: t,
@@ -6422,16 +6436,16 @@ function hl() {
6422
6436
  ] }) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6423
6437
  ] });
6424
6438
  }
6425
- function xl(e) {
6439
+ function gl(e) {
6426
6440
  ne.get = e;
6427
6441
  }
6428
- function gl(e) {
6442
+ function vl(e) {
6429
6443
  ne.set !== void 0 && ne.set(e);
6430
6444
  }
6431
- function vl(e) {
6445
+ function pl(e) {
6432
6446
  ne.reset !== void 0 && ne.reset(e);
6433
6447
  }
6434
- function pl(e, t, n, r) {
6448
+ function Cl(e, t, n, r) {
6435
6449
  let s = [], i = 1, c = 0, l = {}, _ = 50;
6436
6450
  return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6437
6451
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
@@ -6446,7 +6460,7 @@ function pl(e, t, n, r) {
6446
6460
  function Wn(e) {
6447
6461
  ne.count(e);
6448
6462
  }
6449
- function Cl({ data: e, state: t, dispatch: n }) {
6463
+ function kl({ data: e, state: t, dispatch: n }) {
6450
6464
  let r = () => {
6451
6465
  n({ type: "view", view: e });
6452
6466
  }, s = () => {
@@ -6469,7 +6483,7 @@ function Cl({ data: e, state: t, dispatch: n }) {
6469
6483
  ) : ""
6470
6484
  ] }),
6471
6485
  /* @__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(
6472
- kl,
6486
+ yl,
6473
6487
  {
6474
6488
  data: t.data[e].list[i],
6475
6489
  head: e,
@@ -6481,7 +6495,7 @@ function Cl({ data: e, state: t, dispatch: n }) {
6481
6495
  )) })
6482
6496
  ] });
6483
6497
  }
6484
- function kl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6498
+ function yl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6485
6499
  if (s !== "999" && e.count === void 0)
6486
6500
  return "";
6487
6501
  const i = () => {
@@ -6500,11 +6514,11 @@ function kl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6500
6514
  }
6501
6515
  );
6502
6516
  }
6503
- const Ul = { Button: hl, useValue: xl, Set: gl, Run: pl, Count: Wn, Reset: vl }, Yl = { Bell: qr, Send: Ur, Add: Vr }, yl = "_p_djnh1_1", jl = "_l_djnh1_38", Vn = {
6504
- p: yl,
6505
- l: jl
6517
+ 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 = {
6518
+ p: jl,
6519
+ l: bl
6506
6520
  };
6507
- function bl(e) {
6521
+ function wl(e) {
6508
6522
  let t = 3, n = e.page, r = e.count, s = [], i = () => {
6509
6523
  s.push({ page: 1 }), s.push({ text: "..." });
6510
6524
  }, c = () => {
@@ -6522,7 +6536,7 @@ function bl(e) {
6522
6536
  /* @__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" }) }) })
6523
6537
  ] });
6524
6538
  }
6525
- function wl(e, t) {
6539
+ function Sl(e, t) {
6526
6540
  switch (t.type) {
6527
6541
  case "load":
6528
6542
  return {
@@ -6544,7 +6558,7 @@ function wl(e, t) {
6544
6558
  }
6545
6559
  }
6546
6560
  function Un({ load: e, list: t, item: n }) {
6547
- const r = h.useRef(null), [s, i] = h.useReducer(wl, {
6561
+ const r = h.useRef(null), [s, i] = h.useReducer(Sl, {
6548
6562
  load: !1,
6549
6563
  list: [],
6550
6564
  data: {},
@@ -6570,7 +6584,7 @@ function Un({ load: e, list: t, item: n }) {
6570
6584
  /* @__PURE__ */ a.jsx("i", {})
6571
6585
  ] }) }) }),
6572
6586
  s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6573
- bl,
6587
+ wl,
6574
6588
  {
6575
6589
  page: s.page,
6576
6590
  count: s.size,
@@ -6579,15 +6593,15 @@ function Un({ load: e, list: t, item: n }) {
6579
6593
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6580
6594
  ] });
6581
6595
  }
6582
- const Hl = { Pagination: Un };
6583
- function Sl({ head: e, load: t, list: n, item: r }) {
6596
+ const ql = { Pagination: Un };
6597
+ function El({ head: e, load: t, list: n, item: r }) {
6584
6598
  const s = e;
6585
6599
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6586
6600
  /* @__PURE__ */ a.jsx(s, {}),
6587
6601
  St.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(Un, { list: n, load: t, item: r }) : /* @__PURE__ */ a.jsx(Nn, { list: n, load: t, item: r })
6588
6602
  ] });
6589
6603
  }
6590
- function El(e, t) {
6604
+ function Rl(e, t) {
6591
6605
  switch (t.type) {
6592
6606
  case "load":
6593
6607
  return {
@@ -6629,50 +6643,50 @@ function El(e, t) {
6629
6643
  }
6630
6644
  }
6631
6645
  const kt = {};
6632
- function Rl(e) {
6646
+ function Nl(e) {
6633
6647
  kt.get = e;
6634
6648
  }
6635
- function Nl(e) {
6649
+ function Tl(e) {
6636
6650
  kt.get && kt.get(e);
6637
6651
  }
6638
- const ql = { View: Sl, Reducer: El, useValue: Rl, setValue: Nl }, Jl = { Get: ts }, Xl = { Open: Li };
6652
+ const Jl = { View: El, Reducer: Rl, useValue: Nl, setValue: Tl }, Xl = { Get: ts }, Ql = { Open: $i };
6639
6653
  export {
6640
- oo as Action,
6641
- Ll as Alert,
6654
+ lo as Action,
6655
+ $l as Alert,
6642
6656
  nn as Api,
6643
- Bl as Badge,
6644
- Fl as Bookmarks,
6645
- Dl as Browser,
6657
+ Ol as Badge,
6658
+ Ll as Bookmarks,
6659
+ Ml as Browser,
6646
6660
  Xs as Button,
6647
- Jl as Company,
6661
+ Xl as Company,
6648
6662
  un as Component,
6649
- Ol as DataBase,
6663
+ Al as DataBase,
6650
6664
  we as Event,
6651
6665
  we as Events,
6652
- zl as Files,
6653
- Ul as Filter,
6654
- Gl as Form,
6666
+ Gl as Files,
6667
+ Yl as Filter,
6668
+ Kl as Form,
6655
6669
  G as Format,
6656
- Al as HotKey,
6657
- $l as Icon,
6658
- Vi as Init,
6659
- Kl as Input,
6660
- ql as List,
6661
- Wl as Loading,
6670
+ Zl as HotKey,
6671
+ Pl as Icon,
6672
+ Ui as Init,
6673
+ Wl as Input,
6674
+ Jl as List,
6675
+ Vl as Loading,
6662
6676
  wt as Modal,
6663
6677
  Le as Notice,
6664
- Yl as Notifications,
6665
- Hl as Pagination,
6666
- Xl as Phone,
6678
+ Hl as Notifications,
6679
+ ql as Pagination,
6680
+ Ql as Phone,
6667
6681
  Ue as Router,
6668
- Zl as Scrolling,
6669
- Vl as Search,
6670
- Ml as Setting,
6682
+ zl as Scrolling,
6683
+ Ul as Search,
6684
+ Fl as Setting,
6671
6685
  bt as Sistym,
6672
6686
  ce as Socket,
6673
6687
  se as Store,
6674
- Xi as Tabs,
6675
- Pl as Triage,
6688
+ Qi as Tabs,
6689
+ Bl as Triage,
6676
6690
  St as User,
6677
6691
  O as WebRTC
6678
6692
  };