elcrm 0.8.21 → 0.8.22

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
@@ -71,8 +71,8 @@ function Pa() {
71
71
  };
72
72
  return ee.page = a, [e];
73
73
  }
74
- function Oa(e) {
75
- w.page = e, sessionStorage.setItem("f", M.enCode(w)), ee.page(e);
74
+ function Oa(e, t) {
75
+ w.page = e, sessionStorage.setItem("f", M.enCode(w)), !(t !== void 0 && !t) && ee.page(e);
76
76
  }
77
77
  function fn() {
78
78
  return w.page;
@@ -87,7 +87,7 @@ function Za() {
87
87
  return ee.module = a, [e];
88
88
  }
89
89
  function za(e, t) {
90
- w.module = e, sessionStorage.setItem("f", M.enCode(w)), t !== "false" && ee.module(e);
90
+ w.module = e, sessionStorage.setItem("f", M.enCode(w)), !(t !== void 0 && !t) && ee.module(e);
91
91
  }
92
92
  function hn() {
93
93
  return w.module;
@@ -2027,7 +2027,11 @@ function Is(e, t) {
2027
2027
  return a[s] !== void 0 || (a[s] = {}), a[s][r.id] = r, a;
2028
2028
  }, {});
2029
2029
  }
2030
+ function Ds(e) {
2031
+ return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
2032
+ }
2030
2033
  const K = {
2034
+ Age: Ds,
2031
2035
  Date: gs,
2032
2036
  MoneyString: vs,
2033
2037
  DateSort: ps,
@@ -2044,60 +2048,60 @@ const K = {
2044
2048
  Select: Ts,
2045
2049
  ObjectByArray: Is
2046
2050
  };
2047
- function Ds({ children: e }) {
2051
+ function Ms({ children: e }) {
2048
2052
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2049
2053
  }
2050
- const Ms = "_white_11p39_14", Fs = "_black_11p39_26", Ls = "_shake_11p39_1", $s = "_modal_11p39_73", Bs = "_o_11p39_83", Ps = "_w_11p39_14", Os = "_h_11p39_107", As = "_l_11p39_121", Zs = "_t_11p39_159", zs = "_m_11p39_73", Gs = "_x_11p39_167", Ws = "_s_11p39_177", Ks = "_c_11p39_182", Us = "_f_11p39_187", Vs = "_btn_11p39_230", Ys = "_g_11p39_243", Hs = "_confirm_11p39_322", qs = "_cancel_11p39_327", Js = "_disabled_11p39_332", Xs = "_active_11p39_389", Qs = "_coincidence_11p39_395", ei = "_sa_11p39_431", ti = "_ss_11p39_435", ni = "_sm_11p39_439", ai = "_sl_11p39_443", ri = "_sx_11p39_447", si = "_sf_11p39_451", se = {
2051
- white: Ms,
2052
- black: Fs,
2053
- shake: Ls,
2054
- modal: $s,
2055
- o: Bs,
2056
- w: Ps,
2057
- h: Os,
2058
- l: As,
2059
- t: Zs,
2060
- m: zs,
2061
- x: Gs,
2062
- s: Ws,
2063
- c: Ks,
2064
- f: Us,
2065
- btn: Vs,
2066
- g: Ys,
2054
+ const Fs = "_white_11p39_14", Ls = "_black_11p39_26", $s = "_shake_11p39_1", Bs = "_modal_11p39_73", Ps = "_o_11p39_83", Os = "_w_11p39_14", As = "_h_11p39_107", Zs = "_l_11p39_121", zs = "_t_11p39_159", Gs = "_m_11p39_73", Ws = "_x_11p39_167", Ks = "_s_11p39_177", Us = "_c_11p39_182", Vs = "_f_11p39_187", Ys = "_btn_11p39_230", Hs = "_g_11p39_243", qs = "_confirm_11p39_322", Js = "_cancel_11p39_327", Xs = "_disabled_11p39_332", Qs = "_active_11p39_389", ei = "_coincidence_11p39_395", ti = "_sa_11p39_431", ni = "_ss_11p39_435", ai = "_sm_11p39_439", ri = "_sl_11p39_443", si = "_sx_11p39_447", ii = "_sf_11p39_451", se = {
2055
+ white: Fs,
2056
+ black: Ls,
2057
+ shake: $s,
2058
+ modal: Bs,
2059
+ o: Ps,
2060
+ w: Os,
2061
+ h: As,
2062
+ l: Zs,
2063
+ t: zs,
2064
+ m: Gs,
2065
+ x: Ws,
2066
+ s: Ks,
2067
+ c: Us,
2068
+ f: Vs,
2069
+ btn: Ys,
2070
+ g: Hs,
2067
2071
  "size-a": "_size-a_11p39_296",
2068
2072
  "size-s": "_size-s_11p39_300",
2069
2073
  "size-m": "_size-m_11p39_304",
2070
2074
  "size-l": "_size-l_11p39_308",
2071
2075
  "size-x": "_size-x_11p39_312",
2072
2076
  "size-f": "_size-f_11p39_316",
2073
- confirm: Hs,
2074
- cancel: qs,
2075
- disabled: Js,
2077
+ confirm: qs,
2078
+ cancel: Js,
2079
+ disabled: Xs,
2076
2080
  await: "_await_11p39_339",
2077
- active: Xs,
2078
- coincidence: Qs,
2079
- sa: ei,
2080
- ss: ti,
2081
- sm: ni,
2082
- sl: ai,
2083
- sx: ri,
2084
- sf: si
2081
+ active: Qs,
2082
+ coincidence: ei,
2083
+ sa: ti,
2084
+ ss: ni,
2085
+ sm: ai,
2086
+ sl: ri,
2087
+ sx: si,
2088
+ sf: ii
2085
2089
  };
2086
- function ii({ children: e }) {
2090
+ function oi({ children: e }) {
2087
2091
  return /* @__PURE__ */ n.jsx("div", { className: se.s, children: e });
2088
2092
  }
2089
- function oi({ children: e, className: t }) {
2093
+ function li({ children: e, className: t }) {
2090
2094
  let a = {};
2091
2095
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2092
2096
  }
2093
- function li({ children: e }) {
2097
+ function ci({ children: e }) {
2094
2098
  return /* @__PURE__ */ n.jsx("div", { className: se.c, children: e });
2095
2099
  }
2096
- const ci = "_btn_1hz2s_6", di = "_confirm_1hz2s_19", sn = {
2097
- btn: ci,
2098
- confirm: di
2100
+ const di = "_btn_1hz2s_6", _i = "_confirm_1hz2s_19", sn = {
2101
+ btn: di,
2102
+ confirm: _i
2099
2103
  };
2100
- function _i({ onClick: e, onSend: t, label: a, onRef: r }) {
2104
+ function ui({ onClick: e, onSend: t, label: a, onRef: r }) {
2101
2105
  let [s, i] = h.useState(!1);
2102
2106
  const l = () => {
2103
2107
  if (e)
@@ -2115,7 +2119,7 @@ function _i({ onClick: e, onSend: t, label: a, onRef: r }) {
2115
2119
  );
2116
2120
  }
2117
2121
  let Ce = {};
2118
- function ui({ config: e }) {
2122
+ function mi({ config: e }) {
2119
2123
  let [t, a] = h.useState([]);
2120
2124
  return Ce.x = (r) => {
2121
2125
  r || a([]);
@@ -2123,7 +2127,7 @@ function ui({ config: e }) {
2123
2127
  a([...t, r]);
2124
2128
  }, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
2125
2129
  }
2126
- function mi({
2130
+ function fi({
2127
2131
  title: e,
2128
2132
  children: t,
2129
2133
  button: a,
@@ -2193,7 +2197,7 @@ function mi({
2193
2197
  )
2194
2198
  ] }),
2195
2199
  t,
2196
- a !== void 0 ? /* @__PURE__ */ n.jsx(_i, { label: a.label, onSend: d }) : ""
2200
+ a !== void 0 ? /* @__PURE__ */ n.jsx(ui, { label: a.label, onSend: d }) : ""
2197
2201
  ]
2198
2202
  }
2199
2203
  )
@@ -2201,13 +2205,13 @@ function mi({
2201
2205
  }
2202
2206
  ) : "" });
2203
2207
  }
2204
- function fi(e) {
2205
- Ce.add(/* @__PURE__ */ n.jsx(hi, { children: e }, String(Date.now())));
2208
+ function hi(e) {
2209
+ Ce.add(/* @__PURE__ */ n.jsx(xi, { children: e }, String(Date.now())));
2206
2210
  }
2207
- function hi({ children: e }) {
2211
+ function xi({ children: e }) {
2208
2212
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
2209
2213
  }
2210
- function xi(e) {
2214
+ function gi(e) {
2211
2215
  if (e.target.classList[0] !== "modal")
2212
2216
  return;
2213
2217
  let t = e.target.children[0];
@@ -2215,29 +2219,29 @@ function xi(e) {
2215
2219
  t.setAttribute("shake", !1);
2216
2220
  }, 1e3);
2217
2221
  }
2218
- function gi({ type: e, name: t, params: a }) {
2222
+ function pi({ type: e, name: t, params: a }) {
2219
2223
  let [r, s] = h.useState(null);
2220
2224
  return h.useEffect(() => {
2221
2225
  Ce.config(e, t, a, s);
2222
2226
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2223
2227
  }
2224
- function pi(e, t, a) {
2228
+ function vi(e, t, a) {
2225
2229
  Ce.config(e, t, a);
2226
2230
  }
2227
- function vi(e) {
2231
+ function Ci(e) {
2228
2232
  Ce.x(e);
2229
2233
  }
2230
2234
  const Et = {
2231
- List: Ds,
2232
- Scroll: ii,
2233
- Main: mi,
2234
- Add: fi,
2235
- Icon: gi,
2236
- Open: pi,
2237
- Shake: xi,
2238
- Form: oi,
2239
- Center: li,
2240
- Close: vi
2235
+ List: Ms,
2236
+ Scroll: oi,
2237
+ Main: fi,
2238
+ Add: hi,
2239
+ Icon: pi,
2240
+ Open: vi,
2241
+ Shake: gi,
2242
+ Form: li,
2243
+ Center: ci,
2244
+ Close: Ci
2241
2245
  };
2242
2246
  function wn({ text: e, type: t, button: a }) {
2243
2247
  let [r, s] = h.useState(!1), i = { active: t };
@@ -2271,22 +2275,22 @@ function wn({ text: e, type: t, button: a }) {
2271
2275
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
2272
2276
  ] });
2273
2277
  }
2274
- const Ci = "_h_1usnu_1", ki = "_g_1usnu_11", ji = "_hr_1usnu_16", yi = "_hl_1usnu_28", bi = "_t_1usnu_40", wi = "_s_1usnu_60", Si = "_u_1usnu_69", Ei = "_o_1usnu_76", Ni = "_l_1usnu_105", Ri = "_hh_1usnu_115", Ti = "_c_1usnu_128", Ii = "_loadingB_1usnu_1", Di = "_m_1usnu_180", Mi = "_ul_1usnu_196", Fi = "_f_1usnu_226", Q = {
2275
- h: Ci,
2276
- g: ki,
2277
- hr: ji,
2278
- hl: yi,
2279
- t: bi,
2280
- s: wi,
2281
- u: Si,
2282
- o: Ei,
2283
- l: Ni,
2284
- hh: Ri,
2285
- c: Ti,
2286
- loadingB: Ii,
2287
- m: Di,
2288
- ul: Mi,
2289
- f: Fi
2278
+ const ki = "_h_1usnu_1", ji = "_g_1usnu_11", yi = "_hr_1usnu_16", bi = "_hl_1usnu_28", wi = "_t_1usnu_40", Si = "_s_1usnu_60", Ei = "_u_1usnu_69", Ni = "_o_1usnu_76", Ri = "_l_1usnu_105", Ti = "_hh_1usnu_115", Ii = "_c_1usnu_128", Di = "_loadingB_1usnu_1", Mi = "_m_1usnu_180", Fi = "_ul_1usnu_196", Li = "_f_1usnu_226", Q = {
2279
+ h: ki,
2280
+ g: ji,
2281
+ hr: yi,
2282
+ hl: bi,
2283
+ t: wi,
2284
+ s: Si,
2285
+ u: Ei,
2286
+ o: Ni,
2287
+ l: Ri,
2288
+ hh: Ti,
2289
+ c: Ii,
2290
+ loadingB: Di,
2291
+ m: Mi,
2292
+ ul: Fi,
2293
+ f: Li
2290
2294
  }, on = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: Q.h, children: [
2291
2295
  /* @__PURE__ */ n.jsx("div", { className: Q.t, children: e }),
2292
2296
  t && /* @__PURE__ */ n.jsx("div", { className: Q.hl, children: t }),
@@ -2299,26 +2303,26 @@ const Ci = "_h_1usnu_1", ki = "_g_1usnu_11", ji = "_hr_1usnu_16", yi = "_hl_1usn
2299
2303
  function _n({ children: e }) {
2300
2304
  return /* @__PURE__ */ n.jsx("div", { className: Q.g, children: e });
2301
2305
  }
2302
- const Li = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [Q.o, t].join(" "), children: [
2306
+ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [Q.o, t].join(" "), children: [
2303
2307
  a && /* @__PURE__ */ n.jsx("div", { className: Q.hh, children: a }),
2304
2308
  e
2305
- ] }), $i = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.u, children: e }), Bi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.c, children: e }), Pi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.m, children: e }), un = {
2309
+ ] }), Bi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.u, children: e }), Pi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.c, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.m, children: e }), un = {
2306
2310
  Header: on,
2307
2311
  Section: cn,
2308
2312
  Group: _n,
2309
2313
  Form: dn,
2310
2314
  List: ln,
2311
2315
  A: wn,
2312
- U: $i,
2316
+ U: Bi,
2313
2317
  G: _n,
2314
- C: Bi,
2318
+ C: Pi,
2315
2319
  L: ln,
2316
- O: Li,
2320
+ O: $i,
2317
2321
  S: cn,
2318
2322
  H: on,
2319
- M: Pi,
2323
+ M: Oi,
2320
2324
  F: dn
2321
- }, Oi = (e, t) => {
2325
+ }, Ai = (e, t) => {
2322
2326
  switch (t.type) {
2323
2327
  case "load":
2324
2328
  return {
@@ -2379,14 +2383,14 @@ const Li = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2379
2383
  default:
2380
2384
  return e;
2381
2385
  }
2382
- }, Ai = () => ({
2386
+ }, Zi = () => ({
2383
2387
  load: !0,
2384
2388
  list: [],
2385
2389
  name: "Файлы",
2386
2390
  add: !1,
2387
2391
  search: !1,
2388
2392
  revers: !0
2389
- }), Zi = () => {
2393
+ }), zi = () => {
2390
2394
  let [e, t] = h.useState([]);
2391
2395
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2392
2396
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
@@ -2402,17 +2406,17 @@ const Li = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2402
2406
  ] }),
2403
2407
  /* @__PURE__ */ n.jsx("div", { className: "--list", children: e.map((a) => a) })
2404
2408
  ] }) : "" });
