agilebuilder-ui 1.2.2-cdnTmp1 → 1.2.2-cdnTmp2

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.
@@ -1,4 +1,4 @@
1
- import { setAllLanguages as e, getAllLanguages as n, getToken as t, getLanguage as o, getCookieCache as i } from "./auth.mjs";
1
+ import { setAllLanguages as e, getAllLanguages as t, getToken as n, getLanguage as o, getCookieCache as i } from "./auth.mjs";
2
2
  import r from "./auth-api.mjs";
3
3
  import { v4 as s } from "uuid";
4
4
  import l from "./i18n-util.mjs";
@@ -13,57 +13,57 @@ function P(e2) {
13
13
  if (!e2)
14
14
  return e2;
15
15
  if (void 0 === window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
16
- let n2 = v(location.href);
17
- if (window.sessionStorage.setItem("relativeUrl", n2), n2 && e2) {
18
- let t2 = "";
16
+ let t2 = v(location.href);
17
+ if (window.sessionStorage.setItem("relativeUrl", t2), t2 && e2) {
18
+ let n2 = "";
19
19
  const o2 = e2.split("/");
20
20
  if (o2.length >= 3) {
21
- const n3 = o2[0] + "//" + o2[2];
22
- t2 = e2.substring(e2.indexOf(n3) + n3.length);
21
+ const t3 = o2[0] + "//" + o2[2];
22
+ n2 = e2.substring(e2.indexOf(t3) + t3.length);
23
23
  }
24
- return n2.lastIndexOf("/") === n2.length - 1 && (n2 = n2.substring(0, n2.lastIndexOf("/"))), t2 ? n2 + t2 : n2;
24
+ return t2.lastIndexOf("/") === t2.length - 1 && (t2 = t2.substring(0, t2.lastIndexOf("/"))), n2 ? t2 + n2 : t2;
25
25
  }
26
26
  }
27
27
  return e2;
28
28
  }
29
29
  function v(e2) {
30
- const n2 = e2.split("#");
31
- if (n2.length > 0) {
32
- const e3 = n2[0];
33
- let t2 = e3;
30
+ const t2 = e2.split("#");
31
+ if (t2.length > 0) {
32
+ const e3 = t2[0];
33
+ let n2 = e3;
34
34
  const o2 = e3.split("/");
35
- return o2.length >= 3 && (t2 = o2[0] + "//" + o2[2] + "/"), t2;
35
+ return o2.length >= 3 && (n2 = o2[0] + "//" + o2[2] + "/"), n2;
36
36
  }
37
37
  }
38
38
  function A(e2) {
39
39
  if (void 0 === window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
40
- const n2 = location.href;
41
- let t2 = e2;
40
+ const t2 = location.href;
41
+ let n2 = e2;
42
42
  const o2 = v(e2);
43
- let i2 = v(n2);
43
+ let i2 = v(t2);
44
44
  if (o2 !== i2) {
45
- let n3 = e2.substring(e2.indexOf(o2) + o2.length);
46
- 0 !== n3.indexOf("/") && (n3 = "/" + n3), i2.lastIndexOf("/") === i2.length - 1 && (i2 = i2.substring(0, i2.lastIndexOf("/"))), t2 = i2 + n3;
45
+ let t3 = e2.substring(e2.indexOf(o2) + o2.length);
46
+ 0 !== t3.indexOf("/") && (t3 = "/" + t3), i2.lastIndexOf("/") === i2.length - 1 && (i2 = i2.substring(0, i2.lastIndexOf("/"))), n2 = i2 + t3;
47
47
  }
48
- return t2;
48
+ return n2;
49
49
  }
50
50
  return e2;
51
51
  }
52
52
  function _() {
53
- return new Promise((e2, n2) => {
54
- const t2 = window.location.href;
55
- let o2 = t2, i2 = "", r2 = "";
56
- if (t2.indexOf("#/") > 0 && t2.indexOf("#/login") < 0) {
57
- o2 = t2.substring(0, t2.indexOf("#"));
58
- const e3 = t2.substring(t2.indexOf("#") + 1);
53
+ return new Promise((e2, t2) => {
54
+ const n2 = window.location.href;
55
+ let o2 = n2, i2 = "", r2 = "";
56
+ if (n2.indexOf("#/") > 0 && n2.indexOf("#/login") < 0) {
57
+ o2 = n2.substring(0, n2.indexOf("#"));
58
+ const e3 = n2.substring(n2.indexOf("#") + 1);
59
59
  i2 = e3, e3.indexOf("?") > 0 && (i2 = e3.substring(0, e3.indexOf("?")), r2 = e3.substring(e3.indexOf("?") + 1));
60
60
  } else
61
61
  o2 = null;
62
- window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/api/portal-frontend-url").then((n3) => e2(((e3 = "") => {
63
- let n4 = e3 + "#/login";
64
- return o2 && (n4 = n4 + "?systemPath=" + o2), i2 && (n4 = n4.indexOf("?") > 0 ? n4 + "&routerPath=" + i2 : n4 + "?routerPath=" + i2), r2 && (n4 = n4.indexOf("?") > 0 ? n4 + "&" + r2 : n4 + "?" + r2), A(n4);
65
- })(n3))).catch((e3) => {
66
- n2(e3);
62
+ window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/api/portal-frontend-url").then((t3) => e2(((e3 = "") => {
63
+ let t4 = e3 + "#/login";
64
+ return o2 && (t4 = t4 + "?systemPath=" + o2), i2 && (t4 = t4.indexOf("?") > 0 ? t4 + "&routerPath=" + i2 : t4 + "?routerPath=" + i2), r2 && (t4 = t4.indexOf("?") > 0 ? t4 + "&" + r2 : t4 + "?" + r2), A(t4);
65
+ })(t3))).catch((e3) => {
66
+ t2(e3);
67
67
  });
68
68
  });
