ztxkutils 2.8.5 → 2.8.8

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.
@@ -363,4 +363,4 @@ var authority = /*#__PURE__*/Object.freeze({
363
363
  isQiankun: isQiankun
364
364
  });
365
365
 
366
- export { BTN_AUTHS as B, getRefreshToken as a, setRefreshToken as b, authority as c, getOAuth2 as d, removeRefreshToken as e, setOAuth2 as f, getToken as g, removeOAuth2 as h, aesEncrypt as i, aesDecrypt as j, isBtnAuth as k, setLastUrlPath as l, getLastUrlPath as m, isQiankun as n, removeToken as r, setToken as s };
366
+ export { BTN_AUTHS as B, getRefreshToken as a, setRefreshToken as b, authority as c, getOAuth2 as d, removeRefreshToken as e, setOAuth2 as f, getToken as g, removeOAuth2 as h, isQiankun as i, aesEncrypt as j, aesDecrypt as k, isBtnAuth as l, setLastUrlPath as m, getLastUrlPath as n, removeToken as r, setToken as s };
package/dist/authority.js CHANGED
@@ -1 +1 @@
1
- export { B as BTN_AUTHS, j as aesDecrypt, i as aesEncrypt, m as getLastUrlPath, d as getOAuth2, a as getRefreshToken, g as getToken, k as isBtnAuth, n as isQiankun, h as removeOAuth2, e as removeRefreshToken, r as removeToken, l as setLastUrlPath, f as setOAuth2, b as setRefreshToken, s as setToken } from './authority-fad2028d.js';
1
+ export { B as BTN_AUTHS, k as aesDecrypt, j as aesEncrypt, n as getLastUrlPath, d as getOAuth2, a as getRefreshToken, g as getToken, l as isBtnAuth, i as isQiankun, h as removeOAuth2, e as removeRefreshToken, r as removeToken, m as setLastUrlPath, f as setOAuth2, b as setRefreshToken, s as setToken } from './authority-5bc06c1a.js';
@@ -1,4 +1,4 @@
1
- import { g as getToken } from './authority-fad2028d.js';
1
+ import { g as getToken } from './authority-5bc06c1a.js';
2
2
 
3
3
  /**
4
4
  * @author cyx
@@ -137,10 +137,10 @@ function previewFile(fileUrl, fileId, otherOption) {
137
137
  ? fileUrl.slice(0, fileUrl.length - 1)
138
138
  : fileUrl;
139
139
  if (titleName) {
140
- window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName));
140
+ window.open(_fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + "&officePreviewType=pdf");
141
141
  }
142
142
  else {
143
- window.open(fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token);
143
+ window.open(fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&officePreviewType=pdf");
144
144
  }
145
145
  }
146
146
  /**
@@ -156,10 +156,10 @@ function createOriginalUrl(fileUrl, fileId, otherOption) {
156
156
  ? fileUrl.slice(0, fileUrl.length - 1)
157
157
  : fileUrl;
158
158
  if (titleName) {
159
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName);
159
+ return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&titleName=" + encodeURIComponent(titleName) + "&officePreviewType=pdf";
160
160
  }
161
161
  else {
162
- return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token;
162
+ return _fileUrl + "/attchPreview?attachId=" + fileId + "&Zmdms-Auth=bearer " + token + "&officePreviewType=pdf";
163
163
  }
164
164
  }
165
165
  /**
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @author 陈亚雄
3
+ * @description 代理路由的push方法,可以用window.open的方式跳转页面
4
+ */
5
+ export declare function useHistory(routeBasename?: string): any;
6
+ /**
7
+ * @author 陈亚雄
8
+ * @description 设置浏览器标题信息
9
+ */
10
+ export declare function useDocumentTitle(title: string): void;
11
+ export declare function setFilterAuth(): void;
12
+ export declare function isFilterAuth(): boolean;
13
+ export declare function setSession(name: any, value: any): void;
14
+ export declare function getSession(name: any): any;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { c as authority } from './authority-fad2028d.js';
1
+ export { c as authority } from './authority-5bc06c1a.js';
2
2
  export { d as dataModel } from './dataModel-1fbaff40.js';