2405
- }, zi = ({
2409
+ }, Gi = ({
2406
2410
  id: e,
2407
2411
  name: t,
2408
2412
  listen: a,
2409
2413
  dir: r
2410
2414
  }) => {
2411
2415
  t = t || "Файлы";
2412
- const [s, i] = h.useReducer(Oi, {}, Ai), l = () => {
2416
+ const [s, i] = h.useReducer(Ai, {}, Zi), l = () => {
2413
2417
  Et.Add(
2414
2418
  /* @__PURE__ */ n.jsx(
2415
- Gi,
2419
+ Wi,
2416
2420
  {
2417
2421
  dir: r,
2418
2422
  dispatch: i,
@@ -2461,9 +2465,9 @@ const Li = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2461
2465
  /* @__PURE__ */ n.jsx("i", {}),
2462
2466
  /* @__PURE__ */ n.jsx("i", {}),
2463
2467
  /* @__PURE__ */ n.jsx("i", {})
2464
- ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((c, _) => /* @__PURE__ */ n.jsx(Wi, { dispatch: i, data: c }, _)) })
2468
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((c, _) => /* @__PURE__ */ n.jsx(Ki, { dispatch: i, data: c }, _)) })
2465
2469
  ] });
2466
- }, Gi = ({ id: e, dir: t, dispatch: a }) => {
2470
+ }, Wi = ({ id: e, dir: t, dispatch: a }) => {
2467
2471
  let [r, s] = h.useState(!0), i = h.useRef(null), l = (d) => {
2468
2472
  d.preventDefault(), d.stopPropagation();
2469
2473
  }, c = (d) => {
@@ -2512,7 +2516,7 @@ const Li = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2512
2516
  },
2513
2517
  (/* @__PURE__ */ new Date()).getTime()
2514
2518
  ) }) : "" });