69
69
  }
@@ -88,17 +88,17 @@ function y(e2) {
88
88
  return !(!e2 || "agilebuilder" !== e2 && "portal" !== e2 && "mms" !== e2 && "task" !== e2 && "wf" !== e2 && "dc" !== e2 && "mc" !== e2 && "mobile" !== e2 && "acs" !== e2 && "bs" !== e2 && "pcm" !== e2 && "hc" !== e2 && "devp" !== e2 && "ucr" !== e2);
89
89
  }
90
90
  function M(e2) {
91
- return new Promise((n2, t2) => {
91
+ return new Promise((t2, n2) => {
92
92
  let o2 = "1";
93
93
  try {
94
94
  __BUILD_TIME__ && (o2 = __BUILD_TIME__);
95
95
  } catch (e3) {
96
96
  }
97
97
  e2.get("./server-config.json?t=" + o2).then((e3) => {
98
- const t3 = e3;
99
- for (const e4 in t3)
100
- window.$vueApp.config.globalProperties[e4] = t3[e4];
101
- window.$vueApp.config.globalProperties.baseURL = P(window.$vueApp.config.globalProperties.baseURL), window.$vueApp.config.globalProperties.baseAPI = P(window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_baseAPI_", window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_amb_projectModel_", window.$vueApp.config.globalProperties.projectModel), U(t3), T(t3), n2();
98
+ const n3 = e3;
99
+ for (const e4 in n3)
100
+ window.$vueApp.config.globalProperties[e4] = n3[e4];
101
+ window.$vueApp.config.globalProperties.baseURL = P(window.$vueApp.config.globalProperties.baseURL), window.$vueApp.config.globalProperties.baseAPI = P(window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_baseAPI_", window.$vueApp.config.globalProperties.baseAPI), localStorage.setItem("_amb_projectModel_", window.$vueApp.config.globalProperties.projectModel), U(n3), T(n3), t2();
102
102
  });
103
103
  });
104
104
  }
@@ -106,221 +106,236 @@ function U(e2) {
106
106
  if (!window.insertCssFile)
107
107
  return;
108
108
  e2 || (e2 = window.$vueApp.config.globalProperties);
109
- let n2 = "1";
109
+ let t2 = "1";
110
110
  try {
111
- __BUILD_TIME__ && (n2 = __BUILD_TIME__);
111
+ __BUILD_TIME__ && (t2 = __BUILD_TIME__);
112
112
  } catch (e3) {
113
113
  }
114
- e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}/iconfont.css?t=${n2}`), e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}-color/iconfont.css?t=${n2}`);
114
+ e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}/iconfont.css?t=${t2}`), e2.fontIconAddress && window.insertCssFile && window.insertCssFile(`${e2.fontIconAddress}-color/iconfont.css?t=${t2}`);
115
115
  }
116
116
  function T(e2) {
117
117
  window.insertJsFile && (e2 || (e2 = window.$vueApp.config.globalProperties), !e2 || "portal" !== e2.systemCode && "devp" !== e2.systemCode || ((!e2.loginMethod || e2.loginMethod.indexOf("dingtalk") >= 0) && window.insertJsFile("https://g.alicdn.com/dingding/h5-dingtalk-login/0.21.0/ddlogin.js"), (!e2.loginMethod || e2.loginMethod.indexOf("feishu") >= 0) && window.insertJsFile("https://lf-package-cn.feishucdn.com/obj/feishu-static/lark/passport/qrcode/LarkSSOSDKWebQRCode-1.0.3.js"), (!e2.loginMethod || e2.loginMethod.indexOf("qiwei") >= 0) && window.insertJsFile("https://wwcdn.weixin.qq.com/node/open/js/wecom-jssdk-2.3.1.js")));
118
118
  }
119
119
  function E() {
120
120
  const e2 = window.location.href;
121
- let n2;
121
+ let t2;
122
122
  if (e2 && e2.indexOf("/") > 0) {
123
- const t2 = e2.split("/");
124
- n2 = t2[0] + "//" + t2[2];
123
+ const n2 = e2.split("/");
124
+ t2 = n2[0] + "//" + n2[2];
125
125
  }
126
- return n2;
126
+ return t2;
127
127
  }
128
128
  function C(e2) {
129
129
  return e2 && "[object Promise]" === Object.prototype.toString.call(e2);
130
130
  }
131
131
  function j() {
132
132
  const e2 = /* @__PURE__ */ new Date() + "";
133
- let n2 = "";
133
+ let t2 = "";
134
134
  if (e2.indexOf("GMT") > 0) {
135
- const t2 = e2.substring(e2.indexOf("GMT") + 3, e2.indexOf("(")).trim();
136
- n2 = "UTC" + t2.substring(0, t2.length - 2) + ":" + t2.substring(t2.length - 2);
135
+ const n2 = e2.substring(e2.indexOf("GMT") + 3, e2.indexOf("(")).trim();
136
+ t2 = "UTC" + n2.substring(0, n2.length - 2) + ":" + n2.substring(n2.length - 2);
137
137
  } else
138
- e2.indexOf("UTC") > 0 && (n2 = "UTC" + e2.substring(e2.indexOf("UTC") + 3, e2.indexOf("(")).trim());
139
- return n2;
138
+ e2.indexOf("UTC") > 0 && (t2 = "UTC" + e2.substring(e2.indexOf("UTC") + 3, e2.indexOf("(")).trim());
139
+ return t2;
140
140
  }
141
141
  function F(e2) {
142
142
  if (!window.$vueApp.config.globalProperties.projectModel || "developing.model" !== window.$vueApp.config.globalProperties.projectModel) {
143
- const n2 = r.getSystemCacheUrlByCode(e2);
144
- n2 && (window.$vueApp.config.globalProperties.baseURL = P(n2));
143
+ const t2 = r.getSystemCacheUrlByCode(e2);
144
+ t2 && (window.$vueApp.config.globalProperties.baseURL = P(t2));
145
145
  }
146
146
  }
147
- function R(e2, n2, t2) {
147
+ function R(e2, t2, n2) {
148
148
  window.customValidatorRef || (window.customValidatorRef = /* @__PURE__ */ new Map());
149
149
  let o2 = window.customValidatorRef.get(e2);
150
- o2 || (o2 = /* @__PURE__ */ new Map(), window.customValidatorRef.set(e2, o2)), o2.set(n2, t2);
150
+ o2 || (o2 = /* @__PURE__ */ new Map(), window.customValidatorRef.set(e2, o2)), o2.set(t2, n2);
151
151
  }
152
- function L(e2, n2) {
152
+ function L(e2, t2) {
153
153
  if (window.customValidatorRef) {
154
- const t2 = window.customValidatorRef.get(e2);
155
- t2 && t2.delete(n2);
154
+ const n2 = window.customValidatorRef.get(e2);
155
+ n2 && n2.delete(t2);
156
156
  }
157
157
  }
158
158
  function N() {
159
- return navigator.userAgent, navigator.maxTouchPoints, !!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung|Mobile/i.test(navigator.userAgent) || (!!(/Macintosh/i.test(navigator.userAgent) && void 0 !== navigator.maxTouchPoints && navigator.maxTouchPoints >= 1) || void 0 !== navigator.maxTouchPoints && navigator.maxTouchPoints >= 1);
159
+ navigator.userAgent, navigator.maxTouchPoints;
160
+ const e2 = navigator.userAgent;
161
+ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung|Mobile/i.test(e2))
162
+ return true;
163
+ if (/Macintosh/i.test(e2) && void 0 !== navigator.maxTouchPoints && navigator.maxTouchPoints >= 1)
164
+ return true;
165
+ if (navigator.userAgentData && true === navigator.userAgentData.mobile)
166
+ return true;
167
+ if (/Windows NT|Win64|WOW64/i.test(e2))
168
+ return false;
169
+ if (/X11|Linux x86_64|CrOS/i.test(e2)) {
170
+ const e3 = window.matchMedia && window.matchMedia("(any-pointer: fine)").matches;
171
+ if (void 0 !== navigator.maxTouchPoints && navigator.maxTouchPoints >= 1 && !e3)
172
+ return true;
173
+ }
174
+ return false;
160
175
  }
161
176
  function k(e2) {
162
177
  return l.getLocaleByLang(e2);
163
178
  }
164
- function B(n2) {
165
- let t2;
166
- return n2 && (t2 = JSON.stringify(n2)), e(t2);
179
+ function B(t2) {
180
+ let n2;
181
+ return t2 && (n2 = JSON.stringify(t2)), e(n2);
167
182
  }
168
- function V() {
169
- return n();
183
+ function D() {
184
+ return t();
170
185
  }
171
- function J(e2) {
172
- let n2;
173
- const t2 = V();
174
- if (t2) {
175
- n2 = JSON.parse(t2)[e2];
186
+ function V(e2) {
187
+ let t2;
188
+ const n2 = D();
189
+ if (n2) {
190
+ t2 = JSON.parse(n2)[e2];
176
191
  }
177
- return n2 || (n2 = "zh_CN"), n2;
192
+ return t2 || (t2 = "zh_CN"), t2;
178
193
  }
179
- function D(n2) {
194
+ function J(t2) {
180
195
  return new Promise((o2, i2) => {
181
- if (t()) {
182
- const t2 = V();
183
- t2 ? (e(t2), o2()) : n2.get(window.$vueApp.config.globalProperties.baseAPI + "/component/all-languages").then((e2) => {
184
- const n3 = {};
196
+ if (n()) {
197
+ const n2 = D();
198
+ n2 ? (e(n2), o2()) : t2.get(window.$vueApp.config.globalProperties.baseAPI + "/component/all-languages").then((e2) => {
199
+ const t3 = {};
185
200
  e2 && e2.forEach((e3) => {
186
- const t3 = e3.value;
201
+ const n3 = e3.value;
187
202
  let o3;
188
- o3 = t3.indexOf("_") > 0 ? t3.substring(0, t3.indexOf("_")) : t3, o3 && "zh" === o3 && (o3 = "cn"), o3 && (n3[o3] = t3);
189
- }), B(n3), o2();
203
+ o3 = n3.indexOf("_") > 0 ? n3.substring(0, n3.indexOf("_")) : n3, o3 && "zh" === o3 && (o3 = "cn"), o3 && (t3[o3] = n3);
204
+ }), B(t3), o2();
190
205
  });
191
206
  } else
192
207
  o2();
193
208
  });
194
209
  }
195
- function G(e2, n2) {
196
- let t2 = A(e2);
210
+ function W(e2, t2) {
211
+ let n2 = A(e2);
197
212
  let o2 = "QMS质量管理系统";
198
- window.$locale && "cn" !== window.$locale && (o2 = "QMS Quality Management System"), -1 === t2.indexOf("_systemName_=") && (t2.indexOf("?") > 0 ? t2 += "&_systemName_=" + o2 : t2 += "?_systemName_=" + o2), window.open(t2);
213
+ window.$locale && "cn" !== window.$locale && (o2 = "QMS Quality Management System"), -1 === n2.indexOf("_systemName_=") && (n2.indexOf("?") > 0 ? n2 += "&_systemName_=" + o2 : n2 += "?_systemName_=" + o2), window.open(n2);
199
214
  }
200
- function z(e2) {
201
- return new Promise((n2, i2) => {
202
- t() || n2("zh_CN");
215
+ function G(e2) {
216
+ return new Promise((t2, i2) => {
217
+ n() || t2("zh_CN");
203
218
  const r2 = o(), s2 = Z();
204
219
  if (y(s2))
205
220
  if (r2 && "undefined" !== r2)
206
- n2(r2);
221
+ t2(r2);
207
222
  else {
208
- const t2 = { systemCode: s2 };
209
- e2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", t2).then((e3) => {
210
- n2(e3.language ? e3.language : "zh_CN");
223
+ const n2 = { systemCode: s2 };
224
+ e2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", n2).then((e3) => {
225
+ t2(e3.language ? e3.language : "zh_CN");
211
226
  }).catch(() => {
212
- n2("zh_CN");
227
+ t2("zh_CN");
213
228
  });
214
229
  }
215
230
  else {
216
- const t2 = l.getEnableI18nState(s2);
217
- if (false === t2 && r2 && "undefined" !== r2)
218
- n2(r2);
231
+ const n2 = l.getEnableI18nState(s2);
232
+ if (false === n2 && r2 && "undefined" !== r2)
233
+ t2(r2);
219
234
  else {
220
235
  let o2 = l.getLangFileUrl(s2, r2);
221
236
  const i3 = { systemCode: s2 };
222
- o2 && r2 && "undefined" !== r2 && t2 && (i3.checkLastestI18nFile = true, i3.i18nFileVersion = l.getI18nFileVersion()), e2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", i3).then((e3) => {
237
+ o2 && r2 && "undefined" !== r2 && n2 && (i3.checkLastestI18nFile = true, i3.i18nFileVersion = l.getI18nFileVersion()), e2.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", i3).then((e3) => {
223
238
  if (!e3.enableI18n)
224
- return l.setEnableI18nState(s2, false), void n2(e3.language);
225
- const t3 = l.getI18nFileVersion();
226
- if (l.setI18nFileVersion(e3.i18nFileVersion), !o2 && e3.i18nFileUrls[e3.language] && (o2 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime(), l.setLangFileUrl(s2, e3.language, o2)), t3 && Number(t3) === e3.i18nFileVersion)
239
+ return l.setEnableI18nState(s2, false), void t2(e3.language);
240
+ const n3 = l.getI18nFileVersion();
241
+ if (l.setI18nFileVersion(e3.i18nFileVersion), !o2 && e3.i18nFileUrls[e3.language] && (o2 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime(), l.setLangFileUrl(s2, e3.language, o2)), n3 && Number(n3) === e3.i18nFileVersion)
227
242
  l.loadLangFile(s2, o2, e3.language).then(() => {
228
- n2(e3.language);
243
+ t2(e3.language);
229
244
  }).catch(() => {
230
- n2(e3.language);
245
+ t2(e3.language);
231
246
  });
232
247
  else if (l.setEnableI18nState(s2, !!e3.enableI18n), e3.i18nFileUrls[e3.language]) {
233
- const t4 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime();
234
- l.setLangFileUrl(s2, e3.language, t4), l.loadLangFile(s2, t4, e3.language).then(() => {
235
- n2(e3.language);
248
+ const n4 = e3.i18nFileUrls[e3.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime();
249
+ l.setLangFileUrl(s2, e3.language, n4), l.loadLangFile(s2, n4, e3.language).then(() => {
250
+ t2(e3.language);
236
251
  }).catch(() => {
237
- n2(e3.language ? e3.language : "zh_CN");
252
+ t2(e3.language ? e3.language : "zh_CN");
238
253
  });
239
254
  } else
240
- n2(e3.language);
255
+ t2(e3.language);
241
256
  }).catch(() => {
242
- n2("zh_CN");
257
+ t2("zh_CN");
243
258
  });
244
259
  }
245
260
  }
246
261
  });
247
262
  }
248
- function W() {
249
- return new Promise((e2, n2) => {
250
- const t2 = localStorage.getItem("PROJECT_SETTINGS");
263
+ function z() {
264
+ return new Promise((e2, t2) => {
265
+ const n2 = localStorage.getItem("PROJECT_SETTINGS");
251
266
  let o2 = null;
252
- t2 && "_EMPTY_VALUE" === t2 ? e2(o2) : t2 ? (o2 = JSON.parse(t2), q(o2), e2(o2)) : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/cfg/project-settings").then((n3) => {
253
- n3 ? (localStorage.setItem("PROJECT_SETTINGS", JSON.stringify(n3)), o2 = n3, q(o2)) : localStorage.setItem("PROJECT_SETTINGS", "_EMPTY_VALUE"), e2(o2);
267
+ n2 && "_EMPTY_VALUE" === n2 ? e2(o2) : n2 ? (o2 = JSON.parse(n2), q(o2), e2(o2)) : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/cfg/project-settings").then((t3) => {
268
+ t3 ? (localStorage.setItem("PROJECT_SETTINGS", JSON.stringify(t3)), o2 = t3, q(o2)) : localStorage.setItem("PROJECT_SETTINGS", "_EMPTY_VALUE"), e2(o2);
254
269
  }).catch((e3) => {
255
- n2(e3);
270
+ t2(e3);
256
271
  });
257
272
  });
258
273
  }
259
274
  function q(e2) {
260
- const n2 = document.getElementById("ambBrowserIcon");
261
- if (n2) {
275
+ const t2 = document.getElementById("ambBrowserIcon");
276
+ if (t2) {
262
277
  if (e2) {
263
- const t2 = window.$vueApp.config.globalProperties.baseAPI + "/cfg/project/icon/browserIcon?t=" + __BUILD_TIME__;
264
- !e2.browserImageUuid || n2.href && n2.href === t2 || (n2.href = t2);
278
+ const n2 = window.$vueApp.config.globalProperties.baseAPI + "/cfg/project/icon/browserIcon?t=" + __BUILD_TIME__;
279
+ !e2.browserImageUuid || t2.href && t2.href === n2 || (t2.href = n2);
265
280
  }
266
- n2.href || (n2.href = "favicon.svg?t=" + __BUILD_TIME__);
281
+ t2.href || (t2.href = "favicon.svg?t=" + __BUILD_TIME__);
267
282
  }
268
283
  }
269
284
  function Y() {
270
285
  var e2;
271
286
  if (e2 || (e2 = localStorage.getItem("CURRENT_THEME")), !e2)
272
287
  return void console.error("皮肤主题为空!");
273
- const n2 = localStorage.getItem("_baseAPI_");
274
- if (n2) {
275
- const t3 = A(n2) + "/component/theme/load-theme?theme=" + e2 + "&_t_=" + (/* @__PURE__ */ new Date()).getTime();
288
+ const t2 = localStorage.getItem("_baseAPI_");
289
+ if (t2) {
290
+ const n3 = A(t2) + "/component/theme/load-theme?theme=" + e2 + "&_t_=" + (/* @__PURE__ */ new Date()).getTime();
276
291
  let o2 = true, i2 = document.getElementById("_loadTheme_");
277
- i2 || (i2 = document.createElement("link"), o2 = false), i2.rel = "stylesheet", i2.type = "text/css", i2.id = "_loadTheme_", i2.href = t3, o2 || document.getElementsByTagName("head")[0].appendChild(i2);
292
+ i2 || (i2 = document.createElement("link"), o2 = false), i2.rel = "stylesheet", i2.type = "text/css", i2.id = "_loadTheme_", i2.href = n3, o2 || document.getElementsByTagName("head")[0].appendChild(i2);
278
293
  }
279
- const t2 = document.querySelector("body");
280
- t2 && t2.setAttribute("class", e2);
294
+ const n2 = document.querySelector("body");
295
+ n2 && n2.setAttribute("class", e2);
281
296
  }
282
297
  function H() {
283
298
  return s().replace(/-/g, "");
284
299
  }
285
- function Q(e2, ...n2) {
286
- return e2.replace(/{(\d+)}/g, (e3, t2) => void 0 !== n2[t2] ? n2[t2] : e3);
300
+ function Q(e2, ...t2) {
301
+ return e2.replace(/{(\d+)}/g, (e3, n2) => void 0 !== t2[n2] ? t2[n2] : e3);
287
302
  }
288
- function K(e2) {
289
- const n2 = function() {
303
+ function X(e2) {
304
+ const t2 = function() {
290
305
  let e3 = i("IS_OPEN_MOBILE_GATEWAY");
291
306
  return null == e3 && (e3 = "true"), e3;
292
307
  }();
293
- if ("true" === n2 && void 0 !== e2 && window.$vueApp.config.globalProperties.replaceUrl) {
294
- const n3 = uswindow.$vueApp.config.globalProperties.baseAPI;
308
+ if ("true" === t2 && void 0 !== e2 && window.$vueApp.config.globalProperties.replaceUrl) {
309
+ const t3 = uswindow.$vueApp.config.globalProperties.baseAPI;
295
310
  if ((e2 + "").indexOf(uswindow.$vueApp.config.globalProperties.replaceUrl + "/") < 0 && (e2 + "").indexOf("://") > 0) {
296
- const t2 = n3.substring(0, n3.indexOf("://")), o2 = n3.substring(n3.indexOf("://") + 3), i2 = t2 + "://" + o2.substring(0, o2.indexOf("/")), r2 = n3.substring(0, n3.indexOf("://"));
311
+ const n2 = t3.substring(0, t3.indexOf("://")), o2 = t3.substring(t3.indexOf("://") + 3), i2 = n2 + "://" + o2.substring(0, o2.indexOf("/")), r2 = t3.substring(0, t3.indexOf("://"));
297
312
  let s2 = e2.substring(e2.indexOf("://") + 3);
298
313
  r2 + "://" + s2.substring(0, s2.indexOf("/")) === i2 && (s2 = s2.substring(s2.indexOf("/")), e2 = uswindow.$vueApp.config.globalProperties.replaceUrl + s2);
299
314
  }
300
315
  }
301
316
  return e2;
302
317
  }
303
- function X(e2) {
318
+ function K(e2) {
304
319
  return e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2;
305
320
  }
306
321
  function Z() {
307
322
  return window.$vueApp.config.globalProperties.currentSystem ? window.$vueApp.config.globalProperties.currentSystem : window.$vueApp.config.globalProperties.systemCode;
308
323
  }
309
324
  function ee(e2) {
310
- let n2 = false;
311
- return e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && (n2 = true), n2;
325
+ let t2 = false;
326
+ return e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && e2 && "string" == typeof e2.data && e2.data.indexOf("loginTimeout") >= 0 && (t2 = true), t2;
312
327
  }
313
- function ne() {
314
- return new Promise((e2, n2) => {
315
- r.getSystemCacheUrl() ? e2() : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/without-plate").then((n3) => {
316
- n3 && r.setSystemCacheUrl(n3), e2();
328
+ function te() {
329
+ return new Promise((e2, t2) => {
330
+ r.getSystemCacheUrl() ? e2() : window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/business-systems/without-plate").then((t3) => {
331
+ t3 && r.setSystemCacheUrl(t3), e2();
317
332
  });
318
333
  });
319
334
  }
320
- function te(e2) {
321
- return new Promise((n2, t2) => {
322
- r.getSystemCacheUrl() ? n2(r.getSystemCacheFrontendUrlByCode(e2)) : ne().then(() => {
323
- n2(r.getSystemCacheFrontendUrlByCode(e2));
335
+ function ne(e2) {
336
+ return new Promise((t2, n2) => {
337
+ r.getSystemCacheUrl() ? t2(r.getSystemCacheFrontendUrlByCode(e2)) : te().then(() => {
338
+ t2(r.getSystemCacheFrontendUrlByCode(e2));
324
339
  });
325
340
  });
326
341
  }
@@ -333,7 +348,7 @@ function ie() {
333
348
  }
334
349
  function re(e2) {
335
350
  try {
336
- const n2 = e2.includes("#") ? e2.split("#")[1] : e2, t2 = n2.includes("?") ? n2.split("?")[1] : n2, o2 = new URLSearchParams(t2);
351
+ const t2 = e2.includes("#") ? e2.split("#")[1] : e2, n2 = t2.includes("?") ? t2.split("?")[1] : t2, o2 = new URLSearchParams(n2);
337
352
  return Object.fromEntries(o2);
338
353
  } catch (e3) {
339
354
  console.error("error===", e3);
@@ -341,19 +356,19 @@ function re(e2) {
341
356
  }
342
357
  function se(e2) {
343
358
  e2 += "&isShowWatermark=false";
344
- let n2 = function() {
345
- let e3 = window.$vueApp.config.globalProperties.kkFileViewUrl, n3 = e3, t2 = window.$vueApp.config.globalProperties.baseURL;
346
- if (e3 && t2) {
347
- let o2 = t2.split("/"), i2 = o2[0] + "//" + o2[2], r2 = e3.split("/");
348
- i2 === r2[0] + "//" + r2[2] && (n3 = P(e3));
359
+ let t2 = function() {
360
+ let e3 = window.$vueApp.config.globalProperties.kkFileViewUrl, t3 = e3, n2 = window.$vueApp.config.globalProperties.baseURL;
361
+ if (e3 && n2) {
362
+ let o2 = n2.split("/"), i2 = o2[0] + "//" + o2[2], r2 = e3.split("/");
363
+ i2 === r2[0] + "//" + r2[2] && (t3 = P(e3));
349
364
  }
350
- return n3;
365
+ return t3;
351
366
  }() + "?url=" + encodeURIComponent(a.encode(e2));
352
- return new Promise((e3, t2) => {
353
- c().then((t3) => {
354
- t3 && t3.useRange && t3.useRange.indexOf("annex") >= 0 && (n2 = n2 + "&watermarkTxt=" + t3.content + "&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100"), e3(n2);
355
- }).catch((t3) => {
356
- console.error("获得水印失败", t3), e3(n2);
367
+ return new Promise((e3, n2) => {
368
+ c().then((n3) => {
369
+ n3 && n3.useRange && n3.useRange.indexOf("annex") >= 0 && (t2 = t2 + "&watermarkTxt=" + n3.content + "&watermarkXSpace=60&watermarkYSpace=100&watermarkWidth=500&watermarkHeight=100"), e3(t2);
370
+ }).catch((n3) => {
371
+ console.error("获得水印失败", n3), e3(t2);
357
372
  });
358
373
  });
359
374
  }
@@ -363,35 +378,35 @@ function le() {
363
378
  e3 && u(e3);
364
379
  });
365
380
  }
366
- function ae(e2, n2) {
367
- /(y+)/.test(n2) && (n2 = n2.replace(RegExp.$1, (e2.getFullYear() + "").substr(4 - RegExp.$1.length)));
368
- const t2 = { "M+": e2.getMonth() + 1, "d+": e2.getDate(), "H+": e2.getHours(), "m+": e2.getMinutes(), "s+": e2.getSeconds() };
369
- for (const e3 in t2)
370
- if (new RegExp(`(${e3})`).test(n2)) {
371
- const o2 = t2[e3] + "";
372
- n2 = n2.replace(RegExp.$1, 1 === RegExp.$1.length ? o2 : ce(o2));
381
+ function ae(e2, t2) {
382
+ /(y+)/.test(t2) && (t2 = t2.replace(RegExp.$1, (e2.getFullYear() + "").substr(4 - RegExp.$1.length)));
383
+ const n2 = { "M+": e2.getMonth() + 1, "d+": e2.getDate(), "H+": e2.getHours(), "m+": e2.getMinutes(), "s+": e2.getSeconds() };
384
+ for (const e3 in n2)
385
+ if (new RegExp(`(${e3})`).test(t2)) {
386
+ const o2 = n2[e3] + "";
387
+ t2 = t2.replace(RegExp.$1, 1 === RegExp.$1.length ? o2 : ce(o2));
373
388
  }
374
- return n2;
389
+ return t2;
375
390
  }
376
391
  function ce(e2) {
377
392
  return ("00" + e2).substr(e2.length);
378
393
  }
379
394
  function ge(e2) {
380
- const n2 = new Date(e2);
381
- return !isNaN(n2.getTime());
395
+ const t2 = new Date(e2);
396
+ return !isNaN(t2.getTime());
382
397
  }
383
398
  function ue() {
384
- const e2 = window.location.href, n2 = re(e2);
385
- let t2;
386
- n2 && n2.customSystem && (t2 = n2.customSystem);
399
+ const e2 = window.location.href, t2 = re(e2);
400
+ let n2;
401
+ t2 && t2.customSystem && (n2 = t2.customSystem);
387
402
  let o2 = { loginTimeout: e2 };
388
- return t2 && (o2.customSystem = t2), o2;
403
+ return n2 && (o2.customSystem = n2), o2;
389
404
  }
390
- function pe(e2, n2) {
391
- return new Promise((t2, o2) => {
392
- p(), f.getCurrentUserPermissionsBySystem(e2, n2).then((e3) => {
393
- let n3 = ["index"];
394
- n3 = n3.concat(e3), d(n3), t2();
405
+ function pe(e2, t2) {
406
+ return new Promise((n2, o2) => {
407
+ p(), f.getCurrentUserPermissionsBySystem(e2, t2).then((e3) => {
408
+ let t3 = ["index"];
409
+ t3 = t3.concat(e3), d(t3), n2();
395
410
  }).catch((e3) => {
396
411
  o2(e3);
397
412
  });
@@ -408,33 +423,33 @@ function de() {
408
423
  function fe() {
409
424
  localStorage.removeItem(w);
410
425
  for (const e2 in b) {
411
- const n2 = b[e2];
412
- localStorage.removeItem(n2);
426
+ const t2 = b[e2];
427
+ localStorage.removeItem(t2);
413
428
  }
414
429
  }
415
430
  export {
416
431
  de as cacheAllEnableGlobalComponentSettingUtil,
417
432
  le as cacheAllEnableGlobalPropUtil,
418
- D as cacheAllLanguagesUtil,
419
- z as cacheCurrentLanguageUtil,
433
+ J as cacheAllLanguagesUtil,
434
+ G as cacheCurrentLanguageUtil,
420
435
  B as cacheLangs,
421
436
  pe as cachePermissionsWhenLoginWithToken,
422
- W as cacheProjectSetting,
423
- ne as cacheSystemUrl,
437
+ z as cacheProjectSetting,
438
+ te as cacheSystemUrl,
424
439
  ae as formatDate,
425
- X as formatFileName,
440
+ K as formatFileName,
426
441
  oe as getAuthSource,
427
- te as getCacheSystemUrlWithSystemCode,
442
+ ne as getCacheSystemUrlWithSystemCode,
428
443
  Z as getCurrentSystemCode,
429
444
  se as getKkFilePreviewUrl,
430
- J as getLangByShort,
431
- V as getLangs,
445
+ V as getLangByShort,
446
+ D as getLangs,
432
447
  k as getLocaleByLang,
433
448
  ue as getLoginTimeoutUrlInfo,
434
449
  _ as getLoginUrl,
435
450
  E as getOrignUrl,
436
451
  P as getRelativeBaseUrl,
437
- K as getReplaceUrlDomain,
452
+ X as getReplaceUrlDomain,
438
453
  M as getServerConfigUtil,
439
454
  x as getSystemBackendUrl,
440
455
  S as getSystemFrontendUrl,
@@ -459,5 +474,5 @@ export {
459
474
  Q as replacePlaceholders,
460
475
  A as replacePrefix,
461
476
  F as setCustomSystemBackendUrl,
462
- G as windowOpenUrl
477
+ W as windowOpenUrl
463
478
  };