scope360-core 0.0.18 → 0.0.19

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.
@@ -11333,43 +11333,43 @@ const gy = {
11333
11333
  class: "confetti"
11334
11334
  }, null, 512));
11335
11335
  }
11336
- }, Au = (n) => (Vo("data-v-b58c3405"), n = n(), Ho(), n), Pv = { class: "sidebar-popup-container" }, Mv = { class: "sidebar-popup__profile-info" }, Sv = ["src"], Ov = { class: "sidebar-popup__profile-info__wrapper" }, Av = { class: "sidebar-popup__profile-info__name" }, Cv = { class: "sidebar-popup__profile-info__e-mail" }, Rv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Ev = { class: "sidebar-popup__tabs" }, $v = ["onClick"], Nv = { class: "sidebar-popup__tab__icon-wrapper" }, Iv = { class: "sidebar-popup__tab__name" }, Bv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Lv = { class: "sidebar-popup__actions-buttons" }, Yv = {
11336
+ }, Au = (n) => (Vo("data-v-631fb5e2"), n = n(), Ho(), n), Pv = { class: "sidebar-popup-container" }, Mv = { class: "sidebar-popup__profile-info" }, Sv = ["src"], Ov = { class: "sidebar-popup__profile-info__wrapper" }, Av = { class: "sidebar-popup__profile-info__name" }, Cv = { class: "sidebar-popup__profile-info__e-mail" }, Rv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Ev = { class: "sidebar-popup__tabs" }, $v = ["onClick"], Nv = { class: "sidebar-popup__tab__icon-wrapper" }, Iv = { class: "sidebar-popup__tab__name" }, Bv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Lv = { class: "sidebar-popup__actions-buttons" }, Yv = {
11337
11337
  __name: "SidebarPopup",
11338
11338
  props: {
11339
11339
  activeSection: String,
11340
- user: Object,
11341
- logout: Function
11340
+ user: Object
11342
11341
  },
11343
- setup(n) {
11344
- const e = te(!1), t = te(null), a = Ea(["futures", "charts", "spot"]), r = () => {
11342
+ emits: ["logout"],
11343
+ setup(n, { emit: e }) {
11344
+ const t = e, a = te(!1), r = te(null), i = Ea(["futures", "charts", "spot"]), s = () => {
11345
11345
  window.open("https://scope360.io/settings/profile", "_self");
11346
- }, i = (l) => {
11347
- window.open(`https://${l}.scope360.io/`);
11348
- }, s = () => {
11349
- e.value = !e.value;
11350
- }, o = (l) => {
11351
- t.value && !t.value.contains(l.target) && s();
11346
+ }, o = (u) => {
11347
+ window.open(`https://${u}.scope360.io/`);
11348
+ }, l = () => {
11349
+ a.value = !a.value;
11350
+ }, c = (u) => {
11351
+ r.value && !r.value.contains(u.target) && l();
11352
11352
  };
11353
11353
  return ct(() => {
11354
- document.addEventListener("click", o);
11354
+ document.addEventListener("click", c);
11355
11355
  }), lr(() => {
11356
- document.removeEventListener("click", o);
11357
- }), (l, c) => (A(), V("div", Pv, [
11356
+ document.removeEventListener("click", c);
11357
+ }), (u, d) => (A(), V("div", Pv, [
11358
11358
  se("div", {
11359
11359
  class: he([
11360
11360
  "sidebar-popup-container__icon-wrapper",
11361
- { "-is-active": e.value }
11361
+ { "-is-active": a.value }
11362
11362
  ]),
11363
- onClick: ge(s, ["stop"]),
11363
+ onClick: ge(l, ["stop"]),
11364
11364
  name: "popup-icon-wrapper"
11365
11365
  }, [
11366
11366
  Te(on, { icon: "pop-up_opener" })
11367
11367
  ], 2),
11368
- e.value ? (A(), V("div", {
11368
+ a.value ? (A(), V("div", {
11369
11369
  key: 0,
11370
11370
  class: "sidebar-popup",
11371
11371
  ref_key: "popupRef",
11372
- ref: t
11372
+ ref: r
11373
11373
  }, [
11374
11374
  se("div", Mv, [
11375
11375
  se("img", {
@@ -11383,17 +11383,17 @@ const gy = {
11383
11383
  ]),
11384
11384
  Rv,
11385
11385
  se("div", Ev, [
11386
- (A(!0), V(be, null, Ee(a, (u) => (A(), V("div", {
11386
+ (A(!0), V(be, null, Ee(i, (h) => (A(), V("div", {
11387
11387
  class: he([
11388
11388
  "sidebar-popup__tab",
11389
- { "-is-active": u === n.activeSection }
11389
+ { "-is-active": h === n.activeSection }
11390
11390
  ]),
11391
- onClick: (d) => i(u)
11391
+ onClick: (m) => o(h)
11392
11392
  }, [
11393
11393
  se("div", Nv, [
11394
- Te(on, { icon: u }, null, 8, ["icon"])
11394
+ Te(on, { icon: h }, null, 8, ["icon"])
11395
11395
  ]),
11396
- se("div", Iv, Pe(u), 1)
11396
+ se("div", Iv, Pe(h), 1)
11397
11397
  ], 10, $v))), 256))
11398
11398
  ]),
11399
11399
  Bv,
@@ -11403,17 +11403,17 @@ const gy = {
11403
11403
  "sidebar-popup__settings",
11404
11404
  { "-is-active": n.activeSection === "settings" }
11405
11405
  ]),
11406
- onClick: r
11406
+ onClick: s
11407
11407
  }, " Settings ", 2),
11408
11408
  se("div", {
11409
11409
  class: "sidebar-popup__logout",
11410
- onClick: c[0] || (c[0] = (...u) => n.logout && n.logout(...u))
11410
+ onClick: d[0] || (d[0] = (h) => t("logout"))
11411
11411
  }, "Log out")
11412
11412
  ])
11413
11413
  ], 512)) : W("", !0)
11414
11414
  ]));
11415
11415
  }
11416
- }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-b58c3405"]]);
11416
+ }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-631fb5e2"]]);
11417
11417
  /*! js-cookie v3.0.5 | MIT */
11418
11418
  function _r(n) {
11419
11419
  for (var e = 1; e < arguments.length; e++) {