@10yun/open-sdk 0.3.114 → 0.3.116

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.
@@ -1703,7 +1703,7 @@ function St(e) {
1703
1703
  });
1704
1704
  }
1705
1705
  function mi(e) {
1706
- let t = Ne();
1706
+ let t = Te();
1707
1707
  e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
1708
1708
  if (n && n.msg)
1709
1709
  switch ((n.msg || {}).COMM_TYPE || "") {
@@ -1825,10 +1825,10 @@ const wa = {};
1825
1825
  function ua(e) {
1826
1826
  wa[e] || (wa[e] = !0, void 0);
1827
1827
  }
1828
- const Ae = typeof window < "u";
1828
+ const Ne = typeof window < "u";
1829
1829
  let Ee, Je;
1830
1830
  if (process.env.NODE_ENV !== "production") {
1831
- const e = Ae && window.performance;
1831
+ const e = Ne && window.performance;
1832
1832
  e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
1833
1833
  e.clearMeasures && (Ee = (t) => {
1834
1834
  e.mark(t);
@@ -1860,7 +1860,7 @@ function yi(e) {
1860
1860
  }), e;
1861
1861
  }
1862
1862
  const Ti = Object.prototype.hasOwnProperty;
1863
- function Te(e, t) {
1863
+ function Ae(e, t) {
1864
1864
  return Ti.call(e, t);
1865
1865
  }
1866
1866
  const ne = Array.isArray, J = (e) => typeof e == "function", P = (e) => typeof e == "string", K = (e) => typeof e == "boolean", Y = (e) => e !== null && typeof e == "object", Ai = (e) => Y(e) && J(e.then) && J(e.catch), Xr = Object.prototype.toString, fa = (e) => Xr.call(e), G = (e) => fa(e) === "[object Object]", Ni = (e) => e == null ? "" : ne(e) || G(e) && e.toString === Xr ? JSON.stringify(e, null, 2) : String(e);
@@ -2873,7 +2873,7 @@ function nl() {
2873
2873
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Qe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Qe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
2874
2874
  }
2875
2875
  function ye(e) {
2876
- return Y(e) && ha(e) === 0 && (Te(e, "b") || Te(e, "body"));
2876
+ return Y(e) && ha(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
2877
2877
  }
2878
2878
  const Qr = ["b", "body"];
2879
2879
  function al(e) {
@@ -2919,7 +2919,7 @@ function ll(e) {
2919
2919
  function We(e, t, n) {
2920
2920
  for (let r = 0; r < t.length; r++) {
2921
2921
  const a = t[r];
2922
- if (Te(e, a) && e[a] != null)
2922
+ if (Ae(e, a) && e[a] != null)
2923
2923
  return e[a];
2924
2924
  }
2925
2925
  return n;
@@ -2974,17 +2974,17 @@ function Wn(e, t) {
2974
2974
  return Bt(t, n);
2975
2975
  case 4: {
2976
2976
  const r = t;
2977
- if (Te(r, "k") && r.k)
2977
+ if (Ae(r, "k") && r.k)
2978
2978
  return e.interpolate(e.named(r.k));
2979
- if (Te(r, "key") && r.key)
2979
+ if (Ae(r, "key") && r.key)
2980
2980
  return e.interpolate(e.named(r.key));
2981
2981
  throw Ot(n);
2982
2982
  }
2983
2983
  case 5: {
2984
2984
  const r = t;
2985
- if (Te(r, "i") && ie(r.i))
2985
+ if (Ae(r, "i") && ie(r.i))
2986
2986
  return e.interpolate(e.list(r.i));
2987
- if (Te(r, "index") && ie(r.index))
2987
+ if (Ae(r, "index") && ie(r.index))
2988
2988
  return e.interpolate(e.list(r.index));
2989
2989
  throw Ot(n);
2990
2990
  }
@@ -3826,7 +3826,7 @@ function po(e, t, n, r, a, o) {
3826
3826
  }
3827
3827
  u = s[_] || X();
3828
3828
  let E = null, T, y;
3829
- if (process.env.NODE_ENV !== "production" && Ae && (E = window.performance.now(), T = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Ee && Ee(T)), (p = i(u, t)) === null && (p = u[t]), process.env.NODE_ENV !== "production" && Ae) {
3829
+ if (process.env.NODE_ENV !== "production" && Ne && (E = window.performance.now(), T = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Ee && Ee(T)), (p = i(u, t)) === null && (p = u[t]), process.env.NODE_ENV !== "production" && Ne) {
3830
3830
  const k = window.performance.now(), R = e.__v_emitter;
3831
3831
  R && E && p && R.emit("message-resolve", {
3832
3832
  type: "message-resolve",
@@ -3864,9 +3864,9 @@ function Eo(e, t, n, r, a, o) {
3864
3864
  return _.locale = n, _.key = t, _;
3865
3865
  }
3866
3866
  let i = null, c, f;
3867
- process.env.NODE_ENV !== "production" && Ae && (i = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", Ee && Ee(c));
3867
+ process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", Ee && Ee(c));
3868
3868
  const u = s(r, ec(e, n, a, r, l, o));
3869
- if (process.env.NODE_ENV !== "production" && Ae) {
3869
+ if (process.env.NODE_ENV !== "production" && Ne) {
3870
3870
  const _ = window.performance.now(), p = e.__v_emitter;
3871
3871
  p && i && p.emit("message-compilation", {
3872
3872
  type: "message-compilation",
@@ -3879,9 +3879,9 @@ function Eo(e, t, n, r, a, o) {
3879
3879
  }
3880
3880
  function Zl(e, t, n) {
3881
3881
  let r = null, a, o;
3882
- process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Ee && Ee(a));
3882
+ process.env.NODE_ENV !== "production" && Ne && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Ee && Ee(a));
3883
3883
  const s = t(n);
3884
- if (process.env.NODE_ENV !== "production" && Ae) {
3884
+ if (process.env.NODE_ENV !== "production" && Ne) {
3885
3885
  const l = window.performance.now(), i = e.__v_emitter;
3886
3886
  i && r && i.emit("message-evaluation", {
3887
3887
  type: "message-evaluation",
@@ -4130,7 +4130,7 @@ function Dt(e) {
4130
4130
  if (!Y(e) || ye(e))
4131
4131
  return e;
4132
4132
  for (const t in e)
4133
- if (Te(e, t))
4133
+ if (Ae(e, t))
4134
4134
  if (!t.includes("."))
4135
4135
  Y(e[t]) && Dt(e[t]);
4136
4136
  else {
@@ -4164,7 +4164,7 @@ function Ea(e, t) {
4164
4164
  P(l) && Yt(JSON.parse(l), s);
4165
4165
  }), a == null && o)
4166
4166
  for (const l in s)
4167
- Te(s, l) && Dt(s[l]);
4167
+ Ae(s, l) && Dt(s[l]);
4168
4168
  return s;
4169
4169
  }
4170
4170
  function yo(e) {
@@ -4209,7 +4209,7 @@ const gc = /* @__NO_SIDE_EFFECTS__ */ () => {
4209
4209
  return e && (t = yo(e)[er]) ? { [er]: t } : null;
4210
4210
  };
4211
4211
  function Sa(e = {}) {
4212
- const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = Ae ? xo : Vo;
4212
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = Ne ? xo : Vo;
4213
4213
  let s = K(e.inheritLocale) ? e.inheritLocale : !0;
4214
4214
  const l = o(
4215
4215
  // prettier-ignore
@@ -4386,7 +4386,7 @@ function Sa(e = {}) {
4386
4386
  if (a) {
4387
4387
  const q = { [b]: O };
4388
4388
  for (const se in q)
4389
- Te(q, se) && Dt(q[se]);
4389
+ Ae(q, se) && Dt(q[se]);
4390
4390
  O = q[b];
4391
4391
  }
4392
4392
  c.value[b] = O, A.messages = c.value;
@@ -4396,7 +4396,7 @@ function Sa(e = {}) {
4396
4396
  const q = { [b]: O };
4397
4397
  if (a)
4398
4398
  for (const se in q)
4399
- Te(q, se) && Dt(q[se]);
4399
+ Ae(q, se) && Dt(q[se]);
4400
4400
  O = q[b], Yt(O, c.value[b]), A.messages = c.value;
4401
4401
  }
4402
4402
  function d(b) {
@@ -4417,7 +4417,7 @@ function Sa(e = {}) {
4417
4417
  function oe(b, O) {
4418
4418
  u.value[b] = le(u.value[b] || {}, O), A.numberFormats = u.value, Xa(A, b, O);
4419
4419
  }
4420
- nr++, t && Ae && (Pn(t.locale, (b) => {
4420
+ nr++, t && Ne && (Pn(t.locale, (b) => {
4421
4421
  s && (l.value = b, A.locale = b, bt(A, l.value, i.value));
4422
4422
  }), Pn(t.fallbackLocale, (b) => {
4423
4423
  s && (i.value = b, A.fallbackLocale = b, bt(A, l.value, i.value));
@@ -5146,12 +5146,12 @@ function Uc(e) {
5146
5146
  return {
5147
5147
  created: (s, l) => {
5148
5148
  const [i, c] = t(l);
5149
- Ae && e.global === c && (s.__i18nWatcher = Pn(c.locale, () => {
5149
+ Ne && e.global === c && (s.__i18nWatcher = Pn(c.locale, () => {
5150
5150
  l.instance && l.instance.$forceUpdate();
5151
5151
  })), s.__composer = c, s.textContent = i;
5152
5152
  },
5153
5153
  unmounted: (s) => {
5154
- Ae && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
5154
+ Ne && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
5155
5155
  },
5156
5156
  beforeUpdate: (s, { value: l }) => {
5157
5157
  if (s.__composer) {
@@ -5655,146 +5655,6 @@ const $t = wo(), su = Do(), Ln = ou(), ko = Ie("cloudSdkWindowStore", {
5655
5655
  return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
5656
5656
  }
5657
5657
  }
5658
- }), vt = "__system:keyboardConf__", wn = "__syCacheApiFlag__", Dn = "__syCacheApiAuth__", hr = "__syCacheApiCode__", gr = "__syCacheApiKey__", kn = "__syCacheSdkConfig__", Rn = "__syCacheSystemConfig__", pr = "cacheClientId", Er = "cacheClientVersion", nn = Ie("cloudSdkSystemStore", {
5659
- state: () => ({
5660
- // ServerUrl
5661
- cacheServerUrl: "",
5662
- // 客户端信息
5663
- cacheClientInfo: {},
5664
- // 客户端ID(希望不变的,除非清除浏览器缓存或者卸载应用)
5665
- cacheClientId: "",
5666
- // 缓存版本号(如果想升级后清除客户端缓存则修改此参数值)
5667
- cacheClientVersion: "v7",
5668
- // 客户端新版本号
5669
- clientNewVersion: null,
5670
- // 键盘状态(仅iOS)
5671
- keyboardType: null,
5672
- // show|hide
5673
- keyboardHeight: 0,
5674
- // 键盘高度
5675
- safeAreaBottom: 0,
5676
- // 安全区域底部高度
5677
- // App通知权限
5678
- appNotificationPermission: !0,
5679
- //
5680
- useSSOLogin: !1,
5681
- sysIsElectron: !1,
5682
- sysIsEEUiApp: !1,
5683
- sysIsSoftware: !1,
5684
- // keyboard
5685
- cacheKeyboard: {},
5686
- // 系统设置
5687
- systemConfig: {},
5688
- // sdk配置
5689
- sdkConfig: {},
5690
- // 加密相关
5691
- apiKeyData: {},
5692
- //当前是否有网络连接
5693
- networkConnected: !0
5694
- }),
5695
- getters: {
5696
- // 系统信息
5697
- systemInfo: (e) => ({
5698
- title: "",
5699
- version: ""
5700
- })
5701
- },
5702
- actions: {
5703
- async init() {
5704
- await I.idbGetString("clearCache");
5705
- const e = await I.idbGetString("cacheServerUrl");
5706
- await I.idbSetItem("cacheServerUrl", e);
5707
- const t = await I.idbGetString(Er);
5708
- await I.idbSetItem(Er, this.cacheClientVersion), t !== this.cacheClientVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), await this.__load_sdk_config(), this.SA_KEYBOARD_SET(), await ue.setHeaders({
5709
- "Sy-Client-Platform": "pc-web",
5710
- "Sy-Client-Id": this.cacheClientId
5711
- });
5712
- },
5713
- async clear_cache() {
5714
- const e = I.localGet(vt);
5715
- I.localSet(vt, e), await I.idbDelItem("clearCache"), await I.idbDelItem(wn), await I.idbDelItem(Dn), await I.idbDelItem(kn), await I.idbDelItem(Rn);
5716
- },
5717
- async cache_read() {
5718
- this.cacheServerUrl = await I.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemConfig.apiUrl = this.cacheServerUrl);
5719
- },
5720
- async __load_api_flag() {
5721
- let e = await I.idbGetItem(wn);
5722
- e || await ue.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
5723
- e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(wn, e);
5724
- }), await ue.appendApiFlag(e);
5725
- },
5726
- async __load_api_auth() {
5727
- let e = await I.idbGetItem(Dn);
5728
- e || await ue.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
5729
- e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(Dn, e);
5730
- }), await ue.appendApiAuth(e);
5731
- },
5732
- async __load_api_code() {
5733
- let e = await I.idbGetItem(hr);
5734
- e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
5735
- e = t.data || {}, I.idbSetItem(hr, e);
5736
- });
5737
- },
5738
- async __load_api_key() {
5739
- let e = await I.idbGetString(pr);
5740
- e || (e = cvUtils.randomString(6), await I.idbSetItem(pr, e)), this.cacheClientId = e, this.apiKeyData = await I.idbGetItem(gr), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
5741
- client_id: e
5742
- }).then(({ data: t }) => {
5743
- this.apiKeyData = t, I.idbSetItem(gr, this.apiKeyData);
5744
- });
5745
- },
5746
- /**
5747
- * 获取系统设置
5748
- * @returns {Promise<unknown>}
5749
- */
5750
- async __load_system_config() {
5751
- let e = await I.idbGetItem(Rn);
5752
- e ? this.systemConfig = e : await ue.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: t }) => {
5753
- this.systemConfig = Object.assign({}, this.systemConfig, t), I.idbSetItem(Rn, this.systemConfig);
5754
- });
5755
- },
5756
- async __load_sdk_config() {
5757
- let e = await I.idbGetItem(kn);
5758
- e ? this.sdkConfig = e : await ue.flagGet("SDK_MAP_ORG_SETT_KEY", { type: "qq" }).then(({ data: t }) => {
5759
- this.sdkConfig = Object.assign({}, this.sdkConfig, t), I.idbSetItem(kn, this.sdkConfig);
5760
- });
5761
- },
5762
- /**
5763
- * 处理快捷键配置
5764
- * @param newData
5765
- * @returns {Promise<unknown>}
5766
- */
5767
- SA_KEYBOARD_SET(e) {
5768
- return new Promise((t) => {
5769
- let n = I.localGet(vt);
5770
- n || (I.localSet(vt, I.localGet("__keyboard:data__")), I.localDel("__keyboard:data__"));
5771
- const r = e || n || {};
5772
- r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", I.localSet(vt, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
5773
- });
5774
- },
5775
- /**
5776
- * 获取IP地址详情
5777
- * @param ip
5778
- * @param callback
5779
- */
5780
- SA_SYS_IP_INFO(e, t) {
5781
- if (!cvUtils.strExists(e, "."))
5782
- return;
5783
- let n = "__ip" + e.substring(0, 1) + "__";
5784
- const r = I.localSet(n);
5785
- let a = cvUtils.strGetMiddle(e, "", "."), o = r[a] || e;
5786
- if (typeof o == "object") {
5787
- typeof t == "function" && t(o);
5788
- return;
5789
- }
5790
- const s = {
5791
- keyId: o || e
5792
- };
5793
- ue.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
5794
- I.localSet(n, s), typeof t == "function" && t(o);
5795
- });
5796
- }
5797
- }
5798
5658
  });
5799
5659
  function iu(e) {
5800
5660
  return new Promise((t, n) => {
@@ -5823,11 +5683,11 @@ function lu(e) {
5823
5683
  function cu(e, t, n = !1) {
5824
5684
  return n ? !!t.find((r) => r && r.indexOf("*") && new RegExp("^" + r.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : r == e) : t.includes(e);
5825
5685
  }
5826
- function Sr(e, t) {
5686
+ function hr(e, t) {
5827
5687
  let n = "";
5828
5688
  return e.includes("http://") || e.includes("https://") ? n = e : n = t + e, n = n.replace(/([^:]\/)\/+/g, "$1"), n;
5829
5689
  }
5830
- const br = {
5690
+ const gr = {
5831
5691
  400: "请求错误",
5832
5692
  400: "无效请求",
5833
5693
  401: "未经授权",
@@ -5842,7 +5702,7 @@ const br = {
5842
5702
  503: "服务不可用",
5843
5703
  504: "网络超时",
5844
5704
  505: "HTTP版本不受支持"
5845
- }, vr = {
5705
+ }, pr = {
5846
5706
  400: "参数错误",
5847
5707
  401: "没有权限,请变更请求",
5848
5708
  402: "支付错误",
@@ -5859,7 +5719,7 @@ const br = {
5859
5719
  function uu(e, t) {
5860
5720
  e = parseInt(e);
5861
5721
  let n = "提示", r = "程序异常,请检查网络或联系管理员";
5862
- return br[e] && (n = br[e]), vr[e] && (r = vr[e]), {
5722
+ return gr[e] && (n = gr[e]), pr[e] && (r = pr[e]), {
5863
5723
  title: n,
5864
5724
  status: e,
5865
5725
  message: r
@@ -6025,7 +5885,7 @@ class fu {
6025
5885
  *
6026
5886
  */
6027
5887
  async apiAll(t, n, r) {
6028
- let a = Sr(n, this.baseURL);
5888
+ let a = hr(n, this.baseURL);
6029
5889
  this.__encryp_parse(n);
6030
5890
  let o = this.__parse_method_type(t), s = this.flagAuth[this.flagCurr] || null, l = {};
6031
5891
  s && (l = s.split(",").reduce((_, p) => {
@@ -6051,7 +5911,7 @@ class fu {
6051
5911
  });
6052
5912
  if (o != "DOWNLOAD") if (o == "MOCK")
6053
5913
  try {
6054
- let _ = n.includes(".json") ? `${n}` : `${n}.json`, p = Sr(_, this.baseMock + "/");
5914
+ let _ = n.includes(".json") ? `${n}` : `${n}.json`, p = hr(_, this.baseMock + "/");
6055
5915
  const v = await fetch(p);
6056
5916
  responseInfo.statusCode = v.status, responseInfo.errMsg = "request:ok";
6057
5917
  const g = await v.json();
@@ -6236,7 +6096,8 @@ const du = Ie("cloudSdkCommonStore", {
6236
6096
  BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
6237
6097
  BASE_ACCSYS_COMMON_KEYCLIENT: "app:true;auth:false;",
6238
6098
  BASE_SYS_COMMON_PLAT_SETTING: "app:true;auth:false;",
6239
- SDK_FILE_COMMON_UPLOAD_SIGNATURE: "app=true,token=true"
6099
+ SDK_FILE_COMMON_UPLOAD_SIGNATURE: "app=true,token=true",
6100
+ SDK_MAP_ORG_SETT_KEY: "app=true,token=true"
6240
6101
  }, hu = {
6241
6102
  100101: "未经授权,请登录"
6242
6103
  };
@@ -6247,7 +6108,7 @@ function gu(e) {
6247
6108
  if (e.code == 100206)
6248
6109
  window.syCacheDialog401 = "none";
6249
6110
  else
6250
- return window.syCacheDialog401 = "show", Ne().SA_ACCOUNT_LOGOUT(), iu({
6111
+ return window.syCacheDialog401 = "show", Te().SA_ACCOUNT_LOGOUT(), iu({
6251
6112
  title: "友情提示",
6252
6113
  message: hu[100101],
6253
6114
  confirmButtonText: "确定",
@@ -6304,7 +6165,7 @@ function Ro(e = {}) {
6304
6165
  e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
6305
6166
  let a = Object.assign({}, _u, n, t.syOpenApiFlag), o = Object.assign({}, mu, r, t.syOpenApiAuth);
6306
6167
  Re.setApiFlag(a), Re.setApiAuth(o);
6307
- const s = du(), l = Ne();
6168
+ const s = du(), l = Te();
6308
6169
  return Re.interceptors.request.use(
6309
6170
  (i) => {
6310
6171
  const c = i.customs || {};
@@ -6359,7 +6220,7 @@ const ue = new Proxy(
6359
6220
  function ea(e) {
6360
6221
  return typeof e == "string" && e.trim() !== "" && e !== "undefined";
6361
6222
  }
6362
- const xe = "syCacheAppInfo", Ve = "syCacheAppToken", yt = "syCacheAppJwt", Tt = "syCacheAppRbac", yr = {
6223
+ const xe = "syCacheAppInfo", Ve = "syCacheAppToken", vt = "syCacheAppJwt", yt = "syCacheAppRbac", Er = {
6363
6224
  nickname: "",
6364
6225
  staff_nickname: "",
6365
6226
  id: 0,
@@ -6383,7 +6244,7 @@ const xe = "syCacheAppInfo", Ve = "syCacheAppToken", yt = "syCacheAppJwt", Tt =
6383
6244
  function Eu(e) {
6384
6245
  return Math.floor(Date.now() / 1e3) >= e;
6385
6246
  }
6386
- const Ne = Ie("cloudSdkAccountStore", {
6247
+ const Te = Ie("cloudSdkAccountStore", {
6387
6248
  state: () => ({
6388
6249
  // staffId: 0,
6389
6250
  account_nick: "",
@@ -6392,7 +6253,7 @@ const Ne = Ie("cloudSdkAccountStore", {
6392
6253
  // 账号信息
6393
6254
  accountInfo: I.localGet(xe) || {},
6394
6255
  accountToken: I.localGet(Ve) || "",
6395
- accountJwt: I.localGet(yt) || ""
6256
+ accountJwt: I.localGet(vt) || ""
6396
6257
  }),
6397
6258
  getters: {
6398
6259
  cacheBizsId: (e) => {
@@ -6473,7 +6334,7 @@ const Ne = Ie("cloudSdkAccountStore", {
6473
6334
  * @returns {Promise<unknown>}
6474
6335
  */
6475
6336
  SA_ACCOUNT_INFO_PARSE(e) {
6476
- return e = e || yr, cvUtils.isEmpty(e.acc_pre_name) && (e.acc_pre_name = e.acc_pre_nick), e.account_id = cvUtils.parseNumber(e.account_id), e.token_access = e.account_id > 0 ? e.token_access || this.accountToken : "", e.account_avatar_cdn = e.account_avatar_cdn || e.per_avatar_cdn, e.account_mobile_hide = e.account_mobile_hide || e.ucenter_mobile_hide || e.ucenter_mobile, this.accountInfo = e, e;
6337
+ return e = e || Er, cvUtils.isEmpty(e.acc_pre_name) && (e.acc_pre_name = e.acc_pre_nick), e.account_id = cvUtils.parseNumber(e.account_id), e.token_access = e.account_id > 0 ? e.token_access || this.accountToken : "", e.account_avatar_cdn = e.account_avatar_cdn || e.per_avatar_cdn, e.account_mobile_hide = e.account_mobile_hide || e.ucenter_mobile_hide || e.ucenter_mobile, this.accountInfo = e, e;
6477
6338
  },
6478
6339
  SA_ACCOUNT_INFO_SET(e) {
6479
6340
  return new Promise(async (t) => {
@@ -6485,21 +6346,21 @@ const Ne = Ie("cloudSdkAccountStore", {
6485
6346
  return this.account_nick;
6486
6347
  },
6487
6348
  SA_ACCOUNT_REFRESH() {
6488
- this.accountInfo = I.localGet(xe) || yr, this.accountToken = I.localGet(Ve) || "", this.accountJwt = I.localGet(yt) || "", ue.setDefHeaders({
6349
+ this.accountInfo = I.localGet(xe) || Er, this.accountToken = I.localGet(Ve) || "", this.accountJwt = I.localGet(vt) || "", ue.setDefHeaders({
6489
6350
  syOpenAppToken: this.accountToken || "",
6490
6351
  Authorization: "Bearer " + this.accountJwt || ""
6491
6352
  });
6492
6353
  },
6493
6354
  // 登录
6494
6355
  async SA_ACCOUNT_SIGNIN(e) {
6495
- e = this.SA_ACCOUNT_INFO_PARSE(e), I.localSet(xe, e), I.localSet(Ve, e.token_access || ""), I.localSet(yt, e.token_jwt || ""), I.localSet(Tt, ""), I.idbSave(Ve, e.token_access || ""), await this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), Ct().QK_SEND_LOGIN_MSG();
6356
+ e = this.SA_ACCOUNT_INFO_PARSE(e), I.localSet(xe, e), I.localSet(Ve, e.token_access || ""), I.localSet(vt, e.token_jwt || ""), I.localSet(yt, ""), I.idbSave(Ve, e.token_access || ""), await this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), Ct().QK_SEND_LOGIN_MSG();
6496
6357
  },
6497
6358
  /**
6498
6359
  * 退出登录(打开登录页面)
6499
6360
  * @param appendFrom
6500
6361
  */
6501
6362
  async SA_ACCOUNT_LOGOUT(e) {
6502
- this.ACCOUNT_SET_PREV(), I.sessionClear(), I.localSet(xe, ""), I.localSet(Ve, ""), I.localSet(yt, ""), I.localSet(Tt, ""), I.localDel(xe), I.localDel(Ve), I.localDel(yt), I.localDel(Tt), this.SA_ACCOUNT_REFRESH(), Ct().QK_SEND_LOGOUT_MSG();
6363
+ this.ACCOUNT_SET_PREV(), I.sessionClear(), I.localSet(xe, ""), I.localSet(Ve, ""), I.localSet(vt, ""), I.localSet(yt, ""), I.localDel(xe), I.localDel(Ve), I.localDel(vt), I.localDel(yt), this.SA_ACCOUNT_REFRESH(), Ct().QK_SEND_LOGOUT_MSG();
6503
6364
  },
6504
6365
  /**
6505
6366
  * @param {Boolean} isForce 是否强制刷新
@@ -6507,9 +6368,9 @@ const Ne = Ie("cloudSdkAccountStore", {
6507
6368
  async SA_ACCOUNT_RBAC_REFRESH(e) {
6508
6369
  return e = e || !1, new Promise(async (t) => {
6509
6370
  if (this.accountToken) {
6510
- let n = I.localGet(Tt) || "";
6371
+ let n = I.localGet(yt) || "";
6511
6372
  e && n == "" ? await ue.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
6512
- r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (I.localSet(Tt, r.data || ""), t(r.data || ""));
6373
+ r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (I.localSet(yt, r.data || ""), t(r.data || ""));
6513
6374
  }).catch(() => {
6514
6375
  t("");
6515
6376
  }) : t(n);
@@ -6520,6 +6381,146 @@ const Ne = Ie("cloudSdkAccountStore", {
6520
6381
  ACCOUNT_SET_PREV() {
6521
6382
  }
6522
6383
  }
6384
+ }), Tt = "__system:keyboardConf__", wn = "__syCacheApiFlag__", Dn = "__syCacheApiAuth__", Sr = "__syCacheApiCode__", br = "__syCacheApiKey__", kn = "__syCacheSdkConfig__", Rn = "__syCacheSystemConfig__", vr = "cacheClientId", yr = "cacheClientVersion", nn = Ie("cloudSdkSystemStore", {
6385
+ state: () => ({
6386
+ // ServerUrl
6387
+ cacheServerUrl: "",
6388
+ // 客户端信息
6389
+ cacheClientInfo: {},
6390
+ // 客户端ID(希望不变的,除非清除浏览器缓存或者卸载应用)
6391
+ cacheClientId: "",
6392
+ // 缓存版本号(如果想升级后清除客户端缓存则修改此参数值)
6393
+ cacheClientVersion: "v7",
6394
+ // 客户端新版本号
6395
+ clientNewVersion: null,
6396
+ // 键盘状态(仅iOS)
6397
+ keyboardType: null,
6398
+ // show|hide
6399
+ keyboardHeight: 0,
6400
+ // 键盘高度
6401
+ safeAreaBottom: 0,
6402
+ // 安全区域底部高度
6403
+ // App通知权限
6404
+ appNotificationPermission: !0,
6405
+ //
6406
+ useSSOLogin: !1,
6407
+ sysIsElectron: !1,
6408
+ sysIsEEUiApp: !1,
6409
+ sysIsSoftware: !1,
6410
+ // keyboard
6411
+ cacheKeyboard: {},
6412
+ // 系统设置
6413
+ systemConfig: {},
6414
+ // sdk配置
6415
+ sdkConfig: {},
6416
+ // 加密相关
6417
+ apiKeyData: {},
6418
+ //当前是否有网络连接
6419
+ networkConnected: !0
6420
+ }),
6421
+ getters: {
6422
+ // 系统信息
6423
+ systemInfo: (e) => ({
6424
+ title: "",
6425
+ version: ""
6426
+ })
6427
+ },
6428
+ actions: {
6429
+ async init() {
6430
+ await I.idbGetString("clearCache");
6431
+ const e = await I.idbGetString("cacheServerUrl");
6432
+ await I.idbSetItem("cacheServerUrl", e);
6433
+ const t = await I.idbGetString(yr);
6434
+ await I.idbSetItem(yr, this.cacheClientVersion), t !== this.cacheClientVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), await this.__load_sdk_config(), this.SA_KEYBOARD_SET(), await ue.setHeaders({
6435
+ "Sy-Client-Platform": "pc-web",
6436
+ "Sy-Client-Id": this.cacheClientId
6437
+ });
6438
+ },
6439
+ async clear_cache() {
6440
+ const e = I.localGet(Tt);
6441
+ I.localSet(Tt, e), await I.idbDelItem("clearCache"), await I.idbDelItem(wn), await I.idbDelItem(Dn), await I.idbDelItem(kn), await I.idbDelItem(Rn);
6442
+ },
6443
+ async cache_read() {
6444
+ this.cacheServerUrl = await I.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemConfig.apiUrl = this.cacheServerUrl);
6445
+ },
6446
+ async __load_api_flag() {
6447
+ let e = await I.idbGetItem(wn);
6448
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
6449
+ e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(wn, e);
6450
+ }), await ue.appendApiFlag(e);
6451
+ },
6452
+ async __load_api_auth() {
6453
+ let e = await I.idbGetItem(Dn);
6454
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
6455
+ e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(Dn, e);
6456
+ }), await ue.appendApiAuth(e);
6457
+ },
6458
+ async __load_api_code() {
6459
+ let e = await I.idbGetItem(Sr);
6460
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
6461
+ e = t.data || {}, I.idbSetItem(Sr, e);
6462
+ });
6463
+ },
6464
+ async __load_api_key() {
6465
+ let e = await I.idbGetString(vr);
6466
+ e || (e = cvUtils.randomString(6), await I.idbSetItem(vr, e)), this.cacheClientId = e, this.apiKeyData = await I.idbGetItem(br), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
6467
+ client_id: e
6468
+ }).then(({ data: t }) => {
6469
+ this.apiKeyData = t, I.idbSetItem(br, this.apiKeyData);
6470
+ });
6471
+ },
6472
+ /**
6473
+ * 获取系统设置
6474
+ * @returns {Promise<unknown>}
6475
+ */
6476
+ async __load_system_config() {
6477
+ let e = await I.idbGetItem(Rn);
6478
+ e ? this.systemConfig = e : await ue.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: t }) => {
6479
+ this.systemConfig = Object.assign({}, this.systemConfig, t), I.idbSetItem(Rn, this.systemConfig);
6480
+ });
6481
+ },
6482
+ async __load_sdk_config() {
6483
+ let e = await I.idbGetItem(kn);
6484
+ e ? this.sdkConfig = e : (this.sdkConfig = {}, Te().accountIsLogin && await ue.flagGet("SDK_MAP_ORG_SETT_KEY", { type: "qq" }).then(({ data: t }) => {
6485
+ this.sdkConfig = Object.assign({}, this.sdkConfig, t), I.idbSetItem(kn, this.sdkConfig);
6486
+ }));
6487
+ },
6488
+ /**
6489
+ * 处理快捷键配置
6490
+ * @param newData
6491
+ * @returns {Promise<unknown>}
6492
+ */
6493
+ SA_KEYBOARD_SET(e) {
6494
+ return new Promise((t) => {
6495
+ let n = I.localGet(Tt);
6496
+ n || (I.localSet(Tt, I.localGet("__keyboard:data__")), I.localDel("__keyboard:data__"));
6497
+ const r = e || n || {};
6498
+ r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", I.localSet(Tt, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
6499
+ });
6500
+ },
6501
+ /**
6502
+ * 获取IP地址详情
6503
+ * @param ip
6504
+ * @param callback
6505
+ */
6506
+ SA_SYS_IP_INFO(e, t) {
6507
+ if (!cvUtils.strExists(e, "."))
6508
+ return;
6509
+ let n = "__ip" + e.substring(0, 1) + "__";
6510
+ const r = I.localSet(n);
6511
+ let a = cvUtils.strGetMiddle(e, "", "."), o = r[a] || e;
6512
+ if (typeof o == "object") {
6513
+ typeof t == "function" && t(o);
6514
+ return;
6515
+ }
6516
+ const s = {
6517
+ keyId: o || e
6518
+ };
6519
+ ue.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
6520
+ I.localSet(n, s), typeof t == "function" && t(o);
6521
+ });
6522
+ }
6523
+ }
6523
6524
  });
6524
6525
  function Tr(e) {
6525
6526
  return e = e.replace(/^\//, ""), e = e.replace(/\//g, "_"), e;
@@ -6622,7 +6623,7 @@ const an = Ie("cloudSdkProductStore", {
6622
6623
  isAlone: !0,
6623
6624
  name: "login",
6624
6625
  path: "/login",
6625
- component: () => import("./login-CyC5Sw3L.js")
6626
+ component: () => import("./login-6z0mYR8y.js")
6626
6627
  }
6627
6628
  ], Tu = [
6628
6629
  {
@@ -6630,14 +6631,14 @@ const an = Ie("cloudSdkProductStore", {
6630
6631
  isAlone: !0,
6631
6632
  name: "alone_run",
6632
6633
  path: "/alone_run",
6633
- component: () => import("./alone_run-FYjsSUIo.js")
6634
+ component: () => import("./alone_run-C_2AiUu2.js")
6634
6635
  },
6635
6636
  {
6636
6637
  meta: { title: "错误", isAlone: !0 },
6637
6638
  isAlone: !0,
6638
6639
  name: "404",
6639
6640
  path: "/:catchAll(.*)",
6640
- component: () => import("./404-BTk3Yt4o.js")
6641
+ component: () => import("./404-w46dTUw1.js")
6641
6642
  }
6642
6643
  ], Au = [
6643
6644
  {
@@ -6645,7 +6646,7 @@ const an = Ie("cloudSdkProductStore", {
6645
6646
  isAlone: !1,
6646
6647
  name: "none",
6647
6648
  path: "/none",
6648
- component: () => import("./none-DToicq7t.js")
6649
+ component: () => import("./none-C-kvGqKn.js")
6649
6650
  }
6650
6651
  ], rn = Ie("cloudSdkPermissionStore", {
6651
6652
  state: () => ({
@@ -6750,7 +6751,7 @@ const Cu = Ie("cloudSdkApplicationStore", {
6750
6751
  });
6751
6752
  function Ou() {
6752
6753
  return new Promise(async (e) => {
6753
- Ft().clear_cache(), Ge().clear_cache(), nn().clear_cache(), Ne().clear_cache(), an().clear_cache(), I.idbSetItem("cacheClearHandle", "handle").then((t) => {
6754
+ Ft().clear_cache(), Ge().clear_cache(), nn().clear_cache(), Te().clear_cache(), an().clear_cache(), I.idbSetItem("cacheClearHandle", "handle").then((t) => {
6754
6755
  e();
6755
6756
  });
6756
6757
  });
@@ -6772,7 +6773,7 @@ function Iu() {
6772
6773
  "formLabelPosition"
6773
6774
  ]),
6774
6775
  ...ke(nn, ["cacheServerUrl", "systemConfig", "sysIsElectron", "sysIsEEUiApp", "sysIsSoftware"]),
6775
- ...ke(Ne, [
6776
+ ...ke(Te, [
6776
6777
  "accountIsLogin",
6777
6778
  "accountInfo",
6778
6779
  "accountToken",
@@ -7514,7 +7515,7 @@ const af = /* @__PURE__ */ ge(zu, [["render", nf]]), rf = {
7514
7515
  this.changeValue(!1), this.formData = {};
7515
7516
  },
7516
7517
  handleLogout() {
7517
- const e = Ne();
7518
+ const e = Te();
7518
7519
  this.$request.flagPost("BASE_PASSPORT_LOGOUT", {}).finally(() => {
7519
7520
  e.SA_ACCOUNT_LOGOUT(), this.$router.push({
7520
7521
  path: "/login"
@@ -7856,7 +7857,7 @@ const Cf = /* @__PURE__ */ ge(cf, [["render", Nf]]), Of = {
7856
7857
  e(), this.frameHeadSysSettDia = !1;
7857
7858
  },
7858
7859
  frameHandleCommand(e) {
7859
- const t = Ne();
7860
+ const t = Te();
7860
7861
  switch (e) {
7861
7862
  case "msg":
7862
7863
  this.$message.info("应用暂未开通,敬请期待");
@@ -7921,7 +7922,7 @@ const Cf = /* @__PURE__ */ ge(cf, [["render", Nf]]), Of = {
7921
7922
  handleType: t,
7922
7923
  business_id: e.business_id || 0
7923
7924
  }).then(async (n) => {
7924
- n.status == 200 && (await Ne().SA_ACCOUNT_SIGNIN(n.data || {}), this.$message({
7925
+ n.status == 200 && (await Te().SA_ACCOUNT_SIGNIN(n.data || {}), this.$message({
7925
7926
  type: "success",
7926
7927
  message: "登入成功...",
7927
7928
  duration: 1e3
@@ -8165,7 +8166,7 @@ const Xd = /* @__PURE__ */ ge(Of, [["render", Yf]]), Hf = {
8165
8166
  },
8166
8167
  computed: {
8167
8168
  watemarkConf() {
8168
- let e = this.openCaseInfo.LAST_IP_BRAND || "", n = Ne().accountInfo || null;
8169
+ let e = this.openCaseInfo.LAST_IP_BRAND || "", n = Te().accountInfo || null;
8169
8170
  return n && n.account_mobile_hide && (e = n.business_name + n.account_mobile_hide), {
8170
8171
  content: e,
8171
8172
  zIndex: -1,
@@ -9498,7 +9499,7 @@ async function Vd(e) {
9498
9499
  e.component("cvSvg" + r, a);
9499
9500
  }
9500
9501
  async function Zd(e, t) {
9501
- rs(t), Ro(e), Ft().init(), Ge().init(), await nn().init(), await Ne().init();
9502
+ rs(t), Ro(e), Ft().init(), Ge().init(), await nn().init(), await Te().init();
9502
9503
  }
9503
9504
  async function e_(e, t, n, r, a = "", o = null) {
9504
9505
  an().init(r), rn().init(n);
@@ -9510,7 +9511,7 @@ async function e_(e, t, n, r, a = "", o = null) {
9510
9511
  Jc(l, o), window.$t = Xe.t;
9511
9512
  }
9512
9513
  async function Bd(e, t, n) {
9513
- const r = Ct(), a = Ne(), o = an(), s = rn();
9514
+ const r = Ct(), a = Te(), o = an(), s = rn();
9514
9515
  r.QK_SEND_MSG_REG_SUBMENU(t);
9515
9516
  let l = Qt().syProductSign || "";
9516
9517
  s.SA_PERMS_ROUTER_ADD(e, l), o.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
@@ -9550,7 +9551,7 @@ export {
9550
9551
  ge as _,
9551
9552
  I as a,
9552
9553
  Ge as b,
9553
- Ne as c,
9554
+ Te as c,
9554
9555
  nn as d,
9555
9556
  Qt as e,
9556
9557
  Xd as f,