gds-plus-design-vue 1.2.63 → 1.2.72

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 (403) hide show
  1. package/lib/addPermission.e559c495.js +1 -0
  2. package/lib/{addPermission.9fc97a47.mjs → addPermission.f2eb7564.mjs} +127 -105
  3. package/lib/approvalModel.2b97fdf8.js +1 -0
  4. package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b3cb5c5.mjs} +7 -7
  5. package/lib/attribute.4f814780.mjs +367 -0
  6. package/lib/attribute.7b4971f5.js +1 -0
  7. package/lib/businessRules.4f7349f3.js +1 -0
  8. package/lib/{businessRules.db6ba874.mjs → businessRules.7ca458f8.mjs} +191 -190
  9. package/lib/buttonRule.4aa9cfd8.mjs +396 -0
  10. package/lib/buttonRule.ba9528ab.js +1 -0
  11. package/lib/chartDisplayRules.25489412.js +1 -0
  12. package/lib/chartDisplayRules.63e53aa7.mjs +288 -0
  13. package/lib/components.chartbi.13a8a7b5.js +8 -0
  14. package/lib/components.chartbi.7356b244.mjs +1813 -0
  15. package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.20f8b336.mjs} +2 -2
  16. package/lib/{components.coloreditor.779a9419.js → components.coloreditor.8afc4731.js} +1 -1
  17. package/lib/{components.dataassign.1853ed5c.js → components.dataassign.59a87bfd.js} +1 -1
  18. package/lib/{components.dataassign.56632583.mjs → components.dataassign.e398cc99.mjs} +3 -3
  19. package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.17e42353.mjs} +416 -399
  20. package/lib/components.echarts.5dea23f6.js +4 -0
  21. package/lib/{components.exception.cc2f4ca3.mjs → components.exception.8689aba2.mjs} +1 -1
  22. package/lib/{components.exception.3cc33e29.js → components.exception.b4ddeaba.js} +1 -1
  23. package/lib/{components.form.91d5ed3e.js → components.form.14ed3374.js} +19 -19
  24. package/lib/{components.form.3344c817.mjs → components.form.8047a9c3.mjs} +1118 -1090
  25. package/lib/{components.globalheader.07a90c4b.js → components.globalheader.5418b5ec.js} +1 -1
  26. package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
  27. package/lib/components.iconselector.4b5b7901.js +1 -0
  28. package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.d2d970ba.mjs} +7 -3
  29. package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.0563c338.mjs} +4 -4
  30. package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.5fe318f7.js} +1 -1
  31. package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
  32. package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.f18b2da3.js} +1 -1
  33. package/lib/{components.middleware.457b1182.mjs → components.middleware.24511f17.mjs} +5 -4
  34. package/lib/components.middleware.64b6a988.js +1 -0
  35. package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.4f454200.mjs} +1 -1
  36. package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.d7ef34cb.js} +1 -1
  37. package/lib/{components.multitab.8441aa6b.mjs → components.multitab.15b91668.mjs} +1 -1
  38. package/lib/{components.multitab.82fd0544.js → components.multitab.92eb4b1e.js} +1 -1
  39. package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.c615fe3e.mjs} +1 -1
  40. package/lib/{components.selecttree.d710a362.js → components.selecttree.ce4fbb44.js} +1 -1
  41. package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.4581f5b1.js} +1 -1
  42. package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.bdd68e73.mjs} +21 -21
  43. package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.c40eee2e.mjs} +2 -2
  44. package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.cd6d0301.js} +1 -1
  45. package/lib/components.sidenavmenu.1f0bbfca.js +1 -0
  46. package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.47d7f44a.mjs} +448 -632
  47. package/lib/{components.statuschange.ed1218a4.js → components.statuschange.190f14ff.js} +1 -1
  48. package/lib/{components.statuschange.15938660.mjs → components.statuschange.85956695.mjs} +3 -3
  49. package/lib/{components.table.e3e5e3bc.mjs → components.table.389ab22a.mjs} +331 -316
  50. package/lib/{components.table.17c02054.js → components.table.d016f609.js} +3 -3
  51. package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.750ec792.mjs} +7 -4
  52. package/lib/components.tableumy.aa73378d.js +1 -0
  53. package/lib/components.tablevirtual.879ff28f.js +1 -0
  54. package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.9bf87b78.mjs} +7 -4
  55. package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.b9f112cf.mjs} +3 -3
  56. package/lib/{components.teamsharing.05503821.js → components.teamsharing.efe58448.js} +1 -1
  57. package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.065f3dee.mjs} +1 -1
  58. package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.edf8e4ca.js} +1 -1
  59. package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0439b870.mjs} +2 -2
  60. package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.586aca36.js} +1 -1
  61. package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.2324089d.js} +1 -1
  62. package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.5f2194ff.mjs} +2 -2
  63. package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.863ff11e.js} +1 -1
  64. package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
  65. package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.1236a66e.mjs} +94 -61
  66. package/lib/components.viewformdetails.328c8642.js +1 -0
  67. package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.5761b277.mjs} +54 -51
  68. package/lib/components.viewloading.5b9c8fee.js +1 -0
  69. package/lib/{components.watermark.da3d7220.js → components.watermark.af8b5718.js} +1 -1
  70. package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.d3638d63.mjs} +1 -1
  71. package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.8c121797.js} +1 -1
  72. package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.a1b7b087.mjs} +4 -4
  73. package/lib/components.xlsximport.c53c50f6.js +1 -0
  74. package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.d39bfeaa.mjs} +541 -532
  75. package/lib/copy.3b06d60f.mjs +572 -0
  76. package/lib/copy.fa2fcb22.js +1 -0
  77. package/lib/createFile.526dd6db.js +1 -0
  78. package/lib/createFile.c8d65b52.mjs +439 -0
  79. package/lib/createSubfolders.51df8fcd.js +1 -0
  80. package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.f8cad77f.mjs} +7 -7
  81. package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.539feafb.mjs} +2 -2
  82. package/lib/{dialogLayout.08823bb7.js → dialogLayout.621a3d40.js} +1 -1
  83. package/lib/drawerContainer.790b0ee6.mjs +163 -0
  84. package/lib/drawerContainer.c971d22d.js +1 -0
  85. package/lib/{drawerLayout.36cf4d05.js → drawerLayout.accd44be.js} +1 -1
  86. package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.c52b8374.mjs} +2 -2
  87. package/lib/editForm.83d10fae.mjs +434 -0
  88. package/lib/editForm.e284e5ec.js +1 -0
  89. package/lib/extendedAttributes.bfff1926.js +1 -0
  90. package/lib/extendedAttributes.e6b11c68.mjs +293 -0
  91. package/lib/{fileSearch.86c356fe.mjs → fileSearch.423b64a3.mjs} +140 -115
  92. package/lib/fileSearch.e849491c.js +1 -0
  93. package/lib/{flow.designer.6da03949.mjs → flow.designer.5feba43c.mjs} +3184 -3197
  94. package/lib/flow.designer.85d0054b.js +1 -0
  95. package/lib/{flow.list.03694808.mjs → flow.list.82131d80.mjs} +234 -232
  96. package/lib/flow.list.e001d91a.js +1 -0
  97. package/lib/form.build.19f0c882.js +1 -0
  98. package/lib/{form.build.b768d613.mjs → form.build.33cc213e.mjs} +22 -14
  99. package/lib/form.designer.build.2bcc355d.js +1 -0
  100. package/lib/form.designer.build.7dc12e87.mjs +2529 -0
  101. package/lib/formFiled.40284ed9.js +1 -0
  102. package/lib/{formFiled.fe7d9df3.mjs → formFiled.5a1c8f7f.mjs} +15 -13
  103. package/lib/gd-initial.js +1 -1
  104. package/lib/gd-initial.mjs +231 -207
  105. package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
  106. package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
  107. package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
  108. package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
  109. package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
  110. package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
  111. package/lib/http.filedocument.6fdfc693.js +1 -0
  112. package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
  113. package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
  114. package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
  115. package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
  116. package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
  117. package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
  118. package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
  119. package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
  120. package/lib/http.rolemanage.4d1101dd.js +1 -0
  121. package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
  122. package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
  123. package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
  124. package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
  125. package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
  126. package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
  127. package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
  128. package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
  129. package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
  130. package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
  131. package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
  132. package/lib/index.07adebf0.js +8 -0
  133. package/lib/index.340d6f00.mjs +25906 -0
  134. package/lib/layoutBlocks.756e4b57.js +1 -0
  135. package/lib/layoutBlocks.816b49a7.mjs +413 -0
  136. package/lib/layoutItem.051495bc.mjs +71 -0
  137. package/lib/layoutItem.6f6017a5.js +1 -0
  138. package/lib/{layouts.051a0bba.mjs → layouts.1852e8e4.mjs} +19 -22
  139. package/lib/{layouts.a6a36612.js → layouts.2030bf01.js} +2 -2
  140. package/lib/main.0dc447c8.js +1 -0
  141. package/lib/main.12118407.mjs +552 -0
  142. package/lib/main.1551de4d.js +1 -0
  143. package/lib/main.1611bb43.js +1 -0
  144. package/lib/{main.70357352.mjs → main.26d3511c.mjs} +6 -6
  145. package/lib/{main.7f44e3bf.mjs → main.2f9312bb.mjs} +40 -50
  146. package/lib/main.316ac1b8.js +1 -0
  147. package/lib/main.48dc325f.mjs +231 -0
  148. package/lib/main.54ac9faa.mjs +189 -0
  149. package/lib/main.69a2b457.mjs +166 -0
  150. package/lib/{main.ad1e8d4d.js → main.6df74fe7.js} +1 -1
  151. package/lib/main.72c15ab0.js +1 -0
  152. package/lib/{main.8a2a590d.js → main.736883a9.js} +1 -1
  153. package/lib/main.9b2769b1.js +1 -0
  154. package/lib/main.b2314767.mjs +323 -0
  155. package/lib/{main.c1df94d8.mjs → main.ca46939e.mjs} +2 -2
  156. package/lib/main.e1cf9798.js +1 -0
  157. package/lib/{main.b0e5e1b0.mjs → main.efc8dc7b.mjs} +2 -2
  158. package/lib/main.fc38c7c8.mjs +537 -0
  159. package/lib/main.fcb67463.js +1 -0
  160. package/lib/{manage.a1df9b88.mjs → manage.1bc511ff.mjs} +162 -140
  161. package/lib/manage.eb0a6c8c.js +1 -0
  162. package/lib/messages.fieldconfiguration.092bb027.js +1 -0
  163. package/lib/messages.fieldconfiguration.7fd9ceb0.mjs +1097 -0
  164. package/lib/messages.messagetemplate.0935e5a3.mjs +1319 -0
  165. package/lib/messages.messagetemplate.50334e5f.js +7 -0
  166. package/lib/messages.sendplan.60929f46.js +1 -0
  167. package/lib/messages.sendplan.61edcc7f.mjs +1054 -0
  168. package/lib/messages.sendrecord.09a1d1cd.js +2 -0
  169. package/lib/messages.sendrecord.1c48aa6e.mjs +651 -0
  170. package/lib/messages.templatelibrary.f31e8d58.mjs +808 -0
  171. package/lib/messages.templatelibrary.f5952edd.js +2 -0
  172. package/lib/mobile.designer.componentstree.365945a3.js +1 -0
  173. package/lib/mobile.designer.componentstree.9439895e.mjs +2064 -0
  174. package/lib/mobile.designer.menutree.4d4e059b.js +1 -0
  175. package/lib/mobile.designer.menutree.7d3b783d.mjs +1036 -0
  176. package/lib/moveFile.3dc1dc37.mjs +276 -0
  177. package/lib/moveFile.f70bbff7.js +1 -0
  178. package/lib/{page.build.846096e6.js → page.build.7ac1ee9b.js} +3 -3
  179. package/lib/{page.build.685c1e15.mjs → page.build.ae61a39b.mjs} +607 -601
  180. package/lib/page.designer.componentstree.74a3a114.js +1 -0
  181. package/lib/page.designer.componentstree.cdabec2d.mjs +2958 -0
  182. package/lib/page.designer.fieldfiltering.e341aa60.mjs +430 -0
  183. package/lib/page.designer.fieldfiltering.f2d1b6e4.js +1 -0
  184. package/lib/page.designer.menutree.71c18258.js +1 -0
  185. package/lib/page.designer.menutree.e4ce1e90.mjs +5952 -0
  186. package/lib/page.designer.operation.1d435e6e.js +1 -0
  187. package/lib/page.designer.operation.fe808988.mjs +44 -0
  188. package/lib/page.designer.page.654634aa.js +1 -0
  189. package/lib/page.designer.page.821f8994.mjs +10638 -0
  190. package/lib/personal.echarts.118bcafb.mjs +268 -0
  191. package/lib/personal.echarts.e5915542.js +1 -0
  192. package/lib/result.4d4039ea.js +1 -0
  193. package/lib/result.a87217ae.mjs +639 -0
  194. package/lib/router.config.a09f29e7.js +1 -0
  195. package/lib/router.config.f0ad16fd.mjs +1424 -0
  196. package/lib/solution.application.8d6c84e8.js +1 -0
  197. package/lib/solution.application.e6b5dc4f.mjs +548 -0
  198. package/lib/solution.applicationmenu.c6cd2b59.js +1 -0
  199. package/lib/solution.applicationmenu.e878c41a.mjs +508 -0
  200. package/lib/solution.approvalflow.79da028c.js +1 -0
  201. package/lib/solution.approvalflow.eb1c0607.mjs +436 -0
  202. package/lib/solution.dict.088a1e72.mjs +769 -0
  203. package/lib/solution.dict.1d5195d0.js +1 -0
  204. package/lib/solution.menu.e58922fe.mjs +432 -0
  205. package/lib/solution.menu.fa48a7e8.js +1 -0
  206. package/lib/solution.plugin.5d6d29cf.js +1 -0
  207. package/lib/solution.plugin.ae6df926.mjs +347 -0
  208. package/lib/solution.processflow.62936f1c.mjs +392 -0
  209. package/lib/solution.processflow.aa1e808b.js +1 -0
  210. package/lib/solution.role.2eff83a1.js +1 -0
  211. package/lib/solution.role.7b3e7030.mjs +456 -0
  212. package/lib/solution.webresources.88c4483b.mjs +379 -0
  213. package/lib/solution.webresources.bc00603d.js +1 -0
  214. package/lib/solution.workflow.0ed2cb24.js +1 -0
  215. package/lib/solution.workflow.85de0ae5.mjs +395 -0
  216. package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
  217. package/lib/store.config.556bd56b.js +1 -0
  218. package/lib/style.css +3 -3
  219. package/lib/{system.account.014f3e0b.mjs → system.account.3d7480ba.mjs} +877 -881
  220. package/lib/{system.account.0d4f1fdc.js → system.account.93ad722e.js} +7 -7
  221. package/lib/{system.config.0899edb8.mjs → system.config.6084ad21.mjs} +1 -1
  222. package/lib/{system.config.210f516c.js → system.config.9520e7f9.js} +1 -1
  223. package/lib/{system.datasource.82492d27.js → system.datasource.76c0ccdb.js} +1 -1
  224. package/lib/{system.datasource.986768c9.mjs → system.datasource.d74df021.mjs} +1 -1
  225. package/lib/system.dict.ab148847.js +1 -0
  226. package/lib/{system.dict.ef24873d.mjs → system.dict.caad4d66.mjs} +264 -260
  227. package/lib/system.document.0e46ff8c.js +1 -0
  228. package/lib/system.document.cbdf25a9.mjs +667 -0
  229. package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.46e182d7.mjs} +245 -265
  230. package/lib/system.duplicatechecking.a217fc52.js +1 -0
  231. package/lib/system.email.1db14214.js +1 -0
  232. package/lib/{system.email.252fd642.mjs → system.email.c1ad6598.mjs} +10 -15
  233. package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.2e55e839.mjs} +370 -361
  234. package/lib/system.fieldsecurity.40b4f48a.js +1 -0
  235. package/lib/system.file.6a6bd77c.js +1 -0
  236. package/lib/{system.file.73eeb731.mjs → system.file.80aa0809.mjs} +81 -149
  237. package/lib/{system.log.b86cf57f.mjs → system.log.3986a8ca.mjs} +1 -1
  238. package/lib/{system.log.fc60f5e6.js → system.log.9d394678.js} +1 -1
  239. package/lib/{system.machine.0114001b.mjs → system.machine.395c67c2.mjs} +1 -1
  240. package/lib/{system.machine.f1d95c86.js → system.machine.d33b0b6e.js} +1 -1
  241. package/lib/system.notice.2090c130.js +1 -0
  242. package/lib/{system.notice.25ea8dca.mjs → system.notice.51880df6.mjs} +994 -992
  243. package/lib/system.noticereceived.0b79642e.js +1 -0
  244. package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.55f276ab.mjs} +10 -11
  245. package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.71034956.mjs} +37 -26
  246. package/lib/system.onlineuser.e74f010d.js +1 -0
  247. package/lib/{system.org.c20fe6b2.mjs → system.org.e1e156c6.mjs} +2 -2
  248. package/lib/{system.org.79ee5bd6.js → system.org.f6d58d0f.js} +1 -1
  249. package/lib/system.permissions.4090552f.mjs +972 -0
  250. package/lib/system.permissions.fdb64929.js +1 -0
  251. package/lib/{system.plugin.45a0f530.mjs → system.plugin.8a9a6448.mjs} +500 -479
  252. package/lib/system.plugin.a0f25733.js +1 -0
  253. package/lib/{system.pos.7946a99c.mjs → system.pos.0ad80a53.mjs} +1 -1
  254. package/lib/{system.pos.0a3d2a37.js → system.pos.71f3eba7.js} +1 -1
  255. package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.39607ddb.mjs} +246 -243
  256. package/lib/system.promptmanagement.9718aa24.js +1 -0
  257. package/lib/system.role.321c48d3.js +1 -0
  258. package/lib/{system.role.75da7929.mjs → system.role.3b533a3e.mjs} +511 -488
  259. package/lib/system.sumberrules.6e8d208e.js +1 -0
  260. package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.c2b8c5e7.mjs} +168 -165
  261. package/lib/{system.team.e6a9608e.mjs → system.team.367bf5e7.mjs} +163 -161
  262. package/lib/system.team.cf1c1558.js +1 -0
  263. package/lib/system.teammembers.63f21557.js +1 -0
  264. package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.851ce63b.mjs} +203 -198
  265. package/lib/system.timers.51bedf97.js +38 -0
  266. package/lib/{system.timers.eb0b6f3e.mjs → system.timers.5e735567.mjs} +2261 -2213
  267. package/lib/{system.translation.e34f0891.mjs → system.translation.61765713.mjs} +435 -429
  268. package/lib/system.translation.c9f1b505.js +1 -0
  269. package/lib/{system.user.fa2d2997.mjs → system.user.254bbe85.mjs} +1082 -1026
  270. package/lib/system.user.475d7391.js +14 -0
  271. package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.b96c984a.mjs} +418 -412
  272. package/lib/system.useraffiliation.fe1e1d39.js +1 -0
  273. package/lib/{system.webresource.469db736.mjs → system.webresource.2c6cf4a7.mjs} +179 -179
  274. package/lib/system.webresource.81cfa690.js +1 -0
  275. package/lib/{system.welcome.191e98f5.mjs → system.welcome.72da74ae.mjs} +1 -1
  276. package/lib/{system.welcome.f64e49f8.js → system.welcome.d86a3cdb.js} +1 -1
  277. package/lib/table.definition..btnconfig.24402bf0.mjs +938 -0
  278. package/lib/table.definition..btnconfig.add3d840.js +1 -0
  279. package/lib/table.definition..echartsconfig.4310b5a2.js +1 -0
  280. package/lib/table.definition..echartsconfig.9c3c88f6.mjs +2150 -0
  281. package/lib/tableDescriptions.143d8e67.js +1 -0
  282. package/lib/tableDescriptions.60a07f7c.mjs +80 -0
  283. package/lib/tcheckboxs.e4d387ff.js +1 -0
  284. package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.ee4adb9e.mjs} +2 -2
  285. package/lib/tcurrency.0360c142.mjs +85 -0
  286. package/lib/tcurrency.233f4e63.js +1 -0
  287. package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.9e5d99f4.mjs} +2 -2
  288. package/lib/{tdatepicker.b19e689d.js → tdatepicker.b10536fd.js} +1 -1
  289. package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.10d64c18.js} +1 -1
  290. package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.eed5a945.mjs} +2 -2
  291. package/lib/{tfile.72925615.mjs → tfile.7c635ee4.mjs} +2 -2
  292. package/lib/{tfile.1bc381f9.js → tfile.e183d25f.js} +1 -1
  293. package/lib/{tparticipants.ca5b556c.mjs → tparticipants.04280449.mjs} +2 -2
  294. package/lib/{tparticipants.77b876e2.js → tparticipants.f732d245.js} +1 -1
  295. package/lib/{translation.mains.278e4ba6.mjs → translation.mains.0df71304.mjs} +7 -7
  296. package/lib/{translation.mains.1ce7e110.js → translation.mains.6f941967.js} +1 -1
  297. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  298. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  299. package/lib/utils.plug.js.9313aead.mjs +31 -0
  300. package/lib/utils.plug.js.f62510ce.js +1 -0
  301. package/lib/utils.util.js.333daba2.mjs +439 -0
  302. package/lib/utils.util.js.c0ba699b.js +1 -0
  303. package/lib/versionControl.97590ce8.js +1 -0
  304. package/lib/versionControl.d1b2b0da.mjs +488 -0
  305. package/lib/versionEdit.c51606e4.mjs +452 -0
  306. package/lib/versionEdit.f710d0bb.js +1 -0
  307. package/lib/view.build.5789a6eb.js +1 -0
  308. package/lib/view.build.9976c958.mjs +1578 -0
  309. package/lib/{viewList.5a25c4b6.mjs → viewList.3ca52f0c.mjs} +70 -92
  310. package/lib/viewList.6e181715.js +1 -0
  311. package/lib/viewTree.9bdf96f0.js +1 -0
  312. package/lib/viewTree.c2e11b7f.mjs +409 -0
  313. package/locale/en_US.js +45 -6
  314. package/locale/id_ID.js +45 -6
  315. package/locale/vi_VN.js +45 -6
  316. package/locale/zh_CN.js +45 -5
  317. package/package.json +1 -1
  318. package/lib/addPermission.5036013c.js +0 -1
  319. package/lib/approvalModel.66f49dfb.js +0 -1
  320. package/lib/attribute.318f485c.js +0 -1
  321. package/lib/attribute.a06ac9e7.mjs +0 -237
  322. package/lib/buildItem.6a834227.js +0 -1
  323. package/lib/buildItem.fd8634ab.mjs +0 -205
  324. package/lib/businessRules.0e4dbb3a.js +0 -1
  325. package/lib/components.chartbi.b043dcdc.mjs +0 -1729
  326. package/lib/components.chartbi.e4680eaa.js +0 -7
  327. package/lib/components.echarts.e4d6b13e.js +0 -3
  328. package/lib/components.iconselector.d712170f.js +0 -1
  329. package/lib/components.middleware.3bad5748.js +0 -1
  330. package/lib/components.sidenavmenu.b9bb9304.js +0 -1
  331. package/lib/components.tableumy.9cf33062.js +0 -1
  332. package/lib/components.tablevirtual.38d4d3d8.js +0 -1
  333. package/lib/components.viewformdetails.1621bc18.js +0 -1
  334. package/lib/components.viewloading.807bbf68.js +0 -1
  335. package/lib/components.xlsximport.dbd826bb.js +0 -1
  336. package/lib/createFile.6b37ecf2.js +0 -1
  337. package/lib/createFile.82d6e415.mjs +0 -239
  338. package/lib/createSubfolders.47af629c.js +0 -1
  339. package/lib/drawerContainer.604a1271.mjs +0 -146
  340. package/lib/drawerContainer.6a9813ce.js +0 -1
  341. package/lib/fileSearch.65311ded.js +0 -1
  342. package/lib/flow.designer.1ba3a90d.js +0 -1
  343. package/lib/flow.list.4eb10554.js +0 -1
  344. package/lib/form.build.51bd261e.js +0 -1
  345. package/lib/form.designer.build.5a950455.js +0 -1
  346. package/lib/form.designer.build.e521c9c6.mjs +0 -5091
  347. package/lib/formFiled.464856f5.js +0 -1
  348. package/lib/http.filedocument.7c656b91.js +0 -1
  349. package/lib/http.filedocument.d456d26a.mjs +0 -156
  350. package/lib/http.rolemanage.03363732.js +0 -1
  351. package/lib/index.69ad4631.mjs +0 -44291
  352. package/lib/index.cca024bf.js +0 -8
  353. package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
  354. package/lib/layoutBlocks.5e6be06f.js +0 -1
  355. package/lib/main.457f4326.js +0 -1
  356. package/lib/main.4fff412e.js +0 -1
  357. package/lib/main.77373aa4.mjs +0 -441
  358. package/lib/main.c3726602.js +0 -1
  359. package/lib/manage.5bb4f719.js +0 -1
  360. package/lib/messages.7b74736f.js +0 -9
  361. package/lib/messages.ad082386.mjs +0 -4889
  362. package/lib/moveFile.0ce803e0.js +0 -1
  363. package/lib/moveFile.8310ea94.mjs +0 -254
  364. package/lib/personal.echarts.b22fba61.mjs +0 -701
  365. package/lib/personal.echarts.f77bfc9e.js +0 -1
  366. package/lib/result.19351665.mjs +0 -526
  367. package/lib/result.e59c0e40.js +0 -1
  368. package/lib/router.config.2501ec51.js +0 -1
  369. package/lib/router.config.98a73167.mjs +0 -3172
  370. package/lib/solution.58580123.js +0 -1
  371. package/lib/solution.890ff164.mjs +0 -6942
  372. package/lib/store.config.3cb11578.js +0 -1
  373. package/lib/system.dict.f5708400.js +0 -1
  374. package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
  375. package/lib/system.email.070ab2be.js +0 -1
  376. package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
  377. package/lib/system.file.17a7f2ed.js +0 -1
  378. package/lib/system.notice.96c770a6.js +0 -1
  379. package/lib/system.noticereceived.dfe4ecc7.js +0 -1
  380. package/lib/system.onlineuser.e2e39bdc.js +0 -1
  381. package/lib/system.permissions.90f73461.js +0 -9
  382. package/lib/system.permissions.c3d34921.mjs +0 -213
  383. package/lib/system.plugin.b34a3b47.js +0 -1
  384. package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
  385. package/lib/system.role.03be0982.js +0 -1
  386. package/lib/system.sumberrules.bb228fce.js +0 -1
  387. package/lib/system.team.32183b63.js +0 -1
  388. package/lib/system.teammembers.847d8ea7.js +0 -1
  389. package/lib/system.timers.28691ce4.js +0 -38
  390. package/lib/system.translation.6237f071.js +0 -1
  391. package/lib/system.user.fca3f2d6.js +0 -14
  392. package/lib/system.useraffiliation.7547b9c7.js +0 -1
  393. package/lib/system.webresource.12712b90.js +0 -1
  394. package/lib/tcheckboxs.99361be3.js +0 -1
  395. package/lib/tcurrency.0ddac2f8.mjs +0 -92
  396. package/lib/tcurrency.62763c6d.js +0 -1
  397. package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
  398. package/lib/utils.datepicker.js.8576e2fc.js +0 -1
  399. package/lib/utils.util.js.50d1ec9c.js +0 -1
  400. package/lib/utils.util.js.82cd8447.mjs +0 -424
  401. package/lib/view.build.b44fd7d7.js +0 -1
  402. package/lib/view.build.f2a9fcfb.mjs +0 -2727
  403. package/lib/viewList.be5a5ec5.js +0 -1
