scope360-core 0.0.274 → 0.0.276

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.
@@ -1534,7 +1534,7 @@ const Iw = {
1534
1534
  }, null, 8, ["class"])
1535
1535
  ]));
1536
1536
  }
1537
- }, r5 = /* @__PURE__ */ ze(o1, [["__scopeId", "data-v-faa3e7eb"]]);
1537
+ }, r5 = /* @__PURE__ */ ze(o1, [["__scopeId", "data-v-720776d2"]]);
1538
1538
  function be(t) {
1539
1539
  const e = Object.prototype.toString.call(t);
1540
1540
  return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
@@ -30090,7 +30090,7 @@ function Wa(t) {
30090
30090
  );
30091
30091
  }
30092
30092
  function on(t, e = 2) {
30093
- return isNaN(+t) ? 0 : Math.floor(+t * 10 ** e) / 10 ** e;
30093
+ return isNaN(+t) ? 0 : Math.round(+t * 10 ** e) / 10 ** e;
30094
30094
  }
30095
30095
  function M5(t, e) {
30096
30096
  const n = parseFloat(t.entry_price), s = t.amount, i = t.multiplier, r = t.side;
@@ -30110,7 +30110,7 @@ function D5(t) {
30110
30110
  if (r === -1)
30111
30111
  return e;
30112
30112
  const o = 10 ** (r + 4);
30113
- return Math.floor(e * o) / o;
30113
+ return Math.round(e * o) / o;
30114
30114
  }
30115
30115
  function Zg(t) {
30116
30116
  let e = t.toString().split(".");
@@ -30194,10 +30194,6 @@ function E5(t, e) {
30194
30194
  ), r = Math.floor(n % (1e3 * 60 * 60) / (1e3 * 60)), a = Math.floor(n % (1e3 * 60) / 1e3), o = [];
30195
30195
  return s > 0 && o.push(`${s}D`), i > 0 && o.push(`${i}H`), r > 0 && o.push(`${r}M`), a > 0 && o.push(`${a}S`), o.join(" ");
30196
30196
  }
30197
- function $5(t, e) {
30198
- const n = +new Date(e) - +new Date(t), s = Math.floor(n / (1e3 * 60 * 60 * 24));
30199
- return s === 0 ? "blue-1" : s > 7 ? "blue-3" : "blue-2";
30200
- }
30201
30197
  function UV(t) {
30202
30198
  const e = /^(.*?)(BTC|ETH|USDT|USD|USDC)$/, n = t.match(e);
30203
30199
  if (n) {
@@ -30206,7 +30202,7 @@ function UV(t) {
30206
30202
  } else
30207
30203
  return t;
30208
30204
  }
30209
- function I5(t, e) {
30205
+ function $5(t, e) {
30210
30206
  let n = [], s = new Date(e, t, 1), i = new Date(e, t + 1, 0), r = i.getDate(), a = 1, o;
30211
30207
  for (s.getDay() === 1 ? o = 7 : s.getDay() === 0 ? (a = new Date(e, t, 0).getDate() - 6 + 1, o = 1) : (a = new Date(e, t, 0).getDate() + 1 - s.getDay() + 1, o = 7 - s.getDay() + 1, n.push({
30212
30208
  start: a,
@@ -30234,7 +30230,7 @@ function I5(t, e) {
30234
30230
  });
30235
30231
  });
30236
30232
  }
30237
- function N5(t, e, n) {
30233
+ function I5(t, e, n) {
30238
30234
  let s = new Date(t), i = new Date(e);
30239
30235
  s > i && ([s, i] = [i, s]);
30240
30236
  let r = [], a = new Date(s.getFullYear(), s.getMonth(), 1), o = 0;
@@ -30252,7 +30248,7 @@ function N5(t, e, n) {
30252
30248
  }
30253
30249
  return r;
30254
30250
  }
30255
- function L5(t, e, n) {
30251
+ function N5(t, e, n) {
30256
30252
  let s = new Date(t), i = new Date(e);
30257
30253
  s > i && ([s, i] = [i, s]);
30258
30254
  let r = [], a = s.getFullYear(), o = i.getFullYear(), l = 0;
@@ -30260,11 +30256,11 @@ function L5(t, e, n) {
30260
30256
  n ? r.push({ value: u, name: u.toString(), id: l }) : r.push(u.toString()), l = l + 1;
30261
30257
  return r;
30262
30258
  }
30263
- function F5(t, e) {
30259
+ function L5(t, e) {
30264
30260
  let i = new Date(t).getTime() - e * 24 * 60 * 60 * 1e3;
30265
30261
  return new Date(i).toISOString().split(".")[0] + "Z";
30266
30262
  }
30267
- function Y5(t) {
30263
+ function F5(t) {
30268
30264
  function e(s, i) {
30269
30265
  let r = [], a = new Date(i, s, 1), o = new Date(i, s + 1, 0), l = o.getDate(), u = 1, c;
30270
30266
  for (a.getDay() === 1 ? c = 7 : a.getDay() === 0 ? (u = new Date(i, s, 0).getDate() - 6 + 1, c = 1) : (u = new Date(i, s, 0).getDate() + 1 - a.getDay() + 1, c = 7 - a.getDay() + 1, r.push({
@@ -30297,7 +30293,7 @@ function Y5(t) {
30297
30293
  n.push(e(s, t));
30298
30294
  return n;
30299
30295
  }
30300
- function V5(t) {
30296
+ function Y5(t) {
30301
30297
  const e = t.map((s) => new Date(s));
30302
30298
  return new Date(
30303
30299
  Math.min(...e.map((s) => s.getTime()))
@@ -30386,7 +30382,7 @@ export {
30386
30382
  UV as addSlashToPair,
30387
30383
  M5 as calculatePNL,
30388
30384
  E5 as calculateTimeDifference,
30389
- V5 as findEarliestDate,
30385
+ Y5 as findEarliestDate,
30390
30386
  S5 as firebaseConfig,
30391
30387
  HV as formatDate,
30392
30388
  Jb as getCurrencyRate,
@@ -30394,17 +30390,16 @@ export {
30394
30390
  A5 as getDate,
30395
30391
  Kg as getDay,
30396
30392
  R5 as getDaysDifference,
30397
- I5 as getFullWeeksStartAndEndInMonth,
30393
+ $5 as getFullWeeksStartAndEndInMonth,
30398
30394
  O5 as getFullYear,
30399
30395
  C5 as getMonth,
30400
- N5 as getMonthsBetweenDates,
30401
- $5 as getTimeColor,
30402
- Y5 as getYearStructure,
30403
- L5 as getYearsBetweenDates,
30396
+ I5 as getMonthsBetweenDates,
30397
+ F5 as getYearStructure,
30398
+ N5 as getYearsBetweenDates,
30404
30399
  Fe as maskData,
30405
30400
  Zg as numFormat,
30406
30401
  ih as scopeInstance,
30407
- F5 as subtractDays,
30402
+ L5 as subtractDays,
30408
30403
  P5 as toBaseDate,
30409
30404
  D5 as toDynamicFix,
30410
30405
  on as toFix,