@topvisor/ui 1.5.1-topRegionSelector.1 → 1.5.1-topRegionSelector.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.
@@ -10,7 +10,7 @@ import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-C2ItFa6
10
10
  import { n as a, t as o } from "../.chunks/field-CjkpGeA7.esm.js";
11
11
  import { storage as s } from "../utils/dom.js";
12
12
  import { t as c } from "../.chunks/worker-BIUaZFVX.esm.js";
13
- import "../.chunks/app-BDGZ1d0R.esm.js";
13
+ import "../.chunks/app-B8VpVm8U.esm.js";
14
14
  import { validUrl as l } from "../utils/check.js";
15
15
  import { ellipsis as u } from "../utils/string.js";
16
16
  import { t as d } from "../.chunks/utils-BTHruVpQ.esm.js";
@@ -127,7 +127,7 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
127
127
  name: "Without region"
128
128
  }, Ee = () => (V.name = e().Common.Autoselect, V), De = () => (Ee(), we.name = e().Common.Autoselect, console.log(we), we), Oe = () => (Te.name = e().Keywords.Without_region, Te), ke = (e = "", t = !1, n = []) => {
129
129
  let r;
130
- return r = e ? je(n, e) : Ae(n), t && r.set(-2, De()), r.size || r.set(-2, Ce), r;
130
+ return window.mo?.user?.id === 91 && console.log("forMode", e), r = e ? je(n, e) : Ae(n), t && r.set(-2, De()), r.size || r.set(-2, Ce), r;
131
131
  }, Ae = (e, n = !0, r = [], i = "") => {
132
132
  let a = /* @__PURE__ */ new Map();
133
133
  return e.forEach((e) => {
@@ -147,14 +147,16 @@ var _e = { class: "top-competitorSelector" }, ve = { class: "top-ellipsis1" }, y
147
147
  regionByIndex: /* @__PURE__ */ new Map()
148
148
  };
149
149
  a.set(t.key, t);
150
- }), t.state.isProjectShowYandex || a.delete(0), a;
150
+ }), window.mo?.user?.id === 91 && (window.__coreRead = t, window.__coreReadState = t.state, console.log("Чтение 111", t, t.state, t.state.isProjectShowGlobal, t.state.isProjectShowYandex), console.log("Сравнение Core 111", window.__coreWrite === window.__coreRead), console.log("Сравнение Core.state 111", window.__coreWriteState === window.__coreReadState)), window.mo?.user?.id !== 91 || t.state.isProjectShowYandex || a.delete(0), a;
151
151
  }, je = (e, n) => {
152
152
  let r = Ae(e, !1, [0, 1], n);
153
153
  if (r.has(2)) {
154
154
  let e = r.get(2);
155
155
  e && (e.regionByIndex = /* @__PURE__ */ new Map());
156
156
  }
157
- return (n === "volume" || n === "cost_forecast") && t.state.isProjectShowGlobal && r.forEach((e) => {
157
+ window.mo?.user?.id === 91 && (window.__coreRead = t, window.__coreReadState = t.state, console.log("Чтение 222", t, t.state, t.state.isProjectShowGlobal, t.state.isProjectShowYandex), console.log("Сравнение Core 222", window.__coreWrite === window.__coreRead), console.log("Сравнение Core.state 222", window.__coreWriteState === window.__coreReadState));
158
+ let i = window.mo?.user?.id === 91 ? t.state.isProjectShowGlobal : !0;
159
+ return (n === "volume" || n === "cost_forecast") && i && r.forEach((e) => {
158
160
  if (!e.regionByIndex) return;
159
161
  let t = { ...Oe() };
160
162
  e.regionByIndex.set(t.index, t);