2515
- }, Wi = ({ data: e, dispatch: t }) => {
2519
+ }, Ki = ({ data: e, dispatch: t }) => {
2516
2520
  let a = async () => {
2517
2521
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2518
2522
  headers: {
@@ -2564,7 +2568,7 @@ const Li = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2564
2568
  let Z = {};
2565
2569
  Z.list = dr();
2566
2570
  Z.active = null;
2567
- const Ki = () => {
2571
+ const Ui = () => {
2568
2572
  var s;
2569
2573
  let [e, t] = h.useState([]), [a, r] = h.useState(Nt.getSetting("s03"));
2570
2574
  return h.useEffect(() => {
@@ -2602,7 +2606,7 @@ const Ki = () => {
2602
2606
  "bookmarks",
2603
2607
  a === 1 && e.length !== 0 ? "bottom" : ""
2604
2608
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2605
- }, Ui = ({ id: e, type: t, name: a }) => {
2609
+ }, Vi = ({ id: e, type: t, name: a }) => {
2606
2610
  let r = t + "-" + e, [s, i] = h.useState(
2607
2611
  Z.list[r] !== void 0
2608
2612
  );
@@ -2630,7 +2634,7 @@ const Ki = () => {
2630
2634
  He.setId(e.id);
2631
2635
  };
2632
2636
  return /* @__PURE__ */ n.jsx("span", { onContextMenu: t, onClick: a, children: e.name });
2633
- }, Vi = (e) => {
2637
+ }, Yi = (e) => {
2634
2638
  Z.active(e);
2635
2639
  }, O = {}, pt = {}, b = {};
2636
2640
  b.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
@@ -2777,7 +2781,7 @@ O.Run = async (e) => {
2777
2781
  O[e.data.type] && O[e.data.type](e.data);
2778
2782
  };
2779
2783
  let Le = {};
2780
- function Yi() {
2784
+ function Hi() {
2781
2785
  let [e, t] = h.useState([]), a = h.useRef(null);
2782
2786
  return h.useEffect(() => {
2783
2787
  }, []), Le.set = (r) => {
@@ -2791,14 +2795,14 @@ function Yi() {
2791
2795
  /* @__PURE__ */ n.jsx("audio", { id: "audio", ref: a, autoPlay: !0, muted: !0 })
2792
2796
  ] });
2793
2797
  }
2794
- function Hi(e, t) {
2798
+ function qi(e, t) {
2795
2799
  let a = (/* @__PURE__ */ new Date()).getTime();
2796
2800
  Le.set({
2797
- item: /* @__PURE__ */ n.jsx(qi, { type: t, id: e }, a),
2801
+ item: /* @__PURE__ */ n.jsx(Ji, { type: t, id: e }, a),
2798
2802
  key: a
2799
2803
  });
2800
2804
  }
2801
- function qi({ id: e, type: t }) {
2805
+ function Ji({ id: e, type: t }) {
2802
2806
  const [a, r] = h.useState({}), [s, i] = h.useState(t);
2803
2807
  h.useEffect(() => {
2804
2808
  r(ie.getSelect("user")[e]);
@@ -2899,13 +2903,13 @@ function qi({ id: e, type: t }) {
2899
2903
  ] }) });
2900
2904
  }
2901
2905
  const vt = {};
2902
- function Ji(e) {
2906
+ function Xi(e) {
2903
2907
  vt.add(e);
2904
2908
  }
2905
- function Xi({ color: e, size: t, name: a }) {
2909
+ function Qi({ color: e, size: t, name: a }) {
2906
2910
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
2907
2911
  }
2908
- function Qi() {
2912
+ function eo() {
2909
2913
  let [e, t] = h.useState([]);
2910
2914
  if (vt.x = () => {
2911
2915
  t([]);
@@ -2927,14 +2931,14 @@ function Qi() {
2927
2931
  )) });
2928
2932
  }
2929
2933
  const Ct = {};
2930
- function eo(e, t) {
2934
+ function to(e, t) {
2931
2935
  Ct[e] = t;
2932
2936
  }
2933
- function to(e, t) {
2937
+ function no(e, t) {
2934
2938
  Ct[e] !== void 0 && Ct[e](t);
2935
2939
  }
2936
2940
  const me = {};
2937
- function no(e, t) {
2941
+ function ao(e, t) {
2938
2942
  const [a, r] = h.useState(t);
2939
2943
  return h.useEffect(() => {
2940
2944
  if (me[e])
@@ -2942,54 +2946,54 @@ function no(e, t) {
2942
2946
  me[e] = [r];
2943
2947
  }, []), [a];
2944
2948
  }
2945
- function ao(e, t) {
2949
+ function ro(e, t) {
2946
2950
  if (me[e])
2947
2951
  return me[e].push(t);
2948
2952
  me[e] = [t];
2949
2953
  }
2950
- function ro(e, t) {
2954
+ function so(e, t) {
2951
2955
  me[e] && me[e].forEach((a) => a(t));
2952
2956
  }
2953
- const Ee = { setListener: to, useListener: eo, setEmitter: ro, useEmitter: no, subEmitter: ao };
2954
- function so() {
2957
+ const Ee = { setListener: no, useListener: to, setEmitter: so, useEmitter: ao, subEmitter: ro };
2958
+ function io() {
2955
2959
  let [e, t] = h.useState([]);
2956
2960
  return Ee.useListener("form", (a) => {
2957
2961
  t([a]);
2958
2962
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
2959
2963
  }
2960
- const io = ({ children: e, config: t }) => (M.New(t.crypto), t.defaultModule && Ra(t.defaultModule), Ia(
2964
+ const oo = ({ children: e, config: t }) => (M.New(t.crypto), t.defaultModule && Ra(t.defaultModule), Ia(
2961
2965
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2962
- /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
2966
+ /* @__PURE__ */ n.jsx(mi, { config: t.modal }),
2963
2967
  /* @__PURE__ */ n.jsx(Br, {}),
2964
2968
  /* @__PURE__ */ n.jsx(Yr, {}),
2965
- /* @__PURE__ */ n.jsx(Zi, {}),
2966
- /* @__PURE__ */ n.jsx(Qi, {}),
2967
- /* @__PURE__ */ n.jsx(so, {}),
2968
- /* @__PURE__ */ n.jsx(Yi, {}),
2969
- /* @__PURE__ */ n.jsx(Ki, {}),
2969
+ /* @__PURE__ */ n.jsx(zi, {}),
2970
+ /* @__PURE__ */ n.jsx(eo, {}),
2971
+ /* @__PURE__ */ n.jsx(io, {}),
2972
+ /* @__PURE__ */ n.jsx(Hi, {}),
2973
+ /* @__PURE__ */ n.jsx(Ui, {}),
2970
2974
  e
2971
2975
  ] })
2972
- )), oo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), lo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
2976
+ )), lo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), co = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
2973
2977
  "xz",
2974
2978
  e
2975
- ] }), co = "_payment_1lxfv_1", _o = {
2976
- payment: co
2979
+ ] }), _o = "_payment_1lxfv_1", uo = {
2980
+ payment: _o
2977
2981
  };
2978
- function uo() {
2982
+ function mo() {
2979
2983
  let [e, t] = h.useState({});
2980
- return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: _o.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2984
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: uo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2981
2985
  }
2982
- const Vl = ({ children: e, ...t }) => {
2986
+ const Yl = ({ children: e, ...t }) => {
2983
2987
  let a = {};
2984
2988
  return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
2985
- /* @__PURE__ */ n.jsx(uo, {}),
2986
- /* @__PURE__ */ n.jsx(oo, {}),
2989
+ /* @__PURE__ */ n.jsx(mo, {}),
2987
2990
  /* @__PURE__ */ n.jsx(lo, {}),
2988
- /* @__PURE__ */ n.jsx(io, { config: { modal: {}, crypto: a } }),
2991
+ /* @__PURE__ */ n.jsx(co, {}),
2992
+ /* @__PURE__ */ n.jsx(oo, { config: { modal: {}, crypto: a } }),
2989
2993
  e
2990
2994
  ] });
2991
- }, mo = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
2992
- fo,
2995
+ }, fo = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
2996
+ ho,
2993
2997
  {
2994
2998
  onClick: t,
2995
2999
  active: a,
@@ -2997,9 +3001,9 @@ const Vl = ({ children: e, ...t }) => {
2997
3001
  link: i.link
2998
3002
  },
2999
3003
  i.link
3000
- )) }) }), fo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3001
- mo.defaultProps = { size: "M", view: "H" };
3002
- const ho = ({
3004
+ )) }) }), ho = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3005
+ fo.defaultProps = { size: "M", view: "H" };
3006
+ const xo = ({
3003
3007
  title: e = "",
3004
3008
  button: t,
3005
3009
  description: a = "",
@@ -3019,9 +3023,9 @@ const ho = ({
3019
3023
  ] }),
3020
3024
  /* @__PURE__ */ n.jsx("ul", { children: r }),
3021
3025
  a && /* @__PURE__ */ n.jsx("article", { children: a })
3022
- ] }), xo = "_setting_dva4m_2", go = {
3023
- setting: xo
3024
- }, po = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: go.setting, children: e }), vo = ({ label: e, children: t }) => {
3026
+ ] }), go = "_setting_dva4m_2", po = {
3027
+ setting: go
3028
+ }, vo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: po.setting, children: e }), Co = ({ label: e, children: t }) => {
3025
3029
  let [a, r] = h.useState(!1);
3026
3030
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3027
3031
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -3030,10 +3034,10 @@ const ho = ({
3030
3034
  ] }),
