scope360-core 0.0.222 → 0.0.223

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.
@@ -30011,6 +30011,21 @@ function Ba(t) {
30011
30011
  function on(t, e = 2) {
30012
30012
  return isNaN(+t) ? 0 : Math.floor(+t * 10 ** e) / 10 ** e;
30013
30013
  }
30014
+ function _5(t) {
30015
+ if (isNaN(+t))
30016
+ return 0;
30017
+ const e = parseFloat(String(t));
30018
+ if (Number.isInteger(e))
30019
+ return e;
30020
+ const n = e.toString(), s = n.indexOf(".");
30021
+ if (s === -1)
30022
+ return e;
30023
+ const r = n.slice(s + 1).search(/[^0]/);
30024
+ if (r === -1)
30025
+ return e;
30026
+ const o = 10 ** (r + 2);
30027
+ return Math.floor(e * o) / o;
30028
+ }
30014
30029
  function Zg(t) {
30015
30030
  let e = t.toString().split(".");
30016
30031
  return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e.join(".");
@@ -30020,19 +30035,19 @@ function Be(t, e, n = {}) {
30020
30035
  let o, l;
30021
30036
  return t ? (o = r === "$" ? Mu() : r, l = a === "$" ? Mu() : a, o + i.repeat(s) + l) : e;
30022
30037
  }
30023
- function _5(t) {
30038
+ function v5(t) {
30024
30039
  return t.reduce((e, n, s) => s === 0 ? `key=${encodeURIComponent(n.id)}` : e + `&key=${encodeURIComponent(n.id)}`, "");
30025
30040
  }
30026
- function v5(t) {
30041
+ function b5(t) {
30027
30042
  return new Date(t).getFullYear();
30028
30043
  }
30029
- function b5(t) {
30044
+ function w5(t) {
30030
30045
  return Oe.fromISO(t, { setZone: !0 }).toFormat("dd LLLL, y, TT");
30031
30046
  }
30032
30047
  function LV(t) {
30033
30048
  return Oe.fromISO(t, { setZone: !0 }).toFormat("dd/LL/y");
30034
30049
  }
30035
- function w5(t) {
30050
+ function k5(t) {
30036
30051
  return [
30037
30052
  "January",
30038
30053
  "February",
@@ -30048,13 +30063,13 @@ function w5(t) {
30048
30063
  "December"
30049
30064
  ][new Date(t).getMonth()];
30050
30065
  }
30051
- function k5(t) {
30066
+ function x5(t) {
30052
30067
  return new Date(t).getDate();
30053
30068
  }
30054
30069
  function Kg(t) {
30055
30070
  return Oe.fromISO(t, { setZone: !0 }).toFormat("cccc");
30056
30071
  }
30057
- function x5(t) {
30072
+ function S5(t) {
30058
30073
  const e = new Date(t), s = /* @__PURE__ */ new Date() - e;
30059
30074
  return Math.floor(s / (1e3 * 3600 * 24));
30060
30075
  }
@@ -30083,7 +30098,7 @@ const ft = (t, e = { isPercentage: !1, isFixed: !0, isPlus: !1 }) => {
30083
30098
  let s = Math.abs(t);
30084
30099
  return e.isFixed && (s = on(s)), e.isPercentage ? `${n}${s}%` : `${n}${Mu()}${on(s * Qf())}`;
30085
30100
  };
30086
- function S5(t, e) {
30101
+ function M5(t, e) {
30087
30102
  const n = +new Date(e) - +new Date(t), s = Math.floor(n / (1e3 * 60 * 60 * 24)), i = Math.floor(
30088
30103
  n % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
30089
30104
  ), r = Math.floor(n % (1e3 * 60 * 60) / (1e3 * 60)), a = Math.floor(n % (1e3 * 60) / 1e3);
@@ -30185,22 +30200,23 @@ export {
30185
30200
  zf as WidgetChips,
30186
30201
  g5 as WinrateWidget,
30187
30202
  FV as addSlashToPair,
30188
- S5 as calculateTimeDifference,
30203
+ M5 as calculateTimeDifference,
30189
30204
  y5 as firebaseConfig,
30190
30205
  LV as formatDate,
30191
30206
  Qf as getCurrencyRate,
30192
30207
  Mu as getCurrencySymbol,
30193
- k5 as getDate,
30208
+ x5 as getDate,
30194
30209
  Kg as getDay,
30195
- x5 as getDaysDifference,
30196
- v5 as getFullYear,
30197
- w5 as getMonth,
30210
+ S5 as getDaysDifference,
30211
+ b5 as getFullYear,
30212
+ k5 as getMonth,
30198
30213
  Be as maskData,
30199
30214
  Zg as numFormat,
30200
30215
  sh as scopeInstance,
30201
- b5 as toBaseDate,
30216
+ w5 as toBaseDate,
30217
+ _5 as toDynamicFix,
30202
30218
  on as toFix,
30203
- _5 as transformKeysToQuery,
30219
+ v5 as transformKeysToQuery,
30204
30220
  Jb as useToast,
30205
30221
  ft as withSign
30206
30222
  };