gds-plus-design-vue 1.2.62 → 1.2.63

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 (332) hide show
  1. package/lib/addPermission.5036013c.js +1 -0
  2. package/lib/addPermission.9fc97a47.mjs +421 -0
  3. package/lib/approvalModel.51d07afe.mjs +340 -0
  4. package/lib/approvalModel.66f49dfb.js +1 -0
  5. package/lib/attribute.318f485c.js +1 -0
  6. package/lib/attribute.a06ac9e7.mjs +237 -0
  7. package/lib/buildItem.6a834227.js +1 -0
  8. package/lib/buildItem.fd8634ab.mjs +205 -0
  9. package/lib/businessRules.0e4dbb3a.js +1 -0
  10. package/lib/businessRules.db6ba874.mjs +538 -0
  11. package/lib/components.chartbi.b043dcdc.mjs +1729 -0
  12. package/lib/components.chartbi.e4680eaa.js +7 -0
  13. package/lib/components.coloreditor.044983d2.mjs +1505 -0
  14. package/lib/components.coloreditor.779a9419.js +6 -0
  15. package/lib/components.dataassign.1853ed5c.js +1 -0
  16. package/lib/components.dataassign.56632583.mjs +147 -0
  17. package/lib/components.echarts.10d3ffe2.mjs +794 -0
  18. package/lib/components.echarts.e4d6b13e.js +3 -0
  19. package/lib/components.exception.3cc33e29.js +1 -0
  20. package/lib/components.exception.cc2f4ca3.mjs +61 -0
  21. package/lib/components.form.3344c817.mjs +7785 -0
  22. package/lib/components.form.91d5ed3e.js +41 -0
  23. package/lib/components.globalheader.07a90c4b.js +1 -0
  24. package/lib/components.globalheader.43fafa8c.mjs +54 -0
  25. package/lib/components.iconselector.8caabeaa.mjs +1165 -0
  26. package/lib/components.iconselector.d712170f.js +1 -0
  27. package/lib/components.imgpreview.57290b54.mjs +213 -0
  28. package/lib/components.imgpreview.86bf7971.js +1 -0
  29. package/lib/components.lunccalendar.76159d2e.js +1 -0
  30. package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
  31. package/lib/components.middleware.3bad5748.js +1 -0
  32. package/lib/components.middleware.457b1182.mjs +147 -0
  33. package/lib/components.modaltitle.ae92f96c.mjs +127 -0
  34. package/lib/components.modaltitle.e0b34fcb.js +1 -0
  35. package/lib/components.multitab.82fd0544.js +1 -0
  36. package/lib/components.multitab.8441aa6b.mjs +140 -0
  37. package/lib/components.selecttree.85d940a9.mjs +170 -0
  38. package/lib/components.selecttree.d710a362.js +1 -0
  39. package/lib/components.settingdrawer.779f6715.js +1 -0
  40. package/lib/components.settingdrawer.a6693034.mjs +237 -0
  41. package/lib/components.sidemenu.725677e3.mjs +277 -0
  42. package/lib/components.sidemenu.80e46c2d.js +1 -0
  43. package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
  44. package/lib/components.sidenavmenu.b9bb9304.js +1 -0
  45. package/lib/components.statuschange.15938660.mjs +116 -0
  46. package/lib/components.statuschange.ed1218a4.js +1 -0
  47. package/lib/components.table.17c02054.js +8 -0
  48. package/lib/components.table.e3e5e3bc.mjs +4635 -0
  49. package/lib/components.tableumy.2f5dfa12.mjs +450 -0
  50. package/lib/components.tableumy.9cf33062.js +1 -0
  51. package/lib/components.tablevirtual.38d4d3d8.js +1 -0
  52. package/lib/components.tablevirtual.ba03746e.mjs +561 -0
  53. package/lib/components.teamsharing.05503821.js +1 -0
  54. package/lib/components.teamsharing.fb4351ec.mjs +373 -0
  55. package/lib/components.tooltip.950dc77b.mjs +86 -0
  56. package/lib/components.tooltip.a05d8dd1.js +1 -0
  57. package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
  58. package/lib/components.uploadfile.5a9b6cc1.js +1 -0
  59. package/lib/components.uploadimg.cce7452a.js +1 -0
  60. package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
  61. package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
  62. package/lib/components.verificationcode.d1946db4.js +1 -0
  63. package/lib/components.viewformdetails.1621bc18.js +1 -0
  64. package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
  65. package/lib/components.viewloading.807bbf68.js +1 -0
  66. package/lib/components.viewloading.ea40b244.mjs +96 -0
  67. package/lib/components.watermark.1ffc66e0.mjs +53 -0
  68. package/lib/components.watermark.da3d7220.js +2 -0
  69. package/lib/components.xlsxexport.d98572f8.mjs +263 -0
  70. package/lib/components.xlsxexport.f5ace2cd.js +1 -0
  71. package/lib/components.xlsximport.cffa88fe.mjs +913 -0
  72. package/lib/components.xlsximport.dbd826bb.js +1 -0
  73. package/lib/createFile.6b37ecf2.js +1 -0
  74. package/lib/createFile.82d6e415.mjs +239 -0
  75. package/lib/createSubfolders.47af629c.js +1 -0
  76. package/lib/createSubfolders.d35b97e9.mjs +154 -0
  77. package/lib/dialogLayout.08823bb7.js +1 -0
  78. package/lib/dialogLayout.c4bc3b55.mjs +138 -0
  79. package/lib/drawerContainer.604a1271.mjs +146 -0
  80. package/lib/drawerContainer.6a9813ce.js +1 -0
  81. package/lib/drawerLayout.36cf4d05.js +1 -0
  82. package/lib/drawerLayout.fb60950f.mjs +119 -0
  83. package/lib/fileSearch.65311ded.js +1 -0
  84. package/lib/fileSearch.86c356fe.mjs +338 -0
  85. package/lib/flow.designer.1ba3a90d.js +1 -0
  86. package/lib/flow.designer.6da03949.mjs +7686 -0
  87. package/lib/flow.list.03694808.mjs +3030 -0
  88. package/lib/flow.list.4eb10554.js +1 -0
  89. package/lib/form.build.51bd261e.js +1 -0
  90. package/lib/form.build.b768d613.mjs +251 -0
  91. package/lib/form.designer.build.5a950455.js +1 -0
  92. package/lib/form.designer.build.e521c9c6.mjs +5091 -0
  93. package/lib/formFiled.464856f5.js +1 -0
  94. package/lib/formFiled.fe7d9df3.mjs +505 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +221 -91338
  97. package/lib/http.appmanage.4554a629.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
  100. package/lib/http.codegeneratemanage.aecadd5d.js +1 -0
  101. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  102. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  103. package/lib/http.currencymanage.37ab5ced.js +1 -0
  104. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  105. package/lib/http.datasource.294b01e2.js +1 -0
  106. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  107. package/lib/http.dictdatamanage.4baf16c0.mjs +42 -0
  108. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  109. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  110. package/lib/http.dictmanage.77c69971.mjs +50 -0
  111. package/lib/http.duplicatechecking.31964ce7.mjs +50 -0
  112. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  113. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  114. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  115. package/lib/http.filedocument.7c656b91.js +1 -0
  116. package/lib/http.filedocument.d456d26a.mjs +156 -0
  117. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  118. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  119. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  120. package/lib/http.languagemanage.e2c098ec.js +1 -0
  121. package/lib/http.loginmanage.05500c29.mjs +74 -0
  122. package/lib/http.loginmanage.326984c3.js +1 -0
  123. package/lib/http.logmanage.1e12a9bd.js +1 -0
  124. package/lib/http.logmanage.8ba72635.mjs +82 -0
  125. package/lib/http.machinemanage.29d72a65.js +1 -0
  126. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  127. package/lib/http.main.2f8a6936.js +1 -0
  128. package/lib/http.main.40657f51.mjs +517 -0
  129. package/lib/http.menumanage.3240ba0d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.5004bf60.mjs +178 -0
  132. package/lib/http.message.87f319d7.js +1 -0
  133. package/lib/http.noticemanage.2507d094.js +1 -0
  134. package/lib/http.noticemanage.e03bd5f3.mjs +82 -0
  135. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  136. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  137. package/lib/http.onlineusermanage.3893f897.js +1 -0
  138. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  139. package/lib/http.orgmanage.5162fd7a.js +1 -0
  140. package/lib/http.orgmanage.84e43edb.mjs +58 -0
  141. package/lib/http.pluginmanage.6a876040.js +1 -0
  142. package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
  146. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  147. package/lib/http.rolemanage.03363732.js +1 -0
  148. package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
  149. package/lib/http.solution.175d36c8.mjs +91 -0
  150. package/lib/http.solution.c6b2634f.js +1 -0
  151. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  152. package/lib/http.sumberrules.608a06d6.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.e294ceaf.mjs +58 -0
  155. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  156. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  157. package/lib/http.tabledevelopment.1d370398.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.c8487c0b.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
  162. package/lib/http.timersmanage.6e894942.js +1 -0
  163. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  164. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  165. package/lib/http.translationmanage.1f9dce46.js +1 -0
  166. package/lib/http.translationmanage.a4640c9a.mjs +104 -0
  167. package/lib/http.useraffiliation.840741ed.mjs +90 -0
  168. package/lib/http.useraffiliation.af2013ad.js +1 -0
  169. package/lib/http.usermanage.3e5eff33.mjs +219 -0
  170. package/lib/http.usermanage.6dcbc7de.js +1 -0
  171. package/lib/http.webresource.5158b431.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.69ad4631.mjs +44291 -0
  174. package/lib/index.cca024bf.js +8 -0
  175. package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
  176. package/lib/layoutBlocks.5e6be06f.js +1 -0
  177. package/lib/layouts.051a0bba.mjs +376 -0
  178. package/lib/layouts.a6a36612.js +2 -0
  179. package/lib/main.457f4326.js +1 -0
  180. package/lib/main.4fff412e.js +1 -0
  181. package/lib/{main.c569c0a5.mjs → main.70357352.mjs} +12 -10
  182. package/lib/main.77373aa4.mjs +441 -0
  183. package/lib/{main.fb4a8edf.mjs → main.7f44e3bf.mjs} +78 -143
  184. package/lib/main.8a2a590d.js +1 -0
  185. package/lib/main.ad1e8d4d.js +1 -0
  186. package/lib/{main.5a6c881a.mjs → main.b0e5e1b0.mjs} +9 -8
  187. package/lib/{main.7921130e.mjs → main.c1df94d8.mjs} +4 -4
  188. package/lib/main.c3726602.js +1 -0
  189. package/lib/manage.5bb4f719.js +1 -0
  190. package/lib/manage.a1df9b88.mjs +419 -0
  191. package/lib/messages.7b74736f.js +9 -0
  192. package/lib/{messages.5bcc42f9.mjs → messages.ad082386.mjs} +994 -1968
  193. package/lib/moveFile.0ce803e0.js +1 -0
  194. package/lib/moveFile.8310ea94.mjs +254 -0
  195. package/lib/page.build.685c1e15.mjs +3158 -0
  196. package/lib/page.build.846096e6.js +12 -0
  197. package/lib/personal.echarts.b22fba61.mjs +701 -0
  198. package/lib/personal.echarts.f77bfc9e.js +1 -0
  199. package/lib/result.19351665.mjs +526 -0
  200. package/lib/result.e59c0e40.js +1 -0
  201. package/lib/router.config.2501ec51.js +1 -0
  202. package/lib/router.config.98a73167.mjs +3172 -0
  203. package/lib/solution.58580123.js +1 -0
  204. package/lib/solution.890ff164.mjs +6942 -0
  205. package/lib/store.config.3cb11578.js +1 -0
  206. package/lib/store.config.fff8a5a1.mjs +542 -0
  207. package/lib/style.css +3 -3
  208. package/lib/system.account.014f3e0b.mjs +2097 -0
  209. package/lib/system.account.0d4f1fdc.js +216 -0
  210. package/lib/{system.config.00dd0a29.mjs → system.config.0899edb8.mjs} +7 -6
  211. package/lib/system.config.210f516c.js +1 -0
  212. package/lib/system.datasource.82492d27.js +1 -0
  213. package/lib/{system.datasource.eb8d16df.mjs → system.datasource.986768c9.mjs} +15 -64
  214. package/lib/{system.dict.787ff1ec.mjs → system.dict.ef24873d.mjs} +28 -107
  215. package/lib/system.dict.f5708400.js +1 -0
  216. package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
  217. package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
  218. package/lib/system.email.070ab2be.js +1 -0
  219. package/lib/system.email.252fd642.mjs +138 -0
  220. package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
  221. package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
  222. package/lib/system.file.17a7f2ed.js +1 -0
  223. package/lib/{system.file.eae6eac2.mjs → system.file.73eeb731.mjs} +8 -7
  224. package/lib/{system.log.9bf208c1.mjs → system.log.b86cf57f.mjs} +24 -93
  225. package/lib/system.log.fc60f5e6.js +1 -0
  226. package/lib/{system.machine.0130e762.mjs → system.machine.0114001b.mjs} +5 -25
  227. package/lib/system.machine.f1d95c86.js +1 -0
  228. package/lib/{system.notice.dba4c597.mjs → system.notice.25ea8dca.mjs} +292 -474
  229. package/lib/system.notice.96c770a6.js +1 -0
  230. package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.369f634c.mjs} +17 -24
  231. package/lib/system.noticereceived.dfe4ecc7.js +1 -0
  232. package/lib/{system.onlineuser.bfc3abf2.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
  233. package/lib/system.onlineuser.e2e39bdc.js +1 -0
  234. package/lib/system.org.79ee5bd6.js +1 -0
  235. package/lib/{system.org.6da23c73.mjs → system.org.c20fe6b2.mjs} +3 -3
  236. package/lib/system.permissions.90f73461.js +9 -0
  237. package/lib/{system.permissions.fdad3c36.mjs → system.permissions.c3d34921.mjs} +4 -3
  238. package/lib/{system.plugin.f8765f96.mjs → system.plugin.45a0f530.mjs} +23 -93
  239. package/lib/system.plugin.b34a3b47.js +1 -0
  240. package/lib/system.pos.0a3d2a37.js +1 -0
  241. package/lib/{system.pos.5645b45a.mjs → system.pos.7946a99c.mjs} +31 -62
  242. package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
  243. package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.d7250932.mjs} +153 -288
  244. package/lib/system.role.03be0982.js +1 -0
  245. package/lib/{system.role.0c6c327d.mjs → system.role.75da7929.mjs} +8 -5
  246. package/lib/{system.sumberrules.b48c028c.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
  247. package/lib/system.sumberrules.bb228fce.js +1 -0
  248. package/lib/system.team.32183b63.js +1 -0
  249. package/lib/system.team.e6a9608e.mjs +450 -0
  250. package/lib/{system.teammembers.e23e15d9.mjs → system.teammembers.4a7e7339.mjs} +135 -82
  251. package/lib/system.teammembers.847d8ea7.js +1 -0
  252. package/lib/system.timers.28691ce4.js +38 -0
  253. package/lib/{system.timers.63d03fc9.mjs → system.timers.eb0b6f3e.mjs} +50 -174
  254. package/lib/system.translation.6237f071.js +1 -0
  255. package/lib/{system.translation.52452a24.mjs → system.translation.e34f0891.mjs} +5 -5
  256. package/lib/{system.user.8d97a219.mjs → system.user.fa2d2997.mjs} +17 -16
  257. package/lib/{system.user.49457fd3.js → system.user.fca3f2d6.js} +5 -5
  258. package/lib/{system.useraffiliation.3075aa2c.mjs → system.useraffiliation.518e341e.mjs} +4 -3
  259. package/lib/system.useraffiliation.7547b9c7.js +1 -0
  260. package/lib/system.webresource.12712b90.js +1 -0
  261. package/lib/{system.webresource.7df0cf1e.mjs → system.webresource.469db736.mjs} +16 -58
  262. package/lib/{system.welcome.14785b50.mjs → system.welcome.191e98f5.mjs} +10 -3
  263. package/lib/system.welcome.f64e49f8.js +1 -0
  264. package/lib/tcheckboxs.090e75eb.mjs +52 -0
  265. package/lib/tcheckboxs.99361be3.js +1 -0
  266. package/lib/tcurrency.0ddac2f8.mjs +92 -0
  267. package/lib/tcurrency.62763c6d.js +1 -0
  268. package/lib/tdatepicker.8fe48b1b.mjs +52 -0
  269. package/lib/tdatepicker.b19e689d.js +1 -0
  270. package/lib/tdictSwitch.2e07dc8a.js +1 -0
  271. package/lib/tdictSwitch.43d882c7.mjs +60 -0
  272. package/lib/tfile.1bc381f9.js +1 -0
  273. package/lib/tfile.72925615.mjs +62 -0
  274. package/lib/tparticipants.77b876e2.js +1 -0
  275. package/lib/tparticipants.ca5b556c.mjs +56 -0
  276. package/lib/translation.mains.1ce7e110.js +1 -0
  277. package/lib/translation.mains.278e4ba6.mjs +383 -0
  278. package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
  279. package/lib/utils.datepicker.js.8576e2fc.js +1 -0
  280. package/lib/utils.echarts.js.461a74e7.js +54 -0
  281. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  282. package/lib/utils.mixins.js.750ca50e.js +1 -0
  283. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  284. package/lib/utils.util.js.50d1ec9c.js +1 -0
  285. package/lib/utils.util.js.82cd8447.mjs +424 -0
  286. package/lib/view.build.b44fd7d7.js +1 -0
  287. package/lib/view.build.f2a9fcfb.mjs +2727 -0
  288. package/lib/viewList.5a25c4b6.mjs +346 -0
  289. package/lib/viewList.be5a5ec5.js +1 -0
  290. package/locale/en_US.js +38 -22
  291. package/locale/id_ID.js +22 -6
  292. package/locale/vi_VN.js +1929 -1913
  293. package/locale/zh_CN.js +44 -28
  294. package/package.json +106 -105
  295. package/lib/chartbi.114d32d7.js +0 -60
  296. package/lib/chartbi.eb4dd0af.mjs +0 -27639
  297. package/lib/main.083e0ba3.js +0 -1
  298. package/lib/main.4a858284.js +0 -1
  299. package/lib/main.64cb2027.js +0 -1
  300. package/lib/main.70a46cbc.js +0 -1
  301. package/lib/messages.364eb728.js +0 -9
  302. package/lib/system.account.95bd8508.js +0 -216
  303. package/lib/system.account.d6c7485b.mjs +0 -2552
  304. package/lib/system.config.63c0217d.js +0 -1
  305. package/lib/system.datasource.a2c0bad4.js +0 -1
  306. package/lib/system.dict.dfb4c376.js +0 -1
  307. package/lib/system.duplicatechecking.a58aad69.mjs +0 -2142
  308. package/lib/system.duplicatechecking.c4141ebd.js +0 -1
  309. package/lib/system.email.545cedff.mjs +0 -7432
  310. package/lib/system.email.ec0ac728.js +0 -41
  311. package/lib/system.fieldsecurity.eb217079.js +0 -1
  312. package/lib/system.file.1cb952a4.js +0 -1
  313. package/lib/system.log.348b3605.js +0 -1
  314. package/lib/system.machine.49fc6405.js +0 -1
  315. package/lib/system.notice.d7a3346d.js +0 -1
  316. package/lib/system.noticereceived.c0b24616.js +0 -1
  317. package/lib/system.onlineuser.b3c94b5b.js +0 -1
  318. package/lib/system.org.30063246.js +0 -1
  319. package/lib/system.permissions.1ff855c2.js +0 -9
  320. package/lib/system.plugin.2c7c8a5a.js +0 -1
  321. package/lib/system.pos.21294c28.js +0 -1
  322. package/lib/system.promptmanagement.7e8da777.js +0 -1
  323. package/lib/system.role.078fac85.js +0 -1
  324. package/lib/system.sumberrules.b0252f77.js +0 -1
  325. package/lib/system.team.296512d7.mjs +0 -1000
  326. package/lib/system.team.5d6169bc.js +0 -1
  327. package/lib/system.teammembers.313345f7.js +0 -1
  328. package/lib/system.timers.8246e6ba.js +0 -38
  329. package/lib/system.translation.fdff4956.js +0 -1
  330. package/lib/system.useraffiliation.0e9da6a8.js +0 -1
  331. package/lib/system.webresource.2a341e05.js +0 -1
  332. package/lib/system.welcome.c9eefa06.js +0 -1
@@ -0,0 +1,2097 @@
1
+ import { m as W, n as H } from "./components.chartbi.b043dcdc.mjs";
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";
5
+ import { s as ie } from "./http.languagemanage.2ef16159.mjs";
6
+ import { s as ne } from "./http.currencymanage.c25bd2e6.mjs";
7
+ import { s as re } from "./http.timezonemanage.b9deffe3.mjs";
8
+ import { c as 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";
11
+ import { e as ce } from "./http.loginmanage.05500c29.mjs";
12
+ const le = {
13
+ props: {
14
+ keepAlive: {
15
+ type: Boolean,
16
+ default: !0
17
+ },
18
+ height: {
19
+ type: Number,
20
+ default: 0
21
+ }
22
+ },
23
+ name: "GdAccountSettings",
24
+ data() {
25
+ return {
26
+ mode: "inline",
27
+ openKeys: [],
28
+ selectedKeys: [],
29
+ activeIndex: "/account/settings/base",
30
+ preview: {},
31
+ option: {
32
+ img: "/avatar2.jpg",
33
+ info: !0,
34
+ size: 1,
35
+ outputType: "jpeg",
36
+ canScale: !1,
37
+ autoCrop: !0,
38
+ autoCropWidth: 180,
39
+ autoCropHeight: 180,
40
+ fixedBox: !0,
41
+ fixed: !0,
42
+ fixedNumber: [1, 1]
43
+ },
44
+ pageTitle: ""
45
+ };
46
+ },
47
+ components: {},
48
+ computed: {
49
+ fadeColord() {
50
+ return this.fadeColor(this.primaryColor, 0.1);
51
+ },
52
+ style() {
53
+ return this.crumbsState ? "margin:0 4px 4px;height: 100%;" : "margin: 4px;height: 100%;";
54
+ },
55
+ getHeight() {
56
+ return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
57
+ },
58
+ getTitle() {
59
+ let 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);
61
+ },
62
+ ...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
63
+ },
64
+ mounted() {
65
+ this.updateMenu();
66
+ },
67
+ methods: {
68
+ onOpenChange(o, e) {
69
+ this.openKeys = openKeys;
70
+ },
71
+ updateMenu() {
72
+ const o = this.$route.matched.concat();
73
+ this.activeIndex = o.pop().path;
74
+ },
75
+ clickWx(o, e) {
76
+ const n = this.$route.matched.concat();
77
+ this.activeIndex = n.pop().path;
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);
81
+ return `rgba(${n},${a},${u},${e})`;
82
+ }
83
+ },
84
+ watch: {
85
+ $route(o) {
86
+ this.updateMenu();
87
+ }
88
+ }
89
+ };
90
+ var he = function() {
91
+ var e = this, n = e._self._c;
92
+ return n("div", { staticClass: "page-header-index-wide", style: e.style }, [n("el-card", { style: e.getHeight, attrs: { bordered: !1, bodyStyle: { padding: "16px 0", height: e.getHeight + "px" } } }, [n("div", { staticClass: "account-settings-info-main" }, [n("div", { staticClass: "account-settings-info-left", style: { "--dilute": e.fadeColord } }, [n("el-menu", { staticClass: "el-menu-vertical-demo", attrs: { router: "", "default-active": e.$route.path, mode: "vertical" }, on: { select: e.clickWx } }, [n("el-menu-item", { attrs: { index: "/account/settings/base" } }, [e._v(e._s(e.$i18nt("gd.account.basicSettings")))]), n("el-menu-item", { attrs: { index: "/account/settings/security" } }, [e._v(e._s(e.$i18nt("gd.account.securitySetting")))]), n("el-menu-item", { attrs: { index: "/account/settings/custom" } }, [e._v(e._s(e.$i18nt("gd.account.personalization")))])], 1)], 1), n("div", { staticClass: "account-settings-info-right" }, [n("div", { staticClass: "account-settings-info-title" }, [n("span", [e._v(e._s(e.getTitle))])]), e.multiTab ? n("keep-alive", [n("router-view", { key: e.$route.fullPath })], 1) : n("router-view", { key: e.$route.fullPath })], 1)])])], 1);
93
+ }, ue = [], de = /* @__PURE__ */ H(
94
+ le,
95
+ he,
96
+ ue,
97
+ !1,
98
+ null,
99
+ "0ab9cb32",
100
+ null,
101
+ null
102
+ );
103
+ const X = de.exports;
104
+ X.install = function(o) {
105
+ o.component(X.name, X);
106
+ };
107
+ var U = { exports: {} };
108
+ (function(o, e) {
109
+ (function(n, a) {
110
+ o.exports = a();
111
+ })(window, function() {
112
+ return function(n) {
113
+ var a = {};
114
+ function u(d) {
115
+ if (a[d])
116
+ return a[d].exports;
117
+ var x = a[d] = { i: d, l: !1, exports: {} };
118
+ return n[d].call(x.exports, x, x.exports, u), x.l = !0, x.exports;
119
+ }
120
+ return u.m = n, u.c = a, u.d = function(d, x, $) {
121
+ u.o(d, x) || Object.defineProperty(d, x, { enumerable: !0, get: $ });
122
+ }, u.r = function(d) {
123
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(d, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(d, "__esModule", { value: !0 });
124
+ }, u.t = function(d, x) {
125
+ if (1 & x && (d = u(d)), 8 & x || 4 & x && typeof d == "object" && d && d.__esModule)
126
+ return d;
127
+ var $ = /* @__PURE__ */ Object.create(null);
128
+ 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) {
131
+ return d[L];
132
+ }.bind(null, I));
133
+ return $;
134
+ }, u.n = function(d) {
135
+ var x = d && d.__esModule ? function() {
136
+ return d.default;
137
+ } : function() {
138
+ return d;
139
+ };
140
+ return u.d(x, "a", x), x;
141
+ }, u.o = function(d, x) {
142
+ return Object.prototype.hasOwnProperty.call(d, x);
143
+ }, u.p = "", u(u.s = 6);
144
+ }([function(n, a, u) {
145
+ var d = u(2);
146
+ typeof d == "string" && (d = [[n.i, d, ""]]);
147
+ var x = { hmr: !0, transform: void 0, insertInto: void 0 };
148
+ u(4)(d, x), d.locals && (n.exports = d.locals);
149
+ }, function(n, a, u) {
150
+ var d = u(0);
151
+ u.n(d).a;
152
+ }, function(n, a, u) {
153
+ (n.exports = u(3)(!1)).push([n.i, `
154
+ .vue-cropper[data-v-6dae58fd] {
155
+ position: relative;
156
+ width: 100%;
157
+ height: 100%;
158
+ box-sizing: border-box;
159
+ user-select: none;
160
+ -webkit-user-select: none;
161
+ -moz-user-select: none;
162
+ -ms-user-select: none;
163
+ direction: ltr;
164
+ touch-action: none;
165
+ text-align: left;
166
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
167
+ }
168
+ .cropper-box[data-v-6dae58fd],
169
+ .cropper-box-canvas[data-v-6dae58fd],
170
+ .cropper-drag-box[data-v-6dae58fd],
171
+ .cropper-crop-box[data-v-6dae58fd],
172
+ .cropper-face[data-v-6dae58fd] {
173
+ position: absolute;
174
+ top: 0;
175
+ right: 0;
176
+ bottom: 0;
177
+ left: 0;
178
+ user-select: none;
179
+ }
180
+ .cropper-box-canvas img[data-v-6dae58fd] {
181
+ position: relative;
182
+ text-align: left;
183
+ user-select: none;
184
+ transform: none;
185
+ max-width: none;
186
+ max-height: none;
187
+ }
188
+ .cropper-box[data-v-6dae58fd] {
189
+ overflow: hidden;
190
+ }
191
+ .cropper-move[data-v-6dae58fd] {
192
+ cursor: move;
193
+ }
194
+ .cropper-crop[data-v-6dae58fd] {
195
+ cursor: crosshair;
196
+ }
197
+ .cropper-modal[data-v-6dae58fd] {
198
+ background: rgba(0, 0, 0, 0.5);
199
+ }
200
+ .cropper-crop-box[data-v-6dae58fd] {
201
+ /*border: 2px solid #39f;*/
202
+ }
203
+ .cropper-view-box[data-v-6dae58fd] {
204
+ display: block;
205
+ overflow: hidden;
206
+ width: 100%;
207
+ height: 100%;
208
+ outline: 1px solid #39f;
209
+ outline-color: rgba(51, 153, 255, 0.75);
210
+ user-select: none;
211
+ }
212
+ .cropper-view-box img[data-v-6dae58fd] {
213
+ user-select: none;
214
+ text-align: left;
215
+ max-width: none;
216
+ max-height: none;
217
+ }
218
+ .cropper-face[data-v-6dae58fd] {
219
+ top: 0;
220
+ left: 0;
221
+ background-color: #fff;
222
+ opacity: 0.1;
223
+ }
224
+ .crop-info[data-v-6dae58fd] {
225
+ position: absolute;
226
+ left: 0px;
227
+ min-width: 65px;
228
+ text-align: center;
229
+ color: white;
230
+ line-height: 20px;
231
+ background-color: rgba(0, 0, 0, 0.8);
232
+ font-size: 12px;
233
+ }
234
+ .crop-line[data-v-6dae58fd] {
235
+ position: absolute;
236
+ display: block;
237
+ width: 100%;
238
+ height: 100%;
239
+ opacity: 0.1;
240
+ }
241
+ .line-w[data-v-6dae58fd] {
242
+ top: -3px;
243
+ left: 0;
244
+ height: 5px;
245
+ cursor: n-resize;
246
+ }
247
+ .line-a[data-v-6dae58fd] {
248
+ top: 0;
249
+ left: -3px;
250
+ width: 5px;
251
+ cursor: w-resize;
252
+ }
253
+ .line-s[data-v-6dae58fd] {
254
+ bottom: -3px;
255
+ left: 0;
256
+ height: 5px;
257
+ cursor: s-resize;
258
+ }
259
+ .line-d[data-v-6dae58fd] {
260
+ top: 0;
261
+ right: -3px;
262
+ width: 5px;
263
+ cursor: e-resize;
264
+ }
265
+ .crop-point[data-v-6dae58fd] {
266
+ position: absolute;
267
+ width: 8px;
268
+ height: 8px;
269
+ opacity: 0.75;
270
+ background-color: #39f;
271
+ border-radius: 100%;
272
+ }
273
+ .point1[data-v-6dae58fd] {
274
+ top: -4px;
275
+ left: -4px;
276
+ cursor: nw-resize;
277
+ }
278
+ .point2[data-v-6dae58fd] {
279
+ top: -5px;
280
+ left: 50%;
281
+ margin-left: -3px;
282
+ cursor: n-resize;
283
+ }
284
+ .point3[data-v-6dae58fd] {
285
+ top: -4px;
286
+ right: -4px;
287
+ cursor: ne-resize;
288
+ }
289
+ .point4[data-v-6dae58fd] {
290
+ top: 50%;
291
+ left: -4px;
292
+ margin-top: -3px;
293
+ cursor: w-resize;
294
+ }
295
+ .point5[data-v-6dae58fd] {
296
+ top: 50%;
297
+ right: -4px;
298
+ margin-top: -3px;
299
+ cursor: e-resize;
300
+ }
301
+ .point6[data-v-6dae58fd] {
302
+ bottom: -5px;
303
+ left: -4px;
304
+ cursor: sw-resize;
305
+ }
306
+ .point7[data-v-6dae58fd] {
307
+ bottom: -5px;
308
+ left: 50%;
309
+ margin-left: -3px;
310
+ cursor: s-resize;
311
+ }
312
+ .point8[data-v-6dae58fd] {
313
+ bottom: -5px;
314
+ right: -4px;
315
+ cursor: se-resize;
316
+ }
317
+ @media screen and (max-width: 500px) {
318
+ .crop-point[data-v-6dae58fd] {
319
+ position: absolute;
320
+ width: 20px;
321
+ height: 20px;
322
+ opacity: 0.45;
323
+ background-color: #39f;
324
+ border-radius: 100%;
325
+ }
326
+ .point1[data-v-6dae58fd] {
327
+ top: -10px;
328
+ left: -10px;
329
+ }
330
+ .point2[data-v-6dae58fd],
331
+ .point4[data-v-6dae58fd],
332
+ .point5[data-v-6dae58fd],
333
+ .point7[data-v-6dae58fd] {
334
+ display: none;
335
+ }
336
+ .point3[data-v-6dae58fd] {
337
+ top: -10px;
338
+ right: -10px;
339
+ }
340
+ .point4[data-v-6dae58fd] {
341
+ top: 0;
342
+ left: 0;
343
+ }
344
+ .point6[data-v-6dae58fd] {
345
+ bottom: -10px;
346
+ left: -10px;
347
+ }
348
+ .point8[data-v-6dae58fd] {
349
+ bottom: -10px;
350
+ right: -10px;
351
+ }
352
+ }
353
+ `, ""]);
354
+ }, function(n, a) {
355
+ n.exports = function(u) {
356
+ var d = [];
357
+ return d.toString = function() {
358
+ return this.map(function(x) {
359
+ var $ = function(I, L) {
360
+ var k = I[1] || "", T = I[3];
361
+ if (!T)
362
+ return k;
363
+ 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 + " */";
368
+ });
369
+ return [k].concat(t).concat([i]).join(`
370
+ `);
371
+ }
372
+ return [k].join(`
373
+ `);
374
+ }(x, u);
375
+ return x[2] ? "@media " + x[2] + "{" + $ + "}" : $;
376
+ }).join("");
377
+ }, d.i = function(x, $) {
378
+ typeof x == "string" && (x = [[null, x, ""]]);
379
+ for (var I = {}, L = 0; L < this.length; L++) {
380
+ var k = this[L][0];
381
+ typeof k == "number" && (I[k] = !0);
382
+ }
383
+ for (L = 0; L < x.length; L++) {
384
+ var T = x[L];
385
+ typeof T[0] == "number" && I[T[0]] || ($ && !T[2] ? T[2] = $ : $ && (T[2] = "(" + T[2] + ") and (" + $ + ")"), d.push(T));
386
+ }
387
+ }, d;
388
+ };
389
+ }, function(n, a, u) {
390
+ var d = {}, x = function(c) {
391
+ var h;
392
+ return function() {
393
+ return h === void 0 && (h = c.apply(this, arguments)), h;
394
+ };
395
+ }(function() {
396
+ return window && document && document.all && !window.atob;
397
+ }), $ = function(c) {
398
+ var h = {};
399
+ return function(p, g) {
400
+ if (typeof p == "function")
401
+ return p();
402
+ if (h[p] === void 0) {
403
+ var w = function(v, b) {
404
+ return b ? b.querySelector(v) : document.querySelector(v);
405
+ }.call(this, p, g);
406
+ if (window.HTMLIFrameElement && w instanceof window.HTMLIFrameElement)
407
+ try {
408
+ w = w.contentDocument.head;
409
+ } catch {
410
+ w = null;
411
+ }
412
+ h[p] = w;
413
+ }
414
+ return h[p];
415
+ };
416
+ }(), I = null, L = 0, k = [], T = u(5);
417
+ function i(c, h) {
418
+ for (var p = 0; p < c.length; p++) {
419
+ var g = c[p], w = d[g.id];
420
+ if (w) {
421
+ w.refs++;
422
+ 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));
426
+ } else {
427
+ 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 };
431
+ }
432
+ }
433
+ }
434
+ function t(c, h) {
435
+ for (var p = [], g = {}, w = 0; w < c.length; w++) {
436
+ 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: [_] });
438
+ }
439
+ return p;
440
+ }
441
+ function s(c, h) {
442
+ var p = $(c.insertInto);
443
+ if (!p)
444
+ 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];
446
+ if (c.insertAt === "top")
447
+ g ? g.nextSibling ? p.insertBefore(h, g.nextSibling) : p.appendChild(h) : p.insertBefore(h, p.firstChild), k.push(h);
448
+ else if (c.insertAt === "bottom")
449
+ p.appendChild(h);
450
+ else {
451
+ if (typeof c.insertAt != "object" || !c.insertAt.before)
452
+ throw new Error(`[Style Loader]
453
+
454
+ Invalid value for parameter 'insertAt' ('options.insertAt') found.
455
+ Must be 'top', 'bottom', or Object.
456
+ (https://github.com/webpack-contrib/style-loader#insertat)
457
+ `);
458
+ var w = $(c.insertAt.before, p);
459
+ p.insertBefore(h, w);
460
+ }
461
+ }
462
+ function r(c) {
463
+ if (c.parentNode === null)
464
+ return !1;
465
+ c.parentNode.removeChild(c);
466
+ var h = k.indexOf(c);
467
+ h >= 0 && k.splice(h, 1);
468
+ }
469
+ function l(c) {
470
+ var h = document.createElement("style");
471
+ if (c.attrs.type === void 0 && (c.attrs.type = "text/css"), c.attrs.nonce === void 0) {
472
+ var p = function() {
473
+ return u.nc;
474
+ }();
475
+ p && (c.attrs.nonce = p);
476
+ }
477
+ return f(h, c.attrs), s(c, h), h;
478
+ }
479
+ function f(c, h) {
480
+ Object.keys(h).forEach(function(p) {
481
+ c.setAttribute(p, h[p]);
482
+ });
483
+ }
484
+ function m(c, h) {
485
+ var p, g, w, v;
486
+ if (h.transform && c.css) {
487
+ if (!(v = typeof h.transform == "function" ? h.transform(c.css) : h.transform.default(c.css)))
488
+ return function() {
489
+ };
490
+ c.css = v;
491
+ }
492
+ if (h.singleton) {
493
+ var b = L++;
494
+ p = I || (I = l(h)), g = C.bind(null, p, b, !1), w = C.bind(null, p, b, !0);
495
+ } else
496
+ 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 += `
502
+ /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(O)))) + " */");
503
+ var D = new Blob([A], { type: "text/css" }), R = _.href;
504
+ _.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
505
+ }.bind(null, p, h), w = function() {
506
+ r(p), p.href && URL.revokeObjectURL(p.href);
507
+ }) : (p = l(h), g = function(_, S) {
508
+ var E = S.css, A = S.media;
509
+ if (A && _.setAttribute("media", A), _.styleSheet)
510
+ _.styleSheet.cssText = E;
511
+ else {
512
+ for (; _.firstChild; )
513
+ _.removeChild(_.firstChild);
514
+ _.appendChild(document.createTextNode(E));
515
+ }
516
+ }.bind(null, p), w = function() {
517
+ r(p);
518
+ });
519
+ return g(c), function(_) {
520
+ if (_) {
521
+ if (_.css === c.css && _.media === c.media && _.sourceMap === c.sourceMap)
522
+ return;
523
+ g(c = _);
524
+ } else
525
+ w();
526
+ };
527
+ }
528
+ n.exports = function(c, h) {
529
+ if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
530
+ throw new Error("The style-loader cannot be used in a non-browser environment");
531
+ (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
+ var p = t(c, h);
533
+ return i(p, h), function(g) {
534
+ for (var w = [], v = 0; v < p.length; v++) {
535
+ var b = p[v];
536
+ (_ = d[b.id]).refs--, w.push(_);
537
+ }
538
+ for (g && i(t(g, h), h), v = 0; v < w.length; v++) {
539
+ var _;
540
+ if ((_ = w[v]).refs === 0) {
541
+ for (var S = 0; S < _.parts.length; S++)
542
+ _.parts[S]();
543
+ delete d[_.id];
544
+ }
545
+ }
546
+ };
547
+ };
548
+ var y = function() {
549
+ var c = [];
550
+ return function(h, p) {
551
+ return c[h] = p, c.filter(Boolean).join(`
552
+ `);
553
+ };
554
+ }();
555
+ function C(c, h, p, g) {
556
+ var w = p ? "" : g.css;
557
+ if (c.styleSheet)
558
+ c.styleSheet.cssText = y(h, w);
559
+ else {
560
+ var v = document.createTextNode(w), b = c.childNodes;
561
+ b[h] && c.removeChild(b[h]), b.length ? c.insertBefore(v, b[h]) : c.appendChild(v);
562
+ }
563
+ }
564
+ }, function(n, a) {
565
+ n.exports = function(u) {
566
+ var d = typeof window < "u" && window.location;
567
+ if (!d)
568
+ throw new Error("fixUrls requires window.location");
569
+ if (!u || typeof u != "string")
570
+ return u;
571
+ var x = d.protocol + "//" + d.host, $ = x + d.pathname.replace(/\/[^\/]*$/, "/");
572
+ return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(I, L) {
573
+ var k, T = L.trim().replace(/^"(.*)"$/, function(i, t) {
574
+ return t;
575
+ }).replace(/^'(.*)'$/, function(i, t) {
576
+ return t;
577
+ });
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) + ")");
579
+ });
580
+ };
581
+ }, function(n, a, u) {
582
+ u.r(a);
583
+ 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) {
586
+ i.changeCropSize(r, !1, !0, 0, 1);
587
+ }, touchstart: function(r) {
588
+ i.changeCropSize(r, !1, !0, 0, 1);
589
+ } } }), i._v(" "), s("span", { staticClass: "crop-line line-a", on: { mousedown: function(r) {
590
+ i.changeCropSize(r, !0, !1, 1, 0);
591
+ }, touchstart: function(r) {
592
+ i.changeCropSize(r, !0, !1, 1, 0);
593
+ } } }), i._v(" "), s("span", { staticClass: "crop-line line-s", on: { mousedown: function(r) {
594
+ i.changeCropSize(r, !1, !0, 0, 2);
595
+ }, touchstart: function(r) {
596
+ i.changeCropSize(r, !1, !0, 0, 2);
597
+ } } }), i._v(" "), s("span", { staticClass: "crop-line line-d", on: { mousedown: function(r) {
598
+ i.changeCropSize(r, !0, !1, 2, 0);
599
+ }, touchstart: function(r) {
600
+ i.changeCropSize(r, !0, !1, 2, 0);
601
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point1", on: { mousedown: function(r) {
602
+ i.changeCropSize(r, !0, !0, 1, 1);
603
+ }, touchstart: function(r) {
604
+ i.changeCropSize(r, !0, !0, 1, 1);
605
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point2", on: { mousedown: function(r) {
606
+ i.changeCropSize(r, !1, !0, 0, 1);
607
+ }, touchstart: function(r) {
608
+ i.changeCropSize(r, !1, !0, 0, 1);
609
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point3", on: { mousedown: function(r) {
610
+ i.changeCropSize(r, !0, !0, 2, 1);
611
+ }, touchstart: function(r) {
612
+ i.changeCropSize(r, !0, !0, 2, 1);
613
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point4", on: { mousedown: function(r) {
614
+ i.changeCropSize(r, !0, !1, 1, 0);
615
+ }, touchstart: function(r) {
616
+ i.changeCropSize(r, !0, !1, 1, 0);
617
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point5", on: { mousedown: function(r) {
618
+ i.changeCropSize(r, !0, !1, 2, 0);
619
+ }, touchstart: function(r) {
620
+ i.changeCropSize(r, !0, !1, 2, 0);
621
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point6", on: { mousedown: function(r) {
622
+ i.changeCropSize(r, !0, !0, 1, 2);
623
+ }, touchstart: function(r) {
624
+ i.changeCropSize(r, !0, !0, 1, 2);
625
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point7", on: { mousedown: function(r) {
626
+ i.changeCropSize(r, !1, !0, 0, 2);
627
+ }, touchstart: function(r) {
628
+ i.changeCropSize(r, !1, !0, 0, 2);
629
+ } } }), i._v(" "), s("span", { staticClass: "crop-point point8", on: { mousedown: function(r) {
630
+ i.changeCropSize(r, !0, !0, 2, 2);
631
+ }, touchstart: function(r) {
632
+ i.changeCropSize(r, !0, !0, 2, 2);
633
+ } } })])])]);
634
+ };
635
+ d._withStripped = !0;
636
+ var x = {};
637
+ x.getData = function(i) {
638
+ return new Promise(function(t, s) {
639
+ var r = {};
640
+ (function(l) {
641
+ var f = null;
642
+ return new Promise(function(m, y) {
643
+ if (l.src)
644
+ if (/^data\:/i.test(l.src))
645
+ f = function(h) {
646
+ 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++)
648
+ v[b] = p.charCodeAt(b);
649
+ return w;
650
+ }(l.src), m(f);
651
+ else if (/^blob\:/i.test(l.src)) {
652
+ var C = new FileReader();
653
+ C.onload = function(h) {
654
+ f = h.target.result, m(f);
655
+ }, function(h, p) {
656
+ var g = new XMLHttpRequest();
657
+ g.open("GET", h, !0), g.responseType = "blob", g.onload = function(w) {
658
+ this.status != 200 && this.status !== 0 || p(this.response);
659
+ }, g.send();
660
+ }(l.src, function(h) {
661
+ C.readAsArrayBuffer(h);
662
+ });
663
+ } else {
664
+ var c = new XMLHttpRequest();
665
+ c.onload = function() {
666
+ if (this.status != 200 && this.status !== 0)
667
+ throw "Could not load image";
668
+ f = c.response, m(f), c = null;
669
+ }, c.open("GET", l.src, !0), c.responseType = "arraybuffer", c.send(null);
670
+ }
671
+ else
672
+ y("img error");
673
+ });
674
+ })(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;
677
+ if (b.getUint8(0) === 255 && b.getUint8(1) === 216)
678
+ for (w = 2; w < _; ) {
679
+ if (b.getUint8(w) === 255 && b.getUint8(w + 1) === 225) {
680
+ p = w;
681
+ break;
682
+ }
683
+ w++;
684
+ }
685
+ if (p && (y = p + 10, function(S, E, A) {
686
+ var O, M = "";
687
+ for (O = E, A += E; O < A; O++)
688
+ M += String.fromCharCode(S.getUint8(O));
689
+ 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) {
693
+ w += 8, m = b.getUint16(w, c);
694
+ break;
695
+ }
696
+ }
697
+ return m;
698
+ }(l), t(r);
699
+ }).catch(function(l) {
700
+ s(l);
701
+ });
702
+ });
703
+ };
704
+ var $ = x, I = { data: function() {
705
+ 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
+ }, 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
+ return [1, 1];
708
+ } }, fixedBox: { type: Boolean, default: !1 }, full: { type: Boolean, default: !1 }, canMove: { type: Boolean, default: !0 }, canMoveBox: { type: Boolean, default: !0 }, original: { type: Boolean, default: !1 }, centerBox: { type: Boolean, default: !1 }, high: { type: Boolean, default: !0 }, infoTrue: { type: Boolean, default: !1 }, maxImgSize: { type: [Number, String], default: 2e3 }, enlarge: { type: [Number, String], default: 1 }, preW: { type: [Number, String], default: 0 }, mode: { type: String, default: "contain" }, limitMinSize: { type: [Number, Array, String], default: function() {
709
+ return 10;
710
+ } } }, computed: { cropInfo: function() {
711
+ var i = {};
712
+ if (i.top = this.cropOffsertY > 21 ? "-21px" : "0px", i.width = this.cropW > 0 ? this.cropW : 0, i.height = this.cropH > 0 ? this.cropH : 0, this.infoTrue) {
713
+ var t = 1;
714
+ this.high && !this.full && (t = window.devicePixelRatio), this.enlarge !== 1 & !this.full && (t = Math.abs(Number(this.enlarge))), i.width = i.width * t, i.height = i.height * t, this.full && (i.width = i.width / this.scale, i.height = i.height / this.scale);
715
+ }
716
+ return i.width = i.width.toFixed(0), i.height = i.height.toFixed(0), i;
717
+ }, isIE: function() {
718
+ var i = !!window.ActiveXObject || "ActiveXObject" in window;
719
+ return i;
720
+ }, passive: function() {
721
+ return this.isIE ? null : { passive: !1 };
722
+ } }, watch: { img: function() {
723
+ this.checkedImg();
724
+ }, imgs: function(i) {
725
+ i !== "" && this.reload();
726
+ }, cropW: function() {
727
+ this.showPreview();
728
+ }, cropH: function() {
729
+ this.showPreview();
730
+ }, cropOffsertX: function() {
731
+ this.showPreview();
732
+ }, cropOffsertY: function() {
733
+ this.showPreview();
734
+ }, scale: function(i, t) {
735
+ this.showPreview();
736
+ }, x: function() {
737
+ this.showPreview();
738
+ }, y: function() {
739
+ this.showPreview();
740
+ }, autoCrop: function(i) {
741
+ i && this.goAutoCrop();
742
+ }, autoCropWidth: function() {
743
+ this.autoCrop && this.goAutoCrop();
744
+ }, autoCropHeight: function() {
745
+ this.autoCrop && this.goAutoCrop();
746
+ }, mode: function() {
747
+ this.checkedImg();
748
+ }, rotate: function() {
749
+ this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
750
+ } }, 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) {
755
+ var l = this;
756
+ if (this.getVersion("chrome")[0] >= 81)
757
+ t = -1;
758
+ else if (this.getVersion("safari")[0] >= 605) {
759
+ var f = this.getVersion("version");
760
+ f[0] > 13 && f[1] > 1 && (t = -1);
761
+ } else {
762
+ var m = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
763
+ if (m) {
764
+ var y = m[1];
765
+ ((y = y.split("_"))[0] > 13 || y[0] >= 13 && y[1] >= 4) && (t = -1);
766
+ }
767
+ }
768
+ var C = document.createElement("canvas"), c = C.getContext("2d");
769
+ switch (c.save(), t) {
770
+ case 2:
771
+ C.width = s, C.height = r, c.translate(s, 0), c.scale(-1, 1);
772
+ break;
773
+ 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);
775
+ break;
776
+ case 4:
777
+ C.width = s, C.height = r, c.translate(0, r), c.scale(1, -1);
778
+ break;
779
+ case 5:
780
+ C.height = s, C.width = r, c.rotate(0.5 * Math.PI), c.scale(1, -1);
781
+ break;
782
+ 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);
784
+ break;
785
+ case 7:
786
+ C.height = s, C.width = r, c.rotate(0.5 * Math.PI), c.translate(s, -r), c.scale(-1, 1);
787
+ break;
788
+ 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);
790
+ break;
791
+ default:
792
+ C.width = s, C.height = r;
793
+ }
794
+ c.drawImage(i, 0, 0, s, r), c.restore(), C.toBlob(function(h) {
795
+ var p = URL.createObjectURL(h);
796
+ URL.revokeObjectURL(l.imgs), l.imgs = p;
797
+ }, "image/" + this.outputType, 1);
798
+ }, checkedImg: function() {
799
+ var i = this;
800
+ if (this.img === null || this.img === "")
801
+ return this.imgs = "", void this.clearCrop();
802
+ this.loading = !0, this.scale = 1, this.rotate = 0, this.clearCrop();
803
+ var t = new Image();
804
+ if (t.onload = function() {
805
+ if (i.img === "")
806
+ return i.$emit("imgLoad", "error"), i.$emit("img-load", "error"), !1;
807
+ var r = t.width, l = t.height;
808
+ $.getData(t).then(function(f) {
809
+ i.orientation = f.orientation || 1;
810
+ var m = i.maxImgSize;
811
+ !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
+ });
813
+ }, t.onerror = function() {
814
+ i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
815
+ }, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
816
+ var s = new XMLHttpRequest();
817
+ s.onload = function() {
818
+ var r = URL.createObjectURL(this.response);
819
+ t.src = r;
820
+ }, s.open("GET", this.img, !0), s.responseType = "blob", s.send();
821
+ } else
822
+ t.src = this.img;
823
+ }, startMove: function(i) {
824
+ if (i.preventDefault(), this.move && !this.crop) {
825
+ if (!this.canMove)
826
+ return !1;
827
+ this.moveX = (i.clientX ? i.clientX : i.touches[0].clientX) - this.x, this.moveY = (i.clientY ? i.clientY : i.touches[0].clientY) - this.y, i.touches ? (window.addEventListener("touchmove", this.moveImg), window.addEventListener("touchend", this.leaveImg), i.touches.length == 2 && (this.touches = i.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale))) : (window.addEventListener("mousemove", this.moveImg), window.addEventListener("mouseup", this.leaveImg)), this.$emit("imgMoving", { moving: !0, axis: this.getImgAxis() }), this.$emit("img-moving", { moving: !0, axis: this.getImgAxis() });
828
+ } else
829
+ this.cropping = !0, window.addEventListener("mousemove", this.createCrop), window.addEventListener("mouseup", this.endCrop), window.addEventListener("touchmove", this.createCrop), window.addEventListener("touchend", this.endCrop), this.cropOffsertX = i.offsetX ? i.offsetX : i.touches[0].pageX - this.$refs.cropper.offsetLeft, this.cropOffsertY = i.offsetY ? i.offsetY : i.touches[0].pageY - this.$refs.cropper.offsetTop, this.cropX = i.clientX ? i.clientX : i.touches[0].clientX, this.cropY = i.clientY ? i.clientY : i.touches[0].clientY, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.cropW = 0, this.cropH = 0;
830
+ }, touchScale: function(i) {
831
+ var t = this;
832
+ 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;
834
+ 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() {
836
+ t.touchNow = !1;
837
+ }, 8), !this.checkoutImgAxis(this.x, this.y, s))
838
+ return !1;
839
+ this.scale = s;
840
+ }
841
+ }, cancelTouchScale: function(i) {
842
+ window.removeEventListener("touchmove", this.touchScale);
843
+ }, moveImg: function(i) {
844
+ var t = this;
845
+ if (i.preventDefault(), i.touches && i.touches.length === 2)
846
+ 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() {
849
+ 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;
851
+ switch (t.rotate) {
852
+ case 1:
853
+ case -1:
854
+ case 3:
855
+ 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;
857
+ break;
858
+ 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;
860
+ }
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);
862
+ }
863
+ t.x = s, t.y = r, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
864
+ });
865
+ }, leaveImg: function(i) {
866
+ 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() });
867
+ }, scaleImg: function() {
868
+ this.canScale && window.addEventListener(this.support, this.changeSize, this.passive);
869
+ }, cancelScale: function() {
870
+ this.canScale && window.removeEventListener(this.support, this.changeSize);
871
+ }, changeSize: function(i) {
872
+ var t = this;
873
+ i.preventDefault();
874
+ var s = this.scale, r = i.deltaY || i.wheelDelta;
875
+ 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";
879
+ if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
880
+ t.scaling = !1, t.coe = t.coe += 0.01;
881
+ }, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, s))
882
+ return !1;
883
+ this.scale = s;
884
+ }, changeScale: function(i) {
885
+ var t = this.scale;
886
+ 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))
889
+ return !1;
890
+ this.scale = t;
891
+ }, createCrop: function(i) {
892
+ var t = this;
893
+ 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;
895
+ this.$nextTick(function() {
896
+ var l = s - t.cropX, f = r - t.cropY;
897
+ 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
+ var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
899
+ 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
+ } 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);
902
+ });
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 });
905
+ }, changeCropNow: function(i) {
906
+ var t = this;
907
+ 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;
909
+ if (this.centerBox) {
910
+ 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);
912
+ }
913
+ 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) {
916
+ 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;
918
+ }
919
+ if (t.canChangeY && t.fixed) {
920
+ var v = t.cropH / t.fixedNumber[1] * t.fixedNumber[0];
921
+ v + t.cropOffsertX > l ? (t.cropW = l - t.cropOffsertX, t.cropH = t.cropW / t.fixedNumber[0] * t.fixedNumber[1]) : t.cropW = v;
922
+ }
923
+ });
924
+ }, checkCropLimitSize: function() {
925
+ this.cropW, this.cropH;
926
+ var i = this.limitMinSize, t = new Array();
927
+ return t = Array.isArray[i] ? i : [i, i], [parseFloat(t[0]), parseFloat(t[1])];
928
+ }, changeCropEnd: function(i) {
929
+ window.removeEventListener("mousemove", this.changeCropNow), window.removeEventListener("mouseup", this.changeCropEnd), window.removeEventListener("touchmove", this.changeCropNow), window.removeEventListener("touchend", this.changeCropEnd);
930
+ }, endCrop: function() {
931
+ this.cropW === 0 && this.cropH === 0 && (this.cropping = !1), window.removeEventListener("mousemove", this.createCrop), window.removeEventListener("mouseup", this.endCrop), window.removeEventListener("touchmove", this.createCrop), window.removeEventListener("touchend", this.endCrop);
932
+ }, startCrop: function() {
933
+ this.crop = !0;
934
+ }, stopCrop: function() {
935
+ this.crop = !1;
936
+ }, clearCrop: function() {
937
+ this.cropping = !1, this.cropW = 0, this.cropH = 0;
938
+ }, cropMove: function(i) {
939
+ if (i.preventDefault(), !this.canMoveBox)
940
+ return this.crop = !1, this.startMove(i), !1;
941
+ if (i.touches && i.touches.length === 2)
942
+ return this.crop = !1, this.startMove(i), this.leaveCrop(), !1;
943
+ 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() });
946
+ }, moveCrop: function(i, t) {
947
+ var s = this, r = 0, l = 0;
948
+ 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);
953
+ }
954
+ s.cropOffsertX = f, s.cropOffsertY = m, s.$emit("cropMoving", { moving: !0, axis: s.getCropAxis() }), s.$emit("crop-moving", { moving: !0, axis: s.getCropAxis() });
955
+ });
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;
959
+ switch (this.rotate) {
960
+ 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;
962
+ break;
963
+ case 1:
964
+ case -1:
965
+ case 3:
966
+ 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;
968
+ break;
969
+ 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;
971
+ }
972
+ return r;
973
+ }, getCropAxis: function() {
974
+ var i = { x1: 0, x2: 0, y1: 0, y2: 0 };
975
+ return i.x1 = this.cropOffsertX, i.x2 = i.x1 + this.cropW, i.y1 = this.cropOffsertY, i.y2 = i.y1 + this.cropH, i;
976
+ }, leaveCrop: function(i) {
977
+ 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
+ }, 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;
980
+ function c(h, p) {
981
+ s.width = Math.round(h), s.height = Math.round(p);
982
+ }
983
+ r.onload = function() {
984
+ if (t.cropW !== 0) {
985
+ var h = s.getContext("2d"), p = 1;
986
+ 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) {
989
+ 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);
991
+ break;
992
+ case 1:
993
+ 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));
995
+ break;
996
+ case 2:
997
+ 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));
999
+ break;
1000
+ case 3:
1001
+ 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));
1003
+ break;
1004
+ 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);
1006
+ }
1007
+ h.restore();
1008
+ } else {
1009
+ var E = f * t.scale, A = m * t.scale, O = s.getContext("2d");
1010
+ switch (O.save(), l) {
1011
+ case 0:
1012
+ c(E, A), O.drawImage(r, 0, 0, E, A);
1013
+ break;
1014
+ case 1:
1015
+ case -3:
1016
+ c(A, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(r, 0, -A, E, A);
1017
+ break;
1018
+ case 2:
1019
+ case -2:
1020
+ c(E, A), O.rotate(90 * l * Math.PI / 180), O.drawImage(r, -E, -A, E, A);
1021
+ break;
1022
+ case 3:
1023
+ case -1:
1024
+ c(A, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(r, -E, 0, E, A);
1025
+ break;
1026
+ default:
1027
+ c(E, A), O.drawImage(r, 0, 0, E, A);
1028
+ }
1029
+ O.restore();
1030
+ }
1031
+ i(s);
1032
+ }, this.img.substr(0, 4) !== "data" && (r.crossOrigin = "Anonymous"), r.src = this.imgs;
1033
+ }, getCropData: function(i) {
1034
+ var t = this;
1035
+ this.getCropChecked(function(s) {
1036
+ i(s.toDataURL("image/" + t.outputType, t.outputSize));
1037
+ });
1038
+ }, getCropBlob: function(i) {
1039
+ var t = this;
1040
+ this.getCropChecked(function(s) {
1041
+ s.toBlob(function(r) {
1042
+ return i(r);
1043
+ }, "image/" + t.outputType, t.outputSize);
1044
+ });
1045
+ }, showPreview: function() {
1046
+ var i = this;
1047
+ if (!this.isCanShow)
1048
+ return !1;
1049
+ this.isCanShow = !1, setTimeout(function() {
1050
+ i.isCanShow = !0;
1051
+ }, 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 = `
1056
+ <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">
1058
+ <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)">
1060
+ </div>
1061
+ </div>`), this.$emit("realTime", l), this.$emit("real-time", l);
1062
+ }, reload: function() {
1063
+ var i = this, t = new Image();
1064
+ t.onload = function() {
1065
+ i.w = parseFloat(window.getComputedStyle(i.$refs.cropper).width), i.h = parseFloat(window.getComputedStyle(i.$refs.cropper).height), i.trueWidth = t.width, i.trueHeight = t.height, i.original ? i.scale = 1 : i.scale = i.checkedMode(), i.$nextTick(function() {
1066
+ i.x = -(i.trueWidth - i.trueWidth * i.scale) / 2 + (i.w - i.trueWidth * i.scale) / 2, i.y = -(i.trueHeight - i.trueHeight * i.scale) / 2 + (i.h - i.trueHeight * i.scale) / 2, i.loading = !1, i.autoCrop && i.goAutoCrop(), i.$emit("img-load", "success"), i.$emit("imgLoad", "success"), setTimeout(function() {
1067
+ i.showPreview();
1068
+ }, 20);
1069
+ });
1070
+ }, t.onerror = function() {
1071
+ i.$emit("imgLoad", "error"), i.$emit("img-load", "error");
1072
+ }, t.src = this.imgs;
1073
+ }, checkedMode: function() {
1074
+ var i = 1, t = (this.trueWidth, this.trueHeight), s = this.mode.split(" ");
1075
+ switch (s[0]) {
1076
+ case "contain":
1077
+ this.trueWidth > this.w && (i = this.w / this.trueWidth), this.trueHeight * i > this.h && (i = this.h / this.trueHeight);
1078
+ break;
1079
+ case "cover":
1080
+ (t *= i = this.w / this.trueWidth) < this.h && (i = (t = this.h) / this.trueHeight);
1081
+ break;
1082
+ default:
1083
+ 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];
1087
+ 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
+ }
1089
+ } catch {
1090
+ i = 1;
1091
+ }
1092
+ }
1093
+ return i;
1094
+ }, goAutoCrop: function(i, t) {
1095
+ if (this.imgs !== "" && this.imgs !== null) {
1096
+ this.clearCrop(), this.cropping = !0;
1097
+ var s = this.w, r = this.h;
1098
+ 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;
1101
+ }
1102
+ 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);
1104
+ }
1105
+ }, changeCrop: function(i, t) {
1106
+ var s = this;
1107
+ if (this.centerBox) {
1108
+ var r = this.getImgAxis();
1109
+ 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
+ }
1111
+ 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);
1113
+ });
1114
+ }, refresh: function() {
1115
+ var i = this;
1116
+ this.img, this.imgs = "", this.scale = 1, this.crop = !1, this.rotate = 0, this.w = 0, this.h = 0, this.trueWidth = 0, this.trueHeight = 0, this.clearCrop(), this.$nextTick(function() {
1117
+ i.checkedImg();
1118
+ });
1119
+ }, rotateLeft: function() {
1120
+ this.rotate = this.rotate <= -3 ? 0 : this.rotate - 1;
1121
+ }, rotateRight: function() {
1122
+ this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
1123
+ }, rotateClear: function() {
1124
+ this.rotate = 0;
1125
+ }, checkoutImgAxis: function(i, t, s) {
1126
+ i = i || this.x, t = t || this.y, s = s || this.scale;
1127
+ var r = !0;
1128
+ 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);
1131
+ }
1132
+ return r;
1133
+ } }, mounted: function() {
1134
+ this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
1135
+ 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" }));
1140
+ } }), this.showPreview(), this.checkedImg();
1141
+ }, destroyed: function() {
1142
+ window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
1143
+ } };
1144
+ u(1);
1145
+ var L = function(i, t, s, r, l, f, m, y) {
1146
+ 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);
1149
+ }, c._ssrRegister = C) : l && (C = y ? function() {
1150
+ l.call(this, this.$root.$options.shadowRoot);
1151
+ } : l), C)
1152
+ if (c.functional) {
1153
+ c._injectStyles = C;
1154
+ var h = c.render;
1155
+ c.render = function(g, w) {
1156
+ return C.call(w), h(g, w);
1157
+ };
1158
+ } else {
1159
+ var p = c.beforeCreate;
1160
+ c.beforeCreate = p ? [].concat(p, C) : [C];
1161
+ }
1162
+ return { exports: i, options: c };
1163
+ }(I, d, [], !1, null, "6dae58fd", null);
1164
+ L.options.__file = "src/vue-cropper.vue";
1165
+ 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) => {
1252
+ });
1253
+ },
1254
+ updateAvatar(o) {
1255
+ const e = {
1256
+ id: this.id,
1257
+ avatar: o
1258
+ };
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
+ },
1307
+ data() {
1308
+ 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,
1331
+ autoCrop: !0,
1332
+ autoCropWidth: 180,
1333
+ autoCropHeight: 180,
1334
+ fixedBox: !0,
1335
+ fixed: !0,
1336
+ fixedNumber: [1, 1],
1337
+ birthdayString: ""
1338
+ },
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: []
1501
+ };
1502
+ },
1503
+ 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
+ }
1548
+ }
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
+ });
1565
+ },
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;
1568
+ },
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
+ });
1590
+ },
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
+ });
1604
+ },
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
+ });
1618
+ },
1619
+ getMenuList(o) {
1620
+ return oe(o).then((e) => e);
1621
+ },
1622
+ sysMenuChange(o) {
1623
+ return ae(o).then((e) => e);
1624
+ },
1625
+ onChangeCascader(o) {
1626
+ const e = this.$refs.cascader.presentText;
1627
+ this.presentText = e !== null ? e.split(" / ") : [];
1628
+ },
1629
+ onChange(o) {
1630
+ o ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
1631
+ },
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;
1644
+ };
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);
1657
+ });
1658
+ },
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;
1676
+ },
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;
1683
+ }
1684
+ },
1685
+ mounted() {
1686
+ this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
1687
+ }
1688
+ };
1689
+ var _e = function() {
1690
+ 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,
1706
+ !1,
1707
+ null,
1708
+ "b784faab",
1709
+ null,
1710
+ null
1711
+ );
1712
+ const P = Ie.exports;
1713
+ P.install = function(o) {
1714
+ o.component(P.name, P);
1715
+ };
1716
+ const Se = {
1717
+ props: {
1718
+ isShow: {
1719
+ type: Boolean,
1720
+ default() {
1721
+ return !1;
1722
+ }
1723
+ }
1724
+ },
1725
+ data() {
1726
+ return {
1727
+ sysViewButtons: [
1728
+ {
1729
+ displayName: "\u786E\u5B9A",
1730
+ functionName: "handleSubmit",
1731
+ show: !0,
1732
+ transKey: "gd.btn.confirm",
1733
+ icon: "el-icon-document-checked"
1734
+ }
1735
+ ],
1736
+ confirmLoading: !1,
1737
+ visible: !1,
1738
+ userId: "",
1739
+ width: "600px",
1740
+ min: 0,
1741
+ messageTip: "",
1742
+ messageTipErr: "",
1743
+ lenMax: 0,
1744
+ lenMin: 0,
1745
+ maskValue: "",
1746
+ pattern: null,
1747
+ fullscreen: !1,
1748
+ disabled: !0,
1749
+ code: "",
1750
+ num: 0,
1751
+ ruleForm: {}
1752
+ };
1753
+ },
1754
+ computed: {
1755
+ modalStyle() {
1756
+ return this.fullscreen ? {
1757
+ width: "100%",
1758
+ dialogStyle: {
1759
+ top: "0px"
1760
+ }
1761
+ } : {
1762
+ width: this.width,
1763
+ dialogStyle: {
1764
+ top: "40px"
1765
+ }
1766
+ };
1767
+ },
1768
+ title() {
1769
+ return this.num == 1 ? this.$i18nt("gd.account.changePaw", "\u4FEE\u6539\u5BC6\u7801") : this.$i18nt("gd.account.userBinding", "\u7528\u6237\u7ED1\u5B9A");
1770
+ },
1771
+ ...W(["labelPosition"])
1772
+ },
1773
+ methods: {
1774
+ toggleFullscreen() {
1775
+ this.fullscreen = !this.fullscreen;
1776
+ },
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(() => {
1779
+ this.formUpdPwd.setFieldsValue({
1780
+ account: this.userId
1781
+ });
1782
+ }), this.visible = !0;
1783
+ },
1784
+ getConfigInfo(o) {
1785
+ K().then((e) => {
1786
+ 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
+ `^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
1788
+ ) : this.maskValue.includes("AL") && this.maskValue.includes("NU") ? this.pattern = new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])") : this.maskValue.includes("AL") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))") : this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])") : this.maskValue.includes("AL") ? this.pattern = new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])") : this.maskValue.includes("NU") ? this.pattern = new RegExp("\\d") : this.maskValue.includes("SC") && (this.pattern = new RegExp("[^a-zA-Z0-9]")), this.messageTipErr = e.data.combinationrule.remark;
1789
+ });
1790
+ },
1791
+ handleSubmit() {
1792
+ this.$refs.ruleForm.validate((o) => {
1793
+ if (o) {
1794
+ this.confirmLoading = !0;
1795
+ let e;
1796
+ this.num == 1 ? e = {
1797
+ accountName: this.userId,
1798
+ passWord: this.ruleForm.password,
1799
+ newPassword: this.ruleForm.newPassword
1800
+ } : e = {
1801
+ account: this.ruleForm.account,
1802
+ password: this.ruleForm.password,
1803
+ corpCode: this.code
1804
+ }, (this.num == 1 ? J : Q)(e).then((a) => {
1805
+ 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
+ }).finally((a) => {
1807
+ this.confirmLoading = !1;
1808
+ });
1809
+ }
1810
+ });
1811
+ },
1812
+ handleCancel() {
1813
+ this.$refs.ruleForm.resetFields(), this.visible = !1;
1814
+ },
1815
+ compareToFirstPassword(o, e, n) {
1816
+ 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
+ },
1818
+ oldtPassword(o, e, n) {
1819
+ e && e === this.ruleForm.password ? n(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : n();
1820
+ },
1821
+ doEvent(o) {
1822
+ let e = o.item.functionName;
1823
+ this[e] && this[e]();
1824
+ }
1825
+ }
1826
+ };
1827
+ var ke = function() {
1828
+ var e = this, n = e._self._c;
1829
+ 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
+ e.visible = a;
1831
+ }, closed: e.handleCancel } }, [n("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent }, slot: "title" }), n("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body", staticStyle: { margin: "10px 10px 10px" } }, [n("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(a) {
1832
+ a.preventDefault();
1833
+ } } }, [e.num == 1 ? n("div", [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.originalPaw", "\u539F\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input") }] } }, [n("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.password, callback: function(a) {
1834
+ e.$set(e.ruleForm, "password", a);
1835
+ }, expression: "ruleForm.password" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [
1836
+ { required: !0, min: e.min, message: e.messageTip },
1837
+ {
1838
+ pattern: e.pattern,
1839
+ message: e.messageTipErr
1840
+ },
1841
+ { validator: e.oldtPassword }
1842
+ ] } }, [n("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.newPassword, callback: function(a) {
1843
+ e.$set(e.ruleForm, "newPassword", a);
1844
+ }, expression: "ruleForm.newPassword" } })], 1), n("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw", "\u91CD\u590D\u65B0\u5BC6\u7801"), prop: "confirm", rules: [
1845
+ { required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") },
1846
+ { validator: e.compareToFirstPassword }
1847
+ ] } }, [n("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.confirm, callback: function(a) {
1848
+ e.$set(e.ruleForm, "confirm", a);
1849
+ }, expression: "ruleForm.confirm" } })], 1)], 1) : n("div", [n("el-form-item", { attrs: { label: e.$i18nt("gd.account.loginID", "\u8D26\u53F7"), prop: "account", rules: [
1850
+ {
1851
+ required: !0,
1852
+ message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
1853
+ }
1854
+ ] } }, [n("el-input", { attrs: { placeholder: e.$i18nt("gd.login.account", "\u8BF7\u8F93\u5165\u8D26\u53F7"), disabled: e.disabled }, model: { value: e.ruleForm.account, callback: function(a) {
1855
+ e.$set(e.ruleForm, "account", a);
1856
+ }, 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
+ e.$set(e.ruleForm, "password", a);
1858
+ }, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
1859
+ }, Le = [], Te = /* @__PURE__ */ H(
1860
+ Se,
1861
+ ke,
1862
+ Le,
1863
+ !1,
1864
+ null,
1865
+ "1d4e1c11",
1866
+ null,
1867
+ null
1868
+ );
1869
+ const z = Te.exports;
1870
+ const Ae = {
1871
+ props: {
1872
+ isClear: {
1873
+ type: Number,
1874
+ default: 1
1875
+ }
1876
+ },
1877
+ components: {
1878
+ UpdPwd: z
1879
+ },
1880
+ data() {
1881
+ return {
1882
+ visible: !1,
1883
+ qrCodeUrl: "//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",
1884
+ code: "",
1885
+ logTitle: "",
1886
+ num: 1,
1887
+ wwLogin: null,
1888
+ confirmLoading: !1,
1889
+ isInitialize: null,
1890
+ pwdExpiration: "",
1891
+ setDate: void 0,
1892
+ currentTime: void 0,
1893
+ diff: void 0,
1894
+ diffDate: void 0,
1895
+ state: "",
1896
+ isWeComLogin: !1,
1897
+ wxUserId: null,
1898
+ appId: "",
1899
+ agentId: "",
1900
+ redirectURL: "",
1901
+ titleWidth: "504px",
1902
+ num1: 0
1903
+ };
1904
+ },
1905
+ computed: {
1906
+ style() {
1907
+ return {
1908
+ "--color": this.primaryColor
1909
+ };
1910
+ },
1911
+ titleTip() {
1912
+ return this.num == 1 ? $i18nt("gd.account.loading") : "";
1913
+ },
1914
+ ...W(["userInfo", "language", "primaryColor"])
1915
+ },
1916
+ mounted() {
1917
+ },
1918
+ 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);
1921
+ },
1922
+ getWeChat(o) {
1923
+ let e = this;
1924
+ o.data.forEach((n, a) => {
1925
+ 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
+ }), setTimeout(() => {
1927
+ e.wwLogin = ww.createWWLoginPanel({
1928
+ el: "#wx_qrcode",
1929
+ params: {
1930
+ login_type: "CorpApp",
1931
+ appid: e.appId,
1932
+ agentid: e.agentId,
1933
+ redirect_uri: e.redirectURL,
1934
+ state: "loginState",
1935
+ redirect_type: "callback",
1936
+ panel_size: e.language == "zh_CN" ? "small" : "middle",
1937
+ lang: e.language == "zh_CN" ? "zh" : "en"
1938
+ },
1939
+ onCheckWeComLogin({ isWeComLogin: n }) {
1940
+ e.isWeComLogin = n, e.num1 = e.isWeComLogin == !0 ? 1 : 0;
1941
+ },
1942
+ onLoginSuccess({ code: n }) {
1943
+ e.code = n, e.$refs.updPwd.open(e.userInfo.account, n, 2), e.visible = !1;
1944
+ },
1945
+ onLoginFail(n) {
1946
+ }
1947
+ });
1948
+ }, 500);
1949
+ },
1950
+ handleCancel() {
1951
+ this.confirmLoading = !1, this.visible = !1, this.$refs.wx_qrcode.innerHTML = "";
1952
+ }
1953
+ }
1954
+ };
1955
+ var Ee = function() {
1956
+ var e = this, n = e._self._c;
1957
+ 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
+ e.visible = a;
1959
+ }, 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,
2080
+ Xe,
2081
+ Fe,
2082
+ !1,
2083
+ null,
2084
+ "bab5209a",
2085
+ null,
2086
+ null
2087
+ );
2088
+ const Y = Pe.exports;
2089
+ Y.install = function(o) {
2090
+ o.component(Y.name, Y);
2091
+ };
2092
+ export {
2093
+ X as G,
2094
+ F as a,
2095
+ Y as b,
2096
+ P as c
2097
+ };