3031
3035
  a && /* @__PURE__ */ n.jsx("div", { children: t })
3032
3036
  ] });
3033
- }, Co = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3037
+ }, ko = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3034
3038
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3035
3039
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
3036
- ] }) }), ko = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
3040
+ ] }) }), jo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
3037
3041
  "div",
3038
3042
  {
3039
3043
  role: "switch",
@@ -3042,25 +3046,25 @@ const ho = ({
3042
3046
  },
3043
3047
  "aria-checked": e ? "true" : "false"
3044
3048
  }
3045
- )), jo = { Switch: ko }, yo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3049
+ )), yo = { Switch: jo }, bo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3046
3050
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3047
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(jo.Switch, { onClick: t, active: a }) })
3048
- ] }) }), bo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3051
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(yo.Switch, { onClick: t, active: a }) })
3052
+ ] }) }), wo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3049
3053
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3050
3054
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3051
- ] }) }), wo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3055
+ ] }) }), So = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3052
3056
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3053
3057
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3054
- ] }) }), So = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3058
+ ] }) }), Eo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3055
3059
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3056
3060
  /* @__PURE__ */ n.jsx("dd", { children: t })
3057
- ] }) }), Eo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3061
+ ] }) }), No = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3058
3062
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3059
3063
  /* @__PURE__ */ n.jsx("dd", { children: t })
3060
- ] }) }), No = { Accordion: vo, Button: Co, Switch: yo, Info: wo, Select: bo, Component: So, Node: Eo };
3064
+ ] }) }), Ro = { Accordion: Co, Button: ko, Switch: bo, Info: So, Select: wo, Component: Eo, Node: No };
3061
3065
  function Sn({ list: e, onClick: t, active: a, size: r, view: s }) {
3062
3066
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3063
- Ro,
3067
+ To,
3064
3068
  {
3065
3069
  onClick: t,
3066
3070
  active: a,
@@ -3070,10 +3074,10 @@ function Sn({ list: e, onClick: t, active: a, size: r, view: s }) {
3070
3074
  i.link
3071
3075
  )) }) });
3072
3076
  }
3073
- const Ro = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3077
+ const To = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3074
3078
  Sn.defaultProps = { size: "M", view: "H" };
3075
- const Yl = { Section: ho, Main: po, Item: No, Tabs: Sn }, Hl = { Icon: Ui, Item: gt, Active: Vi }, ql = { Send: qr, Line: wn };
3076
- function To() {
3079
+ const Hl = { Section: xo, Main: vo, Item: Ro, Tabs: Sn }, ql = { Icon: Vi, Item: gt, Active: Yi }, Jl = { Send: qr, Line: wn };
3080
+ function Io() {
3077
3081
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
3078
3082
  "path",
3079
3083
  {
@@ -3082,11 +3086,11 @@ function To() {
3082
3086
  }
3083
3087
  ) });
3084
3088
  }