3
3
  export { t as tools } from './tools-4de9d743.js';
4
4
  export { v as validate } from './validate-3e15dd74.js';
5
- export { r as request } from './request-e7a40fd7.js';
5
+ export { r as request } from './request-09b081d4.js';
6
6
  export { r as reqUrl } from './reqUrl-88fcc5c5.js';
7
7
  import './tslib.es6-f9459658.js';
8
8
  import 'dayjs';
@@ -2,7 +2,7 @@ import { b as __rest, _ as __assign } from './tslib.es6-f9459658.js';
2
2
  import axios from 'axios';
3
3
  import { Modal, message } from 'ztxkui';
4
4
  import { c as commonjsGlobal, a as crypto } from './crypto-c481f616.js';
5
- import { g as getToken, a as getRefreshToken, s as setToken, b as setRefreshToken } from './authority-fad2028d.js';
5
+ import { g as getToken, a as getRefreshToken, s as setToken, b as setRefreshToken } from './authority-5bc06c1a.js';
6
6
 
7
7
  /**
8
8
  * Removes all key-value entries from the list cache.
package/dist/request.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './tslib.es6-f9459658.js';
2
2
  import 'axios';
3
3
  import 'ztxkui';
4
- export { a as default } from './request-e7a40fd7.js';
5
- import './authority-fad2028d.js';
4
+ export { a as default } from './request-09b081d4.js';
5
+ import './authority-5bc06c1a.js';
6
6
  import './crypto-c481f616.js';
7
7
  import 'crypto';
@@ -1,6 +1,6 @@
1
1
  import Stomp from 'zt-stompjs';
2
2
  import SockJS from 'zt-sockjs-client';
3
- import { g as getToken } from './authority-fad2028d.js';
3
+ import { g as getToken } from './authority-5bc06c1a.js';
4
4
 
5
5
  var StompClient = /** @class */ (function () {
6
6
  function StompClient(connectWsConfig) {
@@ -0,0 +1,101 @@
1
+ import { _ as __assign } from './tslib.es6-f9459658.js';
2
+ import { useEffect } from 'react';
3
+ import { useHistory as useHistory$1 } from 'react-router-dom';
4
+ import { i as isQiankun } from './authority-5bc06c1a.js';
5
+ import { WORKFLOW_HIDEFRAME_KEY } from './constants.js';
6
+
7
+ var ROUTER_FILTER_RULES_KEY = '__symbol__alias__session';
8
+ var ROUTER_FILTER_RULES_VALUE = 'zQzNDkwNjg2MjYwMjI4MDk3LDEzNDU5Nzg1';
9
+ var _pushTarget = ['_blank', '_black_noframe'];
10
+ /**
11
+ * @author 陈亚雄
12
+ * @description 代理路由的push方法,可以用window.open的方式跳转页面
13
+ */
14
+ function useHistory(routeBasename) {
15
+ var history = useHistory$1();
16
+ return __assign(__assign({}, history), { push: function (path, state, target) {
17
+ // 代理react router dom 的push方法
18
+ if (typeof state === 'string' && _pushTarget.includes(state)) {
19
+ target = state;
20
+ }
21
+ // 如果没有传入target,那么还是使用原生的push方法
22
+ if (!target) {
23
+ history.push(path, state);
24
+ }
25
+ else {
26
+ // 如果是需要在无框架下,外链打开
27
+ if (target === '_black_noframe' &&
28
+ path.indexOf(WORKFLOW_HIDEFRAME_KEY) !== -1) {
29
+ // 如果不是在隐藏框架内跳转,那么直接内部打开
30
+ history.push(path, state);
31
+ return;
32
+ }
33
+ if (target === '_blank' || target === '_black_noframe') {
34
+ // state 没法处理,请不要传递state,可以拼接再地址栏参数后面
35
+ // 新窗口打开的页面 都不需要菜单
36
+ var _path = path.indexOf('?') === -1
37
+ ? path + "?" + WORKFLOW_HIDEFRAME_KEY + "=1"
38
+ : path.indexOf(WORKFLOW_HIDEFRAME_KEY) === -1
39
+ ? path + "&" + WORKFLOW_HIDEFRAME_KEY + "=1"
40
+ : path;
41
+ // 是否是全路径
42
+ _path = _path.startsWith('http')
43
+ ? _path
44
+ : _path.startsWith('/')
45
+ ? _path
46
+ : "/" + _path;
47
+ // 如果在微前端里面,需要添加前缀
48
+ if (isQiankun()) {
49
+ _path = _path.startsWith('http')
50
+ ? _path
51
+ : routeBasename
52
+ ? "" + routeBasename + _path
53
+ : _path;
54
+ }
55
+ window.open(_path);
56
+ }
57
+ }
58
+ } });
59
+ }
60
+ /**
61
+ * @author 陈亚雄
62
+ * @description 设置浏览器标题信息
63
+ */
64
+ function useDocumentTitle(title) {
65
+ useEffect(function () {
66
+ if (title) {
67
+ document.title = title;
68
+ }
69
+ }, [title]);
70
+ }
71
+ function setFilterAuth() {
72
+ // 设置是否需要过滤路由验证
73
+ setSession(ROUTER_FILTER_RULES_KEY, ROUTER_FILTER_RULES_VALUE);
74
+ // 设置一些混淆的随意字段
75
+ setSession('__symbol__aliai__session', '0NzYwMDY2LDE0NjgwMzQ0MzcxNTc5U5Nzg1');
76
+ setSession('__symbol__alias__sessien', 'zQzNDkwNjg2MjYwMjI4MDk7LDEzNDU5Nzg1');
77
+ setSession('__symbol__alias__sesseen', 'zQzNDkwNjg2MjYwMjI4MDk5LDEzNDU5Nzg1');
78
+ setSession('__symbol__alaas__sesseen', 'zQzNDkwNjg2MjYwMjI4MDk4LDEzNDU5Nzg1');
79
+ }
80
+ function isFilterAuth() {
81
+ var authResult = getSession(ROUTER_FILTER_RULES_KEY);
82
+ return authResult === ROUTER_FILTER_RULES_VALUE;
83
+ }
84
+ function setSession(name, value) {
85
+ // if (window.opener && Object.getOwnPropertyNames(window.opener).length > 0) {
86
+ // window.opener.sessionStorage.setItem(name, value);
87
+ // } else {
88
+ // sessionStorage.setItem(name, value);
89
+ // }
90
+ sessionStorage.setItem(name, value);
91
+ }
92
+ function getSession(name) {
93
+ if (window.opener && Object.getOwnPropertyNames(window.opener).length > 0) {
94
+ return window.opener.sessionStorage.getItem(name);
95
+ }
96
+ else {
97
+ return sessionStorage.getItem(name);
98
+ }
99
+ }
100
+
101
+ export { getSession, isFilterAuth, setFilterAuth, setSession, useDocumentTitle, useHistory };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.8.5",
3
+ "version": "2.8.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -38,6 +38,7 @@
38
38
  "pubsub-js": "^1.9.3",
39
39
  "react": "^17.0.2",
40
40
  "react-dom": "^17.0.1",
41
+ "react-router-dom": "5.2",
41
42
  "rollup": "^2.47.0",
42
43
  "rollup-plugin-typescript2": "^0.30.0",
43
44
  "ts-loader": "^8.0.18",
@@ -63,6 +64,7 @@
63
64
  "number-precision": ">=1.5.0",
64
65
  "react": ">=17.0.1",
65
66
  "react-dom": ">=17.0.1",
66
- "ztxkui": ">=0.4.1"
67
+ "ztxkui": ">=0.4.1",
68
+ "react-router-dom": ">=5.2.0"
67
69
  }
68
70
  }
@@ -1,70 +0,0 @@
1
- /**
2
- * @file 项目基本配置,包括各个环境的请求地址
3
- */
4
- // 环境变量
5
- function getReqUrl(processObj) {
6
- var ENV = processObj.REACT_APP_ENV;
7
- // api服务器各个环境地址
8
- var ZT_API_DEV = processObj.REACT_APP_ZT_API_DEV || 'http://192.168.0.83:8000'; // 开发环境
9
- var ZT_API_TEST = processObj.REACT_APP_ZT_API_TEST || window.location.origin; // 测试环境 https://192.168.0.135:8000
10
- var ZT_API_STAGE = processObj.REACT_APP_ZT_API_STAGE || window.location.origin; // 阶段性环境 http://192.168.0.134:8000
11
- var ZT_API_PRODUCT = processObj.REACT_APP_ZT_API_PRODUCT || window.location.origin; // 生产环境 http://dz.zmd.com.cn
12
- var ZT_API_PUBLIC_PRODUCT = processObj.REACT_APP_ZT_API_PUBLIC_PRODUCT || 'https://dz.zmd.com.cn:48000'; // 生产环境外网api地址 http://dz.zmd.com.cn:8000
13
- // 文件服务器
14
- var ZT_FILE_PREVIEW_DEV = processObj.REACT_APP_ZT_FILE_PREVIEW_DEV || 'http://192.168.0.83:88'; // 开发环境
15
- var ZT_FILE_PREVIEW_TEST = processObj.REACT_APP_ZT_FILE_PREVIEW_TEST || 'https://192.168.0.135:18012'; // 测试环境
16
- var ZT_FILE_PREVIEW_STAGE = processObj.REACT_APP_ZT_FILE_PREVIEW_STAGE || 'http://192.168.0.134:8012'; // 阶段性环境
17
- var ZT_FILE_PREVIEW_PRODUCT = processObj.REACT_APP_ZT_FILE_PREVIEW_PRODUCT ||
18
- 'https://dzfile.zmd.com.cn:8012'; // 生产环境
19
- // 字体文件附件id
20
- var ZT_FONTFAMILY_DEV = '1551733945007517697';
21
- var ZT_FONTFAMILY_TEST = '1551836774183047169';
22
- var ZT_FONTFAMILY_STAGE = '1551837561144905730';
23
- var ZT_FONTFAMILY_PRODUCT = '1551837561144905730';
24
- // 实际api请求地址
25
- var ZT_API_BASEURL = ZT_API_DEV;
26
- var ZT_API_PUBLICURL = ZT_API_PUBLIC_PRODUCT;
27
- var ZT_FILE_BASEURL = ZT_FILE_PREVIEW_DEV;
28
- var ZT_FONTFAMILY_BASEURL = ZT_FONTFAMILY_DEV;
29
- if (ENV) {
30
- switch (ENV.toLowerCase()) {
31
- case 'zt-dev':
32
- ZT_API_BASEURL = ZT_API_DEV;
33
- ZT_API_PUBLICURL = ZT_API_DEV;
34
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_DEV;
35
- ZT_FONTFAMILY_BASEURL = ZT_FONTFAMILY_DEV;
36
- break;
37
- case 'zt-test':
38
- ZT_API_BASEURL = ZT_API_TEST;
39
- ZT_API_PUBLICURL = ZT_API_TEST;
40
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_TEST;
41
- ZT_FONTFAMILY_BASEURL = ZT_FONTFAMILY_TEST;
42
- break;
43
- case 'zt-stage':
44
- ZT_API_BASEURL = ZT_API_STAGE;
45
- ZT_API_PUBLICURL = ZT_API_STAGE;
46
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_STAGE;
47
- ZT_FONTFAMILY_BASEURL = ZT_FONTFAMILY_STAGE;
48
- break;
49
- case 'zt-product':
50
- ZT_API_BASEURL = ZT_API_PRODUCT;
51
- ZT_API_PUBLICURL = ZT_API_PUBLICURL;
52
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_PRODUCT;
53
- ZT_FONTFAMILY_BASEURL = ZT_FONTFAMILY_PRODUCT;
54
- break;
55
- }
56
- }
57
- return {
58
- ZT_API_BASEURL: ZT_API_BASEURL,
59
- ZT_FILE_BASEURL: ZT_FILE_BASEURL,
60
- ZT_API_PUBLICURL: ZT_API_PUBLICURL,
61
- ZT_FONTFAMILY_BASEURL: ZT_FONTFAMILY_BASEURL,
62
- };
63
- }
64
-
65
- var reqUrl = /*#__PURE__*/Object.freeze({
66
- __proto__: null,
67
- getReqUrl: getReqUrl
68
- });
69
-
70
- export { getReqUrl as g, reqUrl as r };
@@ -1,55 +0,0 @@
1
- /**
2
- * @file 项目基本配置,包括各个环境的请求地址
3
- */
4
- // 环境变量
5
- function getReqUrl(processObj) {
6
- var ENV = processObj.REACT_APP_ENV;
7
- // api服务器各个环境地址
8
- var ZT_API_DEV = processObj.REACT_APP_ZT_API_DEV || 'http://192.168.0.83:8000'; // 开发环境
9
- var ZT_API_TEST = processObj.REACT_APP_ZT_API_TEST || window.location.origin; // 测试环境 https://192.168.0.135:8000
10
- var ZT_API_STAGE = processObj.REACT_APP_ZT_API_STAGE || window.location.origin; // 阶段性环境 http://192.168.0.134:8000
11
- var ZT_API_PRODUCT = processObj.REACT_APP_ZT_API_PRODUCT || window.location.origin; // 生产环境 http://dz.zmd.com.cn
12
- var ZT_API_PUBLIC_PRODUCT = processObj.REACT_APP_ZT_API_PUBLIC_PRODUCT || 'https://dz.zmd.com.cn:48000'; // 生产环境外网api地址 http://dz.zmd.com.cn:8000
13
- // 文件服务器
14
- var ZT_FILE_PREVIEW_DEV = processObj.REACT_APP_ZT_FILE_PREVIEW_DEV || 'http://192.168.0.83:88'; // 开发环境
15
- var ZT_FILE_PREVIEW_TEST = processObj.REACT_APP_ZT_FILE_PREVIEW_TEST || 'https://192.168.0.135:18012'; // 测试环境
16
- var ZT_FILE_PREVIEW_STAGE = processObj.REACT_APP_ZT_FILE_PREVIEW_STAGE || 'http://192.168.0.134:8012'; // 阶段性环境
17
- var ZT_FILE_PREVIEW_PRODUCT = processObj.REACT_APP_ZT_FILE_PREVIEW_PRODUCT ||
18
- 'https://dzfile.zmd.com.cn:8012'; // 生产环境
19
- // 实际api请求地址
20
- var ZT_API_BASEURL = ZT_API_DEV;
21
- var ZT_API_PUBLICURL = ZT_API_PUBLIC_PRODUCT;
22
- var ZT_FILE_BASEURL = ZT_FILE_PREVIEW_DEV;
23
- if (ENV) {
24
- switch (ENV.toLowerCase()) {
25
- case 'zt-dev':
26
- ZT_API_BASEURL = ZT_API_DEV;
27
- ZT_API_PUBLICURL = ZT_API_DEV;
28
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_DEV;
29
- break;
30
- case 'zt-test':
31
- ZT_API_BASEURL = ZT_API_TEST;
32
- ZT_API_PUBLICURL = ZT_API_TEST;
33
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_TEST;
34
- break;
35
- case 'zt-stage':
36
- ZT_API_BASEURL = ZT_API_STAGE;
37
- ZT_API_PUBLICURL = ZT_API_STAGE;
38
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_STAGE;
39
- break;
40
- case 'zt-product':
41
- ZT_API_BASEURL = ZT_API_PRODUCT;
42
- ZT_API_PUBLICURL = ZT_API_PUBLICURL;
43
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_PRODUCT;
44
- break;
45
- }
46
- }
47
- return { ZT_API_BASEURL: ZT_API_BASEURL, ZT_FILE_BASEURL: ZT_FILE_BASEURL, ZT_API_PUBLICURL: ZT_API_PUBLICURL };
48
- }
49
-
50
- var reqUrl = /*#__PURE__*/Object.freeze({
51
- __proto__: null,
52
- getReqUrl: getReqUrl
53
- });
54
-
55
- export { getReqUrl as g, reqUrl as r };
@@ -1,55 +0,0 @@
1
- /**
2
- * @file 项目基本配置,包括各个环境的请求地址
3
- */
4
- // 环境变量
5
- function getReqUrl(processObj) {
6
- var ENV = processObj.REACT_APP_ENV;
7
- // api服务器各个环境地址
8
- var ZT_API_DEV = processObj.REACT_APP_ZT_API_DEV || 'http://192.168.0.83:8000'; // 开发环境
9
- var ZT_API_TEST = processObj.REACT_APP_ZT_API_TEST || window.location.origin; // 测试环境 https://192.168.0.135:8000
10
- var ZT_API_STAGE = processObj.REACT_APP_ZT_API_STAGE || window.location.origin; // 阶段性环境 http://192.168.0.134:8000
11
- var ZT_API_PRODUCT = processObj.REACT_APP_ZT_API_PRODUCT || window.location.origin; // 生产环境 http://dz.zmd.com.cn
12
- var ZT_API_PUBLIC_PRODUCT = processObj.REACT_ZT_API_PUBLIC_PRODUCT || 'https://dz.zmd.com.cn:48000'; // 生产环境外网api地址 http://dz.zmd.com.cn:8000
13
- // 文件服务器
14
- var ZT_FILE_PREVIEW_DEV = processObj.REACT_APP_ZT_FILE_PREVIEW_DEV || 'http://192.168.0.83:88'; // 开发环境
15
- var ZT_FILE_PREVIEW_TEST = processObj.REACT_APP_ZT_FILE_PREVIEW_TEST || 'https://192.168.0.135:18012'; // 测试环境
16
- var ZT_FILE_PREVIEW_STAGE = processObj.REACT_APP_ZT_FILE_PREVIEW_STAGE || 'http://192.168.0.134:8012'; // 阶段性环境
17
- var ZT_FILE_PREVIEW_PRODUCT = processObj.REACT_ZT_FILE_PREVIEW_PRODUCT ||
18
- 'https://dzfile.zmd.com.cn:8012'; // 生产环境
19
- // 实际api请求地址
20
- var ZT_API_BASEURL = ZT_API_DEV;
21
- var ZT_API_PUBLICURL = ZT_API_PUBLIC_PRODUCT;
22
- var ZT_FILE_BASEURL = ZT_FILE_PREVIEW_DEV;
23
- if (ENV) {
24
- switch (ENV.toLowerCase()) {
25
- case 'zt-dev':
26
- ZT_API_BASEURL = ZT_API_DEV;
27
- ZT_API_PUBLICURL = ZT_API_DEV;
28
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_DEV;
29
- break;
30
- case 'zt-test':
31
- ZT_API_BASEURL = ZT_API_TEST;
32
- ZT_API_PUBLICURL = ZT_API_TEST;
33
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_TEST;
34
- break;
35
- case 'zt-stage':
36
- ZT_API_BASEURL = ZT_API_STAGE;
37
- ZT_API_PUBLICURL = ZT_API_STAGE;
38
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_STAGE;
39
- break;
40
- case 'zt-product':
41
- ZT_API_BASEURL = ZT_API_PRODUCT;
42
- ZT_API_PUBLICURL = ZT_API_PUBLICURL;
43
- ZT_FILE_BASEURL = ZT_FILE_PREVIEW_PRODUCT;
44
- break;
45
- }
46
- }
47
- return { ZT_API_BASEURL: ZT_API_BASEURL, ZT_FILE_BASEURL: ZT_FILE_BASEURL, ZT_API_PUBLICURL: ZT_API_PUBLICURL };
48
- }
49
-
50
- var reqUrl = /*#__PURE__*/Object.freeze({
51
- __proto__: null,
52
- getReqUrl: getReqUrl
53
- });
54
-
55
- export { getReqUrl as g, reqUrl as r };