elcrm 0.7.7 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5,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
  }
@@ -2055,7 +2055,10 @@ function ei({
2055
2055
  if (n.onClick)
2056
2056
  return m(!1), n.onClick({ setOpen: l });
2057
2057
  if (n.onSend)
2058
- return n.onSend({ setOpen: l, disabled: m });
2058
+ return n.onSend({
2059
+ setOpen: l,
2060
+ disabled: m
2061
+ });
2059
2062
  }
2060
2063
  }, u = () => {
2061
2064
  _.current.setAttribute("shake", !0), setTimeout(() => {
@@ -2118,7 +2121,7 @@ function ei({
2118
2121
  ) : "" });
2119
2122
  }
2120
2123
  function ti(e) {
2121
- ye.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2124
+ ve.add(/* @__PURE__ */ a.jsx(ni, { children: e }, String(Date.now())));
2122
2125
  }
2123
2126
  function ni({ children: e }) {
2124
2127
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
@@ -2134,13 +2137,27 @@ function ai(e) {
2134
2137
  function ri({ type: e, name: t, params: n }) {
2135
2138
  let [r, s] = h.useState(null);
2136
2139
  return h.useEffect(() => {
2137
- ye.config(e, t, n, s);
2140
+ ve.config(e, t, n, s);
2138
2141
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2139
2142
  }
2140
2143
  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 };
2144
+ ve.config(e, t, n);
2145
+ }
2146
+ function ii(e) {
2147
+ ve.x(e);
2148
+ }
2149
+ const wt = {
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
2160
+ };
2144
2161
  function wn({ text: e, type: t, button: n }) {
2145
2162
  let [r, s] = h.useState(!1), i = { active: t };
2146
2163
  const c = () => {
@@ -2173,22 +2190,22 @@ function wn({ text: e, type: t, button: n }) {
2173
2190
  n && /* @__PURE__ */ a.jsx("button", { onClick: c, children: n.label })
2174
2191
  ] });
2175
2192
  }
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
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", X = {
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
2192
2209
  }, on = ({ title: e, left: t, right: n, children: r }) => /* @__PURE__ */ a.jsxs("div", { className: X.h, children: [
2193
2210
  /* @__PURE__ */ a.jsx("div", { className: X.t, children: e }),
2194
2211
  t && /* @__PURE__ */ a.jsx("div", { className: X.hl, children: t }),
@@ -2201,26 +2218,26 @@ const ii = "_h_1usnu_1", oi = "_g_1usnu_11", li = "_hr_1usnu_16", ci = "_hl_1usn
2201
2218
  function _n({ children: e }) {
2202
2219
  return /* @__PURE__ */ a.jsx("div", { className: X.g, children: e });
2203
2220
  }
2204
- const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2221
+ const yi = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [X.o, t].join(" "), children: [
2205
2222
  n && /* @__PURE__ */ a.jsx("div", { className: X.hh, children: n }),
2206
2223
  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 = {
2224
+ ] }), 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
2225
  Header: on,
2209
2226
  Section: cn,
2210
2227
  Group: _n,
2211
2228
  Form: dn,
2212
2229
  List: ln,
2213
2230
  A: wn,
2214
- U: yi,
2231
+ U: ji,
2215
2232
  G: _n,
2216
- C: ji,
2233
+ C: bi,
2217
2234
  L: ln,
2218
- O: ki,
2235
+ O: yi,
2219
2236
  S: cn,
2220
2237
  H: on,
2221
- M: bi,
2238
+ M: wi,
2222
2239
  F: dn
2223
- }, wi = (e, t) => {
2240
+ }, Si = (e, t) => {
2224
2241
  switch (t.type) {
2225
2242
  case "load":
2226
2243
  return {
@@ -2281,14 +2298,14 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2281
2298
  default:
2282
2299
  return e;
2283
2300
  }
2284
- }, Si = () => ({
2301
+ }, Ei = () => ({
2285
2302
  load: !0,
2286
2303
  list: [],
2287
2304
  name: "Файлы",
2288
2305
  add: !1,
2289
2306
  search: !1,
2290
2307
  revers: !0
2291
- }), Ei = () => {
2308
+ }), Ri = () => {
2292
2309
  let [e, t] = h.useState([]);
2293
2310
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2294
2311
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
@@ -2304,17 +2321,17 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2304
2321
  ] }),
2305
2322
  /* @__PURE__ */ a.jsx("div", { className: "--list", children: e.map((n) => n) })
2306
2323
  ] }) : "" });
2307
- }, Ri = ({
2324
+ }, Ni = ({
2308
2325
  id: e,
2309
2326
  name: t,
2310
2327
  listen: n,
2311
2328
  dir: r
2312
2329
  }) => {
2313
2330
  t = t || "Файлы";
2314
- const [s, i] = h.useReducer(wi, {}, Si), c = () => {
2331
+ const [s, i] = h.useReducer(Si, {}, Ei), c = () => {
2315
2332
  wt.Add(
2316
2333
  /* @__PURE__ */ a.jsx(
2317
- Ni,
2334
+ Ti,
2318
2335
  {
2319
2336
  dir: r,
2320
2337
  dispatch: i,
@@ -2363,9 +2380,9 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2363
2380
  /* @__PURE__ */ a.jsx("i", {}),
2364
2381
  /* @__PURE__ */ a.jsx("i", {}),
2365
2382
  /* @__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 }, _)) })
2383
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : s.list.map((l, _) => /* @__PURE__ */ a.jsx(Ii, { dispatch: i, data: l }, _)) })
2367
2384
  ] });
2368
- }, Ni = ({ id: e, dir: t, dispatch: n }) => {
2385
+ }, Ti = ({ id: e, dir: t, dispatch: n }) => {
2369
2386
  let [r, s] = h.useState(!0), i = h.useRef(null), c = (d) => {
2370
2387
  d.preventDefault(), d.stopPropagation();
2371
2388
  }, l = (d) => {
@@ -2414,7 +2431,7 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2414
2431
  },
2415
2432
  (/* @__PURE__ */ new Date()).getTime()
2416
2433
  ) }) : "" });
