scope360-core 0.0.222 → 0.0.224

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.
@@ -21136,7 +21136,7 @@ const ev = /* @__PURE__ */ OR("line", Ll), PR = { class: "chart-container" }, tv
21136
21136
  }, null, 8, ["data", "isMask"])
21137
21137
  ]));
21138
21138
  }
21139
- }, l5 = /* @__PURE__ */ Ue(IR, [["__scopeId", "data-v-af1e1a1d"]]), nv = (t) => (xn("data-v-d57099e1"), t = t(), Sn(), t), NR = { class: "balance-widget" }, LR = { class: "balance-part" }, FR = { class: "balance-part__top" }, YR = { class: "balance-part__title-wrapper" }, VR = /* @__PURE__ */ nv(() => /* @__PURE__ */ A("div", { class: "balance-part__title" }, "Balance", -1)), BR = { class: "balance-part__content" }, WR = { class: "balance-part__content__wrapper" }, zR = { class: "balance-part__content__count" }, HR = { class: "balance-part__content__bitcoin" }, UR = {
21139
+ }, l5 = /* @__PURE__ */ Ue(IR, [["__scopeId", "data-v-af1e1a1d"]]), nv = (t) => (xn("data-v-313ab42e"), t = t(), Sn(), t), NR = { class: "balance-widget" }, LR = { class: "balance-part" }, FR = { class: "balance-part__top" }, YR = { class: "balance-part__title-wrapper" }, VR = /* @__PURE__ */ nv(() => /* @__PURE__ */ A("div", { class: "balance-part__title" }, "Balance", -1)), BR = { class: "balance-part__content" }, WR = { class: "balance-part__content__wrapper" }, zR = { class: "balance-part__content__count" }, HR = { class: "balance-part__content__bitcoin" }, UR = {
21140
21140
  key: 0,
21141
21141
  class: "devider"
21142
21142
  }, jR = {
@@ -21219,7 +21219,7 @@ const ev = /* @__PURE__ */ OR("line", Ll), PR = { class: "chart-container" }, tv
21219
21219
  ZR,
21220
21220
  ce(k(ds), { alternative: "" }, {
21221
21221
  default: Se(() => [
21222
- ot(" In this widget you can set your profit goal to $ for a certain period. This will help you better understand where you should stop or be more attentive. ")
21222
+ ot(" In this widget, set your desired balance growth target in $ or % for a specific period. It will display your PNL relative to the goal, helping you know when to stop or pay closer attention. ")
21223
21223
  ]),
21224
21224
  _: 1
21225
21225
  })
@@ -21232,7 +21232,10 @@ const ev = /* @__PURE__ */ OR("line", Ll), PR = { class: "chart-container" }, tv
21232
21232
  ])
21233
21233
  ]),
21234
21234
  A("div", KR, [
21235
- A("div", XR, re(k(Be)(t.isMaskPersonalTarget, k(ft)(t.currentProfit, { isPercentage: t.isPercentage, isFixed: !0 }), { prefix: "$", repeat: 5 })), 1),
21235
+ A("div", XR, re(k(Be)(t.isMaskPersonalTarget, k(ft)(t.currentProfit, { isPercentage: t.isPercentage, isFixed: !0 }), {
21236
+ prefix: "$",
21237
+ repeat: 5
21238
+ })), 1),
21236
21239
  A("div", QR, "/ " + re(k(Be)(t.isMaskPersonalTarget, k(ft)(t.profit, { isPercentage: t.isPercentage, isFixed: !0 }))), 1)
21237
21240
  ]),
21238
21241
  ce(k(E3), {
@@ -21245,7 +21248,7 @@ const ev = /* @__PURE__ */ OR("line", Ll), PR = { class: "chart-container" }, tv
21245
21248
  ]))
21246
21249
  ]));
21247
21250
  }