@@ -1,13 +1,13 @@
1
- import { m as W, n as H } from "./components.chartbi.b043dcdc.mjs";
1
+ import { m as W, n as H } from "./components.chartbi.7356b244.mjs";
2
2
  import j from "vue";
3
- import { c as V, a as B } from "./http.filemanage.c0de21d6.mjs";
4
- import { s as G, a as q, b as Z, c as K, u as J, B as Q, g as ee, d as te } from "./http.usermanage.3e5eff33.mjs";
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
5
  import { s as ie } from "./http.languagemanage.2ef16159.mjs";
6
6
  import { s as ne } from "./http.currencymanage.c25bd2e6.mjs";
7
7
  import { s as re } from "./http.timezonemanage.b9deffe3.mjs";
8
- import { c as N } from "./components.settingdrawer.a6693034.mjs";
9
- import { a as se } from "./http.appmanage.4554a629.mjs";
10
- import { g as oe, b as ae } from "./http.menumanage.3240ba0d.mjs";
8
+ import { c as z } from "./components.settingdrawer.bdd68e73.mjs";
9
+ import { c as oe } from "./http.appmanage.e389782d.mjs";
10
+ import { g as se, e as ae } from "./http.menumanage.3060f4c7.mjs";
11
11
  import { e as ce } from "./http.loginmanage.05500c29.mjs";
