@elcrm/telegram 0.0.13 → 0.0.15

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 b from "react";
5
5
  let gt = {};
6
6
  const ua = (e) => {
7
7
  gt = e;
8
- }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, be = {}, nn = {}, re = {};
8
+ }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, Ce = {}, nn = {}, re = {};
9
9
  let pt = "M06";
10
10
  function ha(e) {
11
11
  pt = e;
@@ -145,12 +145,12 @@ function $a(e, t, a) {
145
145
  j.module = e, j.id = a, j.tab = t, sessionStorage.setItem("f", N.enCode(j)), U.module(e), U.tabs(t);
146
146
  }
147
147
  function La(e) {
148
- be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", N.enCode(be.data));
148
+ Ce.data = e[0], delete Ce.data.id, document.body.dataset.theme = Ce.data.s15, localStorage.setItem("s", N.enCode(Ce.data));
149
149
  }
150
- function Aa(e, t) {
151
- be.data[e] = t, localStorage.setItem("s", N.enCode(be.data));
150
+ function Oa(e, t) {
151
+ Ce.data[e] = t, localStorage.setItem("s", N.enCode(Ce.data));
152
152
  }
153
- function Oa(e) {
153
+ function Aa(e) {
154
154
  let t = localStorage.getItem("s");
155
155
  return t === null ? {} : (t = N.deCode(t), t ? e !== void 0 ? t[e] : t : X());
156
156
  }
@@ -201,7 +201,7 @@ function De(e) {
201
201
  function Ka(e, t) {
202
202
  re.data = { ...re.data, [e]: t }, localStorage.setItem("q", N.enCode(re.data));
203
203
  }
204
- function pe(e, t) {
204
+ function xe(e, t) {
205
205
  if (!re.data) {
206
206
  let a = localStorage.getItem("q");
207
207
  a && (re.data = N.deCode(a));
@@ -275,7 +275,7 @@ const oe = {
275
275
  getCompany: Wa,
276
276
  setSelect: De,
277
277
  addSelect: Ka,
278
- getSelect: pe,
278
+ getSelect: xe,
279
279
  setApi: Za,
280
280
  getApi: Ua,
281
281
  setPayment: Ha,
@@ -464,10 +464,10 @@ function hr() {
464
464
  P.unshift("Warning: " + h), Function.prototype.apply.call(console[o], console, P);
465
465
  }
466
466
  }
467
- var R = !1, F = !1, O = !1, K = !1, ie = !1, z;
467
+ var R = !1, F = !1, A = !1, K = !1, ie = !1, z;
468
468
  z = Symbol.for("react.module.reference");
469
469
  function I(o) {
470
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || ie || o === s || o === _ || o === u || K || o === m || R || F || O || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
470
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || ie || o === s || o === _ || o === u || K || o === m || R || F || A || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
471
471
  // types supported by any Flight configuration anywhere since
472
472
  // we don't know which Flight build this will end up being used
473
473
  // with.
@@ -591,7 +591,7 @@ function hr() {
591
591
  }
592
592
  }
593
593
  var qe = C.ReactCurrentDispatcher, Je;
594
- function Ae(o, h, k) {
594
+ function Oe(o, h, k) {
595
595
  {
596
596
  if (Je === void 0)
597
597
  try {
@@ -604,16 +604,16 @@ function hr() {
604
604
  ` + Je + o;
605
605
  }
606
606
  }
607
- var Xe = !1, Oe;
607
+ var Xe = !1, Ae;
608
608
  {
609
- var An = typeof WeakMap == "function" ? WeakMap : Map;
610
- Oe = new An();
609
+ var On = typeof WeakMap == "function" ? WeakMap : Map;
610
+ Ae = new On();
611
611
  }
612
612
  function It(o, h) {
613
613
  if (!o || Xe)
614
614
  return "";
615
615
  {
616
- var k = Oe.get(o);
616
+ var k = Ae.get(o);
617
617
  if (k !== void 0)
618
618
  return k;
619
619
  }
@@ -668,7 +668,7 @@ function hr() {
668
668
  if (L--, G--, G < 0 || B[L] !== V[G]) {
669
669
  var Q = `
670
670
  ` + B[L].replace(" at new ", " at ");
671
- return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Oe.set(o, Q), Q;
671
+ return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Ae.set(o, Q), Q;
672
672
  }
673
673
  while (L >= 1 && G >= 0);
674
674
  break;
@@ -677,10 +677,10 @@ function hr() {
677
677
  } finally {
678
678
  Xe = !1, qe.current = P, Ln(), Error.prepareStackTrace = D;
679
679
  }
680
- var ve = o ? o.displayName || o.name : "", fe = ve ? Ae(ve) : "";
681
- return typeof o == "function" && Oe.set(o, fe), fe;
680
+ var ke = o ? o.displayName || o.name : "", fe = ke ? Oe(ke) : "";
681
+ return typeof o == "function" && Ae.set(o, fe), fe;
682
682
  }
683
- function On(o, h, k) {
683
+ function An(o, h, k) {
684
684
  return It(o, !1);
685
685
  }
686
686
  function Gn(o) {
@@ -693,17 +693,17 @@ function hr() {
693
693
  if (typeof o == "function")
694
694
  return It(o, Gn(o));
695
695
  if (typeof o == "string")
696
- return Ae(o);
696
+ return Oe(o);
697
697
  switch (o) {
698
698
  case _:
699
- return Ae("Suspense");
699
+ return Oe("Suspense");
700
700
  case u:
701
- return Ae("SuspenseList");
701
+ return Oe("SuspenseList");
702
702
  }
703
703
  if (typeof o == "object")
704
704
  switch (o.$$typeof) {
705
705
  case d:
706
- return On(o.render);
706
+ return An(o.render);
707
707
  case f:
708
708
  return Ge(o.type, h, k);
709
709
  case x: {
@@ -866,7 +866,7 @@ function hr() {
866
866
  }
867
867
  }
868
868
  var tt = C.ReactCurrentOwner, Lt = C.ReactDebugCurrentFrame;
869
- function xe(o) {
869
+ function ve(o) {
870
870
  if (o) {
871
871
  var h = o._owner, k = Ge(o.type, o._source, h ? h.type : null);
872
872
  Lt.setExtraStackFrame(k);
@@ -878,7 +878,7 @@ function hr() {
878
878
  function at(o) {
879
879
  return typeof o == "object" && o !== null && o.$$typeof === t;
880
880
  }
881
- function At() {
881
+ function Ot() {
882
882
  {
883
883
  if (tt.current) {
884
884
  var o = S(tt.current.type);
@@ -893,10 +893,10 @@ Check the render method of \`` + o + "`.";
893
893
  function ea(o) {
894
894
  return "";
895
895
  }
896
- var Ot = {};
896
+ var At = {};
897
897
  function ta(o) {
898
898
  {
899
- var h = At();
899
+ var h = Ot();
900
900
  if (!h) {
901
901
  var k = typeof o == "string" ? o : o.displayName || o.name;
902
902
  k && (h = `
@@ -912,11 +912,11 @@ Check the top-level render call using <` + k + ">.");
912
912
  return;
913
913
  o._store.validated = !0;
914
914
  var k = ta(h);
915
- if (Ot[k])
915
+ if (At[k])
916
916
  return;
917
- Ot[k] = !0;
917
+ At[k] = !0;
918
918
  var w = "";
919
- o && o._owner && o._owner !== tt.current && (w = " It was passed a child from " + S(o._owner.type) + "."), xe(o), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), xe(null);
919
+ o && o._owner && o._owner !== tt.current && (w = " It was passed a child from " + S(o._owner.type) + "."), ve(o), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), ve(null);
920
920
  }
921
921
  }
922
922
  function zt(o, h) {
@@ -968,11 +968,11 @@ Check the top-level render call using <` + k + ">.");
968
968
  for (var h = Object.keys(o.props), k = 0; k < h.length; k++) {
969
969
  var w = h[k];
970
970
  if (w !== "children" && w !== "key") {
971
- xe(o), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), xe(null);
971
+ ve(o), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), ve(null);
972
972
  break;
973
973
  }
974
974
  }
975
- o.ref !== null && (xe(o), y("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null));
975
+ o.ref !== null && (ve(o), y("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
976
976
  }
977
977
  }
978
978
  var Wt = {};
@@ -983,7 +983,7 @@ Check the top-level render call using <` + k + ">.");
983
983
  var B = "";
984
984
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
985
985
  var V = ea();
986
- V ? B += V : B += At();
986
+ V ? B += V : B += Ot();
987
987
  var L;
988
988
  o === null ? L = "null" : Qe(o) ? L = "array" : o !== void 0 && o.$$typeof === t ? (L = "<" + (S(o.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof o, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
989
989
  }
@@ -995,8 +995,8 @@ Check the top-level render call using <` + k + ">.");
995
995
  if (Q !== void 0)
996
996
  if (w)
997
997
  if (Qe(Q)) {
998
- for (var ve = 0; ve < Q.length; ve++)
999
- zt(Q[ve], o);
998
+ for (var ke = 0; ke < Q.length; ke++)
999
+ zt(Q[ke], o);
1000
1000
  Object.freeze && Object.freeze(Q);
1001
1001
  } else
1002
1002
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -1191,9 +1191,9 @@ function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
1191
1191
  }
1192
1192
  );
1193
1193
  }
1194
- const Ar = "_white_11p39_14", Or = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", es = "_g_11p39_243", ts = "_confirm_11p39_322", ns = "_cancel_11p39_327", as = "_disabled_11p39_332", rs = "_active_11p39_389", ss = "_coincidence_11p39_395", is = "_sa_11p39_431", os = "_ss_11p39_435", ls = "_sm_11p39_439", cs = "_sl_11p39_443", _s = "_sx_11p39_447", ds = "_sf_11p39_451", ne = {
1195
- white: Ar,
1196
- black: Or,
1194
+ const Or = "_white_11p39_14", Ar = "_black_11p39_26", Gr = "_shake_11p39_1", zr = "_modal_11p39_73", Wr = "_o_11p39_83", Kr = "_w_11p39_14", Zr = "_h_11p39_107", Ur = "_l_11p39_121", Hr = "_t_11p39_159", Yr = "_m_11p39_73", Vr = "_x_11p39_167", qr = "_s_11p39_177", Jr = "_c_11p39_182", Xr = "_f_11p39_187", Qr = "_btn_11p39_230", es = "_g_11p39_243", ts = "_confirm_11p39_322", ns = "_cancel_11p39_327", as = "_disabled_11p39_332", rs = "_active_11p39_389", ss = "_coincidence_11p39_395", is = "_sa_11p39_431", os = "_ss_11p39_435", ls = "_sm_11p39_439", cs = "_sl_11p39_443", _s = "_sx_11p39_447", ds = "_sf_11p39_451", ne = {
1195
+ white: Or,
1196
+ black: Ar,
1197
1197
  shake: Gr,
1198
1198
  modal: zr,
1199
1199
  o: Wr,
@@ -1371,7 +1371,7 @@ function ws() {
1371
1371
  t([a]);
1372
1372
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
1373
1373
  }
1374
- const Ce = {
1374
+ const je = {
1375
1375
  Path: $a,
1376
1376
  setPage: wa,
1377
1377
  getPage: an,
@@ -1787,8 +1787,8 @@ function kt({
1787
1787
  let [p, C] = b.useState(e), y = (F) => {
1788
1788
  if (!(c && _) || !x)
1789
1789
  return;
1790
- let O = x.split(".");
1791
- Cn.Open(O[1], {
1790
+ let A = x.split(".");
1791
+ Cn.Open(A[1], {
1792
1792
  callback: (K) => {
1793
1793
  t && t({ value: K, name: a }), C(K);
1794
1794
  },
@@ -1855,10 +1855,10 @@ function Is(e) {
1855
1855
  }
1856
1856
  const Ms = (e) => {
1857
1857
  function t(T, R) {
1858
- var F, K, O;
1858
+ var F, K, A;
1859
1859
  T = T ?? "", R = R ?? 1;
1860
- for (var F = [], O = 0, K = T.length; O < K; )
1861
- F.push(T.slice(O, O += R));
1860
+ for (var F = [], A = 0, K = T.length; A < K; )
1861
+ F.push(T.slice(A, A += R));
1862
1862
  return F;
1863
1863
  }
1864
1864
  function a(T, R) {
@@ -2208,13 +2208,13 @@ function $s(e) {
2208
2208
  function Ls(e) {
2209
2209
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
2210
2210
  }
2211
- function As(e, t) {
2211
+ function Os(e, t) {
2212
2212
  let a = t + "";
2213
2213
  for (; a.length < e; )
2214
2214
  a = "0" + a;
2215
2215
  return a;
2216
2216
  }
2217
- function Os(e, t, a) {
2217
+ function As(e, t, a) {
2218
2218
  let r = t / e * a;
2219
2219
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
2220
2220
  }
@@ -2227,7 +2227,7 @@ function zs(e, t) {
2227
2227
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
2228
2228
  }
2229
2229
  function Ws(e, t, a) {
2230
- return pe(e, t) ? pe(e, t).n : a || "";
2230
+ return xe(e, t) ? xe(e, t).n : a || "";
2231
2231
  }
2232
2232
  function Ks(e, t) {
2233
2233
  return e.reduce(function(a, r) {
@@ -2249,8 +2249,8 @@ const ye = {
2249
2249
  Initials: Ps,
2250
2250
  Month: $s,
2251
2251
  Money: Ls,
2252
- Number: As,
2253
- Percent: Os,
2252
+ Number: Os,
2253
+ Percent: As,
2254
2254
  CapitalizeFirstLetter: Gs,
2255
2255
  DeclensionWord: zs,
2256
2256
  Select: Ws,
@@ -3982,7 +3982,7 @@ function jt({
3982
3982
  function(S) {
3983
3983
  }
3984
3984
  );
3985
- }, O = R(e), K = ($) => {
3985
+ }, A = R(e), K = ($) => {
3986
3986
  let S = R($.target.textContent);
3987
3987
  $.target.textContent = S.q, S.i = S.q.lastIndexOf(S.v.substr(-1)), S.i < S.q.length && S.q !== v ? S.i++ : S.i = S.q.indexOf("_"), y(S.i, $.target), t && t({ value: S.q.replace(/\D/g, ""), name: r });
3988
3988
  }, ie = ($) => {
@@ -4008,7 +4008,7 @@ function jt({
4008
4008
  onContextMenu: F,
4009
4009
  onBlur: z,
4010
4010
  suppressContentEditableWarning: !0,
4011
- children: O.q
4011
+ children: A.q
4012
4012
  }
4013
4013
  ),
4014
4014
  l && /* @__PURE__ */ n.jsx("em", { children: l })
@@ -4503,7 +4503,7 @@ function Tn({
4503
4503
  const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), F = (I) => (I = I.match(R) || [], Array.from(
4504
4504
  p,
4505
4505
  (W) => (I[0] === W || C.has(W)) && I.shift() || W
4506
- )), O = (I) => {
4506
+ )), A = (I) => {
4507
4507
  const [W, $] = [I.target.selectionStart, I.target.selectionEnd].map(
4508
4508
  (S) => (S = F(I.target.value.slice(0, S)).findIndex(
4509
4509
  (Z) => C.has(Z)
@@ -4522,10 +4522,10 @@ function Tn({
4522
4522
  {
4523
4523
  type: "tel",
4524
4524
  placeholder: r,
4525
- onChange: O,
4525
+ onChange: A,
4526
4526
  inputMode: "numeric",
4527
4527
  onKeyDown: (I) => z = I.key === "Backspace",
4528
- onFocus: O,
4528
+ onFocus: A,
4529
4529
  onBlur: (I) => I.target.value === p && (I.target.value = "")
4530
4530
  }
4531
4531
  ) }),
@@ -4603,7 +4603,7 @@ function In({
4603
4603
  return "";
4604
4604
  const F = {};
4605
4605
  F.field = "group", g && (F.className = g);
4606
- const O = (z) => {
4606
+ const A = (z) => {
4607
4607
  ue.Blur(z), m && m({ value: z.target.textContent, name: a });
4608
4608
  };
4609
4609
  let K = (z, I) => {
@@ -4642,7 +4642,7 @@ function In({
4642
4642
  onPaste: R,
4643
4643
  contentEditable: !0,
4644
4644
  onKeyDown: ie,
4645
- onBlur: O,
4645
+ onBlur: A,
4646
4646
  suppressContentEditableWarning: !0,
4647
4647
  children: v[I]
4648
4648
  }
@@ -4697,8 +4697,8 @@ function Mn({
4697
4697
  const [p, C] = b.useState(Js(e)), y = (F) => {
4698
4698
  if (!(c && _) || !x)
4699
4699
  return;
4700
- let O = x.split(".");
4701
- Cn.Open(O[1], {
4700
+ let A = x.split(".");
4701
+ Cn.Open(A[1], {
4702
4702
  callback: (K) => {
4703
4703
  t && t({ value: K, name: a }), C(K);
4704
4704
  },
@@ -4739,8 +4739,8 @@ function Mn({
4739
4739
  edit: (c && _) + "",
4740
4740
  "data-after": u,
4741
4741
  children: Object.keys(p).map((F) => {
4742
- var O;
4743
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (O = g[F]) == null ? void 0 : O.label }, F);
4742
+ var A;
4743
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (A = g[F]) == null ? void 0 : A.label }, F);
4744
4744
  })
4745
4745
  }
4746
4746
  ),
@@ -4774,14 +4774,14 @@ const Xs = {
4774
4774
  Toogle: Bn,
4775
4775
  Group: In,
4776
4776
  Options: Mn
4777
- }, Qs = "_debug_1y8ks_34", ei = "_b_1y8ks_47", ti = "_o_1y8ks_51", ni = "_tm_1y8ks_56", ai = "_ta_1y8ks_123", ke = {
4777
+ }, Qs = "_debug_1y8ks_34", ei = "_b_1y8ks_47", ti = "_o_1y8ks_51", ni = "_tm_1y8ks_56", ai = "_ta_1y8ks_123", be = {
4778
4778
  debug: Qs,
4779
4779
  b: ei,
4780
4780
  o: ti,
4781
4781
  tm: ni,
4782
4782
  ta: ai,
4783
4783
  "--body": "_--body_1y8ks_133"
4784
- }, E = window.Telegram.WebApp, je = { is: !1, MainButton: {}, BackButton: {} };
4784
+ }, E = window.Telegram.WebApp, pe = { is: !1, MainButton: {}, BackButton: {} };
4785
4785
  let he = {};
4786
4786
  he.dark = {
4787
4787
  "--tg-theme-hint-color": "#b1c3d5",
@@ -4815,9 +4815,9 @@ E.getUser = () => {
4815
4815
  return ((e = E.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : E.initDataUnsafe;
4816
4816
  };
4817
4817
  E.MainButton.set = (e) => {
4818
- je.is || (e === !1 ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, E.MainButton.color = e.color, E.MainButton.textColor = e.textColor, E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || E.MainButton.onClick(() => {
4819
- Ce.setPage(e.page);
4820
- })));
4818
+ pe.is ? pe.BackButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4819
+ je.setPage(e.page);
4820
+ }));
4821
4821
  };
4822
4822
  E.BackButton.state = [!1];
4823
4823
  E.BackButton.listen = [];
@@ -4825,7 +4825,7 @@ E.BackButton.router = (e) => {
4825
4825
  e === !1 ? (E.BackButton.isVisible = !1, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.state.length !== 1 && E.BackButton.state.pop()) : (E.BackButton.isVisible = !0, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.listen.push(() => {
4826
4826
  let t = E.BackButton.state.pop();
4827
4827
  if (t.page !== void 0)
4828
- Ce.setPage(t.page);
4828
+ je.setPage(t.page);
4829
4829
  else {
4830
4830
  let a = E.BackButton.state[E.BackButton.state.length - 1];
4831
4831
  E.BackButton.router(a);
@@ -4833,7 +4833,7 @@ E.BackButton.router = (e) => {
4833
4833
  }), E.BackButton.onClick(E.BackButton.listen[0]));
4834
4834
  };
4835
4835
  E.BackButton.set = (e) => {
4836
- je.is ? je.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4836
+ pe.is ? pe.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4837
4837
  };
4838
4838
  E.Notice = (e, t) => {
4839
4839
  t !== void 0 ? (Ke.Send({ type: e, text: t }), E.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), E.HapticFeedback.notificationOccurred(e.type));
@@ -4841,7 +4841,7 @@ E.Notice = (e, t) => {
4841
4841
  E.Init = ({ dev: e }) => {
4842
4842
  if (e) {
4843
4843
  let [t, a] = b.useState(!1), [r, s] = b.useState(!1), [i, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4844
- je.is = !0, je.MainButton.set = a, je.BackButton.set = s, b.useEffect(() => {
4844
+ pe.is = !0, pe.MainButton.set = a, pe.BackButton.set = s, b.useEffect(() => {
4845
4845
  for (let m in he[i])
4846
4846
  document.documentElement.style.setProperty(
4847
4847
  m,
@@ -4856,30 +4856,31 @@ E.Init = ({ dev: e }) => {
4856
4856
  d(!1), u(!0);
4857
4857
  };
4858
4858
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4859
- /* @__PURE__ */ n.jsxs("div", { className: ke.debug, children: [
4860
- r === !1 ? /* @__PURE__ */ n.jsx("div", { className: ke.b, children: "Отмена" }) : /* @__PURE__ */ n.jsx(
4859
+ /* @__PURE__ */ n.jsxs("div", { className: be.debug, children: [
4860
+ r === !1 ? /* @__PURE__ */ n.jsx("div", { className: be.b, children: "Отмена" }) : /* @__PURE__ */ n.jsx(
4861
4861
  "div",
4862
4862
  {
4863
4863
  onClick: () => {
4864
4864
  r.page;
4865
4865
  },
4866
- className: ke.b,
4866
+ className: be.b,
4867
4867
  children: "Назад"
4868
4868
  }
4869
4869
  ),
4870
4870
  /* @__PURE__ */ n.jsx(
4871
4871
  "div",
4872
4872
  {
4873
- className: ke.o,
4873
+ className: be.o,
4874
4874
  onClick: () => d(!c),
4875
4875
  children: "Меню"
4876
4876
  }
4877
4877
  )
4878
4878
  ] }),
4879
- c ? /* @__PURE__ */ n.jsxs("div", { className: ke.tm, children: [
4879
+ /* @__PURE__ */ n.jsx("div", { children: t && /* @__PURE__ */ n.jsx("button", { children: "wrewrewrwer" }) }),
4880
+ c ? /* @__PURE__ */ n.jsxs("div", { className: be.tm, children: [
4880
4881
  /* @__PURE__ */ n.jsxs("ul", { children: [
4881
4882
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: x, children: "Authorization" }) }),
4882
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => Ce.setPage("Add"), children: "Add Page" }) })
4883
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => je.setPage("Add"), children: "Add Page" }) })
4883
4884
  ] }),
4884
4885
  /* @__PURE__ */ n.jsxs("ul", { children: [
4885
4886
  /* @__PURE__ */ n.jsxs("li", { children: [
@@ -4922,7 +4923,7 @@ const ri = ({ setAuthorization: e }) => {
4922
4923
  }, r = (s) => {
4923
4924
  localStorage.setItem("auth", t);
4924
4925
  };
4925
- return /* @__PURE__ */ n.jsx("div", { className: ke.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
4926
+ return /* @__PURE__ */ n.jsx("div", { className: be.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
4926
4927
  /* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
4927
4928
  Xs.Notes,
4928
4929
  {
@@ -5091,7 +5092,7 @@ function en({ children: e }) {
5091
5092
  const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
5092
5093
  a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
5093
5094
  e
5094
- ] }), Li = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Ai = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), ul = {
5095
+ ] }), Li = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Ai = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), ul = {
5095
5096
  Header: qt,
5096
5097
  Section: Xt,
5097
5098
  Group: en,
@@ -5100,12 +5101,12 @@ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
5100
5101
  A: Dn,
5101
5102
  U: Li,
5102
5103
  G: en,
5103
- C: Ai,
5104
+ C: Oi,
5104
5105
  L: Jt,
5105
5106
  O: $i,
5106
5107
  S: Xt,
5107
5108
  H: qt,
5108
- M: Oi,
5109
+ M: Ai,
5109
5110
  F: Qt
5110
5111
  }, fl = { Send: Fr, Line: Dn };
5111
5112
  function Gi() {
@@ -5404,7 +5405,7 @@ function so(e) {
5404
5405
  e.data.forEach((s) => {
5405
5406
  t[s.id] = { s: s.v, n: s.a }, a[s.id] = s;
5406
5407
  });
5407
- let r = { ...pe(), 901: t };
5408
+ let r = { ...xe(), 901: t };
5408
5409
  cn(a), De(r);
5409
5410
  }
5410
5411
  let ae = {}, H = {}, We = [
@@ -5460,13 +5461,13 @@ H.offline = async (e) => {
5460
5461
  H.chat = (e) => {
5461
5462
  switch (e.data.action) {
5462
5463
  case "new_message":
5463
- Ce.getModule();
5464
+ je.getModule();
5464
5465
  break;
5465
5466
  case "view_message":
5466
- Ce.getModule();
5467
+ je.getModule();
5467
5468
  break;
5468
5469
  case "write_message":
5469
- Ce.getModule();
5470
+ je.getModule();
5470
5471
  break;
5471
5472
  }
5472
5473
  };
@@ -5487,7 +5488,7 @@ H.users = (e) => {
5487
5488
  number: l
5488
5489
  };
5489
5490
  });
5490
- let a = { ...pe(), user: t };
5491
+ let a = { ...xe(), user: t };
5491
5492
  De(a);
5492
5493
  };
5493
5494
  H.api = (e) => {
@@ -5500,13 +5501,13 @@ H.delete = () => {
5500
5501
  X();
5501
5502
  };
5502
5503
  H.select = (e) => {
5503
- let t = { ...pe() };
5504
+ let t = { ...xe() };
5504
5505
  e.data.forEach((a) => {
5505
5506
  t[a.n] = JSON.parse(a.s);
5506
5507
  }), De(t);
5507
5508
  };
5508
5509
  H.job = (e) => {
5509
- let t = { ...pe() }, a = {};
5510
+ let t = { ...xe() }, a = {};
5510
5511
  Object.keys(e.data).forEach((r) => {
5511
5512
  a[r] = { s: 1, n: e.data[r] };
5512
5513
  }), t[1] = a, De(t);
@@ -5550,21 +5551,21 @@ class _o {
5550
5551
  );
5551
5552
  }
5552
5553
  }
5553
- let ot, A = {};
5554
+ let ot, O = {};
5554
5555
  const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
5555
- A[e] = t, r.put(N.enCode(t), e);
5556
- }), se = (e, t = Se()) => A[e] === void 0 ? new Promise((a, r) => {
5556
+ O[e] = t, r.put(N.enCode(t), e);
5557
+ }), se = (e, t = Se()) => O[e] === void 0 ? new Promise((a, r) => {
5557
5558
  let s;
5558
5559
  t._withIDBStore("readonly", (i) => {
5559
5560
  s = i.get(e);
5560
5561
  }).then(() => {
5561
5562
  if (s.result !== void 0) {
5562
5563
  let i = N.deCode(s.result);
5563
- A[e] = i, a(i);
5564
+ O[e] = i, a(i);
5564
5565
  } else
5565
5566
  a({});
5566
5567
  });
5567
- }) : A[e], uo = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
5568
+ }) : O[e], uo = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
5568
5569
  a.delete(e);
5569
5570
  }), ht = (e = Se()) => e._withIDBStore("readwrite", (t) => {
5570
5571
  t.clear();
@@ -5598,7 +5599,7 @@ const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withID
5598
5599
  m === void 0 ? (ht(), location.reload()) : (s && f(m.id), c && x(m.id));
5599
5600
  }), { list: u, search: i, filter: r };
5600
5601
  }, ho = (e, t, a, r = Se()) => {
5601
- if (A[e] === void 0)
5602
+ if (O[e] === void 0)
5602
5603
  return new Promise((s, i) => {
5603
5604
  let l;
5604
5605
  r._withIDBStore("readonly", (c) => {
@@ -5606,17 +5607,17 @@ const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withID
5606
5607
  }).then(() => {
5607
5608
  if (l.result !== void 0) {
5608
5609
  let c = N.deCode(l.result);
5609
- A[e] = c, A[e][t.id] = {
5610
- ...A[e][t.id],
5610
+ O[e] = c, O[e][t.id] = {
5611
+ ...O[e][t.id],
5611
5612
  ...t.data
5612
- }, r.put(N.enCode(A[e]), e), s({});
5613
+ }, r.put(N.enCode(O[e]), e), s({});
5613
5614
  } else
5614
5615
  s({});
5615
5616
  });
5616
5617
  });
5617
- if (A[e][t.id] !== void 0)
5618
- return A[e][t.id] = { ...A[e][t.id], ...t.data }, a !== void 0 && A[a] !== void 0 ? A[a][t.id] !== void 0 && (A[a][t.id] = t.data.eDate) : A[a] = [], delete A[e][t.id].$_item, delete A[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
5619
- s.put(N.enCode(A[e]), e), a !== void 0 && s.put(N.enCode(A[a]), a);
5618
+ if (O[e][t.id] !== void 0)
5619
+ return O[e][t.id] = { ...O[e][t.id], ...t.data }, a !== void 0 && O[a] !== void 0 ? O[a][t.id] !== void 0 && (O[a][t.id] = t.data.eDate) : O[a] = [], delete O[e][t.id].$_item, delete O[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
5620
+ s.put(N.enCode(O[e]), e), a !== void 0 && s.put(N.enCode(O[a]), a);
5620
5621
  });
5621
5622
  }, go = async (e, t, a, r) => {
5622
5623
  let s, i;
@@ -5641,7 +5642,7 @@ const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withID
5641
5642
  a({ type: "load", base: r });
5642
5643
  else
5643
5644
  return r[e];
5644
- }, Co = (e) => A[e], hl = {
5645
+ }, Co = (e) => O[e], hl = {
5645
5646
  id: bo,
5646
5647
  get: se,
5647
5648
  set: de,
@@ -5656,7 +5657,7 @@ const Se = () => (ot || (ot = new _o()), ot), de = (e, t, a = Se()) => a._withID
5656
5657
  delAll: xo,
5657
5658
  delList: vo,
5658
5659
  addList: ko
5659
- }, gl = { setSetting: Aa, getSetting: Oa }, jo = "_s_18bde_1", yo = "_loadingB_18bde_1", wo = "_ul_18bde_31", So = {
5660
+ }, gl = { setSetting: Oa, getSetting: Aa }, jo = "_s_18bde_1", yo = "_loadingB_18bde_1", wo = "_ul_18bde_31", So = {
5660
5661
  s: jo,
5661
5662
  loadingB: yo,
5662
5663
  ul: wo
@@ -5820,7 +5821,7 @@ const vl = { Spinner: Po, Inline: $o }, Lo = "_s_t9swc_1", tn = {
5820
5821
  s: Lo
5821
5822
  };
5822
5823
  let Et;
5823
- function Ao({ className: e, placeholder: t }) {
5824
+ function Oo({ className: e, placeholder: t }) {
5824
5825
  let a = (l) => {
5825
5826
  Et(l.target.textContent);
5826
5827
  }, r = (l) => {
@@ -5844,7 +5845,7 @@ function Ao({ className: e, placeholder: t }) {
5844
5845
  }
5845
5846
  );
5846
5847
  }
5847
- function Oo(e, t, a) {
5848
+ function Ao(e, t, a) {
5848
5849
  let r = [], s = 1, i = 0, l = {}, c = 50;
5849
5850
  return l[s] = [], e.forEach((d) => {
5850
5851
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
@@ -5858,7 +5859,7 @@ function Go(e) {
5858
5859
  function zo(e) {
5859
5860
  Et = e;
5860
5861
  }
5861
- const kl = { Field: Ao, Run: Oo, Get: Go, useValue: zo }, Wo = "_f_q3r0i_1", Ko = {
5862
+ const kl = { Field: Oo, Run: Ao, Get: Go, useValue: zo }, Wo = "_f_q3r0i_1", Ko = {
5862
5863
  f: Wo
5863
5864
  };
5864
5865
  let ee = {};
@@ -6171,7 +6172,7 @@ export {
6171
6172
  Cn as Modal,
6172
6173
  Ke as Notice,
6173
6174
  Cl as Notifications,
6174
- Ce as Router,
6175
+ je as Router,
6175
6176
  pl as Scrolling,
6176
6177
  kl as Search,
6177
6178
  dl as Setting,