@acedatacloud/nexior 3.153.0 → 3.154.0

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 (303) hide show
  1. package/dist/assets/{Auth-DDrnBE0l.js → Auth-BvIoOnG0.js} +1 -1
  2. package/dist/assets/{BotPlaceholder-BaXQOlUu.js → BotPlaceholder-CVNP81Ij.js} +1 -1
  3. package/dist/assets/{Callback-DvCOO19G.js → Callback-DXRlgUTY.js} +1 -1
  4. package/dist/assets/Console-C3Bs-OwN.js +1 -0
  5. package/dist/assets/{Consumption-DFTH_HGK.js → Consumption-DezlNyb8.js} +1 -1
  6. package/dist/assets/{Conversation-Dztwlkuu.js → Conversation-D0tbBX3X.js} +1 -1
  7. package/dist/assets/{CopyToClipboard-D0h1kZtr.js → CopyToClipboard-DEQ2vUBW.js} +1 -1
  8. package/dist/assets/{Detail-OzReBvPD.js → Detail-B0-LrDGH.js} +2 -2
  9. package/dist/assets/{EditArray-4hN22N2P.js → EditArray-BQqciswi.js} +1 -1
  10. package/dist/assets/Extra-Dsr0mwrd.js +1 -0
  11. package/dist/assets/{FilePreview-BxQ2ui-K.js → FilePreview-DygQVcir.js} +1 -1
  12. package/dist/assets/{History-BYZCLuZX.js → History-_PS1dqx1.js} +1 -1
  13. package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-BceOaJ6J.js → IconPark.vue_vue_type_script_setup_true_lang-D1cGG8ik.js} +1 -1
  14. package/dist/assets/{ImagePreview-7naWf_Hk.js → ImagePreview-oKVovOna.js} +1 -1
  15. package/dist/assets/{ImageWrapper-DBP8OPPq.js → ImageWrapper-CP1kri33.js} +1 -1
  16. package/dist/assets/{Index-CeHXUEmf.js → Index-B6f_3k0F.js} +1 -1
  17. package/dist/assets/Index-BAOfgVc-.js +1 -0
  18. package/dist/assets/{Index-Nt1Go49-.js → Index-BIjYFMTS.js} +1 -1
  19. package/dist/assets/{Index-CBZ_nBax.js → Index-BQChb1wW.js} +1 -1
  20. package/dist/assets/{Index-B5kWayK1.js → Index-Blu7kuxy.js} +2 -2
  21. package/dist/assets/Index-BnHFnhyQ.js +1 -0
  22. package/dist/assets/Index-C6NFEU_E.js +1 -0
  23. package/dist/assets/Index-CCQf3sHf.js +1 -0
  24. package/dist/assets/{Index-CEhs61BD.js → Index-CI20mwJ5.js} +1 -1
  25. package/dist/assets/{Index-huSQWKoj.js → Index-CV6Cik9T.js} +1 -1
  26. package/dist/assets/Index-CWEZ_TF8.js +1 -0
  27. package/dist/assets/Index-CeXQ5dsP.js +1 -0
  28. package/dist/assets/Index-CifEXRAm.js +1 -0
  29. package/dist/assets/Index-CobtPxq_.js +1 -0
  30. package/dist/assets/Index-Cqk75F8h.js +1 -0
  31. package/dist/assets/Index-DZzk-QeZ.js +1 -0
  32. package/dist/assets/Index-UqK4lb4L.js +1 -0
  33. package/dist/assets/Index-fjn8EiBJ.js +1 -0
  34. package/dist/assets/Index-g0ljrUNA.js +1 -0
  35. package/dist/assets/Index-gCuDVw_N.js +1 -0
  36. package/dist/assets/Index-mxdbECrG.js +1 -0
  37. package/dist/assets/Index-utxWAl4x.js +1 -0
  38. package/dist/assets/Index-uyPl8Nwp.js +1 -0
  39. package/dist/assets/{Index-DMnHU_Dy.js → Index-zg8V1ne0.js} +1 -1
  40. package/dist/assets/{Invitees-CnWhvZr5.js → Invitees-YSg8f6Qo.js} +1 -1
  41. package/dist/assets/{List-DoWXT5_l.js → List-BUgmnGbP.js} +1 -1
  42. package/dist/assets/{List-CeizYvZn.js → List-vKcd7tqF.js} +1 -1
  43. package/dist/assets/List-xXrTRwy0.js +1 -0
  44. package/dist/assets/Main-DXNpDRFO.js +1 -0
  45. package/dist/assets/{Navigator-Bxv_BuuW.js → Navigator-CCFRjxYm.js} +1 -1
  46. package/dist/assets/{NoTasks-Cz8zUMc6.js → NoTasks-B-Z39N58.js} +1 -1
  47. package/dist/assets/{NotFound-CcLwqyOI.js → NotFound-B4TK7gfs.js} +1 -1
  48. package/dist/assets/{OAuthCallback-DSac96G7.js → OAuthCallback-BsBu50ob.js} +1 -1
  49. package/dist/assets/Pagination-Dh2p1EBn.js +1 -0
  50. package/dist/assets/Status-CUDuRYJW.js +1 -0
  51. package/dist/assets/Subscribe-9oySteAY.js +1 -0
  52. package/dist/assets/{VideoPlayer-DvxHqPgh.js → VideoPlayer-6MQ9sdIK.js} +1 -1
  53. package/dist/assets/_Uint8Array-yXrjWRgc.js +1 -0
  54. package/dist/assets/{_baseClone-BSjA72P_.js → _baseClone-BVstWSsi.js} +1 -1
  55. package/dist/assets/_baseIteratee-VgBkxc5c.js +1 -0
  56. package/dist/assets/_initCloneObject-ClZfVK4X.js +1 -0
  57. package/dist/assets/{add-CmzXze0M.js → add-BZVpaynG.js} +1 -1
  58. package/dist/assets/{all-wallets-CHn9xAYZ.js → all-wallets-D4SY2J-U.js} +1 -1
  59. package/dist/assets/{app-store-DwfOf35z.js → app-store-DdK99FBK.js} +1 -1
  60. package/dist/assets/{apple-WGS8lnCY.js → apple-B8881PDR.js} +1 -1
  61. package/dist/assets/{arrow-bottom-circle-Dgb64PUh.js → arrow-bottom-circle-CwuF-nNI.js} +1 -1
  62. package/dist/assets/{arrow-bottom-B6gMY2Yk.js → arrow-bottom-rFdQoX0u.js} +1 -1
  63. package/dist/assets/{arrow-left-DKh7wE7H.js → arrow-left-Bql6tiQ4.js} +1 -1
  64. package/dist/assets/{arrow-right-Dhn7TV75.js → arrow-right-NEhzXUUA.js} +1 -1
  65. package/dist/assets/{arrow-top-BCxTClC8.js → arrow-top-Cfpwd8Ix.js} +1 -1
  66. package/dist/assets/{avatar-Cb5CH4yp.js → avatar-DCRaNRrU.js} +1 -1
  67. package/dist/assets/{bank-GXZKJABB.js → bank-CZzQhA0v.js} +1 -1
  68. package/dist/assets/{basic-C8e8PUsP.js → basic-DcHUnVsl.js} +1 -1
  69. package/dist/assets/{browser-DZOA5Fb1.js → browser-GlZ0fS6I.js} +1 -1
  70. package/dist/assets/{byokCredential-BNuLDPcq.js → byokCredential-D4aIqzYx.js} +1 -1
  71. package/dist/assets/{card-kkVz6uYW.js → card-BR6aVLJQ.js} +1 -1
  72. package/dist/assets/{castArray-BX_tt0Nx.js → castArray-BriRWb3C.js} +1 -1
  73. package/dist/assets/{chat-DN4tkl6w.js → chat-Ct28MdF6.js} +1 -1
  74. package/dist/assets/{checkmark-DQGYaEiK.js → checkmark-DyM8QxzE.js} +1 -1
  75. package/dist/assets/{checkmark-bold-CBNi3JJb.js → checkmark-bold-DSAkWWbH.js} +1 -1
  76. package/dist/assets/{chevron-bottom-Ce4m3o_N.js → chevron-bottom-Dnq-Rnm3.js} +1 -1
  77. package/dist/assets/{chevron-left-B0zJ6X2c.js → chevron-left-Brp-805H.js} +1 -1
  78. package/dist/assets/{chevron-right-DTHItDA_.js → chevron-right-Dn-7Tevv.js} +1 -1
  79. package/dist/assets/{chevron-top-D_Y09Sio.js → chevron-top-R2oN9TQ2.js} +1 -1
  80. package/dist/assets/{chrome-store-C4J6giMT.js → chrome-store-ByHhiTTs.js} +1 -1
  81. package/dist/assets/{clock-Cnmy4Mg4.js → clock-B3Z4QBYS.js} +1 -1
  82. package/dist/assets/{close-BNNr7R7x.js → close-wZqSMpJ5.js} +1 -1
  83. package/dist/assets/{coinPlaceholder-CPKbed1I.js → coinPlaceholder-nExzEsCx.js} +1 -1
  84. package/dist/assets/{compass-C8uRNySO.js → compass-BwzIgnOk.js} +1 -1
  85. package/dist/assets/{copy-BzENNvfZ.js → copy-Dyl66nKd.js} +1 -1
  86. package/dist/assets/createTaskActions-CU4qQnIW.js +1 -0
  87. package/dist/assets/{cursor-transparent-61abU7S5.js → cursor-transparent-z7Bx4LkZ.js} +1 -1
  88. package/dist/assets/{cursor-CzDjQptI.js → cursor-uVOKud2k.js} +1 -1
  89. package/dist/assets/{debounce-UL-c7F9u.js → debounce-4A6U1So0.js} +1 -1
  90. package/dist/assets/{desktop-BeMecIbL.js → desktop-zdWzl8HN.js} +1 -1
  91. package/dist/assets/{disconnect-C7XNqZWW.js → disconnect-Cii3Imij.js} +1 -1
  92. package/dist/assets/{discord-D8WnFAX-.js → discord-DlCarF8P.js} +1 -1
  93. package/dist/assets/{distribution-Bnckplw8.js → distribution-CsndrW5H.js} +1 -1
  94. package/dist/assets/{dropdown-CceaRCWn.js → dropdown-BFrF5bX-.js} +1 -1
  95. package/dist/assets/{etherscan-DhZklXvZ.js → etherscan-CcRVKpCq.js} +1 -1
  96. package/dist/assets/{exclamation-triangle-jZ8xmQ9s.js → exclamation-triangle-B6_8ALl9.js} +1 -1
  97. package/dist/assets/{extension-Dqto-7Q3.js → extension-BpY7b6PX.js} +1 -1
  98. package/dist/assets/{external-link-D7sPhBkD.js → external-link-BvRr3TNN.js} +1 -1
  99. package/dist/assets/{facebook-DXl0ugAc.js → facebook-pgvq8oSq.js} +1 -1
  100. package/dist/assets/{farcaster-Dy4GUuoj.js → farcaster-CQ1hc-WU.js} +1 -1
  101. package/dist/assets/{filters-Dz0Dvkaj.js → filters-Buwejpsz.js} +1 -1
  102. package/dist/assets/{github-D6u20woO.js → github-DFNv1EVt.js} +1 -1
  103. package/dist/assets/{google-BMcMZGbf.js → google-ZMUxz2T1.js} +1 -1
  104. package/dist/assets/{help-circle-Mr50g_Jj.js → help-circle-CHzvv45U.js} +1 -1
  105. package/dist/assets/{id-Dtd5UYku.js → id-Dd31vKSO.js} +1 -1
  106. package/dist/assets/{image-db1KE6i7.js → image-Mt55IY7t.js} +1 -1
  107. package/dist/assets/index--ymKFTY3.js +1 -0
  108. package/dist/assets/{index-D3kwEdCO.js → index-72lWSKXT.js} +1 -1
  109. package/dist/assets/index-94KpVqIp.js +1 -0
  110. package/dist/assets/index-B1LK_Bte.js +1 -0
  111. package/dist/assets/{index-BP5BsZj2.js → index-B36A8oMR.js} +1 -1
  112. package/dist/assets/index-B3G8wlqd.js +6 -0
  113. package/dist/assets/index-B92EsGM7.js +1 -0
  114. package/dist/assets/{index-BlbUCciE.js → index-BC5O4cBp.js} +1 -1
  115. package/dist/assets/{index-CaNkjkZ8.js → index-BJacr6pl.js} +1 -1
  116. package/dist/assets/index-BO8lvgxo.js +1 -0
  117. package/dist/assets/index-BWRB2N9a.js +1 -0
  118. package/dist/assets/index-BZbOC1aH.js +1 -0
  119. package/dist/assets/{index-mkyH6aAj.js → index-Bkl6psGS.js} +1 -1
  120. package/dist/assets/{index-CP1XocLG.js → index-BmKJdKX7.js} +1 -1
  121. package/dist/assets/index-Bt2gaRJ8.js +1 -0
  122. package/dist/assets/index-BzX0AJFl.js +1 -0
  123. package/dist/assets/index-C5mm4Ul4.js +1 -0
  124. package/dist/assets/index-C8DB3jho.js +1 -0
  125. package/dist/assets/index-C8VHl5rI.js +1 -0
  126. package/dist/assets/index-CB3VcJIN.js +1 -0
  127. package/dist/assets/{index-MHtwWAGL.js → index-CCPTa97Y.js} +5 -5
  128. package/dist/assets/{index-CqUYE69O.js → index-CH624IiN.js} +1 -1
  129. package/dist/assets/{index-CK4Gkg3p.js → index-CJHjCuCF.js} +1 -1
  130. package/dist/assets/{index-DUTwzVsl.js → index-CJkudRsQ.js} +1 -1
  131. package/dist/assets/index-CQlsnJWW.js +1 -0
  132. package/dist/assets/index-CQxvolFQ.js +1 -0
  133. package/dist/assets/index-CRH2Cm9r.js +1 -0
  134. package/dist/assets/{index-yn55RwAP.js → index-CgASjiIt.js} +1 -1
  135. package/dist/assets/{index-Dffxw0ff.js → index-CqopKWmx.js} +1 -1
  136. package/dist/assets/index-CuuZTUD5.js +1 -0
  137. package/dist/assets/index-D-si2sYc.js +1 -0
  138. package/dist/assets/{index-Dg898uio.js → index-D0sD9s3K.js} +1 -1
  139. package/dist/assets/index-D5JbrcHw.js +1 -0
  140. package/dist/assets/index-DCMJXdAH.js +1 -0
  141. package/dist/assets/{index-Duu82c2E.js → index-DHFruKtB.js} +1 -1
  142. package/dist/assets/{index-noiKsTkE.js → index-DPMnhmUj.js} +1 -1
  143. package/dist/assets/{index-Bb7Nk44w.js → index-DRlwGKKR.js} +2 -2
  144. package/dist/assets/index-DSDL2TZm.js +1 -0
  145. package/dist/assets/index-DSQbC5ag.js +1 -0
  146. package/dist/assets/index-DUcr29Yw.js +1 -0
  147. package/dist/assets/index-DUgv8yNP.js +1 -0
  148. package/dist/assets/{index-DlFN-E6q.js → index-DV2274e1.js} +1 -1
  149. package/dist/assets/{index-DF9s3sJR.js → index-DWKXJA_s.js} +1 -1
  150. package/dist/assets/index-DXVZYDaN.js +1 -0
  151. package/dist/assets/index-D_6Q6_hh.js +1 -0
  152. package/dist/assets/index-DbixaZn4.js +1 -0
  153. package/dist/assets/{index-Ce2SVQ2-.js → index-Diq2ZvhU.js} +1 -1
  154. package/dist/assets/index-DkY2Nfkn.js +1 -0
  155. package/dist/assets/index-DorrEU0d.js +1 -0
  156. package/dist/assets/index-Dtr8XpYQ.js +1 -0
  157. package/dist/assets/{index-VJ8AehQ6.js → index-DvRp2u5y.js} +1 -1
  158. package/dist/assets/index-DvexfW2p.js +1 -0
  159. package/dist/assets/index-G0pQZCwm.js +1 -0
  160. package/dist/assets/{index-CUMrI3uM.js → index-RKA7vcxG.js} +14 -14
  161. package/dist/assets/{index-BLenW2IQ.js → index-S60kU_7G.js} +2 -2
  162. package/dist/assets/index-ivi4l0FC.js +1 -0
  163. package/dist/assets/index-jeHN0aXR.js +1 -0
  164. package/dist/assets/{index-BKAOJrxY.js → index-kLUPyLRT.js} +1 -1
  165. package/dist/assets/{index-BC2_g7Ww.js → index-nYGIzX0n.js} +1 -1
  166. package/dist/assets/{index-BPFxCcBU.js → index-qg6p-PEz.js} +3 -3
  167. package/dist/assets/{index.browser.esm-ClaN3zpF.js → index.browser.esm-DyqiiqXv.js} +3 -3
  168. package/dist/assets/{index.es-PxkVTVul.js → index.es-Bt64eLCe.js} +1 -1
  169. package/dist/assets/{info-BXBLa64z.js → info-DNyDjHxN.js} +1 -1
  170. package/dist/assets/{info-circle-B4eNlDK0.js → info-circle-CeY7VYc4.js} +1 -1
  171. package/dist/assets/{isEqual-DyhHzzXY.js → isEqual-CxrfphK6.js} +1 -1
  172. package/dist/assets/{isPlainObject-CcKl5vVw.js → isPlainObject-DYB82xcc.js} +1 -1
  173. package/dist/assets/{lightbulb-e04CjglQ.js → lightbulb-DWyYKlR7.js} +1 -1
  174. package/dist/assets/{mail-DCbmXlLv.js → mail-y5PcsuIl.js} +1 -1
  175. package/dist/assets/{midjourney-J2fcjKsM.js → midjourney-B-NiEd3S.js} +1 -1
  176. package/dist/assets/{mobile-D3Vr08QE.js → mobile-DUuRyoz6.js} +1 -1
  177. package/dist/assets/{more-CzmowcGv.js → more-Cu85qPJb.js} +1 -1
  178. package/dist/assets/{network-placeholder-S4xr_Ish.js → network-placeholder-D-FyPiq3.js} +1 -1
  179. package/dist/assets/{nftPlaceholder-CFpKbiYU.js → nftPlaceholder-BTzxX8zD.js} +1 -1
  180. package/dist/assets/{off-D6wSDq5r.js → off-ZcbSXmuy.js} +1 -1
  181. package/dist/assets/{order-CQMesFjP.js → order-Blt7agKU.js} +1 -1
  182. package/dist/assets/{pagination-DnskqQUw.js → pagination-Bsrwz5HQ.js} +1 -1
  183. package/dist/assets/pika-DpzVVVef.js +1 -0
  184. package/dist/assets/{play-store-BOLDPeK6.js → play-store-Cf9cFLTO.js} +1 -1
  185. package/dist/assets/{plus-BzqztpJW.js → plus-CWiwLjw9.js} +1 -1
  186. package/dist/assets/{price-CxhDvSzR.js → price-C4efiJpu.js} +1 -1
  187. package/dist/assets/{producer-DI_UGu92.js → producer-DBr66fzd.js} +1 -1
  188. package/dist/assets/{qr-code-Cu_jrN04.js → qr-code-CWYX4NBz.js} +1 -1
  189. package/dist/assets/qrart-C9yTZSh5.js +1 -0
  190. package/dist/assets/{recycle-horizontal-6jZ5yRQX.js → recycle-horizontal-DiaJP3xI.js} +1 -1
  191. package/dist/assets/{refresh-DecfBxuF.js → refresh-BQtgHldl.js} +1 -1
  192. package/dist/assets/{reown-logo-z7BX-Lbw.js → reown-logo-CUSx4SCj.js} +1 -1
  193. package/dist/assets/{search-DX2otVBy.js → search-DZ056JFa.js} +1 -1
  194. package/dist/assets/{secp256k1-DeElS5sK.js → secp256k1-P0GVLqjY.js} +1 -1
  195. package/dist/assets/{secp256k1-ChFo7qze.js → secp256k1-cZz2TUN6.js} +1 -1
  196. package/dist/assets/{seedream-auGCEdqn.js → seedream-BQAd-akf.js} +1 -1
  197. package/dist/assets/{send-Czo3iJAL.js → send-BxVbCMnD.js} +1 -1
  198. package/dist/assets/{service-XY-3uR2r.js → service-CS_tTi1s.js} +1 -1
  199. package/dist/assets/{solana-wallets-DvUT0YeD.js → solana-wallets-Cqfynxec.js} +2 -2
  200. package/dist/assets/{solana-wallets-vue-D-Nx9CE8.js → solana-wallets-vue-BWamnaGz.js} +1 -1
  201. package/dist/assets/{suno-xZL8iGhM.js → suno-Dt-pL4du.js} +1 -1
  202. package/dist/assets/{swapHorizontal-DeqQuIFf.js → swapHorizontal-DxtTka3U.js} +1 -1
  203. package/dist/assets/{swapHorizontalBold-CoVrmJrd.js → swapHorizontalBold-C91tsNTH.js} +1 -1
  204. package/dist/assets/{swapHorizontalMedium-BjQIr8b8.js → swapHorizontalMedium-r-vP5eQN.js} +1 -1
  205. package/dist/assets/{swapHorizontalRoundedBold-BtDng4q7.js → swapHorizontalRoundedBold-CxOAGy5t.js} +1 -1
  206. package/dist/assets/{swapVertical-5jgvn930.js → swapVertical-BJGYg1c6.js} +1 -1
  207. package/dist/assets/{telegram-Cf21BUrY.js → telegram-C7ZBAeAz.js} +1 -1
  208. package/dist/assets/{three-dots-z5KfuaCE.js → three-dots-lIiTztJP.js} +1 -1
  209. package/dist/assets/{twitch-tXRadvQe.js → twitch-Dgkvt8Hz.js} +1 -1
  210. package/dist/assets/{twitterIcon-BkDj0hBx.js → twitterIcon-CmrA1-K8.js} +1 -1
  211. package/dist/assets/typescript-CZIRg0iX.js +1 -0
  212. package/dist/assets/{use-form-item-BCUliaxT.js → use-form-item-Mz_lqNZY.js} +1 -1
  213. package/dist/assets/validator-BYOWCr9W.js +1 -0
  214. package/dist/assets/{verify-D8DxLVRM.js → verify-DYHLq0T9.js} +1 -1
  215. package/dist/assets/{verify-filled-B7kwzlnV.js → verify-filled-4C6XlTyD.js} +1 -1
  216. package/dist/assets/{w3m-modal-22dEVCrg.js → w3m-modal-D6Hr0-xV.js} +1 -1
  217. package/dist/assets/{wallet-placeholder-DZBPAI-m.js → wallet-placeholder-_JLUjVoS.js} +1 -1
  218. package/dist/assets/{wallet-Ce4orrbn.js → wallet-wBUo5f8z.js} +1 -1
  219. package/dist/assets/{walletconnect-wg_6yCCU.js → walletconnect-7vlKsEBe.js} +1 -1
  220. package/dist/assets/{warning-circle-tQco1wm8.js → warning-circle-BtGmUpRX.js} +1 -1
  221. package/dist/assets/{web-0M91Tp1S.js → web-BIz41RbW.js} +1 -1
  222. package/dist/assets/{web-dEhOij-c.js → web-xbiSDWpO.js} +1 -1
  223. package/dist/assets/{x-DSlNv2tZ.js → x-yFtP-aPn.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +1 -1
  226. package/dist/assets/Console-j13poOpt.js +0 -1
  227. package/dist/assets/Extra-HDM3iAIL.js +0 -1
  228. package/dist/assets/Index-5dnM7IVQ.js +0 -1
  229. package/dist/assets/Index-6gLsddki.js +0 -1
  230. package/dist/assets/Index-BD79lwki.js +0 -1
  231. package/dist/assets/Index-BF9bRDwY.js +0 -1
  232. package/dist/assets/Index-BIh7lrcj.js +0 -1
  233. package/dist/assets/Index-Bc41k2MH.js +0 -1
  234. package/dist/assets/Index-BdS9JUut.js +0 -1
  235. package/dist/assets/Index-BdW_y_4k.js +0 -1
  236. package/dist/assets/Index-Bxip2nWO.js +0 -1
  237. package/dist/assets/Index-D1uVD7MJ.js +0 -1
  238. package/dist/assets/Index-DSYePGan.js +0 -1
  239. package/dist/assets/Index-DhyU728T.js +0 -1
  240. package/dist/assets/Index-Dk3_OwNx.js +0 -1
  241. package/dist/assets/Index-DtSSjduU.js +0 -1
  242. package/dist/assets/Index-YWCXBkrX.js +0 -1
  243. package/dist/assets/Index-ZbFDulyj.js +0 -1
  244. package/dist/assets/Index-yr6aKo3J.js +0 -1
  245. package/dist/assets/List-CoF-LEif.js +0 -1
  246. package/dist/assets/Main-CmtvT7sQ.js +0 -1
  247. package/dist/assets/Pagination-DuiwOQtA.js +0 -1
  248. package/dist/assets/Status-BI5eG15k.js +0 -1
  249. package/dist/assets/Subscribe-DMQsOiFE.js +0 -1
  250. package/dist/assets/_Uint8Array-xXOLJRhg.js +0 -1
  251. package/dist/assets/_baseIteratee-A9x3WSjV.js +0 -1
  252. package/dist/assets/_initCloneObject-CI8Xd2KA.js +0 -1
  253. package/dist/assets/flux-DCbjWSi3.js +0 -1
  254. package/dist/assets/hailuo-dnC-ATKI.js +0 -1
  255. package/dist/assets/headshots-i-IWtbB1.js +0 -1
  256. package/dist/assets/index-4gKTHL4m.js +0 -1
  257. package/dist/assets/index-ANiQ8hRa.js +0 -1
  258. package/dist/assets/index-B0UU8wtf.js +0 -1
  259. package/dist/assets/index-B5uViYWu.js +0 -1
  260. package/dist/assets/index-B7yyoRtz.js +0 -1
  261. package/dist/assets/index-BLPj-bFo.js +0 -1
  262. package/dist/assets/index-BV7Onq3z.js +0 -1
  263. package/dist/assets/index-BX75bHZZ.js +0 -1
  264. package/dist/assets/index-BgGOtUyI.js +0 -1
  265. package/dist/assets/index-BhgPr4v6.js +0 -1
  266. package/dist/assets/index-Bj1Qrw3o.js +0 -1
  267. package/dist/assets/index-Bk3keCL7.js +0 -1
  268. package/dist/assets/index-BpuPZd0a.js +0 -1
  269. package/dist/assets/index-C07tODnb.js +0 -1
  270. package/dist/assets/index-C9pmXydD.js +0 -1
  271. package/dist/assets/index-CTf4CCHb.js +0 -1
  272. package/dist/assets/index-CYoskRTt.js +0 -1
  273. package/dist/assets/index-CeFV0MI6.js +0 -1
  274. package/dist/assets/index-Csl-HYyf.js +0 -1
  275. package/dist/assets/index-D5t7Lgdc.js +0 -1
  276. package/dist/assets/index-DECR9Z-S.js +0 -1
  277. package/dist/assets/index-DP4m7gwj.js +0 -1
  278. package/dist/assets/index-DWeJByu5.js +0 -1
  279. package/dist/assets/index-DceoqtRa.js +0 -1
  280. package/dist/assets/index-DhLR2kZI.js +0 -1
  281. package/dist/assets/index-DltP2bfN.js +0 -1
  282. package/dist/assets/index-DpWh3pWV.js +0 -1
  283. package/dist/assets/index-Dzglb-UN.js +0 -1
  284. package/dist/assets/index-FLb7lvpT.js +0 -1
  285. package/dist/assets/index-Iywsl7Po.js +0 -1
  286. package/dist/assets/index-LHAPoElI.js +0 -1
  287. package/dist/assets/index-LJD4KxHk.js +0 -1
  288. package/dist/assets/index-NhMzhO2I.js +0 -6
  289. package/dist/assets/index-gQsYSS6T.js +0 -1
  290. package/dist/assets/index-vtX69hlH.js +0 -1
  291. package/dist/assets/kling-DDzHSkML.js +0 -1
  292. package/dist/assets/luma-CEGrL_1K.js +0 -1
  293. package/dist/assets/nanobanana-CiVbVjBG.js +0 -1
  294. package/dist/assets/openaiimage-KrdkLxHF.js +0 -1
  295. package/dist/assets/pika-DarXnIXV.js +0 -1
  296. package/dist/assets/pixverse-DtqGUyUX.js +0 -1
  297. package/dist/assets/qrart-Ba5RkjjA.js +0 -1
  298. package/dist/assets/seedance-DgsqaYbQ.js +0 -1
  299. package/dist/assets/sora-CaAJTxIc.js +0 -1
  300. package/dist/assets/typescript-DeTjW0DO.js +0 -1
  301. package/dist/assets/validator-Bzrp9xMi.js +0 -1
  302. package/dist/assets/veo-Dw_2Kbq1.js +0 -1
  303. package/dist/assets/wan-41cXgfvK.js +0 -1
@@ -1 +1 @@
1
- import{P as g}from"./Pagination-DuiwOQtA.js";import{C as b}from"./CopyToClipboard-D0h1kZtr.js";import{b as w}from"./distribution-Bnckplw8.js";import{E as y}from"./index-CUMrI3uM.js";import{g as $}from"./price-CxhDvSzR.js";import{E as C}from"./index-noiKsTkE.js";import{E as v,a as D}from"./index-mkyH6aAj.js";import{E,a as H}from"./index-CaNkjkZ8.js";import{d as P,x as c,y as o,C as e,E as a,F as s,G as S,D as r,K as F,q as m}from"./vendor-vue-NSDaktjZ.js";import"./index-BX75bHZZ.js";import"./index-LJD4KxHk.js";import"./index-DceoqtRa.js";import"./typescript-DeTjW0DO.js";import"./index-DUTwzVsl.js";import"./strings-beZM2Y-f.js";import"./isEqual-DyhHzzXY.js";import"./_Uint8Array-xXOLJRhg.js";import"./castArray-BX_tt0Nx.js";import"./use-form-item-BCUliaxT.js";import"./index-BhgPr4v6.js";import"./index-CqUYE69O.js";import"./debounce-UL-c7F9u.js";import"./_baseIteratee-A9x3WSjV.js";import"./index-VJ8AehQ6.js";import"./index.es-PxkVTVul.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./_initCloneObject-CI8Xd2KA.js";import"./isPlainObject-CcKl5vVw.js";import"./index-BlbUCciE.js";const k=P({name:"ConsoleDistributionList",components:{Pagination:g,CopyToClipboard:b,ElRow:H,ElCol:E,ElTable:D,ElTableColumn:v,ElCard:C},data(){return{distributionHistories:[],distributionStatus:void 0,loading:!1,total:void 0,limit:10}},computed:{redirect(){return this.$route.query.redirect},page(){return parseInt(this.$route.query.page?.toString()||"1")}},watch:{page:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{getPriceString:$,onPageChange(t){this.$router.push({name:this.$route.name?.toString(),query:{page:t}})},onFetchData(){this.loading=!0,Promise.all([this.onFetchDistributionHistory()]).finally(()=>{this.loading=!1})},async onFetchDistributionHistory(){const{data:t}=await w.getAll({user_id:this.$store.getters.user.id,ordering:"-created_at",limit:this.limit,offset:(this.page-1)*this.limit});this.distributionHistories=t.items,this.total=t.count}}}),q={class:"title"},B={class:"key"},I={class:"copy"},T={class:"key"},z={class:"copy"},A={class:"price"},N={class:"description"},V={class:"description"},j={class:"created-at"},G={class:"pagination m-v-lg"};function K(t,L,O,R,J,M){const l=r("el-col"),d=r("el-row"),p=r("copy-to-clipboard"),n=r("el-table-column"),u=r("el-table"),_=r("el-card"),h=r("pagination"),f=F("loading");return m(),c(d,{class:"panel"},{default:o(()=>[e(l,{span:24},{default:o(()=>[e(d,null,{default:o(()=>[e(l,{span:24},{default:o(()=>[a("h2",q,s(t.$t("common.title.distributionHistory")),1)]),_:1})]),_:1}),e(d,null,{default:o(()=>[e(l,{span:24},{default:o(()=>[e(_,{shadow:"hover"},{default:o(()=>[S((m(),c(u,{data:t.distributionHistories,stripe:""},{default:o(()=>[e(n,{prop:"id",label:t.$t("distribution.field.id"),"class-name":"text-center",width:"350px"},{default:o(i=>[a("span",B,s(i.row.id),1),a("span",I,[e(p,{content:i.row.id},null,8,["content"])])]),_:1},8,["label"]),e(n,{prop:"id",label:t.$t("distribution.field.userId"),"class-name":"text-center",width:"350px"},{default:o(i=>[a("span",T,s(i.row.user_id),1),a("span",z,[e(p,{content:i.row.user_id},null,8,["content"])])]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.price"),width:"100px"},{default:o(i=>[a("span",A,s(t.getPriceString({value:i.row?.price})),1)]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.reward"),width:"100px"},{default:o(i=>[a("span",N,s(t.getPriceString({value:i.row?.reward})),1)]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.percentage"),width:"120px"},{default:o(i=>[a("span",V,s(i.row.percentage)+"%",1)]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.createdAt"),width:"200px"},{default:o(i=>[a("span",j,s(t.$dayjs.format(i.row.created_at)),1)]),_:1},8,["label"])]),_:1},8,["data"])),[[f,t.loading]])]),_:1})]),_:1})]),_:1}),e(d,null,{default:o(()=>[e(l,{span:10,offset:14},{default:o(()=>[a("div",G,[e(h,{"current-page":t.page,"page-size":t.limit,total:t.total,onChange:t.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}const Dt=y(k,[["render",K],["__scopeId","data-v-74b9e778"]]);export{Dt as default};
1
+ import{P as g}from"./Pagination-Dh2p1EBn.js";import{C as b}from"./CopyToClipboard-DEQ2vUBW.js";import{b as w}from"./distribution-CsndrW5H.js";import{G as y}from"./index-RKA7vcxG.js";import{g as $}from"./price-C4efiJpu.js";import{E as C}from"./index-DPMnhmUj.js";import{E as v,a as D}from"./index-Bkl6psGS.js";import{E,a as H}from"./index-BJacr6pl.js";import{d as P,x as c,y as o,C as e,E as a,F as s,G as S,D as r,K as F,q as m}from"./vendor-vue-NSDaktjZ.js";import"./index-D_6Q6_hh.js";import"./index-DXVZYDaN.js";import"./index-DbixaZn4.js";import"./typescript-CZIRg0iX.js";import"./index-CJkudRsQ.js";import"./strings-beZM2Y-f.js";import"./isEqual-CxrfphK6.js";import"./_Uint8Array-yXrjWRgc.js";import"./castArray-BriRWb3C.js";import"./use-form-item-Mz_lqNZY.js";import"./index-DSQbC5ag.js";import"./index-CH624IiN.js";import"./debounce-4A6U1So0.js";import"./_baseIteratee-VgBkxc5c.js";import"./index-DvRp2u5y.js";import"./index.es-Bt64eLCe.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./_initCloneObject-ClZfVK4X.js";import"./isPlainObject-DYB82xcc.js";import"./index-BC5O4cBp.js";const k=P({name:"ConsoleDistributionList",components:{Pagination:g,CopyToClipboard:b,ElRow:H,ElCol:E,ElTable:D,ElTableColumn:v,ElCard:C},data(){return{distributionHistories:[],distributionStatus:void 0,loading:!1,total:void 0,limit:10}},computed:{redirect(){return this.$route.query.redirect},page(){return parseInt(this.$route.query.page?.toString()||"1")}},watch:{page:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{getPriceString:$,onPageChange(t){this.$router.push({name:this.$route.name?.toString(),query:{page:t}})},onFetchData(){this.loading=!0,Promise.all([this.onFetchDistributionHistory()]).finally(()=>{this.loading=!1})},async onFetchDistributionHistory(){const{data:t}=await w.getAll({user_id:this.$store.getters.user.id,ordering:"-created_at",limit:this.limit,offset:(this.page-1)*this.limit});this.distributionHistories=t.items,this.total=t.count}}}),q={class:"title"},B={class:"key"},I={class:"copy"},T={class:"key"},z={class:"copy"},A={class:"price"},G={class:"description"},N={class:"description"},V={class:"created-at"},j={class:"pagination m-v-lg"};function K(t,L,O,R,J,M){const l=r("el-col"),d=r("el-row"),p=r("copy-to-clipboard"),n=r("el-table-column"),u=r("el-table"),_=r("el-card"),h=r("pagination"),f=F("loading");return m(),c(d,{class:"panel"},{default:o(()=>[e(l,{span:24},{default:o(()=>[e(d,null,{default:o(()=>[e(l,{span:24},{default:o(()=>[a("h2",q,s(t.$t("common.title.distributionHistory")),1)]),_:1})]),_:1}),e(d,null,{default:o(()=>[e(l,{span:24},{default:o(()=>[e(_,{shadow:"hover"},{default:o(()=>[S((m(),c(u,{data:t.distributionHistories,stripe:""},{default:o(()=>[e(n,{prop:"id",label:t.$t("distribution.field.id"),"class-name":"text-center",width:"350px"},{default:o(i=>[a("span",B,s(i.row.id),1),a("span",I,[e(p,{content:i.row.id},null,8,["content"])])]),_:1},8,["label"]),e(n,{prop:"id",label:t.$t("distribution.field.userId"),"class-name":"text-center",width:"350px"},{default:o(i=>[a("span",T,s(i.row.user_id),1),a("span",z,[e(p,{content:i.row.user_id},null,8,["content"])])]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.price"),width:"100px"},{default:o(i=>[a("span",A,s(t.getPriceString({value:i.row?.price})),1)]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.reward"),width:"100px"},{default:o(i=>[a("span",G,s(t.getPriceString({value:i.row?.reward})),1)]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.percentage"),width:"120px"},{default:o(i=>[a("span",N,s(i.row.percentage)+"%",1)]),_:1},8,["label"]),e(n,{label:t.$t("distribution.field.createdAt"),width:"200px"},{default:o(i=>[a("span",V,s(t.$dayjs.format(i.row.created_at)),1)]),_:1},8,["label"])]),_:1},8,["data"])),[[f,t.loading]])]),_:1})]),_:1})]),_:1}),e(d,null,{default:o(()=>[e(l,{span:10,offset:14},{default:o(()=>[a("div",j,[e(h,{"current-page":t.page,"page-size":t.limit,total:t.total,onChange:t.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}const Dt=y(k,[["render",K],["__scopeId","data-v-74b9e778"]]);export{Dt as default};
@@ -1 +1 @@
1
- import{I as A,O as R,h as B,J as V,M as W,z as I,A as U,S as P,T as _,D}from"./index-CUMrI3uM.js";import{d as b,w as H,q as v,H as x,R as M,u as y,x as g,y as N,V as O,z as q,Q as $,b as G,c as S,S as Z,i as X,C as h}from"./vendor-vue-NSDaktjZ.js";import{c as L}from"./vendor-dayjs-v0j1UNZp.js";const J=A({size:{type:[Number,String],values:B,default:"",validator:e=>W(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:R},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:V(String),default:"cover"}}),K={error:e=>e instanceof Event},Q=b({name:"ElAvatar"}),Y=b({...Q,props:J,emits:K,setup(e,{emit:a}){const s=e,o=U("avatar"),r=G(!1),l=S(()=>{const{size:t,icon:n,shape:c}=s,i=[o.b()];return Z(t)&&i.push(o.m(t)),n&&i.push(o.m("icon")),c&&i.push(o.m(c)),i}),f=S(()=>{const{size:t}=s;return W(t)?o.cssVarBlock({size:_(t)||""}):void 0}),d=S(()=>({objectFit:s.fit}));H(()=>s.src,()=>r.value=!1);function k(t){r.value=!0,a("error",t)}return(t,n)=>(v(),x("span",{class:$(y(l)),style:M(y(f))},[(t.src||t.srcSet)&&!r.value?(v(),x("img",{key:0,src:t.src,alt:t.alt,srcset:t.srcSet,style:M(y(d)),onError:k},null,44,["src","alt","srcset"])):t.icon?(v(),g(y(P),{key:1},{default:N(()=>[(v(),g(O(t.icon)))]),_:1})):q(t.$slots,"default",{key:2})],6))}});var ee=I(Y,[["__file","avatar.vue"]]);const ue=D(ee);function fe(e){const a=Math.floor(e)%60;e=Math.floor(e/60);const s=e%60,o=s<10?`0${s}`:s,r=a<10?`0${a}`:a;return o+":"+r}var C={exports:{}},te=C.exports,T;function oe(){return T||(T=1,(function(e,a){(function(s,o){o()})(te,function(){function s(t,n){return typeof n>"u"?n={autoBom:!1}:typeof n!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function o(t,n,c){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){k(i.response,n,c)},i.onerror=function(){console.error("could not download file")},i.send()}function r(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return 200<=n.status&&299>=n.status}function l(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof L=="object"&&L.global===L?L:void 0,d=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),k=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!d?function(t,n,c){var i=f.URL||f.webkitURL,u=document.createElement("a");n=n||t.name||"download",u.download=n,u.rel="noopener",typeof t=="string"?(u.href=t,u.origin===location.origin?l(u):r(u.href)?o(t,n,c):l(u,u.target="_blank")):(u.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(u.href)},4e4),setTimeout(function(){l(u)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,c){if(n=n||t.name||"download",typeof t!="string")navigator.msSaveOrOpenBlob(s(t,c),n);else if(r(t))o(t,n,c);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){l(i)})}}:function(t,n,c,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return o(t,n,c);var u=t.type==="application/octet-stream",j=/constructor/i.test(f.HTMLElement)||f.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||u&&j||d)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var p=m.result;p=w?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=p:location=p,i=null},m.readAsDataURL(t)}else{var E=f.URL||f.webkitURL,F=E.createObjectURL(t);i?i.location=F:location.href=F,i=null,setTimeout(function(){E.revokeObjectURL(F)},4e4)}});f.saveAs=k.saveAs=k,e.exports=k})})(C)),C.exports}var de=oe();const he="/assets/disk-XFRmVAfp.png";var ne={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function ie(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function re(e,a,s){var o=typeof a.fill=="string"?[a.fill]:a.fill||[],r=[],l=a.theme||s.theme;switch(l){case"outline":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push("none"),r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push("none");break;case"filled":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push("#FFF"),r.push("#FFF");break;case"two-tone":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[1]=="string"?o[1]:s.colors.twoTone.twoTone),r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[1]=="string"?o[1]:s.colors.twoTone.twoTone);break;case"multi-color":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[1]=="string"?o[1]:s.colors.multiColor.outFillColor),r.push(typeof o[2]=="string"?o[2]:s.colors.multiColor.innerStrokeColor),r.push(typeof o[3]=="string"?o[3]:s.colors.multiColor.innerFillColor);break}return{size:a.size||s.size,strokeWidth:a.strokeWidth||s.strokeWidth,strokeLinecap:a.strokeLinecap||s.strokeLinecap,strokeLinejoin:a.strokeLinejoin||s.strokeLinejoin,colors:r,id:e}}var se=Symbol("icon-context");function z(e,a,s){var o={name:"icon-"+e,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(l){var f=ie(),d=X(se,ne);return function(){var k=l.size,t=l.strokeWidth,n=l.strokeLinecap,c=l.strokeLinejoin,i=l.theme,u=l.fill,j=l.spin,w=re(f,{size:k,strokeWidth:t,strokeLinecap:n,strokeLinejoin:c,theme:i,fill:u},d),m=[d.prefix+"-icon"];return m.push(d.prefix+"-icon-"+e),a&&d.rtl&&m.push(d.prefix+"-icon-rtl"),j&&m.push(d.prefix+"-icon-spin"),h("span",{class:m.join(" ")},[s(w)])}}};return o}const ke=z("pause-one",!1,function(e){return h("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[h("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M19 18V30",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M29 18V30",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),me=z("play",!0,function(e){return h("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[h("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M20 24V17.0718L26 20.5359L32 24L26 27.4641L20 30.9282V24Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),pe=z("volume-small",!0,function(e){return h("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[h("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),ve=b({__name:"IconPark",props:{icon:{type:[Object,Function]},theme:{},size:{},spin:{type:Boolean},fill:{},strokeLinecap:{},strokeLinejoin:{},strokeWidth:{}},setup(e){return(a,s)=>(v(),g(O(e.icon),{theme:e.theme,size:e.size,spin:e.spin,fill:e.fill,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,"stroke-width":e.strokeWidth},null,8,["theme","size","spin","fill","stroke-linecap","stroke-linejoin","stroke-width"]))}});export{ue as E,de as F,he as O,ke as P,pe as V,ve as _,me as a,fe as u};
1
+ import{K as A,Q as R,h as B,L as V,O,D as U,E as I,X as P,Y as _,F as D}from"./index-RKA7vcxG.js";import{d as E,w as H,q as v,H as x,R as W,u as y,x as g,y as N,V as T,z as q,Q as $,b as G,c as S,S as X,i as Z,C as h}from"./vendor-vue-NSDaktjZ.js";import{c as L}from"./vendor-dayjs-v0j1UNZp.js";const K=A({size:{type:[Number,String],values:B,default:"",validator:e=>O(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:R},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:V(String),default:"cover"}}),Q={error:e=>e instanceof Event},Y=E({name:"ElAvatar"}),J=E({...Y,props:K,emits:Q,setup(e,{emit:a}){const s=e,o=I("avatar"),r=G(!1),l=S(()=>{const{size:t,icon:n,shape:c}=s,i=[o.b()];return X(t)&&i.push(o.m(t)),n&&i.push(o.m("icon")),c&&i.push(o.m(c)),i}),f=S(()=>{const{size:t}=s;return O(t)?o.cssVarBlock({size:_(t)||""}):void 0}),d=S(()=>({objectFit:s.fit}));H(()=>s.src,()=>r.value=!1);function k(t){r.value=!0,a("error",t)}return(t,n)=>(v(),x("span",{class:$(y(l)),style:W(y(f))},[(t.src||t.srcSet)&&!r.value?(v(),x("img",{key:0,src:t.src,alt:t.alt,srcset:t.srcSet,style:W(y(d)),onError:k},null,44,["src","alt","srcset"])):t.icon?(v(),g(y(P),{key:1},{default:N(()=>[(v(),g(T(t.icon)))]),_:1})):q(t.$slots,"default",{key:2})],6))}});var ee=U(J,[["__file","avatar.vue"]]);const ue=D(ee);function fe(e){const a=Math.floor(e)%60;e=Math.floor(e/60);const s=e%60,o=s<10?`0${s}`:s,r=a<10?`0${a}`:a;return o+":"+r}var C={exports:{}},te=C.exports,M;function oe(){return M||(M=1,(function(e,a){(function(s,o){o()})(te,function(){function s(t,n){return typeof n>"u"?n={autoBom:!1}:typeof n!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function o(t,n,c){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){k(i.response,n,c)},i.onerror=function(){console.error("could not download file")},i.send()}function r(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return 200<=n.status&&299>=n.status}function l(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var f=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof L=="object"&&L.global===L?L:void 0,d=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),k=f.saveAs||(typeof window!="object"||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!d?function(t,n,c){var i=f.URL||f.webkitURL,u=document.createElement("a");n=n||t.name||"download",u.download=n,u.rel="noopener",typeof t=="string"?(u.href=t,u.origin===location.origin?l(u):r(u.href)?o(t,n,c):l(u,u.target="_blank")):(u.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(u.href)},4e4),setTimeout(function(){l(u)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,c){if(n=n||t.name||"download",typeof t!="string")navigator.msSaveOrOpenBlob(s(t,c),n);else if(r(t))o(t,n,c);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){l(i)})}}:function(t,n,c,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return o(t,n,c);var u=t.type==="application/octet-stream",j=/constructor/i.test(f.HTMLElement)||f.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||u&&j||d)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var p=m.result;p=w?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=p:location=p,i=null},m.readAsDataURL(t)}else{var z=f.URL||f.webkitURL,F=z.createObjectURL(t);i?i.location=F:location.href=F,i=null,setTimeout(function(){z.revokeObjectURL(F)},4e4)}});f.saveAs=k.saveAs=k,e.exports=k})})(C)),C.exports}var de=oe();const he="/assets/disk-XFRmVAfp.png";var ne={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function ie(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function re(e,a,s){var o=typeof a.fill=="string"?[a.fill]:a.fill||[],r=[],l=a.theme||s.theme;switch(l){case"outline":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push("none"),r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push("none");break;case"filled":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push("#FFF"),r.push("#FFF");break;case"two-tone":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[1]=="string"?o[1]:s.colors.twoTone.twoTone),r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[1]=="string"?o[1]:s.colors.twoTone.twoTone);break;case"multi-color":r.push(typeof o[0]=="string"?o[0]:"currentColor"),r.push(typeof o[1]=="string"?o[1]:s.colors.multiColor.outFillColor),r.push(typeof o[2]=="string"?o[2]:s.colors.multiColor.innerStrokeColor),r.push(typeof o[3]=="string"?o[3]:s.colors.multiColor.innerFillColor);break}return{size:a.size||s.size,strokeWidth:a.strokeWidth||s.strokeWidth,strokeLinecap:a.strokeLinecap||s.strokeLinecap,strokeLinejoin:a.strokeLinejoin||s.strokeLinejoin,colors:r,id:e}}var se=Symbol("icon-context");function b(e,a,s){var o={name:"icon-"+e,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(l){var f=ie(),d=Z(se,ne);return function(){var k=l.size,t=l.strokeWidth,n=l.strokeLinecap,c=l.strokeLinejoin,i=l.theme,u=l.fill,j=l.spin,w=re(f,{size:k,strokeWidth:t,strokeLinecap:n,strokeLinejoin:c,theme:i,fill:u},d),m=[d.prefix+"-icon"];return m.push(d.prefix+"-icon-"+e),a&&d.rtl&&m.push(d.prefix+"-icon-rtl"),j&&m.push(d.prefix+"-icon-spin"),h("span",{class:m.join(" ")},[s(w)])}}};return o}const ke=b("pause-one",!1,function(e){return h("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[h("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M19 18V30",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M29 18V30",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),me=b("play",!0,function(e){return h("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[h("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M20 24V17.0718L26 20.5359L32 24L26 27.4641L20 30.9282V24Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),pe=b("volume-small",!0,function(e){return h("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[h("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),h("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),ve=E({__name:"IconPark",props:{icon:{type:[Object,Function]},theme:{},size:{},spin:{type:Boolean},fill:{},strokeLinecap:{},strokeLinejoin:{},strokeWidth:{}},setup(e){return(a,s)=>(v(),g(T(e.icon),{theme:e.theme,size:e.size,spin:e.spin,fill:e.fill,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,"stroke-width":e.strokeWidth},null,8,["theme","size","spin","fill","stroke-linecap","stroke-linejoin","stroke-width"]))}});export{ue as E,de as F,he as O,ke as P,pe as V,ve as _,me as a,fe as u};
@@ -1 +1 @@
1
- import{F as m}from"./index.es-PxkVTVul.js";import{E as d}from"./index-NhMzhO2I.js";import{d as u,H as r,E as t,G as s,L as a,C as n,M as f,J as g,D as l,q as i}from"./vendor-vue-NSDaktjZ.js";import{E as v}from"./index-CUMrI3uM.js";const h=u({name:"ImagePreview",components:{FontAwesomeIcon:m,ElProgress:d},props:{url:{type:String,required:!0},name:{type:String,required:!0},percentage:{type:Number,required:!1,default:void 0},closable:{type:Boolean,required:!1,default:!0}},emits:["remove"]}),b={class:"image w-[50px] h-[50px] relative rounded-[var(--el-border-radius-base)] overflow-hidden shadow-sm bg-[var(--el-fill-color-lighter)]"},w=["src","alt"],x={class:"overlay absolute inset-0 bg-[var(--el-mask-color)] backdrop-blur-[1px]"},_={key:0,class:"close absolute cursor-pointer top-[4px] right-[4px] bg-[rgba(0,0,0,0.65)] text-white w-[16px] h-[16px] rounded-full flex text-[10px] text-center items-center justify-center hover:bg-[rgba(0,0,0,0.8)]"};function y(e,o,k,$,q,C){const c=l("el-progress"),p=l("font-awesome-icon");return i(),r("div",b,[t("img",{class:"w-full h-full object-cover",src:e.url,alt:e.name},null,8,w),s(t("div",x,null,512),[[a,e.percentage&&e.percentage<100]]),s(n(c,{type:"circle","stroke-width":4,percentage:e.percentage,width:34,class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[34px] h-[34px] z-[10] m-auto text-[12px]"},null,8,["percentage"]),[[a,e.percentage&&e.percentage<100]]),e.closable?(i(),r("div",_,[n(p,{icon:"fa-solid fa-xmark",class:"icon icon-close",onClick:o[0]||(o[0]=f(E=>e.$emit("remove"),["stop"]))})])):g("",!0)])}const S=v(h,[["render",y]]);export{S as I};
1
+ import{F as m}from"./index.es-Bt64eLCe.js";import{E as d}from"./index-B3G8wlqd.js";import{d as u,H as r,E as t,G as s,L as a,C as n,M as f,J as g,D as l,q as i}from"./vendor-vue-NSDaktjZ.js";import{G as v}from"./index-RKA7vcxG.js";const h=u({name:"ImagePreview",components:{FontAwesomeIcon:m,ElProgress:d},props:{url:{type:String,required:!0},name:{type:String,required:!0},percentage:{type:Number,required:!1,default:void 0},closable:{type:Boolean,required:!1,default:!0}},emits:["remove"]}),b={class:"image w-[50px] h-[50px] relative rounded-[var(--el-border-radius-base)] overflow-hidden shadow-sm bg-[var(--el-fill-color-lighter)]"},w=["src","alt"],x={class:"overlay absolute inset-0 bg-[var(--el-mask-color)] backdrop-blur-[1px]"},_={key:0,class:"close absolute cursor-pointer top-[4px] right-[4px] bg-[rgba(0,0,0,0.65)] text-white w-[16px] h-[16px] rounded-full flex text-[10px] text-center items-center justify-center hover:bg-[rgba(0,0,0,0.8)]"};function y(e,o,k,$,q,C){const c=l("el-progress"),p=l("font-awesome-icon");return i(),r("div",b,[t("img",{class:"w-full h-full object-cover",src:e.url,alt:e.name},null,8,w),s(t("div",x,null,512),[[a,e.percentage&&e.percentage<100]]),s(n(c,{type:"circle","stroke-width":4,percentage:e.percentage,width:34,class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[34px] h-[34px] z-[10] m-auto text-[12px]"},null,8,["percentage"]),[[a,e.percentage&&e.percentage<100]]),e.closable?(i(),r("div",_,[n(p,{icon:"fa-solid fa-xmark",class:"icon icon-close",onClick:o[0]||(o[0]=f(B=>e.$emit("remove"),["stop"]))})])):g("",!0)])}const S=v(h,[["render",y]]);export{S as I};
@@ -1 +1 @@
1
- import{E as i}from"./index-LHAPoElI.js";import{d as m,H as a,J as p,x as l,y as d,I as u,F as f,D as g,q as s}from"./vendor-vue-NSDaktjZ.js";import{E as y}from"./index-CUMrI3uM.js";const w=m({name:"ImageWrapper",components:{ElButton:i},props:{src:{type:String,required:!0},rawSrc:{type:String,required:!1,default:void 0}},methods:{onOpenUrl(e){window.open(e,"_blank")},onReload(e){const r=e.target,t=new URL(r.src),o=t.searchParams.get("retry");if(!o)t.searchParams.set("retry","1");else if(parseInt(o)<2)t.searchParams.set("retry",(parseInt(o)+1).toString());else return;r.src=t.toString()}}}),I={class:"image-wrapper"},S=["src"];function _(e,r,t,o,k,$){const c=g("el-button");return s(),a("div",I,[e.src?(s(),a("img",{key:0,src:e.src,class:"image",onError:r[0]||(r[0]=n=>e.onReload(n))},null,40,S)):p("",!0),e.rawSrc?(s(),l(c,{key:1,type:"info",round:"",class:"btn-raw",onClick:r[1]||(r[1]=n=>e.onOpenUrl(e.rawSrc))},{default:d(()=>[u(f(e.$t("common.button.seeRawImage")),1)]),_:1})):p("",!0)])}const E=y(w,[["render",_],["__scopeId","data-v-4deff0d6"]]);export{E as I};
1
+ import{E as i}from"./index-DCMJXdAH.js";import{d as m,H as a,J as p,x as l,y as d,I as u,F as f,D as g,q as s}from"./vendor-vue-NSDaktjZ.js";import{G as y}from"./index-RKA7vcxG.js";const w=m({name:"ImageWrapper",components:{ElButton:i},props:{src:{type:String,required:!0},rawSrc:{type:String,required:!1,default:void 0}},methods:{onOpenUrl(e){window.open(e,"_blank")},onReload(e){const r=e.target,t=new URL(r.src),o=t.searchParams.get("retry");if(!o)t.searchParams.set("retry","1");else if(parseInt(o)<2)t.searchParams.set("retry",(parseInt(o)+1).toString());else return;r.src=t.toString()}}}),I={class:"image-wrapper"},S=["src"];function _(e,r,t,o,k,$){const c=g("el-button");return s(),a("div",I,[e.src?(s(),a("img",{key:0,src:e.src,class:"image",onError:r[0]||(r[0]=n=>e.onReload(n))},null,40,S)):p("",!0),e.rawSrc?(s(),l(c,{key:1,type:"info",round:"",class:"btn-raw",onClick:r[1]||(r[1]=n=>e.onOpenUrl(e.rawSrc))},{default:d(()=>[u(f(e.$t("common.button.seeRawImage")),1)]),_:1})):p("",!0)])}const h=y(w,[["render",_],["__scopeId","data-v-4deff0d6"]]);export{h as I};
@@ -1 +1 @@
1
- import{b8 as O,bd as $,E as v,be as N,b9 as S,ba as T,bb as L,aa as U,bf as D,bg as R,b7 as P}from"./index-CUMrI3uM.js";import{F as b}from"./index.es-PxkVTVul.js";import{E as B,a as A}from"./index-BP5BsZj2.js";import{E as F}from"./index-yn55RwAP.js";import{E as k}from"./index-Iywsl7Po.js";import{d as E,x as f,y as n,C as o,I as _,F as m,J as g,E as s,D as t,q as r,H as h,R as H,O as V,N as q,Q as J}from"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./typescript-DeTjW0DO.js";import"./index-CP1XocLG.js";import"./index-LJD4KxHk.js";import"./index-DceoqtRa.js";import"./index-BuyEbX8F.js";import"./index-VJ8AehQ6.js";import"./dropdown-CceaRCWn.js";import"./debounce-UL-c7F9u.js";import"./index-CqUYE69O.js";const M=E({name:"HelpEntry",components:{ElImage:k,ElDialog:O,ElPopover:F,ElMenu:A,ElMenuItem:B,FontAwesomeIcon:b},props:{visible:{type:Boolean,default:!0}},emits:["close"],computed:{site(){return this.$store.state.site}},methods:{onJoin(){window.open(this.$store.state.site?.features?.support?.discord?.url,"_blank")},onProfit(){this.$router.push({name:$})}}}),X={class:"flex"},z={class:"flex-1 text-center"};function j(e,i,w,I,y,C){const c=t("font-awesome-icon"),l=t("el-menu-item"),p=t("el-image"),d=t("el-popover"),a=t("el-menu"),u=t("el-dialog");return r(),f(u,{"model-value":e.visible,width:200,class:"text-center",onClose:i[0]||(i[0]=x=>e.$emit("close"))},{default:n(()=>[o(a,{collapse:!1,class:"menu"},{default:n(()=>[e.site?.features?.support?.discord?.enabled?(r(),f(l,{key:0,index:"1",onClick:e.onJoin},{title:n(()=>[_(m(e.$t("common.message.joinDiscord")),1)]),default:n(()=>[o(c,{icon:"fa-brands fa-discord",class:"mr-2"})]),_:1},8,["onClick"])):g("",!0),o(d,{width:350,trigger:"hover"},{reference:n(()=>[e.site?.features?.support?.wechat?.enabled?(r(),f(l,{key:0,index:"2"},{title:n(()=>[_(m(e.$t("common.message.addWeChat")),1)]),default:n(()=>[o(c,{icon:"fa-brands fa-weixin",class:"mr-2"})]),_:1})):g("",!0)]),default:n(()=>[s("div",X,[s("div",z,[o(p,{src:e.site?.features?.support?.wechat?.qr},null,8,["src"])])])]),_:1})]),_:1})]),_:1},8,["model-value"])}const G=v(M,[["render",j],["__scopeId","data-v-0fce633f"]]),Q=E({name:"ProfileIndex",components:{ElImage:k,HelpDialog:G,FontAwesomeIcon:b},data(){return{operating:{locale:!1,dark:!1,help:!1}}},computed:{user(){return this.$store.getters.user},showSupport(){return this.$store?.state?.site?.features?.support?.enabled&&(this.$store?.state?.site?.features?.support?.discord?.enabled||this.$store?.state?.site?.features?.support?.wechat?.enabled)},showSite(){return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id)},links(){return[{key:"profile",text:this.$t("console.menu.userProfile"),href:`${R()}/user/profile`,icon:"fa-regular fa-user"},{key:"application-list",text:this.$t("console.menu.applicationList"),name:T,icon:"fa-solid fa-cube"},{key:"order-list",text:this.$t("console.menu.orderList"),name:L,icon:"fa-solid fa-store"},{key:"usage-list",text:this.$t("console.menu.usageList"),name:U,icon:"fa-solid fa-rotate-left"},{key:"distribution-index",text:this.$t("console.menu.distributionIndex"),name:$,icon:"fa-solid fa-coins"},...this.showSite?[{key:"site-index",text:this.$t("common.nav.site"),name:D,icon:"fa-solid fa-gear"}]:[],{key:"dark-setting",text:this.$t("common.nav.darkMode"),icon:"fa-solid fa-moon",callback:()=>{this.operating.dark=!0}},{key:"locale-setting",text:this.$t("common.nav.locale"),icon:"fa-solid fa-language",callback:()=>{this.operating.locale=!0}},{key:"developerPlatform",text:this.$t("console.menu.developerPlatform"),href:P(),icon:"fa-solid fa-laptop-code"},...this.showSupport?[{key:"support",text:this.$t("common.nav.support"),callback:()=>{this.operating.help=!0},icon:"fa-solid fa-question"}]:[],{key:"logout",text:this.$t("common.nav.logOut"),icon:"fa-solid fa-arrow-right-from-bracket",callback:async()=>{await this.$store.dispatch("logout")}}]}},methods:{onHome(){this.$router.push({name:S})},onNavigate(e){e.name?this.$router.push({name:e.name}):e.href?window.open(N(e.href),"_blank"):e.callback&&e.callback()}}}),W={class:"profile"},K={class:"info"},Y={class:"links"},Z=["onClick"],ee={class:"icon"},te={class:"text"},oe={class:"suffix"};function se(e,i,w,I,y,C){const c=t("el-image"),l=t("font-awesome-icon"),p=t("locale-selector"),d=t("help-dialog");return r(),h("div",W,[s("div",K,[o(c,{src:e.user.avatar,fit:"cover",class:"avatar"},null,8,["src"]),s("h2",null,m(e.user.username),1),s("div",{style:H({backgroundImage:"url("+e.user.avatar+")"}),class:"background"},null,4)]),s("div",Y,[(r(!0),h(V,null,q(e.links,(a,u)=>(r(),h("a",{key:u,class:J({link:!0,active:e.$route.name===a.name}),onClick:x=>e.onNavigate(a)},[s("span",ee,[o(l,{icon:a.icon,class:"text-sm"},null,8,["icon"])]),s("span",te,m(a.text),1),s("span",oe,[o(l,{icon:"fa-solid fa-chevron-right",class:"text-sm"})])],10,Z))),128))]),o(p,{visible:e.operating.locale==!0,onClose:i[0]||(i[0]=a=>e.operating.locale=!1)},null,8,["visible"]),o(d,{visible:e.operating.help==!0,onClose:i[1]||(i[1]=a=>e.operating.help=!1)},null,8,["visible"])])}const Ee=v(Q,[["render",se],["__scopeId","data-v-bf1d72a9"]]);export{Ee as default};
1
+ import{bm as O,br as $,G as v,bs as N,bn as S,bo as T,bp as L,ac as U,bt as D,bu as R,bl as P}from"./index-RKA7vcxG.js";import{F as b}from"./index.es-Bt64eLCe.js";import{E as B,a as A}from"./index-B36A8oMR.js";import{E as F}from"./index-CgASjiIt.js";import{E as k}from"./index-94KpVqIp.js";import{d as E,x as f,y as n,C as o,I as _,F as m,J as g,E as s,D as t,q as r,H as h,R as H,O as V,N as q,Q as J}from"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./typescript-CZIRg0iX.js";import"./index-BmKJdKX7.js";import"./index-DXVZYDaN.js";import"./index-DbixaZn4.js";import"./index-BuyEbX8F.js";import"./index-DvRp2u5y.js";import"./dropdown-BFrF5bX-.js";import"./debounce-4A6U1So0.js";import"./index-CH624IiN.js";const M=E({name:"HelpEntry",components:{ElImage:k,ElDialog:O,ElPopover:F,ElMenu:A,ElMenuItem:B,FontAwesomeIcon:b},props:{visible:{type:Boolean,default:!0}},emits:["close"],computed:{site(){return this.$store.state.site}},methods:{onJoin(){window.open(this.$store.state.site?.features?.support?.discord?.url,"_blank")},onProfit(){this.$router.push({name:$})}}}),X={class:"flex"},z={class:"flex-1 text-center"};function G(e,i,w,I,y,C){const c=t("font-awesome-icon"),l=t("el-menu-item"),p=t("el-image"),d=t("el-popover"),a=t("el-menu"),u=t("el-dialog");return r(),f(u,{"model-value":e.visible,width:200,class:"text-center",onClose:i[0]||(i[0]=x=>e.$emit("close"))},{default:n(()=>[o(a,{collapse:!1,class:"menu"},{default:n(()=>[e.site?.features?.support?.discord?.enabled?(r(),f(l,{key:0,index:"1",onClick:e.onJoin},{title:n(()=>[_(m(e.$t("common.message.joinDiscord")),1)]),default:n(()=>[o(c,{icon:"fa-brands fa-discord",class:"mr-2"})]),_:1},8,["onClick"])):g("",!0),o(d,{width:350,trigger:"hover"},{reference:n(()=>[e.site?.features?.support?.wechat?.enabled?(r(),f(l,{key:0,index:"2"},{title:n(()=>[_(m(e.$t("common.message.addWeChat")),1)]),default:n(()=>[o(c,{icon:"fa-brands fa-weixin",class:"mr-2"})]),_:1})):g("",!0)]),default:n(()=>[s("div",X,[s("div",z,[o(p,{src:e.site?.features?.support?.wechat?.qr},null,8,["src"])])])]),_:1})]),_:1})]),_:1},8,["model-value"])}const j=v(M,[["render",G],["__scopeId","data-v-0fce633f"]]),Q=E({name:"ProfileIndex",components:{ElImage:k,HelpDialog:j,FontAwesomeIcon:b},data(){return{operating:{locale:!1,dark:!1,help:!1}}},computed:{user(){return this.$store.getters.user},showSupport(){return this.$store?.state?.site?.features?.support?.enabled&&(this.$store?.state?.site?.features?.support?.discord?.enabled||this.$store?.state?.site?.features?.support?.wechat?.enabled)},showSite(){return this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id)},links(){return[{key:"profile",text:this.$t("console.menu.userProfile"),href:`${R()}/user/profile`,icon:"fa-regular fa-user"},{key:"application-list",text:this.$t("console.menu.applicationList"),name:T,icon:"fa-solid fa-cube"},{key:"order-list",text:this.$t("console.menu.orderList"),name:L,icon:"fa-solid fa-store"},{key:"usage-list",text:this.$t("console.menu.usageList"),name:U,icon:"fa-solid fa-rotate-left"},{key:"distribution-index",text:this.$t("console.menu.distributionIndex"),name:$,icon:"fa-solid fa-coins"},...this.showSite?[{key:"site-index",text:this.$t("common.nav.site"),name:D,icon:"fa-solid fa-gear"}]:[],{key:"dark-setting",text:this.$t("common.nav.darkMode"),icon:"fa-solid fa-moon",callback:()=>{this.operating.dark=!0}},{key:"locale-setting",text:this.$t("common.nav.locale"),icon:"fa-solid fa-language",callback:()=>{this.operating.locale=!0}},{key:"developerPlatform",text:this.$t("console.menu.developerPlatform"),href:P(),icon:"fa-solid fa-laptop-code"},...this.showSupport?[{key:"support",text:this.$t("common.nav.support"),callback:()=>{this.operating.help=!0},icon:"fa-solid fa-question"}]:[],{key:"logout",text:this.$t("common.nav.logOut"),icon:"fa-solid fa-arrow-right-from-bracket",callback:async()=>{await this.$store.dispatch("logout")}}]}},methods:{onHome(){this.$router.push({name:S})},onNavigate(e){e.name?this.$router.push({name:e.name}):e.href?window.open(N(e.href),"_blank"):e.callback&&e.callback()}}}),W={class:"profile"},K={class:"info"},Y={class:"links"},Z=["onClick"],ee={class:"icon"},te={class:"text"},oe={class:"suffix"};function se(e,i,w,I,y,C){const c=t("el-image"),l=t("font-awesome-icon"),p=t("locale-selector"),d=t("help-dialog");return r(),h("div",W,[s("div",K,[o(c,{src:e.user.avatar,fit:"cover",class:"avatar"},null,8,["src"]),s("h2",null,m(e.user.username),1),s("div",{style:H({backgroundImage:"url("+e.user.avatar+")"}),class:"background"},null,4)]),s("div",Y,[(r(!0),h(V,null,q(e.links,(a,u)=>(r(),h("a",{key:u,class:J({link:!0,active:e.$route.name===a.name}),onClick:x=>e.onNavigate(a)},[s("span",ee,[o(l,{icon:a.icon,class:"text-sm"},null,8,["icon"])]),s("span",te,m(a.text),1),s("span",oe,[o(l,{icon:"fa-solid fa-chevron-right",class:"text-sm"})])],10,Z))),128))]),o(p,{visible:e.operating.locale==!0,onClose:i[0]||(i[0]=a=>e.operating.locale=!1)},null,8,["visible"]),o(d,{visible:e.operating.help==!0,onClose:i[1]||(i[1]=a=>e.operating.help=!1)},null,8,["visible"])])}const Ee=v(Q,[["render",se],["__scopeId","data-v-bf1d72a9"]]);export{Ee as default};
@@ -0,0 +1 @@
1
+ import{F as C}from"./index.es-Bt64eLCe.js";import{E as T}from"./index-DCMJXdAH.js";import{E as M}from"./index-CqopKWmx.js";import{d as v,H as r,E as c,z as L,C as t,y as d,D as o,q as s,F as l,O as I,N as S,x as $,I as f,J as m,M as O,Q as U}from"./vendor-vue-NSDaktjZ.js";import{G as w,bl as j,cr as B,b4 as F,S as D,cs as N}from"./index-RKA7vcxG.js";import{a as q,b as z}from"./wan-DKq-jYOo.js";import{E as R,a as G}from"./index-D_6Q6_hh.js";import{p as W}from"./pasteUploadMixin-BurWbGNQ.js";import{I as P,S as H,l as J}from"./pagination-Bsrwz5HQ.js";import{I as K}from"./ImagePreview-oKVovOna.js";import{E as Q}from"./index-CB3VcJIN.js";import{E as V}from"./index-72lWSKXT.js";import{E as X}from"./index-DSQbC5ag.js";import{C as Y}from"./Consumption-DezlNyb8.js";import{a as Z}from"./price-C4efiJpu.js";import{b as x}from"./errorCode-Cqj9Td_Z.js";import{C as ee}from"./CopyToClipboard-DEQ2vUBW.js";import{V as te}from"./VideoPlayer-6MQ9sdIK.js";import{E as oe}from"./index-DXVZYDaN.js";import{E as se}from"./index-B92EsGM7.js";import{E as ne}from"./index-94KpVqIp.js";import{B as ae}from"./BotPlaceholder-CVNP81Ij.js";import{N as le}from"./NoTasks-B-Z39N58.js";import"./use-form-item-Mz_lqNZY.js";import"./index-BuyEbX8F.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-CJkudRsQ.js";import"./typescript-CZIRg0iX.js";import"./index-DbixaZn4.js";import"./strings-beZM2Y-f.js";import"./isEqual-CxrfphK6.js";import"./_Uint8Array-yXrjWRgc.js";import"./castArray-BriRWb3C.js";import"./debounce-4A6U1So0.js";import"./_baseIteratee-VgBkxc5c.js";import"./index-DvRp2u5y.js";import"./index-B3G8wlqd.js";import"./_baseClone-BVstWSsi.js";import"./_initCloneObject-ClZfVK4X.js";import"./index-CH624IiN.js";import"./vue-plyr-BO2nlN4c.js";import"./index-C8DB3jho.js";const re=v({name:"LayoutWan",components:{ElDrawer:M,ElButton:T,FontAwesomeIcon:C},data(){return{drawer:!1}}}),ie={class:"main flex flex-row flex-1"},ce={class:"config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]"},de={class:"result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]"};function ue(e,n,h,_,b,k){const u=o("font-awesome-icon"),p=o("el-button"),a=o("el-drawer");return s(),r("div",ie,[c("div",ce,[L(e.$slots,"config",{},void 0,!0)]),c("div",de,[L(e.$slots,"result",{},void 0,!0)]),t(p,{circle:"",class:"menu",onClick:n[0]||(n[0]=g=>e.drawer=!0)},{default:d(()=>[t(u,{icon:"fa-solid fa-magic"})]),_:1}),t(a,{modelValue:e.drawer,"onUpdate:modelValue":n[1]||(n[1]=g=>e.drawer=g),direction:"ltr","with-header":!1,size:"340px"},{default:d(()=>[L(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}const pe=w(re,[["render",ue],["__scopeId","data-v-98681d9b"]]),me=v({name:"ModelSelector",components:{ElSelect:G,ElOption:R},data(){return{}},computed:{options(){return[{value:"wan2.6-t2v",label:this.$t("wan.button.modelT2v")},{value:"wan2.6-i2v",label:this.$t("wan.button.modelI2v")},{value:"wan2.6-i2v-flash",label:this.$t("wan.button.modelI2vFlash")},{value:"wan2.6-r2v",label:this.$t("wan.button.modelR2v")}]},value:{get(){return this.$store.state.wan?.config?.model},set(e){this.$store.commit("wan/setConfig",{...this.$store.state.wan?.config,model:e})}}},mounted(){this.value||(this.value=q)}}),fe={class:"field"},he={class:"title font-bold"},_e={class:"float-left"};function ge(e,n,h,_,b,k){const u=o("el-option"),p=o("el-select");return s(),r("div",fe,[c("h2",he,l(e.$t("wan.name.model")),1),t(p,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=a=>e.value=a),class:"value",placeholder:e.$t("wan.placeholder.select"),clearable:""},{default:d(()=>[(s(!0),r(I,null,S(e.options,a=>(s(),$(u,{key:a.value,label:a.label,value:a.value},{default:d(()=>[c("span",_e,l(a.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}const $e=w(me,[["render",ge],["__scopeId","data-v-eb090beb"]]),ve="720p",we=v({name:"ResolutionSelector",components:{ElSelect:G,ElOption:R},computed:{options(){return[{value:"480p",label:this.$t("wan.name.resolution480p")},{value:"720p",label:this.$t("wan.name.resolution720p")},{value:"1080p",label:this.$t("wan.name.resolution1080p")}]},value:{get(){return this.$store.state.wan?.config?.resolution},set(e){this.$store.commit("wan/setConfig",{...this.$store.state.wan?.config,resolution:e})}}},mounted(){this.value||(this.value=ve)}}),be={class:"field"},ke={class:"title font-bold"},ye={class:"float-left"};function Ve(e,n,h,_,b,k){const u=o("el-option"),p=o("el-select");return s(),r("div",be,[c("h2",ke,l(e.$t("wan.name.resolution")),1),t(p,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=a=>e.value=a),class:"value",placeholder:e.$t("wan.placeholder.select"),clearable:""},{default:d(()=>[(s(!0),r(I,null,S(e.options,a=>(s(),$(u,{key:a.value,label:a.label,value:a.value},{default:d(()=>[c("span",ye,l(a.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}const Ee=w(we,[["render",Ve],["__scopeId","data-v-3e39f44e"]]),Ie=5,Te=v({name:"DurationSelector",components:{ElSelect:G,ElOption:R},computed:{options(){return[{value:5,label:this.$t("wan.name.duration5s")},{value:10,label:this.$t("wan.name.duration10s")},{value:15,label:this.$t("wan.name.duration15s")}]},value:{get(){return this.$store.state.wan?.config?.duration},set(e){this.$store.commit("wan/setConfig",{...this.$store.state.wan?.config,duration:e})}}},mounted(){this.value||(this.value=Ie)}}),Se={class:"field"},Ue={class:"title font-bold"},Le={class:"float-left"};function Ce(e,n,h,_,b,k){const u=o("el-option"),p=o("el-select");return s(),r("div",Se,[c("h2",Ue,l(e.$t("wan.name.duration")),1),t(p,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=a=>e.value=a),class:"value",placeholder:e.$t("wan.placeholder.select"),clearable:""},{default:d(()=>[(s(!0),r(I,null,S(e.options,a=>(s(),$(u,{key:a.value,label:a.label,value:a.value},{default:d(()=>[c("span",Le,l(a.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}const Re=w(Te,[["render",Ce],["__scopeId","data-v-5f35a2cf"]]),Ge=v({name:"ImageUrlInput",components:{ElUpload:Q,ElButton:T,InfoIcon:P,ImagePreview:K},mixins:[W],data(){return{fileList:[],uploadUrl:j()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e.url).filter(e=>e!==void 0)},value:{get(){return this.$store.state.wan?.config?.image_url},set(){const e=this.urls?.[0];this.$store.commit("wan/setConfig",{...this.$store.state.wan?.config,image_url:e})}}},mounted(){this.value||(this.value=void 0),this.onSetImageUrl()},methods:{onExceed(){V.warning(this.$t("wan.message.uploadImageExceed"))},onError(){V.error(this.$t("wan.message.uploadImageError"))},async onRemove(){V.error(this.$t("wan.message.uploadImageError"))},onSetImageUrl(){const e=this.urls?.[0];this.$store.commit("wan/setConfig",{...this.$store.state.wan?.config,image_url:e})},async onSuccess(){this.onSetImageUrl()}}}),Ae={class:"relative"},De={class:"flex justify-between"},Pe={class:"flex justify-start items-center"},Me={class:"text-sm font-bold"};function Oe(e,n,h,_,b,k){const u=o("info-icon"),p=o("image-preview"),a=o("el-button"),g=o("el-upload");return s(),r("div",Ae,[c("div",De,[c("div",Pe,[c("span",Me,l(e.$t("wan.name.imageUrl")),1),t(u,{content:e.$t("wan.description.imageUrl"),class:"info"},null,8,["content"])])]),t(g,{"file-list":e.fileList,"onUpdate:fileList":n[0]||(n[0]=i=>e.fileList=i),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file","show-file-list":!0,limit:1,multiple:!1,"list-type":"picture",action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{file:d(({file:i})=>[i.url&&i.percentage!==void 0?(s(),$(p,{key:0,url:i.url,name:i.name,percentage:i.percentage,onRemove:y=>e.fileList.splice(e.fileList.indexOf(i),1)},null,8,["url","name","percentage","onRemove"])):m("",!0)]),default:d(()=>[t(a,{size:"small",type:"primary",class:"btn btn-upload",round:""},{default:d(()=>[f(l(e.$t("wan.button.uploadImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])])}const je=w(Ge,[["render",Oe],["__scopeId","data-v-c9ebe1b1"]]),Be="",Fe=v({name:"PromptInput",components:{ElInput:X,InfoIcon:P},computed:{prompt:{get(){return this.$store.state.wan?.config?.prompt},set(e){console.debug("set prompt",e),this.$store.commit("wan/setConfig",{...this.$store.state.wan?.config,prompt:e})}}},mounted(){this.prompt||(this.prompt=Be)}}),Ne={class:"field"},qe={class:"box"},ze={class:"title font-bold"};function We(e,n,h,_,b,k){const u=o("info-icon"),p=o("el-input");return s(),r("div",Ne,[c("div",qe,[c("h2",ze,l(e.$t("wan.name.prompt")),1),t(u,{content:e.$t("wan.description.prompt"),class:"info"},null,8,["content"])]),t(p,{modelValue:e.prompt,"onUpdate:modelValue":n[0]||(n[0]=a=>e.prompt=a),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("wan.placeholder.prompt")},null,8,["modelValue","placeholder"])])}const He=w(Fe,[["render",We],["__scopeId","data-v-45557a2d"]]),Je=v({name:"PresetPanel",components:{ElButton:T,FontAwesomeIcon:C,PromptInput:He,ImageUrlInput:je,ModelSelector:$e,ResolutionSelector:Ee,DurationSelector:Re,Consumption:Y},emits:["generate"],computed:{config(){return this.$store.state.wan?.config},consumption(){return Z(this.config,this.service?.cost)},service(){return this.$store.state.wan?.service},supportsResolution(){const e=this.config?.model;return e==="wan2.6-t2v"||e==="wan2.6-i2v"||e==="wan2.6-i2v-flash"},supportsDuration(){return this.config?.model==="wan2.6-t2v"},supportsImageUrl(){const e=this.config?.model;return e==="wan2.6-i2v"||e==="wan2.6-i2v-flash"}},methods:{onGenerate(){this.$emit("generate")}}}),Ke={class:"flex flex-col h-full"},Qe={class:"flex-1 overflow-y-auto p-5"},Xe={class:"flex flex-col items-center justify-center px-5 pb-5"};function Ye(e,n,h,_,b,k){const u=o("prompt-input"),p=o("model-selector"),a=o("resolution-selector"),g=o("duration-selector"),i=o("image-url-input"),y=o("consumption"),E=o("font-awesome-icon"),A=o("el-button");return s(),r("div",Ke,[c("div",Qe,[t(u,{class:"mb-4"}),t(p,{class:"mb-4"}),e.supportsResolution?(s(),$(a,{key:0,class:"mb-4"})):m("",!0),e.supportsDuration?(s(),$(g,{key:1,class:"mb-4"})):m("",!0),e.supportsImageUrl?(s(),$(i,{key:2,class:"mb-2"})):m("",!0)]),c("div",Xe,[t(y,{value:e.consumption,service:e.service},null,8,["value","service"]),t(A,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:d(()=>[t(E,{icon:"fa-solid fa-magic",class:"mr-2"}),f(" "+l(e.$t("wan.button.generate")),1)]),_:1},8,["onClick"])])])}const Ze=w(Je,[["render",Ye]]),xe=v({name:"TaskPreview",components:{ElImage:ne,CopyToClipboard:ee,FontAwesomeIcon:C,ElAlert:se,VideoPlayer:te,ElTooltip:oe,ElButton:T},props:{modelValue:{type:Object,required:!0}},setup(){return{WAN_LOGO:z}},computed:{application(){return this.$store.state.wan?.application},config(){return this.$store.state.wan?.config}},methods:{onDownload(e){console.debug("on download wan video",e),window.open(e,"_blank")}}}),et={class:"preview"},tt={class:"left"},ot={class:"main"},st={class:"bot"},nt={class:"datetime"},at={class:"info"},lt={key:0,class:"prompt mt-2"},rt={key:0},it={key:1},ct={key:0,class:U({content:!0,failed:!0})},dt={key:0,class:"mb-4"},ut={key:1,class:U({operations:!0,"mt-2":!0})},pt={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-2"},mt={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},ft={key:1,class:"text-[var(--el-text-color-regular)] text-xs mb-0"},ht={key:1,class:U({content:!0})},_t={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},gt={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},$t={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-2"},vt={class:"text-[var(--el-text-color-regular)] text-xs mb-0"},wt={key:2,class:U({content:!0})},bt={class:"text-[var(--el-text-color-regular)] text-xs mb-0"};function kt(e,n,h,_,b,k){const u=o("el-image"),p=o("video-player"),a=o("el-button"),g=o("el-tooltip"),i=o("font-awesome-icon"),y=o("copy-to-clipboard"),E=o("el-alert");return s(),r("div",et,[c("div",tt,[t(u,{src:e.WAN_LOGO,class:"avatar"},null,8,["src"])]),c("div",ot,[c("div",st,[f(l(e.$t("wan.name.wanBot"))+" ",1),c("span",nt,l(e.$dayjs.format(""+new Date(parseFloat((e.modelValue?.created_at||"").toString())*1e3))),1)]),c("div",at,[e.modelValue?.request?.prompt?(s(),r("p",lt,[f(l(e.modelValue?.request?.prompt)+" ",1),e.modelValue?.response?m("",!0):(s(),r("span",rt," - ("+l(e.$t("wan.status.pending"))+") ",1)),e.modelValue?.response?.state==="processing"||e.modelValue?.response?.state==="pending"||e.modelValue?.response?.state==="running"?(s(),r("span",it," - ("+l(e.$t("wan.status.processing"))+") ",1)):m("",!0)])):m("",!0)]),e.modelValue?.response?.success===!0?(s(),r("div",ct,[e.modelValue?.response?.video_url?(s(),r("div",dt,[t(p,{src:e.modelValue?.response?.video_url},null,8,["src"])])):m("",!0),e.modelValue?.response?.video_url?(s(),r("div",ut,[t(g,{class:"box-item",effect:"dark",content:e.$t("wan.message.downloadVideo"),placement:"top-start"},{default:d(()=>[t(a,{type:"info",size:"small",class:"mb-2",onClick:n[0]||(n[0]=O(A=>e.onDownload(e.modelValue?.response?.video_url),["stop"]))},{default:d(()=>[f(l(e.$t("wan.button.download")),1)]),_:1})]),_:1},8,["content"])])):m("",!0),t(E,{closable:!1,class:"mt-2 success"},{default:d(()=>[e.modelValue?.request?.model?(s(),r("p",pt,[t(i,{icon:"fa-solid fa-hashtag",class:"mr-1"}),f(" "+l(e.$t("wan.name.model"))+": "+l(e.modelValue?.request?.model)+" ",1),t(y,{content:e.modelValue?.id},null,8,["content"])])):m("",!0),c("p",mt,[t(i,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+l(e.$t("wan.name.taskId"))+": "+l(e.modelValue?.id)+" ",1),t(y,{content:e.modelValue?.id},null,8,["content"])]),e.modelValue?.elapsed?(s(),r("p",ft,[t(i,{icon:"fa-solid fa-clock",class:"mr-1"}),f(" "+l(e.$t("wan.name.elapsed"))+": "+l(e.modelValue?.elapsed?.toFixed(2))+"s ",1)])):m("",!0)]),_:1})])):m("",!0),e.modelValue?.response?.success===!1?(s(),r("div",ht,[t(E,{closable:!1,class:"failure"},{template:d(()=>[t(i,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),f(" "+l(e.$t("wan.name.failure")),1)]),default:d(()=>[c("p",_t,[t(i,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+l(e.$t("wan.name.taskId"))+": "+l(e.modelValue?.id)+" ",1),t(y,{content:e.modelValue?.id},null,8,["content"])]),c("p",gt,[t(i,{icon:"fa-solid fa-circle-info",class:"mr-1"}),f(" "+l(e.$t("wan.name.failureReason"))+": "+l(e.modelValue?.response?.error?.message)+" ",1),t(y,{content:e.modelValue?.response?.error?.message},null,8,["content"])]),e.modelValue?.elapsed?(s(),r("p",$t,[t(i,{icon:"fa-solid fa-clock",class:"mr-1"}),f(" "+l(e.$t("wan.name.elapsed"))+": "+l(e.modelValue?.elapsed?.toFixed(2))+"s ",1)])):m("",!0),c("p",vt,[t(i,{icon:"fa-solid fa-hashtag",class:"mr-1"}),f(" "+l(e.$t("wan.name.traceId"))+": "+l(e.modelValue?.response?.trace_id)+" ",1),t(y,{content:e.modelValue?.response?.trace_id},null,8,["content"])])]),_:1})])):m("",!0),e.modelValue?.response?.success===void 0?(s(),r("div",wt,[t(E,{closable:!1,class:"info"},{template:d(()=>[t(i,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),f(" "+l(e.$t("wan.name.failure")),1)]),default:d(()=>[c("p",bt,[t(i,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+l(e.$t("wan.name.taskId"))+": "+l(e.modelValue?.id)+" ",1),t(y,{content:e.modelValue?.id},null,8,["content"])])]),_:1})])):m("",!0)])])}const yt=w(xe,[["render",kt],["__scopeId","data-v-6d1d636e"]]),Vt=v({name:"RecentPanel",components:{TaskPreview:yt,BotPlaceholder:ae,NoTasks:le,ScrollList:H},props:{loading:{type:Boolean,default:!1}},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.wan?.tasks,items:this.$store.state.wan?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Et={key:0},It={key:2,class:"w-full h-full flex items-center justify-center"};function Tt(e,n,h,_,b,k){const u=o("bot-placeholder"),p=o("task-preview"),a=o("scroll-list"),g=o("no-tasks");return s(),r(I,null,[e.tasks?.items===void 0?(s(),r("div",Et,[t(u)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(s(),$(a,{key:1,ref:"scrollList",class:"tasks w-full h-full overflow-y-auto",loading:e.loading,onReachTop:n[0]||(n[0]=i=>e.$emit("reach-top"))},{default:d(()=>[(s(!0),r(I,null,S(e.tasks?.items,i=>(s(),$(p,{key:i.id,"model-value":i},null,8,["model-value"]))),128))]),_:1},8,["loading"])):m("",!0),e.tasks?.items?.length===0?(s(),r("div",It,[t(g)])):m("",!0)],64)}const St=w(Vt,[["render",Tt]]),Ut=N("wan"),Lt=v({name:"WanIndex",components:{ConfigPanel:Ze,Layout:pe,RecentPanel:St},inject:["initialized"],data(){return{task:void 0,job:0,timer:void 0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.wan?.status?.getApplications===D.Request},tasksLoading(){return this.$store.state.wan?.status?.getTasks===D.Request||this.fetchingTasks},credential(){return this.$store.state.wan.credential},config(){return this.$store.state.wan.config},application(){return this.$store.state.wan.application},tasks(){return this.$store.state.wan.tasks}},watch:{tasks:{handler(e,n){e?.items?.length>n?.items?.length&&console.debug("new tasks detected")},deep:!0},initialized:{async handler(e){e&&(console.debug("layout initialized"),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await J({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("wan/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("wan/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},async onScrollDown(){await this.$nextTick();const e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:n=5,createdAtMin:h,createdAtMax:_}=e||{};console.debug("limit",n,"createdAtMin",h,"createdAtMax",_),this.fetchingTasks=!0;try{await this.$store.dispatch("wan/getTasks",{limit:n,createdAtMin:h,createdAtMax:_})}finally{this.fetchingTasks=!1}},async onGenerate(){const e={...this.config,callback_url:Ut},n=this.credential?.token;if(!n){console.error("no token specified");return}V.info(this.$t("wan.message.startingTask")),B("wan",F.generate(e,{token:n})).then(()=>{V.success(this.$t("wan.message.startTaskSuccess"))}).catch(h=>{h?.response?.data?.error?.code===x?V.error(this.$t("wan.message.usedUp")):V.error(this.$t("wan.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function Ct(e,n,h,_,b,k){const u=o("config-panel"),p=o("recent-panel"),a=o("layout");return s(),$(a,null,{config:d(()=>[t(u,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:d(()=>[t(p,{ref:"recentPanel",loading:e.loadingMore,onReachTop:e.onReachTop},null,8,["loading","onReachTop"])]),_:1})}const yo=w(Lt,[["render",Ct]]);export{yo as default};