2417
- }, Ti = ({ data: e, dispatch: t }) => {
2434
+ }, Ii = ({ data: e, dispatch: t }) => {
2418
2435
  let n = async () => {
2419
2436
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2420
2437
  headers: {
@@ -2466,7 +2483,7 @@ const ki = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2466
2483
  let A = {};
2467
2484
  A.list = ar();
2468
2485
  A.active = null;
2469
- const Ii = () => {
2486
+ const Di = () => {
2470
2487
  var s;
2471
2488
  let [e, t] = h.useState([]), [n, r] = h.useState(St.getSetting("s03"));
2472
2489
  return h.useEffect(() => {
@@ -2504,7 +2521,7 @@ const Ii = () => {
2504
2521
  "bookmarks",
2505
2522
  n === 1 && e.length !== 0 ? "bottom" : ""
2506
2523
  ), 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 }) => {
2524
+ }, Mi = ({ id: e, type: t, name: n }) => {
2508
2525
  let r = t + "-" + e, [s, i] = h.useState(
2509
2526
  A.list[r] !== void 0
2510
2527
  );
@@ -2532,7 +2549,7 @@ const Ii = () => {
2532
2549
  Ue.setId(e.id);
2533
2550
  };
2534
2551
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2535
- }, Mi = (e) => {
2552
+ }, Fi = (e) => {
2536
2553
  A.active(e);
2537
2554
  }, O = {}, xt = {}, j = {};
2538
2555
  j.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
@@ -2679,7 +2696,7 @@ O.Run = async (e) => {
2679
2696
  O[e.data.type] && O[e.data.type](e.data);
2680
2697
  };
2681
2698
  let Me = {};
2682
- function Fi() {
2699
+ function Li() {
2683
2700
  let [e, t] = h.useState([]), n = h.useRef(null);
2684
2701
  return h.useEffect(() => {
2685
2702
  }, []), Me.set = (r) => {
@@ -2693,14 +2710,14 @@ function Fi() {
2693
2710
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
2694
2711
  ] });
2695
2712
  }
2696
- function Li(e, t) {
2713
+ function $i(e, t) {
2697
2714
  let n = (/* @__PURE__ */ new Date()).getTime();
2698
2715
  Me.set({
2699
- item: /* @__PURE__ */ a.jsx($i, { type: t, id: e }, n),
2716
+ item: /* @__PURE__ */ a.jsx(Pi, { type: t, id: e }, n),
2700
2717
  key: n
2701
2718
  });
2702
2719
  }
2703
- function $i({ id: e, type: t }) {
2720
+ function Pi({ id: e, type: t }) {
2704
2721
  const [n, r] = h.useState({}), [s, i] = h.useState(t);
2705
2722
  h.useEffect(() => {
2706
2723
  r(se.getSelect("user")[e]);
@@ -2801,13 +2818,13 @@ function $i({ id: e, type: t }) {
2801
2818
  ] }) });
2802
2819
  }
2803
2820
  const gt = {};
2804
- function Pi(e) {
2821
+ function Bi(e) {
2805
2822
  gt.add(e);
2806
2823
  }
2807
- function Bi({ color: e, size: t, name: n }) {
2824
+ function Oi({ color: e, size: t, name: n }) {
2808
2825
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
2809
2826
  }
2810
- function Oi() {
2827
+ function Ai() {
2811
2828
  let [e, t] = h.useState([]);
2812
2829
  if (gt.x = () => {
2813
2830
  t([]);
@@ -2829,14 +2846,14 @@ function Oi() {
2829
2846
  )) });
2830
2847
  }
2831
2848
  const vt = {};
2832
- function Ai(e, t) {
2849
+ function Zi(e, t) {
2833
2850
  vt[e] = t;
2834
2851
  }
2835
- function Zi(e, t) {
2852
+ function zi(e, t) {
2836
2853
  vt[e] !== void 0 && vt[e](t);
2837
2854
  }
2838
2855
  const de = {};
2839
- function zi(e, t) {
2856
+ function Gi(e, t) {
2840
2857
  const [n, r] = h.useState(t);
2841
2858
  return h.useEffect(() => {
2842
2859
  if (de[e])
@@ -2844,54 +2861,54 @@ function zi(e, t) {
2844
2861
  de[e] = [r];
2845
2862
  }, []), [n];
2846
2863
  }
2847
- function Gi(e, t) {
2864
+ function Ki(e, t) {
2848
2865
  if (de[e])
2849
2866
  return de[e].push(t);
2850
2867
  de[e] = [t];
2851
2868
  }
2852
- function Ki(e, t) {
2869
+ function Wi(e, t) {
2853
2870
  de[e] && de[e].forEach((n) => n(t));
2854
2871
  }
2855
- const we = { setListener: Zi, useListener: Ai, setEmitter: Ki, useEmitter: zi, subEmitter: Gi };
2856
- function Wi() {
2872
+ const we = { setListener: zi, useListener: Zi, setEmitter: Wi, useEmitter: Gi, subEmitter: Ki };
2873
+ function Vi() {
2857
2874
  let [e, t] = h.useState([]);
2858
2875
  return we.useListener("form", (n) => {
2859
2876
  t([n]);
2860
2877
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2861
2878
  }
2862
- const Vi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2879
+ const Ui = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Na(
2863
2880
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2864
2881
  /* @__PURE__ */ a.jsx(Qs, { config: t.modal }),
2865
2882
  /* @__PURE__ */ a.jsx(Sr, {}),
2866
2883
  /* @__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, {}),
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, {}),
2872
2889
  e
2873
2890
  ] })
2874
- )), Ui = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2891
+ )), Yi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Hi = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
2875
2892
  "xz",
2876
2893
  e
2877
- ] }), Hi = "_payment_1lxfv_1", qi = {
2878
- payment: Hi
2894
+ ] }), qi = "_payment_1lxfv_1", Ji = {
2895
+ payment: qi
2879
2896
  };
2880
- function Ji() {
2897
+ function Xi() {
2881
2898
  let [e, t] = h.useState({});
2882
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: qi.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2899
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Ji.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2883
2900
  }
2884
- const Dl = ({ children: e, ...t }) => {
2901
+ const Ml = ({ children: e, ...t }) => {
2885
2902
  let n = {};
2886
2903
  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, {}),
2904
+ /* @__PURE__ */ a.jsx(Xi, {}),
2889
2905
  /* @__PURE__ */ a.jsx(Yi, {}),
2890
- /* @__PURE__ */ a.jsx(Vi, { config: { modal: {}, crypto: n } }),
2906
+ /* @__PURE__ */ a.jsx(Hi, {}),
2907
+ /* @__PURE__ */ a.jsx(Ui, { config: { modal: {}, crypto: n } }),
2891
2908
  e
2892
2909
  ] });
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,
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,
2895
2912
  {
2896
2913
  onClick: t,
2897
2914
  active: n,
@@ -2899,9 +2916,9 @@ const Dl = ({ children: e, ...t }) => {
2899
2916
  link: i.link
2900
2917
  },
2901
2918
  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 = ({
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 = ({
2905
2922
  title: e = "",
2906
2923
  button: t,
2907
2924
  description: n = "",
@@ -2921,9 +2938,9 @@ const eo = ({
2921
2938
  ] }),
2922
2939
  /* @__PURE__ */ a.jsx("ul", { children: r }),
2923
2940
  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 }) => {
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 }) => {
2927
2944
  let [n, r] = h.useState(!1);
2928
2945
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
2929
2946
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => r(!n), children: [
@@ -2932,10 +2949,10 @@ const eo = ({
2932
2949
  ] }),
2933
2950
  n && /* @__PURE__ */ a.jsx("div", { children: t })
2934
2951
  ] });
2935
- }, so = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2952
+ }, io = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2936
2953
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2937
2954
  /* @__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(
2955
+ ] }) }), oo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
2939
2956
  "div",
2940
2957
  {
2941
2958
  role: "switch",
@@ -2944,25 +2961,25 @@ const eo = ({
2944
2961
  },
2945
2962
  "aria-checked": e ? "true" : "false"
2946
2963
  }
2947
- )), oo = { Switch: io }, lo = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2964
+ )), lo = { Switch: oo }, co = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2948
2965
  /* @__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: [
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: [
2951
2968
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2952
2969
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2953
- ] }) }), _o = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2970
+ ] }) }), uo = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2954
2971
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2955
2972
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
2956
- ] }) }), uo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2973
+ ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2957
2974
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2958
2975
  /* @__PURE__ */ a.jsx("dd", { children: t })
2959
- ] }) }), mo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2976
+ ] }) }), fo = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
2960
2977
  /* @__PURE__ */ a.jsx("dt", { children: e }),
2961
2978
  /* @__PURE__ */ a.jsx("dd", { children: t })
2962
- ] }) }), fo = { Accordion: ro, Button: so, Switch: lo, Info: _o, Select: co, Component: uo, Node: mo };
2979
+ ] }) }), ho = { Accordion: so, Button: io, Switch: co, Info: uo, Select: _o, Component: mo, Node: fo };
2963
2980
  function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2964
