@iccandle/vuejs-widget 0.2.3 → 0.2.4

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.
@@ -9487,8 +9487,15 @@ var qt = { class: "iccandle-scanner-ai-settings" }, Jt = { class: "iccandle-scan
9487
9487
  function b(e, t) {
9488
9488
  return _(e, t).reduce((e, t) => (e[t] = !0, e), {});
9489
9489
  }
9490
- function S(e, t) {
9491
- return e?.timeframe ? e.timeframe : t === "1" || t === "5" ? "60" : t || "60";
9490
+ function S(e) {
9491
+ return [
9492
+ "15",
9493
+ "30",
9494
+ "60",
9495
+ "120",
9496
+ "240",
9497
+ "1D"
9498
+ ].includes(e) ? e : "60";
9492
9499
  }
9493
9500
  let T = w(localStorage.getItem("iccandle_token") ? null : "free"), ee = r(() => c(T.value)), E = r(() => T.value === "pro" || T.value === "expert"), D = w(Se()), A = h(), j = A?.top_k ?? 30, N = w(""), te = w(""), P = null, I = w(!1), L = w((() => {
9494
9501
  let e = Kt(A?.model);
@@ -9496,7 +9503,7 @@ var qt = { class: "iccandle-scanner-ai-settings" }, Jt = { class: "iccandle-scan
9496
9503
  })()), R = w(A?.temperature ?? 1), z = w(b(A, d.currentSymbol)), B = w(null), V = null, H = C({
9497
9504
  probability: A?.probability ?? 0,
9498
9505
  top_k: localStorage.getItem("iccandle_token") ? j : Math.min(n.free, j),
9499
- timeframe: S(A, d.timeframe),
9506
+ timeframe: S(d.timeframe),
9500
9507
  period: A?.period ?? 0,
9501
9508
  symbols: _(A, d.currentSymbol)
9502
9509
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iccandle/vuejs-widget",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Vue scanner overlay for TradingView Charting Library — ICCandle pattern search, remote theming, and plugin iframe integration.",
5
5
  "type": "module",
6
6
  "author": "ICCandle",