3085
- const Jl = { Logo: To, Sprite: Ji, Symbol: Xi }, Io = "_sort_1yrvt_1", Do = {
3086
- sort: Io
3089
+ const Xl = { Logo: Io, Sprite: Xi, Symbol: Qi }, Do = "_sort_1yrvt_1", Mo = {
3090
+ sort: Do
3087
3091
  };
3088
3092
  let Qe = {};
3089
- function Mo(e, t) {
3093
+ function Fo(e, t) {
3090
3094
  switch (t.type) {
3091
3095
  case "active":
3092
3096
  let a = "<";
@@ -3099,12 +3103,12 @@ function Mo(e, t) {
3099
3103
  throw new Error();
3100
3104
  }
3101
3105
  }
3102
- function Fo() {
3106
+ function Lo() {
3103
3107
  const [e, t] = h.useReducer(
3104
- Mo,
3108
+ Fo,
3105
3109
  ft() === void 0 ? { active: 1, sort: "<" } : ft()
3106
3110
  );
3107
- return /* @__PURE__ */ n.jsxs("div", { className: Do.sort, children: [
3111
+ return /* @__PURE__ */ n.jsxs("div", { className: Mo.sort, children: [
3108
3112
  /* @__PURE__ */ n.jsx(
3109
3113
  "i",
3110
3114
  {
@@ -3131,13 +3135,13 @@ function Fo() {
3131
3135
  )
3132
3136
  ] });
3133
3137
  }
3134
- function Lo(e) {
3138
+ function $o(e) {
3135
3139
  Qe.get = e;
3136
3140
  }
3137
- function $o(e) {
3141
+ function Bo(e) {
3138
3142
  Qe.set(e);
3139
3143
  }
3140
- function Bo(e, t, a) {
3144
+ function Po(e, t, a) {
3141
3145
  let r = 1, s = 0, i = {}, l = 50;
3142
3146
  i[r] = [];
3143
3147
  let c = {}, _ = "s1a";
@@ -3156,11 +3160,11 @@ function Bo(e, t, a) {
3156
3160
  s++, s <= l || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3157
3161
  }), { data: i };
3158
3162
  }
3159
- function Po(e) {
3163
+ function Oo(e) {
3160
3164
  Qe.count(e);
3161
3165
  }
3162
- const Xl = { Init: Fo, useValue: Lo, Set: $o, Run: Bo, Count: Po }, qe = {}, En = {};
3163
- function Oo(e) {
3166
+ const Ql = { Init: Lo, useValue: $o, Set: Bo, Run: Po, Count: Oo }, qe = {}, En = {};
3167
+ function Ao(e) {
3164
3168
  const [t, a] = h.useState({}), r = async (s) => {
3165
3169
  a(
3166
3170
  Object.keys(qe).reduce((i, l) => (i ? i[l] = qe[l].all : i = {}, i), {})
@@ -3170,15 +3174,15 @@ function Oo(e) {
3170
3174
  e.forEach((s) => qe[s] = { all: 0 }), En.menu = r, r();
3171
3175
  }, [e]), t;
3172
3176
  }
3173
- function Ao(e, t) {
3177
+ function Zo(e, t) {
3174
3178
  switch (typeof t) {
3175
3179
  case "number":
3176
3180
  qe[e].all += t, En.menu();
3177
3181
  break;
3178
3182
  }
3179
3183
  }
3180
- const Ql = { useMenu: Oo, setUpdate: Ao };
3181
- class Zo {
3184
+ const ec = { useMenu: Ao, setUpdate: Zo };
3185
+ class zo {
3182
3186
  constructor(t = "el", a = "db") {
3183
3187
  dt(this, "storeName");
3184
3188
  dt(this, "_dbp");
@@ -3199,7 +3203,7 @@ class Zo {
3199
3203
  }
3200
3204
  }
3201
3205
  let _t, W = {};
3202
- const Ne = () => (_t || (_t = new Zo()), _t), xe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
3206
+ const Ne = () => (_t || (_t = new zo()), _t), xe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
3203
3207
  W[e] = t, r.put(M.enCode(t), e);
3204
3208
  }), de = (e, t = Ne()) => W[e] === void 0 ? new Promise((a, r) => {
3205
3209
  let s;
@@ -3212,18 +3216,18 @@ const Ne = () => (_t || (_t = new Zo()), _t), xe = (e, t, a = Ne()) => a._withID
3212
3216
  } else
3213
3217
  a({});
3214
3218
  });
3215
- }) : W[e], zo = (e, t = Ne()) => t._withIDBStore("readwrite", (a) => {
3219
+ }) : W[e], Go = (e, t = Ne()) => t._withIDBStore("readwrite", (a) => {
3216
3220
  a.delete(e);
3217
3221
  }), kt = (e = Ne()) => e._withIDBStore("readwrite", (t) => {
3218
3222
  t.clear();
3219
- }), Go = (e = Ne()) => {
3223
+ }), Wo = (e = Ne()) => {
3220
3224
  const t = [];
3221
3225
  return e._withIDBStore("readonly", (a) => {
3222
3226
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
3223
3227
  this.result && (t.push(this.result.key), this.result.continue());
3224
3228
  };
3225
3229
  }).then(() => t);
3226
- }, Wo = (e, t, a = [], r = {}) => {
3230
+ }, Ko = (e, t, a = [], r = {}) => {
3227
3231
  let s = a.length !== 0, i = [], l = r.sort, c = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], f = {};
3228
3232
  f[u] = [];
3229
3233
  let g = (p) => {
@@ -3247,7 +3251,7 @@ const Ne = () => (_t || (_t = new Zo()), _t), xe = (e, t, a = Ne()) => a._withID
3247
3251
  }), m.forEach((p) => {
3248
3252
  p === void 0 ? (kt(), location.reload()) : (s && g(p.id), c && v(p.id));
3249
3253
  }), { list: f, search: i, filter: r };
3250
- }, Ko = (e, t, a, r = Ne()) => {
3254
+ }, Uo = (e, t, a, r = Ne()) => {
3251
3255
  if (W[e] === void 0)
3252
3256
  return new Promise((s, i) => {
3253
3257
  let l;
@@ -3268,45 +3272,45 @@ const Ne = () => (_t || (_t = new Zo()), _t), xe = (e, t, a = Ne()) => a._withID
3268
3272
  return W[e][t.id] = { ...W[e][t.id], ...t.data }, a !== void 0 && W[a] !== void 0 ? W[a][t.id] !== void 0 && (W[a][t.id] = t.data.eDate) : W[a] = [], delete W[e][t.id].$_item, delete W[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3269
3273
  s.put(M.enCode(W[e]), e), a !== void 0 && s.put(M.enCode(W[a]), a);
3270
3274
  });
3271
- }, Uo = async (e, t, a, r) => {
3275
+ }, Vo = async (e, t, a, r) => {
3272
3276
  let s, i;
3273
3277
  i = await de(a), i[e.id] = e, await xe(a, i), s !== null && (s = await de(t), s[e.id] = e.eDate, await xe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3274
- }, Vo = async (e, t, a, r) => {
3278
+ }, Yo = async (e, t, a, r) => {
3275
3279
  let s = await de(t), i = await de(a);
3276
3280
  for (let l in e)
3277
3281
  i[l] = e[l], s[l] = e[l].eDate;
3278
3282
  await xe(t, s), await xe(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
3279
- }, Yo = async (e, t, a, r) => {
3283
+ }, Ho = async (e, t, a, r) => {
3280
3284
  let s = await de(t), i = await de(a);
3281
3285
  e.forEach((l) => delete s[l]), await xe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3282
- }, Ho = async (e, t, a) => {
3286
+ }, qo = async (e, t, a) => {
3283
3287
  let r = await de(t);
3284
3288
  e.forEach((s) => delete r[s]), await xe(t, r);
3285
- }, qo = async (e, t, a) => {
3289
+ }, Jo = async (e, t, a) => {
3286
3290
  let r = await de(t);
3287
3291
  e.forEach((s) => r[s.id] = s.eDate), await xe(t, r);
3288
- }, Jo = async (e, t, a) => {
3292
+ }, Xo = async (e, t, a) => {
3289
3293
  let r = await de(t);
3290
3294
  if (a !== void 0)
3291
3295
  a({ type: "load", base: r });
3292
3296
  else
3293
3297
  return r[e];
3294
- }, Xo = (e) => W[e], ec = {
3295
- id: Jo,
3298
+ }, Qo = (e) => W[e], tc = {
3299
+ id: Xo,
3296
3300
  get: de,
3297
3301
  set: xe,
3298
- add: Uo,
3299
- del: zo,
3300
- upd: Ko,
3301
- key: Go,
3302
- load: Xo,
3303
- split: Wo,
3302
+ add: Vo,
3303
+ del: Go,
3304
+ upd: Uo,
3305
+ key: Wo,
3306
+ load: Qo,
3307
+ split: Ko,
3304
3308
  clear: kt,
3305
- updAll: Vo,
3306
- delAll: Yo,
3307
- delList: Ho,
3308
- addList: qo
3309
- }, Qo = (e, t) => {
3309
+ updAll: Yo,
3310
+ delAll: Ho,
3311
+ delList: qo,
3312
+ addList: Jo
3313
+ }, el = (e, t) => {
3310
3314
  const a = [];
3311
3315
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3312
3316
  a.push(r.keyCode);
@@ -3317,15 +3321,15 @@ const Ne = () => (_t || (_t = new Zo()), _t), xe = (e, t, a = Ne()) => a._withID
3317
3321
  }, document.onkeyup = function(r) {
3318
3322
  a.length = 0;
3319
3323
  };
3320
- }, tc = { useKey: Qo }, el = "_s_18bde_1", tl = "_loadingB_18bde_1", nl = "_ul_18bde_31", al = {
3321
- s: el,
3322
- loadingB: tl,
3323
- ul: nl
3324
+ }, nc = { useKey: el }, tl = "_s_18bde_1", nl = "_loadingB_18bde_1", al = "_ul_18bde_31", rl = {
3325
+ s: tl,
3326
+ loadingB: nl,
3327
+ ul: al
3324
3328
  };
3325
3329
  function Nn({ children: e }) {
3326
3330
  return /* @__PURE__ */ n.jsx("ul", { className: Q.ul, children: e });
3327
3331
  }
3328
- function rl(e, t) {
3332
+ function sl(e, t) {
3329
3333
  switch (t.type) {
3330
3334
  case "load":
3331
3335
  return {
@@ -3359,7 +3363,7 @@ function rl(e, t) {
3359
3363
  }
3360
3364
  }
3361
3365
  function Rn(e) {
3362
- const t = h.useRef(null), [a, r] = h.useReducer(rl, {
3366
+ const t = h.useRef(null), [a, r] = h.useReducer(sl, {
3363
3367
  load: !1,
3364
3368
  list: [],
3365
3369
  data: {},
@@ -3374,13 +3378,13 @@ function Rn(e) {
3374
3378
  let s = () => {
3375
3379
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !a.wait && r({ type: "update" });
3376
3380
  };
3377
- return /* @__PURE__ */ n.jsx("div", { className: al.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3381
+ return /* @__PURE__ */ n.jsx("div", { className: rl.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3378
3382
  /* @__PURE__ */ n.jsx("i", {}),
3379
3383
  /* @__PURE__ */ n.jsx("i", {}),
3380
3384
  /* @__PURE__ */ n.jsx("i", {})
3381
3385
  ] }) }) });
3382
3386
  }
3383
- const nc = { Scrolling: Rn }, ac = { Widget: zi }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3387
+ const ac = { Scrolling: Rn }, rc = { Widget: Gi }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3384
3388
  "div",
3385
3389
  {
3386
3390
  role: "switch",
@@ -3760,9 +3764,9 @@ function $n(e) {
3760
3764
  }
3761
3765
  ) });
3762
3766
  }
3763
- const sl = "_o_1kqkq_1", il = "_c_1kqkq_11", we = {
3764
- o: sl,
3765
- c: il
3767
+ const il = "_o_1kqkq_1", ol = "_c_1kqkq_11", we = {
3768
+ o: il,
3769
+ c: ol
3766
3770
  };
3767
3771
  function Rt(e) {
3768
3772
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [l, c] = h.useState(
@@ -3778,7 +3782,7 @@ function Rt(e) {
3778
3782
  Ee.setListener(
3779
3783
  "form",
3780
3784
  /* @__PURE__ */ n.jsx(
3781
- ol,
3785
+ ll,
3782
3786
  {
3783
3787
  position: { x: p, y: k },
3784
3788
  onValue: d,
@@ -3819,7 +3823,7 @@ function Rt(e) {
3819
3823
  }
3820
3824
  ) });
3821
3825
  }
3822
- const ol = (e) => {
3826
+ const ll = (e) => {
3823
3827
  let [t, a] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3824
3828
  y: parseInt(r.getFullYear()),
3825
3829
  d: parseInt(r.getDate()),
@@ -4010,7 +4014,7 @@ function Bn({
4010
4014
  Ee.setListener(
4011
4015
  "form",
4012
4016
  /* @__PURE__ */ n.jsx(
4013
- ll,
4017
+ cl,
4014
4018
  {
4015
4019
  position: { x: C, y },
4016
4020
  onValue: f,
@@ -4045,7 +4049,7 @@ function Bn({
4045
4049
  }
4046
4050
  ) });
4047
4051
  }
4048
- const ll = (e) => {
4052
+ const cl = (e) => {
4049
4053
  let [t, a] = h.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4050
4054
  y: parseInt(r.getFullYear()),
4051
4055
  m: parseInt(r.getMonth()) + 1
@@ -5773,7 +5777,7 @@ function Ft({
5773
5777
  Ee.setListener(
5774
5778
  "form",
5775
5779
  /* @__PURE__ */ n.jsx(
5776
- cl,
5780
+ dl,
5777
5781
  {
5778
5782
  parent: I,
5779
5783
  onValue: p,
@@ -5790,7 +5794,7 @@ function Ft({
5790
5794
  t && /* @__PURE__ */ n.jsx("em", { children: t })
5791
5795
  ] });
5792
5796
  }
5793
- const cl = ({ onValue: e, parent: t, view: a, options: r }) => {
5797
+ const dl = ({ onValue: e, parent: t, view: a, options: r }) => {
5794
5798
  let [s, i] = h.useState(!0), l = () => {
5795
5799
  i(!1);
5796
5800
  }, c = (u) => {
@@ -5842,7 +5846,7 @@ function Lt(e) {
5842
5846
  Ee.setListener(
5843
5847
  "form",
5844
5848
  /* @__PURE__ */ n.jsx(
5845
- dl,
5849
+ _l,
5846
5850
  {
5847
5851
  parent: v,
5848
5852
  onValue: _,
@@ -5874,7 +5878,7 @@ function Lt(e) {
5874
5878
  }
5875
5879
  );
5876
5880
  }
5877
- const dl = ({ onValue: e, parent: t, view: a, options: r }) => {
5881
+ const _l = ({ onValue: e, parent: t, view: a, options: r }) => {
5878
5882
  let [s, i] = h.useState(!0), l = () => {
5879
5883
  i(!1);
5880
5884
  }, c = (m) => {
@@ -6151,7 +6155,7 @@ function zn({
6151
6155
  Ee.setListener(
6152
6156
  "form",
6153
6157
  /* @__PURE__ */ n.jsx(
6154
- _l,
6158
+ ul,
6155
6159
  {
6156
6160
  positions: { x: A, y: J },
6157
6161
  onSave: F,
@@ -6177,7 +6181,7 @@ function zn({
6177
6181
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6178
6182
  ] }) });
6179
6183
  }
6180
- const _l = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6184
+ const ul = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6181
6185
  let s = r.split(":"), i = {
6182
6186
  h: K.Number(2, s[0]),
6183
6187
  m: K.Number(2, s[1])
@@ -6304,7 +6308,7 @@ function Gn({
6304
6308
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: _ })
6305
6309
  ] });
6306
6310
  }
6307
- const ul = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6311
+ const ml = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6308
6312
  const [i, l] = h.useState(!!a);
6309
6313
  h.useEffect(() => {
6310
6314
  l(!!a);
@@ -6445,7 +6449,7 @@ function Kn({
6445
6449
  ] });
6446
6450
  }
6447
6451
  const Se = {};
6448
- function ml(e) {
6452
+ function fl(e) {
6449
6453
  const [t, a] = h.useState({}), r = h.useRef(e);
6450
6454
  return Se.u = (s) => {
6451
6455
  r.current = { ...r.current, [s.name]: s.value };
@@ -6453,13 +6457,13 @@ function ml(e) {
6453
6457
  a(Date.now());
6454
6458
  }, [r.current];
6455
6459
  }
6456
- function fl(e) {
6460
+ function hl(e) {
6457
6461
  Se.u(e), e.reload && Se.r();
6458
6462
  }
6459
- function hl() {
6463
+ function xl() {
6460
6464
  Se.r && Se.r();
6461
6465
  }
6462
- const rc = {
6466
+ const sc = {
6463
6467
  Color: $n,
6464
6468
  Date: Rt,
6465
6469
  Code: Ln,
@@ -6485,13 +6489,13 @@ const rc = {
6485
6489
  Users: Lt,
6486
6490
  String: Pe,
6487
6491
  Form: jt,
6488
- runReload: hl,
6489
- useData: ml,
6490
- setValue: fl,
6491
- Palette: ul,
6492
+ runReload: xl,
6493
+ useData: fl,
6494
+ setValue: hl,
6495
+ Palette: ml,
6492
6496
  Toogle: Wn,
6493
6497
  Group: Kn
6494
- }, sc = {
6498
+ }, ic = {
6495
6499
  Color: $n,
6496
6500
  Date: Rt,
6497
6501
  Code: Ln,
@@ -6518,12 +6522,12 @@ const rc = {
6518
6522
  String: Pe,
6519
6523
  Toogle: Wn,
6520
6524
  Group: Kn
6521
- }, xl = "_spinner_1ul0m_1", gl = "_l_1ul0m_75", pl = "_loadingB_1ul0m_1", Un = {
6522
- spinner: xl,
6523
- l: gl,
6524
- loadingB: pl
6525
+ }, gl = "_spinner_1ul0m_1", pl = "_l_1ul0m_75", vl = "_loadingB_1ul0m_1", Un = {
6526
+ spinner: gl,
6527
+ l: pl,
6528
+ loadingB: vl
6525
6529
  };
6526
- function vl() {
6530
+ function Cl() {
6527
6531
  return /* @__PURE__ */ n.jsx("div", { className: Un.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6528
6532
  "path",
6529
6533
  {
@@ -6532,18 +6536,18 @@ function vl() {
6532
6536
  }
6533
6537
  ) }) });
6534
6538
  }
6535
- function Cl() {
6539
+ function kl() {
6536
6540
  return /* @__PURE__ */ n.jsxs("div", { className: Un.l, children: [
6537
6541
  /* @__PURE__ */ n.jsx("i", {}),
6538
6542
  /* @__PURE__ */ n.jsx("i", {}),
6539
6543
  /* @__PURE__ */ n.jsx("i", {})
6540
6544
  ] });
6541
6545
  }
6542
- const ic = { Spinner: vl, Inline: Cl }, kl = "_s_t9swc_1", jl = {
6543
- s: kl
6546
+ const oc = { Spinner: Cl, Inline: kl }, jl = "_s_t9swc_1", yl = {
6547
+ s: jl
6544
6548
  };
6545
6549
  let $t;
6546
- function yl() {
6550
+ function bl() {
6547
6551
  let e = (s) => {
6548
6552
  $t(s.target.textContent);
6549
6553
  }, t = (s) => {
@@ -6558,7 +6562,7 @@ function yl() {
6558
6562
  return r.placeholder = "Что искать?", /* @__PURE__ */ n.jsx(
6559
6563
  "div",
6560
6564
  {
6561
- className: jl.s,
6565
+ className: yl.s,
6562
6566
  onPaste: a,
6563
6567
  onInput: e,
6564
6568
  onKeyDown: t,
@@ -6568,7 +6572,7 @@ function yl() {
6568
6572
  }
6569
6573
  );
6570
6574
  }
6571
- function bl(e, t, a) {
6575
+ function wl(e, t, a) {
6572
6576
  let r = [], s = 1, i = 0, l = {}, c = 50;
6573
6577
  return l[s] = [], e.forEach((_) => {
6574
6578
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6576,17 +6580,17 @@ function bl(e, t, a) {
6576
6580
  i++, i <= c || (s++, i = 1, l[s] = []), l[s].push(a[_]);
6577
6581
  }), l;
6578
6582
  }
6579
- function wl(e) {
6583
+ function Sl(e) {
6580
6584
  $t = e;
6581
6585
  }
6582
- function Sl(e) {
6586
+ function El(e) {
6583
6587
  $t = e;
6584
6588
  }
6585
- const oc = { Field: yl, Run: bl, Get: wl, useValue: Sl }, El = "_f_q3r0i_1", Nl = {
6586
- f: El
6589
+ const lc = { Field: bl, Run: wl, Get: Sl, useValue: El }, Nl = "_f_q3r0i_1", Rl = {
6590
+ f: Nl
6587
6591
  };
6588
6592
  let ae = {};
6589
- function Rl(e, t) {
6593
+ function Tl(e, t) {
6590
6594
  switch (t.type) {
6591
6595
  case "open":
6592
6596
  return {
@@ -6636,8 +6640,8 @@ function Rl(e, t) {
6636
6640
  throw new Error();
6637
6641
  }
6638
6642
  }
6639
- function Tl() {
6640
- const [e, t] = h.useReducer(Rl, {
6643
+ function Il() {
6644
+ const [e, t] = h.useReducer(Tl, {
6641
6645
  open: !1,
6642
6646
  view: null,
6643
6647
  data: {},
@@ -6655,7 +6659,7 @@ function Tl() {
6655
6659
  /* @__PURE__ */ n.jsxs(
6656
6660
  "div",
6657
6661
  {
6658
- className: Nl.f,
6662
+ className: Rl.f,
6659
6663
  onClick: () => {
6660
6664
  t({ type: "open", open: !0 });
6661
6665
  },
@@ -6680,7 +6684,7 @@ function Tl() {
6680
6684
  ),
6681
6685
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
6682
6686
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
6683
- Ll,
6687
+ $l,
6684
6688
  {
6685
6689
  data: a,
6686
6690
  dispatch: t,
@@ -6702,16 +6706,16 @@ function Tl() {
6702
6706
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6703
6707
  ] });
6704
6708
  }
6705
- function Il(e) {
6709
+ function Dl(e) {
6706
6710
  ae.get = e;
6707
6711
  }
6708
- function Dl(e) {
6712
+ function Ml(e) {
6709
6713
  ae.set !== void 0 && ae.set(e);
6710
6714
  }
6711
- function Ml(e) {
6715
+ function Fl(e) {
6712
6716
  ae.reset !== void 0 && ae.reset(e);
6713
6717
  }
6714
- function Fl(e, t, a, r) {
6718
+ function Ll(e, t, a, r) {
6715
6719
  let s = [], i = 1, l = 0, c = {}, _ = 50;
6716
6720
  return c[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6717
6721
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
@@ -6726,7 +6730,7 @@ function Fl(e, t, a, r) {
6726
6730
  function Vn(e) {
6727
6731
  ae.count(e);
6728
6732
  }
6729
- function Ll({ data: e, state: t, dispatch: a }) {
6733
+ function $l({ data: e, state: t, dispatch: a }) {
6730
6734
  let r = () => {
6731
6735
  a({ type: "view", view: e });
6732
6736
  }, s = () => {
@@ -6749,7 +6753,7 @@ function Ll({ data: e, state: t, dispatch: a }) {
6749
6753
  ) : ""
6750
6754
  ] }),
6751
6755
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, l) => /* @__PURE__ */ n.jsx(
6752
- $l,
6756
+ Bl,
6753
6757
  {
6754
6758
  data: t.data[e].list[i],
6755
6759
  head: e,
@@ -6761,7 +6765,7 @@ function Ll({ data: e, state: t, dispatch: a }) {
6761
6765
  )) })
6762
6766
  ] });
6763
6767
  }
6764
- function $l({ data: e, head: t, state: a, dispatch: r, type: s }) {
6768
+ function Bl({ data: e, head: t, state: a, dispatch: r, type: s }) {
6765
6769
  if (s !== "999" && e.count === void 0)
6766
6770
  return "";
6767
6771
  const i = () => {
@@ -6780,11 +6784,11 @@ function $l({ data: e, head: t, state: a, dispatch: r, type: s }) {
6780
6784
  }
6781
6785
  );
6782
6786
  }
6783
- const lc = { Button: Tl, useValue: Il, Set: Dl, Run: Fl, Count: Vn, Reset: Ml }, cc = { Bell: os, Send: rs, Add: as }, Bl = "_p_djnh1_1", Pl = "_l_djnh1_38", Yn = {
6784
- p: Bl,
6785
- l: Pl
6787
+ const cc = { Button: Il, useValue: Dl, Set: Ml, Run: Ll, Count: Vn, Reset: Fl }, dc = { Bell: os, Send: rs, Add: as }, Pl = "_p_djnh1_1", Ol = "_l_djnh1_38", Yn = {
6788
+ p: Pl,
6789
+ l: Ol
6786
6790
  };
6787
- function Ol(e) {
6791
+ function Al(e) {
6788
6792
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
6789
6793
  s.push({ page: 1 }), s.push({ text: "..." });
6790
6794
  }, l = () => {
@@ -6802,7 +6806,7 @@ function Ol(e) {
6802
6806
  /* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
6803
6807
  ] });
6804
6808
  }
6805
- function Al(e, t) {
6809
+ function Zl(e, t) {
6806
6810
  switch (t.type) {
6807
6811
  case "load":
6808
6812
  return {
@@ -6824,7 +6828,7 @@ function Al(e, t) {
6824
6828
  }
6825
6829
  }
6826
6830
  function Hn({ load: e, list: t, item: a }) {
6827
- const r = h.useRef(null), [s, i] = h.useReducer(Al, {
6831
+ const r = h.useRef(null), [s, i] = h.useReducer(Zl, {
6828
6832
  load: !1,
6829
6833
  list: [],
6830
6834
  data: {},
@@ -6850,7 +6854,7 @@ function Hn({ load: e, list: t, item: a }) {
6850
6854
  /* @__PURE__ */ n.jsx("i", {})
6851
6855
  ] }) }) }),
6852
6856
  s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
6853
- Ol,
6857
+ Al,
6854
6858
  {
6855
6859
  page: s.page,
6856
6860
  count: s.size,
@@ -6859,15 +6863,15 @@ function Hn({ load: e, list: t, item: a }) {
6859
6863
  ) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6860
6864
  ] });
6861
6865
  }
6862
- const dc = { Pagination: Hn };
6863
- function Zl({ head: e, load: t, list: a, item: r }) {
6866
+ const _c = { Pagination: Hn };
6867
+ function zl({ head: e, load: t, list: a, item: r }) {
6864
6868
  const s = e;
6865
6869
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6866
6870
  /* @__PURE__ */ n.jsx(s, {}),
6867
6871
  Nt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Hn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(Rn, { list: a, load: t, item: r })
6868
6872
  ] });
6869
6873
  }
6870
- function zl(e, t) {
6874
+ function Gl(e, t) {
6871
6875
  switch (t.type) {
6872
6876
  case "load":
6873
6877
  return {
@@ -6909,50 +6913,50 @@ function zl(e, t) {
6909
6913
  }
6910
6914
  }
6911
6915
  const yt = {};
6912
- function Gl(e) {
6916
+ function Wl(e) {
6913
6917
  yt.get = e;
6914
6918
  }
6915
- function Wl(e) {
6919
+ function Kl(e) {
6916
6920
  yt.get && yt.get(e);
6917
6921
  }
6918
- const _c = { View: Zl, Reducer: zl, useValue: Gl, setValue: Wl }, uc = { Get: us }, mc = { Open: Hi };
6922
+ const uc = { View: zl, Reducer: Gl, useValue: Wl, setValue: Kl }, mc = { Get: us }, fc = { Open: qi };
6919
6923
  export {
6920
- jo as Action,
6921
- ql as Alert,
6924
+ yo as Action,
6925
+ Jl as Alert,
6922
6926
  nn as Api,
6923
- Ql as Badge,
6924
- Hl as Bookmarks,
6925
- Vl as Browser,
6926
- _i as Button,
6927
- uc as Company,
6927
+ ec as Badge,
6928
+ ql as Bookmarks,
6929
+ Yl as Browser,
6930
+ ui as Button,
6931
+ mc as Company,
6928
6932
  un as Component,
6929
- ec as DataBase,
6933
+ tc as DataBase,
6930
6934
  Ee as Event,
6931
6935
  Ee as Events,
6932
- ac as Files,
6933
- lc as Filter,
6934
- rc as Form,
6936
+ rc as Files,
6937
+ cc as Filter,
6938
+ sc as Form,
6935
6939
  K as Format,
6936
- tc as HotKey,
6937
- Jl as Icon,
6938
- io as Init,
6939
- sc as Input,
6940
- _c as List,
6941
- ic as Loading,
6940
+ nc as HotKey,
6941
+ Xl as Icon,
6942
+ oo as Init,
6943
+ ic as Input,
6944
+ uc as List,
6945
+ oc as Loading,
6942
6946
  Et as Modal,
6943
6947
  Be as Notice,
6944
- cc as Notifications,
6945
- dc as Pagination,
6946
- mc as Phone,
6948
+ dc as Notifications,
6949
+ _c as Pagination,
6950
+ fc as Phone,
6947
6951
  He as Router,
6948
- nc as Scrolling,
6949
- oc as Search,
6950
- Yl as Setting,
6952
+ ac as Scrolling,
6953
+ lc as Search,
6954
+ Hl as Setting,
6951
6955
  St as Sistym,
6952
6956
  _e as Socket,
6953
6957
  ie as Store,
6954
- mo as Tabs,
6955
- Xl as Triage,
6958
+ fo as Tabs,
6959
+ Ql as Triage,
6956
6960
  Nt as User,
6957
6961
  O as WebRTC
6958
6962
  };