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,2093 @@
1
+ import { m as W, n as H } from "./components.chartbi.470b96af.mjs";
2
+ import j from "vue";
3
+ import { s as V, a as G, g as q, b as Z, c as J, d as K, u as Q, B as ee } from "./http.usermanage.f5491144.mjs";
4
+ import { a as B, c as te } from "./http.filemanage.c0de21d6.mjs";
5
+ import { s as ie } from "./http.languagemanage.2ef16159.mjs";
6
+ import { s as ne } from "./http.currencymanage.c25bd2e6.mjs";
7
+ import { s as re } from "./http.timezonemanage.b9deffe3.mjs";
8
+ import { c as z } from "./components.settingdrawer.adc262cf.mjs";
9
+ import { b as oe } from "./http.appmanage.9b22ff82.mjs";
10
+ import { g as se, d as ae } from "./http.menumanage.09fffb7d.mjs";
11
+ import { e as ce } from "./http.loginmanage.05500c29.mjs";
12
+ const le = {
13
+ props: {
14
+ keepAlive: {
15
+ type: Boolean,
16
+ default: !0
17
+ },
18
+ height: {
19
+ type: Number,
20
+ default: 0
21
+ }
22
+ },
23
+ name: "GdAccountSettings",
24
+ data() {
25
+ return {
26
+ mode: "inline",
27
+ openKeys: [],
28
+ selectedKeys: [],
29
+ activeIndex: "/account/settings/base",
30
+ preview: {},
31
+ option: {
32
+ img: "/avatar2.jpg",
33
+ info: !0,
34
+ size: 1,
35
+ outputType: "jpeg",
36
+ canScale: !1,
37
+ autoCrop: !0,
38
+ autoCropWidth: 180,
39
+ autoCropHeight: 180,
40
+ fixedBox: !0,
41
+ fixed: !0,
42
+ fixedNumber: [1, 1]
43
+ },
44
+ pageTitle: ""
45
+ };
46
+ },
47
+ components: {},
48
+ computed: {
49
+ fadeColord() {
50
+ return this.fadeColor(this.primaryColor, 0.1);
51
+ },
52
+ style() {
53
+ return this.crumbsState ? "margin:0 4px 4px;height: 100%;" : "margin: 4px;height: 100%;";
54
+ },
55
+ getHeight() {
56
+ return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
57
+ },
58
+ getTitle() {
59
+ let s = "", e = this.$route.meta.title;
60
+ 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);
61
+ },
62
+ ...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
63
+ },
64
+ mounted() {
65
+ this.updateMenu();
66
+ },
67
+ methods: {
68
+ onOpenChange(s, e) {
69
+ this.openKeys = openKeys;
70
+ },
71
+ updateMenu() {
72
+ const s = this.$route.matched.concat();
73
+ this.activeIndex = s.pop().path;
74
+ },
75
+ clickWx(s, e) {
76
+ const n = this.$route.matched.concat();
77
+ this.activeIndex = n.pop().path;
78
+ },
79
+ fadeColor(s, e) {
80
+ let n = parseInt(s.substring(1, 3), 16), a = parseInt(s.substring(3, 5), 16), u = parseInt(s.substring(5, 7), 16);
81
+ return `rgba(${n},${a},${u},${e})`;
82
+ }
83
+ },
84
+ watch: {
85
+ $route(s) {
86
+ this.updateMenu();
87
+ }
88
+ }
89
+ };
90
+ var he = function() {
91
+ var e = this, n = e._self._c;
92
+ return n("div", { staticClass: "page-header-index-wide", style: e.style }, [n("el-card", { style: e.getHeight, attrs: { bordered: !1, bodyStyle: { padding: "16px 0", height: e.getHeight + "px" } } }, [n("div", { staticClass: "account-settings-info-main" }, [n("div", { staticClass: "account-settings-info-left", style: { "--dilute": e.fadeColord } }, [n("el-menu", { staticClass: "el-menu-vertical-demo", attrs: { router: "", "default-active": e.$route.path, mode: "vertical" }, on: { select: e.clickWx } }, [n("el-menu-item", { attrs: { index: "/account/settings/base" } }, [e._v(e._s(e.$i18nt("gd.account.basicSettings")))]), n("el-menu-item", { attrs: { index: "/account/settings/security" } }, [e._v(e._s(e.$i18nt("gd.account.securitySetting")))]), n("el-menu-item", { attrs: { index: "/account/settings/custom" } }, [e._v(e._s(e.$i18nt("gd.account.personalization")))])], 1)], 1), n("div", { staticClass: "account-settings-info-right" }, [n("div", { staticClass: "account-settings-info-title" }, [n("span", [e._v(e._s(e.getTitle))])]), e.multiTab ? n("keep-alive", [n("router-view", { key: e.$route.fullPath })], 1) : n("router-view", { key: e.$route.fullPath })], 1)])])], 1);
93
+ }, ue = [], de = /* @__PURE__ */ H(
94
+ le,
95
+ he,
96
+ ue,
97
+ !1,
98
+ null,
99
+ "0ab9cb32",
100
+ null,
101
+ null
102
+ );
103
+ const P = de.exports;
104
+ P.install = function(s) {
105
+ s.component(P.name, P);
106
+ };
107
+ const pe = {
108
+ props: {
109
+ height: {
110
+ type: Number,
111
+ default: 100
112
+ }
113
+ },
114
+ name: "GdBaseSettings",
115
+ components: {
116
+ AvatarModal: () => Promise.resolve().then(() => Ae)
117
+ },
118
+ data() {
119
+ return {
120
+ preview: {},
121
+ sexData: [],
122
+ langData: [],
123
+ timezoneData: [],
124
+ currencyData: [],
125
+ option: {
126
+ img: null,
127
+ info: !0,
128
+ size: 1,
129
+ outputType: "jpeg",
130
+ canScale: !1,
131
+ autoCrop: !0,
132
+ autoCropWidth: 180,
133
+ autoCropHeight: 180,
134
+ fixedBox: !0,
135
+ fixed: !0,
136
+ fixedNumber: [1, 1],
137
+ birthdayString: ""
138
+ },
139
+ spinning: !1,
140
+ ruleForm: {},
141
+ rules: {}
142
+ };
143
+ },
144
+ computed: {
145
+ getHeight() {
146
+ return this.height;
147
+ },
148
+ ...W(["userInfo", "locale", "language"])
149
+ },
150
+ mounted() {
151
+ this.initUserInfo();
152
+ },
153
+ methods: {
154
+ changeLanguage(s) {
155
+ let e = this.langData.filter((n) => n.id == s)[0];
156
+ this.$store.dispatch("Language", e.code);
157
+ },
158
+ initUserInfo() {
159
+ this.spinning = !0, setTimeout(() => {
160
+ this.languageChange(), this.timezoneChange(), this.currencyChange(), this.ruleForm = {
161
+ birthday: this.userInfo.birthday ? this.userInfo.birthday : void 0,
162
+ nickName: this.userInfo.nickname,
163
+ gender: this.userInfo.gender.toString(),
164
+ email: this.userInfo.email,
165
+ phone: this.userInfo.phone,
166
+ tel: this.userInfo.tel,
167
+ languageId: this.userInfo.languageid,
168
+ currencyId: this.userInfo.currencyid,
169
+ timezoneId: this.userInfo.timezoneid
170
+ }, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? B({
171
+ id: this.userInfo.avatar
172
+ }).then((s) => {
173
+ this.option.img = window.URL.createObjectURL(new Blob([s]));
174
+ }).catch((s) => {
175
+ this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + s.message);
176
+ }) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
177
+ }, 100);
178
+ },
179
+ onChange(s, e) {
180
+ console.log(s), this.birthdayString = s;
181
+ },
182
+ currencyChange() {
183
+ ne().then((s) => {
184
+ s.success && (this.currencyData = s.data.rows, j.ls.set("currencyData", s.data.rows));
185
+ });
186
+ },
187
+ timezoneChange() {
188
+ re().then((s) => {
189
+ s.success && (this.timezoneData = s.data.rows);
190
+ });
191
+ },
192
+ languageChange() {
193
+ ie().then((s) => {
194
+ s.success && (this.langData = s.data.rows);
195
+ });
196
+ },
197
+ submitUserInfo() {
198
+ this.spinning || this.$refs.ruleForm.validate((s) => {
199
+ s && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, V(this.ruleForm).then((e) => {
200
+ if (e.success) {
201
+ let n = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
202
+ this.$store.dispatch("Language", n.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
203
+ this.$store.dispatch("GetInfo").then(() => {
204
+ });
205
+ }, 500);
206
+ } else
207
+ this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
208
+ this.spinning = !1;
209
+ }));
210
+ });
211
+ },
212
+ getSexData() {
213
+ this.sexData = this.$options.filters.dictData("gender");
214
+ },
215
+ setavatar(s) {
216
+ B({
217
+ id: s
218
+ }).then((e) => {
219
+ this.option.img = window.URL.createObjectURL(new Blob([e]));
220
+ }).catch((e) => {
221
+ this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
222
+ }), this.$store.dispatch("GetInfo").then(() => {
223
+ });
224
+ }
225
+ }
226
+ };
227
+ var fe = function() {
228
+ var e = this, n = e._self._c;
229
+ return n("div", { staticClass: "account-settings-info-view", staticStyle: { height: "100px" } }, [n("el-row", { attrs: { gutter: 16 } }, [n("el-col", { attrs: { md: 24, lg: 16 } }, [n("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": "top" }, nativeOn: { submit: function(a) {
230
+ a.preventDefault();
231
+ } } }, [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.nickname", "\u6635\u79F0"), prop: "nickName" } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.nickName, callback: function(a) {
232
+ e.$set(e.ruleForm, "nickName", a);
233
+ }, expression: "ruleForm.nickName" } })], 1), n("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") }] } }, [n("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) {
234
+ e.$set(e.ruleForm, "birthday", a);
235
+ }, expression: "ruleForm.birthday" } })], 1), n("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") }] } }, [n("el-radio-group", { model: { value: e.ruleForm.gender, callback: function(a) {
236
+ e.$set(e.ruleForm, "gender", a);
237
+ }, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, u) {
238
+ return n("el-radio", { key: u, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
239
+ }), 1)], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
240
+ { required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
241
+ {
242
+ pattern: /^1[3-9]\d{9}$/,
243
+ message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
244
+ trigger: "blur"
245
+ }
246
+ ] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
247
+ e.$set(e.ruleForm, "phone", a);
248
+ }, expression: "ruleForm.phone" } })], 1), n("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.tel, callback: function(a) {
249
+ e.$set(e.ruleForm, "tel", a);
250
+ }, expression: "ruleForm.tel" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
251
+ { required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
252
+ { type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
253
+ ] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
254
+ e.$set(e.ruleForm, "email", a);
255
+ }, expression: "ruleForm.email" } })], 1), n("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") }] } }, [n("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) {
256
+ e.$set(e.ruleForm, "languageId", a);
257
+ }, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, u) {
258
+ return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
259
+ }), 1)], 1), n("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") }] } }, [n("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.currencyId, callback: function(a) {
260
+ e.$set(e.ruleForm, "currencyId", a);
261
+ }, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, u) {
262
+ return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
263
+ }), 1)], 1), n("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") }] } }, [n("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.timezoneId, callback: function(a) {
264
+ e.$set(e.ruleForm, "timezoneId", a);
265
+ }, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, u) {
266
+ return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
267
+ }), 1)], 1), n("el-form-item", [n("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), n("el-col", { style: { minHeight: "180px" }, attrs: { md: 24, lg: 8 } }, [n("div", { staticClass: "ant-upload-preview", on: { click: function(a) {
268
+ return e.$refs.modal.edit(e.userInfo.id);
269
+ } } }, [n("i", { staticClass: "el-icon-upload upload-icon" }), n("div", { staticClass: "mask" }, [n("i", { staticClass: "el-icon-plus" })]), n("img", { attrs: { src: e.option.img } })])])], 1), n("avatar-modal", { ref: "modal", on: { ok: e.setavatar } })], 1);
270
+ }, ge = [], me = /* @__PURE__ */ H(
271
+ pe,
272
+ fe,
273
+ ge,
274
+ !1,
275
+ null,
276
+ "981e4d97",
277
+ null,
278
+ null
279
+ );
280
+ const X = me.exports;
281
+ X.install = function(s) {
282
+ s.component(X.name, X);
283
+ };
284
+ const ve = {
285
+ name: "GdCustomSettings",
286
+ data() {
287
+ return {
288
+ colorList: z,
289
+ options: [],
290
+ homePage: ["uvgsxjpu", "ujhmcamph", "uwcscihbx"],
291
+ account: "",
292
+ echartsList: [],
293
+ value: 0,
294
+ primaryColors: this.primaryColor,
295
+ propOptions: [],
296
+ propOptionsOld: [],
297
+ list: null,
298
+ listOptions: [],
299
+ listOptionsOld: [],
300
+ presentText: []
301
+ };
302
+ },
303
+ computed: {
304
+ predefine() {
305
+ let s = [];
306
+ return z.forEach((e) => {
307
+ s.push(e.color);
308
+ }), s;
309
+ },
310
+ ...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
311
+ },
312
+ watch: {
313
+ primaryColor() {
314
+ this.primaryColors = this.primaryColor;
315
+ }
316
+ },
317
+ methods: {
318
+ okColor(s) {
319
+ this.$store.dispatch("EchartsColor", s), this.echartsList = [...s];
320
+ },
321
+ getColor() {
322
+ this.echartsList = [...this.echartsColor];
323
+ },
324
+ renew() {
325
+ let s = this, e = this.homePage, n = !1;
326
+ if (e.length == 0 && (n = !0), e.length > 1 && (n = !0), !n) {
327
+ s.$message.error(s.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
328
+ return;
329
+ }
330
+ this.$confirm(
331
+ this.$i18nt("gd.https.configThemeContent", "\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),
332
+ this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
333
+ {
334
+ confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u5B9A\u4FDD\u5B58"),
335
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
336
+ showClose: !1,
337
+ confirmButtonLoading: !1,
338
+ cancelButtonLoading: !1,
339
+ closeOnClickModal: !1,
340
+ type: "warning",
341
+ confirmButtonClass: "el-button--danger",
342
+ customClass: "custom-alert",
343
+ callback: () => {
344
+ },
345
+ beforeClose: (a, u, d) => {
346
+ this.renewHand(a, u, d, this.homePage);
347
+ }
348
+ }
349
+ );
350
+ },
351
+ renewHand(s, e, n, a) {
352
+ if (s !== "confirm") {
353
+ n();
354
+ return;
355
+ }
356
+ let u = [], d = G({
357
+ configTheme: a.join(",")
358
+ }).then((x) => x);
359
+ u.push(d), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(u).then((x) => {
360
+ n(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
361
+ const $ = x.filter((S) => !S.success);
362
+ $.length === 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$store.dispatch("GetInfo").then(() => {
363
+ })) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
364
+ });
365
+ },
366
+ init() {
367
+ this.value = this.theme == "dark" ? 1 : 0, this.homePage = this.userInfo.configtheme ? this.userInfo.configtheme.split(",") : [], this.systemInfo.id ? this.systemInfo : window.$systemInfo;
368
+ },
369
+ lazyLoad(s, e) {
370
+ const { level: n, value: a } = s;
371
+ if (this.options.length === 0) {
372
+ this.geData().then(() => {
373
+ if (this.presentText.length < this.homePage.length) {
374
+ const u = this.options.filter((d) => d.code === this.homePage[0])[0];
375
+ this.presentText = u ? this.presentText.concat([u.label]) : this.presentText;
376
+ }
377
+ e(this.options);
378
+ });
379
+ return;
380
+ }
381
+ this.getMenuListAll(a).then((u) => {
382
+ if (this.presentText.length < this.homePage.length && n === 2) {
383
+ this.presentText = this.presentText.concat([s.label]);
384
+ const x = s.children.filter(($) => $.value === this.homePage[n])[0];
385
+ this.presentText = x ? this.presentText.concat([x.label]) : this.presentText;
386
+ }
387
+ const d = this.$refs.cascader.presentText;
388
+ this.presentText.length === this.homePage.length && d === null && (this.$refs.cascader.presentText = this.presentText.join(" / ")), e(u);
389
+ });
390
+ },
391
+ geData() {
392
+ return oe({}).then((s) => {
393
+ if (s.success) {
394
+ let e = s.data.map((n) => {
395
+ let a = this.userInfo.apps.filter((u) => u.code == n.code)[0];
396
+ if (a != null)
397
+ return n.leaf = a == null, n.value = n.code, n.label = this.$i18nt(`Dynamics.${n.transkey}`, n.name), n.loading = !1, n;
398
+ });
399
+ return e = e.filter((n) => n !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((n) => {
400
+ n();
401
+ });
402
+ }
403
+ });
404
+ },
405
+ getMenuListAll(s) {
406
+ return Promise.all([this.getMenuList({ application: s }), this.sysMenuChange({ application: s })]).then((e) => {
407
+ let n = e[0].data, a = e[1].data;
408
+ return n.map((u, d) => {
409
+ let x = a.filter(($) => $.path == u.router);
410
+ return n[d].value = u.router, n[d].label = this.$i18nt(`Dynamics.${u.transkey}`, u.name), n[d].leaf = u.children.length == 0, n[d].disabled = x.length == 0, u.children.length == 0 ? n[d].children = null : u.children.map(($, S) => {
411
+ let L = a.filter((k) => k.path == $.router);
412
+ n[d].children[S].value = $.router, n[d].children[S].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), n[d].children[S].children = [], n[d].children[S].leaf = !0, n[d].children[S].disabled = L.length == 0;
413
+ }), u;
414
+ }), n.map((u) => {
415
+ u.children = u.children ? u.children.filter((d) => d.disabled == !1) : [];
416
+ }), n;
417
+ });
418
+ },
419
+ getMenuList(s) {
420
+ return se(s).then((e) => e);
421
+ },
422
+ sysMenuChange(s) {
423
+ return ae(s).then((e) => e);
424
+ },
425
+ onChangeCascader(s) {
426
+ const e = this.$refs.cascader.presentText;
427
+ this.presentText = e !== null ? e.split(" / ") : [];
428
+ },
429
+ onChange(s) {
430
+ s ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
431
+ },
432
+ async changeColor(s) {
433
+ const e = this, n = this.primaryColor;
434
+ if (typeof s != "string")
435
+ return;
436
+ const a = this.$message({
437
+ message: e.$i18nt("gd.theme.switchingTopics"),
438
+ duration: 0,
439
+ iconClass: "el-icon-loading"
440
+ }), u = this.getThemeCluster(s.replace("#", "")), d = this.getThemeCluster(n.replace("#", "")), x = (L, k) => () => {
441
+ const T = this.getThemeCluster(this.primaryColor.replace("#", "")), i = this.updateStyle(this[L], T, u);
442
+ let t = document.getElementById(k);
443
+ t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = i;
444
+ };
445
+ this.chalk || await import("./element-theme-chalk.fbb1a631.mjs").then((L) => {
446
+ this.chalk = L.default;
447
+ }), x("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((L) => {
448
+ const k = L.innerText;
449
+ return new RegExp(n, "i").test(k) && !/Chalk Variables/.test(k);
450
+ }).forEach((L) => {
451
+ const { innerText: k } = L;
452
+ typeof k == "string" && (L.innerText = this.updateStyle(k, d, u));
453
+ }), this.$store.dispatch("ToggleColor", s), window.document.body.style = `--color:${s}`, this.$nextTick(() => {
454
+ setTimeout(() => {
455
+ a.close();
456
+ }, 200);
457
+ });
458
+ },
459
+ updateStyle(s, e, n) {
460
+ let a = s;
461
+ return e.forEach((u, d) => {
462
+ a = a.replace(new RegExp(u, "ig"), n[d]);
463
+ }), a;
464
+ },
465
+ getThemeCluster(s) {
466
+ const e = (u, d) => {
467
+ let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), S = parseInt(u.slice(4, 6), 16);
468
+ return d === 0 ? [x, $, S].join(",") : (x += Math.round(d * (255 - x)), $ += Math.round(d * (255 - $)), S += Math.round(d * (255 - S)), x = x.toString(16), $ = $.toString(16), S = S.toString(16), `#${x}${$}${S}`);
469
+ }, n = (u, d) => {
470
+ let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), S = parseInt(u.slice(4, 6), 16);
471
+ return x = Math.round((1 - d) * x), $ = Math.round((1 - d) * $), S = Math.round((1 - d) * S), x = x.toString(16), $ = $.toString(16), S = S.toString(16), `#${x}${$}${S}`;
472
+ }, a = [s];
473
+ for (let u = 0; u <= 9; u++)
474
+ a.push(e(s, Number((u / 10).toFixed(2))));
475
+ return a.push(n(s, 0.1)), a;
476
+ },
477
+ traverse(s, e) {
478
+ let n = null;
479
+ const a = (u) => (u = u.filter((d, x) => (d.children && d.children.length > 0 && a(d.children), d.value == s && (n = {
480
+ ...d
481
+ }), !0)), u);
482
+ return a(this.propOptions), n;
483
+ }
484
+ },
485
+ mounted() {
486
+ this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
487
+ }
488
+ };
489
+ var we = function() {
490
+ var e = this, n = e._self._c;
491
+ return n("div", { staticStyle: { "padding-top": "12px" } }, [n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.overallStyle", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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) {
492
+ e.value = a;
493
+ }, expression: "value" } })], 1)])], 1), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.theme", "\u4E3B\u9898\u8272")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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) {
494
+ e.primaryColors = a;
495
+ }, expression: "primaryColors" } })], 1)])], 1), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u8272")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-flex" }, [e._l(e.echartsList, function(a, u) {
496
+ return [n("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 } }, [n("el-tag", { attrs: { color: a === 0 ? e.primaryColor : a } })], 1)];
497
+ }), n("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(a) {
498
+ return e.$refs.echartsTheme.open();
499
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)])], 1), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", [e._v(e._s(e.$i18nt("gd.settings.homepage", "\u4E2A\u4EBA\u9996\u9875")))])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-flex" }, [n("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) {
500
+ e.homePage = a;
501
+ }, expression: "homePage" } }), n("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), n("el-divider"), n("gd-color-editor", { ref: "echartsTheme", on: { ok: e.okColor } })], 1);
502
+ }, xe = [], Ce = /* @__PURE__ */ H(
503
+ ve,
504
+ we,
505
+ xe,
506
+ !1,
507
+ null,
508
+ "b784faab",
509
+ null,
510
+ null
511
+ );
512
+ const F = Ce.exports;
513
+ F.install = function(s) {
514
+ s.component(F.name, F);
515
+ };
516
+ const be = {
517
+ name: "GdSecuritySettings",
518
+ components: {
519
+ UpdPwd: () => Promise.resolve().then(() => Me),
520
+ weChatBind: () => Promise.resolve().then(() => Be)
521
+ },
522
+ data() {
523
+ return {
524
+ isShow: !1,
525
+ num: 0,
526
+ wxUserId: null,
527
+ obj: {},
528
+ appId: "",
529
+ agentId: "",
530
+ redirectURL: "",
531
+ enterpriseNum: 0,
532
+ bindTitle: "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",
533
+ dicsTitle: ""
534
+ };
535
+ },
536
+ watch: {
537
+ language(s, e) {
538
+ this.changeLanguage();
539
+ },
540
+ userInfo(s, e) {
541
+ this.changUserInfo();
542
+ }
543
+ },
544
+ mounted() {
545
+ this.init();
546
+ },
547
+ computed: {
548
+ ...W(["userInfo", "language"])
549
+ },
550
+ methods: {
551
+ updPwd() {
552
+ this.$refs.updPwd.open(this.userInfo.account, null, 1);
553
+ },
554
+ bind() {
555
+ this.$refs.weChatBind.open(this.obj, 1);
556
+ },
557
+ getConfigInfo() {
558
+ q({
559
+ code: "GDS_ENTERPRISE_WECHAT_LOGIN"
560
+ }).then((e) => {
561
+ this.enterpriseNum = e.data.value;
562
+ });
563
+ },
564
+ getConfigsBy() {
565
+ Z({
566
+ strCodes: "GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"
567
+ }).then((e) => {
568
+ e.success && (this.obj = e);
569
+ });
570
+ },
571
+ getData() {
572
+ ce().then((s) => {
573
+ this.wxuserid = s.data.wxuserid;
574
+ });
575
+ },
576
+ changeLanguage() {
577
+ this.init();
578
+ },
579
+ changUserInfo() {
580
+ this.init();
581
+ },
582
+ init() {
583
+ this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
584
+ },
585
+ getWeChat(s, e) {
586
+ let n = this;
587
+ s.data.forEach((a, u) => {
588
+ a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (n.appId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (n.agentId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (n.redirectURL = a.value);
589
+ }), setTimeout(() => {
590
+ n.wwLogin = ww.createWWLoginPanel({
591
+ el: "#wx_qrcode",
592
+ params: {
593
+ login_type: "CorpApp",
594
+ appid: n.appId,
595
+ agentid: n.agentId,
596
+ redirect_uri: n.redirectURL,
597
+ state: "loginState",
598
+ redirect_type: "callback",
599
+ panel_size: "middle",
600
+ lang: e == "zh_CN" ? "zh" : "en"
601
+ },
602
+ onCheckWeComLogin({ isWeComLogin: a }) {
603
+ console.log(a);
604
+ },
605
+ onLoginSuccess({ code: a }) {
606
+ n.code = a, n.$refs.updPwd.open(n.userInfo.account, a, 2), console.log(a);
607
+ },
608
+ onLoginFail(a) {
609
+ }
610
+ });
611
+ }, 500);
612
+ },
613
+ bindCode(s) {
614
+ s == 1 || s == 0 ? this.getData() : s == -1 ? this.getConfigsBy() : s == 2 && this.getConfigsBy();
615
+ }
616
+ }
617
+ };
618
+ var ye = function() {
619
+ var e = this, n = e._self._c;
620
+ return n("div", { staticStyle: { "padding-top": "12px" } }, [n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("div", { staticClass: "grid-content bg-purple" }, [e._v(" " + e._s(e.$i18nt("gd.account.passWord", "\u8D26\u6237\u5BC6\u7801")) + " ")])])], 1), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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")) + " ")])]), n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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), n("el-divider"), n("el-row", { attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 24 } }, [n("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), n("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [n("el-col", { attrs: { span: 8 } }, [n("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 == "" ? n("el-col", { attrs: { span: 16 } }, [n("div", { staticClass: "grid-content paw grid-flex" }, [n("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), n("upd-pwd", { ref: "updPwd", attrs: { isShow: e.isShow }, on: { bindCode: e.bindCode } }), n("weChatBind", { ref: "weChatBind", on: { bindCode: e.bindCode } })], 1);
621
+ }, _e = [], $e = /* @__PURE__ */ H(
622
+ be,
623
+ ye,
624
+ _e,
625
+ !1,
626
+ null,
627
+ "21459f3a",
628
+ null,
629
+ null
630
+ );
631
+ const Y = $e.exports;
632
+ Y.install = function(s) {
633
+ s.component(Y.name, Y);
634
+ };
635
+ var N = { exports: {} };
636
+ (function(s, e) {
637
+ (function(n, a) {
638
+ s.exports = a();
639
+ })(window, function() {
640
+ return function(n) {
641
+ var a = {};
642
+ function u(d) {
643
+ if (a[d])
644
+ return a[d].exports;
645
+ var x = a[d] = { i: d, l: !1, exports: {} };
646
+ return n[d].call(x.exports, x, x.exports, u), x.l = !0, x.exports;
647
+ }
648
+ return u.m = n, u.c = a, u.d = function(d, x, $) {
649
+ u.o(d, x) || Object.defineProperty(d, x, { enumerable: !0, get: $ });
650
+ }, u.r = function(d) {
651
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(d, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(d, "__esModule", { value: !0 });
652
+ }, u.t = function(d, x) {
653
+ if (1 & x && (d = u(d)), 8 & x || 4 & x && typeof d == "object" && d && d.__esModule)
654
+ return d;
655
+ var $ = /* @__PURE__ */ Object.create(null);
656
+ if (u.r($), Object.defineProperty($, "default", { enumerable: !0, value: d }), 2 & x && typeof d != "string")
657
+ for (var S in d)
658
+ u.d($, S, function(L) {
659
+ return d[L];
660
+ }.bind(null, S));
661
+ return $;
662
+ }, u.n = function(d) {
663
+ var x = d && d.__esModule ? function() {
664
+ return d.default;
665
+ } : function() {
666
+ return d;
667
+ };
668
+ return u.d(x, "a", x), x;
669
+ }, u.o = function(d, x) {
670
+ return Object.prototype.hasOwnProperty.call(d, x);
671
+ }, u.p = "", u(u.s = 6);
672
+ }([function(n, a, u) {
673
+ var d = u(2);
674
+ typeof d == "string" && (d = [[n.i, d, ""]]);
675
+ var x = { hmr: !0, transform: void 0, insertInto: void 0 };
676
+ u(4)(d, x), d.locals && (n.exports = d.locals);
677
+ }, function(n, a, u) {
678
+ var d = u(0);
679
+ u.n(d).a;
680
+ }, function(n, a, u) {
681
+ (n.exports = u(3)(!1)).push([n.i, `
682
+ .vue-cropper[data-v-6dae58fd] {
683
+ position: relative;
684
+ width: 100%;
685
+ height: 100%;
686
+ box-sizing: border-box;
687
+ user-select: none;
688
+ -webkit-user-select: none;
689
+ -moz-user-select: none;
690
+ -ms-user-select: none;
691
+ direction: ltr;
692
+ touch-action: none;
693
+ text-align: left;
694
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
695
+ }
696
+ .cropper-box[data-v-6dae58fd],
697
+ .cropper-box-canvas[data-v-6dae58fd],
698
+ .cropper-drag-box[data-v-6dae58fd],
699
+ .cropper-crop-box[data-v-6dae58fd],
700
+ .cropper-face[data-v-6dae58fd] {
701
+ position: absolute;
702
+ top: 0;
703
+ right: 0;
704
+ bottom: 0;
705
+ left: 0;
706
+ user-select: none;
707
+ }
708
+ .cropper-box-canvas img[data-v-6dae58fd] {
709
+ position: relative;
710
+ text-align: left;
711
+ user-select: none;
712
+ transform: none;
713
+ max-width: none;
714
+ max-height: none;
715
+ }
716
+ .cropper-box[data-v-6dae58fd] {
717
+ overflow: hidden;
718
+ }
719
+ .cropper-move[data-v-6dae58fd] {
720
+ cursor: move;
721
+ }
722
+ .cropper-crop[data-v-6dae58fd] {
723
+ cursor: crosshair;
724
+ }
725
+ .cropper-modal[data-v-6dae58fd] {
726
+ background: rgba(0, 0, 0, 0.5);
727
+ }
728
+ .cropper-crop-box[data-v-6dae58fd] {
729
+ /*border: 2px solid #39f;*/
730
+ }
731
+ .cropper-view-box[data-v-6dae58fd] {
732
+ display: block;
733
+ overflow: hidden;
734
+ width: 100%;
735
+ height: 100%;
736
+ outline: 1px solid #39f;
737
+ outline-color: rgba(51, 153, 255, 0.75);
738
+ user-select: none;
739
+ }
740
+ .cropper-view-box img[data-v-6dae58fd] {
741
+ user-select: none;
742
+ text-align: left;
743
+ max-width: none;
744
+ max-height: none;
745
+ }
746
+ .cropper-face[data-v-6dae58fd] {
747
+ top: 0;
748
+ left: 0;
749
+ background-color: #fff;
750
+ opacity: 0.1;
751
+ }
752
+ .crop-info[data-v-6dae58fd] {
753
+ position: absolute;
754
+ left: 0px;
755
+ min-width: 65px;
756
+ text-align: center;
757
+ color: white;
758
+ line-height: 20px;
759
+ background-color: rgba(0, 0, 0, 0.8);
760
+ font-size: 12px;
761
+ }
762
+ .crop-line[data-v-6dae58fd] {
763
+ position: absolute;
764
+ display: block;
765
+ width: 100%;
766
+ height: 100%;
767
+ opacity: 0.1;
768
+ }
769
+ .line-w[data-v-6dae58fd] {
770
+ top: -3px;
771
+ left: 0;
772
+ height: 5px;
773
+ cursor: n-resize;
774
+ }
775
+ .line-a[data-v-6dae58fd] {
776
+ top: 0;
777
+ left: -3px;
778
+ width: 5px;
779
+ cursor: w-resize;
780
+ }
781
+ .line-s[data-v-6dae58fd] {
782
+ bottom: -3px;
783
+ left: 0;
784
+ height: 5px;
785
+ cursor: s-resize;
786
+ }
787
+ .line-d[data-v-6dae58fd] {
788
+ top: 0;
789
+ right: -3px;
790
+ width: 5px;
791
+ cursor: e-resize;
792
+ }
793
+ .crop-point[data-v-6dae58fd] {
794
+ position: absolute;
795
+ width: 8px;
796
+ height: 8px;
797
+ opacity: 0.75;
798
+ background-color: #39f;
799
+ border-radius: 100%;
800
+ }
801
+ .point1[data-v-6dae58fd] {
802
+ top: -4px;
803
+ left: -4px;
804
+ cursor: nw-resize;
805
+ }
806
+ .point2[data-v-6dae58fd] {
807
+ top: -5px;
808
+ left: 50%;
809
+ margin-left: -3px;
810
+ cursor: n-resize;
811
+ }
812
+ .point3[data-v-6dae58fd] {
813
+ top: -4px;
814
+ right: -4px;
815
+ cursor: ne-resize;
816
+ }
817
+ .point4[data-v-6dae58fd] {
818
+ top: 50%;
819
+ left: -4px;
820
+ margin-top: -3px;
821
+ cursor: w-resize;
822
+ }
823
+ .point5[data-v-6dae58fd] {
824
+ top: 50%;
825
+ right: -4px;
826
+ margin-top: -3px;
827
+ cursor: e-resize;
828
+ }
829
+ .point6[data-v-6dae58fd] {
830
+ bottom: -5px;
831
+ left: -4px;
832
+ cursor: sw-resize;
833
+ }
834
+ .point7[data-v-6dae58fd] {
835
+ bottom: -5px;
836
+ left: 50%;
837
+ margin-left: -3px;
838
+ cursor: s-resize;
839
+ }
840
+ .point8[data-v-6dae58fd] {
841
+ bottom: -5px;
842
+ right: -4px;
843
+ cursor: se-resize;
844
+ }
845
+ @media screen and (max-width: 500px) {
846
+ .crop-point[data-v-6dae58fd] {
847
+ position: absolute;
848
+ width: 20px;
849
+ height: 20px;
850
+ opacity: 0.45;
851
+ background-color: #39f;
852
+ border-radius: 100%;
853
+ }
854
+ .point1[data-v-6dae58fd] {
855
+ top: -10px;
856
+ left: -10px;
857
+ }
858
+ .point2[data-v-6dae58fd],
859
+ .point4[data-v-6dae58fd],
860
+ .point5[data-v-6dae58fd],
861
+ .point7[data-v-6dae58fd] {
862
+ display: none;
863
+ }
864
+ .point3[data-v-6dae58fd] {
865
+ top: -10px;
866
+ right: -10px;
867
+ }
868
+ .point4[data-v-6dae58fd] {
869
+ top: 0;
870
+ left: 0;
871
+ }
872
+ .point6[data-v-6dae58fd] {
873
+ bottom: -10px;
874
+ left: -10px;
875
+ }
876
+ .point8[data-v-6dae58fd] {
877
+ bottom: -10px;
878
+ right: -10px;
879
+ }
880
+ }
881
+ `, ""]);
882
+ }, function(n, a) {
883
+ n.exports = function(u) {
884
+ var d = [];
885
+ return d.toString = function() {
886
+ return this.map(function(x) {
887
+ var $ = function(S, L) {
888
+ var k = S[1] || "", T = S[3];
889
+ if (!T)
890
+ return k;
891
+ if (L && typeof btoa == "function") {
892
+ var i = function(o) {
893
+ return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + " */";
894
+ }(T), t = T.sources.map(function(o) {
895
+ return "/*# sourceURL=" + T.sourceRoot + o + " */";
896
+ });
897
+ return [k].concat(t).concat([i]).join(`
898
+ `);
899
+ }
900
+ return [k].join(`
901
+ `);
902
+ }(x, u);
903
+ return x[2] ? "@media " + x[2] + "{" + $ + "}" : $;
904
+ }).join("");
905
+ }, d.i = function(x, $) {
906
+ typeof x == "string" && (x = [[null, x, ""]]);
907
+ for (var S = {}, L = 0; L < this.length; L++) {
908
+ var k = this[L][0];
909
+ typeof k == "number" && (S[k] = !0);
910
+ }
911
+ for (L = 0; L < x.length; L++) {
912
+ var T = x[L];
913
+ typeof T[0] == "number" && S[T[0]] || ($ && !T[2] ? T[2] = $ : $ && (T[2] = "(" + T[2] + ") and (" + $ + ")"), d.push(T));
914
+ }
915
+ }, d;
916
+ };
917
+ }, function(n, a, u) {
918
+ var d = {}, x = function(c) {
919
+ var h;
920
+ return function() {
921
+ return h === void 0 && (h = c.apply(this, arguments)), h;
922
+ };
923
+ }(function() {
924
+ return window && document && document.all && !window.atob;
925
+ }), $ = function(c) {
926
+ var h = {};
927
+ return function(p, f) {
928
+ if (typeof p == "function")
929
+ return p();
930
+ if (h[p] === void 0) {
931
+ var w = function(v, b) {
932
+ return b ? b.querySelector(v) : document.querySelector(v);
933
+ }.call(this, p, f);
934
+ if (window.HTMLIFrameElement && w instanceof window.HTMLIFrameElement)
935
+ try {
936
+ w = w.contentDocument.head;
937
+ } catch {
938
+ w = null;
939
+ }
940
+ h[p] = w;
941
+ }
942
+ return h[p];
943
+ };
944
+ }(), S = null, L = 0, k = [], T = u(5);
945
+ function i(c, h) {
946
+ for (var p = 0; p < c.length; p++) {
947
+ var f = c[p], w = d[f.id];
948
+ if (w) {
949
+ w.refs++;
950
+ for (var v = 0; v < w.parts.length; v++)
951
+ w.parts[v](f.parts[v]);
952
+ for (; v < f.parts.length; v++)
953
+ w.parts.push(m(f.parts[v], h));
954
+ } else {
955
+ var b = [];
956
+ for (v = 0; v < f.parts.length; v++)
957
+ b.push(m(f.parts[v], h));
958
+ d[f.id] = { id: f.id, refs: 1, parts: b };
959
+ }
960
+ }
961
+ }
962
+ function t(c, h) {
963
+ for (var p = [], f = {}, w = 0; w < c.length; w++) {
964
+ var v = c[w], b = h.base ? v[0] + h.base : v[0], _ = { css: v[1], media: v[2], sourceMap: v[3] };
965
+ f[b] ? f[b].parts.push(_) : p.push(f[b] = { id: b, parts: [_] });
966
+ }
967
+ return p;
968
+ }
969
+ function o(c, h) {
970
+ var p = $(c.insertInto);
971
+ if (!p)
972
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
973
+ var f = k[k.length - 1];
974
+ if (c.insertAt === "top")
975
+ f ? f.nextSibling ? p.insertBefore(h, f.nextSibling) : p.appendChild(h) : p.insertBefore(h, p.firstChild), k.push(h);
976
+ else if (c.insertAt === "bottom")
977
+ p.appendChild(h);
978
+ else {
979
+ if (typeof c.insertAt != "object" || !c.insertAt.before)
980
+ throw new Error(`[Style Loader]
981
+
982
+ Invalid value for parameter 'insertAt' ('options.insertAt') found.
983
+ Must be 'top', 'bottom', or Object.
984
+ (https://github.com/webpack-contrib/style-loader#insertat)
985
+ `);
986
+ var w = $(c.insertAt.before, p);
987
+ p.insertBefore(h, w);
988
+ }
989
+ }
990
+ function r(c) {
991
+ if (c.parentNode === null)
992
+ return !1;
993
+ c.parentNode.removeChild(c);
994
+ var h = k.indexOf(c);
995
+ h >= 0 && k.splice(h, 1);
996
+ }
997
+ function l(c) {
998
+ var h = document.createElement("style");
999
+ if (c.attrs.type === void 0 && (c.attrs.type = "text/css"), c.attrs.nonce === void 0) {
1000
+ var p = function() {
1001
+ return u.nc;
1002
+ }();
1003
+ p && (c.attrs.nonce = p);
1004
+ }
1005
+ return g(h, c.attrs), o(c, h), h;
1006
+ }
1007
+ function g(c, h) {
1008
+ Object.keys(h).forEach(function(p) {
1009
+ c.setAttribute(p, h[p]);
1010
+ });
1011
+ }
1012
+ function m(c, h) {
1013
+ var p, f, w, v;
1014
+ if (h.transform && c.css) {
1015
+ if (!(v = typeof h.transform == "function" ? h.transform(c.css) : h.transform.default(c.css)))
1016
+ return function() {
1017
+ };
1018
+ c.css = v;
1019
+ }
1020
+ if (h.singleton) {
1021
+ var b = L++;
1022
+ p = S || (S = l(h)), f = C.bind(null, p, b, !1), w = C.bind(null, p, b, !0);
1023
+ } else
1024
+ c.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (p = function(_) {
1025
+ var I = document.createElement("link");
1026
+ return _.attrs.type === void 0 && (_.attrs.type = "text/css"), _.attrs.rel = "stylesheet", g(I, _.attrs), o(_, I), I;
1027
+ }(h), f = function(_, I, E) {
1028
+ var A = E.css, O = E.sourceMap, M = I.convertToAbsoluteUrls === void 0 && O;
1029
+ (I.convertToAbsoluteUrls || M) && (A = T(A)), O && (A += `
1030
+ /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(O)))) + " */");
1031
+ var D = new Blob([A], { type: "text/css" }), R = _.href;
1032
+ _.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
1033
+ }.bind(null, p, h), w = function() {
1034
+ r(p), p.href && URL.revokeObjectURL(p.href);
1035
+ }) : (p = l(h), f = function(_, I) {
1036
+ var E = I.css, A = I.media;
1037
+ if (A && _.setAttribute("media", A), _.styleSheet)
1038
+ _.styleSheet.cssText = E;
1039
+ else {
1040
+ for (; _.firstChild; )
1041
+ _.removeChild(_.firstChild);
1042
+ _.appendChild(document.createTextNode(E));
1043
+ }
1044
+ }.bind(null, p), w = function() {
1045
+ r(p);
1046
+ });
1047
+ return f(c), function(_) {
1048
+ if (_) {
1049
+ if (_.css === c.css && _.media === c.media && _.sourceMap === c.sourceMap)
1050
+ return;
1051
+ f(c = _);
1052
+ } else
1053
+ w();
1054
+ };
1055
+ }
1056
+ n.exports = function(c, h) {
1057
+ if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
1058
+ throw new Error("The style-loader cannot be used in a non-browser environment");
1059
+ (h = h || {}).attrs = typeof h.attrs == "object" ? h.attrs : {}, h.singleton || typeof h.singleton == "boolean" || (h.singleton = x()), h.insertInto || (h.insertInto = "head"), h.insertAt || (h.insertAt = "bottom");
1060
+ var p = t(c, h);
1061
+ return i(p, h), function(f) {
1062
+ for (var w = [], v = 0; v < p.length; v++) {
1063
+ var b = p[v];
1064
+ (_ = d[b.id]).refs--, w.push(_);
1065
+ }
1066
+ for (f && i(t(f, h), h), v = 0; v < w.length; v++) {
1067
+ var _;
1068
+ if ((_ = w[v]).refs === 0) {
1069
+ for (var I = 0; I < _.parts.length; I++)
1070
+ _.parts[I]();
1071
+ delete d[_.id];
1072
+ }
1073
+ }
1074
+ };
1075
+ };
1076
+ var y = function() {
1077
+ var c = [];
1078
+ return function(h, p) {
1079
+ return c[h] = p, c.filter(Boolean).join(`
1080
+ `);
1081
+ };
1082
+ }();
1083
+ function C(c, h, p, f) {
1084
+ var w = p ? "" : f.css;
1085
+ if (c.styleSheet)
1086
+ c.styleSheet.cssText = y(h, w);
1087
+ else {
1088
+ var v = document.createTextNode(w), b = c.childNodes;
1089
+ b[h] && c.removeChild(b[h]), b.length ? c.insertBefore(v, b[h]) : c.appendChild(v);
1090
+ }
1091
+ }
1092
+ }, function(n, a) {
1093
+ n.exports = function(u) {
1094
+ var d = typeof window < "u" && window.location;
1095
+ if (!d)
1096
+ throw new Error("fixUrls requires window.location");
1097
+ if (!u || typeof u != "string")
1098
+ return u;
1099
+ var x = d.protocol + "//" + d.host, $ = x + d.pathname.replace(/\/[^\/]*$/, "/");
1100
+ return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(S, L) {
1101
+ var k, T = L.trim().replace(/^"(.*)"$/, function(i, t) {
1102
+ return t;
1103
+ }).replace(/^'(.*)'$/, function(i, t) {
1104
+ return t;
1105
+ });
1106
+ return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T) ? S : (k = T.indexOf("//") === 0 ? T : T.indexOf("/") === 0 ? x + T : $ + T.replace(/^\.\//, ""), "url(" + JSON.stringify(k) + ")");
1107
+ });
1108
+ };
1109
+ }, function(n, a, u) {
1110
+ u.r(a);
1111
+ var d = function() {
1112
+ var i = this, t = i.$createElement, o = i._self._c || t;
1113
+ return o("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: i.scaleImg, mouseout: i.cancelScale } }, [i.imgs ? o("div", { staticClass: "cropper-box" }, [o("div", { directives: [{ name: "show", rawName: "v-show", value: !i.loading, expression: "!loading" }], staticClass: "cropper-box-canvas", style: { width: i.trueWidth + "px", height: i.trueHeight + "px", transform: "scale(" + i.scale + "," + i.scale + ") translate3d(" + i.x / i.scale + "px," + i.y / i.scale + "px,0)rotateZ(" + 90 * i.rotate + "deg)" } }, [o("img", { ref: "cropperImg", attrs: { src: i.imgs, alt: "cropper-img" } })])]) : i._e(), i._v(" "), o("div", { staticClass: "cropper-drag-box", class: { "cropper-move": i.move && !i.crop, "cropper-crop": i.crop, "cropper-modal": i.cropping }, on: { mousedown: i.startMove, touchstart: i.startMove } }), i._v(" "), o("div", { directives: [{ name: "show", rawName: "v-show", value: i.cropping, expression: "cropping" }], staticClass: "cropper-crop-box", style: { width: i.cropW + "px", height: i.cropH + "px", transform: "translate3d(" + i.cropOffsertX + "px," + i.cropOffsertY + "px,0)" } }, [o("span", { staticClass: "cropper-view-box" }, [o("img", { style: { width: i.trueWidth + "px", height: i.trueHeight + "px", transform: "scale(" + i.scale + "," + i.scale + ") translate3d(" + (i.x - i.cropOffsertX) / i.scale + "px," + (i.y - i.cropOffsertY) / i.scale + "px,0)rotateZ(" + 90 * i.rotate + "deg)" }, attrs: { src: i.imgs, alt: "cropper-img" } })]), i._v(" "), o("span", { staticClass: "cropper-face cropper-move", on: { mousedown: i.cropMove, touchstart: i.cropMove } }), i._v(" "), i.info ? o("span", { staticClass: "crop-info", style: { top: i.cropInfo.top } }, [i._v(i._s(this.cropInfo.width) + " \xD7 " + i._s(this.cropInfo.height))]) : i._e(), i._v(" "), i.fixedBox ? i._e() : o("span", [o("span", { staticClass: "crop-line line-w", on: { mousedown: function(r) {
1114
+ i.changeCropSize(r, !1, !0, 0, 1);
1115
+ }, touchstart: function(r) {
1116
+ i.changeCropSize(r, !1, !0, 0, 1);
1117
+ } } }), i._v(" "), o("span", { staticClass: "crop-line line-a", on: { mousedown: function(r) {
1118
+ i.changeCropSize(r, !0, !1, 1, 0);
1119
+ }, touchstart: function(r) {
1120
+ i.changeCropSize(r, !0, !1, 1, 0);
1121
+ } } }), i._v(" "), o("span", { staticClass: "crop-line line-s", on: { mousedown: function(r) {
1122
+ i.changeCropSize(r, !1, !0, 0, 2);
1123
+ }, touchstart: function(r) {
1124
+ i.changeCropSize(r, !1, !0, 0, 2);
1125
+ } } }), i._v(" "), o("span", { staticClass: "crop-line line-d", on: { mousedown: function(r) {
1126
+ i.changeCropSize(r, !0, !1, 2, 0);
1127
+ }, touchstart: function(r) {
1128
+ i.changeCropSize(r, !0, !1, 2, 0);
1129
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point1", on: { mousedown: function(r) {
1130
+ i.changeCropSize(r, !0, !0, 1, 1);
1131
+ }, touchstart: function(r) {
1132
+ i.changeCropSize(r, !0, !0, 1, 1);
1133
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point2", on: { mousedown: function(r) {
1134
+ i.changeCropSize(r, !1, !0, 0, 1);
1135
+ }, touchstart: function(r) {
1136
+ i.changeCropSize(r, !1, !0, 0, 1);
1137
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point3", on: { mousedown: function(r) {
1138
+ i.changeCropSize(r, !0, !0, 2, 1);
1139
+ }, touchstart: function(r) {
1140
+ i.changeCropSize(r, !0, !0, 2, 1);
1141
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point4", on: { mousedown: function(r) {
1142
+ i.changeCropSize(r, !0, !1, 1, 0);
1143
+ }, touchstart: function(r) {
1144
+ i.changeCropSize(r, !0, !1, 1, 0);
1145
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point5", on: { mousedown: function(r) {
1146
+ i.changeCropSize(r, !0, !1, 2, 0);
1147
+ }, touchstart: function(r) {
1148
+ i.changeCropSize(r, !0, !1, 2, 0);
1149
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point6", on: { mousedown: function(r) {
1150
+ i.changeCropSize(r, !0, !0, 1, 2);
1151
+ }, touchstart: function(r) {
1152
+ i.changeCropSize(r, !0, !0, 1, 2);
1153
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point7", on: { mousedown: function(r) {
1154
+ i.changeCropSize(r, !1, !0, 0, 2);
1155
+ }, touchstart: function(r) {
1156
+ i.changeCropSize(r, !1, !0, 0, 2);
1157
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point8", on: { mousedown: function(r) {
1158
+ i.changeCropSize(r, !0, !0, 2, 2);
1159
+ }, touchstart: function(r) {
1160
+ i.changeCropSize(r, !0, !0, 2, 2);
1161
+ } } })])])]);
1162
+ };
1163
+ d._withStripped = !0;
1164
+ var x = {};
1165
+ x.getData = function(i) {
1166
+ return new Promise(function(t, o) {
1167
+ var r = {};
1168
+ (function(l) {
1169
+ var g = null;
1170
+ return new Promise(function(m, y) {
1171
+ if (l.src)
1172
+ if (/^data\:/i.test(l.src))
1173
+ g = function(h) {
1174
+ h = h.replace(/^data\:([^\;]+)\;base64,/gim, "");
1175
+ for (var p = atob(h), f = p.length, w = new ArrayBuffer(f), v = new Uint8Array(w), b = 0; b < f; b++)
1176
+ v[b] = p.charCodeAt(b);
1177
+ return w;
1178
+ }(l.src), m(g);
1179
+ else if (/^blob\:/i.test(l.src)) {
1180
+ var C = new FileReader();
1181
+ C.onload = function(h) {
1182
+ g = h.target.result, m(g);
1183
+ }, function(h, p) {
1184
+ var f = new XMLHttpRequest();
1185
+ f.open("GET", h, !0), f.responseType = "blob", f.onload = function(w) {
1186
+ this.status != 200 && this.status !== 0 || p(this.response);
1187
+ }, f.send();
1188
+ }(l.src, function(h) {
1189
+ C.readAsArrayBuffer(h);
1190
+ });
1191
+ } else {
1192
+ var c = new XMLHttpRequest();
1193
+ c.onload = function() {
1194
+ if (this.status != 200 && this.status !== 0)
1195
+ throw "Could not load image";
1196
+ g = c.response, m(g), c = null;
1197
+ }, c.open("GET", l.src, !0), c.responseType = "arraybuffer", c.send(null);
1198
+ }
1199
+ else
1200
+ y("img error");
1201
+ });
1202
+ })(i).then(function(l) {
1203
+ r.arrayBuffer = l, r.orientation = function(g) {
1204
+ var m, y, C, c, h, p, f, w, v, b = new DataView(g), _ = b.byteLength;
1205
+ if (b.getUint8(0) === 255 && b.getUint8(1) === 216)
1206
+ for (w = 2; w < _; ) {
1207
+ if (b.getUint8(w) === 255 && b.getUint8(w + 1) === 225) {
1208
+ p = w;
1209
+ break;
1210
+ }
1211
+ w++;
1212
+ }
1213
+ if (p && (y = p + 10, function(I, E, A) {
1214
+ var O, M = "";
1215
+ for (O = E, A += E; O < A; O++)
1216
+ M += String.fromCharCode(I.getUint8(O));
1217
+ return M;
1218
+ }(b, p + 4, 4) === "Exif" && (h = b.getUint16(y), ((c = h === 18761) || h === 19789) && b.getUint16(y + 2, c) === 42 && (C = b.getUint32(y + 4, c)) >= 8 && (f = y + C))), f) {
1219
+ for (_ = b.getUint16(f, c), v = 0; v < _; v++)
1220
+ if (w = f + 12 * v + 2, b.getUint16(w, c) === 274) {
1221
+ w += 8, m = b.getUint16(w, c);
1222
+ break;
1223
+ }
1224
+ }
1225
+ return m;
1226
+ }(l), t(r);
1227
+ }).catch(function(l) {
1228
+ o(l);
1229
+ });
1230
+ });
1231
+ };
1232
+ var $ = x, S = { data: function() {
1233
+ 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: 0.2, scaling: !1, scalingSet: "", coeStatus: "", isCanShow: !0 };
1234
+ }, 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() {
1235
+ return [1, 1];
1236
+ } }, 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() {
1237
+ return 10;
1238
+ } } }, computed: { cropInfo: function() {
1239
+ var i = {};
1240
+ if (i.top = this.cropOffsertY > 21 ? "-21px" : "0px", i.width = this.cropW > 0 ? this.cropW : 0, i.height = this.cropH > 0 ? this.cropH : 0, this.infoTrue) {
1241
+ var t = 1;
1242
+ this.high && !this.full && (t = window.devicePixelRatio), this.enlarge !== 1 & !this.full && (t = Math.abs(Number(this.enlarge))), i.width = i.width * t, i.height = i.height * t, this.full && (i.width = i.width / this.scale, i.height = i.height / this.scale);
1243
+ }
1244
+ return i.width = i.width.toFixed(0), i.height = i.height.toFixed(0), i;
1245
+ }, isIE: function() {
1246
+ var i = !!window.ActiveXObject || "ActiveXObject" in window;
1247
+ return i;
1248
+ }, passive: function() {
1249
+ return this.isIE ? null : { passive: !1 };
1250
+ } }, watch: { img: function() {
1251
+ this.checkedImg();
1252
+ }, imgs: function(i) {
1253
+ i !== "" && this.reload();
1254
+ }, cropW: function() {
1255
+ this.showPreview();
1256
+ }, cropH: function() {
1257
+ this.showPreview();
1258
+ }, cropOffsertX: function() {
1259
+ this.showPreview();
1260
+ }, cropOffsertY: function() {
1261
+ this.showPreview();
1262
+ }, scale: function(i, t) {
1263
+ this.showPreview();
1264
+ }, x: function() {
1265
+ this.showPreview();
1266
+ }, y: function() {
1267
+ this.showPreview();
1268
+ }, autoCrop: function(i) {
1269
+ i && this.goAutoCrop();
1270
+ }, autoCropWidth: function() {
1271
+ this.autoCrop && this.goAutoCrop();
1272
+ }, autoCropHeight: function() {
1273
+ this.autoCrop && this.goAutoCrop();
1274
+ }, mode: function() {
1275
+ this.checkedImg();
1276
+ }, rotate: function() {
1277
+ this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
1278
+ } }, methods: { getVersion: function(i) {
1279
+ for (var t = navigator.userAgent.split(" "), o = "", r = new RegExp(i, "i"), l = 0; l < t.length; l++)
1280
+ r.test(t[l]) && (o = t[l]);
1281
+ return o ? o.split("/")[1].split(".") : ["0", "0", "0"];
1282
+ }, checkOrientationImage: function(i, t, o, r) {
1283
+ var l = this;
1284
+ if (this.getVersion("chrome")[0] >= 81)
1285
+ t = -1;
1286
+ else if (this.getVersion("safari")[0] >= 605) {
1287
+ var g = this.getVersion("version");
1288
+ g[0] > 13 && g[1] > 1 && (t = -1);
1289
+ } else {
1290
+ var m = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
1291
+ if (m) {
1292
+ var y = m[1];
1293
+ ((y = y.split("_"))[0] > 13 || y[0] >= 13 && y[1] >= 4) && (t = -1);
1294
+ }
1295
+ }
1296
+ var C = document.createElement("canvas"), c = C.getContext("2d");
1297
+ switch (c.save(), t) {
1298
+ case 2:
1299
+ C.width = o, C.height = r, c.translate(o, 0), c.scale(-1, 1);
1300
+ break;
1301
+ case 3:
1302
+ C.width = o, C.height = r, c.translate(o / 2, r / 2), c.rotate(180 * Math.PI / 180), c.translate(-o / 2, -r / 2);
1303
+ break;
1304
+ case 4:
1305
+ C.width = o, C.height = r, c.translate(0, r), c.scale(1, -1);
1306
+ break;
1307
+ case 5:
1308
+ C.height = o, C.width = r, c.rotate(0.5 * Math.PI), c.scale(1, -1);
1309
+ break;
1310
+ case 6:
1311
+ C.width = r, C.height = o, c.translate(r / 2, o / 2), c.rotate(90 * Math.PI / 180), c.translate(-o / 2, -r / 2);
1312
+ break;
1313
+ case 7:
1314
+ C.height = o, C.width = r, c.rotate(0.5 * Math.PI), c.translate(o, -r), c.scale(-1, 1);
1315
+ break;
1316
+ case 8:
1317
+ C.height = o, C.width = r, c.translate(r / 2, o / 2), c.rotate(-90 * Math.PI / 180), c.translate(-o / 2, -r / 2);
1318
+ break;
1319
+ default:
1320
+ C.width = o, C.height = r;
1321
+ }
1322
+ c.drawImage(i, 0, 0, o, r), c.restore(), C.toBlob(function(h) {
1323
+ var p = URL.createObjectURL(h);
1324
+ URL.revokeObjectURL(l.imgs), l.imgs = p;
1325
+ }, "image/" + this.outputType, 1);
1326
+ }, checkedImg: function() {
1327
+ var i = this;
1328
+ if (this.img === null || this.img === "")
1329
+ return this.imgs = "", void this.clearCrop();
1330
+ this.loading = !0, this.scale = 1, this.rotate = 0, this.clearCrop();
1331
+ var t = new Image();
1332
+ if (t.onload = function() {
1333
+ if (i.img === "")
1334
+ return i.$emit("imgLoad", "error"), i.$emit("img-load", "error"), !1;
1335
+ var r = t.width, l = t.height;
1336
+ $.getData(t).then(function(g) {
1337
+ i.orientation = g.orientation || 1;
1338
+ var m = i.maxImgSize;
1339
+ !i.orientation && r < m & l < m ? i.imgs = i.img : (r > m && (l = l / r * m, r = m), l > m && (r = r / l * m, l = m), i.checkOrientationImage(t, i.orientation, r, l));
1340
+ });
1341
+ }, t.onerror = function() {
1342
+ i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
1343
+ }, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
1344
+ var o = new XMLHttpRequest();
1345
+ o.onload = function() {
1346
+ var r = URL.createObjectURL(this.response);
1347
+ t.src = r;
1348
+ }, o.open("GET", this.img, !0), o.responseType = "blob", o.send();
1349
+ } else
1350
+ t.src = this.img;
1351
+ }, startMove: function(i) {
1352
+ if (i.preventDefault(), this.move && !this.crop) {
1353
+ if (!this.canMove)
1354
+ return !1;
1355
+ this.moveX = (i.clientX ? i.clientX : i.touches[0].clientX) - this.x, this.moveY = (i.clientY ? i.clientY : i.touches[0].clientY) - this.y, i.touches ? (window.addEventListener("touchmove", this.moveImg), window.addEventListener("touchend", this.leaveImg), i.touches.length == 2 && (this.touches = i.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() });
1356
+ } else
1357
+ 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 = i.offsetX ? i.offsetX : i.touches[0].pageX - this.$refs.cropper.offsetLeft, this.cropOffsertY = i.offsetY ? i.offsetY : i.touches[0].pageY - this.$refs.cropper.offsetTop, this.cropX = i.clientX ? i.clientX : i.touches[0].clientX, this.cropY = i.clientY ? i.clientY : i.touches[0].clientY, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.cropW = 0, this.cropH = 0;
1358
+ }, touchScale: function(i) {
1359
+ var t = this;
1360
+ i.preventDefault();
1361
+ var o = this.scale, r = this.touches[0].clientX, l = this.touches[0].clientY, g = i.touches[0].clientX, m = i.touches[0].clientY, y = this.touches[1].clientX, C = this.touches[1].clientY, c = i.touches[1].clientX, h = i.touches[1].clientY, p = Math.sqrt(Math.pow(r - y, 2) + Math.pow(l - C, 2)), f = Math.sqrt(Math.pow(g - 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) > 0.1 ? 0.1 : w) * f;
1362
+ if (!this.touchNow) {
1363
+ if (this.touchNow = !0, f > 0 ? o += Math.abs(v) : f < 0 && o > Math.abs(v) && (o -= Math.abs(v)), this.touches = i.touches, setTimeout(function() {
1364
+ t.touchNow = !1;
1365
+ }, 8), !this.checkoutImgAxis(this.x, this.y, o))
1366
+ return !1;
1367
+ this.scale = o;
1368
+ }
1369
+ }, cancelTouchScale: function(i) {
1370
+ window.removeEventListener("touchmove", this.touchScale);
1371
+ }, moveImg: function(i) {
1372
+ var t = this;
1373
+ if (i.preventDefault(), i.touches && i.touches.length === 2)
1374
+ return this.touches = i.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
1375
+ var o, r, l = i.clientX ? i.clientX : i.touches[0].clientX, g = i.clientY ? i.clientY : i.touches[0].clientY;
1376
+ o = l - this.moveX, r = g - this.moveY, this.$nextTick(function() {
1377
+ if (t.centerBox) {
1378
+ var m, y, C, c, h = t.getImgAxis(o, r, t.scale), p = t.getCropAxis(), f = t.trueHeight * t.scale, w = t.trueWidth * t.scale;
1379
+ switch (t.rotate) {
1380
+ case 1:
1381
+ case -1:
1382
+ case 3:
1383
+ case -3:
1384
+ m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2 + (f - w) / 2, y = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2 + (w - f) / 2, C = m - f + t.cropW, c = y - w + t.cropH;
1385
+ break;
1386
+ default:
1387
+ m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2, y = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2, C = m - w + t.cropW, c = y - f + t.cropH;
1388
+ }
1389
+ h.x1 >= p.x1 && (o = m), h.y1 >= p.y1 && (r = y), h.x2 <= p.x2 && (o = C), h.y2 <= p.y2 && (r = c);
1390
+ }
1391
+ t.x = o, t.y = r, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
1392
+ });
1393
+ }, leaveImg: function(i) {
1394
+ 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() });
1395
+ }, scaleImg: function() {
1396
+ this.canScale && window.addEventListener(this.support, this.changeSize, this.passive);
1397
+ }, cancelScale: function() {
1398
+ this.canScale && window.removeEventListener(this.support, this.changeSize);
1399
+ }, changeSize: function(i) {
1400
+ var t = this;
1401
+ i.preventDefault();
1402
+ var o = this.scale, r = i.deltaY || i.wheelDelta;
1403
+ r = navigator.userAgent.indexOf("Firefox") > 0 ? 30 * r : r, this.isIE && (r = -r);
1404
+ var l = this.coe, g = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) * r;
1405
+ g < 0 ? o += Math.abs(g) : o > Math.abs(g) && (o -= Math.abs(g));
1406
+ var m = g < 0 ? "add" : "reduce";
1407
+ if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
1408
+ t.scaling = !1, t.coe = t.coe += 0.01;
1409
+ }, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, o))
1410
+ return !1;
1411
+ this.scale = o;
1412
+ }, changeScale: function(i) {
1413
+ var t = this.scale;
1414
+ i = i || 1;
1415
+ var o = 20;
1416
+ if ((i *= o = o / this.trueWidth > o / this.trueHeight ? o / this.trueHeight : o / this.trueWidth) > 0 ? t += Math.abs(i) : t > Math.abs(i) && (t -= Math.abs(i)), !this.checkoutImgAxis(this.x, this.y, t))
1417
+ return !1;
1418
+ this.scale = t;
1419
+ }, createCrop: function(i) {
1420
+ var t = this;
1421
+ i.preventDefault();
1422
+ var o = i.clientX ? i.clientX : i.touches ? i.touches[0].clientX : 0, r = i.clientY ? i.clientY : i.touches ? i.touches[0].clientY : 0;
1423
+ this.$nextTick(function() {
1424
+ var l = o - t.cropX, g = r - t.cropY;
1425
+ 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) {
1426
+ var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
1427
+ 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;
1428
+ } else
1429
+ g > 0 ? (t.cropH = g + t.cropChangeY > t.h ? t.h - t.cropChangeY : g, t.cropOffsertY = t.cropChangeY) : (t.cropH = t.h - t.cropChangeY + Math.abs(g) > t.h ? t.cropChangeY : Math.abs(g), t.cropOffsertY = t.cropChangeY + g > 0 ? t.cropChangeY + g : 0);
1430
+ });
1431
+ }, changeCropSize: function(i, t, o, r, l) {
1432
+ i.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 = i.clientX ? i.clientX : i.touches[0].clientX, this.cropY = i.clientY ? i.clientY : i.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 });
1433
+ }, changeCropNow: function(i) {
1434
+ var t = this;
1435
+ i.preventDefault();
1436
+ var o = i.clientX ? i.clientX : i.touches ? i.touches[0].clientX : 0, r = i.clientY ? i.clientY : i.touches ? i.touches[0].clientY : 0, l = this.w, g = this.h, m = 0, y = 0;
1437
+ if (this.centerBox) {
1438
+ var C = this.getImgAxis(), c = C.x2, h = C.y2;
1439
+ m = C.x1 > 0 ? C.x1 : 0, y = C.y1 > 0 ? C.y1 : 0, l > c && (l = c), g > h && (g = h);
1440
+ }
1441
+ this.$nextTick(function() {
1442
+ var p = o - t.cropX, f = r - t.cropY;
1443
+ 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 - f > 0 ? (t.cropH = g - t.cropChangeY - f <= g - y ? t.cropOldH - f : t.cropOldH + t.cropChangeY - y, t.cropOffsertY = g - t.cropChangeY - f <= g - y ? t.cropChangeY + f : y) : (t.cropH = Math.abs(f) + t.cropChangeY <= g ? Math.abs(f) - t.cropOldH : g - t.cropOldH - t.cropChangeY, t.cropOffsertY = t.cropChangeY + t.cropOldH) : t.changeCropTypeY === 2 && (t.cropOldH + f > 0 ? (t.cropH = t.cropOldH + f + t.cropOffsertY <= g ? t.cropOldH + f : g - t.cropOffsertY, t.cropOffsertY = t.cropChangeY) : (t.cropH = g - t.cropChangeY + Math.abs(f + t.cropOldH) <= g - y ? Math.abs(f + t.cropOldH) : t.cropChangeY - y, t.cropOffsertY = g - t.cropChangeY + Math.abs(f + t.cropOldH) <= g - y ? t.cropChangeY - Math.abs(f + t.cropOldH) : y))), t.canChangeX && t.fixed) {
1444
+ var w = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
1445
+ w + t.cropOffsertY > g ? (t.cropH = g - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
1446
+ }
1447
+ if (t.canChangeY && t.fixed) {
1448
+ var v = t.cropH / t.fixedNumber[1] * t.fixedNumber[0];
1449
+ v + t.cropOffsertX > l ? (t.cropW = l - t.cropOffsertX, t.cropH = t.cropW / t.fixedNumber[0] * t.fixedNumber[1]) : t.cropW = v;
1450
+ }
1451
+ });
1452
+ }, checkCropLimitSize: function() {
1453
+ this.cropW, this.cropH;
1454
+ var i = this.limitMinSize, t = new Array();
1455
+ return t = Array.isArray[i] ? i : [i, i], [parseFloat(t[0]), parseFloat(t[1])];
1456
+ }, changeCropEnd: function(i) {
1457
+ window.removeEventListener("mousemove", this.changeCropNow), window.removeEventListener("mouseup", this.changeCropEnd), window.removeEventListener("touchmove", this.changeCropNow), window.removeEventListener("touchend", this.changeCropEnd);
1458
+ }, endCrop: function() {
1459
+ 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);
1460
+ }, startCrop: function() {
1461
+ this.crop = !0;
1462
+ }, stopCrop: function() {
1463
+ this.crop = !1;
1464
+ }, clearCrop: function() {
1465
+ this.cropping = !1, this.cropW = 0, this.cropH = 0;
1466
+ }, cropMove: function(i) {
1467
+ if (i.preventDefault(), !this.canMoveBox)
1468
+ return this.crop = !1, this.startMove(i), !1;
1469
+ if (i.touches && i.touches.length === 2)
1470
+ return this.crop = !1, this.startMove(i), this.leaveCrop(), !1;
1471
+ window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
1472
+ var t, o, r = i.clientX ? i.clientX : i.touches[0].clientX, l = i.clientY ? i.clientY : i.touches[0].clientY;
1473
+ 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() });
1474
+ }, moveCrop: function(i, t) {
1475
+ var o = this, r = 0, l = 0;
1476
+ i && (i.preventDefault(), r = i.clientX ? i.clientX : i.touches[0].clientX, l = i.clientY ? i.clientY : i.touches[0].clientY), this.$nextTick(function() {
1477
+ var g, m, y = r - o.cropX, C = l - o.cropY;
1478
+ if (t && (y = o.cropOffsertX, C = o.cropOffsertY), g = y <= 0 ? 0 : y + o.cropW > o.w ? o.w - o.cropW : y, m = C <= 0 ? 0 : C + o.cropH > o.h ? o.h - o.cropH : C, o.centerBox) {
1479
+ var c = o.getImgAxis();
1480
+ g <= c.x1 && (g = c.x1), g + o.cropW > c.x2 && (g = c.x2 - o.cropW), m <= c.y1 && (m = c.y1), m + o.cropH > c.y2 && (m = c.y2 - o.cropH);
1481
+ }
1482
+ o.cropOffsertX = g, o.cropOffsertY = m, o.$emit("cropMoving", { moving: !0, axis: o.getCropAxis() }), o.$emit("crop-moving", { moving: !0, axis: o.getCropAxis() });
1483
+ });
1484
+ }, getImgAxis: function(i, t, o) {
1485
+ i = i || this.x, t = t || this.y, o = o || this.scale;
1486
+ var r = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth * o, g = this.trueHeight * o;
1487
+ switch (this.rotate) {
1488
+ case 0:
1489
+ r.x1 = i + 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;
1490
+ break;
1491
+ case 1:
1492
+ case -1:
1493
+ case 3:
1494
+ case -3:
1495
+ r.x1 = i + this.trueWidth * (1 - o) / 2 + (l - g) / 2, r.x2 = r.x1 + this.trueHeight * o, r.y1 = t + this.trueHeight * (1 - o) / 2 + (g - l) / 2, r.y2 = r.y1 + this.trueWidth * o;
1496
+ break;
1497
+ default:
1498
+ r.x1 = i + 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;
1499
+ }
1500
+ return r;
1501
+ }, getCropAxis: function() {
1502
+ var i = { x1: 0, x2: 0, y1: 0, y2: 0 };
1503
+ return i.x1 = this.cropOffsertX, i.x2 = i.x1 + this.cropW, i.y1 = this.cropOffsertY, i.y2 = i.y1 + this.cropH, i;
1504
+ }, leaveCrop: function(i) {
1505
+ 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() });
1506
+ }, getCropChecked: function(i) {
1507
+ var t = this, o = document.createElement("canvas"), r = new Image(), l = this.rotate, g = this.trueWidth, m = this.trueHeight, y = this.cropOffsertX, C = this.cropOffsertY;
1508
+ function c(h, p) {
1509
+ o.width = Math.round(h), o.height = Math.round(p);
1510
+ }
1511
+ r.onload = function() {
1512
+ if (t.cropW !== 0) {
1513
+ var h = o.getContext("2d"), p = 1;
1514
+ t.high & !t.full && (p = window.devicePixelRatio), t.enlarge !== 1 & !t.full && (p = Math.abs(Number(t.enlarge)));
1515
+ var f = t.cropW * p, w = t.cropH * p, v = g * t.scale * p, b = m * t.scale * p, _ = (t.x - y + t.trueWidth * (1 - t.scale) / 2) * p, I = (t.y - C + t.trueHeight * (1 - t.scale) / 2) * p;
1516
+ switch (c(f, w), h.save(), l) {
1517
+ case 0:
1518
+ t.full ? (c(f / 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);
1519
+ break;
1520
+ case 1:
1521
+ case -3:
1522
+ t.full ? (c(f / 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));
1523
+ break;
1524
+ case 2:
1525
+ case -2:
1526
+ t.full ? (c(f / 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));
1527
+ break;
1528
+ case 3:
1529
+ case -1:
1530
+ t.full ? (c(f / 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));
1531
+ break;
1532
+ default:
1533
+ t.full ? (c(f / 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);
1534
+ }
1535
+ h.restore();
1536
+ } else {
1537
+ var E = g * t.scale, A = m * t.scale, O = o.getContext("2d");
1538
+ switch (O.save(), l) {
1539
+ case 0:
1540
+ c(E, A), O.drawImage(r, 0, 0, E, A);
1541
+ break;
1542
+ case 1:
1543
+ case -3:
1544
+ c(A, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(r, 0, -A, E, A);
1545
+ break;
1546
+ case 2:
1547
+ case -2:
1548
+ c(E, A), O.rotate(90 * l * Math.PI / 180), O.drawImage(r, -E, -A, E, A);
1549
+ break;
1550
+ case 3:
1551
+ case -1:
1552
+ c(A, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(r, -E, 0, E, A);
1553
+ break;
1554
+ default:
1555
+ c(E, A), O.drawImage(r, 0, 0, E, A);
1556
+ }
1557
+ O.restore();
1558
+ }
1559
+ i(o);
1560
+ }, this.img.substr(0, 4) !== "data" && (r.crossOrigin = "Anonymous"), r.src = this.imgs;
1561
+ }, getCropData: function(i) {
1562
+ var t = this;
1563
+ this.getCropChecked(function(o) {
1564
+ i(o.toDataURL("image/" + t.outputType, t.outputSize));
1565
+ });
1566
+ }, getCropBlob: function(i) {
1567
+ var t = this;
1568
+ this.getCropChecked(function(o) {
1569
+ o.toBlob(function(r) {
1570
+ return i(r);
1571
+ }, "image/" + t.outputType, t.outputSize);
1572
+ });
1573
+ }, showPreview: function() {
1574
+ var i = this;
1575
+ if (!this.isCanShow)
1576
+ return !1;
1577
+ this.isCanShow = !1, setTimeout(function() {
1578
+ i.isCanShow = !0;
1579
+ }, 16);
1580
+ var t = this.cropW, o = this.cropH, r = this.scale, l = {};
1581
+ l.div = { width: "".concat(t, "px"), height: "".concat(o, "px") };
1582
+ var g = (this.x - this.cropOffsertX) / r, m = (this.y - this.cropOffsertY) / r;
1583
+ 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(g, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, "deg)") }, l.html = `
1584
+ <div class="show-preview" style="width: `.concat(l.w, "px; height: ").concat(l.h, `px,; overflow: hidden">
1585
+ <div style="width: `).concat(t, "px; height: ").concat(o, `px">
1586
+ <img src=`).concat(l.url, ' style="width: ').concat(this.trueWidth, "px; height: ").concat(this.trueHeight, `px; transform:
1587
+ scale(`).concat(r, ")translate3d(").concat(g, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
1588
+ </div>
1589
+ </div>`), this.$emit("realTime", l), this.$emit("real-time", l);
1590
+ }, reload: function() {
1591
+ var i = this, t = new Image();
1592
+ t.onload = function() {
1593
+ i.w = parseFloat(window.getComputedStyle(i.$refs.cropper).width), i.h = parseFloat(window.getComputedStyle(i.$refs.cropper).height), i.trueWidth = t.width, i.trueHeight = t.height, i.original ? i.scale = 1 : i.scale = i.checkedMode(), i.$nextTick(function() {
1594
+ i.x = -(i.trueWidth - i.trueWidth * i.scale) / 2 + (i.w - i.trueWidth * i.scale) / 2, i.y = -(i.trueHeight - i.trueHeight * i.scale) / 2 + (i.h - i.trueHeight * i.scale) / 2, i.loading = !1, i.autoCrop && i.goAutoCrop(), i.$emit("img-load", "success"), i.$emit("imgLoad", "success"), setTimeout(function() {
1595
+ i.showPreview();
1596
+ }, 20);
1597
+ });
1598
+ }, t.onerror = function() {
1599
+ i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
1600
+ }, t.src = this.imgs;
1601
+ }, checkedMode: function() {
1602
+ var i = 1, t = (this.trueWidth, this.trueHeight), o = this.mode.split(" ");
1603
+ switch (o[0]) {
1604
+ case "contain":
1605
+ this.trueWidth > this.w && (i = this.w / this.trueWidth), this.trueHeight * i > this.h && (i = this.h / this.trueHeight);
1606
+ break;
1607
+ case "cover":
1608
+ (t *= i = this.w / this.trueWidth) < this.h && (i = (t = this.h) / this.trueHeight);
1609
+ break;
1610
+ default:
1611
+ try {
1612
+ var r = o[0];
1613
+ if (r.search("px") !== -1 && (r = r.replace("px", ""), i = parseFloat(r) / this.trueWidth), r.search("%") !== -1 && (r = r.replace("%", ""), i = parseFloat(r) / 100 * this.w / this.trueWidth), o.length === 2 && r === "auto") {
1614
+ var l = o[1];
1615
+ l.search("px") !== -1 && (l = l.replace("px", ""), i = (t = parseFloat(l)) / this.trueHeight), l.search("%") !== -1 && (l = l.replace("%", ""), i = (t = parseFloat(l) / 100 * this.h) / this.trueHeight);
1616
+ }
1617
+ } catch {
1618
+ i = 1;
1619
+ }
1620
+ }
1621
+ return i;
1622
+ }, goAutoCrop: function(i, t) {
1623
+ if (this.imgs !== "" && this.imgs !== null) {
1624
+ this.clearCrop(), this.cropping = !0;
1625
+ var o = this.w, r = this.h;
1626
+ if (this.centerBox) {
1627
+ var l = this.trueWidth * this.scale, g = this.trueHeight * this.scale;
1628
+ o = l < o ? l : o, r = g < r ? g : r;
1629
+ }
1630
+ var m = i || parseFloat(this.autoCropWidth), y = t || parseFloat(this.autoCropHeight);
1631
+ m !== 0 && y !== 0 || (m = 0.8 * o, y = 0.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);
1632
+ }
1633
+ }, changeCrop: function(i, t) {
1634
+ var o = this;
1635
+ if (this.centerBox) {
1636
+ var r = this.getImgAxis();
1637
+ i > r.x2 - r.x1 && (t = (i = r.x2 - r.x1) / this.fixedNumber[0] * this.fixedNumber[1]), t > r.y2 - r.y1 && (i = (t = r.y2 - r.y1) / this.fixedNumber[1] * this.fixedNumber[0]);
1638
+ }
1639
+ this.cropW = i, this.cropH = t, this.checkCropLimitSize(), this.$nextTick(function() {
1640
+ o.cropOffsertX = (o.w - o.cropW) / 2, o.cropOffsertY = (o.h - o.cropH) / 2, o.centerBox && o.moveCrop(null, !0);
1641
+ });
1642
+ }, refresh: function() {
1643
+ var i = this;
1644
+ 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() {
1645
+ i.checkedImg();
1646
+ });
1647
+ }, rotateLeft: function() {
1648
+ this.rotate = this.rotate <= -3 ? 0 : this.rotate - 1;
1649
+ }, rotateRight: function() {
1650
+ this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
1651
+ }, rotateClear: function() {
1652
+ this.rotate = 0;
1653
+ }, checkoutImgAxis: function(i, t, o) {
1654
+ i = i || this.x, t = t || this.y, o = o || this.scale;
1655
+ var r = !0;
1656
+ if (this.centerBox) {
1657
+ var l = this.getImgAxis(i, t, o), g = this.getCropAxis();
1658
+ l.x1 >= g.x1 && (r = !1), l.x2 <= g.x2 && (r = !1), l.y1 >= g.y1 && (r = !1), l.y2 <= g.y2 && (r = !1);
1659
+ }
1660
+ return r;
1661
+ } }, mounted: function() {
1662
+ this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
1663
+ var i = this, t = navigator.userAgent;
1664
+ this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(o, r, l) {
1665
+ for (var g = atob(this.toDataURL(r, l).split(",")[1]), m = g.length, y = new Uint8Array(m), C = 0; C < m; C++)
1666
+ y[C] = g.charCodeAt(C);
1667
+ o(new Blob([y], { type: i.type || "image/png" }));
1668
+ } }), this.showPreview(), this.checkedImg();
1669
+ }, destroyed: function() {
1670
+ window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
1671
+ } };
1672
+ u(1);
1673
+ var L = function(i, t, o, r, l, g, m, y) {
1674
+ var C, c = typeof i == "function" ? i.options : i;
1675
+ if (t && (c.render = t, c.staticRenderFns = o, c._compiled = !0), r && (c.functional = !0), g && (c._scopeId = "data-v-" + g), m ? (C = function(f) {
1676
+ (f = f || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ > "u" || (f = __VUE_SSR_CONTEXT__), l && l.call(this, f), f && f._registeredComponents && f._registeredComponents.add(m);
1677
+ }, c._ssrRegister = C) : l && (C = y ? function() {
1678
+ l.call(this, this.$root.$options.shadowRoot);
1679
+ } : l), C)
1680
+ if (c.functional) {
1681
+ c._injectStyles = C;
1682
+ var h = c.render;
1683
+ c.render = function(f, w) {
1684
+ return C.call(w), h(f, w);
1685
+ };
1686
+ } else {
1687
+ var p = c.beforeCreate;
1688
+ c.beforeCreate = p ? [].concat(p, C) : [C];
1689
+ }
1690
+ return { exports: i, options: c };
1691
+ }(S, d, [], !1, null, "6dae58fd", null);
1692
+ L.options.__file = "src/vue-cropper.vue";
1693
+ var k = L.exports;
1694
+ u.d(a, "VueCropper", function() {
1695
+ return k;
1696
+ });
1697
+ var T = function(i) {
1698
+ i.component("VueCropper", k);
1699
+ };
1700
+ typeof window < "u" && window.Vue && T(window.Vue), a.default = { version: "0.5.5", install: T, VueCropper: k, vueCropper: k };
1701
+ }]);
1702
+ });
1703
+ })(N);
1704
+ const Se = {
1705
+ data() {
1706
+ return {
1707
+ width: "800px",
1708
+ visible: !1,
1709
+ id: null,
1710
+ confirmLoading: !1,
1711
+ fileList: [],
1712
+ uploading: !1,
1713
+ options: {
1714
+ img: "",
1715
+ autoCrop: !0,
1716
+ autoCropWidth: 200,
1717
+ autoCropHeight: 200,
1718
+ fixedBox: !0
1719
+ },
1720
+ previews: {},
1721
+ fullscreen: !1
1722
+ };
1723
+ },
1724
+ computed: {
1725
+ modalStyle() {
1726
+ return this.fullscreen ? {
1727
+ width: "100%",
1728
+ dialogStyle: {
1729
+ top: "0px"
1730
+ }
1731
+ } : {
1732
+ width: this.width,
1733
+ dialogStyle: {
1734
+ top: "40px"
1735
+ }
1736
+ };
1737
+ }
1738
+ },
1739
+ components: {
1740
+ VueCropper: N.exports.VueCropper
1741
+ },
1742
+ methods: {
1743
+ toggleFullscreen() {
1744
+ this.fullscreen = !this.fullscreen;
1745
+ },
1746
+ edit(s) {
1747
+ this.fullscreen = !1, this.visible = !0, this.id = s;
1748
+ },
1749
+ close() {
1750
+ this.id = null, this.visible = !1;
1751
+ },
1752
+ cancelHandel() {
1753
+ this.close();
1754
+ },
1755
+ changeScale(s) {
1756
+ s = s || 1, this.$refs.cropper.changeScale(s);
1757
+ },
1758
+ rotateLeft() {
1759
+ this.$refs.cropper.rotateLeft();
1760
+ },
1761
+ rotateRight() {
1762
+ this.$refs.cropper.rotateRight();
1763
+ },
1764
+ beforeUpload(s) {
1765
+ this.fileList = s;
1766
+ const e = new FileReader();
1767
+ return e.readAsDataURL(s), e.onload = () => {
1768
+ this.options.img = e.result;
1769
+ }, !1;
1770
+ },
1771
+ finish(s) {
1772
+ s === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
1773
+ const n = new window.File([e], this.fileList.name, {
1774
+ type: this.fileList.type
1775
+ }), a = new FormData();
1776
+ a.append("file", n), te(a).then((u) => {
1777
+ u.success ? this.updateAvatar(u.data) : (this.uploading = !1, this.$message.error(u.message));
1778
+ });
1779
+ })) : this.$refs.cropper.getCropData((e) => {
1780
+ });
1781
+ },
1782
+ updateAvatar(s) {
1783
+ const e = {
1784
+ id: this.id,
1785
+ avatar: s
1786
+ };
1787
+ J(e).then((n) => {
1788
+ this.uploading = !1, n.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") + n.message), this.$emit("ok", s);
1789
+ }).catch((n) => {
1790
+ this.$emit("ok", s);
1791
+ });
1792
+ },
1793
+ realTime(s) {
1794
+ this.previews = s;
1795
+ },
1796
+ doEvent(s) {
1797
+ let e = s.item.functionName;
1798
+ this[e] && this[e]();
1799
+ }
1800
+ }
1801
+ };
1802
+ var Ie = function() {
1803
+ var e = this, n = e._self._c;
1804
+ return n("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) {
1805
+ e.visible = a;
1806
+ }, closed: e.cancelHandel } }, [n("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" }), n("div", { staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [n("el-row", [n("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [n("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), n("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [n("div", { staticClass: "avatar-upload-preview" }, [n("img", { style: e.previews.img, attrs: { src: e.previews.url } })])])], 1), n("br"), n("el-row", [n("el-col", { attrs: { lg: 3, md: 3 } }, [n("el-upload", { attrs: { name: "file", action: "", beforeUpload: e.beforeUpload, showUploadList: !1 } }, [n("el-button", { staticClass: "el-icon-upload2" }, [e._v(e._s(e.$i18nt("gd.account.selectPicture", "\u9009\u62E9\u56FE\u7247")))])], 1)], 1), n("el-col", { attrs: { lg: { span: 1, offset: 2 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-plus", on: { click: function(a) {
1807
+ return e.changeScale(1);
1808
+ } } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
1809
+ return e.changeScale(-1);
1810
+ } } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-refresh-left", on: { click: e.rotateLeft } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-refresh-right", on: { click: e.rotateRight } })], 1), n("el-col", { attrs: { lg: { span: 2, offset: 6 }, md: 2 } }, [n("el-button", { attrs: { type: "primary", loading: e.uploading }, on: { click: function(a) {
1811
+ return e.finish("blob");
1812
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
1813
+ }, ke = [], Le = /* @__PURE__ */ H(
1814
+ Se,
1815
+ Ie,
1816
+ ke,
1817
+ !1,
1818
+ null,
1819
+ "1fe51f00",
1820
+ null,
1821
+ null
1822
+ );
1823
+ const Te = Le.exports, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1824
+ __proto__: null,
1825
+ default: Te
1826
+ }, Symbol.toStringTag, { value: "Module" }));
1827
+ const Ee = {
1828
+ props: {
1829
+ isShow: {
1830
+ type: Boolean,
1831
+ default() {
1832
+ return !1;
1833
+ }
1834
+ }
1835
+ },
1836
+ data() {
1837
+ return {
1838
+ sysViewButtons: [
1839
+ {
1840
+ displayName: "\u786E\u5B9A",
1841
+ functionName: "handleSubmit",
1842
+ show: !0,
1843
+ transKey: "gd.btn.confirm",
1844
+ icon: "el-icon-document-checked"
1845
+ }
1846
+ ],
1847
+ confirmLoading: !1,
1848
+ visible: !1,
1849
+ userId: "",
1850
+ width: "600px",
1851
+ min: 0,
1852
+ messageTip: "",
1853
+ messageTipErr: "",
1854
+ lenMax: 0,
1855
+ lenMin: 0,
1856
+ maskValue: "",
1857
+ pattern: null,
1858
+ fullscreen: !1,
1859
+ disabled: !0,
1860
+ code: "",
1861
+ num: 0,
1862
+ ruleForm: {}
1863
+ };
1864
+ },
1865
+ computed: {
1866
+ modalStyle() {
1867
+ return this.fullscreen ? {
1868
+ width: "100%",
1869
+ dialogStyle: {
1870
+ top: "0px"
1871
+ }
1872
+ } : {
1873
+ width: this.width,
1874
+ dialogStyle: {
1875
+ top: "40px"
1876
+ }
1877
+ };
1878
+ },
1879
+ title() {
1880
+ return this.num == 1 ? this.$i18nt("gd.account.changePaw", "\u4FEE\u6539\u5BC6\u7801") : this.$i18nt("gd.account.userBinding", "\u7528\u6237\u7ED1\u5B9A");
1881
+ },
1882
+ ...W(["labelPosition"])
1883
+ },
1884
+ methods: {
1885
+ toggleFullscreen() {
1886
+ this.fullscreen = !this.fullscreen;
1887
+ },
1888
+ open(s, e, n) {
1889
+ this.fullscreen = !1, this.userId = s, this.code = e, this.num = n, this.num == 1 ? this.getConfigInfo() : this.$nextTick(() => {
1890
+ this.formUpdPwd.setFieldsValue({
1891
+ account: this.userId
1892
+ });
1893
+ }), this.visible = !0;
1894
+ },
1895
+ getConfigInfo(s) {
1896
+ K().then((e) => {
1897
+ 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(
1898
+ `^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
1899
+ ) : 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;
1900
+ });
1901
+ },
1902
+ handleSubmit() {
1903
+ this.$refs.ruleForm.validate((s) => {
1904
+ if (s) {
1905
+ this.confirmLoading = !0;
1906
+ let e;
1907
+ this.num == 1 ? e = {
1908
+ accountName: this.userId,
1909
+ passWord: this.ruleForm.password,
1910
+ newPassword: this.ruleForm.newPassword
1911
+ } : e = {
1912
+ account: this.ruleForm.account,
1913
+ password: this.ruleForm.password,
1914
+ corpCode: this.code
1915
+ }, (this.num == 1 ? Q : ee)(e).then((a) => {
1916
+ 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);
1917
+ }).finally((a) => {
1918
+ this.confirmLoading = !1;
1919
+ });
1920
+ }
1921
+ });
1922
+ },
1923
+ handleCancel() {
1924
+ this.$refs.ruleForm.resetFields(), this.visible = !1;
1925
+ },
1926
+ compareToFirstPassword(s, e, n) {
1927
+ e && e !== this.ruleForm.newPassword ? n(this.$i18nt("gd.account.repeatPawTiperr", " \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")) : n();
1928
+ },
1929
+ oldtPassword(s, e, n) {
1930
+ e && e === this.ruleForm.password ? n(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : n();
1931
+ },
1932
+ doEvent(s) {
1933
+ let e = s.item.functionName;
1934
+ this[e] && this[e]();
1935
+ }
1936
+ }
1937
+ };
1938
+ var Oe = function() {
1939
+ var e = this, n = e._self._c;
1940
+ return n("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) {
1941
+ e.visible = a;
1942
+ }, closed: e.handleCancel } }, [n("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" }), n("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" } }, [n("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(a) {
1943
+ a.preventDefault();
1944
+ } } }, [e.num == 1 ? n("div", [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.originalPaw", "\u539F\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input") }] } }, [n("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.password, callback: function(a) {
1945
+ e.$set(e.ruleForm, "password", a);
1946
+ }, expression: "ruleForm.password" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [
1947
+ { required: !0, min: e.min, message: e.messageTip },
1948
+ {
1949
+ pattern: e.pattern,
1950
+ message: e.messageTipErr
1951
+ },
1952
+ { validator: e.oldtPassword }
1953
+ ] } }, [n("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.newPassword, callback: function(a) {
1954
+ e.$set(e.ruleForm, "newPassword", a);
1955
+ }, expression: "ruleForm.newPassword" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw", "\u91CD\u590D\u65B0\u5BC6\u7801"), prop: "confirm", rules: [
1956
+ { required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") },
1957
+ { validator: e.compareToFirstPassword }
1958
+ ] } }, [n("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.confirm, callback: function(a) {
1959
+ e.$set(e.ruleForm, "confirm", a);
1960
+ }, expression: "ruleForm.confirm" } })], 1)], 1) : n("div", [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.loginID", "\u8D26\u53F7"), prop: "account", rules: [
1961
+ {
1962
+ required: !0,
1963
+ message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
1964
+ }
1965
+ ] } }, [n("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) {
1966
+ e.$set(e.ruleForm, "account", a);
1967
+ }, expression: "ruleForm.account" } })], 1), n("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") }] } }, [n("el-input", { attrs: { maxlength: 18, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "show-password": "" }, model: { value: e.ruleForm.password, callback: function(a) {
1968
+ e.$set(e.ruleForm, "password", a);
1969
+ }, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
1970
+ }, He = [], We = /* @__PURE__ */ H(
1971
+ Ee,
1972
+ Oe,
1973
+ He,
1974
+ !1,
1975
+ null,
1976
+ "1d4e1c11",
1977
+ null,
1978
+ null
1979
+ );
1980
+ const U = We.exports, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1981
+ __proto__: null,
1982
+ default: U
1983
+ }, Symbol.toStringTag, { value: "Module" }));
1984
+ const Pe = {
1985
+ props: {
1986
+ isClear: {
1987
+ type: Number,
1988
+ default: 1
1989
+ }
1990
+ },
1991
+ components: {
1992
+ UpdPwd: U
1993
+ },
1994
+ data() {
1995
+ return {
1996
+ visible: !1,
1997
+ qrCodeUrl: "//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",
1998
+ code: "",
1999
+ logTitle: "",
2000
+ num: 1,
2001
+ wwLogin: null,
2002
+ confirmLoading: !1,
2003
+ isInitialize: null,
2004
+ pwdExpiration: "",
2005
+ setDate: void 0,
2006
+ currentTime: void 0,
2007
+ diff: void 0,
2008
+ diffDate: void 0,
2009
+ state: "",
2010
+ isWeComLogin: !1,
2011
+ wxUserId: null,
2012
+ appId: "",
2013
+ agentId: "",
2014
+ redirectURL: "",
2015
+ titleWidth: "504px",
2016
+ num1: 0
2017
+ };
2018
+ },
2019
+ computed: {
2020
+ style() {
2021
+ return {
2022
+ "--color": this.primaryColor
2023
+ };
2024
+ },
2025
+ titleTip() {
2026
+ return this.num == 1 ? $i18nt("gd.account.loading") : "";
2027
+ },
2028
+ ...W(["userInfo", "language", "primaryColor"])
2029
+ },
2030
+ mounted() {
2031
+ },
2032
+ methods: {
2033
+ open(s, e) {
2034
+ this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(s);
2035
+ },
2036
+ getWeChat(s) {
2037
+ let e = this;
2038
+ s.data.forEach((n, a) => {
2039
+ n.code == "GDS_ENTERPRISE_WECHAT_CropID" && (e.appId = n.value), n.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = n.value), n.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = n.value);
2040
+ }), setTimeout(() => {
2041
+ e.wwLogin = ww.createWWLoginPanel({
2042
+ el: "#wx_qrcode",
2043
+ params: {
2044
+ login_type: "CorpApp",
2045
+ appid: e.appId,
2046
+ agentid: e.agentId,
2047
+ redirect_uri: e.redirectURL,
2048
+ state: "loginState",
2049
+ redirect_type: "callback",
2050
+ panel_size: e.language == "zh_CN" ? "small" : "middle",
2051
+ lang: e.language == "zh_CN" ? "zh" : "en"
2052
+ },
2053
+ onCheckWeComLogin({ isWeComLogin: n }) {
2054
+ e.isWeComLogin = n, e.num1 = e.isWeComLogin == !0 ? 1 : 0;
2055
+ },
2056
+ onLoginSuccess({ code: n }) {
2057
+ e.code = n, e.$refs.updPwd.open(e.userInfo.account, n, 2), e.visible = !1;
2058
+ },
2059
+ onLoginFail(n) {
2060
+ }
2061
+ });
2062
+ }, 500);
2063
+ },
2064
+ handleCancel() {
2065
+ this.confirmLoading = !1, this.visible = !1, this.$refs.wx_qrcode.innerHTML = "";
2066
+ }
2067
+ }
2068
+ };
2069
+ var Xe = function() {
2070
+ var e = this, n = e._self._c;
2071
+ return n("div", [n("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) {
2072
+ e.visible = a;
2073
+ }, closed: e.handleCancel } }, [n("div", { staticClass: "main", style: e.style }, [e.num == 1 ? n("div", [n("div", { ref: "wx_qrcode", style: e.num1 == 0 ? "height: 290px;" : "height: 290px", attrs: { id: "wx_qrcode" } }), n("div", { class: e.num1 == 0 ? "div_top" : "div_topno" }), n("div", { class: e.num1 == 0 ? "div_bottom" : "" })]) : e._e()])]), n("upd-pwd", { ref: "updPwd" })], 1);
2074
+ }, Fe = [], Ye = /* @__PURE__ */ H(
2075
+ Pe,
2076
+ Xe,
2077
+ Fe,
2078
+ !1,
2079
+ null,
2080
+ "55ede8aa",
2081
+ null,
2082
+ null
2083
+ );
2084
+ const Re = Ye.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2085
+ __proto__: null,
2086
+ default: Re
2087
+ }, Symbol.toStringTag, { value: "Module" }));
2088
+ export {
2089
+ P as G,
2090
+ X as a,
2091
+ Y as b,
2092
+ F as c
2093
+ };