21248
- }, u5 = /* @__PURE__ */ Ue(JR, [["__scopeId", "data-v-d57099e1"]]), Wu = (t) => (xn("data-v-105f730b"), t = t(), Sn(), t), eE = { class: "calendar-widget" }, tE = { class: "calendar-widget__calendar" }, nE = { class: "calendar-widget__top" }, sE = { class: "calendar-widget__title-wrapper" }, iE = /* @__PURE__ */ Wu(() => /* @__PURE__ */ A("div", { class: "calendar-widget__title" }, "Calendar", -1)), rE = { class: "stat-calendar" }, aE = { class: "stat-calendar__week-days" }, oE = {
21251
+ }, u5 = /* @__PURE__ */ Ue(JR, [["__scopeId", "data-v-313ab42e"]]), Wu = (t) => (xn("data-v-105f730b"), t = t(), Sn(), t), eE = { class: "calendar-widget" }, tE = { class: "calendar-widget__calendar" }, nE = { class: "calendar-widget__top" }, sE = { class: "calendar-widget__title-wrapper" }, iE = /* @__PURE__ */ Wu(() => /* @__PURE__ */ A("div", { class: "calendar-widget__title" }, "Calendar", -1)), rE = { class: "stat-calendar" }, aE = { class: "stat-calendar__week-days" }, oE = {
21249
21252
  key: 0,
21250
21253
  class: "stat-calendar__row-wrapper"
21251
21254
  }, lE = { class: "stat-calendar__row" }, uE = ["onClick"], cE = /* @__PURE__ */ Wu(() => /* @__PURE__ */ A("div", { class: "calendar-widget__divider" }, null, -1)), dE = {
@@ -30011,6 +30014,21 @@ function Ba(t) {
30011
30014
  function on(t, e = 2) {
30012
30015
  return isNaN(+t) ? 0 : Math.floor(+t * 10 ** e) / 10 ** e;
30013
30016
  }
30017
+ function _5(t) {
30018
+ if (isNaN(+t))
30019
+ return 0;
30020
+ const e = parseFloat(String(t));
30021
+ if (Number.isInteger(e))
30022
+ return e;
30023
+ const n = e.toString(), s = n.indexOf(".");
30024
+ if (s === -1)
30025
+ return e;
30026
+ const r = n.slice(s + 1).search(/[^0]/);
30027
+ if (r === -1)
30028
+ return e;
30029
+ const o = 10 ** (r + 2);
30030
+ return Math.floor(e * o) / o;
30031
+ }
30014
30032
  function Zg(t) {
30015
30033
  let e = t.toString().split(".");
30016
30034
  return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e.join(".");
@@ -30020,19 +30038,19 @@ function Be(t, e, n = {}) {
30020
30038
  let o, l;
30021
30039
  return t ? (o = r === "$" ? Mu() : r, l = a === "$" ? Mu() : a, o + i.repeat(s) + l) : e;
30022
30040
  }
30023
- function _5(t) {
30041
+ function v5(t) {
30024
30042
  return t.reduce((e, n, s) => s === 0 ? `key=${encodeURIComponent(n.id)}` : e + `&key=${encodeURIComponent(n.id)}`, "");
30025
30043
  }
30026
- function v5(t) {
30044
+ function b5(t) {
30027
30045
  return new Date(t).getFullYear();
30028
30046
  }
30029
- function b5(t) {
30047
+ function w5(t) {
30030
30048
  return Oe.fromISO(t, { setZone: !0 }).toFormat("dd LLLL, y, TT");
30031
30049
  }
30032
30050
  function LV(t) {
30033
30051
  return Oe.fromISO(t, { setZone: !0 }).toFormat("dd/LL/y");
30034
30052
  }
30035
- function w5(t) {
30053
+ function k5(t) {
30036
30054
  return [
30037
30055
  "January",
30038
30056
  "February",
@@ -30048,13 +30066,13 @@ function w5(t) {
30048
30066
  "December"
30049
30067
  ][new Date(t).getMonth()];
30050
30068
  }
30051
- function k5(t) {
30069
+ function x5(t) {
30052
30070
  return new Date(t).getDate();
30053
30071
  }
30054
30072
  function Kg(t) {
30055
30073
  return Oe.fromISO(t, { setZone: !0 }).toFormat("cccc");
30056
30074
  }
30057
- function x5(t) {
30075
+ function S5(t) {
30058
30076
  const e = new Date(t), s = /* @__PURE__ */ new Date() - e;
30059
30077
  return Math.floor(s / (1e3 * 3600 * 24));
30060
30078
  }
@@ -30083,7 +30101,7 @@ const ft = (t, e = { isPercentage: !1, isFixed: !0, isPlus: !1 }) => {
30083
30101
  let s = Math.abs(t);
30084
30102
  return e.isFixed && (s = on(s)), e.isPercentage ? `${n}${s}%` : `${n}${Mu()}${on(s * Qf())}`;
30085
30103
  };
30086
- function S5(t, e) {
30104
+ function M5(t, e) {
30087
30105
  const n = +new Date(e) - +new Date(t), s = Math.floor(n / (1e3 * 60 * 60 * 24)), i = Math.floor(
30088
30106
  n % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
30089
30107
  ), r = Math.floor(n % (1e3 * 60 * 60) / (1e3 * 60)), a = Math.floor(n % (1e3 * 60) / 1e3);
@@ -30185,22 +30203,23 @@ export {
30185
30203
  zf as WidgetChips,
30186
30204
  g5 as WinrateWidget,
30187
30205
  FV as addSlashToPair,
30188
- S5 as calculateTimeDifference,
30206
+ M5 as calculateTimeDifference,
30189
30207
  y5 as firebaseConfig,
30190
30208
  LV as formatDate,
30191
30209
  Qf as getCurrencyRate,
30192
30210
  Mu as getCurrencySymbol,
30193
- k5 as getDate,
30211
+ x5 as getDate,
30194
30212
  Kg as getDay,
30195
- x5 as getDaysDifference,
30196
- v5 as getFullYear,
30197
- w5 as getMonth,
30213
+ S5 as getDaysDifference,
30214
+ b5 as getFullYear,
30215
+ k5 as getMonth,
30198
30216
  Be as maskData,
30199
30217
  Zg as numFormat,
30200
30218
  sh as scopeInstance,
30201
- b5 as toBaseDate,
30219
+ w5 as toBaseDate,
30220
+ _5 as toDynamicFix,
30202
30221
  on as toFix,
30203
- _5 as transformKeysToQuery,
30222
+ v5 as transformKeysToQuery,
30204
30223
  Jb as useToast,
30205
30224
  ft as withSign
30206
30225
  };