12
12
  const le = {
13
13
  props: {
@@ -56,8 +56,8 @@ const le = {
56
56
  return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
57
57
  },
58
58
  getTitle() {
59
- let o = "", e = this.$route.meta.title;
60
- return e === "\u57FA\u672C\u8BBE\u7F6E" ? o = "basicSettings" : e === "\u5B89\u5168\u8BBE\u7F6E" ? o = "securitySetting" : e === "\u4E2A\u6027\u5316\u8BBE\u7F6E" ? o = "personalization" : e === "\u65B0\u6D88\u606F\u901A\u77E5" ? o = "notify" : e === "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1" && (o = "bindenterpriseWechat"), o === "" ? e : this.$i18nt("gd.account." + o);
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
61
  },
62
62
  ...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
63
63
  },
@@ -65,24 +65,24 @@ const le = {
65
65
  this.updateMenu();
66
66
  },
67
67
  methods: {
68
- onOpenChange(o, e) {
68
+ onOpenChange(s, e) {
69
69
  this.openKeys = openKeys;
70
70
  },
71
71
  updateMenu() {
72
- const o = this.$route.matched.concat();
73
- this.activeIndex = o.pop().path;
72
+ const s = this.$route.matched.concat();
73
+ this.activeIndex = s.pop().path;
74
74
  },
75
- clickWx(o, e) {
75
+ clickWx(s, e) {
76
76
  const n = this.$route.matched.concat();
77
77
  this.activeIndex = n.pop().path;
78
78
  },
79
- fadeColor(o, e) {
80
- let n = parseInt(o.substring(1, 3), 16), a = parseInt(o.substring(3, 5), 16), u = parseInt(o.substring(5, 7), 16);
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
81
  return `rgba(${n},${a},${u},${e})`;
82
82
  }
83
83
  },
84
84
  watch: {
85
- $route(o) {
85
+ $route(s) {
86
86
  this.updateMenu();
87
87
  }
88
88
  }
@@ -100,14 +100,542 @@ var he = function() {
100
100
  null,
101
101
  null
102
102
  );
103
- const X = de.exports;
104
- X.install = function(o) {
105
- o.component(X.name, X);
103
+ const P = de.exports;
104
+ P.install = function(s) {
105
+ s.component(P.name, P);
106
106
  };
107
- var U = { exports: {} };
108
- (function(o, e) {
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) {
109
637
  (function(n, a) {
110
- o.exports = a();
638
+ s.exports = a();
111
639
  })(window, function() {
112
640
  return function(n) {
113
641
  var a = {};
@@ -126,10 +654,10 @@ var U = { exports: {} };
126
654
  return d;
127
655
  var $ = /* @__PURE__ */ Object.create(null);
128
656
  if (u.r($), Object.defineProperty($, "default", { enumerable: !0, value: d }), 2 & x && typeof d != "string")
129
- for (var I in d)
130
- u.d($, I, function(L) {
657
+ for (var S in d)
658
+ u.d($, S, function(L) {
131
659
  return d[L];
132
- }.bind(null, I));
660
+ }.bind(null, S));
133
661
  return $;
134
662
  }, u.n = function(d) {
135
663
  var x = d && d.__esModule ? function() {
@@ -356,15 +884,15 @@ var U = { exports: {} };
356
884
  var d = [];
357
885
  return d.toString = function() {
358
886
  return this.map(function(x) {
359
- var $ = function(I, L) {
360
- var k = I[1] || "", T = I[3];
887
+ var $ = function(S, L) {
888
+ var k = S[1] || "", T = S[3];
361
889
  if (!T)
362
890
  return k;
363
891
  if (L && typeof btoa == "function") {
364
- var i = function(s) {
365
- return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(s)))) + " */";
366
- }(T), t = T.sources.map(function(s) {
367
- return "/*# sourceURL=" + T.sourceRoot + s + " */";
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 + " */";
368
896
  });
369
897
  return [k].concat(t).concat([i]).join(`
370
898
  `);
@@ -376,13 +904,13 @@ var U = { exports: {} };
376
904
  }).join("");
377
905
  }, d.i = function(x, $) {
378
906
  typeof x == "string" && (x = [[null, x, ""]]);
379
- for (var I = {}, L = 0; L < this.length; L++) {
907
+ for (var S = {}, L = 0; L < this.length; L++) {
380
908
  var k = this[L][0];
381
- typeof k == "number" && (I[k] = !0);
909
+ typeof k == "number" && (S[k] = !0);
382
910
  }
383
911
  for (L = 0; L < x.length; L++) {
384
912
  var T = x[L];
385
- typeof T[0] == "number" && I[T[0]] || ($ && !T[2] ? T[2] = $ : $ && (T[2] = "(" + T[2] + ") and (" + $ + ")"), d.push(T));
913
+ typeof T[0] == "number" && S[T[0]] || ($ && !T[2] ? T[2] = $ : $ && (T[2] = "(" + T[2] + ") and (" + $ + ")"), d.push(T));
386
914
  }
387
915
  }, d;
388
916
  };
@@ -396,13 +924,13 @@ var U = { exports: {} };
396
924
  return window && document && document.all && !window.atob;
397
925
  }), $ = function(c) {
398
926
  var h = {};
399
- return function(p, g) {
927
+ return function(p, f) {
400
928
  if (typeof p == "function")
401
929
  return p();
402
930
  if (h[p] === void 0) {
403
931
  var w = function(v, b) {
404
932
  return b ? b.querySelector(v) : document.querySelector(v);
405
- }.call(this, p, g);
933
+ }.call(this, p, f);
406
934
  if (window.HTMLIFrameElement && w instanceof window.HTMLIFrameElement)
407
935
  try {
408
936
  w = w.contentDocument.head;
@@ -413,38 +941,38 @@ var U = { exports: {} };
413
941
  }
414
942
  return h[p];
415
943
  };
416
- }(), I = null, L = 0, k = [], T = u(5);
944
+ }(), S = null, L = 0, k = [], T = u(5);
417
945
  function i(c, h) {
418
946
  for (var p = 0; p < c.length; p++) {
419
- var g = c[p], w = d[g.id];
947
+ var f = c[p], w = d[f.id];
420
948
  if (w) {
421
949
  w.refs++;
422
950
  for (var v = 0; v < w.parts.length; v++)
423
- w.parts[v](g.parts[v]);
424
- for (; v < g.parts.length; v++)
425
- w.parts.push(m(g.parts[v], h));
951
+ w.parts[v](f.parts[v]);
952
+ for (; v < f.parts.length; v++)
953
+ w.parts.push(m(f.parts[v], h));
426
954
  } else {
427
955
  var b = [];
428
- for (v = 0; v < g.parts.length; v++)
429
- b.push(m(g.parts[v], h));
430
- d[g.id] = { id: g.id, refs: 1, parts: 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 };
431
959
  }
432
960
  }
433
961
  }
434
962
  function t(c, h) {
435
- for (var p = [], g = {}, w = 0; w < c.length; w++) {
963
+ for (var p = [], f = {}, w = 0; w < c.length; w++) {
436
964
  var v = c[w], b = h.base ? v[0] + h.base : v[0], _ = { css: v[1], media: v[2], sourceMap: v[3] };
437
- g[b] ? g[b].parts.push(_) : p.push(g[b] = { id: b, parts: [_] });
965
+ f[b] ? f[b].parts.push(_) : p.push(f[b] = { id: b, parts: [_] });
438
966
  }
439
967
  return p;
440
968
  }
441
- function s(c, h) {
969
+ function o(c, h) {
442
970
  var p = $(c.insertInto);
443
971
  if (!p)
444
972
  throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
445
- var g = k[k.length - 1];
973
+ var f = k[k.length - 1];
446
974
  if (c.insertAt === "top")
447
- g ? g.nextSibling ? p.insertBefore(h, g.nextSibling) : p.appendChild(h) : p.insertBefore(h, p.firstChild), k.push(h);
975
+ f ? f.nextSibling ? p.insertBefore(h, f.nextSibling) : p.appendChild(h) : p.insertBefore(h, p.firstChild), k.push(h);
448
976
  else if (c.insertAt === "bottom")
449
977
  p.appendChild(h);
450
978
  else {
@@ -474,15 +1002,15 @@ var U = { exports: {} };
474
1002
  }();
475
1003
  p && (c.attrs.nonce = p);
476
1004
  }
477
- return f(h, c.attrs), s(c, h), h;
1005
+ return g(h, c.attrs), o(c, h), h;
478
1006
  }
479
- function f(c, h) {
1007
+ function g(c, h) {
480
1008
  Object.keys(h).forEach(function(p) {
481
1009
  c.setAttribute(p, h[p]);
482
1010
  });
483
1011
  }
484
1012
  function m(c, h) {
485
- var p, g, w, v;
1013
+ var p, f, w, v;
486
1014
  if (h.transform && c.css) {
487
1015
  if (!(v = typeof h.transform == "function" ? h.transform(c.css) : h.transform.default(c.css)))
488
1016
  return function() {
@@ -491,21 +1019,21 @@ var U = { exports: {} };
491
1019
  }
492
1020
  if (h.singleton) {
493
1021
  var b = L++;
494
- p = I || (I = l(h)), g = C.bind(null, p, b, !1), w = C.bind(null, p, b, !0);
1022
+ p = S || (S = l(h)), f = C.bind(null, p, b, !1), w = C.bind(null, p, b, !0);
495
1023
  } else
496
1024
  c.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (p = function(_) {
497
- var S = document.createElement("link");
498
- return _.attrs.type === void 0 && (_.attrs.type = "text/css"), _.attrs.rel = "stylesheet", f(S, _.attrs), s(_, S), S;
499
- }(h), g = function(_, S, E) {
500
- var A = E.css, O = E.sourceMap, M = S.convertToAbsoluteUrls === void 0 && O;
501
- (S.convertToAbsoluteUrls || M) && (A = T(A)), O && (A += `
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 += `
502
1030
  /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(O)))) + " */");
503
1031
  var D = new Blob([A], { type: "text/css" }), R = _.href;
504
1032
  _.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
505
1033
  }.bind(null, p, h), w = function() {
506
1034
  r(p), p.href && URL.revokeObjectURL(p.href);
507
- }) : (p = l(h), g = function(_, S) {
508
- var E = S.css, A = S.media;
1035
+ }) : (p = l(h), f = function(_, I) {
1036
+ var E = I.css, A = I.media;
509
1037
  if (A && _.setAttribute("media", A), _.styleSheet)
510
1038
  _.styleSheet.cssText = E;
511
1039
  else {
@@ -516,11 +1044,11 @@ var U = { exports: {} };
516
1044
  }.bind(null, p), w = function() {
517
1045
  r(p);
518
1046
  });
519
- return g(c), function(_) {
1047
+ return f(c), function(_) {
520
1048
  if (_) {
521
1049
  if (_.css === c.css && _.media === c.media && _.sourceMap === c.sourceMap)
522
1050
  return;
523
- g(c = _);
1051
+ f(c = _);
524
1052
  } else
525
1053
  w();
526
1054
  };
@@ -530,16 +1058,16 @@ var U = { exports: {} };
530
1058
  throw new Error("The style-loader cannot be used in a non-browser environment");
531
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");
532
1060
  var p = t(c, h);
533
- return i(p, h), function(g) {
1061
+ return i(p, h), function(f) {
534
1062
  for (var w = [], v = 0; v < p.length; v++) {
535
1063
  var b = p[v];
536
1064
  (_ = d[b.id]).refs--, w.push(_);
537
1065
  }
538
- for (g && i(t(g, h), h), v = 0; v < w.length; v++) {
1066
+ for (f && i(t(f, h), h), v = 0; v < w.length; v++) {
539
1067
  var _;
540
1068
  if ((_ = w[v]).refs === 0) {
541
- for (var S = 0; S < _.parts.length; S++)
542
- _.parts[S]();
1069
+ for (var I = 0; I < _.parts.length; I++)
1070
+ _.parts[I]();
543
1071
  delete d[_.id];
544
1072
  }
545
1073
  }
@@ -552,8 +1080,8 @@ var U = { exports: {} };
552
1080
  `);
553
1081
  };
554
1082
  }();
555
- function C(c, h, p, g) {
556
- var w = p ? "" : g.css;
1083
+ function C(c, h, p, f) {
1084
+ var w = p ? "" : f.css;
557
1085
  if (c.styleSheet)
558
1086
  c.styleSheet.cssText = y(h, w);
559
1087
  else {
@@ -569,64 +1097,64 @@ var U = { exports: {} };
569
1097
  if (!u || typeof u != "string")
570
1098
  return u;
571
1099
  var x = d.protocol + "//" + d.host, $ = x + d.pathname.replace(/\/[^\/]*$/, "/");
572
- return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(I, L) {
1100
+ return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(S, L) {
573
1101
  var k, T = L.trim().replace(/^"(.*)"$/, function(i, t) {
574
1102
  return t;
575
1103
  }).replace(/^'(.*)'$/, function(i, t) {
576
1104
  return t;
577
1105
  });
578
- return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T) ? I : (k = T.indexOf("//") === 0 ? T : T.indexOf("/") === 0 ? x + T : $ + T.replace(/^\.\//, ""), "url(" + JSON.stringify(k) + ")");
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) + ")");
579
1107
  });
580
1108
  };
581
1109
  }, function(n, a, u) {
582
1110
  u.r(a);
583
1111
  var d = function() {
584
- var i = this, t = i.$createElement, s = i._self._c || t;
585
- return s("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: i.scaleImg, mouseout: i.cancelScale } }, [i.imgs ? s("div", { staticClass: "cropper-box" }, [s("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)" } }, [s("img", { ref: "cropperImg", attrs: { src: i.imgs, alt: "cropper-img" } })])]) : i._e(), i._v(" "), s("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(" "), s("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)" } }, [s("span", { staticClass: "cropper-view-box" }, [s("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(" "), s("span", { staticClass: "cropper-face cropper-move", on: { mousedown: i.cropMove, touchstart: i.cropMove } }), i._v(" "), i.info ? s("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() : s("span", [s("span", { staticClass: "crop-line line-w", on: { mousedown: function(r) {
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) {
586
1114
  i.changeCropSize(r, !1, !0, 0, 1);
587
1115
  }, touchstart: function(r) {
588
1116
  i.changeCropSize(r, !1, !0, 0, 1);
589
- } } }), i._v(" "), s("span", { staticClass: "crop-line line-a", on: { mousedown: function(r) {
1117
+ } } }), i._v(" "), o("span", { staticClass: "crop-line line-a", on: { mousedown: function(r) {
590
1118
  i.changeCropSize(r, !0, !1, 1, 0);
591
1119
  }, touchstart: function(r) {
592
1120
  i.changeCropSize(r, !0, !1, 1, 0);
593
- } } }), i._v(" "), s("span", { staticClass: "crop-line line-s", on: { mousedown: function(r) {
1121
+ } } }), i._v(" "), o("span", { staticClass: "crop-line line-s", on: { mousedown: function(r) {
594
1122
  i.changeCropSize(r, !1, !0, 0, 2);
595
1123
  }, touchstart: function(r) {
596
1124
  i.changeCropSize(r, !1, !0, 0, 2);
597
- } } }), i._v(" "), s("span", { staticClass: "crop-line line-d", on: { mousedown: function(r) {
1125
+ } } }), i._v(" "), o("span", { staticClass: "crop-line line-d", on: { mousedown: function(r) {
598
1126
  i.changeCropSize(r, !0, !1, 2, 0);
599
1127
  }, touchstart: function(r) {
600
1128
  i.changeCropSize(r, !0, !1, 2, 0);
601
- } } }), i._v(" "), s("span", { staticClass: "crop-point point1", on: { mousedown: function(r) {
1129
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point1", on: { mousedown: function(r) {
602
1130
  i.changeCropSize(r, !0, !0, 1, 1);
603
1131
  }, touchstart: function(r) {
604
1132
  i.changeCropSize(r, !0, !0, 1, 1);
605
- } } }), i._v(" "), s("span", { staticClass: "crop-point point2", on: { mousedown: function(r) {
1133
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point2", on: { mousedown: function(r) {
606
1134
  i.changeCropSize(r, !1, !0, 0, 1);
607
1135
  }, touchstart: function(r) {
608
1136
  i.changeCropSize(r, !1, !0, 0, 1);
609
- } } }), i._v(" "), s("span", { staticClass: "crop-point point3", on: { mousedown: function(r) {
1137
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point3", on: { mousedown: function(r) {
610
1138
  i.changeCropSize(r, !0, !0, 2, 1);
611
1139
  }, touchstart: function(r) {
612
1140
  i.changeCropSize(r, !0, !0, 2, 1);
613
- } } }), i._v(" "), s("span", { staticClass: "crop-point point4", on: { mousedown: function(r) {
1141
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point4", on: { mousedown: function(r) {
614
1142
  i.changeCropSize(r, !0, !1, 1, 0);
615
1143
  }, touchstart: function(r) {
616
1144
  i.changeCropSize(r, !0, !1, 1, 0);
617
- } } }), i._v(" "), s("span", { staticClass: "crop-point point5", on: { mousedown: function(r) {
1145
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point5", on: { mousedown: function(r) {
618
1146
  i.changeCropSize(r, !0, !1, 2, 0);
619
1147
  }, touchstart: function(r) {
620
1148
  i.changeCropSize(r, !0, !1, 2, 0);
621
- } } }), i._v(" "), s("span", { staticClass: "crop-point point6", on: { mousedown: function(r) {
1149
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point6", on: { mousedown: function(r) {
622
1150
  i.changeCropSize(r, !0, !0, 1, 2);
623
1151
  }, touchstart: function(r) {
624
1152
  i.changeCropSize(r, !0, !0, 1, 2);
625
- } } }), i._v(" "), s("span", { staticClass: "crop-point point7", on: { mousedown: function(r) {
1153
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point7", on: { mousedown: function(r) {
626
1154
  i.changeCropSize(r, !1, !0, 0, 2);
627
1155
  }, touchstart: function(r) {
628
1156
  i.changeCropSize(r, !1, !0, 0, 2);
629
- } } }), i._v(" "), s("span", { staticClass: "crop-point point8", on: { mousedown: function(r) {
1157
+ } } }), i._v(" "), o("span", { staticClass: "crop-point point8", on: { mousedown: function(r) {
630
1158
  i.changeCropSize(r, !0, !0, 2, 2);
631
1159
  }, touchstart: function(r) {
632
1160
  i.changeCropSize(r, !0, !0, 2, 2);
@@ -635,28 +1163,28 @@ var U = { exports: {} };
635
1163
  d._withStripped = !0;
636
1164
  var x = {};
637
1165
  x.getData = function(i) {
638
- return new Promise(function(t, s) {
1166
+ return new Promise(function(t, o) {
639
1167
  var r = {};
640
1168
  (function(l) {
641
- var f = null;
1169
+ var g = null;
642
1170
  return new Promise(function(m, y) {
643
1171
  if (l.src)
644
1172
  if (/^data\:/i.test(l.src))
645
- f = function(h) {
1173
+ g = function(h) {
646
1174
  h = h.replace(/^data\:([^\;]+)\;base64,/gim, "");
647
- for (var p = atob(h), g = p.length, w = new ArrayBuffer(g), v = new Uint8Array(w), b = 0; b < g; b++)
1175
+ for (var p = atob(h), f = p.length, w = new ArrayBuffer(f), v = new Uint8Array(w), b = 0; b < f; b++)
648
1176
  v[b] = p.charCodeAt(b);
649
1177
  return w;
650
- }(l.src), m(f);
1178
+ }(l.src), m(g);
651
1179
  else if (/^blob\:/i.test(l.src)) {
652
1180
  var C = new FileReader();
653
1181
  C.onload = function(h) {
654
- f = h.target.result, m(f);
1182
+ g = h.target.result, m(g);
655
1183
  }, function(h, p) {
656
- var g = new XMLHttpRequest();
657
- g.open("GET", h, !0), g.responseType = "blob", g.onload = function(w) {
1184
+ var f = new XMLHttpRequest();
1185
+ f.open("GET", h, !0), f.responseType = "blob", f.onload = function(w) {
658
1186
  this.status != 200 && this.status !== 0 || p(this.response);
659
- }, g.send();
1187
+ }, f.send();
660
1188
  }(l.src, function(h) {
661
1189
  C.readAsArrayBuffer(h);
662
1190
  });
@@ -665,15 +1193,15 @@ var U = { exports: {} };
665
1193
  c.onload = function() {
666
1194
  if (this.status != 200 && this.status !== 0)
667
1195
  throw "Could not load image";
668
- f = c.response, m(f), c = null;
1196
+ g = c.response, m(g), c = null;
669
1197
  }, c.open("GET", l.src, !0), c.responseType = "arraybuffer", c.send(null);
670
1198
  }
671
1199
  else
672
1200
  y("img error");
673
1201
  });
674
1202
  })(i).then(function(l) {
675
- r.arrayBuffer = l, r.orientation = function(f) {
676
- var m, y, C, c, h, p, g, w, v, b = new DataView(f), _ = b.byteLength;
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;
677
1205
  if (b.getUint8(0) === 255 && b.getUint8(1) === 216)
678
1206
  for (w = 2; w < _; ) {
679
1207
  if (b.getUint8(w) === 255 && b.getUint8(w + 1) === 225) {
@@ -682,14 +1210,14 @@ var U = { exports: {} };
682
1210
  }
683
1211
  w++;
684
1212
  }
685
- if (p && (y = p + 10, function(S, E, A) {
1213
+ if (p && (y = p + 10, function(I, E, A) {
686
1214
  var O, M = "";
687
1215
  for (O = E, A += E; O < A; O++)
688
- M += String.fromCharCode(S.getUint8(O));
1216
+ M += String.fromCharCode(I.getUint8(O));
689
1217
  return M;
690
- }(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 && (g = y + C))), g) {
691
- for (_ = b.getUint16(g, c), v = 0; v < _; v++)
692
- if (w = g + 12 * v + 2, b.getUint16(w, c) === 274) {
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) {
693
1221
  w += 8, m = b.getUint16(w, c);
694
1222
  break;
695
1223
  }
@@ -697,11 +1225,11 @@ var U = { exports: {} };
697
1225
  return m;
698
1226
  }(l), t(r);
699
1227
  }).catch(function(l) {
700
- s(l);
1228
+ o(l);
701
1229
  });
702
1230
  });
703
1231
  };
704
- var $ = x, I = { data: function() {
1232
+ var $ = x, S = { data: function() {
705
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 };
706
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() {
707
1235
  return [1, 1];
@@ -748,16 +1276,16 @@ var U = { exports: {} };
748
1276
  }, rotate: function() {
749
1277
  this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
750
1278
  } }, methods: { getVersion: function(i) {
751
- for (var t = navigator.userAgent.split(" "), s = "", r = new RegExp(i, "i"), l = 0; l < t.length; l++)
752
- r.test(t[l]) && (s = t[l]);
753
- return s ? s.split("/")[1].split(".") : ["0", "0", "0"];
754
- }, checkOrientationImage: function(i, t, s, r) {
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) {
755
1283
  var l = this;
756
1284
  if (this.getVersion("chrome")[0] >= 81)
757
1285
  t = -1;
758
1286
  else if (this.getVersion("safari")[0] >= 605) {
759
- var f = this.getVersion("version");
760
- f[0] > 13 && f[1] > 1 && (t = -1);
1287
+ var g = this.getVersion("version");
1288
+ g[0] > 13 && g[1] > 1 && (t = -1);
761
1289
  } else {
762
1290
  var m = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
763
1291
  if (m) {
@@ -768,30 +1296,30 @@ var U = { exports: {} };
768
1296
  var C = document.createElement("canvas"), c = C.getContext("2d");
769
1297
  switch (c.save(), t) {
770
1298
  case 2:
771
- C.width = s, C.height = r, c.translate(s, 0), c.scale(-1, 1);
1299
+ C.width = o, C.height = r, c.translate(o, 0), c.scale(-1, 1);
772
1300
  break;
773
1301
  case 3:
774
- C.width = s, C.height = r, c.translate(s / 2, r / 2), c.rotate(180 * Math.PI / 180), c.translate(-s / 2, -r / 2);
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);
775
1303
  break;
776
1304
  case 4:
777
- C.width = s, C.height = r, c.translate(0, r), c.scale(1, -1);
1305
+ C.width = o, C.height = r, c.translate(0, r), c.scale(1, -1);
778
1306
  break;
779
1307
  case 5:
780
- C.height = s, C.width = r, c.rotate(0.5 * Math.PI), c.scale(1, -1);
1308
+ C.height = o, C.width = r, c.rotate(0.5 * Math.PI), c.scale(1, -1);
781
1309
  break;
782
1310
  case 6:
783
- C.width = r, C.height = s, c.translate(r / 2, s / 2), c.rotate(90 * Math.PI / 180), c.translate(-s / 2, -r / 2);
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);
784
1312
  break;
785
1313
  case 7:
786
- C.height = s, C.width = r, c.rotate(0.5 * Math.PI), c.translate(s, -r), c.scale(-1, 1);
1314
+ C.height = o, C.width = r, c.rotate(0.5 * Math.PI), c.translate(o, -r), c.scale(-1, 1);
787
1315
  break;
788
1316
  case 8:
789
- C.height = s, C.width = r, c.translate(r / 2, s / 2), c.rotate(-90 * Math.PI / 180), c.translate(-s / 2, -r / 2);
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);
790
1318
  break;
791
1319
  default:
792
- C.width = s, C.height = r;
1320
+ C.width = o, C.height = r;
793
1321
  }
794
- c.drawImage(i, 0, 0, s, r), c.restore(), C.toBlob(function(h) {
1322
+ c.drawImage(i, 0, 0, o, r), c.restore(), C.toBlob(function(h) {
795
1323
  var p = URL.createObjectURL(h);
796
1324
  URL.revokeObjectURL(l.imgs), l.imgs = p;
797
1325
  }, "image/" + this.outputType, 1);
@@ -805,19 +1333,19 @@ var U = { exports: {} };
805
1333
  if (i.img === "")
806
1334
  return i.$emit("imgLoad", "error"), i.$emit("img-load", "error"), !1;
807
1335
  var r = t.width, l = t.height;
808
- $.getData(t).then(function(f) {
809
- i.orientation = f.orientation || 1;
1336
+ $.getData(t).then(function(g) {
1337
+ i.orientation = g.orientation || 1;
810
1338
  var m = i.maxImgSize;
811
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));
812
1340
  });
813
1341
  }, t.onerror = function() {
814
1342
  i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
815
1343
  }, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
816
- var s = new XMLHttpRequest();
817
- s.onload = function() {
1344
+ var o = new XMLHttpRequest();
1345
+ o.onload = function() {
818
1346
  var r = URL.createObjectURL(this.response);
819
1347
  t.src = r;
820
- }, s.open("GET", this.img, !0), s.responseType = "blob", s.send();
1348
+ }, o.open("GET", this.img, !0), o.responseType = "blob", o.send();
821
1349
  } else
822
1350
  t.src = this.img;
823
1351
  }, startMove: function(i) {
@@ -830,13 +1358,13 @@ var U = { exports: {} };
830
1358
  }, touchScale: function(i) {
831
1359
  var t = this;
832
1360
  i.preventDefault();
833
- var s = this.scale, r = this.touches[0].clientX, l = this.touches[0].clientY, f = 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)), g = Math.sqrt(Math.pow(f - c, 2) + Math.pow(m - h, 2)) - p, w = 1, v = (w = (w = w / this.trueWidth > w / this.trueHeight ? w / this.trueHeight : w / this.trueWidth) > 0.1 ? 0.1 : w) * g;
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;
834
1362
  if (!this.touchNow) {
835
- if (this.touchNow = !0, g > 0 ? s += Math.abs(v) : g < 0 && s > Math.abs(v) && (s -= Math.abs(v)), this.touches = i.touches, setTimeout(function() {
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() {
836
1364
  t.touchNow = !1;
837
- }, 8), !this.checkoutImgAxis(this.x, this.y, s))
1365
+ }, 8), !this.checkoutImgAxis(this.x, this.y, o))
838
1366
  return !1;
839
- this.scale = s;
1367
+ this.scale = o;
840
1368
  }
841
1369
  }, cancelTouchScale: function(i) {
842
1370
  window.removeEventListener("touchmove", this.touchScale);
@@ -844,23 +1372,23 @@ var U = { exports: {} };
844
1372
  var t = this;
845
1373
  if (i.preventDefault(), i.touches && i.touches.length === 2)
846
1374
  return this.touches = i.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
847
- var s, r, l = i.clientX ? i.clientX : i.touches[0].clientX, f = i.clientY ? i.clientY : i.touches[0].clientY;
848
- s = l - this.moveX, r = f - this.moveY, this.$nextTick(function() {
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() {
849
1377
  if (t.centerBox) {
850
- var m, y, C, c, h = t.getImgAxis(s, r, t.scale), p = t.getCropAxis(), g = t.trueHeight * t.scale, w = t.trueWidth * t.scale;
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;
851
1379
  switch (t.rotate) {
852
1380
  case 1:
853
1381
  case -1:
854
1382
  case 3:
855
1383
  case -3:
856
- m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2 + (g - w) / 2, y = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2 + (w - g) / 2, C = m - g + t.cropW, c = y - w + t.cropH;
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;
857
1385
  break;
858
1386
  default:
859
- 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 - g + t.cropH;
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;
860
1388
  }
861
- h.x1 >= p.x1 && (s = m), h.y1 >= p.y1 && (r = y), h.x2 <= p.x2 && (s = C), h.y2 <= p.y2 && (r = c);
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);
862
1390
  }
863
- t.x = s, t.y = r, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
1391
+ t.x = o, t.y = r, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
864
1392
  });
865
1393
  }, leaveImg: function(i) {
866
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() });
@@ -871,50 +1399,50 @@ var U = { exports: {} };
871
1399
  }, changeSize: function(i) {
872
1400
  var t = this;
873
1401
  i.preventDefault();
874
- var s = this.scale, r = i.deltaY || i.wheelDelta;
1402
+ var o = this.scale, r = i.deltaY || i.wheelDelta;
875
1403
  r = navigator.userAgent.indexOf("Firefox") > 0 ? 30 * r : r, this.isIE && (r = -r);
876
- var l = this.coe, f = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) * r;
877
- f < 0 ? s += Math.abs(f) : s > Math.abs(f) && (s -= Math.abs(f));
878
- var m = f < 0 ? "add" : "reduce";
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";
879
1407
  if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
880
1408
  t.scaling = !1, t.coe = t.coe += 0.01;
881
- }, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, s))
1409
+ }, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, o))
882
1410
  return !1;
883
- this.scale = s;
1411
+ this.scale = o;
884
1412
  }, changeScale: function(i) {
885
1413
  var t = this.scale;
886
1414
  i = i || 1;
887
- var s = 20;
888
- if ((i *= s = s / this.trueWidth > s / this.trueHeight ? s / this.trueHeight : s / this.trueWidth) > 0 ? t += Math.abs(i) : t > Math.abs(i) && (t -= Math.abs(i)), !this.checkoutImgAxis(this.x, this.y, t))
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))
889
1417
  return !1;
890
1418
  this.scale = t;
891
1419
  }, createCrop: function(i) {
892
1420
  var t = this;
893
1421
  i.preventDefault();
894
- var s = i.clientX ? i.clientX : i.touches ? i.touches[0].clientX : 0, r = i.clientY ? i.clientY : i.touches ? i.touches[0].clientY : 0;
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;
895
1423
  this.$nextTick(function() {
896
- var l = s - t.cropX, f = r - t.cropY;
1424
+ var l = o - t.cropX, g = r - t.cropY;
897
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) {
898
1426
  var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
899
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;
900
1428
  } else
901
- f > 0 ? (t.cropH = f + t.cropChangeY > t.h ? t.h - t.cropChangeY : f, t.cropOffsertY = t.cropChangeY) : (t.cropH = t.h - t.cropChangeY + Math.abs(f) > t.h ? t.cropChangeY : Math.abs(f), t.cropOffsertY = t.cropChangeY + f > 0 ? t.cropChangeY + f : 0);
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);
902
1430
  });
903
- }, changeCropSize: function(i, t, s, r, l) {
904
- 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 = s, 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 });
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 });
905
1433
  }, changeCropNow: function(i) {
906
1434
  var t = this;
907
1435
  i.preventDefault();
908
- var s = 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, f = this.h, m = 0, y = 0;
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;
909
1437
  if (this.centerBox) {
910
1438
  var C = this.getImgAxis(), c = C.x2, h = C.y2;
911
- m = C.x1 > 0 ? C.x1 : 0, y = C.y1 > 0 ? C.y1 : 0, l > c && (l = c), f > h && (f = h);
1439
+ m = C.x1 > 0 ? C.x1 : 0, y = C.y1 > 0 ? C.y1 : 0, l > c && (l = c), g > h && (g = h);
912
1440
  }
913
1441
  this.$nextTick(function() {
914
- var p = s - t.cropX, g = r - t.cropY;
915
- if (t.canChangeX && (t.changeCropTypeX === 1 ? t.cropOldW - p > 0 ? (t.cropW = l - t.cropChangeX - p <= l - m ? t.cropOldW - p : t.cropOldW + t.cropChangeX - m, t.cropOffsertX = l - t.cropChangeX - p <= l - m ? t.cropChangeX + p : m) : (t.cropW = Math.abs(p) + t.cropChangeX <= l ? Math.abs(p) - t.cropOldW : l - t.cropOldW - t.cropChangeX, t.cropOffsertX = t.cropChangeX + t.cropOldW) : t.changeCropTypeX === 2 && (t.cropOldW + p > 0 ? (t.cropW = t.cropOldW + p + t.cropOffsertX <= l ? t.cropOldW + p : l - t.cropOffsertX, t.cropOffsertX = t.cropChangeX) : (t.cropW = l - t.cropChangeX + Math.abs(p + t.cropOldW) <= l - m ? Math.abs(p + t.cropOldW) : t.cropChangeX - m, t.cropOffsertX = l - t.cropChangeX + Math.abs(p + t.cropOldW) <= l - m ? t.cropChangeX - Math.abs(p + t.cropOldW) : m))), t.canChangeY && (t.changeCropTypeY === 1 ? t.cropOldH - g > 0 ? (t.cropH = f - t.cropChangeY - g <= f - y ? t.cropOldH - g : t.cropOldH + t.cropChangeY - y, t.cropOffsertY = f - t.cropChangeY - g <= f - y ? t.cropChangeY + g : y) : (t.cropH = Math.abs(g) + t.cropChangeY <= f ? Math.abs(g) - t.cropOldH : f - t.cropOldH - t.cropChangeY, t.cropOffsertY = t.cropChangeY + t.cropOldH) : t.changeCropTypeY === 2 && (t.cropOldH + g > 0 ? (t.cropH = t.cropOldH + g + t.cropOffsertY <= f ? t.cropOldH + g : f - t.cropOffsertY, t.cropOffsertY = t.cropChangeY) : (t.cropH = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - y ? Math.abs(g + t.cropOldH) : t.cropChangeY - y, t.cropOffsertY = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - y ? t.cropChangeY - Math.abs(g + t.cropOldH) : y))), t.canChangeX && t.fixed) {
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) {
916
1444
  var w = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
917
- w + t.cropOffsertY > f ? (t.cropH = f - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
1445
+ w + t.cropOffsertY > g ? (t.cropH = g - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
918
1446
  }
919
1447
  if (t.canChangeY && t.fixed) {
920
1448
  var v = t.cropH / t.fixedNumber[1] * t.fixedNumber[0];
@@ -941,33 +1469,33 @@ var U = { exports: {} };
941
1469
  if (i.touches && i.touches.length === 2)
942
1470
  return this.crop = !1, this.startMove(i), this.leaveCrop(), !1;
943
1471
  window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
944
- var t, s, r = i.clientX ? i.clientX : i.touches[0].clientX, l = i.clientY ? i.clientY : i.touches[0].clientY;
945
- t = r - this.cropOffsertX, s = l - this.cropOffsertY, this.cropX = t, this.cropY = s, this.$emit("cropMoving", { moving: !0, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !0, axis: this.getCropAxis() });
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() });
946
1474
  }, moveCrop: function(i, t) {
947
- var s = this, r = 0, l = 0;
1475
+ var o = this, r = 0, l = 0;
948
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() {
949
- var f, m, y = r - s.cropX, C = l - s.cropY;
950
- if (t && (y = s.cropOffsertX, C = s.cropOffsertY), f = y <= 0 ? 0 : y + s.cropW > s.w ? s.w - s.cropW : y, m = C <= 0 ? 0 : C + s.cropH > s.h ? s.h - s.cropH : C, s.centerBox) {
951
- var c = s.getImgAxis();
952
- f <= c.x1 && (f = c.x1), f + s.cropW > c.x2 && (f = c.x2 - s.cropW), m <= c.y1 && (m = c.y1), m + s.cropH > c.y2 && (m = c.y2 - s.cropH);
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);
953
1481
  }
954
- s.cropOffsertX = f, s.cropOffsertY = m, s.$emit("cropMoving", { moving: !0, axis: s.getCropAxis() }), s.$emit("crop-moving", { moving: !0, axis: s.getCropAxis() });
1482
+ o.cropOffsertX = g, o.cropOffsertY = m, o.$emit("cropMoving", { moving: !0, axis: o.getCropAxis() }), o.$emit("crop-moving", { moving: !0, axis: o.getCropAxis() });
955
1483
  });
956
- }, getImgAxis: function(i, t, s) {
957
- i = i || this.x, t = t || this.y, s = s || this.scale;
958
- var r = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth * s, f = this.trueHeight * s;
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;
959
1487
  switch (this.rotate) {
960
1488
  case 0:
961
- r.x1 = i + this.trueWidth * (1 - s) / 2, r.x2 = r.x1 + this.trueWidth * s, r.y1 = t + this.trueHeight * (1 - s) / 2, r.y2 = r.y1 + this.trueHeight * s;
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;
962
1490
  break;
963
1491
  case 1:
964
1492
  case -1:
965
1493
  case 3:
966
1494
  case -3:
967
- r.x1 = i + this.trueWidth * (1 - s) / 2 + (l - f) / 2, r.x2 = r.x1 + this.trueHeight * s, r.y1 = t + this.trueHeight * (1 - s) / 2 + (f - l) / 2, r.y2 = r.y1 + this.trueWidth * s;
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;
968
1496
  break;
969
1497
  default:
970
- r.x1 = i + this.trueWidth * (1 - s) / 2, r.x2 = r.x1 + this.trueWidth * s, r.y1 = t + this.trueHeight * (1 - s) / 2, r.y2 = r.y1 + this.trueHeight * s;
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;
971
1499
  }
972
1500
  return r;
973
1501
  }, getCropAxis: function() {
@@ -976,37 +1504,37 @@ var U = { exports: {} };
976
1504
  }, leaveCrop: function(i) {
977
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() });
978
1506
  }, getCropChecked: function(i) {
979
- var t = this, s = document.createElement("canvas"), r = new Image(), l = this.rotate, f = this.trueWidth, m = this.trueHeight, y = this.cropOffsertX, C = this.cropOffsertY;
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;
980
1508
  function c(h, p) {
981
- s.width = Math.round(h), s.height = Math.round(p);
1509
+ o.width = Math.round(h), o.height = Math.round(p);
982
1510
  }
983
1511
  r.onload = function() {
984
1512
  if (t.cropW !== 0) {
985
- var h = s.getContext("2d"), p = 1;
1513
+ var h = o.getContext("2d"), p = 1;
986
1514
  t.high & !t.full && (p = window.devicePixelRatio), t.enlarge !== 1 & !t.full && (p = Math.abs(Number(t.enlarge)));
987
- var g = t.cropW * p, w = t.cropH * p, v = f * t.scale * p, b = m * t.scale * p, _ = (t.x - y + t.trueWidth * (1 - t.scale) / 2) * p, S = (t.y - C + t.trueHeight * (1 - t.scale) / 2) * p;
988
- switch (c(g, w), h.save(), l) {
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) {
989
1517
  case 0:
990
- t.full ? (c(g / t.scale, w / t.scale), h.drawImage(r, _ / t.scale, S / t.scale, v / t.scale, b / t.scale)) : h.drawImage(r, _, S, v, b);
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);
991
1519
  break;
992
1520
  case 1:
993
1521
  case -3:
994
- t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - b / t.scale) / 2, S = S / t.scale + (b / t.scale - v / t.scale) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, S, -_ - b / t.scale, v / t.scale, b / t.scale)) : (_ += (v - b) / 2, S += (b - v) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, S, -_ - b, v, b));
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));
995
1523
  break;
996
1524
  case 2:
997
1525
  case -2:
998
- t.full ? (c(g / t.scale, w / t.scale), h.rotate(90 * l * Math.PI / 180), _ /= t.scale, S /= t.scale, h.drawImage(r, -_ - v / t.scale, -S - b / t.scale, v / t.scale, b / t.scale)) : (h.rotate(90 * l * Math.PI / 180), h.drawImage(r, -_ - v, -S - b, v, b));
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));
999
1527
  break;
1000
1528
  case 3:
1001
1529
  case -1:
1002
- t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - b / t.scale) / 2, S = S / t.scale + (b / t.scale - v / t.scale) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, -S - v / t.scale, _, v / t.scale, b / t.scale)) : (_ += (v - b) / 2, S += (b - v) / 2, h.rotate(90 * l * Math.PI / 180), h.drawImage(r, -S - v, _, v, b));
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));
1003
1531
  break;
1004
1532
  default:
1005
- t.full ? (c(g / t.scale, w / t.scale), h.drawImage(r, _ / t.scale, S / t.scale, v / t.scale, b / t.scale)) : h.drawImage(r, _, S, v, b);
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);
1006
1534
  }
1007
1535
  h.restore();
1008
1536
  } else {
1009
- var E = f * t.scale, A = m * t.scale, O = s.getContext("2d");
1537
+ var E = g * t.scale, A = m * t.scale, O = o.getContext("2d");
1010
1538
  switch (O.save(), l) {
1011
1539
  case 0:
1012
1540
  c(E, A), O.drawImage(r, 0, 0, E, A);
@@ -1028,17 +1556,17 @@ var U = { exports: {} };
1028
1556
  }
1029
1557
  O.restore();
1030
1558
  }
1031
- i(s);
1559
+ i(o);
1032
1560
  }, this.img.substr(0, 4) !== "data" && (r.crossOrigin = "Anonymous"), r.src = this.imgs;
1033
1561
  }, getCropData: function(i) {
1034
1562
  var t = this;
1035
- this.getCropChecked(function(s) {
1036
- i(s.toDataURL("image/" + t.outputType, t.outputSize));
1563
+ this.getCropChecked(function(o) {
1564
+ i(o.toDataURL("image/" + t.outputType, t.outputSize));
1037
1565
  });
1038
1566
  }, getCropBlob: function(i) {
1039
1567
  var t = this;
1040
- this.getCropChecked(function(s) {
1041
- s.toBlob(function(r) {
1568
+ this.getCropChecked(function(o) {
1569
+ o.toBlob(function(r) {
1042
1570
  return i(r);
1043
1571
  }, "image/" + t.outputType, t.outputSize);
1044
1572
  });
@@ -1049,14 +1577,14 @@ var U = { exports: {} };
1049
1577
  this.isCanShow = !1, setTimeout(function() {
1050
1578
  i.isCanShow = !0;
1051
1579
  }, 16);
1052
- var t = this.cropW, s = this.cropH, r = this.scale, l = {};
1053
- l.div = { width: "".concat(t, "px"), height: "".concat(s, "px") };
1054
- var f = (this.x - this.cropOffsertX) / r, m = (this.y - this.cropOffsertY) / r;
1055
- l.w = t, l.h = s, l.url = this.imgs, l.img = { width: "".concat(this.trueWidth, "px"), height: "".concat(this.trueHeight, "px"), transform: "scale(".concat(r, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, "deg)") }, l.html = `
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 = `
1056
1584
  <div class="show-preview" style="width: `.concat(l.w, "px; height: ").concat(l.h, `px,; overflow: hidden">
1057
- <div style="width: `).concat(t, "px; height: ").concat(s, `px">
1585
+ <div style="width: `).concat(t, "px; height: ").concat(o, `px">
1058
1586
  <img src=`).concat(l.url, ' style="width: ').concat(this.trueWidth, "px; height: ").concat(this.trueHeight, `px; transform:
1059
- scale(`).concat(r, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
1587
+ scale(`).concat(r, ")translate3d(").concat(g, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
1060
1588
  </div>
1061
1589
  </div>`), this.$emit("realTime", l), this.$emit("real-time", l);
1062
1590
  }, reload: function() {
@@ -1071,8 +1599,8 @@ var U = { exports: {} };
1071
1599
  i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
1072
1600
  }, t.src = this.imgs;
1073
1601
  }, checkedMode: function() {
1074
- var i = 1, t = (this.trueWidth, this.trueHeight), s = this.mode.split(" ");
1075
- switch (s[0]) {
1602
+ var i = 1, t = (this.trueWidth, this.trueHeight), o = this.mode.split(" ");
1603
+ switch (o[0]) {
1076
1604
  case "contain":
1077
1605
  this.trueWidth > this.w && (i = this.w / this.trueWidth), this.trueHeight * i > this.h && (i = this.h / this.trueHeight);
1078
1606
  break;
@@ -1081,9 +1609,9 @@ var U = { exports: {} };
1081
1609
  break;
1082
1610
  default:
1083
1611
  try {
1084
- var r = s[0];
1085
- 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), s.length === 2 && r === "auto") {
1086
- var l = s[1];
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];
1087
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);
1088
1616
  }
1089
1617
  } catch {
@@ -1094,22 +1622,22 @@ var U = { exports: {} };
1094
1622
  }, goAutoCrop: function(i, t) {
1095
1623
  if (this.imgs !== "" && this.imgs !== null) {
1096
1624
  this.clearCrop(), this.cropping = !0;
1097
- var s = this.w, r = this.h;
1625
+ var o = this.w, r = this.h;
1098
1626
  if (this.centerBox) {
1099
- var l = this.trueWidth * this.scale, f = this.trueHeight * this.scale;
1100
- s = l < s ? l : s, r = f < r ? f : r;
1627
+ var l = this.trueWidth * this.scale, g = this.trueHeight * this.scale;
1628
+ o = l < o ? l : o, r = g < r ? g : r;
1101
1629
  }
1102
1630
  var m = i || parseFloat(this.autoCropWidth), y = t || parseFloat(this.autoCropHeight);
1103
- m !== 0 && y !== 0 || (m = 0.8 * s, y = 0.8 * r), m = m > s ? s : 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);
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);
1104
1632
  }
1105
1633
  }, changeCrop: function(i, t) {
1106
- var s = this;
1634
+ var o = this;
1107
1635
  if (this.centerBox) {
1108
1636
  var r = this.getImgAxis();
1109
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]);
1110
1638
  }
1111
1639
  this.cropW = i, this.cropH = t, this.checkCropLimitSize(), this.$nextTick(function() {
1112
- s.cropOffsertX = (s.w - s.cropW) / 2, s.cropOffsertY = (s.h - s.cropH) / 2, s.centerBox && s.moveCrop(null, !0);
1640
+ o.cropOffsertX = (o.w - o.cropW) / 2, o.cropOffsertY = (o.h - o.cropH) / 2, o.centerBox && o.moveCrop(null, !0);
1113
1641
  });
1114
1642
  }, refresh: function() {
1115
1643
  var i = this;
@@ -1122,598 +1650,181 @@ var U = { exports: {} };
1122
1650
  this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
1123
1651
  }, rotateClear: function() {
1124
1652
  this.rotate = 0;
1125
- }, checkoutImgAxis: function(i, t, s) {
1126
- i = i || this.x, t = t || this.y, s = s || this.scale;
1653
+ }, checkoutImgAxis: function(i, t, o) {
1654
+ i = i || this.x, t = t || this.y, o = o || this.scale;
1127
1655
  var r = !0;
1128
1656
  if (this.centerBox) {
1129
- var l = this.getImgAxis(i, t, s), f = this.getCropAxis();
1130
- l.x1 >= f.x1 && (r = !1), l.x2 <= f.x2 && (r = !1), l.y1 >= f.y1 && (r = !1), l.y2 <= f.y2 && (r = !1);
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);
1131
1659
  }
1132
1660
  return r;
1133
1661
  } }, mounted: function() {
1134
1662
  this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
1135
1663
  var i = this, t = navigator.userAgent;
1136
- this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(s, r, l) {
1137
- for (var f = atob(this.toDataURL(r, l).split(",")[1]), m = f.length, y = new Uint8Array(m), C = 0; C < m; C++)
1138
- y[C] = f.charCodeAt(C);
1139
- s(new Blob([y], { type: i.type || "image/png" }));
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" }));
1140
1668
  } }), this.showPreview(), this.checkedImg();
1141
1669
  }, destroyed: function() {
1142
1670
  window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
1143
1671
  } };
1144
1672
  u(1);
1145
- var L = function(i, t, s, r, l, f, m, y) {
1673
+ var L = function(i, t, o, r, l, g, m, y) {
1146
1674
  var C, c = typeof i == "function" ? i.options : i;
1147
- if (t && (c.render = t, c.staticRenderFns = s, c._compiled = !0), r && (c.functional = !0), f && (c._scopeId = "data-v-" + f), m ? (C = function(g) {
1148
- (g = g || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ > "u" || (g = __VUE_SSR_CONTEXT__), l && l.call(this, g), g && g._registeredComponents && g._registeredComponents.add(m);
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);
1149
1677
  }, c._ssrRegister = C) : l && (C = y ? function() {
1150
1678
  l.call(this, this.$root.$options.shadowRoot);
1151
1679
  } : l), C)
1152
1680
  if (c.functional) {
1153
1681
  c._injectStyles = C;
1154
1682
  var h = c.render;
1155
- c.render = function(g, w) {
1156
- return C.call(w), h(g, w);
1683
+ c.render = function(f, w) {
1684
+ return C.call(w), h(f, w);
1157
1685
  };
1158
1686
  } else {
1159
1687
  var p = c.beforeCreate;
1160
1688
  c.beforeCreate = p ? [].concat(p, C) : [C];
1161
1689
  }
1162
1690
  return { exports: i, options: c };
1163
- }(I, d, [], !1, null, "6dae58fd", null);
1691
+ }(S, d, [], !1, null, "6dae58fd", null);
1164
1692
  L.options.__file = "src/vue-cropper.vue";
1165
1693
  var k = L.exports;
1166
- u.d(a, "VueCropper", function() {
1167
- return k;
1168
- });
1169
- var T = function(i) {
1170
- i.component("VueCropper", k);
1171
- };
1172
- typeof window < "u" && window.Vue && T(window.Vue), a.default = { version: "0.5.5", install: T, VueCropper: k, vueCropper: k };
1173
- }]);
1174
- });
1175
- })(U);
1176
- const pe = {
1177
- data() {
1178
- return {
1179
- width: "800px",
1180
- visible: !1,
1181
- id: null,
1182
- confirmLoading: !1,
1183
- fileList: [],
1184
- uploading: !1,
1185
- options: {
1186
- img: "",
1187
- autoCrop: !0,
1188
- autoCropWidth: 200,
1189
- autoCropHeight: 200,
1190
- fixedBox: !0
1191
- },
1192
- previews: {},
1193
- fullscreen: !1
1194
- };
1195
- },
1196
- computed: {
1197
- modalStyle() {
1198
- return this.fullscreen ? {
1199
- width: "100%",
1200
- dialogStyle: {
1201
- top: "0px"
1202
- }
1203
- } : {
1204
- width: this.width,
1205
- dialogStyle: {
1206
- top: "40px"
1207
- }
1208
- };
1209
- }
1210
- },
1211
- components: {
1212
- VueCropper: U.exports.VueCropper
1213
- },
1214
- methods: {
1215
- toggleFullscreen() {
1216
- this.fullscreen = !this.fullscreen;
1217
- },
1218
- edit(o) {
1219
- this.fullscreen = !1, this.visible = !0, this.id = o;
1220
- },
1221
- close() {
1222
- this.id = null, this.visible = !1;
1223
- },
1224
- cancelHandel() {
1225
- this.close();
1226
- },
1227
- changeScale(o) {
1228
- o = o || 1, this.$refs.cropper.changeScale(o);
1229
- },
1230
- rotateLeft() {
1231
- this.$refs.cropper.rotateLeft();
1232
- },
1233
- rotateRight() {
1234
- this.$refs.cropper.rotateRight();
1235
- },
1236
- beforeUpload(o) {
1237
- this.fileList = o;
1238
- const e = new FileReader();
1239
- return e.readAsDataURL(o), e.onload = () => {
1240
- this.options.img = e.result;
1241
- }, !1;
1242
- },
1243
- finish(o) {
1244
- o === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
1245
- const n = new window.File([e], this.fileList.name, {
1246
- type: this.fileList.type
1247
- }), a = new FormData();
1248
- a.append("file", n), V(a).then((u) => {
1249
- u.success ? this.updateAvatar(u.data) : (this.uploading = !1, this.$message.error(u.message));
1250
- });
1251
- })) : this.$refs.cropper.getCropData((e) => {
1694
+ u.d(a, "VueCropper", function() {
1695
+ return k;
1252
1696
  });
1253
- },
1254
- updateAvatar(o) {
1255
- const e = {
1256
- id: this.id,
1257
- avatar: o
1697
+ var T = function(i) {
1698
+ i.component("VueCropper", k);
1258
1699
  };
1259
- G(e).then((n) => {
1260
- 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", o);
1261
- }).catch((n) => {
1262
- this.$emit("ok", o);
1263
- });
1264
- },
1265
- realTime(o) {
1266
- this.previews = o;
1267
- },
1268
- doEvent(o) {
1269
- let e = o.item.functionName;
1270
- this[e] && this[e]();
1271
- }
1272
- }
1273
- };
1274
- var ge = function() {
1275
- var e = this, n = e._self._c;
1276
- 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) {
1277
- e.visible = a;
1278
- }, 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) {
1279
- return e.changeScale(1);
1280
- } } })], 1), n("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [n("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
1281
- return e.changeScale(-1);
1282
- } } })], 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) {
1283
- return e.finish("blob");
1284
- } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
1285
- }, fe = [], me = /* @__PURE__ */ H(
1286
- pe,
1287
- ge,
1288
- fe,
1289
- !1,
1290
- null,
1291
- "1fe51f00",
1292
- null,
1293
- null
1294
- );
1295
- const ve = me.exports;
1296
- const we = {
1297
- props: {
1298
- height: {
1299
- type: Number,
1300
- default: 100
1301
- }
1302
- },
1303
- name: "GdBaseSettings",
1304
- components: {
1305
- AvatarModal: ve
1306
- },
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 = {
1307
1705
  data() {
1308
1706
  return {
1309
- preview: {},
1310
- sexData: [],
1311
- langData: [
1312
- {
1313
- id: 1,
1314
- name: "\u7B80\u4F53\u4E2D\u6587",
1315
- transKey: "gd.settings.chineseLanguage"
1316
- },
1317
- {
1318
- id: 2,
1319
- name: "\u82F1\u8BED(\u7F8E\u56FD)",
1320
- transKey: "gd.settings.englishLanguage"
1321
- }
1322
- ],
1323
- timezoneData: [],
1324
- currencyData: [],
1325
- option: {
1326
- img: null,
1327
- info: !0,
1328
- size: 1,
1329
- outputType: "jpeg",
1330
- canScale: !1,
1707
+ width: "800px",
1708
+ visible: !1,
1709
+ id: null,
1710
+ confirmLoading: !1,
1711
+ fileList: [],
1712
+ uploading: !1,
1713
+ options: {
1714
+ img: "",
1331
1715
  autoCrop: !0,
1332
- autoCropWidth: 180,
1333
- autoCropHeight: 180,
1334
- fixedBox: !0,
1335
- fixed: !0,
1336
- fixedNumber: [1, 1],
1337
- birthdayString: ""
1716
+ autoCropWidth: 200,
1717
+ autoCropHeight: 200,
1718
+ fixedBox: !0
1338
1719
  },
1339
- spinning: !1,
1340
- ruleForm: {},
1341
- rules: {}
1342
- };
1343
- },
1344
- computed: {
1345
- getHeight() {
1346
- return this.height;
1347
- },
1348
- ...W(["userInfo", "locale", "language"])
1349
- },
1350
- mounted() {
1351
- this.initUserInfo();
1352
- },
1353
- methods: {
1354
- changeLanguage(o) {
1355
- let e = this.langData.filter((n) => n.id == o)[0];
1356
- this.$store.dispatch("Language", e.code);
1357
- },
1358
- initUserInfo() {
1359
- this.spinning = !0, setTimeout(() => {
1360
- this.languageChange(), this.timezoneChange(), this.currencyChange(), this.ruleForm = {
1361
- birthday: this.userInfo.birthday ? this.userInfo.birthday : void 0,
1362
- nickName: this.userInfo.nickname,
1363
- gender: this.userInfo.gender.toString(),
1364
- email: this.userInfo.email,
1365
- phone: this.userInfo.phone,
1366
- tel: this.userInfo.tel,
1367
- languageId: this.userInfo.languageid,
1368
- currencyId: this.userInfo.currencyid,
1369
- timezoneId: this.userInfo.timezoneid
1370
- }, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? B({
1371
- id: this.userInfo.avatar
1372
- }).then((o) => {
1373
- this.option.img = window.URL.createObjectURL(new Blob([o]));
1374
- }).catch((o) => {
1375
- this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + o.message);
1376
- }) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
1377
- }, 100);
1378
- },
1379
- onChange(o, e) {
1380
- console.log(o), this.birthdayString = o;
1381
- },
1382
- currencyChange() {
1383
- ne().then((o) => {
1384
- o.success && (this.currencyData = o.data.rows, j.ls.set("currencyData", o.data.rows));
1385
- });
1386
- },
1387
- timezoneChange() {
1388
- re().then((o) => {
1389
- o.success && (this.timezoneData = o.data.rows);
1390
- });
1391
- },
1392
- languageChange() {
1393
- ie().then((o) => {
1394
- o.success && (this.langData = o.data.rows);
1395
- });
1396
- },
1397
- submitUserInfo() {
1398
- this.spinning || this.$refs.ruleForm.validate((o) => {
1399
- o && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, q(this.ruleForm).then((e) => {
1400
- if (e.success) {
1401
- let n = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
1402
- this.$store.dispatch("Language", n.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
1403
- this.$store.dispatch("GetInfo").then(() => {
1404
- });
1405
- }, 500);
1406
- } else
1407
- this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
1408
- this.spinning = !1;
1409
- }));
1410
- });
1411
- },
1412
- getSexData() {
1413
- this.sexData = this.$options.filters.dictData("gender");
1414
- },
1415
- setavatar(o) {
1416
- B({
1417
- id: o
1418
- }).then((e) => {
1419
- this.option.img = window.URL.createObjectURL(new Blob([e]));
1420
- }).catch((e) => {
1421
- this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
1422
- }), this.$store.dispatch("GetInfo").then(() => {
1423
- });
1424
- }
1425
- }
1426
- };
1427
- var xe = function() {
1428
- var e = this, n = e._self._c;
1429
- 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) {
1430
- a.preventDefault();
1431
- } } }, [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) {
1432
- e.$set(e.ruleForm, "nickName", a);
1433
- }, 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) {
1434
- e.$set(e.ruleForm, "birthday", a);
1435
- }, 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) {
1436
- e.$set(e.ruleForm, "gender", a);
1437
- }, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, u) {
1438
- return n("el-radio", { key: u, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
1439
- }), 1)], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
1440
- { required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
1441
- {
1442
- pattern: /^1[3-9]\d{9}$/,
1443
- message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
1444
- trigger: "blur"
1445
- }
1446
- ] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
1447
- e.$set(e.ruleForm, "phone", a);
1448
- }, 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) {
1449
- e.$set(e.ruleForm, "tel", a);
1450
- }, expression: "ruleForm.tel" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
1451
- { required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
1452
- { type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
1453
- ] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
1454
- e.$set(e.ruleForm, "email", a);
1455
- }, 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) {
1456
- e.$set(e.ruleForm, "languageId", a);
1457
- }, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, u) {
1458
- return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
1459
- }), 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) {
1460
- e.$set(e.ruleForm, "currencyId", a);
1461
- }, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, u) {
1462
- return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
1463
- }), 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) {
1464
- e.$set(e.ruleForm, "timezoneId", a);
1465
- }, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, u) {
1466
- return n("el-option", { key: u, attrs: { value: a.id, label: a.name } });
1467
- }), 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) {
1468
- return e.$refs.modal.edit(e.userInfo.id);
1469
- } } }, [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);
1470
- }, Ce = [], be = /* @__PURE__ */ H(
1471
- we,
1472
- xe,
1473
- Ce,
1474
- !1,
1475
- null,
1476
- "685efc26",
1477
- null,
1478
- null
1479
- );
1480
- const F = be.exports;
1481
- F.install = function(o) {
1482
- o.component(F.name, F);
1483
- };
1484
- const ye = {
1485
- name: "GdCustomSettings",
1486
- data() {
1487
- return {
1488
- colorList: N,
1489
- options: [],
1490
- homePage: ["uvgsxjpu", "ujhmcamph", "uwcscihbx"],
1491
- account: "",
1492
- echartsList: [],
1493
- value: 0,
1494
- primaryColors: this.primaryColor,
1495
- propOptions: [],
1496
- propOptionsOld: [],
1497
- list: null,
1498
- listOptions: [],
1499
- listOptionsOld: [],
1500
- presentText: []
1720
+ previews: {},
1721
+ fullscreen: !1
1501
1722
  };
1502
1723
  },
1503
1724
  computed: {
1504
- predefine() {
1505
- let o = [];
1506
- return N.forEach((e) => {
1507
- o.push(e.color);
1508
- }), o;
1509
- },
1510
- ...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
1511
- },
1512
- watch: {
1513
- primaryColor() {
1514
- this.primaryColors = this.primaryColor;
1515
- }
1516
- },
1517
- methods: {
1518
- okColor(o) {
1519
- this.$store.dispatch("EchartsColor", o), this.echartsList = [...o];
1520
- },
1521
- getColor() {
1522
- this.echartsList = [...this.echartsColor];
1523
- },
1524
- renew() {
1525
- let o = this, e = this.homePage, n = !1;
1526
- if (e.length == 0 && (n = !0), e.length > 1 && (n = !0), !n) {
1527
- o.$message.error(o.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
1528
- return;
1529
- }
1530
- this.$confirm(
1531
- this.$i18nt("gd.https.configThemeContent", "\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),
1532
- this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
1533
- {
1534
- confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u5B9A\u4FDD\u5B58"),
1535
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1536
- showClose: !1,
1537
- confirmButtonLoading: !1,
1538
- cancelButtonLoading: !1,
1539
- closeOnClickModal: !1,
1540
- type: "warning",
1541
- confirmButtonClass: "el-button--danger",
1542
- customClass: "custom-alert",
1543
- callback: () => {
1544
- },
1545
- beforeClose: (a, u, d) => {
1546
- this.renewHand(a, u, d, this.homePage);
1547
- }
1725
+ modalStyle() {
1726
+ return this.fullscreen ? {
1727
+ width: "100%",
1728
+ dialogStyle: {
1729
+ top: "0px"
1548
1730
  }
1549
- );
1550
- },
1551
- renewHand(o, e, n, a) {
1552
- if (o !== "confirm") {
1553
- n();
1554
- return;
1555
- }
1556
- let u = [], d = Z({
1557
- configTheme: a.join(",")
1558
- }).then((x) => x);
1559
- u.push(d), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(u).then((x) => {
1560
- n(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
1561
- const $ = x.filter((I) => !I.success);
1562
- $.length === 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$store.dispatch("GetInfo").then(() => {
1563
- })) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
1564
- });
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;
1565
1745
  },
1566
- init() {
1567
- this.value = this.theme == "dark" ? 1 : 0, this.homePage = this.userInfo.configtheme ? this.userInfo.configtheme.split(",") : [], this.systemInfo.id ? this.systemInfo : window.$systemInfo;
1746
+ edit(s) {
1747
+ this.fullscreen = !1, this.visible = !0, this.id = s;
1568
1748
  },
1569
- lazyLoad(o, e) {
1570
- const { level: n, value: a } = o;
1571
- if (this.options.length === 0) {
1572
- this.geData().then(() => {
1573
- if (this.presentText.length < this.homePage.length) {
1574
- const u = this.options.filter((d) => d.code === this.homePage[0])[0];
1575
- this.presentText = u ? this.presentText.concat([u.label]) : this.presentText;
1576
- }
1577
- e(this.options);
1578
- });
1579
- return;
1580
- }
1581
- this.getMenuListAll(a).then((u) => {
1582
- if (this.presentText.length < this.homePage.length && n === 2) {
1583
- this.presentText = this.presentText.concat([o.label]);
1584
- const x = o.children.filter(($) => $.value === this.homePage[n])[0];
1585
- this.presentText = x ? this.presentText.concat([x.label]) : this.presentText;
1586
- }
1587
- const d = this.$refs.cascader.presentText;
1588
- this.presentText.length === this.homePage.length && d === null && (this.$refs.cascader.presentText = this.presentText.join(" / ")), e(u);
1589
- });
1749
+ close() {
1750
+ this.id = null, this.visible = !1;
1590
1751
  },
1591
- geData() {
1592
- return se({}).then((o) => {
1593
- if (o.success) {
1594
- let e = o.data.map((n) => {
1595
- let a = this.userInfo.apps.filter((u) => u.code == n.code)[0];
1596
- if (a != null)
1597
- return n.leaf = a == null, n.value = n.code, n.label = this.$i18nt(`Dynamics.${n.transkey}`, n.name), n.loading = !1, n;
1598
- });
1599
- return e = e.filter((n) => n !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((n) => {
1600
- n();
1601
- });
1602
- }
1603
- });
1752
+ cancelHandel() {
1753
+ this.close();
1604
1754
  },
1605
- getMenuListAll(o) {
1606
- return Promise.all([this.getMenuList({ application: o }), this.sysMenuChange({ application: o })]).then((e) => {
1607
- let n = e[0].data, a = e[1].data;
1608
- return n.map((u, d) => {
1609
- let x = a.filter(($) => $.path == u.router);
1610
- 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(($, I) => {
1611
- let L = a.filter((k) => k.path == $.router);
1612
- n[d].children[I].value = $.router, n[d].children[I].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), n[d].children[I].children = [], n[d].children[I].leaf = !0, n[d].children[I].disabled = L.length == 0;
1613
- }), u;
1614
- }), n.map((u) => {
1615
- u.children = u.children ? u.children.filter((d) => d.disabled == !1) : [];
1616
- }), n;
1617
- });
1755
+ changeScale(s) {
1756
+ s = s || 1, this.$refs.cropper.changeScale(s);
1618
1757
  },
1619
- getMenuList(o) {
1620
- return oe(o).then((e) => e);
1758
+ rotateLeft() {
1759
+ this.$refs.cropper.rotateLeft();
1621
1760
  },
1622
- sysMenuChange(o) {
1623
- return ae(o).then((e) => e);
1761
+ rotateRight() {
1762
+ this.$refs.cropper.rotateRight();
1624
1763
  },
1625
- onChangeCascader(o) {
1626
- const e = this.$refs.cascader.presentText;
1627
- this.presentText = e !== null ? e.split(" / ") : [];
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;
1628
1770
  },
1629
- onChange(o) {
1630
- o ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
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
+ });
1631
1781
  },
1632
- async changeColor(o) {
1633
- const e = this, n = this.primaryColor;
1634
- if (typeof o != "string")
1635
- return;
1636
- const a = this.$message({
1637
- message: e.$i18nt("gd.theme.switchingTopics"),
1638
- duration: 0,
1639
- iconClass: "el-icon-loading"
1640
- }), u = this.getThemeCluster(o.replace("#", "")), d = this.getThemeCluster(n.replace("#", "")), x = (L, k) => () => {
1641
- const T = this.getThemeCluster(this.primaryColor.replace("#", "")), i = this.updateStyle(this[L], T, u);
1642
- let t = document.getElementById(k);
1643
- t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = i;
1782
+ updateAvatar(s) {
1783
+ const e = {
1784
+ id: this.id,
1785
+ avatar: s
1644
1786
  };
1645
- this.chalk || await import("./element-theme-chalk.fbb1a631.mjs").then((L) => {
1646
- this.chalk = L.default;
1647
- }), x("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((L) => {
1648
- const k = L.innerText;
1649
- return new RegExp(n, "i").test(k) && !/Chalk Variables/.test(k);
1650
- }).forEach((L) => {
1651
- const { innerText: k } = L;
1652
- typeof k == "string" && (L.innerText = this.updateStyle(k, d, u));
1653
- }), this.$store.dispatch("ToggleColor", o), window.document.body.style = `--color:${o}`, this.$nextTick(() => {
1654
- setTimeout(() => {
1655
- a.close();
1656
- }, 200);
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);
1657
1791
  });
1658
1792
  },
1659
- updateStyle(o, e, n) {
1660
- let a = o;
1661
- return e.forEach((u, d) => {
1662
- a = a.replace(new RegExp(u, "ig"), n[d]);
1663
- }), a;
1664
- },
1665
- getThemeCluster(o) {
1666
- const e = (u, d) => {
1667
- let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), I = parseInt(u.slice(4, 6), 16);
1668
- return d === 0 ? [x, $, I].join(",") : (x += Math.round(d * (255 - x)), $ += Math.round(d * (255 - $)), I += Math.round(d * (255 - I)), x = x.toString(16), $ = $.toString(16), I = I.toString(16), `#${x}${$}${I}`);
1669
- }, n = (u, d) => {
1670
- let x = parseInt(u.slice(0, 2), 16), $ = parseInt(u.slice(2, 4), 16), I = parseInt(u.slice(4, 6), 16);
1671
- return x = Math.round((1 - d) * x), $ = Math.round((1 - d) * $), I = Math.round((1 - d) * I), x = x.toString(16), $ = $.toString(16), I = I.toString(16), `#${x}${$}${I}`;
1672
- }, a = [o];
1673
- for (let u = 0; u <= 9; u++)
1674
- a.push(e(o, Number((u / 10).toFixed(2))));
1675
- return a.push(n(o, 0.1)), a;
1793
+ realTime(s) {
1794
+ this.previews = s;
1676
1795
  },
1677
- traverse(o, e) {
1678
- let n = null;
1679
- const a = (u) => (u = u.filter((d, x) => (d.children && d.children.length > 0 && a(d.children), d.value == o && (n = {
1680
- ...d
1681
- }), !0)), u);
1682
- return a(this.propOptions), n;
1796
+ doEvent(s) {
1797
+ let e = s.item.functionName;
1798
+ this[e] && this[e]();
1683
1799
  }
1684
- },
1685
- mounted() {
1686
- this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
1687
1800
  }
1688
1801
  };
1689
- var _e = function() {
1802
+ var Ie = function() {
1690
1803
  var e = this, n = e._self._c;
1691
- 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) {
1692
- e.value = a;
1693
- }, 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) {
1694
- e.primaryColors = a;
1695
- }, 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) {
1696
- 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)];
1697
- }), n("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(a) {
1698
- return e.$refs.echartsTheme.open();
1699
- } } }, [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) {
1700
- e.homePage = a;
1701
- }, 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);
1702
- }, $e = [], Ie = /* @__PURE__ */ H(
1703
- ye,
1704
- _e,
1705
- $e,
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,
1706
1817
  !1,
1707
1818
  null,
1708
- "b784faab",
1819
+ "1fe51f00",
1709
1820
  null,
1710
1821
  null
1711
1822
  );
1712
- const P = Ie.exports;
1713
- P.install = function(o) {
1714
- o.component(P.name, P);
1715
- };
1716
- const Se = {
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 = {
1717
1828
  props: {
1718
1829
  isShow: {
1719
1830
  type: Boolean,
@@ -1774,14 +1885,14 @@ const Se = {
1774
1885
  toggleFullscreen() {
1775
1886
  this.fullscreen = !this.fullscreen;
1776
1887
  },
1777
- open(o, e, n) {
1778
- this.fullscreen = !1, this.userId = o, this.code = e, this.num = n, this.num == 1 ? this.getConfigInfo() : this.$nextTick(() => {
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(() => {
1779
1890
  this.formUpdPwd.setFieldsValue({
1780
1891
  account: this.userId
1781
1892
  });
1782
1893
  }), this.visible = !0;
1783
1894
  },
1784
- getConfigInfo(o) {
1895
+ getConfigInfo(s) {
1785
1896
  K().then((e) => {
1786
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(
1787
1898
  `^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
@@ -1789,8 +1900,8 @@ const Se = {
1789
1900
  });
1790
1901
  },
1791
1902
  handleSubmit() {
1792
- this.$refs.ruleForm.validate((o) => {
1793
- if (o) {
1903
+ this.$refs.ruleForm.validate((s) => {
1904
+ if (s) {
1794
1905
  this.confirmLoading = !0;
1795
1906
  let e;
1796
1907
  this.num == 1 ? e = {
@@ -1801,7 +1912,7 @@ const Se = {
1801
1912
  account: this.ruleForm.account,
1802
1913
  password: this.ruleForm.password,
1803
1914
  corpCode: this.code
1804
- }, (this.num == 1 ? J : Q)(e).then((a) => {
1915
+ }, (this.num == 1 ? Q : ee)(e).then((a) => {
1805
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);
1806
1917
  }).finally((a) => {
1807
1918
  this.confirmLoading = !1;
@@ -1812,19 +1923,19 @@ const Se = {
1812
1923
  handleCancel() {
1813
1924
  this.$refs.ruleForm.resetFields(), this.visible = !1;
1814
1925
  },
1815
- compareToFirstPassword(o, e, n) {
1926
+ compareToFirstPassword(s, e, n) {
1816
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();
1817
1928
  },
1818
- oldtPassword(o, e, n) {
1929
+ oldtPassword(s, e, n) {
1819
1930
  e && e === this.ruleForm.password ? n(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : n();
1820
1931
  },
1821
- doEvent(o) {
1822
- let e = o.item.functionName;
1932
+ doEvent(s) {
1933
+ let e = s.item.functionName;
1823
1934
  this[e] && this[e]();
1824
1935
  }
1825
1936
  }
1826
1937
  };
1827
- var ke = function() {
1938
+ var Oe = function() {
1828
1939
  var e = this, n = e._self._c;
1829
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) {
1830
1941
  e.visible = a;
@@ -1856,18 +1967,21 @@ var ke = function() {
1856
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) {
1857
1968
  e.$set(e.ruleForm, "password", a);
1858
1969
  }, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
1859
- }, Le = [], Te = /* @__PURE__ */ H(
1860
- Se,
1861
- ke,
1862
- Le,
1970
+ }, He = [], We = /* @__PURE__ */ H(
1971
+ Ee,
1972
+ Oe,
1973
+ He,
1863
1974
  !1,
1864
1975
  null,
1865
1976
  "1d4e1c11",
1866
1977
  null,
1867
1978
  null
1868
1979
  );
1869
- const z = Te.exports;
1870
- const Ae = {
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 = {
1871
1985
  props: {
1872
1986
  isClear: {
1873
1987
  type: Number,
@@ -1875,7 +1989,7 @@ const Ae = {
1875
1989
  }
1876
1990
  },
1877
1991
  components: {
1878
- UpdPwd: z
1992
+ UpdPwd: U
1879
1993
  },
1880
1994
  data() {
1881
1995
  return {
@@ -1916,12 +2030,12 @@ const Ae = {
1916
2030
  mounted() {
1917
2031
  },
1918
2032
  methods: {
1919
- open(o, e) {
1920
- this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(o);
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);
1921
2035
  },
1922
- getWeChat(o) {
2036
+ getWeChat(s) {
1923
2037
  let e = this;
1924
- o.data.forEach((n, a) => {
2038
+ s.data.forEach((n, a) => {
1925
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);
1926
2040
  }), setTimeout(() => {
1927
2041
  e.wwLogin = ww.createWWLoginPanel({
@@ -1952,146 +2066,28 @@ const Ae = {
1952
2066
  }
1953
2067
  }
1954
2068
  };
1955
- var Ee = function() {
2069
+ var Xe = function() {
1956
2070
  var e = this, n = e._self._c;
1957
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) {
1958
2072
  e.visible = a;
1959
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);
1960
- }, Oe = [], He = /* @__PURE__ */ H(
1961
- Ae,
1962
- Ee,
1963
- Oe,
1964
- !1,
1965
- null,
1966
- "55ede8aa",
1967
- null,
1968
- null
1969
- );
1970
- const We = He.exports;
1971
- const Me = {
1972
- name: "GdSecuritySettings",
1973
- components: {
1974
- UpdPwd: z,
1975
- weChatBind: We
1976
- },
1977
- data() {
1978
- return {
1979
- isShow: !1,
1980
- num: 0,
1981
- wxUserId: null,
1982
- obj: {},
1983
- appId: "",
1984
- agentId: "",
1985
- redirectURL: "",
1986
- enterpriseNum: 0,
1987
- bindTitle: "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",
1988
- dicsTitle: ""
1989
- };
1990
- },
1991
- watch: {
1992
- language(o, e) {
1993
- this.changeLanguage();
1994
- },
1995
- userInfo(o, e) {
1996
- this.changUserInfo();
1997
- }
1998
- },
1999
- created() {
2000
- this.init();
2001
- },
2002
- mounted() {
2003
- },
2004
- computed: {
2005
- ...W(["userInfo", "language"])
2006
- },
2007
- methods: {
2008
- updPwd() {
2009
- this.$refs.updPwd.open(this.userInfo.account, null, 1);
2010
- },
2011
- bind() {
2012
- this.$refs.weChatBind.open(this.obj, 1);
2013
- },
2014
- getConfigInfo() {
2015
- ee({
2016
- code: "GDS_ENTERPRISE_WECHAT_LOGIN"
2017
- }).then((e) => {
2018
- this.enterpriseNum = e.data.value;
2019
- });
2020
- },
2021
- getConfigsBy() {
2022
- te({
2023
- strCodes: "GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"
2024
- }).then((e) => {
2025
- e.success && (this.obj = e);
2026
- });
2027
- },
2028
- getData() {
2029
- ce().then((o) => {
2030
- this.wxuserid = o.data.wxuserid;
2031
- });
2032
- },
2033
- changeLanguage() {
2034
- this.init();
2035
- },
2036
- changUserInfo() {
2037
- this.init();
2038
- },
2039
- init() {
2040
- this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
2041
- },
2042
- getWeChat(o, e) {
2043
- let n = this;
2044
- o.data.forEach((a, u) => {
2045
- 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);
2046
- }), setTimeout(() => {
2047
- n.wwLogin = ww.createWWLoginPanel({
2048
- el: "#wx_qrcode",
2049
- params: {
2050
- login_type: "CorpApp",
2051
- appid: n.appId,
2052
- agentid: n.agentId,
2053
- redirect_uri: n.redirectURL,
2054
- state: "loginState",
2055
- redirect_type: "callback",
2056
- panel_size: "middle",
2057
- lang: e == "zh_CN" ? "zh" : "en"
2058
- },
2059
- onCheckWeComLogin({ isWeComLogin: a }) {
2060
- console.log(a);
2061
- },
2062
- onLoginSuccess({ code: a }) {
2063
- n.code = a, n.$refs.updPwd.open(n.userInfo.account, a, 2), console.log(a);
2064
- },
2065
- onLoginFail(a) {
2066
- }
2067
- });
2068
- }, 500);
2069
- },
2070
- bindCode(o) {
2071
- o == 1 || o == 0 ? this.getData() : o == -1 ? this.getConfigsBy() : o == 2 && this.getConfigsBy();
2072
- }
2073
- }
2074
- };
2075
- var Xe = function() {
2076
- var e = this, n = e._self._c;
2077
- 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, .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, .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);
2078
- }, Fe = [], Pe = /* @__PURE__ */ H(
2079
- Me,
2074
+ }, Fe = [], Ye = /* @__PURE__ */ H(
2075
+ Pe,
2080
2076
  Xe,
2081
2077
  Fe,
2082
2078
  !1,
2083
2079
  null,
2084
- "bab5209a",
2080
+ "55ede8aa",
2085
2081
  null,
2086
2082
  null
2087
2083
  );
2088
- const Y = Pe.exports;
2089
- Y.install = function(o) {
2090
- o.component(Y.name, Y);
2091
- };
2084
+ const Re = Ye.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2085
+ __proto__: null,
2086
+ default: Re
2087
+ }, Symbol.toStringTag, { value: "Module" }));
2092
2088
  export {
2093
- X as G,
2094
- F as a,
2089
+ P as G,
2090
+ X as a,
2095
2091
  Y as b,
2096
- P as c
2092
+ F as c
2097
2093
  };