w-web-sso 1.0.7 → 1.0.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.
- package/.github/workflows/ci-test.yml +1 -1
- package/.vscode/launch.json +1 -3
- package/_/350/246/217/345/212/203.md +275 -0
- package/babel.config.js +4 -3
- package/dist/css/{app.81d5ef51.css → app.03a2f95c.css} +1 -1
- package/dist/index.tmp +2 -1
- package/dist/js/app-legacy.4476e6c1.js +2 -0
- package/dist/js/app-legacy.4476e6c1.js.map +1 -0
- package/dist/js/app.4476e6c1.js +2 -0
- package/dist/js/app.4476e6c1.js.map +1 -0
- package/dist/js/chunk-vendors-legacy.c0210313.js +13 -0
- package/dist/js/chunk-vendors-legacy.c0210313.js.map +1 -0
- package/dist/js/chunk-vendors.c0210313.js +13 -0
- package/dist/js/chunk-vendors.c0210313.js.map +1 -0
- package/dist/w-web-sso.umd.js +2 -2
- package/dist/w-web-sso.umd.js.map +1 -1
- package/docs/WWebSso.html +6 -396
- package/docs/WWebSso.mjs.html +110 -37
- package/docs/index.html +1 -1
- package/g.backupDb.mjs +1 -1
- package/g.initialData.mjs +27 -13
- package/g.initialTestData.mjs +1 -1
- package/g.mOrm.mjs +2 -2
- package/g.provideUsers.mjs +5 -6
- package/package.json +10 -10
- package/public/index.html +1 -0
- package/script.txt +5 -5
- package/server/WWebSso.mjs +109 -36
- package/server/{proc.mjs → procCore.mjs} +158 -22
- package/server/procSettings.mjs +50 -0
- package/server/provideUsers.mjs +1 -1
- package/settings.json +39 -0
- package/src/App.vue +72 -28
- package/src/components/Common/LoadingWinBar.vue +2 -2
- package/src/components/Layout.vue +144 -49
- package/src/components/LayoutContent.vue +84 -38
- package/src/components/LayoutContentInfor.vue +724 -0
- package/src/components/LayoutContentSettings.vue +1248 -0
- package/src/components/LayoutContentUsers.vue +1261 -284
- package/src/components/LayoutState.vue +20 -8
- package/src/components/PageLogin.vue +142 -364
- package/src/main.js +26 -19
- package/src/plugins/mLang.mjs +520 -0
- package/src/plugins/mShare.mjs +206 -171
- package/src/plugins/mUI.mjs +582 -59
- package/src/schema/gi.mjs +1 -1
- package/src/schema/tables/ips.mjs +62 -0
- package/src/schema/tables/users.mjs +28 -4
- package/src/store/mutations.mjs +5 -230
- package/srv.mjs +4 -27
- package/dist/js/app-legacy.f4cbf46d.js +0 -2
- package/dist/js/app-legacy.f4cbf46d.js.map +0 -1
- package/dist/js/app.f4cbf46d.js +0 -2
- package/dist/js/app.f4cbf46d.js.map +0 -1
- package/dist/js/chunk-vendors-legacy.c489e5a7.js +0 -13
- package/dist/js/chunk-vendors-legacy.c489e5a7.js.map +0 -1
- package/dist/js/chunk-vendors.c489e5a7.js +0 -13
- package/dist/js/chunk-vendors.c489e5a7.js.map +0 -1
- /package/src/components/{VeUser.vue → VeUser.vue.txt} +0 -0
- /package/src/components/{ruleGroup.vue → ruleGroup.vue.txt} +0 -0
package/.vscode/launch.json
CHANGED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# SSO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## 創建服務SSO
|
|
5
|
+
|
|
6
|
+
### 僅提供後台創建
|
|
7
|
+
- 名稱(非主鍵,視為暱稱可更改)
|
|
8
|
+
- 說明
|
|
9
|
+
- 網址
|
|
10
|
+
- 網站識別碼webId
|
|
11
|
+
- 轉址
|
|
12
|
+
- 網站logo圖片
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 使用者資訊欄位
|
|
16
|
+
- 姓名
|
|
17
|
+
- 密碼(加鹽後sha512處理)
|
|
18
|
+
- email
|
|
19
|
+
- 身份
|
|
20
|
+
- 單位
|
|
21
|
+
- 是否有效
|
|
22
|
+
- 有效時間
|
|
23
|
+
- 創建時間
|
|
24
|
+
- 是否驗證
|
|
25
|
+
- 驗證時間
|
|
26
|
+
- 封鎖狀態,多次登入或過量使用API時,標記為封鎖狀態,供防禦之用
|
|
27
|
+
- 封鎖起始時間
|
|
28
|
+
- 允許ip,提供多組ip設定,供有限來源之用
|
|
29
|
+
- 備註
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## 設定(由SSO設定檔提供)
|
|
33
|
+
- Email Server資訊如網址或ip與port
|
|
34
|
+
- 使用者密碼加鹽
|
|
35
|
+
- 是否可於登入頁提供申請註冊使用者按鈕
|
|
36
|
+
- 使用者登入時,是否使用圖形驗證碼模組
|
|
37
|
+
- 使用者成功登入後產生token之有效(過期)時間m(30)分鐘
|
|
38
|
+
- 使用者n(10)分鐘內最大登入失敗次數m(3),若觸發則進入封鎖狀態p(30)分鐘
|
|
39
|
+
- 使用者n(10)分鐘內最大調用API次數m(1000),若觸發則進入封鎖狀態p(30)分鐘
|
|
40
|
+
- IP使用者n(10)分鐘內最大調用API次數m(10000),若觸發則IP進入封鎖狀態p(30)分鐘
|
|
41
|
+
- 清除(移動至備份表)紀錄使用者與IP連線log機制,偵測時間n(1)天,保留最新資料時間m(60)天
|
|
42
|
+
- 是否啟用要求使用者定期更換密碼。若是,預設6個月更換密碼,是否允許使用同樣密碼
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## 使用者登入
|
|
46
|
+
|
|
47
|
+
### 一般使用者或SSO系統管理者登入
|
|
48
|
+
1. 瀏覽登入頁,配合網站識別碼webId顯示應用系統名稱與logo圖
|
|
49
|
+
2. 輸入帳密
|
|
50
|
+
3. 若有開啟使用圖形驗證碼,則需輸入圖形驗證碼
|
|
51
|
+
4. 若帳密通過且帳號有效且為允許ip且非封鎖狀態,則放行,反之一律回傳使用者帳密錯誤避免被猜測
|
|
52
|
+
6. 偵測若已有成功登入並產生token,僅重設有效時間m(30)分鐘並回傳既有token
|
|
53
|
+
7. 登入後,轉址配token再重導至指定應用系統
|
|
54
|
+
8. 使用者瀏覽器儲存區(例如localStorage)儲存token供後續自動登入之用
|
|
55
|
+
|
|
56
|
+
### 一般使用者登入後台
|
|
57
|
+
1. 一般使用者登入後,通過後台網址可看見自身之使用者資訊
|
|
58
|
+
2. 可變更基本資訊,例如顯示身份或單位等
|
|
59
|
+
3. 可變更密碼,須通過接收驗證信方能允許變更
|
|
60
|
+
4. 可變更Email,須通過接收驗證信方能允許變更
|
|
61
|
+
|
|
62
|
+
### SSO系統管理者登入後台
|
|
63
|
+
1. 一般使用者登入後,通過後台網址可看見自身之使用者資訊
|
|
64
|
+
2. 可變更基本資訊,例如顯示身份或單位等
|
|
65
|
+
3. 可變更密碼,須通過接收驗證信方能允許變更
|
|
66
|
+
4. 可變更Email,須通過接收驗證信方能允許變更
|
|
67
|
+
5. 提供使用者清單,可顯示使用者已驗證/未驗證狀態,已封鎖/未封鎖狀態,可新增使用者,可重置使用者密碼為指定或隨機密碼
|
|
68
|
+
6. 提供變更設定,例如:
|
|
69
|
+
- 使用者帳號成功登入後產生token之有效(過期)時間,預設30分鐘
|
|
70
|
+
- 使用者帳號預設10分鐘內最大登入失敗次數預設為3次,若觸發則使用者帳號進入封鎖,預設封鎖30分鐘
|
|
71
|
+
- 使用者IP預設10分鐘內最大調用API次數10000次,若觸發則使用者IP進入封鎖,預設封鎖30分鐘
|
|
72
|
+
7. 提供當前token登入清單。因可同帳號多裝置登入,故同一使用者可同時擁有多組已登入token。提供強制登出功能,代表刪除指定已登入token
|
|
73
|
+
8. 提供當前封鎖清單。主要提供封鎖使用者與IP清單。提供解除IP封鎖與解除使用者封鎖
|
|
74
|
+
9. 提供系統金鑰清單。主要提供給應用系統用之系統金鑰清單。提供新增、變更與刪除系統金鑰功能。
|
|
75
|
+
|
|
76
|
+
### 使用者自動登入機制
|
|
77
|
+
1. 由使用者瀏覽器儲存區(例如localStorage)讀取之前暫存token,調用驗證token API確認使用者登入token是否有效
|
|
78
|
+
2. 若有效則再調用由token取得使用者資訊API,取得使用者資訊
|
|
79
|
+
3. 若無效則轉回SSO登入頁
|
|
80
|
+
|
|
81
|
+
### 使用者於多裝置登入
|
|
82
|
+
1. 多裝置登入用不同token作為區別
|
|
83
|
+
2. 登出時偵測該token所屬使用者,需同步登出。代表刪除該使用者當前所使用全部已登入token
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## 新增使用者
|
|
87
|
+
|
|
88
|
+
### 後台新增使用者
|
|
89
|
+
1. 按新增使用者
|
|
90
|
+
2. 給予姓名、隨機初始密碼、email、身份、單位與相關資訊
|
|
91
|
+
3. 寄註冊驗證信給使用者
|
|
92
|
+
4. 使用者點信內連結
|
|
93
|
+
5. 系統收到網址請求
|
|
94
|
+
6. 使用者註冊驗證通過
|
|
95
|
+
7. 若使用者一直未驗證,則於使用者資訊清單可提供重發驗證信功能
|
|
96
|
+
8. 若使用者反應沒收到驗證信,若SSO系統管理員確認使用者資訊無誤,則可強制更改為已驗證
|
|
97
|
+
|
|
98
|
+
### 使用者於登入頁註冊使用者
|
|
99
|
+
1. 按申請註冊使用者
|
|
100
|
+
2. 給予姓名、密碼、確認密碼、email、身份與單位等相關資訊
|
|
101
|
+
3. 點擊送出申請
|
|
102
|
+
4. 寄給使用者驗證信
|
|
103
|
+
5. 使用者點信內連結
|
|
104
|
+
6. 系統收到網址請求
|
|
105
|
+
7. 使用者註冊驗證通過
|
|
106
|
+
8. 若使用者沒收到驗證信請跟SSO系統管理員反應
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## 變更使用者密碼
|
|
110
|
+
|
|
111
|
+
### 後台變更使用者密碼
|
|
112
|
+
1. 點擊使用者,彈出使用者資訊頁
|
|
113
|
+
2. 按強制變更使用者密碼
|
|
114
|
+
3. 覆寫使用者密碼為隨機初始密碼
|
|
115
|
+
4. 寄註冊驗證信給使用者
|
|
116
|
+
5. 使用者點信內連結
|
|
117
|
+
6. 系統收到網址請求
|
|
118
|
+
7. 使用者變更密碼驗證通過
|
|
119
|
+
8. 變更密碼後後端需刪除使用者當前已產生之token
|
|
120
|
+
9. 使用者瀏覽器儲存區(例如localStorage)內token雖無法刪除,但會被後端驗證API時擋掉
|
|
121
|
+
10. 若使用者反應沒收到驗證信,若SSO系統管理員確認使用者資訊無誤,那直接重新進行變更使用者密碼作業
|
|
122
|
+
|
|
123
|
+
### 使用者於登入頁變更密碼
|
|
124
|
+
1. 轉至使用者資訊頁
|
|
125
|
+
2. 按變更密碼
|
|
126
|
+
3. 給予密碼、確認密碼
|
|
127
|
+
4. 點擊送出申請
|
|
128
|
+
5. 寄給使用者驗證信
|
|
129
|
+
6. 使用者點信內連結
|
|
130
|
+
7. 系統收到網址請求
|
|
131
|
+
8. 使用者變更密碼驗證通過
|
|
132
|
+
9. 變更密碼後後端需刪除使用者當前已產生之token
|
|
133
|
+
10. 變更密碼後前端可順便刪除瀏覽器儲存區(例如localStorage)內token,沒刪亦可
|
|
134
|
+
11. 若使用者沒收到驗證信請跟應用系統管理員或SSO系統管理員反應
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## 變更使用者資訊
|
|
138
|
+
|
|
139
|
+
### 後台變更使用者資訊
|
|
140
|
+
1. 點擊使用者,彈出使用者資訊頁
|
|
141
|
+
2. 按變更使用者資訊
|
|
142
|
+
3. 修改使用者資訊
|
|
143
|
+
4. 按確定後則進行變更
|
|
144
|
+
|
|
145
|
+
### 使用者於登入頁變更資訊
|
|
146
|
+
1. 轉至使用者資訊頁
|
|
147
|
+
2. 按變更使用者資訊
|
|
148
|
+
3. 修改使用者資訊
|
|
149
|
+
4. 按確定後則進行變更
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## 刪除使用者
|
|
153
|
+
|
|
154
|
+
### 後台刪除使用者
|
|
155
|
+
1. 點擊使用者,彈出使用者資訊頁
|
|
156
|
+
2. 按刪除使用者
|
|
157
|
+
3. 再次確認
|
|
158
|
+
4. 按確定後則進行變更有效欄位,非真的刪除
|
|
159
|
+
5. 刪除後後端需刪除使用者當前已產生之token
|
|
160
|
+
6. 使用者瀏覽器儲存區(例如localStorage)內token雖無法刪除,但會被後端驗證API時擋掉
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## 登出使用者
|
|
164
|
+
1. 於應用站台或後台點擊登出按鈕
|
|
165
|
+
2. 登出後後端需刪除使用者當前已產生之token
|
|
166
|
+
3. 若使用者同時多裝置登入,則須偵測使用者同時登入之token一併登出與刪除
|
|
167
|
+
4. 登出後前端可順便刪除瀏覽器儲存區(例如localStorage)內token,沒刪亦可
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### 提供登入出事件
|
|
171
|
+
- 提供網站識別碼webId頻道內使用者登入與登出事件
|
|
172
|
+
- 提供token過期事件,亦驅動使用者登出
|
|
173
|
+
- 提供token即將過期事件,於過期前例如1分鐘觸發,收到則視需要呼叫更新token時效API
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## API
|
|
177
|
+
|
|
178
|
+
### 使用者登入API
|
|
179
|
+
1. 提供帳密
|
|
180
|
+
2. 驗證帳號有效且為允許ip且非封鎖狀態
|
|
181
|
+
3. 回傳驗證狀態,若成功再另提供token
|
|
182
|
+
|
|
183
|
+
### 使用者外部登入API
|
|
184
|
+
1. 提供外部服務名稱與轉址(外部服務登入頁)
|
|
185
|
+
2. 於前端開啟轉址
|
|
186
|
+
3. 回傳驗證狀態,若成功再另提供token
|
|
187
|
+
|
|
188
|
+
### 擴充外部使用者清單API
|
|
189
|
+
- 可傳入外部清單名稱orgGroup與使用者清單
|
|
190
|
+
- 每次傳入則一律清除指定外部清單名稱orgGroup內所屬使用者,也就是能針對指定外部單位全部刷新,但不影響其他單位
|
|
191
|
+
- 開發者可配合定時器自動重刷外部使用者清單,例如更新指定AD下使用者清單至SSO內
|
|
192
|
+
|
|
193
|
+
### 驗證token API
|
|
194
|
+
1. 外部應用系統後端或前端網頁提供token
|
|
195
|
+
2. 驗證token是否存在,且是否在有效期內
|
|
196
|
+
3. (暫時不使用)驗證token所對應帳號有效且為允許ip且非封鎖狀態
|
|
197
|
+
4. 回傳驗證狀態,若驗證失敗則另提供失敗訊息
|
|
198
|
+
|
|
199
|
+
### 由token取得使用者資訊API
|
|
200
|
+
1. 外部應用系統後端或前端提供token
|
|
201
|
+
2. 調用驗證token API
|
|
202
|
+
3. 驗證成功回傳使用者資訊,否則回傳驗證失敗訊息
|
|
203
|
+
|
|
204
|
+
### 由token取得全部使用者清單API
|
|
205
|
+
1. 外部應用系統後端或前端提供token
|
|
206
|
+
2. 調用驗證token API
|
|
207
|
+
3. SSO提供本身使用者清單
|
|
208
|
+
4. 提供過往擴充外部使用者清單
|
|
209
|
+
5. 驗證成功回傳全部使用者清單,否則回傳驗證失敗訊息
|
|
210
|
+
|
|
211
|
+
### 外部應用系統由token更新token用API
|
|
212
|
+
1. 外部應用系統後端或前端提供token
|
|
213
|
+
2. 調用驗證token API
|
|
214
|
+
3. 驗證成功回傳更新狀態,若成功另提供新token,否則回傳驗證失敗訊息
|
|
215
|
+
|
|
216
|
+
#### 用法
|
|
217
|
+
|
|
218
|
+
##### 被動偵測
|
|
219
|
+
- 前端使用者偵測滑鼠或動態事件
|
|
220
|
+
- 基於debounced調用更新API,避免token過期
|
|
221
|
+
- 暫無需要後端登入與更新
|
|
222
|
+
|
|
223
|
+
##### 主動偵測
|
|
224
|
+
- 前端使用者調用API或使用timer偵測token內時效
|
|
225
|
+
- 若發現快過期(指定門檻內)則調用更新API,避免token過期
|
|
226
|
+
- 前後端皆須使用此功能
|
|
227
|
+
|
|
228
|
+
### 存取使用者擴充欄位API
|
|
229
|
+
1. 外部應用系統後端或前端提供token
|
|
230
|
+
2. 調用驗證token API
|
|
231
|
+
3. 驗證成功回傳取得或變更使用者擴充欄位資訊,否則回傳驗證失敗訊息
|
|
232
|
+
|
|
233
|
+
### 提供log資訊API
|
|
234
|
+
1. 外部應用系統後端或前端提供token
|
|
235
|
+
2. 調用驗證token API
|
|
236
|
+
3. 驗證成功回傳取得log資訊供外部呈現或再整合,否則回傳驗證失敗訊息
|
|
237
|
+
|
|
238
|
+
### 提供log資訊API
|
|
239
|
+
1. 外部應用系統後端或前端提供token
|
|
240
|
+
2. 調用驗證token API
|
|
241
|
+
3. 驗證成功回傳取得log資訊供外部呈現或再整合,否則回傳驗證失敗訊息
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## Log
|
|
245
|
+
|
|
246
|
+
### 主要機制
|
|
247
|
+
- 紀錄各API事件,紀錄使用者提供之網址、網址參數、header與(可能的)精簡回傳資訊
|
|
248
|
+
- 使用者登入成功與失敗一定要紀錄,供防禦與告警之用
|
|
249
|
+
- 各事件若有token需儲存token
|
|
250
|
+
- 儲存對應清單token2users,紀錄各token對應使用者主鍵,供使用者行為偵測用
|
|
251
|
+
- 儲存log依資安要求不能以明文儲存,若用log4js儲存得配合加密(並把密碼寫於SSO設定檔),或是直接儲存於有帳密保護之資料庫
|
|
252
|
+
|
|
253
|
+
### 展示
|
|
254
|
+
|
|
255
|
+
#### 選擇起訖時間
|
|
256
|
+
- 提供選擇起訖時間組件
|
|
257
|
+
- 提供下拉選日、月、季、半年、年,起訖時間則為自動由本日往前算,例如日則為凌晨0點至23:59,月為1日至本日,其餘月為1日至該月底,其他依此類推
|
|
258
|
+
|
|
259
|
+
#### 展示資訊
|
|
260
|
+
- 依照起訖時間展示log資訊,各log若有token,基於對應清單token2users反查使用者姓名與email
|
|
261
|
+
- 依照起訖時間展示期間內使用者調用API次數統計,統計次數範圍例如給1分鐘,1分鐘若有10次則該分鐘0秒處給予值10,依此繪製隨時間之調用API次數統計圖
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## 防禦
|
|
265
|
+
- 提取SSO設定檔
|
|
266
|
+
- 使用定時器偵測計算使用者行為資訊
|
|
267
|
+
- 計算使用者於指定時間內最大登入失敗次數
|
|
268
|
+
- 計算使用者於指定時間內最大調用API次數
|
|
269
|
+
- 若觸發條件則修改使用者資訊進入封鎖狀態
|
|
270
|
+
- 使用定時器偵測與解鎖
|
|
271
|
+
- 使用者成功登入後產生token之有效(過期)時間m(30)分鐘
|
|
272
|
+
- 使用者n(10)分鐘內最大登入失敗次數m(3),若觸發則進入封鎖狀態p(30)分鐘
|
|
273
|
+
- 使用者n(10)分鐘內最大調用API次數m(1000),若觸發則進入封鎖狀態p(30)分鐘
|
|
274
|
+
- IP使用者n(10)分鐘內最大調用API次數m(10000),若觸發則IP進入封鎖狀態p(30)分鐘
|
|
275
|
+
|
package/babel.config.js
CHANGED
|
@@ -7,9 +7,10 @@ module.exports = {
|
|
|
7
7
|
],
|
|
8
8
|
'plugins': [
|
|
9
9
|
'@babel/plugin-transform-runtime',
|
|
10
|
-
'@babel/plugin-syntax-import-assertions',
|
|
11
10
|
'@babel/plugin-proposal-export-default-from',
|
|
12
|
-
'@babel/plugin-
|
|
13
|
-
'@babel/plugin-proposal-
|
|
11
|
+
// '@babel/plugin-syntax-import-assertions', //已被棄用
|
|
12
|
+
// '@babel/plugin-proposal-nullish-coalescing-operator', //browser與nodejs已支援
|
|
13
|
+
// '@babel/plugin-proposal-object-rest-spread', //browser與nodejs已支援
|
|
14
|
+
// '@babel/plugin-proposal-optional-chaining', //browser與nodejs已支援
|
|
14
15
|
]
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pgc-rotate[data-v-78262a9b]{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;-webkit-transition:all .6s ease-in-out;transition:all .6s ease-in-out;-webkit-animation:progress-circular-rotate-78262a9b 1.4s linear infinite;animation:progress-circular-rotate-78262a9b 1.4s linear infinite;-webkit-transform-origin:center center;transform-origin:center center}.pgc-dash[data-v-78262a9b]{-webkit-animation:progress-circular-dash-78262a9b 1.4s ease-in-out infinite;animation:progress-circular-dash-78262a9b 1.4s ease-in-out infinite;stroke-linecap:round;stroke-dasharray:80,200;stroke-dashoffset:0px}@-webkit-keyframes progress-circular-dash-78262a9b{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-dash-78262a9b{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@-webkit-keyframes progress-circular-rotate-78262a9b{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes progress-circular-rotate-78262a9b{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.WPopperFix[data-popper-reference-hidden][data-v-54121311]{visibility:hidden;pointer-events:none}.fade-enter-active[data-v-a0c94508],.fade-leave-active[data-v-a0c94508]{-webkit-transition:all .3s;transition:all .3s}.fade-enter[data-v-a0c94508],.fade-leave-to[data-v-a0c94508]{-webkit-transform:scaleX(0);transform:scaleX(0)}.fade-enter-to[data-v-a0c94508],.fade-leave[data-v-a0c94508]{-webkit-transform:scaleX(100%);transform:scaleX(100%)}.sb[data-v-6ce5bdb1]{-webkit-transition:opacity .3s;transition:opacity .3s;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.3) transparent}.sb[data-v-6ce5bdb1]::-webkit-scrollbar{width:8px;height:8px}.sb[data-v-6ce5bdb1]::-webkit-scrollbar-track{background:transparent}.sb[data-v-6ce5bdb1]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:20px;border:3px solid transparent}.ts[data-v-
|
|
1
|
+
.pgc-rotate[data-v-78262a9b]{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;-webkit-transition:all .6s ease-in-out;transition:all .6s ease-in-out;-webkit-animation:progress-circular-rotate-78262a9b 1.4s linear infinite;animation:progress-circular-rotate-78262a9b 1.4s linear infinite;-webkit-transform-origin:center center;transform-origin:center center}.pgc-dash[data-v-78262a9b]{-webkit-animation:progress-circular-dash-78262a9b 1.4s ease-in-out infinite;animation:progress-circular-dash-78262a9b 1.4s ease-in-out infinite;stroke-linecap:round;stroke-dasharray:80,200;stroke-dashoffset:0px}@-webkit-keyframes progress-circular-dash-78262a9b{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-dash-78262a9b{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@-webkit-keyframes progress-circular-rotate-78262a9b{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes progress-circular-rotate-78262a9b{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.WPopperFix[data-popper-reference-hidden][data-v-54121311]{visibility:hidden;pointer-events:none}.fade-enter-active[data-v-a0c94508],.fade-leave-active[data-v-a0c94508]{-webkit-transition:all .3s;transition:all .3s}.fade-enter[data-v-a0c94508],.fade-leave-to[data-v-a0c94508]{-webkit-transform:scaleX(0);transform:scaleX(0)}.fade-enter-to[data-v-a0c94508],.fade-leave[data-v-a0c94508]{-webkit-transform:scaleX(100%);transform:scaleX(100%)}.sb[data-v-6ce5bdb1]{-webkit-transition:opacity .3s;transition:opacity .3s;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.3) transparent}.sb[data-v-6ce5bdb1]::-webkit-scrollbar{width:8px;height:8px}.sb[data-v-6ce5bdb1]::-webkit-scrollbar-track{background:transparent}.sb[data-v-6ce5bdb1]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:20px;border:3px solid transparent}.ts[data-v-9a483320]{-webkit-transition:all .3s cubic-bezier(.25,.8,.5,1);transition:all .3s cubic-bezier(.25,.8,.5,1)}.bs[data-v-9a483320]{-webkit-box-shadow:0 8px 2px -8px rgba(0,0,0,.3),0 16px 24px 2px rgba(0,0,0,.3),0 6px 30px 5px rgba(0,0,0,.3);box-shadow:0 8px 2px -8px rgba(0,0,0,.3),0 16px 24px 2px rgba(0,0,0,.3),0 6px 30px 5px rgba(0,0,0,.3)}.ts[data-v-44a3961a]{-webkit-transition:all .3s;transition:all .3s}.bs[data-v-44a3961a]{-webkit-box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}body,html{font-family:微軟正黑體,Microsoft JhengHei,MicrosoftJhengHeiRegular,Avenir,Helvetica,Arial,sans-serif;overflow-y:hidden}a,button,div,input,p,pre,span,textarea{font-family:inherit}
|
package/dist/index.tmp
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-tw"><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title></title><link href="https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css" rel="stylesheet"><link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css" rel="stylesheet"><script>window.___pmwsso___={
|
|
2
|
-
|
|
2
|
+
language: '{language}',
|
|
3
|
+
}</script><script defer="defer" src="{sfd}/js/chunk-vendors.c0210313.js" type="module"></script><script defer="defer" src="{sfd}/js/app.4476e6c1.js" type="module"></script><link href="{sfd}/css/app.03a2f95c.css" rel="stylesheet"><script defer="defer" src="{sfd}/js/chunk-vendors-legacy.c0210313.js" nomodule></script><script defer="defer" src="{sfd}/js/app-legacy.4476e6c1.js" nomodule></script></head><body style="font-family:'Microsoft JhengHei','Avenir','Helvetica', 'Arial', 'sans-serif'; padding:0px; margin:0px;"><noscript><strong>We're sorry but w-component-vue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){var e={4532:function(e,t,n){"use strict";var i={};n.r(i),n.d(i,{UpdateConnState:function(){return gt},UpdateData:function(){return yt},UpdateHeightApp:function(){return At},UpdateHeightAppEff:function(){return wt},UpdateHeightToolbar:function(){return bt},UpdateKpText:function(){return pt},UpdateLang:function(){return ut},UpdateLoading:function(){return mt},UpdateMenu:function(){return xt},UpdateSyncState:function(){return ft},UpdateTableData:function(){return vt},UpdateUserSelf:function(){return St},UpdateUserToken:function(){return kt},UpdateViewState:function(){return ht},UpdateWebInfor:function(){return lt}});var r={};n.r(r);var o={};n.r(o);var a={};n.r(a),n.d(a,{getNameNew:function(){return Hn}});var s=n(5471),c=n(7500),d=n(1254),l=n(7738),u=n(7979),p=n(889),g=n(355),f=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],on:{domresize:e.resize}},[e.autoLogining?t("div",{staticStyle:{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 24 24"}},[t("rect",{attrs:{width:"9",height:"9",x:"1.5",y:"1.5",fill:"currentColor",rx:"1"}},[t("animate",{attrs:{id:"svgSpinnersBlocksScale0",attributeName:"x",begin:"0;svgSpinnersBlocksScale1.end+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"1.5;.5;1.5"}}),t("animate",{attrs:{attributeName:"y",begin:"0;svgSpinnersBlocksScale1.end+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"1.5;.5;1.5"}}),t("animate",{attrs:{attributeName:"width",begin:"0;svgSpinnersBlocksScale1.end+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}}),t("animate",{attrs:{attributeName:"height",begin:"0;svgSpinnersBlocksScale1.end+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}})]),t("rect",{attrs:{width:"9",height:"9",x:"13.5",y:"1.5",fill:"currentColor",rx:"1"}},[t("animate",{attrs:{attributeName:"x",begin:"svgSpinnersBlocksScale0.begin+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"13.5;12.5;13.5"}}),t("animate",{attrs:{attributeName:"y",begin:"svgSpinnersBlocksScale0.begin+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"1.5;.5;1.5"}}),t("animate",{attrs:{attributeName:"width",begin:"svgSpinnersBlocksScale0.begin+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}}),t("animate",{attrs:{attributeName:"height",begin:"svgSpinnersBlocksScale0.begin+0.15s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}})]),t("rect",{attrs:{width:"9",height:"9",x:"13.5",y:"13.5",fill:"currentColor",rx:"1"}},[t("animate",{attrs:{attributeName:"x",begin:"svgSpinnersBlocksScale0.begin+0.3s",dur:"0.6s",keyTimes:"0;.2;1",values:"13.5;12.5;13.5"}}),t("animate",{attrs:{attributeName:"y",begin:"svgSpinnersBlocksScale0.begin+0.3s",dur:"0.6s",keyTimes:"0;.2;1",values:"13.5;12.5;13.5"}}),t("animate",{attrs:{attributeName:"width",begin:"svgSpinnersBlocksScale0.begin+0.3s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}}),t("animate",{attrs:{attributeName:"height",begin:"svgSpinnersBlocksScale0.begin+0.3s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}})]),t("rect",{attrs:{width:"9",height:"9",x:"1.5",y:"13.5",fill:"currentColor",rx:"1"}},[t("animate",{attrs:{id:"svgSpinnersBlocksScale1",attributeName:"x",begin:"svgSpinnersBlocksScale0.begin+0.45s",dur:"0.6s",keyTimes:"0;.2;1",values:"1.5;.5;1.5"}}),t("animate",{attrs:{attributeName:"y",begin:"svgSpinnersBlocksScale0.begin+0.45s",dur:"0.6s",keyTimes:"0;.2;1",values:"13.5;12.5;13.5"}}),t("animate",{attrs:{attributeName:"width",begin:"svgSpinnersBlocksScale0.begin+0.45s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}}),t("animate",{attrs:{attributeName:"height",begin:"svgSpinnersBlocksScale0.begin+0.45s",dur:"0.6s",keyTimes:"0;.2;1",values:"9;11;9"}})])])]):["login"===e.viewState?t("PageLogin"):e._e(),"backstage"===e.viewState?t("Layout"):e._e()],t("LoadingWinBar"),t("CheckYesNo"),t("CheckYes")],2)},m=[],h=function(){var e=this,t=e._self._c;return t("WDialog",{attrs:{show:e.loading,maxWidth:e.dialogWidth},on:{"update:show":function(t){e.loading=t},resize:e.resizeDialog},scopedSlots:e._u([{key:"panel",fn:function(){return[t("div",{style:"padding:".concat(e.barPadding-5,"px ").concat(e.barPadding,"px ").concat(e.barPadding,"px ").concat(e.barPadding,"px;")},[t("div",{staticStyle:{"padding-bottom":"3px","font-size":"0.9rem",color:"#666"}},[""!==e.msg?t("span",[e._v(e._s(e.msg))]):t("span",[e._v(e._s(e.$t("processing")))])]),t("WProgressBar",{style:"width:".concat(e.barWidth,"px;"),attrs:{height:3,enableContinuous:!0,progColor:"deep-purple lighten-1",progBackgroundColor:"deep-purple lighten-4"}})],1)]},proxy:!0}])})},v=[],y=n(646),A=n(6630),w={components:{WDialog:y.A,WProgressBar:A.A},props:{},data:function(){return{dialogWidth:0,dialogWidthMax:600,barPadding:20,barWidth:0,msg:""}},mounted:function(){var e=this;s.Ay.prototype.$dg.setLoadingWinBarMessage=e.setMessage},computed:{loading:function(){var e=this,t=(0,c.A)(e,"$store.state.loading");return t}},methods:{setMessage:function(e){this.msg=e},resizeDialog:function(e){var t=this,n=window.innerWidth,i=n-2*t.barPadding;i=Math.max(i,0),i=Math.min(i,t.dialogWidthMax),t.dialogWidth=i;var r=i-2*t.barPadding;r=Math.max(r,0),t.barWidth=r}}},b=w,x=n(1656),k=(0,x.A)(b,h,v,!1,null,"9bcb4aee",null),S=k.exports,I=function(){var e=this,t=e._self._c;return t("WConfirm",{attrs:{show:e.bShow,title:e.$t("systemMessage"),content:e.content,_contentColor:"white",_contentIconColor:"white",_contentBackgroundColor:"orange lighten-5",_titleColor:"white",headerBackgroundColor:"grey lighten-3",noBtnText:e.$t("no"),yesBtnText:e.$t("yes")},on:{"update:show":function(t){e.bShow=t},"click-no":function(t){return e.clickBtn(!1)},"click-yes":function(t){return e.clickBtn(!0)}}})},$=[],C=n(2942),T=n(1844),B={components:{WConfirm:T.A},props:{},data:function(){return{bShow:!1,pm:null,content:""}},mounted:function(){var e=this;s.Ay.prototype.$dg.showCheckYesNo=e.show},computed:{},methods:{show:function(e){var t=this;return t.pm=(0,C.A)(),t.content=e,t.bShow=!0,t.pm},clickBtn:function(e){var t=this;e?t.pm.resolve():t.pm.reject("close"),t.bShow=!1}}},U=B,E=(0,x.A)(U,I,$,!1,null,"cfad0048",null),_=E.exports,L=function(){var e=this,t=e._self._c;return t("WConfirm",{attrs:{show:e.bShow,title:e.$t("systemMessage"),content:e.content,_contentColor:"white",_contentIconColor:"white",_contentBackgroundColor:"orange lighten-5",headerBackgroundColor:"grey lighten-3",hasNoBtn:!1,yesBtnText:e.$t("ok")},on:{"update:show":function(t){e.bShow=t},"click-yes":function(t){return e.clickUnit()}}})},W=[],N={components:{WConfirm:T.A},props:{},data:function(){return{bShow:!1,pm:null,content:""}},mounted:function(){var e=this;s.Ay.prototype.$dg.showCheckYes=e.show},computed:{},methods:{show:function(e){var t=this;return t.pm=(0,C.A)(),t.content=e,t.bShow=!0,t.pm},clickUnit:function(){var e=this;e.pm.resolve(),e.bShow=!1}}},H=N,D=(0,x.A)(H,L,W,!1,null,"9943c370",null),P=D.exports,z=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{position:"relative",width:"100vw",height:"100svh"}},[t("div",{style:"\n position:absolute; top:0px; left:0px; width:100%; height:100%; display:flex; align-items:center; justify-content:center;\n background-image: linear-gradient(-225deg, ".concat(e.c1," 0%, ").concat(e.c2," 50%, ").concat(e.c3," 100%);\n ")},[t("div",{},[t("div",{style:"padding-top:".concat(e.logoSize/2,"px;")}),t("div",{style:"\n position:relative;\n width:".concat(e.contentWidth,"px; padding:10px; border-radius:30px; background:").concat(e.c4,";\n box-shadow: rgb(0 0 0 / 2%) 2.76726px 2.76726px 2.21381px 0px, rgb(0 0 0 / 3%) 6.6501px 6.6501px 5.32008px 0px, rgb(0 0 0 / 4%) 12.5216px 12.5216px 10.0172px 0px, rgb(0 0 0 / 4%) 22.3363px 22.3363px 17.869px 0px, rgb(0 0 0 / 5%) 41.7776px 41.7776px 33.4221px 0px, rgb(0 0 0 / 7%) 100px 100px 80px 0px;\n ")},[t("div",{style:"position:absolute; top:0px; left:50%; transform:translateX(-50%) translateY(-50%); padding:15px 15px 10px 15px; border-radius:50%; background:".concat(e.c5,";")},[t("img",{attrs:{width:e.logoSize,height:e.logoSize,src:e.webLogo}})]),t("div",{style:"padding:".concat(e.logoSize/2+e.contentPadding,"px ").concat(e.contentPadding,"px ").concat(e.contentPadding,"px ").concat(e.contentPadding,"px;")},[t("div",{staticStyle:{"padding-bottom":"20px","text-align":"center","font-size":"1.3rem"}},[e._v(" "+e._s(e.webName)+" ")]),t("div",{staticStyle:{display:"flex","align-items":"stretch"}},[t("div",{staticStyle:{display:"flex","align-items":"center",padding:"0px 10px",background:"rgba(34, 44, 77, 0.9)"}},[t("WIcon",{attrs:{icon:"mdi-account",color:"#ddd",colorHover:"#eee",size:24}})],1),t("div",{staticStyle:{width:"100%",padding:"5px 10px",background:"rgba(34, 44, 77, 0.8)"}},[t("div",{style:"font-size:0.8rem; color:#eee;"},[e._v(" "+e._s(e.$t("account"))+" ")]),t("WText",{attrs:{textColor:"#fff",bottomLineBorderColor:"#b6b6b6",bottomLineBorderColorHover:"#ccc",bottomLineBorderColorFocus:"#ddd"},on:{enter:e.login},model:{value:e.account,callback:function(t){e.account=t},expression:"account"}})],1)]),t("div",{staticStyle:{"padding-top":"10px"}}),t("div",{staticStyle:{display:"flex","align-items":"stretch"}},[t("div",{staticStyle:{display:"flex","align-items":"center",padding:"0px 10px",background:"rgba(34, 44, 77, 0.9)"}},[t("WIcon",{attrs:{icon:"mdi-lock",color:"#ddd",colorHover:"#eee",size:24}})],1),t("div",{staticStyle:{width:"100%",padding:"5px 10px",background:"rgba(34, 44, 77, 0.8)"}},[t("div",{style:"font-size:0.8rem; color:#eee;"},[e._v(" "+e._s(e.$t("password"))+" ")]),t("WText",{attrs:{textColor:"#fff",bottomLineBorderColor:"#b6b6b6",bottomLineBorderColorHover:"#ccc",bottomLineBorderColorFocus:"#ddd",rightIcon:e.showPassword?"mdi-eye":"mdi-eye-off",rightIconColor:"#ddd",rightIconColorHover:"#eee",rightIconColorFocus:"#ddd",rightIconTooltip:e.showPassword?e.$t("toggleToHidePassword"):e.$t("toggleToShowPassword"),password:!e.showPassword},on:{"click-right":function(t){e.showPassword=!e.showPassword},enter:e.login},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1)]),t("div",{staticStyle:{"padding-top":"30px"}}),t("div",{staticStyle:{padding:"5px 0px","text-align":"center"}},[t("WButtonChip",{style:"opacity:".concat(e.hasAcPw?1:.5,";"),attrs:{text:e.$t("login"),textFontSize:"1.0rem",paddingStyle:{v:8,h:130},backgroundColor:"rgba(255,255,255,0.5)",backgroundColorHover:"rgba(255,255,255,0.7)",_shadow:"false",editable:e.hasAcPw},on:{click:e.login}})],1)])])])]),t("div",{staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t("div",{staticStyle:{"_white-space":"nowrap"}},[t("WTextSelect",{staticStyle:{width:"100px"},attrs:{items:e.keysLang,value:e.lang},on:{input:e.toggleLang},scopedSlots:e._u([{key:"select",fn:function(t){return[e._v(" "+e._s(e.getLangText(t.item))+" ")]}},{key:"item",fn:function(t){return[e._v(" "+e._s(e.getLangText(t.item))+" ")]}}])})],1)])])},M=[],O=n(5021),V=n(293),Y=n(130),K=n(9461),R=n(4326),F={components:{WIcon:V.A,WText:Y.A,WTextSelect:K.A,WButtonChip:R.A},props:{},data:function(){return{firstSetting:!0,showLangSelect:!1,keysLang:["eng","cht"],kpLangSelect:{eng:"English",cht:"中文"},logoSize:120,contentWidth:380,contentPadding:30,account:"",showPassword:!1,password:""}},computed:{webName:{get:function(){var e=this,t=e.$t("webName","");return(0,O.A)(t)||(t=e.$t("waitingData","")),document.title=t,t}},webLogo:function(){var e=this;return(0,c.A)(e,"$store.state.webInfor.webLogo","")},webBackgoundGradientColors:function(){var e=this;return(0,c.A)(e,"$store.state.webInfor.webBackgoundGradientColors",[])},c1:function(){var e=this,t=(0,c.A)(e,"webBackgoundGradientColors.0","#fff");return t},c2:function(){var e=this,t=(0,c.A)(e,"webBackgoundGradientColors.1","#fff");return t},c3:function(){var e=this,t=(0,c.A)(e,"webBackgoundGradientColors.2","#fff");return t},c4:function(){var e=this,t=(0,c.A)(e,"webBackgoundGradientColors.3","#fff");return t},c5:function(){var e=this,t=(0,c.A)(e,"webBackgoundGradientColors.4","#fff");return t},webKey:function(){var e=this;return(0,c.A)(e,"$store.state.webInfor.webKey","")},lang:function(){var e=this;return(0,c.A)(e,"$store.state.lang","")},hasAcPw:function(){var e=this;return(0,O.A)(e.account)&&(0,O.A)(e.password)}},methods:{getLangText:function(e){var t=this,n=(0,c.A)(t,"kpLangSelect.".concat(e),"");return n},toggleLang:function(e){var t=this;t.$ui.setLang(e,"toggle")},login:function(){var e=this,t=e.$ui.getUrlView();e.$ui.login(e.account,e.password,{useRedir:"login"===t}).then((function(){e.$ui.updateViewState(t),console.log("login, goto view[".concat(t,"] page"))})).catch((function(t){e.$ui.updateViewState("login"),console.log("login err[".concat(t,"], goto view['login'] page"))}))}}},G=F,j=(0,x.A)(G,z,M,!1,null,"d77e5118",null),Q=j.exports,q=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100svh",background:"#f5f5f5"}},[t("div",{style:"height:".concat(e.heightToolbar,"px; overflow-y:hidden; padding:0px 10px; background:#fff; border-bottom:1px solid #ccc; display:flex; align-items:center;")},[t("div",{staticStyle:{"padding-left":"5px","white-space":"nowrap"}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[e.webLogo?t("div",{staticStyle:{"padding-right":"10px",display:"flex","align-items":"center"}},[t("img",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.webLogo}})]):e._e(),t("div",[t("div",{staticStyle:{"font-size":"1.2rem",color:"#000"}},[e._v(e._s(e.webName))]),t("div",{staticStyle:{"font-size":"0.8rem",color:"#666"}},[e._v(e._s(e.$t("webDescription")))])])])]),t("div",{staticStyle:{width:"100%"}}),t("div",{staticStyle:{"padding-right":"10px","white-space":"nowrap"}},[t("WTextSelect",{staticStyle:{width:"100px"},attrs:{items:e.keysLang,value:e.lang},on:{input:e.toggleLang},scopedSlots:e._u([{key:"select",fn:function(t){return[e._v(" "+e._s(e.getLangText(t.item))+" ")]}},{key:"item",fn:function(t){return[e._v(" "+e._s(e.getLangText(t.item))+" ")]}}])})],1),t("div",{staticStyle:{"padding-right":"10px"}},[t("WPopup",{attrs:{isolated:!0,_show:"",_hide:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("div",{staticStyle:{display:"flex","align-items":"center","white-space":"nowrap","user-select":"none",cursor:"pointer"}},[t("div",{staticStyle:{"padding-top":"2px"}},[t("WIcon",{attrs:{icon:e.mdiAccountCircleOutline,size:20}})],1),t("div",{staticStyle:{"padding-left":"5px","font-size":"0.85rem"}},[e._v(" "+e._s(e.userName)+" ")])])]},proxy:!0},{key:"content",fn:function(){return[t("div",{staticStyle:{padding:"10px"}},[t("div",{staticStyle:{display:"flex","align-items":"center","white-space":"nowrap","user-select":"none",cursor:"pointer"},on:{click:e.logOut}},[t("div",{staticStyle:{"padding-top":"2px"}},[t("WIcon",{attrs:{icon:e.mdiLogoutVariant,size:18}})],1),t("div",{staticStyle:{"padding-left":"5px","font-size":"0.8rem"}},[e._v(" "+e._s(e.$t("logout"))+" ")])])])]},proxy:!0}])})],1)]),t("div",{style:"height:calc( 100% - ".concat(e.heightToolbar,"px );")},[t("LayoutContent")],1)])},Z=[],J=n(9165),X=n(1912),ee=n(7193),te=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{height:"100%",width:"100%"},on:{domresize:e.resize}},[e.syncState?[t("WDrawer",{style:"height:".concat(e.panelHeight,"px; width:100%;"),attrs:{drawerWidth:e.drawerWidth,drawerWidthMin:e.drawerWidthMin,drawerWidthMax:e.drawerWidthMax,mode:"from-left",dragDrawerWidth:!0,autoSwitchToHide:!0,autoSwitchToShow:!0,autoSwitchToFloat:!0,switchWidth:2.3*e.drawerWidth},on:{"update:drawerWidth":function(t){e.drawerWidth=t},"update:drawer-width":function(t){e.drawerWidth=t}},scopedSlots:e._u([{key:"drawer",fn:function(n){return[t("div",{style:"height:".concat(n.height,"px; background:#fff; position:relative;")},[t("WListVertical",{staticStyle:{height:"100%"},attrs:{items:e.menus,itemActive:e.menuActive,"item-text-color":"#222","item-text-color-hover":"#444","item-text-color-active":"#EF6C00","item-icon-color":"#222","item-icon-color-hover":"#444","item-icon-color-active":"#EF6C00","item-background-color":"#fff","item-background-color-hover":"#f2f2f2","item-background-color-active":"#FFF3E0",paddingStyle:{v:15,h:15}},on:{click:function(t){e.menuKey=t.key}}}),e.drawer?t("div",{style:"position:absolute; top:2px; right:4px;"},[t("WButtonCircle",{attrs:{paddingStyle:{h:2,v:2},icon:e.mdiArrowLeftBoldHexagonOutline,iconSize:20,backgroundColor:"rgba(255,255,255,0.1)",backgroundColorHover:"rgba(255,255,255,0.4)",backgroundColorFocus:"rgba(255,255,255,0.7)",borderColor:"transparent",borderColorHover:"transparent",borderColorFocus:"transparent",_tooltip:"$t('menuTreeHide')",shadow:!1},on:{click:function(t){e.drawer=!1}}})],1):e._e()],1)]}},{key:"content",fn:function(n){return[t("div",{style:"height:".concat(n.height,"px; width:").concat(n.width,"px; position:relative;")},[["mmUserInfor"===e.menuKey?t("LayoutContentInfor"):e._e(),"mmUsersList"===e.menuKey?t("LayoutContentUsers"):e._e(),"mmSettings"===e.menuKey?t("LayoutContentSettings"):e._e()],e.drawer?e._e():t("div",{style:"position:absolute; top:3px; left:5px;"},[t("WButtonCircle",{attrs:{paddingStyle:{h:2,v:2},icon:e.mdiArrowRightBoldHexagonOutline,iconSize:20,backgroundColor:"rgba(255,255,255,0.1)",backgroundColorHover:"rgba(255,255,255,0.4)",backgroundColorFocus:"rgba(255,255,255,0.7)",borderColor:"transparent",borderColorHover:"transparent",borderColorFocus:"transparent",_tooltip:"$t('menuTreeShow')",shadow:!1},on:{click:function(t){e.drawer=!0}}})],1)],2)]}}],null,!1,665702839),model:{value:e.drawer,callback:function(t){e.drawer=t},expression:"drawer"}})]:t("div",{staticStyle:{padding:"20px","font-size":"0.9rem"}},[e._v(" "+e._s(e.$t("waitingData"))+" ")])],2)},ne=[],ie=n(6145),re=n(8818),oe=n(5557),ae=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{height:"100%"},on:{domresize:e.resizePanel}},[e.isLoading||e.errMsg?[e.isLoading?t("div",{staticStyle:{padding:"10px 15px","font-size":"0.8rem"}},[e._v(" "+e._s(e.$t("waitingData"))+" ")]):e._e(),e.errMsg?t("div",{staticStyle:{padding:"10px 15px","font-size":"0.8rem"}},[e._v(" "+e._s(e.errMsg)+" ")]):e._e()]:t("div",{staticStyle:{height:"100%",background:"#fff","overflow-y":"auto"}},[t("div",{staticStyle:{padding:"20px"}},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticStyle:{display:"inline-block",padding:"0px",border:"1px solid #ddd","border-radius":"50%"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 24 24"}},[t("path",{attrs:{fill:"currentColor",d:"M6.196 17.485q1.275-.918 2.706-1.451Q10.332 15.5 12 15.5t3.098.534t2.706 1.45q.99-1.025 1.593-2.42Q20 13.667 20 12q0-3.325-2.337-5.663T12 4T6.337 6.338T4 12q0 1.667.603 3.064q.603 1.396 1.593 2.42m5.805-4.984q-1.264 0-2.133-.868T9 9.501t.868-2.133T12 6.5t2.132.868T15 9.5t-.868 2.132t-2.131.868M12 21q-1.883 0-3.525-.701t-2.858-1.916t-1.916-2.858T3 12t.701-3.525t1.916-2.858q1.216-1.215 2.858-1.916T12 3t3.525.701t2.858 1.916t1.916 2.858T21 12t-.701 3.525t-1.916 2.858q-1.216 1.215-2.858 1.916T12 21m0-1q1.383 0 2.721-.484q1.338-.483 2.313-1.324q-.974-.783-2.255-1.237T12 16.5t-2.789.445t-2.246 1.247q.975.84 2.314 1.324T12 20m0-8.5q.842 0 1.421-.579T14 9.5t-.579-1.421T12 7.5t-1.421.579T10 9.5t.579 1.421T12 11.5m0 6.75"}})])]),t("div",{staticStyle:{"padding-left":"20px"}},[t("div",{staticStyle:{"font-size":"3.0rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"name"))+" ")]),t("div",{staticStyle:{"font-size":"1.5rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"account"))+" ")])])]),t("div",{staticStyle:{"padding-top":"20px"}}),t("div",{},[t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("account")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"account"))+" ")])]},proxy:!0}],null,!1,148492502)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("description")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"description"))+" ")])]},proxy:!0}],null,!1,1009840657)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("email")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"email"))+" ")])]},proxy:!0}],null,!1,16056411)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("from")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"from"))+" ")])]},proxy:!0}],null,!1,958058977)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("isAdmin")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s("y"===e.$ui.gv(e.user,"isAdmin","")?e.$t("isAdminY"):e.$t("isAdminN"))+" ")])]},proxy:!0}],null,!1,1266723288)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("isVerified")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.isVerified?e.$t("isVerifiedY"):e.$t("isVerifiedN"))+" ")])]},proxy:!0}],null,!1,533929442)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("timeVerified")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"timeVerified"))+" ")])]},proxy:!0}],null,!1,1188770180)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("isExpired")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.isExpired?e.$t("isExpiredY"):e.$t("isExpiredN"))+" ")])]},proxy:!0}],null,!1,967424019)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("timeExpired")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"timeExpired"))+" ")])]},proxy:!0}],null,!1,1288958773)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("isBlocked")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.isBlocked?e.$t("isBlockedY"):e.$t("isBlockedN"))+" ")])]},proxy:!0}],null,!1,831769548)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("timeBlocked")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"timeBlocked"))+" ")])]},proxy:!0}],null,!1,849975018)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("redir")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s(e.$ui.gv(e.user,"redir"))+" ")])]},proxy:!0}],null,!1,405815327)}),t("WPanelLabelItem",{staticStyle:{padding:"5px 0px"},attrs:{label:e.$t("isActive")},scopedSlots:e._u([{key:"item",fn:function(){return[t("div",{staticStyle:{"font-size":"0.9rem"}},[e._v(" "+e._s("y"===e.$ui.gv(e.user,"isActive","")?e.$t("isActiveY"):e.$t("isActiveN"))+" ")])]},proxy:!0}],null,!1,2004945851)})],1)])])],2)},se=[],ce=n(4353),de=n.n(ce),le=n(7120),ue=n(6378),pe=n(4248),ge=n(7267),fe=n(1887),me={components:{WIcon:V.A,WButtonChip:R.A,WSwitch:pe.A,WText:Y.A,WPanelLabelItem:ge.A,WPanelScrolly:fe.A},props:{},data:function(){return{mdiAccountCircleOutline:J.gXw,panelWidth:100,panelHeight:100,headHeight:100,isLoading:!0,errMsg:"",isOperatable:!0,user:null}},mounted:function(){var e=this;e.isLoading=!0,e.errMsg="";var t=e.userToken;e.$fapi.getUserByToken(t).then((function(t){e.user=t})).catch((function(t){console.log(t),e.errMsg=e.$t("getDataError")})).finally((function(){e.isLoading=!1}))},computed:{userToken:function(){var e=this;return(0,c.A)(e,"$store.state.userToken")},isVerified:function(){var e=this,t=(0,c.A)(e,"user.timeVerified","");if(!(0,ue.A)(t))return!0;var n=de()(t,"YYYY-MM-DDTHH:mm:ssZ"),i=de()(),r=n.diff(i,"second");return!(r>0)},isExpired:function(){var e=this,t=(0,c.A)(e,"user.timeExpired","");if(!(0,ue.A)(t))return!0;var n=de()(t,"YYYY-MM-DDTHH:mm:ssZ"),i=de()(),r=n.diff(i,"second");return!(r>0)},isBlocked:function(){var e=this,t=(0,c.A)(e,"user.timeBlocked","");if(!(0,ue.A)(t))return!0;var n=de()(t,"YYYY-MM-DDTHH:mm:ssZ"),i=de()(),r=n.diff(i,"second");return!(r>0)}},methods:{resizePanel:function(e){var t=this;t.panelWidth=e.snew.offsetWidth,t.panelHeight=e.snew.offsetHeight}}},he=me,ve=(0,x.A)(he,ae,se,!1,null,"30f24a84",null),ye=ve.exports,Ae=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{height:"100%"},attrs:{changeParams:e.changeParams},on:{domresize:e.resizePanel}},[t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{background:"#fff"},on:{domresize:e.resizeHead}},[t("div",{staticStyle:{padding:"10px 10px 10px 20px"}},[t("div",{style:"display:flex; align-items:center; padding:".concat(e.drawer?"5px":"5px 5px 5px 20px",";")},[t("WIcon",{attrs:{icon:e.mdiAccountGroupOutline,color:"#000",size:32}}),t("div",{staticStyle:{"padding-left":"12px"}},[t("div",{staticStyle:{"font-size":"1.4rem",color:"#000"}},[e._v(" "+e._s(e.$t("mmUsersList"))+" ")]),t("div",{staticStyle:{"padding-top":"2px","font-size":"0.8rem",color:"#666"}},[e._v(" "+e._s(e.$t("mmUsersListMsg"))+" ")])])],1)]),t("div",{staticStyle:{padding:"5px","border-top":"1px solid #ddd",display:"flex","align-items":"center"},attrs:{"_v-if":"showIsEditable || isEditable"}},[e.showIsEditable?[t("div",{staticStyle:{padding:"6px 0px 4px 4px"}},[t("WSwitch",{attrs:{text:e.$t("modeEdit")},model:{value:e.isEditable,callback:function(t){e.isEditable=t},expression:"isEditable"}})],1),t("div",{staticStyle:{"padding-left":"10px"}})]:e._e(),[t("WPopup",{attrs:{isolated:!0,_show:"",_hide:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("WButtonCircle",{attrs:{paddingStyle:{v:6,h:6},tooltip:e.$t("showTabCols"),icon:e.mdiTableHeadersEye,backgroundColor:"#fff",backgroundColorHover:"#f2f2f2",_textColor:"'#eee'",_textColorHover:"'#fff'",iconColor:"#444",iconColorHover:"#222",shadow:!1,_click:""}})]},proxy:!0},{key:"content",fn:function(){return[t("div",{staticStyle:{padding:"10px 0px 10px 0px"}},[t("div",{staticStyle:{padding:"7px 10px","font-size":"0.85rem",color:"#222",background:"#f2f2f2"}},[e._v(" "+e._s(e.$t("showTabCols"))+" ")]),t("div",{staticStyle:{padding:"7px 9px 0px 7px"}},[t("WInputCheckbox",{attrs:{items:e.tabKeysPick},on:{input:e.toggleTabKeys},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",{staticStyle:{"padding-left":"3px",display:"flex","align-items":"center","font-size":"0.85rem",height:"24px",cursor:"pointer"}},[e._v(" "+e._s(e.getHead(n.item.data))+" ")])]}}],null,!1,286315898),model:{value:e.tabKeysShow,callback:function(t){e.tabKeysShow=t},expression:"tabKeysShow"}})],1)])]},proxy:!0}],null,!1,1031542656)}),t("div",{staticStyle:{"padding-left":"4px"}})],e.isEditable?[t("WButtonCircle",{attrs:{paddingStyle:{v:6,h:6},tooltip:e.$t("userAdd"),icon:e.mdiPlus,backgroundColor:"#fff",backgroundColorHover:"#f2f2f2",_textColor:"'#eee'",_textColorHover:"'#fff'",iconColor:"#444",iconColorHover:"#222",shadow:!1},on:{click:e.addItem}}),t("div",{staticStyle:{"padding-left":"4px"}})]:e._e(),e.isEditable&&e.hasItemCheckOne?[t("WButtonCircle",{attrs:{paddingStyle:{v:6,h:6},tooltip:e.$t("userCopy"),icon:e.mdiContentCopy,backgroundColor:"#fff",backgroundColorHover:"#f2f2f2",_textColor:"'#eee'",_textColorHover:"'#fff'",iconColor:"#444",iconColorHover:"#222",shadow:!1},on:{click:e.copyItem}}),t("div",{staticStyle:{"padding-left":"4px"}})]:e._e(),e.isEditable&&e.hasItemsCheck?[t("WButtonCircle",{attrs:{paddingStyle:{v:6,h:6},tooltip:e.$t("userDeleteCheckUsers"),icon:e.mdiTrashCanOutline,backgroundColor:"#fff",backgroundColorHover:"#f2f2f2",_textColor:"'#eee'",_textColorHover:"'#fff'",iconColor:"#444",iconColorHover:"#222",shadow:!1},on:{click:e.deleteItemsCheck}}),t("div",{staticStyle:{"padding-left":"4px"}})]:e._e(),e.isEditable&&e.isModified?[t("WButtonCircle",{attrs:{paddingStyle:{v:6,h:6},tooltip:e.$t("saveChanges"),icon:e.mdiCloudUploadOutline,backgroundColor:"rgba(255,0,50,0.7)",backgroundColorHover:"rgba(255,0,50,0.8)",textColor:"#eee",textColorHover:"#fff",iconColor:"#eee",iconColorHover:"#fff",shadow:!1},on:{click:e.saveUsers}}),t("div",{staticStyle:{"padding-left":"4px"}})]:e._e()],2)]),e.isLoading?t("div",{staticStyle:{padding:"10px 15px","font-size":"0.8rem"}},[e._v(" "+e._s(e.$t("waitingData"))+" ")]):[e.items?[t("WAggridVueDyn",{ref:"rftable",style:"width:100%;",attrs:{height:e.contentHeight,opt:e.opt}})]:e._e()]],2)},we=[],be=n(467),xe=n(9106),ke=n(4756),Se=n.n(ke),Ie=(n(1219),n(8395)),$e=n(6036),Ce=n(6902),Te=n(1662),Be=n(3908),Ue=n(2663),Ee=n(6702),_e=n(8135),Le=n(6476),We=n(4625),Ne=n(6091),He=n(9045),De=n(7823),Pe=n(9911),ze=n(3859),Me={components:{WIcon:V.A,WSwitch:pe.A,WButtonCircle:ee.A,WPopup:X.A,WInputCheckbox:Pe.A,WAggridVueDyn:ze.A},props:{drawer:{type:Boolean,default:!1}},data:function(){return{mdiAccountGroupOutline:J.dgQ,mdiVectorPolylinePlus:J.WyW,mdiCheckboxMarkedCircle:J.uHb,mdiCloudUploadOutline:J.XHW,mdiTrashCanOutline:J.FhF,mdiTableHeadersEye:J.sw5,mdiPlus:J.biz,mdiPencilOutline:J.KsW,mdiContentCopy:J.$BT,ttt:"",panelWidth:100,panelHeight:100,headHeight:100,isLoading:!0,firstSetting:!0,showIsEditable:!1,isEditable:!1,isModified:!1,tabKeys:["id","order","account","password","name","email","description","from","redir","isAdmin","isVerified","timeVerified","timeExpired","timeBlocked","userId","timeCreate","userIdUpdate","timeUpdate","isActive"],tabKeysPick:["account","password","name","email","description","from","redir","isAdmin","isVerified","timeVerified","timeExpired","timeBlocked","userId","timeCreate","userIdUpdate","timeUpdate","isActive"],tabKeysShow:["account","password","name","email","description","from","redir","isAdmin","isVerified","timeVerified","timeExpired","timeBlocked","userId","timeCreate","userIdUpdate","timeUpdate","isActive"],widthUsersName:null,widthUsersEmail:null,widthUsersDescription:null,users:[],items:[],itemsCheck:[],opt:null}},mounted:function(){var e=this;if(e.$dg.toggleItemIsAdminById=e.toggleItemIsAdminById,e.$dg.toggleItemIsVerifiedById=e.toggleItemIsVerifiedById,e.$dg.toggleItemIsActiveById=e.toggleItemIsActiveById,e.$dg.modifyItemPasswordById=e.modifyItemPasswordById,e.$dg.modifyItemTimeVerifiedById=e.modifyItemTimeVerifiedById,e.$dg.modifyItemTimeExpiredById=e.modifyItemTimeExpiredById,e.$dg.modifyItemTimeBlockedById=e.modifyItemTimeBlockedById,e.firstSetting){var t=(0,c.A)(e,"webInfor.showModeEditUsers","");e.showIsEditable="y"===t;var n=(0,c.A)(e,"webInfor.modeEditUsers","");e.isEditable="y"===n,e.widthUsersName=(0,c.A)(e,"webInfor.widthUsersName",""),e.widthUsersEmail=(0,c.A)(e,"webInfor.widthUsersEmail",""),e.widthUsersDescription=(0,c.A)(e,"webInfor.widthUsersDescription",""),e.firstSetting=!1}var i=e.userToken;e.$fapi.getUsersList(i).then((function(t){t=(0,Be.A)(t,"order"),e.users=t})).catch((function(t){console.log(t),e.errMsg=e.$t("getDataError")})).finally((function(){e.isLoading=!1}))},computed:{webInfor:function(){var e=(0,c.A)(this,"$store.state.webInfor");return e},userToken:function(){var e=this;return(0,c.A)(e,"$store.state.userToken")},changeParams:function(){var e=this,t=e.isEditable,n=(0,Ue.A)(e.users);return e.items=n,e.genOpt({isEditable:t}),e.isLoading=!1,""},contentHeight:function(){var e=this,t=e.panelHeight-e.headHeight;return t=Math.max(t,0),t},hasItemsCheck:function(){var e=this,t=(0,Ce.A)(e.itemsCheck)>0;return t},hasItemCheckOne:function(){var e=this,t=1===(0,Ce.A)(e.itemsCheck);return t},errItemsByAccount:function(){var e=this,t=(0,c.A)(e,"opt.rows",[]),n={},i={};return(0,$e.A)(t,(function(t,r){var o=(0,c.A)(t,"account","");return(0,O.A)(o)?(0,Ee.A)(i,o)?(n[o]=e.$t("userAccountDuplicate"),!0):void(i[o]=!0):(n[o]=e.$t("userAccountEmpty"),!0)})),n},errItemsByEmail:function(){var e=this,t=(0,c.A)(e,"opt.rows",[]),n={},i={};return(0,$e.A)(t,(function(t,r){var o=(0,c.A)(t,"email","");return(0,O.A)(o)?(0,We.A)(o)?(0,Ee.A)(i,o)?(n[o]=e.$t("userEmailDuplicate"),!0):void(i[o]=!0):(n[o]=e.$t("userEmailError"),!0):(n[o]=e.$t("userEmailEmpty"),!0)})),n},errItemsByRedir:function(){var e=this,t=(0,c.A)(e,"opt.rows",[]),n={};return(0,$e.A)(t,(function(t,i){var r=(0,c.A)(t,"redir","");if(!(0,O.A)(r))return n[r]=e.$t("userRedirEmpty"),!0})),n},isError:function(){var e=this,t="",n=!1;return n=(0,_e.A)(e.errItemsByAccount),n?(t=e.$t("errInAccounts"),t):(n=(0,_e.A)(e.errItemsByEmail),n?(t=e.$t("errInEmails"),t):(n=(0,_e.A)(e.errItemsByRedir),n?(t=e.$t("errInRedir"),t):""))},kpHead:function(){var e=this,t={id:e.$t("id"),order:e.$t("order"),account:e.$t("account"),password:e.$t("password"),name:e.$t("name"),email:e.$t("email"),description:e.$t("description"),from:e.$t("from"),redir:e.$t("redir"),isAdmin:e.$t("isAdmin"),isVerified:e.$t("isVerified"),timeVerified:e.$t("timeVerified"),timeExpired:e.$t("timeExpired"),timeBlocked:e.$t("timeBlocked"),userId:e.$t("userId"),timeCreate:e.$t("timeCreate"),userIdUpdate:e.$t("userIdUpdate"),timeUpdate:e.$t("timeUpdate"),isActive:e.$t("isActive")};return t}},methods:{resizePanel:function(e){var t=this;t.panelWidth=e.snew.offsetWidth,t.panelHeight=e.snew.offsetHeight},resizeHead:function(e){var t=this;t.headHeight=e.snew.offsetHeight},getHead:function(e){var t=this,n=(0,c.A)(t,"kpHead.".concat(e),"");return n},genOpt:function(){var e=this;e.itemsCheck=[];var t=null;if((0,Ce.A)(e.items)>0){var n=e.tabKeys,i=e.kpHead,r={},o={},a={};e.isEditable&&(r={account:!0,name:!0,email:!0,description:!0,from:!0,redir:!0},o={account:!0},a={account:!0});var s={id:!0,order:!0},d=(0,He.A)(e.tabKeysPick,e.tabKeysShow);(0,$e.A)(d,(function(e){s[e]=!0})),t={language:e.$t("aggridLanguage"),rows:e.items,keys:n,kpHead:i,defCellEditable:!1,defHeadFilter:!0,defCellAlignH:"left",kpHeadHide:s,kpHeadFixLeft:{account:!0},defHeadMinWidth:150,kpHeadWidth:{},kpHeadFilterType:{id:"text",order:"text",account:"text",password:"text",name:"text",email:"text",description:"text",from:"text",redir:"text",isAdmin:"text",isVerified:"text",timeVerified:"text",timeExpired:"text",timeBlocked:"text",userId:"text",timeCreate:"text",userIdUpdate:"text",timeUpdate:"text",isActive:"text"},kpCellEditable:r,kpRowDrag:o,kpHeadCheckBox:a,kpHeadFilter:{password:!1},kpHeadSort:{password:!1},kpHeadFocusHighlight:{password:!1,timeVerified:!1,timeExpired:!1,timeBlocked:!1},kpCellRender:{account:function(t){var n=(0,c.A)(e.errItemsByAccount,t,"");return(0,O.A)(n)&&(t='\n <span title="'.concat(n,'">\n <span style="color:#F57C00;">').concat((0,Ne.A)(t),'</span>\n <img style="vertical-align:sub; width:16px; height:16px;" src="').concat(e.$ui.getIcon("warning"),'" />\n </span>\n ')),t},password:function(t,n,i){var r=(0,c.A)(i,"id",""),o='\n <div onclick="event.stopPropagation();event.preventDefault();" onmousedown="event.stopPropagation();event.preventDefault();">\n <button style="width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;" onclick="$vo.$dg.modifyItemPasswordById(\''.concat(r,"')\" ").concat(e.isEditable?"":"disabled"," >").concat(e.$t("userResetPassword"),"</button>\n </div>\n ");return o},email:function(t){var n=(0,c.A)(e.errItemsByEmail,t,"");return(0,O.A)(n)&&(t='\n <span title="'.concat(n,'">\n <span style="color:#F57C00;">').concat((0,Ne.A)(t),'</span>\n <img style="vertical-align:sub; width:16px; height:16px;" src="').concat(e.$ui.getIcon("warning"),'" />\n </span>\n ')),t},redir:function(t){var n=(0,c.A)(e.errItemsByRedir,t,"");return(0,O.A)(n)&&(t='\n <span title="'.concat(n,'">\n <span style="color:#F57C00;">').concat((0,Ne.A)(t),'</span>\n <img style="vertical-align:sub; width:16px; height:16px;" src="').concat(e.$ui.getIcon("warning"),'" />\n </span>\n ')),t},isAdmin:function(t,n,i){var r=(0,c.A)(i,"id",""),o='\n <input type="checkbox" '.concat("y"===t?"checked":""," onclick=\"$vo.$dg.toggleItemIsAdminById('").concat(r,"')\" ").concat(e.isEditable?"":"disabled"," />\n ");return o},isVerified:function(t,n,i){var r=(0,c.A)(i,"id",""),o='\n <input type="checkbox" '.concat("y"===t?"checked":""," onclick=\"$vo.$dg.toggleItemIsVerifiedById('").concat(r,"')\" ").concat(e.isEditable?"":"disabled"," />\n ");return o},isActive:function(t,n,i){var r=(0,c.A)(i,"id",""),o='\n <input type="checkbox" '.concat("y"===t?"checked":""," onclick=\"$vo.$dg.toggleItemIsActiveById('").concat(r,"')\" ").concat(e.isEditable?"":"disabled"," />\n ");return o},timeVerified:function(t,n,i){var r=(0,c.A)(i,"id",""),o="",a=e.$t("userTimeEmpty");if((0,ue.A)(t)){var s=de()(t);o=s.format("YYYY-MM-DDTHH:mm"),a=s.format("YYYY-MM-DD HH:mm")}var d='\n <div onclick="event.stopPropagation();event.preventDefault();" onmousedown="event.stopPropagation();event.preventDefault();">\n <button style="width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;" onclick="$vo.$dg.modifyItemTimeVerifiedById(this,\''.concat(o,"','").concat(r,"')\" ").concat(e.isEditable?"":"disabled",">").concat(a,"</button>\n </div>\n ");return d},timeExpired:function(t,n,i){var r=(0,c.A)(i,"id",""),o="",a=e.$t("userTimeEmpty");if((0,ue.A)(t)){var s=de()(t);o=s.format("YYYY-MM-DDTHH:mm"),a=s.format("YYYY-MM-DD HH:mm")}var d='\n <div onclick="event.stopPropagation();event.preventDefault();" onmousedown="event.stopPropagation();event.preventDefault();">\n <button style="width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;" onclick="$vo.$dg.modifyItemTimeExpiredById(this,\''.concat(o,"','").concat(r,"')\" ").concat(e.isEditable?"":"disabled",">").concat(a,"</button>\n </div>\n ");return d},timeBlocked:function(t,n,i){var r=(0,c.A)(i,"id",""),o="",a=e.$t("userTimeEmpty");if((0,ue.A)(t)){var s=de()(t);o=s.format("YYYY-MM-DDTHH:mm"),a=s.format("YYYY-MM-DD HH:mm")}var d='\n <div onclick="event.stopPropagation();event.preventDefault();" onmousedown="event.stopPropagation();event.preventDefault();">\n <button style="width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;" onclick="$vo.$dg.modifyItemTimeBlockedById(this,\''.concat(o,"','").concat(r,"')\" ").concat(e.isEditable?"":"disabled",">").concat(a,"</button>\n </div>\n ");return d}},rowsChange:function(t){e.isModified=!0},rowChecked:function(t){e.itemsCheck=(0,Ue.A)(t)}}}e.opt=t},refresh:function(){var e=this,t=(0,c.A)(e,"$refs.rftable.$refs.$self");t.refresh()},toggleTabKeys:function(){var e=this,t=(0,c.A)(e,"$refs.rftable.$refs.$self");t.showKeys(e.tabKeysShow)},modifyItemPasswordById:function(e){var t=this;t.$alert("尚待開發",{type:"error"})},toggleItemByKeyAndId:function(e,t){var n=this;if((0,O.A)(t)){var i=(0,c.A)(n,"opt.rows",[]),r=null,o=null;if((0,$e.A)(i,(function(e,n){if((0,c.A)(e,"id","")===t)return r=e,o=n,!1})),(0,_e.A)(r)){var a=(0,c.A)(r,e,"n"),s="y"===a?"n":"y";(0,Ie.A)(n,"opt.rows[".concat(o,"].").concat(e),s),n.refresh(),n.isModified=!0}else n.$alert("".concat(n.$t("userEditNoUserData")),{type:"error"})}else n.$alert("".concat(n.$t("userEditNoUserId")),{type:"error"})},toggleItemIsAdminById:function(e){var t=this;t.toggleItemByKeyAndId("isAdmin",e)},toggleItemIsVerifiedById:function(e){var t=this;t.toggleItemByKeyAndId("isVerified",e)},toggleItemIsActiveById:function(e){var t=this;t.toggleItemByKeyAndId("isActive",e)},modifyItemByKeyAndId:function(e,t,n,i){var r=this;if((0,O.A)(i)){var o="";(0,Le.A)(n)&&(o=n);var a="datetime-local";(0,De.A)(o,{eleRef:t,type:a}).then((function(t){var n=(0,c.A)(r,"opt.rows",[]),o=null,a=null;if((0,$e.A)(n,(function(e,t){if((0,c.A)(e,"id","")===i)return o=e,a=t,!1})),(0,_e.A)(o)){var s=de()(t,"YYYY-MM-DDTHH:mm"),d=s.format("YYYY-MM-DDTHH:mm:ssZ");(0,Ie.A)(r,"opt.rows[".concat(a,"].").concat(e),d),r.refresh(),r.isModified=!0}else r.$alert("".concat(r.$t("userEditNoUserData")),{type:"error"})}))}else r.$alert("".concat(r.$t("userEditNoUserId")),{type:"error"})},modifyItemTimeVerifiedById:function(e,t,n){var i=this;i.modifyItemByKeyAndId("timeVerified",e,t,n)},modifyItemTimeExpiredById:function(e,t,n){var i=this;i.modifyItemByKeyAndId("timeExpired",e,t,n)},modifyItemTimeBlockedById:function(e,t,n){var i=this;i.modifyItemByKeyAndId("timeBlocked",e,t,n)},addItem:function(){var e=this,t=(0,c.A)(e,"opt.rows",[]);t=(0,Ue.A)(t);var n=e.$ds.users.funNew();n.name=e.$s.getNameNew(t,"name","",e.$t("userAddNameNew")),n.userId="{".concat(e.$t("userAddIdNew"),"}"),n.timeCreate="{".concat(e.$t("userAddIdNew"),"}"),n.userIdUpdate="{".concat(e.$t("userAddIdNew"),"}"),n.timeUpdate="{".concat(e.$t("userAddIdNew"),"}"),t=[n].concat((0,xe.A)(t)),e.users=(0,Ue.A)(t),e.isModified=!0},copyItem:function(){var e=this;if(1!==(0,Ce.A)(e.itemsCheck))return console.log("size(vo.itemsCheck) !== 1",e.itemsCheck),void e.$alert("".concat(e.$t("anUnexpectedErrorOccurred")),{type:"error"});var t=(0,c.A)(e,"opt.rows",[]);t=(0,Ue.A)(t);var n=e.itemsCheck[0],i=(0,c.A)(n,"data.id",""),r=null;if((0,$e.A)(t,(function(e){var t=(0,c.A)(e,"id","");if(t===i)return r=e,!1})),!(0,_e.A)(r))return console.log("!iseobj(row)",r),void e.$alert("".concat(e.$t("anUnexpectedErrorOccurred")),{type:"error"});var o=(0,Ue.A)(r),a=e.$ds.users.funNew();o.id=a.id,o.userId="{".concat(e.$t("userAddIdNew"),"}"),o.timeCreate="{".concat(e.$t("userAddIdNew"),"}"),o.userIdUpdate="{".concat(e.$t("userAddIdNew"),"}"),o.timeUpdate="{".concat(e.$t("userAddIdNew"),"}"),t=[o].concat((0,xe.A)(t)),e.users=(0,Ue.A)(t),e.isModified=!0},deleteItemsCheck:function(){var e=this;if(0===(0,Ce.A)(e.itemsCheck))return console.log("size(vo.itemsCheck) === 0",e.itemsCheck),void e.$alert("".concat(e.$t("anUnexpectedErrorOccurred")),{type:"error"});var t=(0,c.A)(e,"opt.rows",[]);t=(0,Ue.A)(t),(0,$e.A)(e.itemsCheck,(function(e){var n=(0,c.A)(e,"data.id","");if(!(0,O.A)(n))return console.log("invalid id"),!0;t=(0,Te.A)(t,(function(e){return e.id!==n}))})),e.itemsCheck=[],e.users=(0,Ue.A)(t),e.isModified=!0},saveUsers:function(){var e=this;function t(){return n.apply(this,arguments)}function n(){return n=(0,be.A)(Se().mark((function t(){var n,i,r;return Se().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=null,e.$ui.updateLoading(!0),!(0,O.A)(e.isError)){t.next=5;break}return e.$alert("".concat(e.isError),{type:"error"}),t.abrupt("return");case 5:if(i=(0,c.A)(e,"opt.rows",[]),0!==(0,Ce.A)(i)){t.next=9;break}return e.$alert("".concat(e.$t("userAddEmpty")),{type:"error"}),t.abrupt("return");case 9:return r=e.userToken,t.next=12,e.$fapi.updateUsersList(r,i).catch((function(e){n=e}));case 12:if(null===n){t.next=15;break}return e.$alert("".concat(e.$t("userSaveUsersFail"),": ").concat(n),{type:"error"}),t.abrupt("return");case 15:e.isModified=!1,e.$alert(e.$t("userSaveUsersSuccess"));case 17:case"end":return t.stop()}}),t)}))),n.apply(this,arguments)}t().catch((function(t){console.log("catch",t),e.$alert(e.$t("anUnexpectedErrorOccurred"),{type:"error"})})).finally((function(){e.$ui.updateLoading(!1)}))}}},Oe=Me,Ve=(0,x.A)(Oe,Ae,we,!1,null,"a09ddae0",null),Ye=Ve.exports,Ke=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{height:"100%"},attrs:{changeParams:e.changeParams},on:{domresize:e.resizePanel}},[t("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{background:"#fff"},on:{domresize:e.resizeHead}},[t("div",{staticStyle:{padding:"10px 10px 10px 20px"}},[t("div",{style:"display:flex; align-items:center; padding:".concat(e.drawer?"5px":"5px 5px 5px 20px",";")},[t("WIcon",{attrs:{icon:e.mdiCogOutline,color:"#000",size:32}}),t("div",{staticStyle:{"padding-left":"12px"}},[t("div",{staticStyle:{"font-size":"1.4rem",color:"#000"}},[e._v(" "+e._s(e.$t("mmSettings"))+" ")]),t("div",{staticStyle:{"padding-top":"2px","font-size":"0.8rem",color:"#666"}},[e._v(" "+e._s(e.$t("mmSettingsMsg"))+" ")])])],1)])]),e.isLoading?t("div",{staticStyle:{padding:"10px 15px","font-size":"0.8rem"}},[e._v(" "+e._s(e.$t("waitingData"))+" ")]):[[e._v(" bbb ")]]],2)},Re=[],Fe={components:{WIcon:V.A,WSwitch:pe.A,WButtonCircle:ee.A,WPopup:X.A,WInputCheckbox:Pe.A,WAggridVueDyn:ze.A},props:{drawer:{type:Boolean,default:!1}},data:function(){return{mdiCogOutline:J.ED,mdiVectorPolylinePlus:J.WyW,mdiCheckboxMarkedCircle:J.uHb,mdiCloudUploadOutline:J.XHW,mdiTrashCanOutline:J.FhF,mdiTableHeadersEye:J.sw5,mdiPlus:J.biz,mdiPencilOutline:J.KsW,mdiContentCopy:J.$BT,ttt:"",panelWidth:100,panelHeight:100,headHeight:100,isLoading:!0,firstSetting:!0,showIsEditable:!1,isEditable:!1}},mounted:function(){var e=this;if(e.firstSetting){var t=(0,c.A)(e,"webInfor.showModeEditUsers","");e.showIsEditable="y"===t;var n=(0,c.A)(e,"webInfor.modeEditUsers","");e.isEditable="y"===n,e.firstSetting=!1}e.isEditable=!0;e.userToken},computed:{webInfor:function(){var e=(0,c.A)(this,"$store.state.webInfor");return e},userToken:function(){var e=this;return(0,c.A)(e,"$store.state.userToken")},changeParams:function(){return""}},methods:{resizePanel:function(e){var t=this;t.panelWidth=e.snew.offsetWidth,t.panelHeight=e.snew.offsetHeight},resizeHead:function(e){var t=this;t.headHeight=e.snew.offsetHeight}}},Ge=Fe,je=(0,x.A)(Ge,Ke,Re,!1,null,"5cb4ceb0",null),Qe=je.exports,qe={components:{WDrawer:re.A,WButtonCircle:ee.A,WListVertical:oe.A,LayoutContentInfor:ye,LayoutContentUsers:Ye,LayoutContentSettings:Qe},props:{},data:function(){return{mdiInformationVariantCircleOutline:J.QKH,mdiCogOutline:J.ED,mdiCellphoneKey:J.moQ,mdiLockOpenRemoveOutline:J.u9V,mdiShieldKeyOutline:J.lEv,mdiArrowLeftBoldHexagonOutline:J.y6z,mdiArrowRightBoldHexagonOutline:J.bmu,menuKey:"mmUserInfor",panelWidth:0,panelHeight:0,drawer:!0,drawerWidth:220,drawerWidthMin:150,drawerWidthMax:350}},computed:{syncState:function(){var e=this;return(0,c.A)(e,"$store.state.syncState")},menus:function(){var e=this,t=[{key:"mmUserInfor",text:e.$t("mmUserInfor"),icon:J.QKH},{key:"mmUsersList",text:e.$t("mmUsersList"),icon:J.dgQ},{key:"mmSettings",text:e.$t("mmSettings"),icon:J.ED},{key:"nowActiveTokensList",text:e.$t("nowActiveTokensList"),icon:J.moQ},{key:"nowBlockList",text:e.$t("nowBlockList"),icon:J.u9V},{key:"systemTokenList",text:e.$t("systemTokenList"),icon:J.lEv}];return t},menuActive:function(){var e=this,t=(0,ie.A)(e.menus,{key:e.menuKey});return t}},methods:{resize:function(e){var t=this;t.panelWidth=e.snew.clientWidth,t.panelHeight=e.snew.clientHeight}}},Ze=qe,Je=(0,x.A)(Ze,te,ne,!1,null,"27e37b39",null),Xe=Je.exports,et={components:{WIcon:V.A,WPopup:X.A,WButtonCircle:ee.A,WTextSelect:K.A,LayoutContent:Xe},props:{},data:function(){return{mdiAccountCircleOutline:J.gXw,mdiLogoutVariant:J.m76,firstSetting:!0,showLangSelect:!1,keysLang:["eng","cht"],kpLangSelect:{eng:"English",cht:"中文"},drawer:!0}},beforeMount:function(){var e=this;if(e.firstSetting){var t=(0,c.A)(e,"webInfor.showLanguage","");e.showLangSelect="y"===t;var n=(0,c.A)(e,"webInfor.language","");e.$ui.setLang(n,"layout mounted"),e.firstSetting=!1}},computed:{viewState:function(){var e=this;return(0,c.A)(e,"$store.state.viewState","")},heightToolbar:function(){var e=this;return(0,c.A)(e,"$store.state.heightToolbar",0)},webName:{get:function(){var e=this,t=e.$t("webName","");return(0,O.A)(t)||(t=e.$t("waitingData","")),document.title=t,t}},webLogo:function(){var e=this;return(0,c.A)(e,"$store.state.webInfor.webLogo","")},lang:function(){var e=this;return(0,c.A)(e,"$store.state.lang","")},userSelf:function(){var e=this;return(0,c.A)(e,"$store.state.userSelf","")},userName:function(){var e=this;return(0,c.A)(e,"userSelf.name","")}},methods:{getLangText:function(e){var t=this,n=(0,c.A)(t,"kpLangSelect.".concat(e),"");return n},toggleLang:function(e){var t=this;t.$ui.setLang(e,"toggle")},logOut:function(){var e=this;e.$ui.logOut().then((function(){e.$ui.updateViewState("login"),console.log("logOut, goto view['login'] page")})).catch((function(e){console.log("logOut err[".concat(e,"]"))}))}}},tt=et,nt=(0,x.A)(tt,q,Z,!1,null,"15c1ec76",null),it=nt.exports,rt={components:{LoadingWinBar:S,CheckYesNo:_,CheckYes:P,PageLogin:Q,Layout:it},data:function(){return{autoLogining:!0}},beforeMount:function(){var e=this;e.$ui.setVo(e);var t=(0,c.A)(window,"___pmwsso___.language","");e.$ui.setLang(t,"app init")},mounted:function(){var e=this;if(window.$vo=e,e.autoLogining){var t=e.$ui.getUrlView();e.$ui.autoLogin({useRedir:"login"===t}).then((function(){e.$ui.updateViewState(t),e.autoLogining=!1,console.log("autoLogin, goto view[".concat(t,"] page"))})).catch((function(t){e.$ui.updateViewState("login"),e.autoLogining=!1,console.log("autoLogin err[".concat(t,"], goto view['login'] page"))}))}},computed:{syncState:function(){var e=this;return(0,c.A)(e,"$store.state.syncState")},viewState:function(){var e=this;return(0,c.A)(e,"$store.state.viewState","")},webKey:function(){var e=this;return(0,c.A)(e,"$store.state.webInfor.webKey","")}},methods:{resize:function(e){var t=this;t.$ui.syncHeight()}}},ot=rt,at=(0,x.A)(ot,f,m,!1,null,null,null),st=at.exports,ct=n(7734),dt=n(9842),lt="UpdateWebInfor",ut="UpdateLang",pt="UpdateKpText",gt="UpdateConnState",ft="UpdateSyncState",mt="UpdateLoading",ht="UpdateViewState",vt="UpdateTableData",yt="UpdateData",At="UpdateHeightApp",wt="UpdateHeightAppEff",bt="UpdateHeightToolbar",xt="UpdateMenu",kt="UpdateUserToken",St="UpdateUserSelf",It=n(7422),$t=n(9651),Ct=n(7106),Tt=n(7286),Bt="tokens",Ut="金鑰",Et="Tokens",_t={id:{pk:!0,name:"主鍵",type:"STRING"},token:{name:"金鑰",type:"STRING"},userId:{name:"使用者主鍵",type:"STRING"},timeCreate:{name:"創建時間",type:"STRING"},timeEnd:{name:"到期時間",type:"STRING"},timeUpdate:{name:"更新時間",type:"STRING"}},Lt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,$t.A)(e,(0,It.A)(_t));return t.id="".concat((0,Tt.A)(),"-").concat((0,le.A)()),t.token="".concat((0,Tt.A)(),"-").concat((0,le.A)()),t.timeCreate=(0,Ct.A)(),t.timeEnd=ce().add(30,"minute").format(),t.timeUpdate=t.timeCreate,t},Wt=function(){var e=[];return e},Nt={keyTable:Bt,tableNameCht:Ut,tableNameEng:Et,settings:_t,funNew:Lt,funTest:Wt},Ht=Nt,Dt="users",Pt="使用者",zt="Users",Mt={id:{pk:!0,name:"主鍵",type:"STRING"},order:{name:"順序",type:"INTEGER"},account:{name:"帳號",type:"STRING"},password:{name:"密碼",type:"STRING"},name:{name:"姓名",type:"STRING"},email:{name:"電子郵件",type:"STRING"},description:{name:"描述",type:"TEXT"},from:{name:"來源",type:"STRING"},redir:{name:"登入後轉址",type:"STRING"},isAdmin:{name:"是否為系統管理員",type:"STRING"},isVerified:{name:"帳號是否驗證",type:"STRING"},timeVerified:{name:"驗證時間",type:"STRING"},timeExpired:{name:"過期時間",type:"STRING"},timeBlocked:{name:"封鎖時間",type:"STRING"},userId:{name:"創建使用者主鍵",type:"STRING"},timeCreate:{name:"創建時間",type:"STRING"},userIdUpdate:{name:"最新變更使用者主鍵",type:"STRING"},timeUpdate:{name:"更新時間",type:"STRING"},isActive:{name:"是否有效",type:"STRING"}},Ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,$t.A)(e,(0,It.A)(Mt));return t.id="".concat((0,Tt.A)(),"-").concat((0,le.A)()),t.isAdmin="n",t.userIdUpdate=t.userId,t.timeCreate=(0,Ct.A)(),t.timeUpdate=t.timeCreate,t.isActive="y",t},Vt=function(){var e=[];return e},Yt={keyTable:Dt,tableNameCht:Pt,tableNameEng:zt,settings:Mt,funNew:Ot,funTest:Vt},Kt=Yt,Rt=n(3422),Ft={tokens:Ht,users:Kt},Gt={};for(var jt in Ft)Gt[jt]=(0,Rt.A)(Ft[jt],{useCreateStorage:!1});var Qt,qt=Gt,Zt={hostname:"".concat(window.location.origin),webInfor:{},connState:"csIng",syncState:!1,viewState:"login",loading:!1,settings:{leftDrawerWidth:200},heightApp:0,heightAppEff:0,heightToolbar:60,menu:{},userToken:"",userSelf:{},lang:"cht",kpText:{}};(0,$e.A)(qt,(function(e,t){Zt[t]=null}));var Jt=(Qt={},(0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)(Qt,lt,(function(e,t){e.webInfor=t})),ut,(function(e,t){e.lang=t})),pt,(function(e,t){e.kpText=t})),gt,(function(e,t){e.connState=t})),ft,(function(e,t){e.syncState=t})),mt,(function(e,t){e.loading=t})),ht,(function(e,t){e.viewState=t})),vt,(function(e,t){e[t.tableName]=t.data})),yt,(function(e,t){(0,Ie.A)(e,t.path,t.data)})),At,(function(e,t){e.heightApp=t})),(0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)((0,dt.A)(Qt,wt,(function(e,t){e.heightAppEff=t})),bt,(function(e,t){e.heightToolbar=t})),xt,(function(e,t){e.menu=t})),kt,(function(e,t){e.userToken=t})),St,(function(e,t){e.userSelf=t})));s.Ay.use(ct.Ay);var Xt=new ct.Ay.Store({state:Zt,mutations:Jt,getters:r,actions:o,strict:!0});Xt.types=i,s.Ay.prototype.$store=Xt;var en=Xt,tn=n(3360),nn=n(106),rn=(n(3959),n(6207),n(6035)),on=(n(3218),{csIng:{eng:"Connecting...",cht:"連線中..."},csLogin:{eng:"Logged in",cht:"已登入"},csLogout:{eng:"Logged out",cht:"已登出"},csErrConn:{eng:"Unable to connect",cht:"無法連線"},csErrLogin:{eng:"Login denied",cht:"拒絕登入"},aggridLanguage:{eng:"en",cht:"zh-tw"},systemMessage:{eng:"System message",cht:"系統確認訊息"},ok:{eng:"OK",cht:"確認"},no:{eng:"No",cht:"取消"},yes:{eng:"Yes",cht:"確定"},y:{eng:"Yes",cht:"是"},n:{eng:"No",cht:"否"},empty:{eng:"Empty",cht:"無"},waitingData:{eng:"Waiting data...",cht:"等待數據中..."},isEditabled:{eng:"Editable",cht:"是否編輯"},saveChanges:{eng:"Save changes",cht:"儲存變更"},from:{eng:"From",cht:"來源"},save:{eng:"Save",cht:"儲存"},close:{eng:"Close",cht:"關閉"},cancel:{eng:"Cancel",cht:"取消"},processing:{eng:"Processing...",cht:"處理中請稍後..."},anUnexpectedErrorOccurred:{eng:"An unexpected error occurred, please contact the administrator",cht:"發生非預期錯誤,請洽管理員"},getDataError:{eng:"Failed to get data, please try again later",cht:"取得數據失敗,請稍後再試"},unknow:{eng:"Unknow",cht:"未知"},account:{eng:"Account",cht:"帳號"},password:{eng:"Password",cht:"密碼"},toggleToShowPassword:{eng:"To show password",cht:"變更為顯示密碼模式"},toggleToHidePassword:{eng:"To hide password",cht:"變更為隱藏密碼模式"},username:{eng:"Username",cht:"使用者姓名"},email:{eng:"Email",cht:"電子郵件"},name:{eng:"Name",cht:"名稱"},description:{eng:"Description",cht:"說明"},noDescription:{eng:"No description",cht:"無說明"},redir:{eng:"Redirect",cht:"登入後轉至網址"},login:{eng:"Log in",cht:"登入"},logout:{eng:"Log out",cht:"登出"},menuTreeShow:{eng:"Show menu",cht:"顯示選單"},menuTreeHide:{eng:"Hide menu",cht:"隱藏選單"},mmUserInfor:{eng:"User information",cht:"使用者資訊"},mmUsersList:{eng:"Users list",cht:"使用者清單"},mmUsersListMsg:{eng:"Provides a list of users, which can be added, edited, deleted, etc.",cht:"提供目前使用者資料清單,可進行新增、編輯、刪除等作業。"},mmSettings:{eng:"Settings",cht:"設定"},mmSettingsMsg:{eng:"Provides important settings of the current system, such as detection and blocking settings, various email templates, etc.",cht:"提供目前系統重要設定,例如偵測與封鎖設定、各類寄信Email模板等。"},nowActiveTokensList:{eng:"Active tokens list",cht:"當前token登入清單"},nowBlockList:{eng:"Block list",cht:"當前封鎖清單"},systemTokenList:{eng:"System token list",cht:"系統金鑰清單"},failedLoginForNoWebKey:{eng:"Can not get the web key",cht:"無有效站台唯一識別資訊"},failedLoginForNoToken:{eng:"Can not get the token",cht:"無有效金鑰"},failedLoginForNoRedir:{eng:"Can not get the url for redirection",cht:"無有效轉址"},failedLoginForCatch:{eng:"User account or password is incorrect",cht:"使用者帳密錯誤無法登入"},failedLogoutForNoWebKey:{eng:"Can not get the web key",cht:"無有效站台唯一識別資訊"},failedLogoutForCatch:{eng:"Can not logout",cht:"使用者登出失敗"},isVerified:{eng:"Verified",cht:"帳號是否驗證"},isVerifiedY:{eng:"Verified",cht:"帳號已驗證"},isVerifiedN:{eng:"Not verified",cht:"帳號未驗證"},timeVerified:{eng:"Verified time",cht:"帳號驗證時間"},isExpired:{eng:"Expired",cht:"帳號是否過期"},isExpiredY:{eng:"Expired",cht:"帳號已過期"},isExpiredN:{eng:"Not expired",cht:"帳號未過期"},timeExpired:{eng:"Expired time",cht:"帳號過期時間"},isBlocked:{eng:"Blocked",cht:"帳號是否被封鎖"},isBlockedY:{eng:"Blocked",cht:"帳號已被封鎖"},isBlockedN:{eng:"Not blocked",cht:"帳號未被封鎖"},timeBlocked:{eng:"Blocked time",cht:"帳號被封鎖時間"},isAdmin:{eng:"Administrator",cht:"是否為系統管理者"},isAdminY:{eng:"System Administrator",cht:"系統管理者"},isAdminN:{eng:"Non-System Administrator",cht:"非系統管理者"},isActive:{eng:"Active",cht:"帳號是否有效"},isActiveY:{eng:"Active",cht:"帳號有效"},isActiveN:{eng:"Inactive",cht:"帳號無效"},errInNames:{eng:"Name errors",cht:"名稱出現錯誤待修復"},errInAccounts:{eng:"Account errors",cht:"帳號出現錯誤待修復"},errInEmails:{eng:"Email errors",cht:"Email出現錯誤待修復"},errItemsByRedir:{eng:"Redirect errors",cht:"登入後轉址出現錯誤待修復"},modeEdit:{eng:"Edit mode",cht:"編輯模式"},showTabCols:{eng:"Show columns",cht:"顯示欄位"},userList:{eng:"User list",cht:"使用者分類清單"},userName:{eng:"Name of user",cht:"使用者名稱"},userNameEmpty:{eng:"Invalid name of user",cht:"尚未給予有效使用者名稱"},userNameDuplicate:{eng:"Duplicate name of user",cht:"使用者名稱出現重複"},userAccountEmpty:{eng:"Invalid account of user",cht:"尚未給予有效使用者帳號"},userAccountDuplicate:{eng:"Duplicate account of user",cht:"使用者帳號出現重複"},userEmailEmpty:{eng:"Empty email of user",cht:"尚未給予使用者Email"},userEmailError:{eng:"Invalid email of user",cht:"使用者Email格式錯誤"},userEmailDuplicate:{eng:"Duplicate email of user",cht:"使用者Email出現重複"},userRedirEmpty:{eng:"Invalid redirect of user",cht:"尚未給予有效登入後轉址"},userTimeEmpty:{eng:"Invalid time",cht:"尚未給予時間"},userAddEmpty:{eng:"No user",cht:"尚未新增使用者資料"},userAdd:{eng:"Add user",cht:"新增使用者"},userAddNameNew:{eng:"New user",cht:"新使用者"},userAddIdNew:{eng:"Waiting generation",cht:"待自動給予"},userCopy:{eng:"Copy user",cht:"複製使用者"},userCopyNameNew:{eng:"copy",cht:"複製"},userDeleteCheckUsers:{eng:"Delete user(s)",cht:"刪除勾選使用者"},userResetPassword:{eng:"Reset password",cht:"重設密碼"},userSaveUsersEmpty:{eng:"No user",cht:"未有變更使用者資料"},userSaveUsersFail:{eng:"Failed to save users",cht:"儲存使用者數據失敗"},userSaveUsersSuccess:{eng:"Save users successfully",cht:"儲存使用者數據成功"},userEditNoUserId:{eng:"Can not find the id of user",cht:"無法找到使用者Id"},userEditNoUserData:{eng:"Can not find the data of user",cht:"無法找到使用者數據"},userId:{eng:"ID of the created user",cht:"創建使用者主鍵"},timeCreate:{eng:"Created time",cht:"創建時間"},userIdUpdate:{eng:"ID of the updated user",cht:"最新變更使用者主鍵"},timeUpdate:{eng:"Updated time",cht:"更新時間"},dayCreate:{eng:"Create day",cht:"創建日期"},newUser:{eng:"New user",cht:"新使用者"},failedToAddUser:{eng:"Failed to add the user",cht:"新增使用者失敗"},successfulToAddUser:{eng:"Add the user successfully",cht:"新增使用者成功"},confirmToDeleteUser:{eng:"Do you want to delete the user[{name}]?",cht:"確認是否刪除使用者"},failedToDeleteUser:{eng:"Failed to delete the user",cht:"刪除使用者失敗"},successfulToDeleteUser:{eng:"Delete the user successfully",cht:"刪除使用者成功"},cannotShowUserDetailsInViewMode:{eng:"Can not show the user details in the view mode",cht:"非編輯模式無法查閱使用者詳細資訊"},allDefaults:{eng:"All defaults",cht:"全部項目預設值"},show:{eng:"Show",cht:"顯示"},active:{eng:"Active",cht:"啟用"},showChildren:{eng:"Show children",cht:"所屬顯示"},hideChildren:{eng:"Hide children",cht:"所屬不顯示"},activateChildren:{eng:"Activate children",cht:"所屬啟用"},deactivateChildren:{eng:"Deactivate children",cht:"所屬不啟用"},isUsernameEmpty:{eng:"Username is empty",cht:"使用者名稱不得為空"},failedToSaveUser:{eng:"Failed to save the user",cht:"變更使用者失敗"},successfulToSaveUser:{eng:"Save the user successfully",cht:"變更使用者成功"}}),an=on;function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){(0,dt.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dn=s.Ay.prototype;function ln(e){dn=e}function un(e){dn.$store.commit(dn.$store.types.UpdateConnState,e)}function pn(e){dn.$store.commit(dn.$store.types.UpdateLoading,e)}function gn(e){dn.$store.commit(dn.$store.types.UpdateViewState,e)}function fn(e){dn.$store.commit(dn.$store.types.UpdateUserToken,e)}function mn(e){dn.$store.commit(dn.$store.types.UpdateUserSelf,e)}function hn(){function e(t){(0,$e.A)(t,(function(t){t.$forceUpdate(),t.$children&&e(t.$children)}))}e(dn.$children)}function vn(e){return"eng"!==e&&"cht"!==e&&(e="eng"),e}function yn(){var e="";if(!(0,O.A)(e)){var t=(0,c.A)(window,"___pmwsso___.language","");(0,O.A)(t)&&(e=vn(t))}if(!(0,O.A)(e)){var n=(0,c.A)(dn,"$store.state.lang","");(0,O.A)(n)&&(e=vn(n))}return(0,O.A)(e)?e:"eng"}function An(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=(0,O.A)(e)?vn(e):yn();var t=(0,c.A)(dn,"$store.state.lang","");e!==t&&dn.$store.commit(dn.$store.types.UpdateLang,e),wn(e),hn()}function wn(e){var t={};t=cn(cn({},t),an);var n=(0,c.A)(dn,"$store.state.webInfor.kpLangExt",{});(0,_e.A)(n)&&(t=cn(cn({},t),n));var i=(0,c.A)(dn,"$store.state.webInfor.webName",{});(0,_e.A)(i)&&(t=cn(cn({},t),{},{webName:cn({},i)}));var r=(0,c.A)(dn,"$store.state.webInfor.webDescription",{});(0,_e.A)(r)&&(t=cn(cn({},t),{},{webDescription:cn({},r)}));var o={};(0,$e.A)(t,(function(t,n){o[n]=t[e]})),dn.$store.commit(dn.$store.types.UpdateKpText,o)}function bn(e){var t=(0,c.A)(dn,"$store.state.kpText"),n=(0,c.A)(t,e,"");return(0,O.A)(n)||(n=e),n}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=(0,c.A)(e,t,"");if(!(0,O.A)(i)){var r=bn("empty");return r}return(0,nn.A)(n)&&(i=n(i)),i}function kn(){var e=(0,c.A)(dn,"$store.state.heightToolbar"),t=window.innerHeight-e;return dn.$store.commit(dn.$store.types.UpdateHeightApp,window.innerHeight),dn.$store.commit(dn.$store.types.UpdateHeightAppEff,t),""}function Sn(){var e={};try{var t=new URLSearchParams(window.location.search);t.forEach((function(t,n){e[n]=t}))}catch(n){console.log("err",n)}return e}function In(){var e=Sn(),t=(0,c.A)(e,"view","");return""===t&&(t="login"),"login"!==t&&"backstage"!==t&&(console.log("invalid view[".concat(t,"]")),t="login"),t}function $n(e,t){e=e.replaceAll("{token}",t),window.location.href=e}function Cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,c.A)(n,"useRedir",!1),r=(0,C.A)();function o(){return a.apply(this,arguments)}function a(){return a=(0,be.A)(ke.mark((function n(){var o,a,s,d,l;return ke.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return pn(!0),n.next=3,(0,tn.A)(1e3);case 3:if(o=(0,c.A)(dn,"$store.state.webInfor.webKey",""),(0,O.A)(o)){n.next=8;break}return dn.$alert(dn.$t("failedLoginForNoWebKey"),{type:"error"}),r.reject("invalid $keyLS"),n.abrupt("return");case 8:return a="".concat(o,":userToken"),n.next=11,dn.$fapi.loginByAccountAndPassword(e,t);case 11:return s=n.sent,n.next=14,localStorage.setItem(a,"");case 14:if(d=(0,c.A)(s,"token",""),(0,_e.A)(s)){n.next=18;break}return r.reject("invalid user"),n.abrupt("return");case 18:if((0,O.A)(d)){n.next=22;break}return dn.$alert(dn.$t("failedLoginForNoToken"),{type:"error"}),r.reject("invalid token"),n.abrupt("return");case 22:return n.next=24,localStorage.setItem(a,d);case 24:if(fn(d),mn(s),!i){n.next=35;break}if(l=(0,c.A)(s,"redir",""),(0,O.A)(l)){n.next=32;break}return dn.$alert(dn.$t("failedLoginForNoRedir"),{type:"error"}),r.reject("invalid redir"),n.abrupt("return");case 32:return $n(l,d),r.resolve("redir"),n.abrupt("return");case 35:pn(!1),r.resolve("done");case 37:case"end":return n.stop()}}),n)}))),a.apply(this,arguments)}return o().catch((function(e){dn.$alert(dn.$t("failedLoginForCatch"),{type:"error"}),r.reject(e),pn(!1)})),r}function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.A)(e,"useRedir",!1),n=(0,C.A)();function i(){return r.apply(this,arguments)}function r(){return r=(0,be.A)(ke.mark((function e(){var i,r,o,a,s,d;return ke.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=null,e.next=3,(0,rn.A)((function(){return(0,c.A)(dn,"$store.state.syncState",!1)}));case 3:if(r=(0,c.A)(dn,"$store.state.webInfor.webKey",""),(0,O.A)(r)){e.next=8;break}return dn.$alert(dn.$t("failedLoginForNoWebKey"),{type:"error"}),n.reject("invalid $keyLS"),e.abrupt("return");case 8:return o="".concat(r,":userToken"),e.next=11,localStorage.getItem(o);case 11:if(a=e.sent,(0,O.A)(a)){e.next=15;break}return n.reject("invalid token"),e.abrupt("return");case 15:return e.next=17,dn.$fapi.checkToken(a).catch((function(e){i=e}));case 17:if(!i){e.next=22;break}return e.next=20,localStorage.setItem(o,"");case 20:return n.reject("token error"),e.abrupt("return");case 22:return e.next=24,dn.$fapi.getUserByToken(a);case 24:if(s=e.sent,(0,_e.A)(s)){e.next=28;break}return n.reject("invalid user"),e.abrupt("return");case 28:if(fn(a),mn(s),!t){e.next=39;break}if(d=(0,c.A)(s,"redir",""),(0,O.A)(d)){e.next=36;break}return dn.$alert(dn.$t("failedLoginForNoRedir"),{type:"error"}),n.reject("invalid redir"),e.abrupt("return");case 36:return $n(d,a),n.resolve("redir"),e.abrupt("return");case 39:n.resolve("done");case 40:case"end":return e.stop()}}),e)}))),r.apply(this,arguments)}return i().catch((function(e){dn.$alert(dn.$t("failedLoginForCatch"),{type:"error"}),n.reject(e)})),n}function Bn(){var e=(0,C.A)();function t(){return n.apply(this,arguments)}function n(){return n=(0,be.A)(ke.mark((function e(){var t,n;return ke.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=(0,c.A)(dn,"$store.state.webInfor.webKey",""),(0,O.A)(t)){e.next=4;break}return dn.$alert(dn.$t("failedLogoutForNoWebKey"),{type:"error"}),e.abrupt("return",Promise.reject("invalid $keyLS"));case 4:return n="".concat(t,":userToken"),e.next=7,localStorage.setItem(n,"");case 7:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}return t().then((function(){e.resolve("done")})).catch((function(t){dn.$alert(dn.$t("failedLogoutForCatch"),{type:"error"}),e.reject(t)})),e}var Un={warning:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAhCAYAAACxzQkrAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABZ0RVh0Q3JlYXRpb24gVGltZQAwOS8xOS8yNP52YhIAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAADMklEQVRYha2WTWgTQRiGn0k2SU2KNQjmoiL+gGAVD/5gEelAkSKOiILei+hBRAQv/tBDsQiK1CJFDz331tNePAjRm60eBL0pXsSDF+dimmzbZDzsRJNmm+xPXliyOzP7zrNfvpn5hDGGJNJSHQJmAQHcLpbdL0n8RBIgLdVhYBHYb5u+AZeLZfdzXM9UbBpfC8AB/OgIe7+QxDA2kJZqAhgO6Bq2fbEU6y/TUuWB70BpkyG/gL3FsrsS1TtuhO53gcH23Y9jHDlCWqqd+Mmb6zHUA/YVy+7PKP5xIvQkBAx2zNOo5pEipKU6Bnzo6Kg3/N904PcdL5bdj2HniBqh2bYnITDVGmQcyDj+vRDd3+kXkJbqEjDS2mYqK2THTjO0MMfQwhzZsdOYSsfCGrHv9g9IS+UAz9oajUFkHPITV0mVSqRKJfITVxAZBzrT4Jn16A8QcBvY0w4EZDL+/mw8/xIpv60zLfdYj+RAWqrtwGRgpzHQaJm90QiKTlOT1isZEPAI2BpiXC9ttV5d1RVIS3UQuN4HmKZuWM94QMBMiDFRJKznptp0Mi3VGDDeR5imxq13eCB95iz0+JKEmtFj58IDkc5dI7jWaZcQ7cdFOhW0UwdpmHr6WiggLVUBmO4NA6bmYSpVEIMgBjGVKqbm+ZnSW9N2ru5AwANgR28gf9bKzDxry+9ZW35PZWa+ra+Hdti52m1bT3st1S7gK+HKi/+Ha73uP6fTiC0D3TbHjfKAA8Wy+6PZsDFCT0PDAGAQ2Qys12G97t8HnBtd1FEz/YuQluoEsBTFjXoDnDQ5u4o9940PF1wXddPJYtldBmg9gZ9HdTG1GoMPb5G9cBEAZ+9u/ky/QBTyUa2eY0ubFICWSgGnotEYxEAO59gRoAJUcI4fQQzkouRQU6csAykt1TZgKqqDn9Aeq6/fAQWgwOrrt5iqF3aVbdSUlmpI/B49vwiErujaZAxmbZ3syaMArC598gu0eEAAi+L36PkakVZWANRKFQCR35IEBqCaAl4mcUAIRCHvJ3IyGIBXjhHcEYYGcJMkkUomD5gziLut+9Bj4DKQJeLulkACWAUWi2X3HsBfLU4ARuGaUEMAAAAASUVORK5CYII="};function En(e){var t=(0,c.A)(Un,e,"");return(0,O.A)(t)||console.log("invalid icon[".concat(e,"]")),t}var _n={setVo:ln,updateConnState:un,updateLoading:pn,updateViewState:gn,updateUserToken:fn,updateUserSelf:mn,forceUpdate:hn,setLang:An,getKpText:bn,gv:xn,syncHeight:kn,parseUrlParams:Sn,getUrlView:In,goUrl:$n,login:Cn,autoLogin:Tn,logOut:Bn,getIcon:En},Ln=_n;function Wn(e){function t(t,n,i){var r=(0,ie.A)(e,(0,dt.A)({},t,n));return r||(r=""),(0,O.A)(i)&&(r=(0,c.A)(r,i,"")),r}function n(e){return t("keyTable",e,"tableNameCht")}return{getTableInforBy:t,getTableChtByKey:n}}var Nn=Wn;function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=function(n){var i=!1;return(0,$e.A)(e,(function(e){var r=(0,c.A)(e,t,"");if(r===n)return i=!0,!1})),i},o="",a=!0,s=0;while(a){s++;var d="";(0,O.A)(n)&&(d="".concat(n," - ")),o="".concat(d).concat(i,"(").concat(s,")"),a=r(o)}return o}s.Ay.config.productionTip=!1,s.Ay.prototype.$alert=function(){var e=Array.prototype.slice.call(arguments),t=e[0],n=e[1];console.log(t,n),"close"!==t&&(0,l.A)(t,n)};var Dn=Nn(qt);s.Ay.prototype.$ui=Ln,s.Ay.prototype.$t=Ln.getKpText,s.Ay.prototype.$s=a,s.Ay.prototype.$dssm=Dn,s.Ay.prototype.$ds=qt,s.Ay.prototype.$dg={},s.Ay.directive("domresize",(0,p.A)()),s.Ay.directive("dommutation",(0,u.A)()),s.Ay.directive("domdragdrop",(0,g.A)()),(0,d.A)({showLog:!1,getUrl:function(){return window.location.origin+window.location.pathname},useWaitToken:!1,getToken:function(){var e=(0,c.A)(s.Ay.prototype,"$store.state.userToken","");return e},getServerMethods:function(e){s.Ay.prototype.$fapi=e,e.getWebInfor().then((function(e){s.Ay.prototype.$store.commit(s.Ay.prototype.$store.types.UpdateWebInfor,e),Ln.setLang(null,"get webInfor")})).catch((function(e){console.log(e)})),s.Ay.prototype.$store.commit(s.Ay.prototype.$store.types.UpdateSyncState,!0)},recvData:function(e){s.Ay.prototype.$store.commit(s.Ay.prototype.$store.types.UpdateTableData,e)}}),new s.Ay({store:en,render:function(e){return e(st)}}).$mount("#app")},9297:function(e){function t(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=function(){return[]},t.resolve=t,t.id=9297,e.exports=t},477:function(){}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.m=e,function(){var e=[];n.O=function(t,i,r,o){if(!i){var a=1/0;for(l=0;l<e.length;l++){i=e[l][0],r=e[l][1],o=e[l][2];for(var s=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(n.O).every((function(e){return n.O[e](i[c])}))?i.splice(c--,1):(s=!1,o<a&&(a=o));if(s){e.splice(l--,1);var d=r();void 0!==d&&(t=d)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[i,r,o]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){var e={524:0};n.O.j=function(t){return 0===e[t]};var t=function(t,i){var r,o,a=i[0],s=i[1],c=i[2],d=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(c)var l=c(n)}for(t&&t(i);d<a.length;d++)o=a[d],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(l)},i=self["webpackChunkw_web_sso"]=self["webpackChunkw_web_sso"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}();var i=n.O(void 0,[504],(function(){return n(4532)}));i=n.O(i)})();
|
|
2
|
+
//# sourceMappingURL=app-legacy.4476e6c1.js.map
|