elcrm 0.8.1 → 0.8.2

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
@@ -396,15 +396,15 @@ var De = {};
396
396
  var rn;
397
397
  function pr() {
398
398
  return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
399
- var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), C = Symbol.iterator, p = "@@iterator";
400
- function w(o) {
399
+ var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), p = Symbol.iterator, C = "@@iterator";
400
+ function j(o) {
401
401
  if (o === null || typeof o != "object")
402
402
  return null;
403
- var f = C && o[C] || o[p];
403
+ var f = p && o[p] || o[C];
404
404
  return typeof f == "function" ? f : null;
405
405
  }
406
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
407
- function b(o) {
406
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
407
+ function w(o) {
408
408
  {
409
409
  for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
410
410
  v[S - 1] = arguments[S];
@@ -413,7 +413,7 @@ function pr() {
413
413
  }
414
414
  function T(o, f, v) {
415
415
  {
416
- var S = y.ReactDebugCurrentFrame, F = S.getStackAddendum();
416
+ var S = k.ReactDebugCurrentFrame, F = S.getStackAddendum();
417
417
  F !== "" && (f += "%s", v = v.concat([F]));
418
418
  var $ = v.map(function(I) {
419
419
  return String(I);
@@ -421,10 +421,10 @@ function pr() {
421
421
  $.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, $);
422
422
  }
423
423
  }
424
- var R = !1, k = !1, L = !1, P = !1, O = !1, oe;
424
+ var R = !1, y = !1, L = !1, P = !1, O = !1, oe;
425
425
  oe = Symbol.for("react.module.reference");
426
426
  function Ee(o) {
427
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || O || o === s || o === d || o === u || P || o === g || R || k || L || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
427
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || O || o === s || o === d || o === u || P || o === g || R || y || L || typeof o == "object" && o !== null && (o.$$typeof === x || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
428
428
  // types supported by any Flight configuration anywhere since
429
429
  // we don't know which Flight build this will end up being used
430
430
  // with.
@@ -443,7 +443,7 @@ function pr() {
443
443
  function D(o) {
444
444
  if (o == null)
445
445
  return null;
446
- if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
446
+ if (typeof o.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
447
447
  return o.displayName || o.name || null;
448
448
  if (typeof o == "string")
449
449
  return o;
@@ -544,10 +544,10 @@ function pr() {
544
544
  })
545
545
  });
546
546
  }
547
- Y < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
547
+ Y < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
548
548
  }
549
549
  }
550
- var tt = y.ReactCurrentDispatcher, nt;
550
+ var tt = k.ReactCurrentDispatcher, nt;
551
551
  function Ke(o, f, v) {
552
552
  {
553
553
  if (nt === void 0)
@@ -673,7 +673,7 @@ function pr() {
673
673
  }
674
674
  return "";
675
675
  }
676
- var Ne = Object.prototype.hasOwnProperty, Zt = {}, zt = y.ReactDebugCurrentFrame;
676
+ var Ne = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
677
677
  function Ue(o) {
678
678
  if (o) {
679
679
  var f = o._owner, v = Ve(o.type, o._source, f ? f.type : null);
@@ -696,7 +696,7 @@ function pr() {
696
696
  } catch (z) {
697
697
  N = z;
698
698
  }
699
- N && !(N instanceof Error) && (Ue(F), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, I, typeof N), Ue(null)), N instanceof Error && !(N.message in Zt) && (Zt[N.message] = !0, Ue(F), b("Failed %s type: %s", v, N.message), Ue(null));
699
+ N && !(N instanceof Error) && (Ue(F), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, I, typeof N), Ue(null)), N instanceof Error && !(N.message in Zt) && (Zt[N.message] = !0, Ue(F), w("Failed %s type: %s", v, N.message), Ue(null));
700
700
  }
701
701
  }
702
702
  }
@@ -722,9 +722,9 @@ function pr() {
722
722
  }
723
723
  function Kt(o) {
724
724
  if (na(o))
725
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Gt(o);
725
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Gt(o);
726
726
  }
727
- var Te = y.ReactCurrentOwner, aa = {
727
+ var Te = k.ReactCurrentOwner, aa = {
728
728
  key: !0,
729
729
  ref: !0,
730
730
  __self: !0,
@@ -750,13 +750,13 @@ function pr() {
750
750
  function ia(o, f) {
751
751
  if (typeof o.ref == "string" && Te.current && f && Te.current.stateNode !== f) {
752
752
  var v = D(Te.current.type);
753
- st[v] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(Te.current.type), o.ref), st[v] = !0);
753
+ st[v] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(Te.current.type), o.ref), st[v] = !0);
754
754
  }
755
755
  }
756
756
  function oa(o, f) {
757
757
  {
758
758
  var v = function() {
759
- Wt || (Wt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
759
+ Wt || (Wt = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
760
760
  };
761
761
  v.isReactWarning = !0, Object.defineProperty(o, "key", {
762
762
  get: v,
@@ -767,7 +767,7 @@ function pr() {
767
767
  function la(o, f) {
768
768
  {
769
769
  var v = function() {
770
- Vt || (Vt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
770
+ Vt || (Vt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
771
771
  };
772
772
  v.isReactWarning = !0, Object.defineProperty(o, "ref", {
773
773
  get: v,
@@ -822,7 +822,7 @@ function pr() {
822
822
  return ca(o, N, H, F, S, Te.current, I);
823
823
  }
824
824
  }
825
- var it = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
825
+ var it = k.ReactCurrentOwner, Ut = k.ReactDebugCurrentFrame;
826
826
  function Ce(o) {
827
827
  if (o) {
828
828
  var f = o._owner, v = Ve(o.type, o._source, f ? f.type : null);
@@ -873,7 +873,7 @@ Check the top-level render call using <` + v + ">.");
873
873
  return;
874
874
  Ht[v] = !0;
875
875
  var S = "";
876
- o && o._owner && o._owner !== it.current && (S = " It was passed a child from " + D(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.', v, S), Ce(null);
876
+ o && o._owner && o._owner !== it.current && (S = " It was passed a child from " + D(o._owner.type) + "."), Ce(o), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), Ce(null);
877
877
  }
878
878
  }
879
879
  function Jt(o, f) {
@@ -888,7 +888,7 @@ Check the top-level render call using <` + v + ">.");
888
888
  else if (lt(o))
889
889
  o._store && (o._store.validated = !0);
890
890
  else if (o) {
891
- var F = w(o);
891
+ var F = j(o);
892
892
  if (typeof F == "function" && F !== o.entries)
893
893
  for (var $ = F.call(o), I; !(I = $.next()).done; )
894
894
  lt(I.value) && qt(I.value, f);
@@ -915,9 +915,9 @@ Check the top-level render call using <` + v + ">.");
915
915
  } else if (f.PropTypes !== void 0 && !ot) {
916
916
  ot = !0;
917
917
  var F = D(f);
918
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
918
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
919
919
  }
920
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
920
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
921
921
  }
922
922
  }
923
923
  function fa(o) {
@@ -925,11 +925,11 @@ Check the top-level render call using <` + v + ">.");
925
925
  for (var f = Object.keys(o.props), v = 0; v < f.length; v++) {
926
926
  var S = f[v];
927
927
  if (S !== "children" && S !== "key") {
928
- Ce(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Ce(null);
928
+ Ce(o), w("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 && (Ce(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
932
+ o.ref !== null && (Ce(o), w("Invalid attribute `ref` supplied to `React.Fragment`."), Ce(null));
933
933
  }
934
934
  }
935
935
  var Xt = {};
@@ -942,7 +942,7 @@ Check the top-level render call using <` + v + ">.");
942
942
  var H = _a();
943
943
  H ? N += H : N += Yt();
944
944
  var z;
945
- o === null ? z = "null" : rt(o) ? z = "array" : o !== void 0 && o.$$typeof === t ? (z = "<" + (D(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : z = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, N);
945
+ o === null ? z = "null" : rt(o) ? z = "array" : o !== void 0 && o.$$typeof === t ? (z = "<" + (D(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : z = typeof o, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, N);
946
946
  }
947
947
  var W = da(o, f, v, F, $);
948
948
  if (W == null)
@@ -956,7 +956,7 @@ Check the top-level render call using <` + v + ">.");
956
956
  Jt(ee[ke], o);
957
957
  Object.freeze && Object.freeze(ee);
958
958
  } else
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.");
959
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
960
960
  else
961
961
  Jt(ee, o);
962
962
  }
@@ -966,7 +966,7 @@ Check the top-level render call using <` + v + ">.");
966
966
  }), ct = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
967
967
  if (!Xt[he + ct]) {
968
968
  var pa = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
969
- b(`A props object containing a "key" prop is being spread into JSX:
969
+ w(`A props object containing a "key" prop is being spread into JSX:
970
970
  let props = %s;
971
971
  <%s {...props} />
972
972
  React keys must be passed directly to JSX without using spread:
@@ -1577,15 +1577,15 @@ function os(e) {
1577
1577
  }
1578
1578
  const ls = (e) => {
1579
1579
  function t(T, R) {
1580
- var k, P, L;
1580
+ var y, P, L;
1581
1581
  T = T ?? "", R = R ?? 1;
1582
- for (var k = [], L = 0, P = T.length; L < P; )
1583
- k.push(T.slice(L, L += R));
1584
- return k;
1582
+ for (var y = [], L = 0, P = T.length; L < P; )
1583
+ y.push(T.slice(L, L += R));
1584
+ return y;
1585
1585
  }
1586
1586
  function n(T, R) {
1587
- var k = [2, 0, 1, 1, 1, 2];
1588
- return R[T > 4 && T < 20 ? 2 : k[Math.min(T, 5)]];
1587
+ var y = [2, 0, 1, 1, 1, 2];
1588
+ return R[T > 4 && T < 20 ? 2 : y[Math.min(T, 5)]];
1589
1589
  }
1590
1590
  var r = {
1591
1591
  null: "ноль",
@@ -1649,29 +1649,29 @@ const ls = (e) => {
1649
1649
  u3: ["тысяча", "тысячи", "тысяч"],
1650
1650
  u2: ["миллион", "миллиона", "миллионов"],
1651
1651
  u1: ["миллиард", "миллиарда", "миллиардов"]
1652
- }, s, i, c, l, w, _, d, p, u, m, x, g;
1652
+ }, s, i, c, l, j, _, d, C, u, m, x, g;
1653
1653
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], l = u[1];
1654
- var C = 12 - _.length;
1655
- if (C < 0)
1654
+ var p = 12 - _.length;
1655
+ if (p < 0)
1656
1656
  return !1;
1657
- for (var p = []; C--; )
1658
- p.push("0");
1659
- _ = p.join("") + _;
1660
- var w = [];
1657
+ for (var C = []; p--; )
1658
+ C.push("0");
1659
+ _ = C.join("") + _;
1660
+ var j = [];
1661
1661
  if (_ > 0) {
1662
1662
  m = t(_, 3);
1663
- for (var y = -1; y < m.length; y++)
1664
- if (d = m[y], d > 0 && (x = t(d, 1), s = parseInt(x[0]), i = parseInt(x[1]), c = parseInt(x[2]), w.push(r.a100[s - 1]), g = y + 1 == 3 ? "a2" : "a1", i > 1 ? w.push(
1663
+ for (var k = -1; k < m.length; k++)
1664
+ if (d = m[k], d > 0 && (x = t(d, 1), s = parseInt(x[0]), i = parseInt(x[1]), c = parseInt(x[2]), j.push(r.a100[s - 1]), g = k + 1 == 3 ? "a2" : "a1", i > 1 ? j.push(
1665
1665
  r.a20[i - 2] + (c > 0 ? " " + r[g][c - 1] : "")
1666
- ) : w.push(
1666
+ ) : j.push(
1667
1667
  i > 0 ? r.a10[c] : r[g][c - 1]
1668
- ), m.length > y + 1)) {
1669
- var b = r["u" + (y + 1)];
1670
- w.push(n(d, b));
1668
+ ), m.length > k + 1)) {
1669
+ var w = r["u" + (k + 1)];
1670
+ j.push(n(d, w));
1671
1671
  }
1672
1672
  } else
1673
- w.push(r.null);
1674
- return w.push(n(_, r.ur)), w.push(l + " " + n(l, r.uc)), w.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1673
+ j.push(r.null);
1674
+ return j.push(n(_, r.ur)), j.push(l + " " + n(l, r.uc)), j.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1675
1675
  };
1676
1676
  function cs(e) {
1677
1677
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -1816,8 +1816,8 @@ function _s(e, t, n, r) {
1816
1816
  return c;
1817
1817
  this.init();
1818
1818
  var g = this.rules[_];
1819
- let C;
1820
- return g.exceptions && (C = this.pick(c, l, d, g.exceptions, !0), C) ? C : (C = this.pick(c, l, d, g.suffixes, !1), C || c);
1819
+ let p;
1820
+ return g.exceptions && (p = this.pick(c, l, d, g.exceptions, !0), p) ? p : (p = this.pick(c, l, d, g.suffixes, !1), p || c);
1821
1821
  },
1822
1822
  // выбираем из списка правил первое подходящее и применяем
1823
1823
  pick: function(c, l, _, d, u) {
@@ -2551,27 +2551,27 @@ const Di = () => {
2551
2551
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2552
2552
  }, Fi = (e) => {
2553
2553
  A.active(e);
2554
- }, B = {}, vt = {}, j = {};
2555
- j.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2556
- j.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2557
- j.other = [];
2558
- j.users = {};
2559
- j.asset = 0;
2560
- j.remoute = !1;
2561
- j.stream = null;
2562
- j.user = 0;
2563
- j.connect = !1;
2564
- j.offer = null;
2565
- j.btnRefuse = null;
2566
- j.time = !1;
2554
+ }, B = {}, vt = {}, b = {};
2555
+ b.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2556
+ b.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2557
+ b.other = [];
2558
+ b.users = {};
2559
+ b.asset = 0;
2560
+ b.remoute = !1;
2561
+ b.stream = null;
2562
+ b.user = 0;
2563
+ b.connect = !1;
2564
+ b.offer = null;
2565
+ b.btnRefuse = null;
2566
+ b.time = !1;
2567
2567
  let ve;
2568
2568
  ve = document.createElement("audio");
2569
2569
  ve.setAttribute("autoplay", "true");
2570
2570
  ve.setAttribute("muted", "true");
2571
2571
  B.start = async (e) => {
2572
- j.rtc = new RTCPeerConnection(j.config), j.other = [], j.remoute = !1, j.rtc.onicecandidate = (n) => {
2573
- n.candidate && j.other.push(n.candidate);
2574
- }, j.rtc.ontrack = (n) => {
2572
+ b.rtc = new RTCPeerConnection(b.config), b.other = [], b.remoute = !1, b.rtc.onicecandidate = (n) => {
2573
+ n.candidate && b.other.push(n.candidate);
2574
+ }, b.rtc.ontrack = (n) => {
2575
2575
  if (n.streams && n.streams[0])
2576
2576
  ve.srcObject = n.streams[0];
2577
2577
  else {
@@ -2584,24 +2584,24 @@ B.start = async (e) => {
2584
2584
  audio: { echoCancellation: !1, autoGainControl: !0 }
2585
2585
  });
2586
2586
  t.getTracks().forEach((n) => {
2587
- j.rtc.addTrack(n, t);
2588
- }), j.rtc.onconnectionstatechange = () => {
2589
- j.rtc.connectionState;
2590
- }, j.rtc.ontrack = async (n) => {
2587
+ b.rtc.addTrack(n, t);
2588
+ }), b.rtc.onconnectionstatechange = () => {
2589
+ b.rtc.connectionState;
2590
+ }, b.rtc.ontrack = async (n) => {
2591
2591
  if (n.streams && n.streams[0])
2592
2592
  ve.srcObject = n.streams[0];
2593
2593
  else {
2594
2594
  let r = new MediaStream(n.track);
2595
2595
  ve.srcObject = r;
2596
2596
  }
2597
- }, j.rtc.onaddstream = (n) => {
2598
- }, j.rtc.onnegotiationneeded = (n) => {
2599
- }, j.rtc.oniceconnectionstatechange = (n) => {
2600
- }, j.rtc.onsignalingstatechange = (n) => {
2601
- }, j.rtc.onicegatheringstatechange = (n) => {
2602
- }, j.rtc.onicecandidateerror = (n) => {
2603
- }, j.rtc.ondatachannel = (n) => {
2604
- }, j.rtc.onerror = (n) => {
2597
+ }, b.rtc.onaddstream = (n) => {
2598
+ }, b.rtc.onnegotiationneeded = (n) => {
2599
+ }, b.rtc.oniceconnectionstatechange = (n) => {
2600
+ }, b.rtc.onsignalingstatechange = (n) => {
2601
+ }, b.rtc.onicegatheringstatechange = (n) => {
2602
+ }, b.rtc.onicecandidateerror = (n) => {
2603
+ }, b.rtc.ondatachannel = (n) => {
2604
+ }, b.rtc.onerror = (n) => {
2605
2605
  }, e();
2606
2606
  };
2607
2607
  B.useListener = (e) => {
@@ -2612,66 +2612,66 @@ B.setListener = (e) => {
2612
2612
  };
2613
2613
  B.callTo = async (e) => {
2614
2614
  B.start(async () => {
2615
- const t = await j.rtc.createOffer();
2616
- await j.rtc.setLocalDescription(t), j.uid = e, le.Send({
2615
+ const t = await b.rtc.createOffer();
2616
+ await b.rtc.setLocalDescription(t), b.uid = e, le.Send({
2617
2617
  type: "module",
2618
2618
  module: "M00",
2619
2619
  query: "x0050",
2620
2620
  data: {
2621
2621
  type: "offer",
2622
2622
  offer: btoa(JSON.stringify(t)),
2623
- user: j.uid
2623
+ user: b.uid
2624
2624
  }
2625
2625
  });
2626
2626
  });
2627
2627
  };
2628
2628
  B.callIn = async (e) => {
2629
- j.asset = e.id, j.offer = e.offer, j.uid = e.id;
2629
+ b.asset = e.id, b.offer = e.offer, b.uid = e.id;
2630
2630
  };
2631
2631
  B.callRise = async () => {
2632
2632
  B.start(async () => {
2633
- j.rtc.setRemoteDescription(
2634
- new RTCSessionDescription(JSON.parse(atob(j.offer)))
2633
+ b.rtc.setRemoteDescription(
2634
+ new RTCSessionDescription(JSON.parse(atob(b.offer)))
2635
2635
  );
2636
- const e = await j.rtc.createAnswer();
2637
- await j.rtc.setLocalDescription(e), le.Send({
2636
+ const e = await b.rtc.createAnswer();
2637
+ await b.rtc.setLocalDescription(e), le.Send({
2638
2638
  type: "module",
2639
2639
  module: "M00",
2640
2640
  query: "x0050",
2641
2641
  data: {
2642
2642
  type: "answer",
2643
2643
  answer: btoa(JSON.stringify(e)),
2644
- user: j.uid
2644
+ user: b.uid
2645
2645
  }
2646
2646
  });
2647
2647
  });
2648
2648
  };
2649
2649
  B.callOk = async (e) => {
2650
- j.asset = e.id;
2650
+ b.asset = e.id;
2651
2651
  const t = new RTCSessionDescription(JSON.parse(atob(e.answer)));
2652
- await j.rtc.setRemoteDescription(t), le.Send({
2652
+ await b.rtc.setRemoteDescription(t), le.Send({
2653
2653
  type: "module",
2654
2654
  module: "M00",
2655
2655
  query: "x0050",
2656
2656
  data: {
2657
2657
  type: "IceCandidate",
2658
- candidate: JSON.parse(JSON.stringify(j.other)),
2659
- user: j.uid,
2658
+ candidate: JSON.parse(JSON.stringify(b.other)),
2659
+ user: b.uid,
2660
2660
  send: !0
2661
2661
  }
2662
2662
  });
2663
2663
  };
2664
2664
  B.IceCandidate = async (e) => {
2665
2665
  e.candidate.forEach((t) => {
2666
- j.rtc.addIceCandidate(new RTCIceCandidate(t));
2666
+ b.rtc.addIceCandidate(new RTCIceCandidate(t));
2667
2667
  }), e.send && le.Send({
2668
2668
  type: "module",
2669
2669
  module: "M00",
2670
2670
  query: "x0050",
2671
2671
  data: {
2672
2672
  type: "IceCandidate",
2673
- candidate: JSON.parse(JSON.stringify(j.other)),
2674
- user: j.uid,
2673
+ candidate: JSON.parse(JSON.stringify(b.other)),
2674
+ user: b.uid,
2675
2675
  send: !1
2676
2676
  }
2677
2677
  });
@@ -2679,18 +2679,18 @@ B.IceCandidate = async (e) => {
2679
2679
  B.callFrom = async () => {
2680
2680
  };
2681
2681
  B.callNo = () => {
2682
- j.asset = 0, j.time = !1, j.rtc && j.rtc.close(), B.setListener({ type: "state", data: "closed" });
2682
+ b.asset = 0, b.time = !1, b.rtc && b.rtc.close(), B.setListener({ type: "state", data: "closed" });
2683
2683
  };
2684
2684
  B.callOf = () => {
2685
- j.asset = 0, j.time = !1, j.rtc.close();
2685
+ b.asset = 0, b.time = !1, b.rtc.close();
2686
2686
  };
2687
2687
  B.callRefuser = async () => {
2688
2688
  le.Send({
2689
2689
  type: "module",
2690
2690
  module: "M00",
2691
2691
  query: "x0050",
2692
- data: { type: "callRefuser", user: j.uid }
2693
- }), j.asset = 0, j.time = !1, j.rtc && j.rtc.close();
2692
+ data: { type: "callRefuser", user: b.uid }
2693
+ }), b.asset = 0, b.time = !1, b.rtc && b.rtc.close();
2694
2694
  };
2695
2695
  B.Run = async (e) => {
2696
2696
  B[e.data.type] && B[e.data.type](e.data);
@@ -3145,26 +3145,26 @@ const Se = () => (_t || (_t = new Ro()), _t), me = (e, t, n = Se()) => n._withID
3145
3145
  }, Io = (e, t, n = [], r = {}) => {
3146
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 = {};
3147
3147
  x[u] = [];
3148
- let g = (p) => {
3149
- let w = "";
3150
- if (n.forEach((y) => {
3151
- w += t[p][y];
3148
+ let g = (C) => {
3149
+ let j = "";
3150
+ if (n.forEach((k) => {
3151
+ j += t[C][k];
3152
3152
  }), l) {
3153
- let y = {};
3154
- _.forEach((b) => {
3155
- y[b] = t[p][b];
3153
+ let k = {};
3154
+ _.forEach((w) => {
3155
+ k[w] = t[C][w];
3156
3156
  });
3157
- for (let b in c)
3158
- t[p][c[b]] === void 0 && (kt(), location.reload()), b === "s1" && (y[b] = new Date(t[p][c[b]]).getTime()), b === "s2" && (y[b] = t[p][c[b]]), b === "s3" && (y[b] = t[p][c[b]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3159
- i.push({ id: p, text: w, ...y });
3157
+ for (let w in c)
3158
+ t[C][c[w]] === void 0 && (kt(), location.reload()), w === "s1" && (k[w] = new Date(t[C][c[w]]).getTime()), w === "s2" && (k[w] = t[C][c[w]]), w === "s3" && (k[w] = t[C][c[w]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3159
+ i.push({ id: C, text: j, ...k });
3160
3160
  } else
3161
- i.push({ id: p, text: w });
3162
- }, C = (p) => {
3161
+ i.push({ id: C, text: j });
3162
+ }, p = (C) => {
3163
3163
  };
3164
- return d.forEach((p) => {
3165
- m.push(t[p]);
3166
- }), m.forEach((p) => {
3167
- p === void 0 ? (kt(), location.reload()) : (s && g(p.id), l && C(p.id));
3164
+ return d.forEach((C) => {
3165
+ m.push(t[C]);
3166
+ }), m.forEach((C) => {
3167
+ C === void 0 ? (kt(), location.reload()) : (s && g(C.id), l && p(C.id));
3168
3168
  }), { list: x, search: i, filter: r };
3169
3169
  }, Do = (e, t, n, r = Se()) => {
3170
3170
  if (G[e] === void 0)
@@ -3338,13 +3338,13 @@ function Pe({
3338
3338
  view: m,
3339
3339
  onBlur: x,
3340
3340
  onSave: g,
3341
- className: C = ""
3341
+ className: p = ""
3342
3342
  }) {
3343
- let p = !!(c && (e === "" || e === void 0)), w = (P) => {
3343
+ let C = !!(c && (e === "" || e === void 0)), j = (P) => {
3344
3344
  t && t({ value: P.target.textContent, name: n });
3345
- }, y = (P) => {
3345
+ }, k = (P) => {
3346
3346
  P.key === "Enter" && P.preventDefault();
3347
- }, b = (P) => {
3347
+ }, w = (P) => {
3348
3348
  }, T = (P) => {
3349
3349
  P.preventDefault(), navigator.clipboard.writeText(P.target.textContent).then(
3350
3350
  function() {
@@ -3354,12 +3354,12 @@ function Pe({
3354
3354
  }
3355
3355
  );
3356
3356
  };
3357
- if (!(l && _) && !u || !(l && _) && p)
3357
+ if (!(l && _) && !u || !(l && _) && C)
3358
3358
  return "";
3359
3359
  const R = {};
3360
- R.field = "input", C && (R.className = C);
3361
- const k = {};
3362
- r && (k.placeholder = r), k.edit = (l && _) + "";
3360
+ R.field = "input", p && (R.className = p);
3361
+ const y = {};
3362
+ r && (y.placeholder = r), y.edit = (l && _) + "";
3363
3363
  const L = (P) => {
3364
3364
  fe.Blur(P), g && g({ value: P.target.textContent, name: n });
3365
3365
  };
@@ -3368,14 +3368,14 @@ function Pe({
3368
3368
  /* @__PURE__ */ a.jsx(
3369
3369
  "dd",
3370
3370
  {
3371
- onPaste: b,
3372
- onInput: w,
3371
+ onPaste: w,
3372
+ onInput: j,
3373
3373
  onBlur: L,
3374
- onKeyDown: y,
3374
+ onKeyDown: k,
3375
3375
  onContextMenu: T,
3376
3376
  contentEditable: l && _ ? "plaintext-only" : "false",
3377
3377
  suppressContentEditableWarning: !0,
3378
- ...k,
3378
+ ...y,
3379
3379
  children: e
3380
3380
  }
3381
3381
  ),
@@ -3420,31 +3420,31 @@ function Dn({
3420
3420
  d.current.value.length > 0 ? d.current.send && (n(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
3421
3421
  d.current.send = !0;
3422
3422
  }, 3e3)) : n(!1);
3423
- }, m = (y) => {
3424
- d.current.value = y.target.textContent, u();
3425
- }, x = (y) => {
3426
- y.keyCode === 16 && (d.current.shift = !0), y.keyCode === 13 && !d.current.shift && (y.preventDefault(), d.current.value.length !== 0 && (y.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3427
- }, g = (y) => {
3428
- y.keyCode === 16 && (d.current.shift = !1);
3429
- }, C = (y) => {
3430
- y.preventDefault(), navigator.clipboard.readText().then((b) => {
3431
- window.document.execCommand("insertText", !1, b);
3432
- }).catch((b) => {
3423
+ }, m = (k) => {
3424
+ d.current.value = k.target.textContent, u();
3425
+ }, x = (k) => {
3426
+ k.keyCode === 16 && (d.current.shift = !0), k.keyCode === 13 && !d.current.shift && (k.preventDefault(), d.current.value.length !== 0 && (k.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", n(!1)));
3427
+ }, g = (k) => {
3428
+ k.keyCode === 16 && (d.current.shift = !1);
3429
+ }, p = (k) => {
3430
+ k.preventDefault(), navigator.clipboard.readText().then((w) => {
3431
+ window.document.execCommand("insertText", !1, w);
3432
+ }).catch((w) => {
3433
3433
  });
3434
- }, p = () => {
3434
+ }, C = () => {
3435
3435
  n(!1);
3436
- }, w = {
3436
+ }, j = {
3437
3437
  spellCheck: "true"
3438
3438
  };
3439
- return _ && (w.placeholder = _), c && l && (w.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3439
+ return _ && (j.placeholder = _), c && l && (j.contentEditable = "plaintext-only"), /* @__PURE__ */ a.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ a.jsx(
3440
3440
  "dd",
3441
3441
  {
3442
- onPaste: C,
3442
+ onPaste: p,
3443
3443
  onInput: m,
3444
3444
  onKeyUp: g,
3445
3445
  onKeyDown: x,
3446
- onBlur: p,
3447
- ...w,
3446
+ onBlur: C,
3447
+ ...j,
3448
3448
  suppressContentEditableWarning: !0,
3449
3449
  children: e
3450
3450
  }
@@ -3478,23 +3478,23 @@ function Mn(e) {
3478
3478
  ] });
3479
3479
  }
3480
3480
  function Fn({ value: e, onValue: t, placeholder: n = "", name: r }) {
3481
- let s = (g, C) => Number(Math.round(g + Math.random() * (C - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3481
+ let s = (g, p) => Number(Math.round(g + Math.random() * (p - g))), i = h.useRef(null), c = h.useRef(null), l = s(1e4, 99999), _ = (g) => {
3482
3482
  g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3483
3483
  }, d = (g) => {
3484
3484
  t({ value: Number(g.target.textContent) === l, name: r });
3485
3485
  }, u = (g) => {
3486
- g.preventDefault(), navigator.clipboard.readText().then((C) => {
3486
+ g.preventDefault(), navigator.clipboard.readText().then((p) => {
3487
3487
  window.document.execCommand(
3488
3488
  "insertText",
3489
3489
  !1,
3490
- C.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3490
+ p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3491
3491
  );
3492
- }).catch((C) => {
3492
+ }).catch((p) => {
3493
3493
  });
3494
3494
  };
3495
3495
  h.useEffect(() => {
3496
- const g = i.current, C = g.getContext("2d");
3497
- C.clearRect(0, 0, g.width, g.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(l, 50, 27), c.current.textContent = "";
3496
+ const g = i.current, p = g.getContext("2d");
3497
+ p.clearRect(0, 0, g.width, g.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), c.current.textContent = "";
3498
3498
  }, [l]);
3499
3499
  const m = {};
3500
3500
  m.field = "captcha";
@@ -3693,13 +3693,13 @@ function Nt(e) {
3693
3693
  let d = (g) => {
3694
3694
  l(g), e.onValue({ value: g, name: e.name });
3695
3695
  }, u = (g) => {
3696
- const C = g.target.getBoundingClientRect(), p = C.left, w = C.top;
3696
+ const p = g.target.getBoundingClientRect(), C = p.left, j = p.top;
3697
3697
  we.setListener(
3698
3698
  "form",
3699
3699
  /* @__PURE__ */ a.jsx(
3700
3700
  Yo,
3701
3701
  {
3702
- position: { x: p, y: w },
3702
+ position: { x: C, y: j },
3703
3703
  onValue: d,
3704
3704
  date: c
3705
3705
  },
@@ -3747,33 +3747,33 @@ const Yo = (e) => {
3747
3747
  y: parseInt(s.getFullYear()),
3748
3748
  d: parseInt(s.getDate()),
3749
3749
  m: parseInt(s.getMonth()) + 1
3750
- }, [l, _] = h.useState({ y: c.y, m: c.m }), d = (k) => {
3751
- let L = k.getDay();
3750
+ }, [l, _] = h.useState({ y: c.y, m: c.m }), d = (y) => {
3751
+ let L = y.getDay();
3752
3752
  return L === 0 && (L = 7), L - 1;
3753
3753
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = l.m - 1, x = new Date(l.y, m), g = [];
3754
- for (let k = 0; k < d(x); k++)
3754
+ for (let y = 0; y < d(x); y++)
3755
3755
  g.push(0);
3756
3756
  for (; x.getMonth() === m; )
3757
3757
  g.push(x.getDate()), x.setDate(x.getDate() + 1);
3758
- let C = () => {
3758
+ let p = () => {
3759
3759
  n(!1);
3760
- }, p = () => {
3761
- b(l.m + 1, l.y);
3762
- }, w = () => {
3763
- b(l.m - 1, l.y);
3764
- }, y = (k) => {
3760
+ }, C = () => {
3761
+ w(l.m + 1, l.y);
3762
+ }, j = () => {
3763
+ w(l.m - 1, l.y);
3764
+ }, k = (y) => {
3765
3765
  e.onValue(
3766
- l.y + "-" + K.Number(2, l.m) + "-" + K.Number(2, k)
3767
- ), C();
3768
- }, b = (k, L) => {
3769
- L = k > 12 ? L + 1 : k < 1 ? L - 1 : L, k = k > 12 ? 1 : k < 1 ? 12 : k, _({ y: L, m: k });
3766
+ l.y + "-" + K.Number(2, l.m) + "-" + K.Number(2, y)
3767
+ ), p();
3768
+ }, w = (y, L) => {
3769
+ L = y > 12 ? L + 1 : y < 1 ? L - 1 : L, y = y > 12 ? 1 : y < 1 ? 12 : y, _({ y: L, m: y });
3770
3770
  }, T = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, R = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3771
3771
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3772
3772
  /* @__PURE__ */ a.jsx(
3773
3773
  "div",
3774
3774
  {
3775
3775
  className: je.o,
3776
- onClick: () => C()
3776
+ onClick: () => p()
3777
3777
  },
3778
3778
  (/* @__PURE__ */ new Date()).getTime()
3779
3779
  ),
@@ -3784,22 +3784,22 @@ const Yo = (e) => {
3784
3784
  style: { top: T + "px", left: R + "px" },
3785
3785
  children: [
3786
3786
  /* @__PURE__ */ a.jsxs("s", { children: [
3787
- /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => w() }),
3787
+ /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => j() }),
3788
3788
  /* @__PURE__ */ a.jsxs("h2", { children: [
3789
3789
  K.Month(l.m).name,
3790
3790
  " ",
3791
3791
  l.y
3792
3792
  ] }),
3793
- /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => p() })
3793
+ /* @__PURE__ */ a.jsx("i", { "data-icon": "F022", onClick: () => C() })
3794
3794
  ] }),
3795
3795
  /* @__PURE__ */ a.jsxs("div", { children: [
3796
- u.map((k, L) => /* @__PURE__ */ a.jsx("p", { children: k }, "v" + L)),
3797
- g.map((k, L) => /* @__PURE__ */ a.jsx("span", { children: k !== 0 ? /* @__PURE__ */ a.jsx(
3796
+ u.map((y, L) => /* @__PURE__ */ a.jsx("p", { children: y }, "v" + L)),
3797
+ g.map((y, L) => /* @__PURE__ */ a.jsx("span", { children: y !== 0 ? /* @__PURE__ */ a.jsx(
3798
3798
  "b",
3799
3799
  {
3800
- color: i.y === l.y && i.m === l.m && i.d === k ? "_FFEB3B" : "",
3801
- onClick: () => y(k),
3802
- children: k
3800
+ color: i.y === l.y && i.m === l.m && i.d === y ? "_FFEB3B" : "",
3801
+ onClick: () => k(y),
3802
+ children: y
3803
3803
  }
3804
3804
  ) : /* @__PURE__ */ a.jsx("p", {}) }, L))
3805
3805
  ] })
@@ -3823,33 +3823,33 @@ function Tt({
3823
3823
  view: m,
3824
3824
  modal: x,
3825
3825
  module: g,
3826
- options: C
3826
+ options: p
3827
3827
  }) {
3828
- let [p, w] = h.useState(e), y = (T) => {
3828
+ let [C, j] = h.useState(e), k = (T) => {
3829
3829
  if (!x)
3830
3830
  return;
3831
3831
  let R = x.split(".");
3832
3832
  Et.Open(R[0], R[1], {
3833
- callback: (k) => {
3834
- t && t({ value: k, name: n }), w(k);
3833
+ callback: (y) => {
3834
+ t && t({ value: y, name: n }), j(y);
3835
3835
  },
3836
3836
  onValue: t,
3837
- options: C,
3837
+ options: p,
3838
3838
  name: n,
3839
3839
  value: e
3840
3840
  });
3841
3841
  };
3842
- const b = {};
3843
- return b.field = "input", c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...b, children: [
3842
+ const w = {};
3843
+ return w.field = "input", c ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...w, children: [
3844
3844
  s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "",
3845
3845
  /* @__PURE__ */ a.jsx(
3846
3846
  "dd",
3847
3847
  {
3848
- onClick: y,
3848
+ onClick: k,
3849
3849
  "data-edit": (l && d) + "",
3850
3850
  "data-placeholder": r,
3851
3851
  "data-after": u,
3852
- children: p
3852
+ children: C
3853
3853
  }
3854
3854
  ),
3855
3855
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
@@ -3857,8 +3857,8 @@ function Tt({
3857
3857
  }
3858
3858
  function It(e) {
3859
3859
  let t = e.value, n = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, x) => {
3860
- let g = document.createRange(), C = window.getSelection();
3861
- g.setStart(x.childNodes[0], m), g.collapse(!0), C.removeAllRanges(), C.addRange(g), x.focus();
3860
+ let g = document.createRange(), p = window.getSelection();
3861
+ g.setStart(x.childNodes[0], m), g.collapse(!0), p.removeAllRanges(), p.addRange(g), x.focus();
3862
3862
  }, s = (m) => {
3863
3863
  e.onValue({
3864
3864
  value: n(m.target.textContent),
@@ -3920,18 +3920,18 @@ function Pn({
3920
3920
  h.useEffect(() => {
3921
3921
  m(e);
3922
3922
  }, [e]);
3923
- let x = (p) => {
3924
- m(p), t && t({ value: p, name: n });
3925
- }, g = (p) => {
3923
+ let x = (C) => {
3924
+ m(C), t && t({ value: C, name: n });
3925
+ }, g = (C) => {
3926
3926
  if (!i || !c)
3927
3927
  return;
3928
- const w = p.target.getBoundingClientRect(), y = w.left, b = w.top;
3928
+ const j = C.target.getBoundingClientRect(), k = j.left, w = j.top;
3929
3929
  we.setListener(
3930
3930
  "form",
3931
3931
  /* @__PURE__ */ a.jsx(
3932
3932
  Ho,
3933
3933
  {
3934
- position: { x: y, y: b },
3934
+ position: { x: k, y: w },
3935
3935
  onValue: x,
3936
3936
  date: u
3937
3937
  },
@@ -3939,8 +3939,8 @@ function Pn({
3939
3939
  )
3940
3940
  );
3941
3941
  };
3942
- const C = {};
3943
- return _ && (C.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3942
+ const p = {};
3943
+ return _ && (p.placeholder = _), /* @__PURE__ */ a.jsx(a.Fragment, { children: r === "icon" ? /* @__PURE__ */ a.jsx(
3944
3944
  "i",
3945
3945
  {
3946
3946
  "data-icon": "F043",
@@ -3955,7 +3955,7 @@ function Pn({
3955
3955
  "dd",
3956
3956
  {
3957
3957
  onClick: g,
3958
- ...C,
3958
+ ...p,
3959
3959
  children: K.Date(u, "mm.yyyy")
3960
3960
  }
3961
3961
  ),
@@ -3977,9 +3977,9 @@ const Ho = (e) => {
3977
3977
  _(l + 1);
3978
3978
  }, m = () => {
3979
3979
  _(l - 1);
3980
- }, x = (y) => {
3981
- e.onValue(l + "-" + K.Number(2, y)), d();
3982
- }, g = (y) => i.y === c.y && i.m === y ? "_FFEB3B" : "", C = Array(12).fill("").map((y, b) => b + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3980
+ }, x = (k) => {
3981
+ e.onValue(l + "-" + K.Number(2, k)), d();
3982
+ }, g = (k) => i.y === c.y && i.m === k ? "_FFEB3B" : "", p = Array(12).fill("").map((k, w) => w + 1), C = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, j = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3983
3983
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3984
3984
  /* @__PURE__ */ a.jsx(
3985
3985
  "div",
@@ -3993,7 +3993,7 @@ const Ho = (e) => {
3993
3993
  "div",
3994
3994
  {
3995
3995
  className: je.c,
3996
- style: { top: p + "px", left: w + "px" },
3996
+ style: { top: C + "px", left: j + "px" },
3997
3997
  children: [
3998
3998
  /* @__PURE__ */ a.jsxs("s", { children: [
3999
3999
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => m() }),
@@ -4003,16 +4003,16 @@ const Ho = (e) => {
4003
4003
  /* @__PURE__ */ a.jsx(
4004
4004
  "div",
4005
4005
  {
4006
- children: C.map((y, b) => /* @__PURE__ */ a.jsx(
4006
+ children: p.map((k, w) => /* @__PURE__ */ a.jsx(
4007
4007
  "span",
4008
4008
  {
4009
4009
  onClick: () => {
4010
- x(y);
4010
+ x(k);
4011
4011
  },
4012
- color: g(y),
4013
- children: /* @__PURE__ */ a.jsx("b", { children: K.Month(y).abc })
4012
+ color: g(k),
4013
+ children: /* @__PURE__ */ a.jsx("b", { children: K.Month(k).abc })
4014
4014
  },
4015
- b
4015
+ w
4016
4016
  ))
4017
4017
  }
4018
4018
  )
@@ -4024,26 +4024,29 @@ const Ho = (e) => {
4024
4024
  function Bn(e) {
4025
4025
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [r, s] = h.useState(!1), i = e.edit !== void 0 ? e.edit : !0, c = e.active !== void 0 ? e.active : !0, _ = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && c);
4026
4026
  r = i ? !0 : r;
4027
- let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
4028
- e.onValue({ value: p.target.innerText, name: e.name });
4029
- }, m = (p) => {
4030
- p.preventDefault(), navigator.clipboard.readText().then((w) => {
4031
- window.document.execCommand("insertText", !1, w);
4032
- }).catch((w) => {
4027
+ let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (j) => {
4028
+ e.onValue && e.onValue({ value: j.target.innerText, name: e.name });
4029
+ }, m = (j) => {
4030
+ j.preventDefault(), navigator.clipboard.readText().then((k) => {
4031
+ window.document.execCommand("insertText", !1, k);
4032
+ }).catch((k) => {
4033
4033
  });
4034
- }, x = (p) => {
4034
+ }, x = (j) => {
4035
4035
  i || s(!r);
4036
4036
  };
4037
- const g = {};
4038
- g.field = "notes", e.className && (g.className = e.className);
4037
+ const g = (j) => {
4038
+ e.onSave && e.onSave({ value: j.target.innerText, name: e.name });
4039
+ }, p = {};
4040
+ p.field = "notes", e.className && (p.className = e.className);
4039
4041
  const C = {};
4040
- return d && (C.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...g, children: [
4042
+ return d && (C.placeholder = d), _ ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4041
4043
  t(),
4042
4044
  /* @__PURE__ */ a.jsx(
4043
4045
  "dd",
4044
4046
  {
4045
4047
  onPaste: m,
4046
4048
  onInput: u,
4049
+ onBlur: g,
4047
4050
  contentEditable: i && c ? "plaintext-only" : "false",
4048
4051
  "data-edit": (i && c) + "",
4049
4052
  "data-open": "" + r,
@@ -4072,20 +4075,20 @@ function Dt({
4072
4075
  after: x,
4073
4076
  view: g
4074
4077
  }) {
4075
- let C = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", p = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4078
+ let p = () => s ? /* @__PURE__ */ a.jsx("dt", { children: s }) : "", C = () => i ? /* @__PURE__ */ a.jsx("em", { children: i }) : "";
4076
4079
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(r && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4077
- let y = !1, b = (O) => {
4080
+ let k = !1, w = (O) => {
4078
4081
  e && e({ value: O.target.textContent, name: m });
4079
4082
  }, T = (O) => {
4080
- if (!(y && O.which === 86)) {
4083
+ if (!(k && O.which === 86)) {
4081
4084
  if (O.which === 17 || O.which === 91)
4082
- return y = !0;
4085
+ return k = !0;
4083
4086
  O.key !== "Backspace" && (O.target.textContent.length === n && O.preventDefault(), O.key === "Enter" && O.preventDefault(), isNaN(parseInt(String.fromCharCode(O.which))) && O.preventDefault());
4084
4087
  }
4085
4088
  }, R = (O) => {
4086
4089
  if (O.which === 17 || O.which === 91)
4087
- return y = !1;
4088
- }, k = (O) => {
4090
+ return k = !1;
4091
+ }, y = (O) => {
4089
4092
  O.preventDefault(), navigator.clipboard.readText().then((oe) => {
4090
4093
  oe = oe.replace(/\D/g, ""), window.document.execCommand(
4091
4094
  "insertText",
@@ -4099,20 +4102,20 @@ function Dt({
4099
4102
  L.field = "input", u && (L.className = u);
4100
4103
  let P = {};
4101
4104
  return r && t ? (P.edit = "true", P.contentEditable = "plaintext-only") : P.contentEditable = "false", d && (P.placeholder = d), x && (P.after = x), l ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...L, children: [
4102
- C(),
4105
+ p(),
4103
4106
  /* @__PURE__ */ a.jsx(
4104
4107
  "dd",
4105
4108
  {
4106
4109
  ...P,
4107
- onPaste: k,
4108
- onInput: b,
4110
+ onPaste: y,
4111
+ onInput: w,
4109
4112
  onKeyDown: T,
4110
4113
  onKeyUp: R,
4111
4114
  suppressContentEditableWarning: !0,
4112
4115
  children: _
4113
4116
  }
4114
4117
  ),
4115
- p()
4118
+ C()
4116
4119
  ] });
4117
4120
  }
4118
4121
  function On({
@@ -4128,28 +4131,28 @@ function On({
4128
4131
  reload: d = !1,
4129
4132
  after: u = ""
4130
4133
  }) {
4131
- let m = (w) => {
4134
+ let m = (j) => {
4132
4135
  t && t({
4133
- value: w.target.textContent,
4136
+ value: j.target.textContent,
4134
4137
  name: n,
4135
4138
  reload: d
4136
4139
  });
4137
- }, x = (w) => {
4138
- w.key === "Enter" && w.preventDefault();
4139
- }, g = (w) => {
4140
- w.preventDefault(), navigator.clipboard.readText().then((y) => {
4140
+ }, x = (j) => {
4141
+ j.key === "Enter" && j.preventDefault();
4142
+ }, g = (j) => {
4143
+ j.preventDefault(), navigator.clipboard.readText().then((k) => {
4141
4144
  window.document.execCommand(
4142
4145
  "insertText",
4143
4146
  !1,
4144
- y.replace(/(\r\n|\n|\r)/gm, " ")
4147
+ k.replace(/(\r\n|\n|\r)/gm, " ")
4145
4148
  );
4146
- }).catch((y) => {
4149
+ }).catch((k) => {
4147
4150
  });
4148
4151
  };
4149
- const C = {};
4150
- C.field = "password", s && (C.className = s);
4151
4152
  const p = {};
4152
- return r && (p.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...C, children: [
4153
+ p.field = "password", s && (p.className = s);
4154
+ const C = {};
4155
+ return r && (C.placeholder = r), /* @__PURE__ */ a.jsxs("dl", { ...p, children: [
4153
4156
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : "",
4154
4157
  /* @__PURE__ */ a.jsx(
4155
4158
  "dd",
@@ -4159,7 +4162,7 @@ function On({
4159
4162
  onKeyDown: x,
4160
4163
  onBlur: fe.Blur,
4161
4164
  contentEditable: l && _ ? "plaintext-only" : "false",
4162
- ...p,
4165
+ ...C,
4163
4166
  suppressContentEditableWarning: !0,
4164
4167
  children: e
4165
4168
  }
@@ -5566,7 +5569,7 @@ function Mt({
5566
5569
  className: g = ""
5567
5570
  }) {
5568
5571
  _ = _ !== void 0 ? _ : !0, d = d !== void 0 ? d : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && d), h.useRef(null);
5569
- let p = "+_(___) ___-__-__", w = !0, y = 0, b = (Z, D) => {
5572
+ let C = "+_(___) ___-__-__", j = !0, k = 0, w = (Z, D) => {
5570
5573
  let U = document.createRange(), Y = window.getSelection();
5571
5574
  U.setStart(D.childNodes[0], Z), U.collapse(!0), Y.removeAllRanges(), Y.addRange(U), D.focus();
5572
5575
  }, T = (Z) => {
@@ -5576,22 +5579,22 @@ function Mt({
5576
5579
  });
5577
5580
  }, R = (Z) => {
5578
5581
  let D = 0, U = "", Y = Z.replace(/\D/g, "");
5579
- Y === "" && (w = !0);
5582
+ Y === "" && (j = !0);
5580
5583
  let ze = Y.split(""), ne = "";
5581
5584
  ze.forEach((Ge) => {
5582
- w && (ne += Ge, ut[ne] !== void 0 && w ? (w = !1, p = ut[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), U = ut[ne].code) : (w && (y = ("" + ne).length, p = `+${ne}_(___) ___-__-__`.replace(
5585
+ j && (ne += Ge, ut[ne] !== void 0 && j ? (j = !1, C = ut[ne].mask.replace(new RegExp("[0-9]", "g"), "_"), U = ut[ne].code) : (j && (k = ("" + ne).length, C = `+${ne}_(___) ___-__-__`.replace(
5583
5586
  new RegExp("[0-9]", "g"),
5584
5587
  "_"
5585
- ), U = ""), y > ("" + ne).length && (w = !0, p = `+${ne}_(___) ___-__-__`.replace(
5588
+ ), U = ""), k > ("" + ne).length && (j = !0, C = `+${ne}_(___) ___-__-__`.replace(
5586
5589
  new RegExp("[0-9]", "g"),
5587
5590
  "_"
5588
5591
  ), U = "")));
5589
5592
  });
5590
- let Re = p.replace(/\D/g, "");
5591
- return Re.length >= Y.length && (Y = Re), { q: p.replace(/[_\d]/g, function() {
5593
+ let Re = C.replace(/\D/g, "");
5594
+ return Re.length >= Y.length && (Y = Re), { q: C.replace(/[_\d]/g, function() {
5592
5595
  return Y.charAt(D++) || "_";
5593
5596
  }), i: D, v: Y, f: U };
5594
- }, k = (Z) => {
5597
+ }, y = (Z) => {
5595
5598
  Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
5596
5599
  function() {
5597
5600
  $e.Copy("Данные в буфер обмене");
@@ -5601,7 +5604,7 @@ function Mt({
5601
5604
  );
5602
5605
  }, L = R(e), P = (Z) => {
5603
5606
  let D = R(Z.target.textContent);
5604
- Z.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== p ? D.i++ : D.i = D.q.indexOf("_"), b(D.i, Z.target), t && t({ value: D.q.replace(/\D/g, ""), name: r });
5607
+ Z.target.textContent = D.q, D.i = D.q.lastIndexOf(D.v.substr(-1)), D.i < D.q.length && D.q !== C ? D.i++ : D.i = D.q.indexOf("_"), w(D.i, Z.target), t && t({ value: D.q.replace(/\D/g, ""), name: r });
5605
5608
  }, O = (Z) => {
5606
5609
  Z.key === "Enter" && Z.preventDefault();
5607
5610
  };
@@ -5622,7 +5625,7 @@ function Mt({
5622
5625
  onPaste: T,
5623
5626
  onInput: P,
5624
5627
  onKeyDown: O,
5625
- onContextMenu: k,
5628
+ onContextMenu: y,
5626
5629
  onBlur: oe,
5627
5630
  suppressContentEditableWarning: !0,
5628
5631
  children: L.q
@@ -5682,9 +5685,9 @@ function Ft({
5682
5685
  }) {
5683
5686
  const x = h.useRef();
5684
5687
  s = !!(s && (i === "" || l[i].n === void 0)) && !(n && r);
5685
- let C = i !== void 0 && i !== "" ? l[i].n : i, p = (T) => {
5688
+ let p = i !== void 0 && i !== "" ? l[i].n : i, C = (T) => {
5686
5689
  x.current.textContent = l[T].n, c && c({ value: T, name: d });
5687
- }, w = (T) => {
5690
+ }, j = (T) => {
5688
5691
  if (!(n && r))
5689
5692
  return;
5690
5693
  const R = T.target.getBoundingClientRect();
@@ -5694,17 +5697,17 @@ function Ft({
5694
5697
  qo,
5695
5698
  {
5696
5699
  parent: R,
5697
- onValue: p,
5700
+ onValue: C,
5698
5701
  view: m,
5699
5702
  options: l
5700
5703
  },
5701
5704
  (/* @__PURE__ */ new Date()).getTime()
5702
5705
  )
5703
5706
  );
5704
- }, y = { field: "select" }, b = { onClick: w };
5705
- return n && r && (b.edit = "true"), _ && (b.placeholder = _), u && (b.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...y, children: [
5707
+ }, k = { field: "select" }, w = { onClick: j };
5708
+ return n && r && (w.edit = "true"), _ && (w.placeholder = _), u && (w.after = u), s ? "" : /* @__PURE__ */ a.jsxs("dl", { ...k, children: [
5706
5709
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
5707
- /* @__PURE__ */ a.jsx("dd", { ...b, ref: x, children: C }),
5710
+ /* @__PURE__ */ a.jsx("dd", { ...w, ref: x, children: p }),
5708
5711
  t && /* @__PURE__ */ a.jsx("em", { children: t })
5709
5712
  ] });
5710
5713
  }
@@ -5756,13 +5759,13 @@ function Lt(e) {
5756
5759
  ), m = (g) => {
5757
5760
  if (!(r && s))
5758
5761
  return;
5759
- const C = g.target.getBoundingClientRect();
5762
+ const p = g.target.getBoundingClientRect();
5760
5763
  we.setListener(
5761
5764
  "form",
5762
5765
  /* @__PURE__ */ a.jsx(
5763
5766
  Jo,
5764
5767
  {
5765
- parent: C,
5768
+ parent: p,
5766
5769
  onValue: _,
5767
5770
  view: e.view,
5768
5771
  options: e.options
@@ -5845,10 +5848,10 @@ function yt({
5845
5848
  after: m = "",
5846
5849
  view: x,
5847
5850
  module: g,
5848
- item: C,
5849
- className: p = ""
5851
+ item: p,
5852
+ className: C = ""
5850
5853
  }) {
5851
- let w = {};
5854
+ let j = {};
5852
5855
  switch (e) {
5853
5856
  case "Input":
5854
5857
  return /* @__PURE__ */ a.jsx(
@@ -5864,11 +5867,11 @@ function yt({
5864
5867
  onValue: n,
5865
5868
  name: r,
5866
5869
  placeholder: s,
5867
- className: p
5870
+ className: C
5868
5871
  }
5869
5872
  );
5870
5873
  case "Select":
5871
- return C && (w = re.getSelect(parseInt(C)) ? re.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5874
+ return p && (j = re.getSelect(parseInt(p)) ? re.getSelect(parseInt(p)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
5872
5875
  Ft,
5873
5876
  {
5874
5877
  title: i,
@@ -5881,8 +5884,8 @@ function yt({
5881
5884
  onValue: n,
5882
5885
  name: r,
5883
5886
  placeholder: s,
5884
- className: p,
5885
- options: w
5887
+ className: C,
5888
+ options: j
5886
5889
  }
5887
5890
  );
5888
5891
  case "Users":
@@ -5899,8 +5902,8 @@ function yt({
5899
5902
  onValue: n,
5900
5903
  name: r,
5901
5904
  placeholder: s,
5902
- className: p,
5903
- options: w
5905
+ className: C,
5906
+ options: j
5904
5907
  }
5905
5908
  );
5906
5909
  case "Date":
@@ -5917,7 +5920,7 @@ function yt({
5917
5920
  onValue: n,
5918
5921
  name: r,
5919
5922
  placeholder: s,
5920
- className: p
5923
+ className: C
5921
5924
  }
5922
5925
  );
5923
5926
  case "Phone":
@@ -5934,7 +5937,7 @@ function yt({
5934
5937
  onValue: n,
5935
5938
  name: r,
5936
5939
  placeholder: s,
5937
- className: p
5940
+ className: C
5938
5941
  }
5939
5942
  );
5940
5943
  case "Number":
@@ -5951,7 +5954,7 @@ function yt({
5951
5954
  onValue: n,
5952
5955
  name: r,
5953
5956
  placeholder: s,
5954
- className: p
5957
+ className: C
5955
5958
  }
5956
5959
  );
5957
5960
  case "Money":
@@ -5968,7 +5971,7 @@ function yt({
5968
5971
  onValue: n,
5969
5972
  name: r,
5970
5973
  placeholder: s,
5971
- className: p
5974
+ className: C
5972
5975
  }
5973
5976
  );
5974
5977
  case "Modal":
@@ -5985,8 +5988,8 @@ function yt({
5985
5988
  onValue: n,
5986
5989
  name: r || "",
5987
5990
  placeholder: s,
5988
- className: p,
5989
- options: w,
5991
+ className: C,
5992
+ options: j,
5990
5993
  module: g || ""
5991
5994
  }
5992
5995
  );
@@ -6097,16 +6100,16 @@ const Xo = (e) => {
6097
6100
  c = !1, r = r === "hour" ? "time" : "hour", d.body.current.setAttribute("active", r);
6098
6101
  }, x = (T) => {
6099
6102
  if (c) {
6100
- let k = Math.atan2(
6103
+ let y = Math.atan2(
6101
6104
  T.pageX - (s.x + 78),
6102
6105
  T.pageY - (s.y + 78)
6103
6106
  ) * (180 / Math.PI) * -1 + 180;
6104
- d[r].current.style.transform = "rotate(" + k + "deg)", r === "hour" ? (n = {
6107
+ d[r].current.style.transform = "rotate(" + y + "deg)", r === "hour" ? (n = {
6105
6108
  ...n,
6106
- h: K.Number(2, parseInt(String(k / 15), 10))
6109
+ h: K.Number(2, parseInt(String(y / 15), 10))
6107
6110
  }, d.hourText.current.textContent = n.h) : (n = {
6108
6111
  ...n,
6109
- m: K.Number(2, parseInt(String(k / 6), 10))
6112
+ m: K.Number(2, parseInt(String(y / 6), 10))
6110
6113
  }, d.timeText.current.textContent = n.m), e.onValue(n.h + ":" + n.m);
6111
6114
  }
6112
6115
  }, g = (T) => {
@@ -6116,16 +6119,16 @@ const Xo = (e) => {
6116
6119
  let R = parseInt(String(l / 50));
6117
6120
  if (_ !== R) {
6118
6121
  _ = R;
6119
- let k = parseInt(n.h, 10) + 1;
6120
- k = k > 23 ? 0 : k, n = { ...n, h: K.Number(2, k) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6122
+ let y = parseInt(n.h, 10) + 1;
6123
+ y = y > 23 ? 0 : y, n = { ...n, h: K.Number(2, y) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6121
6124
  }
6122
6125
  } else {
6123
6126
  l -= T.deltaY;
6124
6127
  let R = parseInt(String(l / 50));
6125
6128
  if (_ !== R) {
6126
6129
  _ = R;
6127
- let k = parseInt(n.h, 10) - 1;
6128
- k = k < 0 ? 23 : k, n = { ...n, h: K.Number(2, k) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6130
+ let y = parseInt(n.h, 10) - 1;
6131
+ y = y < 0 ? 23 : y, n = { ...n, h: K.Number(2, y) }, d.hourText.current.textContent = n.h, d[r].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6129
6132
  }
6130
6133
  }
6131
6134
  else if (T.deltaY > 0) {
@@ -6133,28 +6136,28 @@ const Xo = (e) => {
6133
6136
  let R = parseInt(String(l / 50));
6134
6137
  if (_ !== R) {
6135
6138
  _ = R;
6136
- let k = parseInt(n.m, 10) + 1;
6137
- k = k > 59 ? 0 : k, n = { ...n, m: K.Number(2, k) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6139
+ let y = parseInt(n.m, 10) + 1;
6140
+ y = y > 59 ? 0 : y, n = { ...n, m: K.Number(2, y) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6138
6141
  }
6139
6142
  } else {
6140
6143
  l -= T.deltaY;
6141
6144
  let R = parseInt(String(l / 50));
6142
6145
  if (_ !== R) {
6143
6146
  _ = R;
6144
- let k = parseInt(n.m, 10) - 1;
6145
- k = k < 0 ? 59 : k, n = { ...n, m: K.Number(2, k) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6147
+ let y = parseInt(n.m, 10) - 1;
6148
+ y = y < 0 ? 59 : y, n = { ...n, m: K.Number(2, y) }, d.timeText.current.textContent = n.m, d[r].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6146
6149
  }
6147
6150
  }
6148
6151
  e.onValue(n.h + ":" + n.m);
6149
- }, [C, p] = h.useState(!0), w = () => {
6150
- p(!1), e.onSave(n.h + ":" + n.m);
6151
- }, y = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, b = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6152
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: C ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6152
+ }, [p, C] = h.useState(!0), j = () => {
6153
+ C(!1), e.onSave(n.h + ":" + n.m);
6154
+ }, k = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, w = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
6155
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: p ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6153
6156
  /* @__PURE__ */ a.jsx(
6154
6157
  "div",
6155
6158
  {
6156
6159
  className: je.o,
6157
- onClick: () => w()
6160
+ onClick: () => j()
6158
6161
  },
6159
6162
  (/* @__PURE__ */ new Date()).getTime()
6160
6163
  ),
@@ -6167,7 +6170,7 @@ const Xo = (e) => {
6167
6170
  onMouseMove: x,
6168
6171
  onWheel: g,
6169
6172
  ref: d.body,
6170
- style: { top: y + "px", left: b + "px" },
6173
+ style: { top: k + "px", left: w + "px" },
6171
6174
  children: "xxxx"
6172
6175
  }
6173
6176
  )