2981
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
2965
- ho,
2982
+ xo,
2966
2983
  {
2967
2984
  onClick: t,
2968
2985
  active: n,
@@ -2972,10 +2989,10 @@ function Sn({ list: e, onClick: t, active: n, size: r, view: s }) {
2972
2989
  i.link
2973
2990
  )) }) });
2974
2991
  }
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 });
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 });
2976
2993
  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() {
2994
+ const Fl = { Section: to, Main: ro, Item: ho, Tabs: Sn }, Ll = { Icon: Mi, Item: ht, Active: Fi }, $l = { Send: Or, Line: wn };
2995
+ function go() {
2979
2996
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
2980
2997
  "path",
2981
2998
  {
@@ -2984,11 +3001,11 @@ function xo() {
2984
3001
  }
2985
3002
  ) });
2986
3003
  }
2987
- const $l = { Logo: xo, Sprite: Pi, Symbol: Bi }, go = "_sort_1yrvt_1", vo = {
2988
- sort: go
3004
+ const Pl = { Logo: go, Sprite: Bi, Symbol: Oi }, vo = "_sort_1yrvt_1", po = {
3005
+ sort: vo
2989
3006
  };
2990
3007
  let Je = {};
2991
- function po(e, t) {
3008
+ function Co(e, t) {
2992
3009
  switch (t.type) {
2993
3010
  case "active":
2994
3011
  let n = "<";
@@ -3001,12 +3018,12 @@ function po(e, t) {
3001
3018
  throw new Error();
3002
3019
  }
3003
3020
  }
3004
- function Co() {
3021
+ function ko() {
3005
3022
  const [e, t] = h.useReducer(
3006
- po,
3023
+ Co,
3007
3024
  ut() === void 0 ? { active: 1, sort: "<" } : ut()
3008
3025
  );
3009
- return /* @__PURE__ */ a.jsxs("div", { className: vo.sort, children: [
3026
+ return /* @__PURE__ */ a.jsxs("div", { className: po.sort, children: [
3010
3027
  /* @__PURE__ */ a.jsx(
3011
3028
  "i",
3012
3029
  {
@@ -3033,13 +3050,13 @@ function Co() {
3033
3050
  )
3034
3051
  ] });
3035
3052
  }
3036
- function ko(e) {
3053
+ function yo(e) {
3037
3054
  Je.get = e;
3038
3055
  }
3039
- function yo(e) {
3056
+ function jo(e) {
3040
3057
  Je.set(e);
3041
3058
  }
3042
- function jo(e, t, n) {
3059
+ function bo(e, t, n) {
3043
3060
  let r = 1, s = 0, i = {}, c = 50;
3044
3061
  i[r] = [];
3045
3062
  let l = {}, _ = "s1a";
@@ -3058,11 +3075,11 @@ function jo(e, t, n) {
3058
3075
  s++, s <= c || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3059
3076
  }), { data: i };
3060
3077
  }
3061
- function bo(e) {
3078
+ function wo(e) {
3062
3079
  Je.count(e);
3063
3080
  }
3064
- const Pl = { Init: Co, useValue: ko, Set: yo, Run: jo, Count: bo }, Ye = {}, En = {};
3065
- function wo(e) {
3081
+ const Bl = { Init: ko, useValue: yo, Set: jo, Run: bo, Count: wo }, Ye = {}, En = {};
3082
+ function So(e) {
3066
3083
  const [t, n] = h.useState({}), r = async (s) => {
3067
3084
  n(
3068
3085
  Object.keys(Ye).reduce((i, c) => (i ? i[c] = Ye[c].all : i = {}, i), {})
@@ -3072,15 +3089,15 @@ function wo(e) {
3072
3089
  e.forEach((s) => Ye[s] = { all: 0 }), En.menu = r, r();
3073
3090
  }, [e]), t;
3074
3091
  }
3075
- function So(e, t) {
3092
+ function Eo(e, t) {
3076
3093
  switch (typeof t) {
3077
3094
  case "number":
3078
3095
  Ye[e].all += t, En.menu();
3079
3096
  break;
3080
3097
  }
3081
3098
  }
3082
- const Bl = { useMenu: wo, setUpdate: So };
3083
- class Eo {
3099
+ const Ol = { useMenu: So, setUpdate: Eo };
3100
+ class Ro {
3084
3101
  constructor(t = "el", n = "db") {
3085
3102
  lt(this, "storeName");
3086
3103
  lt(this, "_dbp");
@@ -3101,7 +3118,7 @@ class Eo {
3101
3118
  }
3102
3119
  }
3103
3120
  let ct, z = {};
3104
- const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3121
+ const Se = () => (ct || (ct = new Ro()), ct), me = (e, t, n = Se()) => n._withIDBStore("readwrite", (r) => {
3105
3122
  z[e] = t, r.put(D.enCode(t), e);
3106
3123
  }), oe = (e, t = Se()) => z[e] === void 0 ? new Promise((n, r) => {
3107
3124
  let s;
@@ -3114,18 +3131,18 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3114
3131
  } else
3115
3132
  n({});
3116
3133
  });
3117
- }) : z[e], Ro = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3134
+ }) : z[e], No = (e, t = Se()) => t._withIDBStore("readwrite", (n) => {
3118
3135
  n.delete(e);
3119
3136
  }), pt = (e = Se()) => e._withIDBStore("readwrite", (t) => {
3120
3137
  t.clear();
3121
- }), No = (e = Se()) => {
3138
+ }), To = (e = Se()) => {
3122
3139
  const t = [];
3123
3140
  return e._withIDBStore("readonly", (n) => {
3124
3141
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3125
3142
  this.result && (t.push(this.result.key), this.result.continue());
3126
3143
  };
3127
3144
  }).then(() => t);
3128
- }, To = (e, t, n = [], r = {}) => {
3145
+ }, Io = (e, t, n = [], r = {}) => {
3129
3146
  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
3147
  x[u] = [];
3131
3148
  let g = (C) => {
@@ -3149,7 +3166,7 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3149
3166
  }), m.forEach((C) => {
3150
3167
  C === void 0 ? (pt(), location.reload()) : (s && g(C.id), l && v(C.id));
3151
3168
  }), { list: x, search: i, filter: r };
3152
- }, Io = (e, t, n, r = Se()) => {
3169
+ }, Do = (e, t, n, r = Se()) => {
3153
3170
  if (z[e] === void 0)
3154
3171
  return new Promise((s, i) => {
3155
3172
  let c;
@@ -3170,45 +3187,45 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3170
3187
  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
3188
  s.put(D.enCode(z[e]), e), n !== void 0 && s.put(D.enCode(z[n]), n);
3172
3189
  });
3173
- }, Do = async (e, t, n, r) => {
3190
+ }, Mo = async (e, t, n, r) => {
3174
3191
  let s, i;
3175
3192
  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) => {
3193
+ }, Fo = async (e, t, n, r) => {
3177
3194
  let s = await oe(t), i = await oe(n);
3178
3195
  for (let c in e)
3179
3196
  i[c] = e[c], s[c] = e[c].eDate;
3180
3197
  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) => {
3198
+ }, Lo = async (e, t, n, r) => {
3182
3199
  let s = await oe(t), i = await oe(n);
3183
3200
  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) => {
3201
+ }, $o = async (e, t, n) => {
3185
3202
  let r = await oe(t);
3186
3203
  e.forEach((s) => delete r[s]), await me(t, r);
3187
- }, $o = async (e, t, n) => {
3204
+ }, Po = async (e, t, n) => {
3188
3205
  let r = await oe(t);
3189
3206
  e.forEach((s) => r[s.id] = s.eDate), await me(t, r);
3190
- }, Po = async (e, t, n) => {
3207
+ }, Bo = async (e, t, n) => {
3191
3208
  let r = await oe(t);
3192
3209
  if (n !== void 0)
3193
3210
  n({ type: "load", base: r });
3194
3211
  else
3195
3212
  return r[e];
3196
- }, Bo = (e) => z[e], Ol = {
3197
- id: Po,
3213
+ }, Oo = (e) => z[e], Al = {
3214
+ id: Bo,
3198
3215
  get: oe,
3199
3216
  set: me,
3200
- add: Do,
3201
- del: Ro,
3202
- upd: Io,
3203
- key: No,
3204
- load: Bo,
3205
- split: To,
3217
+ add: Mo,
3218
+ del: No,
3219
+ upd: Do,
3220
+ key: To,
3221
+ load: Oo,
3222
+ split: Io,
3206
3223
  clear: pt,
3207
- updAll: Mo,
3208
- delAll: Fo,
3209
- delList: Lo,
3210
- addList: $o
3211
- }, Oo = (e, t) => {
3224
+ updAll: Fo,
3225
+ delAll: Lo,
3226
+ delList: $o,
3227
+ addList: Po
3228
+ }, Ao = (e, t) => {
3212
3229
  const n = [];
3213
3230
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3214
3231
  n.push(r.keyCode);
@@ -3219,15 +3236,15 @@ const Se = () => (ct || (ct = new Eo()), ct), me = (e, t, n = Se()) => n._withID
3219
3236
  }, document.onkeyup = function(r) {
3220
3237
  n.length = 0;
3221
3238
  };
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
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
3226
3243
  };
3227
3244
  function Rn({ children: e }) {
3228
3245
  return /* @__PURE__ */ a.jsx("ul", { className: X.ul, children: e });
3229
3246
  }
3230
- function Ko(e, t) {
3247
+ function Wo(e, t) {
3231
3248
  switch (t.type) {
3232
3249
  case "load":
3233
3250
  return {
@@ -3261,7 +3278,7 @@ function Ko(e, t) {
3261
3278
  }
3262
3279
  }
3263
3280
  function Nn(e) {
3264
- const t = h.useRef(null), [n, r] = h.useReducer(Ko, {
3281
+ const t = h.useRef(null), [n, r] = h.useReducer(Wo, {
3265
3282
  load: !1,
3266
3283
  list: [],
3267
3284
  data: {},
@@ -3276,13 +3293,13 @@ function Nn(e) {
3276
3293
  let s = () => {
3277
3294
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !n.wait && r({ type: "update" });
3278
3295
  };
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: [
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: [
3280
3297
  /* @__PURE__ */ a.jsx("i", {}),
3281
3298
  /* @__PURE__ */ a.jsx("i", {}),
3282
3299
  /* @__PURE__ */ a.jsx("i", {})
3283
3300
  ] }) }) });
3284
3301
  }
3285
- const Zl = { Scrolling: Nn }, zl = { Widget: Ri }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3302
+ const zl = { Scrolling: Nn }, Gl = { Widget: Ni }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3286
3303
  "div",
3287
3304
  {
3288
3305
  role: "switch",
@@ -3290,20 +3307,20 @@ const Zl = { Scrolling: Nn }, zl = { Widget: Ri }, Tn = ({ onClick: e, active: t
3290
3307
  "aria-checked": `${t ? "true" : "false"}`
3291
3308
  }
3292
3309
  ));
3293
- let ve = {};
3294
- ve.KeyDown = (e) => {
3310
+ let pe = {};
3311
+ pe.KeyDown = (e) => {
3295
3312
  e.key === "Enter" && e.preventDefault();
3296
3313
  };
3297
- ve.PasteOne = (e) => {
3314
+ pe.PasteOne = (e) => {
3298
3315
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3299
3316
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3300
3317
  }).catch((t) => {
3301
3318
  });
3302
3319
  };
3303
- ve.Focus = (e) => {
3320
+ pe.Focus = (e) => {
3304
3321
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3305
3322
  };
3306
- ve.Blur = (e) => {
3323
+ pe.Blur = (e) => {
3307
3324
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3308
3325
  };
3309
3326
  function $e({
@@ -3344,7 +3361,7 @@ function $e({
3344
3361
  const k = {};
3345
3362
  r && (k.placeholder = r), k.edit = (l && _) + "";
3346
3363
  const F = ($) => {
3347
- ve.Blur($), g && g({ value: $.target.textContent, name: n });
3364
+ pe.Blur($), g && g({ value: $.target.textContent, name: n });
3348
3365
  };
3349
3366
  return /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
3350
3367
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
@@ -3489,7 +3506,7 @@ function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3489
3506
  ref: c,
3490
3507
  onPaste: u,
3491
3508
  onInput: d,
3492
- onBlur: ve.Blur,
3509
+ onBlur: pe.Blur,
3493
3510
  onKeyDown: _,
3494
3511
  contentEditable: "plaintext-only",
3495
3512
  suppressContentEditableWarning: !0,
@@ -3662,9 +3679,9 @@ function $n(e) {
3662
3679
  }
3663
3680
  ) });
3664
3681
  }
3665
- const Wo = "_o_ff5dx_1", Vo = "_c_ff5dx_11", je = {
3666
- o: Wo,
3667
- c: Vo
3682
+ const Vo = "_o_ff5dx_1", Uo = "_c_ff5dx_11", je = {
3683
+ o: Vo,
3684
+ c: Uo
3668
3685
  };
3669
3686
  function Et(e) {
3670
3687
  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 +3697,7 @@ function Et(e) {
3680
3697
  we.setListener(
3681
3698
  "form",
3682
3699
  /* @__PURE__ */ a.jsx(
3683
- Uo,
3700
+ Yo,
3684
3701
  {
3685
3702
  position: { x: C, y: w },
3686
3703
  onValue: d,
@@ -3721,7 +3738,7 @@ function Et(e) {
3721
3738
  }
3722
3739
  ) });
3723
3740
  }
3724
- const Uo = (e) => {
3741
+ const Yo = (e) => {
3725
3742
  let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3726
3743
  y: parseInt(r.getFullYear()),
3727
3744
  d: parseInt(r.getDate()),
@@ -3912,7 +3929,7 @@ function Pn({
3912
3929
  we.setListener(
3913
3930
  "form",
3914
3931
  /* @__PURE__ */ a.jsx(
3915
- Yo,
3932
+ Ho,
3916
3933
  {
3917
3934
  position: { x: y, y: b },
3918
3935
  onValue: x,
@@ -3947,7 +3964,7 @@ function Pn({
3947
3964
  }
3948
3965
  ) });
3949
3966
  }
3950
- const Yo = (e) => {
3967
+ const Ho = (e) => {
3951
3968
  let [t, n] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3952
3969
  y: parseInt(r.getFullYear()),
3953
3970
  m: parseInt(r.getMonth()) + 1
@@ -4140,7 +4157,7 @@ function On({
4140
4157
  onPaste: g,
4141
4158
  onInput: m,
4142
4159
  onKeyDown: x,
4143
- onBlur: ve.Blur,
4160
+ onBlur: pe.Blur,
4144
4161
  contentEditable: l && _ ? "plaintext-only" : "false",
4145
4162
  ...C,
4146
4163
  suppressContentEditableWarning: !0,
@@ -5667,7 +5684,7 @@ function Dt({
5667
5684
  we.setListener(
5668
5685
  "form",
5669
5686
  /* @__PURE__ */ a.jsx(
5670
- Ho,
5687
+ qo,
5671
5688
  {
5672
5689
  parent: N,
5673
5690
  onValue: C,
@@ -5684,7 +5701,7 @@ function Dt({
5684
5701
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5685
5702
  ] });
5686
5703
  }
5687
- const Ho = ({ onValue: e, parent: t, view: n, options: r }) => {
5704
+ const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5688
5705
  let [s, i] = h.useState(!0), c = () => {
5689
5706
  i(!1);
5690
5707
  }, l = (u) => {
@@ -5736,7 +5753,7 @@ function Mt(e) {
5736
5753
  we.setListener(
5737
5754
  "form",
5738
5755
  /* @__PURE__ */ a.jsx(
5739
- qo,
5756
+ Jo,
5740
5757
  {
5741
5758
  parent: v,
5742
5759
  onValue: _,
@@ -5768,7 +5785,7 @@ function Mt(e) {
5768
5785
  }
5769
5786
  );
5770
5787
  }
5771
- const qo = ({ onValue: e, parent: t, view: n, options: r }) => {
5788
+ const Jo = ({ onValue: e, parent: t, view: n, options: r }) => {
5772
5789
  let [s, i] = h.useState(!0), c = () => {
5773
5790
  i(!1);
5774
5791
  }, l = (m) => {
@@ -6016,7 +6033,7 @@ function zn(e) {
6016
6033
  we.setListener(
6017
6034
  "form",
6018
6035
  /* @__PURE__ */ a.jsx(
6019
- Jo,
6036
+ Xo,
6020
6037
  {
6021
6038
  position: { x, y: g },
6022
6039
  onSave: l,
@@ -6053,7 +6070,7 @@ function zn(e) {
6053
6070
  }
6054
6071
  ) });
6055
6072
  }
6056
- const Jo = (e) => {
6073
+ const Xo = (e) => {
6057
6074
  let t = e.date.split(":"), n = {
6058
6075
  h: G.Number(2, t[0]),
6059
6076
  m: G.Number(2, t[1])
@@ -6170,7 +6187,7 @@ function Gn({
6170
6187
  ] });
6171
6188
  }
6172
6189
  const be = {};
6173
- function Xo(e) {
6190
+ function Qo(e) {
6174
6191
  const [t, n] = h.useState({}), r = h.useRef(e);
6175
6192
  return be.u = (s) => {
6176
6193
  r.current = { ...r.current, [s.name]: s.value };
@@ -6178,13 +6195,13 @@ function Xo(e) {
6178
6195
  n(Date.now());
6179
6196
  }, r.current;
6180
6197
  }
6181
- function Qo(e) {
6198
+ function el(e) {
6182
6199
  be.u(e), e.reload && be.r();
6183
6200
  }
6184
- function el() {
6201
+ function tl() {
6185
6202
  be.r && be.r();
6186
6203
  }
6187
- const Gl = {
6204
+ const Kl = {
6188
6205
  Color: $n,
6189
6206
  Date: Et,
6190
6207
  Code: Ln,
@@ -6210,10 +6227,10 @@ const Gl = {
6210
6227
  Users: Mt,
6211
6228
  String: $e,
6212
6229
  Form: Ct,
6213
- runReload: el,
6214
- useData: Xo,
6215
- setValue: Qo
6216
- }, Kl = {
6230
+ runReload: tl,
6231
+ useData: Qo,
6232
+ setValue: el
6233
+ }, Wl = {
6217
6234
  Color: $n,
6218
6235
  Date: Et,
6219
6236
  Code: Ln,
@@ -6238,12 +6255,12 @@ const Gl = {
6238
6255
  Time: zn,
6239
6256
  Users: Mt,
6240
6257
  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
6258
+ }, nl = "_spinner_1ul0m_1", al = "_l_1ul0m_75", rl = "_loadingB_1ul0m_1", Kn = {
6259
+ spinner: nl,
6260
+ l: al,
6261
+ loadingB: rl
6245
6262
  };
6246
- function rl() {
6263
+ function sl() {
6247
6264
  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
6265
  "path",
6249
6266
  {
@@ -6252,18 +6269,18 @@ function rl() {
6252
6269
  }
6253
6270
  ) }) });
6254
6271
  }
6255
- function sl() {
6272
+ function il() {
6256
6273
  return /* @__PURE__ */ a.jsxs("div", { className: Kn.l, children: [
6257
6274
  /* @__PURE__ */ a.jsx("i", {}),
6258
6275
  /* @__PURE__ */ a.jsx("i", {}),
6259
6276
  /* @__PURE__ */ a.jsx("i", {})
6260
6277
  ] });
6261
6278
  }
6262
- const Wl = { Spinner: rl, Inline: sl }, il = "_s_t9swc_1", ol = {
6263
- s: il
6279
+ const Vl = { Spinner: sl, Inline: il }, ol = "_s_t9swc_1", ll = {
6280
+ s: ol
6264
6281
  };
6265
6282
  let Ft;
6266
- function ll() {
6283
+ function cl() {
6267
6284
  let e = (s) => {
6268
6285
  Ft(s.target.textContent);
6269
6286
  }, t = (s) => {
@@ -6278,7 +6295,7 @@ function ll() {
6278
6295
  return r.placeholder = "Что искать?", /* @__PURE__ */ a.jsx(
6279
6296
  "div",
6280
6297
  {
6281
- className: ol.s,
6298
+ className: ll.s,
6282
6299
  onPaste: n,
6283
6300
  onInput: e,
6284
6301
  onKeyDown: t,
@@ -6288,7 +6305,7 @@ function ll() {
6288
6305
  }
6289
6306
  );
6290
6307
  }
6291
- function cl(e, t, n) {
6308
+ function dl(e, t, n) {
6292
6309
  let r = [], s = 1, i = 0, c = {}, l = 50;
6293
6310
  return c[s] = [], e.forEach((_) => {
6294
6311
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6296,17 +6313,17 @@ function cl(e, t, n) {
6296
6313
  i++, i <= l || (s++, i = 1, c[s] = []), c[s].push(n[_]);
6297
6314
  }), c;
6298
6315
  }
6299
- function dl(e) {
6316
+ function _l(e) {
6300
6317
  Ft = e;
6301
6318
  }
6302
- function _l(e) {
6319
+ function ul(e) {
6303
6320
  Ft = e;
6304
6321
  }
6305
- const Vl = { Field: ll, Run: cl, Get: dl, useValue: _l }, ul = "_f_q3r0i_1", ml = {
6306
- f: ul
6322
+ const Ul = { Field: cl, Run: dl, Get: _l, useValue: ul }, ml = "_f_q3r0i_1", fl = {
6323
+ f: ml
6307
6324
  };
6308
6325
  let ne = {};
6309
- function fl(e, t) {
6326
+ function hl(e, t) {
6310
6327
  switch (t.type) {
6311
6328
  case "open":
6312
6329
  return {
@@ -6356,8 +6373,8 @@ function fl(e, t) {
6356
6373
  throw new Error();
6357
6374
  }
6358
6375
  }
6359
- function hl() {
6360
- const [e, t] = h.useReducer(fl, {
6376
+ function xl() {
6377
+ const [e, t] = h.useReducer(hl, {
6361
6378
  open: !1,
6362
6379
  view: null,
6363
6380
  data: {},
@@ -6375,7 +6392,7 @@ function hl() {
6375
6392
  /* @__PURE__ */ a.jsxs(
6376
6393
  "div",
6377
6394
  {
6378
- className: ml.f,
6395
+ className: fl.f,
6379
6396
  onClick: () => {
6380
6397
  t({ type: "open", open: !0 });
6381
6398
  },
@@ -6400,7 +6417,7 @@ function hl() {
6400
6417
  ),
6401
6418
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
6402
6419
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
6403
- Cl,
6420
+ kl,
6404
6421
  {
6405
6422
  data: n,
6406
6423
  dispatch: t,
@@ -6422,16 +6439,16 @@ function hl() {
6422
6439
  ] }) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6423
6440
  ] });
6424
6441
  }
6425
- function xl(e) {
6442
+ function gl(e) {
6426
6443
  ne.get = e;
6427
6444
  }
6428
- function gl(e) {
6445
+ function vl(e) {
6429
6446
  ne.set !== void 0 && ne.set(e);
6430
6447
  }
6431
- function vl(e) {
6448
+ function pl(e) {
6432
6449
  ne.reset !== void 0 && ne.reset(e);
6433
6450
  }
6434
- function pl(e, t, n, r) {
6451
+ function Cl(e, t, n, r) {
6435
6452
  let s = [], i = 1, c = 0, l = {}, _ = 50;
6436
6453
  return l[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6437
6454
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
@@ -6446,7 +6463,7 @@ function pl(e, t, n, r) {
6446
6463
  function Wn(e) {
6447
6464
  ne.count(e);
6448
6465
  }
6449
- function Cl({ data: e, state: t, dispatch: n }) {
6466
+ function kl({ data: e, state: t, dispatch: n }) {
6450
6467
  let r = () => {
6451
6468
  n({ type: "view", view: e });
6452
6469
  }, s = () => {
@@ -6469,7 +6486,7 @@ function Cl({ data: e, state: t, dispatch: n }) {
6469
6486
  ) : ""
6470
6487
  ] }),
6471
6488
  /* @__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,
6489
+ yl,
6473
6490
  {
6474
6491
  data: t.data[e].list[i],
6475
6492
  head: e,
@@ -6481,7 +6498,7 @@ function Cl({ data: e, state: t, dispatch: n }) {
6481
6498
  )) })
6482
6499
  ] });
6483
6500
  }
6484
- function kl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6501
+ function yl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6485
6502
  if (s !== "999" && e.count === void 0)
6486
6503
  return "";
6487
6504
  const i = () => {
@@ -6500,11 +6517,11 @@ function kl({ data: e, head: t, state: n, dispatch: r, type: s }) {
6500
6517
  }
6501
6518
  );
6502
6519
  }
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
6520
+ 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 = {
6521
+ p: jl,
6522
+ l: bl
6506
6523
  };
6507
- function bl(e) {
6524
+ function wl(e) {
6508
6525
  let t = 3, n = e.page, r = e.count, s = [], i = () => {
6509
6526
  s.push({ page: 1 }), s.push({ text: "..." });
6510
6527
  }, c = () => {
@@ -6522,7 +6539,7 @@ function bl(e) {
6522
6539
  /* @__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
6540
  ] });
6524
6541
  }
6525
- function wl(e, t) {
6542
+ function Sl(e, t) {
6526
6543
  switch (t.type) {
6527
6544
  case "load":
6528
6545
  return {
@@ -6544,7 +6561,7 @@ function wl(e, t) {
6544
6561
  }
6545
6562
  }
6546
6563
  function Un({ load: e, list: t, item: n }) {
6547
- const r = h.useRef(null), [s, i] = h.useReducer(wl, {
6564
+ const r = h.useRef(null), [s, i] = h.useReducer(Sl, {
6548
6565
  load: !1,
6549
6566
  list: [],
6550
6567
  data: {},
@@ -6570,7 +6587,7 @@ function Un({ load: e, list: t, item: n }) {
6570
6587
  /* @__PURE__ */ a.jsx("i", {})
6571
6588
  ] }) }) }),
6572
6589
  s.load && s.list !== void 0 ? /* @__PURE__ */ a.jsx(
6573
- bl,
6590
+ wl,
6574
6591
  {
6575
6592
  page: s.page,
6576
6593
  count: s.size,
@@ -6579,15 +6596,15 @@ function Un({ load: e, list: t, item: n }) {
6579
6596
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
6580
6597
  ] });
6581
6598
  }
6582
- const Hl = { Pagination: Un };
6583
- function Sl({ head: e, load: t, list: n, item: r }) {
6599
+ const ql = { Pagination: Un };
6600
+ function El({ head: e, load: t, list: n, item: r }) {
6584
6601
  const s = e;
6585
6602
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6586
6603
  /* @__PURE__ */ a.jsx(s, {}),
6587
6604
  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
6605
  ] });
6589
6606
  }
6590
- function El(e, t) {
6607
+ function Rl(e, t) {
6591
6608
  switch (t.type) {
6592
6609
  case "load":
6593
6610
  return {
@@ -6629,50 +6646,50 @@ function El(e, t) {
6629
6646
  }
6630
6647
  }
6631
6648
  const kt = {};
6632
- function Rl(e) {
6649
+ function Nl(e) {
6633
6650
  kt.get = e;
6634
6651
  }
6635
- function Nl(e) {
6652
+ function Tl(e) {
6636
6653
  kt.get && kt.get(e);
6637
6654
  }
6638
- const ql = { View: Sl, Reducer: El, useValue: Rl, setValue: Nl }, Jl = { Get: ts }, Xl = { Open: Li };
6655
+ const Jl = { View: El, Reducer: Rl, useValue: Nl, setValue: Tl }, Xl = { Get: ts }, Ql = { Open: $i };
6639
6656
  export {
6640
- oo as Action,
6641
- Ll as Alert,
6657
+ lo as Action,
6658
+ $l as Alert,
6642
6659
  nn as Api,
6643
- Bl as Badge,
6644
- Fl as Bookmarks,
6645
- Dl as Browser,
6660
+ Ol as Badge,
6661
+ Ll as Bookmarks,
6662
+ Ml as Browser,
6646
6663
  Xs as Button,
6647
- Jl as Company,
6664
+ Xl as Company,
6648
6665
  un as Component,
6649
- Ol as DataBase,
6666
+ Al as DataBase,
6650
6667
  we as Event,
6651
6668
  we as Events,
6652
- zl as Files,
6653
- Ul as Filter,
6654
- Gl as Form,
6669
+ Gl as Files,
6670
+ Yl as Filter,
6671
+ Kl as Form,
6655
6672
  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,
6673
+ Zl as HotKey,
6674
+ Pl as Icon,
6675
+ Ui as Init,
6676
+ Wl as Input,
6677
+ Jl as List,
6678
+ Vl as Loading,
6662
6679
  wt as Modal,
6663
6680
  Le as Notice,
6664
- Yl as Notifications,
6665
- Hl as Pagination,
6666
- Xl as Phone,
6681
+ Hl as Notifications,
6682
+ ql as Pagination,
6683
+ Ql as Phone,
6667
6684
  Ue as Router,
6668
- Zl as Scrolling,
6669
- Vl as Search,
6670
- Ml as Setting,
6685
+ zl as Scrolling,
6686
+ Ul as Search,
6687
+ Fl as Setting,
6671
6688
  bt as Sistym,
6672
6689
  ce as Socket,
6673
6690
  se as Store,
6674
- Xi as Tabs,
6675
- Pl as Triage,
6691
+ Qi as Tabs,
6692
+ Bl as Triage,
6676
6693
  St as User,
6677
6694
  O as WebRTC
6678
6695
  };