scope360-core 0.0.555 → 0.0.557

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.
@@ -14395,11 +14395,14 @@ const CA = { class: "long-short" }, qA = { class: "long-short__item__text" }, FA
14395
14395
  return `${Ih(rt(Math.abs(e.data[a]), 4))} ${_v(e.data.pair).split("/")[0]}`;
14396
14396
  case "rr":
14397
14397
  return `${e.data[a] === null ? "0" : rt(e.data[a])}R`;
14398
+ case "commission":
14399
+ return `${rt(e.data[a])}`;
14400
+ case "short_count":
14401
+ case "long_count":
14402
+ return e.data[a];
14398
14403
  }
14399
14404
  }, r = W(
14400
- () => n.filter(
14401
- (a) => a.field === "holdtime" ? e.data.created_at && e.data.closed_at && e.data.show_holdtime : a.field === "rr" && e.data.rr === null ? !0 : e.data[a.field]
14402
- )
14405
+ () => n.value.filter((a) => a.field === "holdtime" ? e.data.created_at && e.data.closed_at && e.data.show_holdtime : e.data[a.field] !== void 0)
14403
14406
  );
14404
14407
  return (a, o) => (w(), T("div", {
14405
14408
  id: "shared-pos",
@@ -14483,7 +14486,9 @@ const CA = { class: "long-short" }, qA = { class: "long-short__item__text" }, FA
14483
14486
  b("div", {
14484
14487
  class: ne([
14485
14488
  "share__right",
14486
- { "-no-outer": !(t.data.exit_price && t.data.entry_price) }
14489
+ {
14490
+ "-no-outer": !(t.data.exit_price && t.data.entry_price) && !(t.isDaily && t.data.trades_lose_count !== void 0 && t.data.trades_win_count !== void 0)
14491
+ }
14487
14492
  ])
14488
14493
  }, [
14489
14494
  t.data.exit_price && t.data.entry_price ? (w(), T("div", tC, [
@@ -14501,13 +14506,13 @@ const CA = { class: "long-short" }, qA = { class: "long-short__item__text" }, FA
14501
14506
  ])) : I("", !0),
14502
14507
  t.data.exit_price && t.data.entry_price ? (w(), T("div", aC)) : I("", !0),
14503
14508
  t.data.exit_price ? (w(), T("div", oC, [
14504
- o[4] || (o[4] = ux('<div class="share__outer__top" data-v-8d1100b9><div class="share__outer__icon-wrapper" data-v-8d1100b9><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" data-v-8d1100b9><path d="M8.97689 4.45226V8.97607M8.97689 8.97607H4.45308M8.97689 8.97607L3.14355 3.14274" stroke="#8E8E93" stroke-width="1.07143" stroke-linecap="round" stroke-linejoin="round" data-v-8d1100b9></path></svg></div><div class="share__outer__title" data-v-8d1100b9>Exit</div></div>', 1)),
14509
+ o[4] || (o[4] = ux('<div class="share__outer__top" data-v-48e94fb7><div class="share__outer__icon-wrapper" data-v-48e94fb7><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" data-v-48e94fb7><path d="M8.97689 4.45226V8.97607M8.97689 8.97607H4.45308M8.97689 8.97607L3.14355 3.14274" stroke="#8E8E93" stroke-width="1.07143" stroke-linecap="round" stroke-linejoin="round" data-v-48e94fb7></path></svg></div><div class="share__outer__title" data-v-48e94fb7>Exit</div></div>', 1)),
14505
14510
  b("div", lC, [
14506
14511
  Ue(Q(y(rt)(t.data.exit_price)) + " ", 1),
14507
14512
  o[3] || (o[3] = b("span", null, "USDT", -1))
14508
14513
  ])
14509
14514
  ])) : I("", !0)
14510
- ])) : t.isDaily && t.data.trades_lose_count && t.data.trades_win_count ? (w(), T("div", uC, [
14515
+ ])) : t.isDaily && t.data.trades_lose_count !== void 0 && t.data.trades_win_count !== void 0 ? (w(), T("div", uC, [
14511
14516
  b("div", cC, [
14512
14517
  o[5] || (o[5] = b("div", { class: "share__outer__title" }, "Total Trades", -1)),
14513
14518
  b("div", dC, [
@@ -14538,7 +14543,7 @@ const CA = { class: "long-short" }, qA = { class: "long-short__item__text" }, FA
14538
14543
  ])
14539
14544
  ], 2));
14540
14545
  }
14541
- }, p4 = /* @__PURE__ */ Re(bC, [["__scopeId", "data-v-8d1100b9"]]);
14546
+ }, p4 = /* @__PURE__ */ Re(bC, [["__scopeId", "data-v-48e94fb7"]]);
14542
14547
  /*!
14543
14548
  * @kurkle/color v0.3.4
14544
14549
  * https://github.com/kurkle/color#readme