elcrm 0.7.2 → 0.7.3

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.
@@ -13,7 +13,8 @@ interface Input {
13
13
  view?: string;
14
14
  className?: string;
15
15
  module: string;
16
+ modal?: string;
16
17
  options?: any;
17
18
  }
18
- export default function ({ value, onValue, name, placeholder, title, error, hide, edit, show, active, after, view, module, options, }: Input): import("react/jsx-runtime").JSX.Element;
19
+ export default function ({ value, onValue, name, placeholder, title, error, hide, edit, show, active, after, view, modal, module, options, }: Input): import("react/jsx-runtime").JSX.Element;
19
20
  export {};
package/dist/index.es.js CHANGED
@@ -400,23 +400,23 @@ function ps() {
400
400
  {
401
401
  for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
402
402
  v[S - 1] = arguments[S];
403
- N("error", o, v);
403
+ R("error", o, v);
404
404
  }
405
405
  }
406
- function N(o, f, v) {
406
+ function R(o, f, v) {
407
407
  {
408
408
  var S = y.ReactDebugCurrentFrame, M = S.getStackAddendum();
409
409
  M !== "" && (f += "%s", v = v.concat([M]));
410
- var L = v.map(function(T) {
411
- return String(T);
410
+ var L = v.map(function(I) {
411
+ return String(I);
412
412
  });
413
413
  L.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, L);
414
414
  }
415
415
  }
416
- var I = !1, j = !1, F = !1, P = !1, B = !1, Y;
416
+ var N = !1, j = !1, F = !1, P = !1, B = !1, Y;
417
417
  Y = Symbol.for("react.module.reference");
418
418
  function V(o) {
419
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || B || o === r || o === d || o === u || P || o === x || I || j || F || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
419
+ return !!(typeof o == "string" || typeof o == "function" || o === s || o === i || B || o === r || o === d || o === u || P || o === x || N || j || F || typeof o == "object" && o !== null && (o.$$typeof === h || o.$$typeof === m || o.$$typeof === c || o.$$typeof === l || o.$$typeof === _ || // This needs to include all possible module reference object
420
420
  // types supported by any Flight configuration anywhere since
421
421
  // we don't know which Flight build this will end up being used
422
422
  // with.
@@ -467,9 +467,9 @@ function ps() {
467
467
  var S = o.displayName || null;
468
468
  return S !== null ? S : W(o.type) || "Memo";
469
469
  case h: {
470
- var M = o, L = M._payload, T = M._init;
470
+ var M = o, L = M._payload, I = M._init;
471
471
  try {
472
- return W(T(L));
472
+ return W(I(L));
473
473
  } catch {
474
474
  return null;
475
475
  }
@@ -574,27 +574,27 @@ function ps() {
574
574
  L = Xe.current, Xe.current = null, Yn();
575
575
  try {
576
576
  if (f) {
577
- var T = function() {
577
+ var I = function() {
578
578
  throw Error();
579
579
  };
580
- if (Object.defineProperty(T.prototype, "props", {
580
+ if (Object.defineProperty(I.prototype, "props", {
581
581
  set: function() {
582
582
  throw Error();
583
583
  }
584
584
  }), typeof Reflect == "object" && Reflect.construct) {
585
585
  try {
586
- Reflect.construct(T, []);
586
+ Reflect.construct(I, []);
587
587
  } catch (J) {
588
588
  S = J;
589
589
  }
590
- Reflect.construct(o, [], T);
590
+ Reflect.construct(o, [], I);
591
591
  } else {
592
592
  try {
593
- T.call();
593
+ I.call();
594
594
  } catch (J) {
595
595
  S = J;
596
596
  }
597
- o.call(T.prototype);
597
+ o.call(I.prototype);
598
598
  }
599
599
  } else {
600
600
  try {
@@ -606,17 +606,17 @@ function ps() {
606
606
  }
607
607
  } catch (J) {
608
608
  if (J && S && typeof J.stack == "string") {
609
- for (var R = J.stack.split(`
609
+ for (var T = J.stack.split(`
610
610
  `), H = S.stack.split(`
611
- `), Z = R.length - 1, K = H.length - 1; Z >= 1 && K >= 0 && R[Z] !== H[K]; )
611
+ `), Z = T.length - 1, K = H.length - 1; Z >= 1 && K >= 0 && T[Z] !== H[K]; )
612
612
  K--;
613
613
  for (; Z >= 1 && K >= 0; Z--, K--)
614
- if (R[Z] !== H[K]) {
614
+ if (T[Z] !== H[K]) {
615
615
  if (Z !== 1 || K !== 1)
616
616
  do
617
- if (Z--, K--, K < 0 || R[Z] !== H[K]) {
617
+ if (Z--, K--, K < 0 || T[Z] !== H[K]) {
618
618
  var te = `
619
- ` + R[Z].replace(" at new ", " at ");
619
+ ` + T[Z].replace(" at new ", " at ");
620
620
  return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" && Ge.set(o, te), te;
621
621
  }
622
622
  while (Z >= 1 && K >= 0);
@@ -676,19 +676,19 @@ function ps() {
676
676
  function Qn(o, f, v, S, M) {
677
677
  {
678
678
  var L = Function.call.bind(Re);
679
- for (var T in o)
680
- if (L(o, T)) {
681
- var R = void 0;
679
+ for (var I in o)
680
+ if (L(o, I)) {
681
+ var T = void 0;
682
682
  try {
683
- if (typeof o[T] != "function") {
684
- var H = Error((S || "React class") + ": " + v + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
683
+ if (typeof o[I] != "function") {
684
+ var H = Error((S || "React class") + ": " + v + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
685
685
  throw H.name = "Invariant Violation", H;
686
686
  }
687
- R = o[T](f, T, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
687
+ T = o[I](f, I, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
688
688
  } catch (Z) {
689
- R = Z;
689
+ T = Z;
690
690
  }
691
- R && !(R instanceof Error) && (Ke(M), 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, T, typeof R), Ke(null)), R instanceof Error && !(R.message in Zt) && (Zt[R.message] = !0, Ke(M), b("Failed %s type: %s", v, R.message), Ke(null));
691
+ T && !(T instanceof Error) && (Ke(M), 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 T), Ke(null)), T instanceof Error && !(T.message in Zt) && (Zt[T.message] = !0, Ke(M), b("Failed %s type: %s", v, T.message), Ke(null));
692
692
  }
693
693
  }
694
694
  }
@@ -767,51 +767,51 @@ function ps() {
767
767
  });
768
768
  }
769
769
  }
770
- var ca = function(o, f, v, S, M, L, T) {
771
- var R = {
770
+ var ca = function(o, f, v, S, M, L, I) {
771
+ var T = {
772
772
  // This tag allows us to uniquely identify this as a React Element
773
773
  $$typeof: t,
774
774
  // Built-in properties that belong on the element
775
775
  type: o,
776
776
  key: f,
777
777
  ref: v,
778
- props: T,
778
+ props: I,
779
779
  // Record the component responsible for creating this element.
780
780
  _owner: L
781
781
  };
782
- return R._store = {}, Object.defineProperty(R._store, "validated", {
782
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
783
783
  configurable: !1,
784
784
  enumerable: !1,
785
785
  writable: !0,
786
786
  value: !1
787
- }), Object.defineProperty(R, "_self", {
787
+ }), Object.defineProperty(T, "_self", {
788
788
  configurable: !1,
789
789
  enumerable: !1,
790
790
  writable: !1,
791
791
  value: S
792
- }), Object.defineProperty(R, "_source", {
792
+ }), Object.defineProperty(T, "_source", {
793
793
  configurable: !1,
794
794
  enumerable: !1,
795
795
  writable: !1,
796
796
  value: M
797
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
797
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
798
798
  };
799
799
  function da(o, f, v, S, M) {
800
800
  {
801
- var L, T = {}, R = null, H = null;
802
- v !== void 0 && (Wt(v), R = "" + v), ra(f) && (Wt(f.key), R = "" + f.key), sa(f) && (H = f.ref, ia(f, M));
801
+ var L, I = {}, T = null, H = null;
802
+ v !== void 0 && (Wt(v), T = "" + v), ra(f) && (Wt(f.key), T = "" + f.key), sa(f) && (H = f.ref, ia(f, M));
803
803
  for (L in f)
804
- Re.call(f, L) && !aa.hasOwnProperty(L) && (T[L] = f[L]);
804
+ Re.call(f, L) && !aa.hasOwnProperty(L) && (I[L] = f[L]);
805
805
  if (o && o.defaultProps) {
806
806
  var Z = o.defaultProps;
807
807
  for (L in Z)
808
- T[L] === void 0 && (T[L] = Z[L]);
808
+ I[L] === void 0 && (I[L] = Z[L]);
809
809
  }
810
- if (R || H) {
810
+ if (T || H) {
811
811
  var K = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
812
- R && oa(T, K), H && la(T, K);
812
+ T && oa(I, K), H && la(I, K);
813
813
  }
814
- return ca(o, R, H, M, S, Ne.current, T);
814
+ return ca(o, T, H, M, S, Ne.current, I);
815
815
  }
816
816
  }
817
817
  var at = y.ReactCurrentOwner, Ut = y.ReactDebugCurrentFrame;
@@ -882,8 +882,8 @@ Check the top-level render call using <` + v + ">.");
882
882
  else if (o) {
883
883
  var M = w(o);
884
884
  if (typeof M == "function" && M !== o.entries)
885
- for (var L = M.call(o), T; !(T = L.next()).done; )
886
- rt(T.value) && qt(T.value, f);
885
+ for (var L = M.call(o), I; !(I = L.next()).done; )
886
+ rt(I.value) && qt(I.value, f);
887
887
  }
888
888
  }
889
889
  }
@@ -927,19 +927,19 @@ Check the top-level render call using <` + v + ">.");
927
927
  var Xt = {};
928
928
  function Qt(o, f, v, S, M, L) {
929
929
  {
930
- var T = V(o);
931
- if (!T) {
932
- var R = "";
933
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
930
+ var I = V(o);
931
+ if (!I) {
932
+ var T = "";
933
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
934
934
  var H = _a();
935
- H ? R += H : R += Yt();
935
+ H ? T += H : T += Yt();
936
936
  var Z;
937
- o === null ? Z = "null" : tt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (W(o.type) || "Unknown") + " />", R = " 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, R);
937
+ o === null ? Z = "null" : tt(o) ? Z = "array" : o !== void 0 && o.$$typeof === t ? (Z = "<" + (W(o.type) || "Unknown") + " />", T = " 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, T);
938
938
  }
939
939
  var K = da(o, f, v, M, L);
940
940
  if (K == null)
941
941
  return K;
942
- if (T) {
942
+ if (I) {
943
943
  var te = f.children;
944
944
  if (te !== void 0)
945
945
  if (S)
@@ -1574,16 +1574,16 @@ function ir(e) {
1574
1574
  return { day: ("" + n.getFullYear()).slice(-2) + "" + ("0" + (n.getMonth() + 1)).slice(-2) + ("0" + n.getDate()).slice(-2), name: n.getDate() + " " + t[n.getMonth()] };
1575
1575
  }
1576
1576
  const or = (e) => {
1577
- function t(N, I) {
1577
+ function t(R, N) {
1578
1578
  var j, P, F;
1579
- N = N ?? "", I = I ?? 1;
1580
- for (var j = [], F = 0, P = N.length; F < P; )
1581
- j.push(N.slice(F, F += I));
1579
+ R = R ?? "", N = N ?? 1;
1580
+ for (var j = [], F = 0, P = R.length; F < P; )
1581
+ j.push(R.slice(F, F += N));
1582
1582
  return j;
1583
1583
  }
1584
- function n(N, I) {
1584
+ function n(R, N) {
1585
1585
  var j = [2, 0, 1, 1, 1, 2];
1586
- return I[N > 4 && N < 20 ? 2 : j[Math.min(N, 5)]];
1586
+ return N[R > 4 && R < 20 ? 2 : j[Math.min(R, 5)]];
1587
1587
  }
1588
1588
  var s = {
1589
1589
  null: "ноль",
@@ -3338,7 +3338,7 @@ function $e({
3338
3338
  }, y = (P) => {
3339
3339
  P.key === "Enter" && P.preventDefault();
3340
3340
  }, b = (P) => {
3341
- }, N = (P) => {
3341
+ }, R = (P) => {
3342
3342
  P.preventDefault(), navigator.clipboard.writeText(P.target.textContent).then(
3343
3343
  function() {
3344
3344
  Le.Copy("Данные в буфер обмене");
@@ -3350,14 +3350,14 @@ function $e({
3350
3350
  };
3351
3351
  if (!(l && _) && !u || !(l && _) && C)
3352
3352
  return "";
3353
- const I = {};
3354
- I.field = "input", p && (I.className = p);
3353
+ const N = {};
3354
+ N.field = "input", p && (N.className = p);
3355
3355
  const j = {};
3356
3356
  s && (j.placeholder = s), j.edit = (l && _) + "";
3357
3357
  const F = (P) => {
3358
3358
  pe.Blur(P), x && x({ value: P.target.textContent, name: n });
3359
3359
  };
3360
- return /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
3360
+ return /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
3361
3361
  r ? /* @__PURE__ */ a.jsx("dt", { children: r }) : "",
3362
3362
  /* @__PURE__ */ a.jsx(
3363
3363
  "dd",
@@ -3366,7 +3366,7 @@ function $e({
3366
3366
  onInput: w,
3367
3367
  onBlur: F,
3368
3368
  onKeyDown: y,
3369
- onContextMenu: N,
3369
+ onContextMenu: R,
3370
3370
  contentEditable: l && _ ? "plaintext-only" : "false",
3371
3371
  suppressContentEditableWarning: !0,
3372
3372
  ...j,
@@ -3763,7 +3763,7 @@ const Vo = (e) => {
3763
3763
  ), p();
3764
3764
  }, b = (j, F) => {
3765
3765
  F = j > 12 ? F + 1 : j < 1 ? F - 1 : F, j = j > 12 ? 1 : j < 1 ? 12 : j, _({ y: F, m: j });
3766
- }, N = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, I = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3766
+ }, R = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, N = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3767
3767
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3768
3768
  /* @__PURE__ */ a.jsx(
3769
3769
  "div",
@@ -3777,7 +3777,7 @@ const Vo = (e) => {
3777
3777
  "div",
3778
3778
  {
3779
3779
  className: je.c,
3780
- style: { top: N + "px", left: I + "px" },
3780
+ style: { top: R + "px", left: N + "px" },
3781
3781
  children: [
3782
3782
  /* @__PURE__ */ a.jsxs("s", { children: [
3783
3783
  /* @__PURE__ */ a.jsx("i", { "data-icon": "F021", onClick: () => w() }),
@@ -3817,16 +3817,20 @@ function Rt({
3817
3817
  active: d = !0,
3818
3818
  after: u = "",
3819
3819
  view: m,
3820
- module: h,
3821
- options: x
3820
+ modal: h,
3821
+ module: x,
3822
+ options: p
3822
3823
  }) {
3823
- let [p, C] = g.useState(e), w = (y) => {
3824
- wt.Open(h, n, {
3825
- callback: (b) => {
3826
- t && t({ value: b, name: n }), C(b);
3824
+ let [C, w] = g.useState(e), y = (b) => {
3825
+ if (!h)
3826
+ return console.error("modal - empty");
3827
+ let R = h.split(".");
3828
+ wt.Open(R[0], R[1], {
3829
+ callback: (N) => {
3830
+ t && t({ value: N, name: n }), w(N);
3827
3831
  },
3828
3832
  onValue: t,
3829
- options: x,
3833
+ options: p,
3830
3834
  name: n,
3831
3835
  value: e
3832
3836
  });
@@ -3836,11 +3840,11 @@ function Rt({
3836
3840
  /* @__PURE__ */ a.jsx(
3837
3841
  "dd",
3838
3842
  {
3839
- onClick: w,
3843
+ onClick: y,
3840
3844
  "data-edit": (l && d) + "",
3841
3845
  "data-placeholder": s,
3842
3846
  "data-after": u,
3843
- children: p
3847
+ children: C
3844
3848
  }
3845
3849
  ),
3846
3850
  i ? /* @__PURE__ */ a.jsx("dt", { children: i }) : ""
@@ -4069,13 +4073,13 @@ function Tt({
4069
4073
  s = s !== void 0 ? s : !0, t = t !== void 0 ? t : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && t), d = d !== void 0 ? d : "", n = n !== void 0 ? n : 99;
4070
4074
  let y = !1, b = (B) => {
4071
4075
  e && e({ value: B.target.textContent, name: m });
4072
- }, N = (B) => {
4076
+ }, R = (B) => {
4073
4077
  if (!(y && B.which === 86)) {
4074
4078
  if (B.which === 17 || B.which === 91)
4075
4079
  return y = !0;
4076
4080
  B.key !== "Backspace" && (B.target.textContent.length === n && B.preventDefault(), B.key === "Enter" && B.preventDefault(), isNaN(parseInt(String.fromCharCode(B.which))) && B.preventDefault());
4077
4081
  }
4078
- }, I = (B) => {
4082
+ }, N = (B) => {
4079
4083
  if (B.which === 17 || B.which === 91)
4080
4084
  return y = !1;
4081
4085
  }, j = (B) => {
@@ -4100,8 +4104,8 @@ function Tt({
4100
4104
  ...P,
4101
4105
  onPaste: j,
4102
4106
  onInput: b,
4103
- onKeyDown: N,
4104
- onKeyUp: I,
4107
+ onKeyDown: R,
4108
+ onKeyUp: N,
4105
4109
  suppressContentEditableWarning: !0,
4106
4110
  children: _
4107
4111
  }
@@ -5569,7 +5573,7 @@ function It({
5569
5573
  }).catch(($) => {
5570
5574
  console.log("Something went wrong", $);
5571
5575
  });
5572
- }, N = (V) => {
5576
+ }, R = (V) => {
5573
5577
  let $ = 0, ae = "", W = V.replace(/\D/g, "");
5574
5578
  W === "" && (C = !0);
5575
5579
  let le = W.split(""), q = "";
@@ -5586,7 +5590,7 @@ function It({
5586
5590
  return Ee.length >= W.length && (W = Ee), { q: p.replace(/[_\d]/g, function() {
5587
5591
  return W.charAt($++) || "_";
5588
5592
  }), i: $, v: W, f: ae };
5589
- }, I = (V) => {
5593
+ }, N = (V) => {
5590
5594
  V.preventDefault(), navigator.clipboard.writeText(V.target.textContent.replace(/\D/g, "")).then(
5591
5595
  function() {
5592
5596
  Le.Copy("Данные в буфер обмене");
@@ -5595,8 +5599,8 @@ function It({
5595
5599
  console.error("Async: Could not copy text: ", $);
5596
5600
  }
5597
5601
  );
5598
- }, j = N(e), F = (V) => {
5599
- let $ = N(V.target.textContent);
5602
+ }, j = R(e), F = (V) => {
5603
+ let $ = R(V.target.textContent);
5600
5604
  V.target.textContent = $.q, $.i = $.q.lastIndexOf($.v.substr(-1)), $.i < $.q.length && $.q !== p ? $.i++ : $.i = $.q.indexOf("_"), y($.i, V.target), t && t({ value: $.q.replace(/\D/g, ""), name: n });
5601
5605
  }, P = (V) => {
5602
5606
  V.key === "Enter" && V.preventDefault();
@@ -5613,7 +5617,7 @@ function It({
5613
5617
  onPaste: b,
5614
5618
  onInput: F,
5615
5619
  onKeyDown: P,
5616
- onContextMenu: I,
5620
+ onContextMenu: N,
5617
5621
  suppressContentEditableWarning: !0,
5618
5622
  children: j.q
5619
5623
  }
@@ -5672,18 +5676,18 @@ function Dt({
5672
5676
  }) {
5673
5677
  const h = g.useRef();
5674
5678
  r = !!(r && (i === "" || l[i].n === void 0)) && !(n && s);
5675
- let p = i !== void 0 && i !== "" ? l[i].n : i, C = (N) => {
5676
- h.current.textContent = l[N].n, c && c({ value: N, name: d });
5677
- }, w = (N) => {
5679
+ let p = i !== void 0 && i !== "" ? l[i].n : i, C = (R) => {
5680
+ h.current.textContent = l[R].n, c && c({ value: R, name: d });
5681
+ }, w = (R) => {
5678
5682
  if (!(n && s))
5679
5683
  return;
5680
- const I = N.target.getBoundingClientRect();
5684
+ const N = R.target.getBoundingClientRect();
5681
5685
  we.setListener(
5682
5686
  "form",
5683
5687
  /* @__PURE__ */ a.jsx(
5684
5688
  Yo,
5685
5689
  {
5686
- parent: I,
5690
+ parent: N,
5687
5691
  onValue: C,
5688
5692
  view: m,
5689
5693
  options: l
@@ -6086,11 +6090,11 @@ const qo = (e) => {
6086
6090
  c = !0;
6087
6091
  }, m = () => {
6088
6092
  c = !1, s = s === "hour" ? "time" : "hour", d.body.current.setAttribute("active", s);
6089
- }, h = (N) => {
6093
+ }, h = (R) => {
6090
6094
  if (c) {
6091
6095
  let j = Math.atan2(
6092
- N.pageX - (r.x + 78),
6093
- N.pageY - (r.y + 78)
6096
+ R.pageX - (r.x + 78),
6097
+ R.pageY - (r.y + 78)
6094
6098
  ) * (180 / Math.PI) * -1 + 180;
6095
6099
  d[s].current.style.transform = "rotate(" + j + "deg)", s === "hour" ? (n = {
6096
6100
  ...n,
@@ -6100,38 +6104,38 @@ const qo = (e) => {
6100
6104
  m: G.Number(2, parseInt(String(j / 6), 10))
6101
6105
  }, d.timeText.current.textContent = n.m), e.onValue(n.h + ":" + n.m);
6102
6106
  }
6103
- }, x = (N) => {
6107
+ }, x = (R) => {
6104
6108
  if (s === "hour")
6105
- if (N.deltaY > 0) {
6106
- l += N.deltaY;
6107
- let I = parseInt(String(l / 50));
6108
- if (_ !== I) {
6109
- _ = I;
6109
+ if (R.deltaY > 0) {
6110
+ l += R.deltaY;
6111
+ let N = parseInt(String(l / 50));
6112
+ if (_ !== N) {
6113
+ _ = N;
6110
6114
  let j = parseInt(n.h, 10) + 1;
6111
6115
  j = j > 23 ? 0 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[s].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6112
6116
  }
6113
6117
  } else {
6114
- l -= N.deltaY;
6115
- let I = parseInt(String(l / 50));
6116
- if (_ !== I) {
6117
- _ = I;
6118
+ l -= R.deltaY;
6119
+ let N = parseInt(String(l / 50));
6120
+ if (_ !== N) {
6121
+ _ = N;
6118
6122
  let j = parseInt(n.h, 10) - 1;
6119
6123
  j = j < 0 ? 23 : j, n = { ...n, h: G.Number(2, j) }, d.hourText.current.textContent = n.h, d[s].current.style.transform = "rotate(" + n.h * 15 + "deg)";
6120
6124
  }
6121
6125
  }
6122
- else if (N.deltaY > 0) {
6123
- l += N.deltaY;
6124
- let I = parseInt(String(l / 50));
6125
- if (_ !== I) {
6126
- _ = I;
6126
+ else if (R.deltaY > 0) {
6127
+ l += R.deltaY;
6128
+ let N = parseInt(String(l / 50));
6129
+ if (_ !== N) {
6130
+ _ = N;
6127
6131
  let j = parseInt(n.m, 10) + 1;
6128
6132
  j = j > 59 ? 0 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[s].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6129
6133
  }
6130
6134
  } else {
6131
- l -= N.deltaY;
6132
- let I = parseInt(String(l / 50));
6133
- if (_ !== I) {
6134
- _ = I;
6135
+ l -= R.deltaY;
6136
+ let N = parseInt(String(l / 50));
6137
+ if (_ !== N) {
6138
+ _ = N;
6135
6139
  let j = parseInt(n.m, 10) - 1;
6136
6140
  j = j < 0 ? 59 : j, n = { ...n, m: G.Number(2, j) }, d.timeText.current.textContent = n.m, d[s].current.style.transform = "rotate(" + n.m * 6 + "deg)";
6137
6141
  }