gds-plus-design-vue 1.2.5 → 1.2.7

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.
Files changed (368) hide show
  1. package/lib/approvalModel.a26e8ff6.mjs +340 -0
  2. package/lib/approvalModel.cfd81971.js +1 -0
  3. package/lib/btnFunctionName.9aabfed0.js +1 -0
  4. package/lib/btnFunctionName.d08627cb.mjs +254 -0
  5. package/lib/btnRelation.8e608261.mjs +156 -0
  6. package/lib/btnRelation.cb3dc022.js +1 -0
  7. package/lib/businessRules.754cc398.mjs +539 -0
  8. package/lib/businessRules.f41f7035.js +1 -0
  9. package/lib/buttonRule.4483314f.mjs +396 -0
  10. package/lib/buttonRule.645de1d3.js +1 -0
  11. package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
  12. package/lib/chartDisplayRules.fedfefe8.js +1 -0
  13. package/lib/components.chartbi.470b96af.mjs +1798 -0
  14. package/lib/components.chartbi.e9459775.js +8 -0
  15. package/lib/components.coloreditor.affa0400.mjs +1505 -0
  16. package/lib/components.coloreditor.dbec8da6.js +6 -0
  17. package/lib/components.dataassign.39281072.mjs +147 -0
  18. package/lib/components.dataassign.b6a1bffb.js +1 -0
  19. package/lib/components.echarts.95ffc3b3.mjs +811 -0
  20. package/lib/components.echarts.d09e9850.js +4 -0
  21. package/lib/components.exception.11315db5.js +1 -0
  22. package/lib/components.exception.facf9df9.mjs +61 -0
  23. package/lib/components.form.56ea8f98.js +41 -0
  24. package/lib/components.form.a7b3ea37.mjs +7813 -0
  25. package/lib/components.globalheader.0a7ce959.js +1 -0
  26. package/lib/components.globalheader.4a5f7225.mjs +54 -0
  27. package/lib/components.iconselector.0c03cfc7.js +1 -0
  28. package/lib/components.iconselector.251c29b9.mjs +1169 -0
  29. package/lib/components.imgpreview.5546e541.mjs +213 -0
  30. package/lib/components.imgpreview.706a89f0.js +1 -0
  31. package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
  32. package/lib/components.lunccalendar.fe7db238.js +1 -0
  33. package/lib/components.middleware.01601349.js +1 -0
  34. package/lib/components.middleware.f5f4ac0f.mjs +148 -0
  35. package/lib/components.modaltitle.5ded43f9.mjs +127 -0
  36. package/lib/components.modaltitle.cc9ba616.js +1 -0
  37. package/lib/components.multitab.0f9da9f3.mjs +140 -0
  38. package/lib/components.multitab.726cff2f.js +1 -0
  39. package/lib/components.selecttree.1a71c963.mjs +170 -0
  40. package/lib/components.selecttree.2fadffca.js +1 -0
  41. package/lib/components.settingdrawer.1af86231.js +1 -0
  42. package/lib/components.settingdrawer.adc262cf.mjs +237 -0
  43. package/lib/components.sidemenu.03442146.mjs +277 -0
  44. package/lib/components.sidemenu.5107c7e3.js +1 -0
  45. package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
  46. package/lib/components.sidenavmenu.ef33de39.js +1 -0
  47. package/lib/components.statuschange.805a751b.mjs +116 -0
  48. package/lib/components.statuschange.83646c5d.js +1 -0
  49. package/lib/components.table.61eb5d81.js +8 -0
  50. package/lib/components.table.c986e58d.mjs +4650 -0
  51. package/lib/components.tableumy.35b465f9.mjs +453 -0
  52. package/lib/components.tableumy.eba43953.js +1 -0
  53. package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
  54. package/lib/components.tablevirtual.6af04c44.js +1 -0
  55. package/lib/components.teamsharing.68865424.js +1 -0
  56. package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
  57. package/lib/components.tooltip.ccb1717d.mjs +86 -0
  58. package/lib/components.tooltip.e2e21e66.js +1 -0
  59. package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
  60. package/lib/components.uploadfile.e93b500d.js +1 -0
  61. package/lib/components.uploadimg.3804913e.js +1 -0
  62. package/lib/components.uploadimg.e49707d9.mjs +192 -0
  63. package/lib/components.verificationcode.5a9c0220.js +1 -0
  64. package/lib/components.verificationcode.ead74922.mjs +71 -0
  65. package/lib/components.viewformdetails.3c1596ad.js +1 -0
  66. package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
  67. package/lib/components.viewloading.5b178ec5.js +1 -0
  68. package/lib/components.viewloading.cb7917b7.mjs +99 -0
  69. package/lib/components.watermark.849409ca.js +2 -0
  70. package/lib/components.watermark.a2521d0c.mjs +53 -0
  71. package/lib/components.xlsxexport.3405a00b.js +1 -0
  72. package/lib/components.xlsxexport.871f87d1.mjs +263 -0
  73. package/lib/components.xlsximport.85ce77cf.mjs +922 -0
  74. package/lib/components.xlsximport.e3bcb07d.js +1 -0
  75. package/lib/copy.b09a6d38.js +1 -0
  76. package/lib/copy.c0a2f16d.mjs +572 -0
  77. package/lib/dialogLayout.059ee256.mjs +138 -0
  78. package/lib/dialogLayout.cedf2865.js +1 -0
  79. package/lib/drawerContainer.38d7b530.mjs +154 -0
  80. package/lib/drawerContainer.ea7722d7.js +1 -0
  81. package/lib/drawerLayout.454e4921.js +1 -0
  82. package/lib/drawerLayout.fad843ee.mjs +119 -0
  83. package/lib/editForm.c199538f.mjs +434 -0
  84. package/lib/editForm.f9dc93ef.js +1 -0
  85. package/lib/flow.designer.4c83c0d3.js +1 -0
  86. package/lib/flow.designer.9442a995.mjs +7673 -0
  87. package/lib/flow.list.4a31969e.mjs +3032 -0
  88. package/lib/flow.list.f41ee531.js +1 -0
  89. package/lib/form.build.c38bf362.js +1 -0
  90. package/lib/form.build.fb9f905b.mjs +259 -0
  91. package/lib/form.designer.build.3fdf8007.js +1 -0
  92. package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
  93. package/lib/formFiled.624b8dd3.js +1 -0
  94. package/lib/formFiled.94fb1dce.mjs +498 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +233 -91033
  97. package/lib/http.appmanage.9b22ff82.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
  100. package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
  101. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  102. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  103. package/lib/http.currencymanage.37ab5ced.js +1 -0
  104. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  105. package/lib/http.datasource.294b01e2.js +1 -0
  106. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  107. package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
  108. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  109. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  110. package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
  111. package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
  112. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  113. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  114. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  115. package/lib/http.filedocument.6fdfc693.js +1 -0
  116. package/lib/http.filedocument.d3a4afd9.mjs +293 -0
  117. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  118. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  119. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  120. package/lib/http.languagemanage.e2c098ec.js +1 -0
  121. package/lib/http.loginmanage.05500c29.mjs +74 -0
  122. package/lib/http.loginmanage.326984c3.js +1 -0
  123. package/lib/http.logmanage.1e12a9bd.js +1 -0
  124. package/lib/http.logmanage.8ba72635.mjs +82 -0
  125. package/lib/http.machinemanage.29d72a65.js +1 -0
  126. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  127. package/lib/http.main.1af1e119.mjs +517 -0
  128. package/lib/http.main.2f8a6936.js +1 -0
  129. package/lib/http.menumanage.09fffb7d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.1d68e914.mjs +178 -0
  132. package/lib/http.message.87f319d7.js +1 -0
  133. package/lib/http.noticemanage.2507d094.js +1 -0
  134. package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
  135. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  136. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  137. package/lib/http.onlineusermanage.3893f897.js +1 -0
  138. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  139. package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
  140. package/lib/http.orgmanage.5162fd7a.js +1 -0
  141. package/lib/http.pluginmanage.54720675.mjs +82 -0
  142. package/lib/http.pluginmanage.6a876040.js +1 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  146. package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
  147. package/lib/http.rolemanage.4d1101dd.js +1 -0
  148. package/lib/http.rolemanage.da5c40e9.mjs +146 -0
  149. package/lib/http.solution.b10d9197.mjs +91 -0
  150. package/lib/http.solution.c6b2634f.js +1 -0
  151. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  152. package/lib/http.sumberrules.176d3d06.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.932ba43b.mjs +58 -0
  155. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  156. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  157. package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.a9c609d5.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.6e894942.js +1 -0
  162. package/lib/http.timersmanage.c79afb66.mjs +146 -0
  163. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  164. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  165. package/lib/http.translationmanage.1f9dce46.js +1 -0
  166. package/lib/http.translationmanage.f8694b51.mjs +104 -0
  167. package/lib/http.useraffiliation.af2013ad.js +1 -0
  168. package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
  169. package/lib/http.usermanage.6dcbc7de.js +1 -0
  170. package/lib/http.usermanage.f5491144.mjs +219 -0
  171. package/lib/http.webresource.1a1a768f.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.3fa2dc66.mjs +40154 -0
  174. package/lib/index.fe757a98.js +8 -0
  175. package/lib/layoutBlocks.14c77a02.js +1 -0
  176. package/lib/layoutBlocks.5d71a03b.mjs +401 -0
  177. package/lib/layouts.a662f681.js +2 -0
  178. package/lib/layouts.ec4f20a2.mjs +376 -0
  179. package/lib/main.092a2ac8.js +1 -0
  180. package/lib/{main.c59fc1e8.mjs → main.15237e71.mjs} +12 -10
  181. package/lib/main.29769f01.js +1 -0
  182. package/lib/main.401059c6.mjs +189 -0
  183. package/lib/main.447be615.js +1 -0
  184. package/lib/main.4e507685.mjs +231 -0
  185. package/lib/main.72cafa63.mjs +540 -0
  186. package/lib/{main.4e325110.mjs → main.73f22d9e.mjs} +9 -8
  187. package/lib/main.7601bd3d.mjs +166 -0
  188. package/lib/main.79199ac2.js +1 -0
  189. package/lib/main.821d081b.js +1 -0
  190. package/lib/main.8627466a.mjs +537 -0
  191. package/lib/{main.955f770e.mjs → main.88e9be9d.mjs} +4 -4
  192. package/lib/main.8e6f6cba.mjs +323 -0
  193. package/lib/main.a9a54af9.js +1 -0
  194. package/lib/main.e033a376.js +1 -0
  195. package/lib/main.e2e4ba74.js +1 -0
  196. package/lib/{main.be62e9a4.mjs → main.e79d9e56.mjs} +113 -188
  197. package/lib/main.ea3a04f4.js +1 -0
  198. package/lib/main.f44d8279.js +1 -0
  199. package/lib/messages.5f54a62e.js +9 -0
  200. package/lib/{messages.7e418640.mjs → messages.d4354532.mjs} +4321 -5268
  201. package/lib/packages.filedocument.8418d852.mjs +4039 -0
  202. package/lib/packages.filedocument.9b8eda0d.js +1 -0
  203. package/lib/page.build.4d28df9a.js +12 -0
  204. package/lib/page.build.78cc7396.mjs +3020 -0
  205. package/lib/personal.echarts.940f1cc9.mjs +696 -0
  206. package/lib/personal.echarts.b5a7f574.js +1 -0
  207. package/lib/result.0161b0e0.js +1 -0
  208. package/lib/result.5a9330d7.mjs +627 -0
  209. package/lib/router.config.79a98ab8.mjs +3105 -0
  210. package/lib/router.config.7fd04c30.js +1 -0
  211. package/lib/solution.application.3ae7c0c5.js +1 -0
  212. package/lib/solution.application.fdc15ffc.mjs +548 -0
  213. package/lib/solution.applicationmenu.67aba620.js +1 -0
  214. package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
  215. package/lib/solution.approvalflow.81b7cfb7.js +1 -0
  216. package/lib/solution.approvalflow.a541adcc.mjs +436 -0
  217. package/lib/solution.dict.addbce33.mjs +769 -0
  218. package/lib/solution.dict.f1c9bae6.js +1 -0
  219. package/lib/solution.menu.2033fa37.mjs +5834 -0
  220. package/lib/solution.menu.6512047f.js +1 -0
  221. package/lib/solution.plugin.7094dbfd.js +1 -0
  222. package/lib/solution.plugin.d8f057cb.mjs +347 -0
  223. package/lib/solution.processflow.0adf4f55.js +1 -0
  224. package/lib/solution.processflow.a779bd58.mjs +392 -0
  225. package/lib/solution.role.d35cb00d.js +1 -0
  226. package/lib/solution.role.d9a4b25a.mjs +456 -0
  227. package/lib/solution.webresources.e1421655.mjs +379 -0
  228. package/lib/solution.webresources.e817757c.js +1 -0
  229. package/lib/solution.workflow.59552b8c.mjs +395 -0
  230. package/lib/solution.workflow.985e1f4d.js +1 -0
  231. package/lib/store.config.556bd56b.js +1 -0
  232. package/lib/store.config.5e5cb48a.mjs +547 -0
  233. package/lib/style.css +3 -3
  234. package/lib/system.account.1b281679.js +216 -0
  235. package/lib/system.account.96d5bc17.mjs +2093 -0
  236. package/lib/system.config.0ff45e62.js +1 -0
  237. package/lib/{system.config.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
  238. package/lib/system.datasource.4243937d.js +1 -0
  239. package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
  240. package/lib/{system.dict.a817cf68.mjs → system.dict.3697546d.mjs} +269 -344
  241. package/lib/system.dict.8e4fe6b0.js +1 -0
  242. package/lib/system.document.69e534a6.js +1 -0
  243. package/lib/system.document.8e4dbe5e.mjs +667 -0
  244. package/lib/system.duplicatechecking.1083eb1e.js +1 -0
  245. package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
  246. package/lib/system.email.06bb7cc1.mjs +133 -0
  247. package/lib/system.email.41036a31.js +1 -0
  248. package/lib/system.fieldsecurity.3ea880d8.js +1 -0
  249. package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
  250. package/lib/{system.file.1930d109.mjs → system.file.8ccc4569.mjs} +84 -151
  251. package/lib/system.file.b8e4e6a1.js +1 -0
  252. package/lib/system.log.14c22a7a.js +1 -0
  253. package/lib/{system.log.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
  254. package/lib/system.machine.379beacb.js +1 -0
  255. package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
  256. package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
  257. package/lib/system.notice.fb151c45.js +1 -0
  258. package/lib/system.noticereceived.3a29d891.js +1 -0
  259. package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
  260. package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
  261. package/lib/system.onlineuser.fc26aff9.js +1 -0
  262. package/lib/system.org.b6f826e8.js +1 -0
  263. package/lib/{system.org.6e858bf3.mjs → system.org.dd710a91.mjs} +3 -3
  264. package/lib/system.permissions.75406743.mjs +972 -0
  265. package/lib/system.permissions.97f68887.js +1 -0
  266. package/lib/system.plugin.3fcf7b0b.js +1 -0
  267. package/lib/{system.plugin.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
  268. package/lib/system.pos.5a1663d8.js +1 -0
  269. package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
  270. package/lib/system.promptmanagement.53c301a3.js +1 -0
  271. package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
  272. package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
  273. package/lib/system.role.e164f059.js +1 -0
  274. package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
  275. package/lib/system.sumberrules.5e9cd262.js +1 -0
  276. package/lib/system.team.3e605266.js +1 -0
  277. package/lib/system.team.bb1fb40e.mjs +452 -0
  278. package/lib/system.teammembers.a098883b.js +1 -0
  279. package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
  280. package/lib/system.timers.2f884e41.js +38 -0
  281. package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
  282. package/lib/system.translation.6e99c852.js +1 -0
  283. package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
  284. package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
  285. package/lib/system.user.dffc2543.js +14 -0
  286. package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
  287. package/lib/system.useraffiliation.f8b33def.js +1 -0
  288. package/lib/system.webresource.1d3ed352.js +1 -0
  289. package/lib/{system.webresource.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
  290. package/lib/{system.welcome.79e15015.mjs → system.welcome.573a76db.mjs} +10 -3
  291. package/lib/system.welcome.eedf1db2.js +1 -0
  292. package/lib/tableDescriptions.923c4ef1.mjs +80 -0
  293. package/lib/tableDescriptions.b12679b0.js +1 -0
  294. package/lib/tcheckboxs.887d733c.mjs +52 -0
  295. package/lib/tcheckboxs.fe7e574a.js +1 -0
  296. package/lib/tcurrency.10ac9aa7.mjs +85 -0
  297. package/lib/tcurrency.20e959c0.js +1 -0
  298. package/lib/tdatepicker.54036bba.js +1 -0
  299. package/lib/tdatepicker.a08ad382.mjs +52 -0
  300. package/lib/tdictSwitch.274e9f86.js +1 -0
  301. package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
  302. package/lib/tfile.5c897827.js +1 -0
  303. package/lib/tfile.f63b73b9.mjs +62 -0
  304. package/lib/tparticipants.4698962b.mjs +56 -0
  305. package/lib/tparticipants.b6fb4545.js +1 -0
  306. package/lib/translation.mains.5cfc7a2f.js +1 -0
  307. package/lib/translation.mains.e6cb610b.mjs +383 -0
  308. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  309. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  310. package/lib/utils.echarts.js.461a74e7.js +54 -0
  311. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  312. package/lib/utils.mixins.js.750ca50e.js +1 -0
  313. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  314. package/lib/utils.plug.js.9313aead.mjs +31 -0
  315. package/lib/utils.plug.js.f62510ce.js +1 -0
  316. package/lib/utils.util.js.885de913.mjs +439 -0
  317. package/lib/utils.util.js.c0ba699b.js +1 -0
  318. package/lib/view.build.051553d8.mjs +1578 -0
  319. package/lib/view.build.9af3087b.js +1 -0
  320. package/lib/viewList.209956c3.js +1 -0
  321. package/lib/viewList.c05c92be.mjs +318 -0
  322. package/lib/viewTree.0cd9f1a2.js +1 -0
  323. package/lib/viewTree.c5290360.mjs +409 -0
  324. package/locale/en_US.js +96 -29
  325. package/locale/id_ID.js +80 -13
  326. package/locale/vi_VN.js +2015 -1948
  327. package/locale/zh_CN.js +100 -33
  328. package/package.json +106 -105
  329. package/lib/chartbi.b5b6fdab.js +0 -60
  330. package/lib/chartbi.b6818e8e.mjs +0 -27604
  331. package/lib/main.6713b76c.js +0 -1
  332. package/lib/main.a28f67df.js +0 -1
  333. package/lib/main.b4a303dc.js +0 -1
  334. package/lib/main.f3ae0933.js +0 -1
  335. package/lib/messages.1346558e.js +0 -9
  336. package/lib/system.account.64fbdaeb.mjs +0 -2552
  337. package/lib/system.account.7c43a95e.js +0 -216
  338. package/lib/system.config.93d6cb7d.js +0 -1
  339. package/lib/system.datasource.4bb39222.js +0 -1
  340. package/lib/system.dict.5a2e60fe.js +0 -1
  341. package/lib/system.duplicatechecking.65b77e64.js +0 -1
  342. package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
  343. package/lib/system.email.2f53252e.mjs +0 -7432
  344. package/lib/system.email.fec5ae26.js +0 -41
  345. package/lib/system.fieldsecurity.920adca4.js +0 -1
  346. package/lib/system.file.5a9a5e0e.js +0 -1
  347. package/lib/system.log.b309c0e0.js +0 -1
  348. package/lib/system.machine.9368e508.js +0 -1
  349. package/lib/system.notice.ff62c06a.js +0 -1
  350. package/lib/system.noticereceived.9550818b.js +0 -1
  351. package/lib/system.onlineuser.6cf4fe24.js +0 -1
  352. package/lib/system.org.0c67131d.js +0 -1
  353. package/lib/system.permissions.af548a3b.js +0 -9
  354. package/lib/system.permissions.cc5ac7ac.mjs +0 -212
  355. package/lib/system.plugin.83d03fb2.js +0 -1
  356. package/lib/system.pos.eae2051e.js +0 -1
  357. package/lib/system.promptmanagement.04501417.js +0 -1
  358. package/lib/system.role.e623c50b.js +0 -1
  359. package/lib/system.sumberrules.a01e1805.js +0 -1
  360. package/lib/system.team.0cebcde7.js +0 -1
  361. package/lib/system.team.27a6d5d5.mjs +0 -1000
  362. package/lib/system.teammembers.b67f003f.js +0 -1
  363. package/lib/system.timers.b27fcb6d.js +0 -38
  364. package/lib/system.translation.d2c982ed.js +0 -1
  365. package/lib/system.user.0664c21c.js +0 -14
  366. package/lib/system.useraffiliation.6b7a1612.js +0 -1
  367. package/lib/system.webresource.5de18052.js +0 -1
  368. package/lib/system.welcome.ec7aa744.js +0 -1
@@ -0,0 +1,216 @@
1
+ "use strict";const H=require("./components.chartbi.e9459775.js"),q=require("vue"),W=require("./http.usermanage.6dcbc7de.js"),z=require("./http.filemanage.7e6e3e1a.js"),G=require("./http.languagemanage.e2c098ec.js"),V=require("./http.currencymanage.37ab5ced.js"),Z=require("./http.timezonemanage.e0aa212f.js"),B=require("./components.settingdrawer.1af86231.js"),J=require("./http.appmanage.b998818f.js"),N=require("./http.menumanage.6d740f2c.js"),K=require("./http.loginmanage.326984c3.js"),Q=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},ee=Q(q);const te={props:{keepAlive:{type:Boolean,default:!0},height:{type:Number,default:0}},name:"GdAccountSettings",data(){return{mode:"inline",openKeys:[],selectedKeys:[],activeIndex:"/account/settings/base",preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]},pageTitle:""}},components:{},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},style(){return this.crumbsState?"margin:0 4px 4px;height: 100%;":"margin: 4px;height: 100%;"},getHeight(){return"overflow:auto;height:"+(this.screenHeight-24-20-10-5)+"px;"},getTitle(){let s="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?s="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?s="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?s="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?s="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(s="bindenterpriseWechat"),s===""?e:this.$i18nt("gd.account."+s)},...H.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(s,e){this.openKeys=openKeys},updateMenu(){const s=this.$route.matched.concat();this.activeIndex=s.pop().path},clickWx(s,e){const i=this.$route.matched.concat();this.activeIndex=i.pop().path},fadeColor(s,e){let i=parseInt(s.substring(1,3),16),a=parseInt(s.substring(3,5),16),u=parseInt(s.substring(5,7),16);return`rgba(${i},${a},${u},${e})`}},watch:{$route(s){this.updateMenu()}}};var ne=function(){var e=this,i=e._self._c;return i("div",{staticClass:"page-header-index-wide",style:e.style},[i("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[i("div",{staticClass:"account-settings-info-main"},[i("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[i("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),i("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),i("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),i("div",{staticClass:"account-settings-info-right"},[i("div",{staticClass:"account-settings-info-title"},[i("span",[e._v(e._s(e.getTitle))])]),e.multiTab?i("keep-alive",[i("router-view",{key:e.$route.fullPath})],1):i("router-view",{key:e.$route.fullPath})],1)])])],1)},ie=[],re=H.normalizeComponent(te,ne,ie,!1,null,"0ab9cb32",null,null);const P=re.exports;P.install=function(s){s.component(P.name,P)};const oe={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:()=>Promise.resolve().then(()=>ye)},data(){return{preview:{},sexData:[],langData:[],timezoneData:[],currencyData:[],option:{img:null,info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1],birthdayString:""},spinning:!1,ruleForm:{},rules:{}}},computed:{getHeight(){return this.height},...H.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(s){let e=this.langData.filter(i=>i.id==s)[0];this.$store.dispatch("Language",e.code)},initUserInfo(){this.spinning=!0,setTimeout(()=>{this.languageChange(),this.timezoneChange(),this.currencyChange(),this.ruleForm={birthday:this.userInfo.birthday?this.userInfo.birthday:void 0,nickName:this.userInfo.nickname,gender:this.userInfo.gender.toString(),email:this.userInfo.email,phone:this.userInfo.phone,tel:this.userInfo.tel,languageId:this.userInfo.languageid,currencyId:this.userInfo.currencyid,timezoneId:this.userInfo.timezoneid},this.birthdayString=this.userInfo.birthday,this.userInfo.avatar!=null?z.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{this.option.img=window.URL.createObjectURL(new Blob([s]))}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(s,e){console.log(s),this.birthdayString=s},currencyChange(){V.sysCurrencyPage().then(s=>{s.success&&(this.currencyData=s.data.rows,ee.default.ls.set("currencyData",s.data.rows))})},timezoneChange(){Z.sysTimezonePage().then(s=>{s.success&&(this.timezoneData=s.data.rows)})},languageChange(){G.sysLanguagePage().then(s=>{s.success&&(this.langData=s.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(s=>{s&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,W.sysUserUpdateInfo(this.ruleForm).then(e=>{if(e.success){let i=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",i.code),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),setTimeout(()=>{this.$store.dispatch("GetInfo").then(()=>{})},500)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message);this.spinning=!1}))})},getSexData(){this.sexData=this.$options.filters.dictData("gender")},setavatar(s){z.sysFileInfoPreview({id:s}).then(e=>{this.option.img=window.URL.createObjectURL(new Blob([e]))}).catch(e=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)}),this.$store.dispatch("GetInfo").then(()=>{})}}};var se=function(){var e=this,i=e._self._c;return i("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{md:24,lg:16}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,u){return i("el-radio",{key:u,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.phone","\u624B\u673A\u53F7"),prop:"phone",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},{pattern:/^1[3-9]\d{9}$/,message:this.$i18nt("gd.account.phoneInvalid","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.phone,callback:function(a){e.$set(e.ruleForm,"phone",a)},expression:"ruleForm.phone"}})],1),i("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.email","\u7535\u5B50\u90AE\u4EF6"),prop:"email",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"blur"},{type:"email",message:e.$i18nt("gd.account.emailTip","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"),trigger:["blur","change"]}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.email,callback:function(a){e.$set(e.ruleForm,"email",a)},expression:"ruleForm.email"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),i("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[i("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[i("i",{staticClass:"el-icon-upload upload-icon"}),i("div",{staticClass:"mask"},[i("i",{staticClass:"el-icon-plus"})]),i("img",{attrs:{src:e.option.img}})])])],1),i("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},ae=[],ce=H.normalizeComponent(oe,se,ae,!1,null,"981e4d97",null,null);const X=ce.exports;X.install=function(s){s.component(X.name,X)};const le={name:"GdCustomSettings",data(){return{colorList:B.colorList,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let s=[];return B.colorList.forEach(e=>{s.push(e.color)}),s},...H.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(s){this.$store.dispatch("EchartsColor",s),this.echartsList=[...s]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let s=this,e=this.homePage,i=!1;if(e.length==0&&(i=!0),e.length>1&&(i=!0),!i){s.$message.error(s.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}this.$confirm(this.$i18nt("gd.https.configThemeContent","\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u5B9A\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,u,d)=>{this.renewHand(a,u,d,this.homePage)}})},renewHand(s,e,i,a){if(s!=="confirm"){i();return}let u=[],d=W.sysUserConfigTheme({configTheme:a.join(",")}).then(C=>C);u.push(d),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(u).then(C=>{i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=C.filter(S=>!S.success);$.length===0?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$store.dispatch("GetInfo").then(()=>{})):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+$[0].message)})},init(){this.value=this.theme=="dark"?1:0,this.homePage=this.userInfo.configtheme?this.userInfo.configtheme.split(","):[],this.systemInfo.id?this.systemInfo:window.$systemInfo},lazyLoad(s,e){const{level:i,value:a}=s;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const u=this.options.filter(d=>d.code===this.homePage[0])[0];this.presentText=u?this.presentText.concat([u.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(u=>{if(this.presentText.length<this.homePage.length&&i===2){this.presentText=this.presentText.concat([s.label]);const C=s.children.filter($=>$.value===this.homePage[i])[0];this.presentText=C?this.presentText.concat([C.label]):this.presentText}const d=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&d===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(u)})},geData(){return J.getAppList({}).then(s=>{if(s.success){let e=s.data.map(i=>{let a=this.userInfo.apps.filter(u=>u.code==i.code)[0];if(a!=null)return i.leaf=a==null,i.value=i.code,i.label=this.$i18nt(`Dynamics.${i.transkey}`,i.name),i.loading=!1,i});return e=e.filter(i=>i!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(i=>{i()})}})},getMenuListAll(s){return Promise.all([this.getMenuList({application:s}),this.sysMenuChange({application:s})]).then(e=>{let i=e[0].data,a=e[1].data;return i.map((u,d)=>{let C=a.filter($=>$.path==u.router);return i[d].value=u.router,i[d].label=this.$i18nt(`Dynamics.${u.transkey}`,u.name),i[d].leaf=u.children.length==0,i[d].disabled=C.length==0,u.children.length==0?i[d].children=null:u.children.map(($,S)=>{let L=a.filter(k=>k.path==$.router);i[d].children[S].value=$.router,i[d].children[S].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),i[d].children[S].children=[],i[d].children[S].leaf=!0,i[d].children[S].disabled=L.length==0}),u}),i.map(u=>{u.children=u.children?u.children.filter(d=>d.disabled==!1):[]}),i})},getMenuList(s){return N.getMenuList(s).then(e=>e)},sysMenuChange(s){return N.sysMenuChange(s).then(e=>e)},onChangeCascader(s){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(s){s?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(s){const e=this,i=this.primaryColor;if(typeof s!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),u=this.getThemeCluster(s.replace("#","")),d=this.getThemeCluster(i.replace("#","")),C=(L,k)=>()=>{const T=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[L],T,u);let t=document.getElementById(k);t||(t=document.createElement("style"),t.setAttribute("id",k),document.head.appendChild(t)),t.innerText=n};this.chalk||await Promise.resolve().then(()=>require("./element-theme-chalk.dee12271.js")).then(L=>{this.chalk=L.default}),C("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(L=>{const k=L.innerText;return new RegExp(i,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(L=>{const{innerText:k}=L;typeof k=="string"&&(L.innerText=this.updateStyle(k,d,u))}),this.$store.dispatch("ToggleColor",s),window.document.body.style=`--color:${s}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(s,e,i){let a=s;return e.forEach((u,d)=>{a=a.replace(new RegExp(u,"ig"),i[d])}),a},getThemeCluster(s){const e=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),S=parseInt(u.slice(4,6),16);return d===0?[C,$,S].join(","):(C+=Math.round(d*(255-C)),$+=Math.round(d*(255-$)),S+=Math.round(d*(255-S)),C=C.toString(16),$=$.toString(16),S=S.toString(16),`#${C}${$}${S}`)},i=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),S=parseInt(u.slice(4,6),16);return C=Math.round((1-d)*C),$=Math.round((1-d)*$),S=Math.round((1-d)*S),C=C.toString(16),$=$.toString(16),S=S.toString(16),`#${C}${$}${S}`},a=[s];for(let u=0;u<=9;u++)a.push(e(s,Number((u/10).toFixed(2))));return a.push(i(s,.1)),a},traverse(s,e){let i=null;const a=u=>(u=u.filter((d,C)=>(d.children&&d.children.length>0&&a(d.children),d.value==s&&(i={...d}),!0)),u);return a(this.propOptions),i}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var he=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,u){return[i("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[i("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.$refs.echartsTheme.open()}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[i("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),i("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),i("el-divider"),i("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},ue=[],de=H.normalizeComponent(le,he,ue,!1,null,"b784faab",null,null);const F=de.exports;F.install=function(s){s.component(F.name,F)};const pe={name:"GdSecuritySettings",components:{UpdPwd:()=>Promise.resolve().then(()=>ke),weChatBind:()=>Promise.resolve().then(()=>He)},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(s,e){this.changeLanguage()},userInfo(s,e){this.changUserInfo()}},mounted(){this.init()},computed:{...H.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){let s={code:"GDS_ENTERPRISE_WECHAT_LOGIN"};W.getConfigInfoByCode(s).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){let s={strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"};W.getConfigsByCode(s).then(e=>{e.success&&(this.obj=e)})},getData(){K.getLoginUser().then(s=>{this.wxuserid=s.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(s,e){let i=this;s.data.forEach((a,u)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(i.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(i.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(i.redirectURL=a.value)}),setTimeout(()=>{i.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:i.appId,agentid:i.agentId,redirect_uri:i.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){i.code=a,i.$refs.updPwd.open(i.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(s){s==1||s==0?this.getData():s==-1?this.getConfigsBy():s==2&&this.getConfigsBy()}}};var ge=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),i("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),i("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},fe=[],me=H.normalizeComponent(pe,ge,fe,!1,null,"21459f3a",null,null);const Y=me.exports;Y.install=function(s){s.component(Y.name,Y)};var U={exports:{}};(function(s,e){(function(i,a){s.exports=a()})(window,function(){return function(i){var a={};function u(d){if(a[d])return a[d].exports;var C=a[d]={i:d,l:!1,exports:{}};return i[d].call(C.exports,C,C.exports,u),C.l=!0,C.exports}return u.m=i,u.c=a,u.d=function(d,C,$){u.o(d,C)||Object.defineProperty(d,C,{enumerable:!0,get:$})},u.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},u.t=function(d,C){if(1&C&&(d=u(d)),8&C||4&C&&typeof d=="object"&&d&&d.__esModule)return d;var $=Object.create(null);if(u.r($),Object.defineProperty($,"default",{enumerable:!0,value:d}),2&C&&typeof d!="string")for(var S in d)u.d($,S,function(L){return d[L]}.bind(null,S));return $},u.n=function(d){var C=d&&d.__esModule?function(){return d.default}:function(){return d};return u.d(C,"a",C),C},u.o=function(d,C){return Object.prototype.hasOwnProperty.call(d,C)},u.p="",u(u.s=6)}([function(i,a,u){var d=u(2);typeof d=="string"&&(d=[[i.i,d,""]]);var C={hmr:!0,transform:void 0,insertInto:void 0};u(4)(d,C),d.locals&&(i.exports=d.locals)},function(i,a,u){var d=u(0);u.n(d).a},function(i,a,u){(i.exports=u(3)(!1)).push([i.i,`
2
+ .vue-cropper[data-v-6dae58fd] {
3
+ position: relative;
4
+ width: 100%;
5
+ height: 100%;
6
+ box-sizing: border-box;
7
+ user-select: none;
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ -ms-user-select: none;
11
+ direction: ltr;
12
+ touch-action: none;
13
+ text-align: left;
14
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
15
+ }
16
+ .cropper-box[data-v-6dae58fd],
17
+ .cropper-box-canvas[data-v-6dae58fd],
18
+ .cropper-drag-box[data-v-6dae58fd],
19
+ .cropper-crop-box[data-v-6dae58fd],
20
+ .cropper-face[data-v-6dae58fd] {
21
+ position: absolute;
22
+ top: 0;
23
+ right: 0;
24
+ bottom: 0;
25
+ left: 0;
26
+ user-select: none;
27
+ }
28
+ .cropper-box-canvas img[data-v-6dae58fd] {
29
+ position: relative;
30
+ text-align: left;
31
+ user-select: none;
32
+ transform: none;
33
+ max-width: none;
34
+ max-height: none;
35
+ }
36
+ .cropper-box[data-v-6dae58fd] {
37
+ overflow: hidden;
38
+ }
39
+ .cropper-move[data-v-6dae58fd] {
40
+ cursor: move;
41
+ }
42
+ .cropper-crop[data-v-6dae58fd] {
43
+ cursor: crosshair;
44
+ }
45
+ .cropper-modal[data-v-6dae58fd] {
46
+ background: rgba(0, 0, 0, 0.5);
47
+ }
48
+ .cropper-crop-box[data-v-6dae58fd] {
49
+ /*border: 2px solid #39f;*/
50
+ }
51
+ .cropper-view-box[data-v-6dae58fd] {
52
+ display: block;
53
+ overflow: hidden;
54
+ width: 100%;
55
+ height: 100%;
56
+ outline: 1px solid #39f;
57
+ outline-color: rgba(51, 153, 255, 0.75);
58
+ user-select: none;
59
+ }
60
+ .cropper-view-box img[data-v-6dae58fd] {
61
+ user-select: none;
62
+ text-align: left;
63
+ max-width: none;
64
+ max-height: none;
65
+ }
66
+ .cropper-face[data-v-6dae58fd] {
67
+ top: 0;
68
+ left: 0;
69
+ background-color: #fff;
70
+ opacity: 0.1;
71
+ }
72
+ .crop-info[data-v-6dae58fd] {
73
+ position: absolute;
74
+ left: 0px;
75
+ min-width: 65px;
76
+ text-align: center;
77
+ color: white;
78
+ line-height: 20px;
79
+ background-color: rgba(0, 0, 0, 0.8);
80
+ font-size: 12px;
81
+ }
82
+ .crop-line[data-v-6dae58fd] {
83
+ position: absolute;
84
+ display: block;
85
+ width: 100%;
86
+ height: 100%;
87
+ opacity: 0.1;
88
+ }
89
+ .line-w[data-v-6dae58fd] {
90
+ top: -3px;
91
+ left: 0;
92
+ height: 5px;
93
+ cursor: n-resize;
94
+ }
95
+ .line-a[data-v-6dae58fd] {
96
+ top: 0;
97
+ left: -3px;
98
+ width: 5px;
99
+ cursor: w-resize;
100
+ }
101
+ .line-s[data-v-6dae58fd] {
102
+ bottom: -3px;
103
+ left: 0;
104
+ height: 5px;
105
+ cursor: s-resize;
106
+ }
107
+ .line-d[data-v-6dae58fd] {
108
+ top: 0;
109
+ right: -3px;
110
+ width: 5px;
111
+ cursor: e-resize;
112
+ }
113
+ .crop-point[data-v-6dae58fd] {
114
+ position: absolute;
115
+ width: 8px;
116
+ height: 8px;
117
+ opacity: 0.75;
118
+ background-color: #39f;
119
+ border-radius: 100%;
120
+ }
121
+ .point1[data-v-6dae58fd] {
122
+ top: -4px;
123
+ left: -4px;
124
+ cursor: nw-resize;
125
+ }
126
+ .point2[data-v-6dae58fd] {
127
+ top: -5px;
128
+ left: 50%;
129
+ margin-left: -3px;
130
+ cursor: n-resize;
131
+ }
132
+ .point3[data-v-6dae58fd] {
133
+ top: -4px;
134
+ right: -4px;
135
+ cursor: ne-resize;
136
+ }
137
+ .point4[data-v-6dae58fd] {
138
+ top: 50%;
139
+ left: -4px;
140
+ margin-top: -3px;
141
+ cursor: w-resize;
142
+ }
143
+ .point5[data-v-6dae58fd] {
144
+ top: 50%;
145
+ right: -4px;
146
+ margin-top: -3px;
147
+ cursor: e-resize;
148
+ }
149
+ .point6[data-v-6dae58fd] {
150
+ bottom: -5px;
151
+ left: -4px;
152
+ cursor: sw-resize;
153
+ }
154
+ .point7[data-v-6dae58fd] {
155
+ bottom: -5px;
156
+ left: 50%;
157
+ margin-left: -3px;
158
+ cursor: s-resize;
159
+ }
160
+ .point8[data-v-6dae58fd] {
161
+ bottom: -5px;
162
+ right: -4px;
163
+ cursor: se-resize;
164
+ }
165
+ @media screen and (max-width: 500px) {
166
+ .crop-point[data-v-6dae58fd] {
167
+ position: absolute;
168
+ width: 20px;
169
+ height: 20px;
170
+ opacity: 0.45;
171
+ background-color: #39f;
172
+ border-radius: 100%;
173
+ }
174
+ .point1[data-v-6dae58fd] {
175
+ top: -10px;
176
+ left: -10px;
177
+ }
178
+ .point2[data-v-6dae58fd],
179
+ .point4[data-v-6dae58fd],
180
+ .point5[data-v-6dae58fd],
181
+ .point7[data-v-6dae58fd] {
182
+ display: none;
183
+ }
184
+ .point3[data-v-6dae58fd] {
185
+ top: -10px;
186
+ right: -10px;
187
+ }
188
+ .point4[data-v-6dae58fd] {
189
+ top: 0;
190
+ left: 0;
191
+ }
192
+ .point6[data-v-6dae58fd] {
193
+ bottom: -10px;
194
+ left: -10px;
195
+ }
196
+ .point8[data-v-6dae58fd] {
197
+ bottom: -10px;
198
+ right: -10px;
199
+ }
200
+ }
201
+ `,""])},function(i,a){i.exports=function(u){var d=[];return d.toString=function(){return this.map(function(C){var $=function(S,L){var k=S[1]||"",T=S[3];if(!T)return k;if(L&&typeof btoa=="function"){var n=function(o){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"}(T),t=T.sources.map(function(o){return"/*# sourceURL="+T.sourceRoot+o+" */"});return[k].concat(t).concat([n]).join(`
202
+ `)}return[k].join(`
203
+ `)}(C,u);return C[2]?"@media "+C[2]+"{"+$+"}":$}).join("")},d.i=function(C,$){typeof C=="string"&&(C=[[null,C,""]]);for(var S={},L=0;L<this.length;L++){var k=this[L][0];typeof k=="number"&&(S[k]=!0)}for(L=0;L<C.length;L++){var T=C[L];typeof T[0]=="number"&&S[T[0]]||($&&!T[2]?T[2]=$:$&&(T[2]="("+T[2]+") and ("+$+")"),d.push(T))}},d}},function(i,a,u){var d={},C=function(c){var h;return function(){return h===void 0&&(h=c.apply(this,arguments)),h}}(function(){return window&&document&&document.all&&!window.atob}),$=function(c){var h={};return function(p,g){if(typeof p=="function")return p();if(h[p]===void 0){var w=function(v,b){return b?b.querySelector(v):document.querySelector(v)}.call(this,p,g);if(window.HTMLIFrameElement&&w instanceof window.HTMLIFrameElement)try{w=w.contentDocument.head}catch{w=null}h[p]=w}return h[p]}}(),S=null,L=0,k=[],T=u(5);function n(c,h){for(var p=0;p<c.length;p++){var g=c[p],w=d[g.id];if(w){w.refs++;for(var v=0;v<w.parts.length;v++)w.parts[v](g.parts[v]);for(;v<g.parts.length;v++)w.parts.push(m(g.parts[v],h))}else{var b=[];for(v=0;v<g.parts.length;v++)b.push(m(g.parts[v],h));d[g.id]={id:g.id,refs:1,parts:b}}}}function t(c,h){for(var p=[],g={},w=0;w<c.length;w++){var v=c[w],b=h.base?v[0]+h.base:v[0],_={css:v[1],media:v[2],sourceMap:v[3]};g[b]?g[b].parts.push(_):p.push(g[b]={id:b,parts:[_]})}return p}function o(c,h){var p=$(c.insertInto);if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var g=k[k.length-1];if(c.insertAt==="top")g?g.nextSibling?p.insertBefore(h,g.nextSibling):p.appendChild(h):p.insertBefore(h,p.firstChild),k.push(h);else if(c.insertAt==="bottom")p.appendChild(h);else{if(typeof c.insertAt!="object"||!c.insertAt.before)throw new Error(`[Style Loader]
204
+
205
+ Invalid value for parameter 'insertAt' ('options.insertAt') found.
206
+ Must be 'top', 'bottom', or Object.
207
+ (https://github.com/webpack-contrib/style-loader#insertat)
208
+ `);var w=$(c.insertAt.before,p);p.insertBefore(h,w)}}function r(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c);var h=k.indexOf(c);h>=0&&k.splice(h,1)}function l(c){var h=document.createElement("style");if(c.attrs.type===void 0&&(c.attrs.type="text/css"),c.attrs.nonce===void 0){var p=function(){return u.nc}();p&&(c.attrs.nonce=p)}return f(h,c.attrs),o(c,h),h}function f(c,h){Object.keys(h).forEach(function(p){c.setAttribute(p,h[p])})}function m(c,h){var p,g,w,v;if(h.transform&&c.css){if(!(v=typeof h.transform=="function"?h.transform(c.css):h.transform.default(c.css)))return function(){};c.css=v}if(h.singleton){var b=L++;p=S||(S=l(h)),g=x.bind(null,p,b,!1),w=x.bind(null,p,b,!0)}else c.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(p=function(_){var I=document.createElement("link");return _.attrs.type===void 0&&(_.attrs.type="text/css"),_.attrs.rel="stylesheet",f(I,_.attrs),o(_,I),I}(h),g=function(_,I,E){var A=E.css,O=E.sourceMap,M=I.convertToAbsoluteUrls===void 0&&O;(I.convertToAbsoluteUrls||M)&&(A=T(A)),O&&(A+=`
209
+ /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(O))))+" */");var j=new Blob([A],{type:"text/css"}),R=_.href;_.href=URL.createObjectURL(j),R&&URL.revokeObjectURL(R)}.bind(null,p,h),w=function(){r(p),p.href&&URL.revokeObjectURL(p.href)}):(p=l(h),g=function(_,I){var E=I.css,A=I.media;if(A&&_.setAttribute("media",A),_.styleSheet)_.styleSheet.cssText=E;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(E))}}.bind(null,p),w=function(){r(p)});return g(c),function(_){if(_){if(_.css===c.css&&_.media===c.media&&_.sourceMap===c.sourceMap)return;g(c=_)}else w()}}i.exports=function(c,h){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(h=h||{}).attrs=typeof h.attrs=="object"?h.attrs:{},h.singleton||typeof h.singleton=="boolean"||(h.singleton=C()),h.insertInto||(h.insertInto="head"),h.insertAt||(h.insertAt="bottom");var p=t(c,h);return n(p,h),function(g){for(var w=[],v=0;v<p.length;v++){var b=p[v];(_=d[b.id]).refs--,w.push(_)}for(g&&n(t(g,h),h),v=0;v<w.length;v++){var _;if((_=w[v]).refs===0){for(var I=0;I<_.parts.length;I++)_.parts[I]();delete d[_.id]}}}};var y=function(){var c=[];return function(h,p){return c[h]=p,c.filter(Boolean).join(`
210
+ `)}}();function x(c,h,p,g){var w=p?"":g.css;if(c.styleSheet)c.styleSheet.cssText=y(h,w);else{var v=document.createTextNode(w),b=c.childNodes;b[h]&&c.removeChild(b[h]),b.length?c.insertBefore(v,b[h]):c.appendChild(v)}}},function(i,a){i.exports=function(u){var d=typeof window<"u"&&window.location;if(!d)throw new Error("fixUrls requires window.location");if(!u||typeof u!="string")return u;var C=d.protocol+"//"+d.host,$=C+d.pathname.replace(/\/[^\/]*$/,"/");return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(S,L){var k,T=L.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T)?S:(k=T.indexOf("//")===0?T:T.indexOf("/")===0?C+T:$+T.replace(/^\.\//,""),"url("+JSON.stringify(k)+")")})}},function(i,a,u){u.r(a);var d=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:n.scaleImg,mouseout:n.cancelScale}},[n.imgs?o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+n.x/n.scale+"px,"+n.y/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:n.imgs,alt:"cropper-img"}})])]):n._e(),n._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":n.move&&!n.crop,"cropper-crop":n.crop,"cropper-modal":n.cropping},on:{mousedown:n.startMove,touchstart:n.startMove}}),n._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:n.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:n.cropW+"px",height:n.cropH+"px",transform:"translate3d("+n.cropOffsertX+"px,"+n.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+(n.x-n.cropOffsertX)/n.scale+"px,"+(n.y-n.cropOffsertY)/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"},attrs:{src:n.imgs,alt:"cropper-img"}})]),n._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:n.cropMove,touchstart:n.cropMove}}),n._v(" "),n.info?o("span",{staticClass:"crop-info",style:{top:n.cropInfo.top}},[n._v(n._s(this.cropInfo.width)+" \xD7 "+n._s(this.cropInfo.height))]):n._e(),n._v(" "),n.fixedBox?n._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,2)}}})])])])};d._withStripped=!0;var C={};C.getData=function(n){return new Promise(function(t,o){var r={};(function(l){var f=null;return new Promise(function(m,y){if(l.src)if(/^data\:/i.test(l.src))f=function(h){h=h.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var p=atob(h),g=p.length,w=new ArrayBuffer(g),v=new Uint8Array(w),b=0;b<g;b++)v[b]=p.charCodeAt(b);return w}(l.src),m(f);else if(/^blob\:/i.test(l.src)){var x=new FileReader;x.onload=function(h){f=h.target.result,m(f)},function(h,p){var g=new XMLHttpRequest;g.open("GET",h,!0),g.responseType="blob",g.onload=function(w){this.status!=200&&this.status!==0||p(this.response)},g.send()}(l.src,function(h){x.readAsArrayBuffer(h)})}else{var c=new XMLHttpRequest;c.onload=function(){if(this.status!=200&&this.status!==0)throw"Could not load image";f=c.response,m(f),c=null},c.open("GET",l.src,!0),c.responseType="arraybuffer",c.send(null)}else y("img error")})})(n).then(function(l){r.arrayBuffer=l,r.orientation=function(f){var m,y,x,c,h,p,g,w,v,b=new DataView(f),_=b.byteLength;if(b.getUint8(0)===255&&b.getUint8(1)===216)for(w=2;w<_;){if(b.getUint8(w)===255&&b.getUint8(w+1)===225){p=w;break}w++}if(p&&(y=p+10,function(I,E,A){var O,M="";for(O=E,A+=E;O<A;O++)M+=String.fromCharCode(I.getUint8(O));return M}(b,p+4,4)==="Exif"&&(h=b.getUint16(y),((c=h===18761)||h===19789)&&b.getUint16(y+2,c)===42&&(x=b.getUint32(y+4,c))>=8&&(g=y+x))),g){for(_=b.getUint16(g,c),v=0;v<_;v++)if(w=g+12*v+2,b.getUint16(w,c)===274){w+=8,m=b.getUint16(w,c);break}}return m}(l),t(r)}).catch(function(l){o(l)})})};var $=C,S={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var n={};if(n.top=this.cropOffsertY>21?"-21px":"0px",n.width=this.cropW>0?this.cropW:0,n.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),n.width=n.width*t,n.height=n.height*t,this.full&&(n.width=n.width/this.scale,n.height=n.height/this.scale)}return n.width=n.width.toFixed(0),n.height=n.height.toFixed(0),n},isIE:function(){var n=!!window.ActiveXObject||"ActiveXObject"in window;return n},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(n){n!==""&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(n,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(n){n&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(n){for(var t=navigator.userAgent.split(" "),o="",r=new RegExp(n,"i"),l=0;l<t.length;l++)r.test(t[l])&&(o=t[l]);return o?o.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(n,t,o,r){var l=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var f=this.getVersion("version");f[0]>13&&f[1]>1&&(t=-1)}else{var m=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(m){var y=m[1];((y=y.split("_"))[0]>13||y[0]>=13&&y[1]>=4)&&(t=-1)}}var x=document.createElement("canvas"),c=x.getContext("2d");switch(c.save(),t){case 2:x.width=o,x.height=r,c.translate(o,0),c.scale(-1,1);break;case 3:x.width=o,x.height=r,c.translate(o/2,r/2),c.rotate(180*Math.PI/180),c.translate(-o/2,-r/2);break;case 4:x.width=o,x.height=r,c.translate(0,r),c.scale(1,-1);break;case 5:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:x.width=r,x.height=o,c.translate(r/2,o/2),c.rotate(90*Math.PI/180),c.translate(-o/2,-r/2);break;case 7:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.translate(o,-r),c.scale(-1,1);break;case 8:x.height=o,x.width=r,c.translate(r/2,o/2),c.rotate(-90*Math.PI/180),c.translate(-o/2,-r/2);break;default:x.width=o,x.height=r}c.drawImage(n,0,0,o,r),c.restore(),x.toBlob(function(h){var p=URL.createObjectURL(h);URL.revokeObjectURL(l.imgs),l.imgs=p},"image/"+this.outputType,1)},checkedImg:function(){var n=this;if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(n.img==="")return n.$emit("imgLoad","error"),n.$emit("img-load","error"),!1;var r=t.width,l=t.height;$.getData(t).then(function(f){n.orientation=f.orientation||1;var m=n.maxImgSize;!n.orientation&&r<m&l<m?n.imgs=n.img:(r>m&&(l=l/r*m,r=m),l>m&&(r=r/l*m,l=m),n.checkOrientationImage(t,n.orientation,r,l))})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(t.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var r=URL.createObjectURL(this.response);t.src=r},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else t.src=this.img},startMove:function(n){if(n.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(n.clientX?n.clientX:n.touches[0].clientX)-this.x,this.moveY=(n.clientY?n.clientY:n.touches[0].clientY)-this.y,n.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),n.touches.length==2&&(this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=n.offsetX?n.offsetX:n.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=n.offsetY?n.offsetY:n.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(n){var t=this;n.preventDefault();var o=this.scale,r=this.touches[0].clientX,l=this.touches[0].clientY,f=n.touches[0].clientX,m=n.touches[0].clientY,y=this.touches[1].clientX,x=this.touches[1].clientY,c=n.touches[1].clientX,h=n.touches[1].clientY,p=Math.sqrt(Math.pow(r-y,2)+Math.pow(l-x,2)),g=Math.sqrt(Math.pow(f-c,2)+Math.pow(m-h,2))-p,w=1,v=(w=(w=w/this.trueWidth>w/this.trueHeight?w/this.trueHeight:w/this.trueWidth)>.1?.1:w)*g;if(!this.touchNow){if(this.touchNow=!0,g>0?o+=Math.abs(v):g<0&&o>Math.abs(v)&&(o-=Math.abs(v)),this.touches=n.touches,setTimeout(function(){t.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(n){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(n){var t=this;if(n.preventDefault(),n.touches&&n.touches.length===2)return this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,r,l=n.clientX?n.clientX:n.touches[0].clientX,f=n.clientY?n.clientY:n.touches[0].clientY;o=l-this.moveX,r=f-this.moveY,this.$nextTick(function(){if(t.centerBox){var m,y,x,c,h=t.getImgAxis(o,r,t.scale),p=t.getCropAxis(),g=t.trueHeight*t.scale,w=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(g-w)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(w-g)/2,x=m-g+t.cropW,c=y-w+t.cropH;break;default:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,x=m-w+t.cropW,c=y-g+t.cropH}h.x1>=p.x1&&(o=m),h.y1>=p.y1&&(r=y),h.x2<=p.x2&&(o=x),h.y2<=p.y2&&(r=c)}t.x=o,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})})},leaveImg:function(n){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(n){var t=this;n.preventDefault();var o=this.scale,r=n.deltaY||n.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var l=this.coe,f=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)*r;f<0?o+=Math.abs(f):o>Math.abs(f)&&(o-=Math.abs(f));var m=f<0?"add":"reduce";if(m!==this.coeStatus&&(this.coeStatus=m,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){t.scaling=!1,t.coe=t.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(n){var t=this.scale;n=n||1;var o=20;if((n*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?t+=Math.abs(n):t>Math.abs(n)&&(t-=Math.abs(n)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0;this.$nextTick(function(){var l=o-t.cropX,f=r-t.cropY;if(l>0?(t.cropW=l+t.cropChangeX>t.w?t.w-t.cropChangeX:l,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(l)>t.w?t.cropChangeX:Math.abs(l),t.cropOffsertX=t.cropChangeX+l>0?t.cropChangeX+l:0),t.fixed){var m=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];m+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=l>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=m,t.cropOffsertY=t.cropOffsertY}else f>0?(t.cropH=f+t.cropChangeY>t.h?t.h-t.cropChangeY:f,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(f)>t.h?t.cropChangeY:Math.abs(f),t.cropOffsertY=t.cropChangeY+f>0?t.cropChangeY+f:0)})},changeCropSize:function(n,t,o,r,l){n.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=o,this.changeCropTypeX=r,this.changeCropTypeY=l,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0,l=this.w,f=this.h,m=0,y=0;if(this.centerBox){var x=this.getImgAxis(),c=x.x2,h=x.y2;m=x.x1>0?x.x1:0,y=x.y1>0?x.y1:0,l>c&&(l=c),f>h&&(f=h)}this.$nextTick(function(){var p=o-t.cropX,g=r-t.cropY;if(t.canChangeX&&(t.changeCropTypeX===1?t.cropOldW-p>0?(t.cropW=l-t.cropChangeX-p<=l-m?t.cropOldW-p:t.cropOldW+t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX-p<=l-m?t.cropChangeX+p:m):(t.cropW=Math.abs(p)+t.cropChangeX<=l?Math.abs(p)-t.cropOldW:l-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):t.changeCropTypeX===2&&(t.cropOldW+p>0?(t.cropW=t.cropOldW+p+t.cropOffsertX<=l?t.cropOldW+p:l-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?Math.abs(p+t.cropOldW):t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?t.cropChangeX-Math.abs(p+t.cropOldW):m))),t.canChangeY&&(t.changeCropTypeY===1?t.cropOldH-g>0?(t.cropH=f-t.cropChangeY-g<=f-y?t.cropOldH-g:t.cropOldH+t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY-g<=f-y?t.cropChangeY+g:y):(t.cropH=Math.abs(g)+t.cropChangeY<=f?Math.abs(g)-t.cropOldH:f-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):t.changeCropTypeY===2&&(t.cropOldH+g>0?(t.cropH=t.cropOldH+g+t.cropOffsertY<=f?t.cropOldH+g:f-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?Math.abs(g+t.cropOldH):t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?t.cropChangeY-Math.abs(g+t.cropOldH):y))),t.canChangeX&&t.fixed){var w=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];w+t.cropOffsertY>f?(t.cropH=f-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=w}if(t.canChangeY&&t.fixed){var v=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];v+t.cropOffsertX>l?(t.cropW=l-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=v}})},checkCropLimitSize:function(){this.cropW,this.cropH;var n=this.limitMinSize,t=new Array;return t=Array.isArray[n]?n:[n,n],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(n){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(n){if(n.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(n),!1;if(n.touches&&n.touches.length===2)return this.crop=!1,this.startMove(n),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,o,r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY;t=r-this.cropOffsertX,o=l-this.cropOffsertY,this.cropX=t,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(n,t){var o=this,r=0,l=0;n&&(n.preventDefault(),r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY),this.$nextTick(function(){var f,m,y=r-o.cropX,x=l-o.cropY;if(t&&(y=o.cropOffsertX,x=o.cropOffsertY),f=y<=0?0:y+o.cropW>o.w?o.w-o.cropW:y,m=x<=0?0:x+o.cropH>o.h?o.h-o.cropH:x,o.centerBox){var c=o.getImgAxis();f<=c.x1&&(f=c.x1),f+o.cropW>c.x2&&(f=c.x2-o.cropW),m<=c.y1&&(m=c.y1),m+o.cropH>c.y2&&(m=c.y2-o.cropH)}o.cropOffsertX=f,o.cropOffsertY=m,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})})},getImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r={x1:0,x2:0,y1:0,y2:0},l=this.trueWidth*o,f=this.trueHeight*o;switch(this.rotate){case 0:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:r.x1=n+this.trueWidth*(1-o)/2+(l-f)/2,r.x2=r.x1+this.trueHeight*o,r.y1=t+this.trueHeight*(1-o)/2+(f-l)/2,r.y2=r.y1+this.trueWidth*o;break;default:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o}return r},getCropAxis:function(){var n={x1:0,x2:0,y1:0,y2:0};return n.x1=this.cropOffsertX,n.x2=n.x1+this.cropW,n.y1=this.cropOffsertY,n.y2=n.y1+this.cropH,n},leaveCrop:function(n){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(n){var t=this,o=document.createElement("canvas"),r=new Image,l=this.rotate,f=this.trueWidth,m=this.trueHeight,y=this.cropOffsertX,x=this.cropOffsertY;function c(h,p){o.width=Math.round(h),o.height=Math.round(p)}r.onload=function(){if(t.cropW!==0){var h=o.getContext("2d"),p=1;t.high&!t.full&&(p=window.devicePixelRatio),t.enlarge!==1&!t.full&&(p=Math.abs(Number(t.enlarge)));var g=t.cropW*p,w=t.cropH*p,v=f*t.scale*p,b=m*t.scale*p,_=(t.x-y+t.trueWidth*(1-t.scale)/2)*p,I=(t.y-x+t.trueHeight*(1-t.scale)/2)*p;switch(c(g,w),h.save(),l){case 0:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,I/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,I,v,b);break;case 1:case-3:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,I=I/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,I,-_-b/t.scale,v/t.scale,b/t.scale)):(_+=(v-b)/2,I+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,I,-_-b,v,b));break;case 2:case-2:t.full?(c(g/t.scale,w/t.scale),h.rotate(90*l*Math.PI/180),_/=t.scale,I/=t.scale,h.drawImage(r,-_-v/t.scale,-I-b/t.scale,v/t.scale,b/t.scale)):(h.rotate(90*l*Math.PI/180),h.drawImage(r,-_-v,-I-b,v,b));break;case 3:case-1:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,I=I/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-I-v/t.scale,_,v/t.scale,b/t.scale)):(_+=(v-b)/2,I+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-I-v,_,v,b));break;default:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,I/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,I,v,b)}h.restore()}else{var E=f*t.scale,A=m*t.scale,O=o.getContext("2d");switch(O.save(),l){case 0:c(E,A),O.drawImage(r,0,0,E,A);break;case 1:case-3:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,0,-A,E,A);break;case 2:case-2:c(E,A),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,-A,E,A);break;case 3:case-1:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,0,E,A);break;default:c(E,A),O.drawImage(r,0,0,E,A)}O.restore()}n(o)},this.img.substr(0,4)!=="data"&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(n){var t=this;this.getCropChecked(function(o){n(o.toDataURL("image/"+t.outputType,t.outputSize))})},getCropBlob:function(n){var t=this;this.getCropChecked(function(o){o.toBlob(function(r){return n(r)},"image/"+t.outputType,t.outputSize)})},showPreview:function(){var n=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){n.isCanShow=!0},16);var t=this.cropW,o=this.cropH,r=this.scale,l={};l.div={width:"".concat(t,"px"),height:"".concat(o,"px")};var f=(this.x-this.cropOffsertX)/r,m=(this.y-this.cropOffsertY)/r;l.w=t,l.h=o,l.url=this.imgs,l.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},l.html=`
211
+ <div class="show-preview" style="width: `.concat(l.w,"px; height: ").concat(l.h,`px,; overflow: hidden">
212
+ <div style="width: `).concat(t,"px; height: ").concat(o,`px">
213
+ <img src=`).concat(l.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,`px; transform:
214
+ scale(`).concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,`deg)">
215
+ </div>
216
+ </div>`),this.$emit("realTime",l),this.$emit("real-time",l)},reload:function(){var n=this,t=new Image;t.onload=function(){n.w=parseFloat(window.getComputedStyle(n.$refs.cropper).width),n.h=parseFloat(window.getComputedStyle(n.$refs.cropper).height),n.trueWidth=t.width,n.trueHeight=t.height,n.original?n.scale=1:n.scale=n.checkedMode(),n.$nextTick(function(){n.x=-(n.trueWidth-n.trueWidth*n.scale)/2+(n.w-n.trueWidth*n.scale)/2,n.y=-(n.trueHeight-n.trueHeight*n.scale)/2+(n.h-n.trueHeight*n.scale)/2,n.loading=!1,n.autoCrop&&n.goAutoCrop(),n.$emit("img-load","success"),n.$emit("imgLoad","success"),setTimeout(function(){n.showPreview()},20)})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var n=1,t=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(n=this.w/this.trueWidth),this.trueHeight*n>this.h&&(n=this.h/this.trueHeight);break;case"cover":(t*=n=this.w/this.trueWidth)<this.h&&(n=(t=this.h)/this.trueHeight);break;default:try{var r=o[0];if(r.search("px")!==-1&&(r=r.replace("px",""),n=parseFloat(r)/this.trueWidth),r.search("%")!==-1&&(r=r.replace("%",""),n=parseFloat(r)/100*this.w/this.trueWidth),o.length===2&&r==="auto"){var l=o[1];l.search("px")!==-1&&(l=l.replace("px",""),n=(t=parseFloat(l))/this.trueHeight),l.search("%")!==-1&&(l=l.replace("%",""),n=(t=parseFloat(l)/100*this.h)/this.trueHeight)}}catch{n=1}}return n},goAutoCrop:function(n,t){if(this.imgs!==""&&this.imgs!==null){this.clearCrop(),this.cropping=!0;var o=this.w,r=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;o=l<o?l:o,r=f<r?f:r}var m=n||parseFloat(this.autoCropWidth),y=t||parseFloat(this.autoCropHeight);m!==0&&y!==0||(m=.8*o,y=.8*r),m=m>o?o:m,y=y>r?r:y,this.fixed&&(y=m/this.fixedNumber[0]*this.fixedNumber[1]),y>this.h&&(m=(y=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,y)}},changeCrop:function(n,t){var o=this;if(this.centerBox){var r=this.getImgAxis();n>r.x2-r.x1&&(t=(n=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(n=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){o.cropOffsertX=(o.w-o.cropW)/2,o.cropOffsertY=(o.h-o.cropH)/2,o.centerBox&&o.moveCrop(null,!0)})},refresh:function(){var n=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){n.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r=!0;if(this.centerBox){var l=this.getImgAxis(n,t,o),f=this.getCropAxis();l.x1>=f.x1&&(r=!1),l.x2<=f.x2&&(r=!1),l.y1>=f.y1&&(r=!1),l.y2<=f.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";var n=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(o,r,l){for(var f=atob(this.toDataURL(r,l).split(",")[1]),m=f.length,y=new Uint8Array(m),x=0;x<m;x++)y[x]=f.charCodeAt(x);o(new Blob([y],{type:n.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};u(1);var L=function(n,t,o,r,l,f,m,y){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),r&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(g=__VUE_SSR_CONTEXT__),l&&l.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(m)},c._ssrRegister=x):l&&(x=y?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var h=c.render;c.render=function(g,w){return x.call(w),h(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(S,d,[],!1,null,"6dae58fd",null);L.options.__file="src/vue-cropper.vue";var k=L.exports;u.d(a,"VueCropper",function(){return k});var T=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&T(window.Vue),a.default={version:"0.5.5",install:T,VueCropper:k,vueCropper:k}}])})})(U);const ve={data(){return{width:"800px",visible:!1,id:null,confirmLoading:!1,fileList:[],uploading:!1,options:{img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{},fullscreen:!1}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}}},components:{VueCropper:U.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(s){this.fullscreen=!1,this.visible=!0,this.id=s},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(s){s=s||1,this.$refs.cropper.changeScale(s)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(s){this.fileList=s;const e=new FileReader;return e.readAsDataURL(s),e.onload=()=>{this.options.img=e.result},!1},finish(s){s==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const i=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",i),z.sysFileInfoUploadAvatar(a).then(u=>{u.success?this.updateAvatar(u.data):(this.uploading=!1,this.$message.error(u.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(s){const e={id:this.id,avatar:s};W.sysUserUpdateAvatar(e).then(i=>{this.uploading=!1,i.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.$emit("ok",s)}).catch(i=>{this.$emit("ok",s)})},realTime(s){this.previews=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var we=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.cancelHandel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[i("el-row",[i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("div",{staticClass:"avatar-upload-preview"},[i("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),i("br"),i("el-row",[i("el-col",{attrs:{lg:3,md:3}},[i("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[i("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),i("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[i("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),i("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[i("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},Ce=[],xe=H.normalizeComponent(ve,we,Ce,!1,null,"1fe51f00",null,null);const be=xe.exports,ye=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"}));const _e={props:{isShow:{type:Boolean,default(){return!1}}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],confirmLoading:!1,visible:!1,userId:"",width:"600px",min:0,messageTip:"",messageTipErr:"",lenMax:0,lenMin:0,maskValue:"",pattern:null,fullscreen:!1,disabled:!0,code:"",num:0,ruleForm:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}},title(){return this.num==1?this.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"):this.$i18nt("gd.account.userBinding","\u7528\u6237\u7ED1\u5B9A")},...H.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s,e,i){this.fullscreen=!1,this.userId=s,this.code=e,this.num=i,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(s){W.getPasswordRules().then(e=>{this.min=parseInt(e.data.lengthrule.value),this.lenMin=parseInt(e.data.lengthrule.value),this.messageTip=e.data.lengthrule.remark,this.maskValue=e.data.combinationrule.value,this.lenMax=16,this.maskValue.includes("AL")&&this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp(`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`):this.maskValue.includes("AL")&&this.maskValue.includes("NU")?this.pattern=new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("AL")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))"):this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])"):this.maskValue.includes("AL")?this.pattern=new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("NU")?this.pattern=new RegExp("\\d"):this.maskValue.includes("SC")&&(this.pattern=new RegExp("[^a-zA-Z0-9]")),this.messageTipErr=e.data.combinationrule.remark})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){this.confirmLoading=!0;let e;this.num==1?e={accountName:this.userId,passWord:this.ruleForm.password,newPassword:this.ruleForm.newPassword}:e={account:this.ruleForm.account,password:this.ruleForm.password,corpCode:this.code},(this.num==1?W.updatePwdByAccount:W.BindWechatWorkAccountByCode)(e).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message)}).finally(a=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},compareToFirstPassword(s,e,i){e&&e!==this.ruleForm.newPassword?i(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):i()},oldtPassword(s,e,i){e&&e===this.ruleForm.password?i(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):i()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var $e=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.newPaw","\u65B0\u5BC6\u7801"),prop:"newPassword",rules:[{required:!0,min:e.min,message:e.messageTip},{pattern:e.pattern,message:e.messageTipErr},{validator:e.oldtPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.repeatPaw","\u91CD\u590D\u65B0\u5BC6\u7801"),prop:"confirm",rules:[{required:!0,message:e.$i18nt("gd.account.repeatPawTip","\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801")},{validator:e.compareToFirstPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.loginID","\u8D26\u53F7"),prop:"account",rules:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},Se=[],Ie=H.normalizeComponent(_e,$e,Se,!1,null,"1d4e1c11",null,null);const D=Ie.exports,ke=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));const Le={props:{isClear:{type:Number,default:1}},components:{UpdPwd:D},data(){return{visible:!1,qrCodeUrl:"//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",code:"",logTitle:"",num:1,wwLogin:null,confirmLoading:!1,isInitialize:null,pwdExpiration:"",setDate:void 0,currentTime:void 0,diff:void 0,diffDate:void 0,state:"",isWeComLogin:!1,wxUserId:null,appId:"",agentId:"",redirectURL:"",titleWidth:"504px",num1:0}},computed:{style(){return{"--color":this.primaryColor}},titleTip(){return this.num==1?$i18nt("gd.account.loading"):""},...H.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(s,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(s)},getWeChat(s){let e=this;s.data.forEach((i,a)=>{i.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=i.value)}),setTimeout(()=>{e.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:e.appId,agentid:e.agentId,redirect_uri:e.redirectURL,state:"loginState",redirect_type:"callback",panel_size:e.language=="zh_CN"?"small":"middle",lang:e.language=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:i}){e.isWeComLogin=i,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:i}){e.code=i,e.$refs.updPwd.open(e.userInfo.account,i,2),e.visible=!1},onLoginFail(i){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var Te=function(){var e=this,i=e._self._c;return i("div",[i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("div",{staticClass:"main",style:e.style},[e.num==1?i("div",[i("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),i("div",{class:e.num1==0?"div_top":"div_topno"}),i("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),i("upd-pwd",{ref:"updPwd"})],1)},Ae=[],Ee=H.normalizeComponent(Le,Te,Ae,!1,null,"55ede8aa",null,null);const Oe=Ee.exports,He=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=P;exports.GDpackage$1=X;exports.GDpackage$2=Y;exports.GDpackage$3=F;