@acedatacloud/nexior 3.313.10 → 3.313.12

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 (227) hide show
  1. package/dist/assets/ApiCodeButton-SIMPJmQ4.js +1 -0
  2. package/dist/assets/Artifacts-CXBnJy8Y.css +1 -0
  3. package/dist/assets/Artifacts-Cbrj0nix.js +1 -0
  4. package/dist/assets/{AskUserQuestionCard-geDfcgQX.js → AskUserQuestionCard-DSvyaFta.js} +2 -2
  5. package/dist/assets/{Auth-Bw4HJcon.js → Auth-Bzl4hw-d.js} +1 -1
  6. package/dist/assets/{Bare-BUvxGYba.js → Bare-CosQF9NX.js} +1 -1
  7. package/dist/assets/BotPlaceholder-CILDRV2x.js +1 -0
  8. package/dist/assets/{BottomFooter-ZcSAA2lz.js → BottomFooter-BWuSWS5A.js} +1 -1
  9. package/dist/assets/{Callback-DN5LT_cK.js → Callback-DH5E03cm.js} +1 -1
  10. package/dist/assets/{CodeSnippet-BYgm9d37.js → CodeSnippet-BEDughdt.js} +1 -1
  11. package/dist/assets/{Console-CgdYFOGJ.js → Console-BZ3Yj3Vv.js} +1 -1
  12. package/dist/assets/{Consumption-CPg7sknu.js → Consumption-BrrMcaI-.js} +1 -1
  13. package/dist/assets/{Conversation-CNu-qtlx.css → Conversation-CNCC3T5X.css} +1 -1
  14. package/dist/assets/Conversation-CUohX3Zg.js +3 -0
  15. package/dist/assets/{CopyToClipboard-C5mevMpz.js → CopyToClipboard-DE54ziPA.js} +1 -1
  16. package/dist/assets/Detail-ClMHyluX.js +2 -0
  17. package/dist/assets/Extra-B_BN-CVv.js +1 -0
  18. package/dist/assets/{FilePreview-C2hKxiNN.js → FilePreview-BRjNGlg2.js} +1 -1
  19. package/dist/assets/Hailuo-B2zbmPZy.js +1 -0
  20. package/dist/assets/{History-6jch1iuI.js → History-DwIHsIfg.js} +1 -1
  21. package/dist/assets/{ImagePreview-CKvZyZkj.js → ImagePreview-BcQOFQ4n.js} +1 -1
  22. package/dist/assets/ImageWrapper-CyR5jb1d.js +1 -0
  23. package/dist/assets/Index-5VvHlHuM.js +2 -0
  24. package/dist/assets/Index-BTEbAo6v.js +1 -0
  25. package/dist/assets/Index-BTYWrUj7.js +1 -0
  26. package/dist/assets/Index-B_QXOBK_.js +1 -0
  27. package/dist/assets/Index-BdgGTVuA.js +1 -0
  28. package/dist/assets/Index-BphTheP1.js +1 -0
  29. package/dist/assets/Index-CDbNHTES.js +1 -0
  30. package/dist/assets/Index-CQTICiLC.js +1 -0
  31. package/dist/assets/Index-CRJ2Yney.js +1 -0
  32. package/dist/assets/Index-CRY5PoeR.js +1 -0
  33. package/dist/assets/Index-CcH6jCG5.js +1 -0
  34. package/dist/assets/Index-CgiC_E8D.js +1 -0
  35. package/dist/assets/{Index-CZhot3BG.js → Index-ColokBUt.js} +1 -1
  36. package/dist/assets/Index-CoxjUOTp.js +1 -0
  37. package/dist/assets/Index-Ct3HubaF.js +1 -0
  38. package/dist/assets/Index-Cu-o33dk.js +1 -0
  39. package/dist/assets/Index-Cww9JVpc.css +1 -0
  40. package/dist/assets/Index-D36eIOan.js +1 -0
  41. package/dist/assets/Index-D5jADDVJ.js +1 -0
  42. package/dist/assets/Index-D7qQodCF.js +1 -0
  43. package/dist/assets/Index-DBCefT7E.js +1 -0
  44. package/dist/assets/Index-DOLVABWA.js +1 -0
  45. package/dist/assets/Index-DUnnxmJT.js +1 -0
  46. package/dist/assets/Index-DYZfcs01.js +1 -0
  47. package/dist/assets/Index-D_tky2l2.js +1 -0
  48. package/dist/assets/Index-Dj9hmb17.js +1 -0
  49. package/dist/assets/Index-JbcYgDY1.js +1 -0
  50. package/dist/assets/Index-VCSqDZMD.js +1 -0
  51. package/dist/assets/Index-dyrsRhRJ.js +1 -0
  52. package/dist/assets/{Invitees-_fxbnrrK.js → Invitees-wi5brnRO.js} +1 -1
  53. package/dist/assets/List-DyP0QPCm.js +1 -0
  54. package/dist/assets/List-T5d5rBpv.js +1 -0
  55. package/dist/assets/List-TumQSC4k.js +1 -0
  56. package/dist/assets/{LocalTools-C-2oImSN.js → LocalTools-DXLbnggK.js} +1 -1
  57. package/dist/assets/{LocalTools-AUk0M-7f.js → LocalTools-Ne91linl.js} +1 -1
  58. package/dist/assets/Main-DhER7aF9.js +1 -0
  59. package/dist/assets/Model-CMkBvlOA.js +1 -0
  60. package/dist/assets/Navigator-l2hgACpf.js +4 -0
  61. package/dist/assets/{NoTasks-DYN_owjb.js → NoTasks-mHgR8sfV.js} +1 -1
  62. package/dist/assets/{NotFound-npt0IesT.js → NotFound-BjnhcuUB.js} +1 -1
  63. package/dist/assets/{Pagination-Dhb46xyJ.js → Pagination-CpKQsYCq.js} +1 -1
  64. package/dist/assets/Pay-BpXgEQCX.js +1 -0
  65. package/dist/assets/{Player-CFe5OMtK.js → Player-r_maMJV8.js} +1 -1
  66. package/dist/assets/PromptTextarea-DOCHNPQg.js +1 -0
  67. package/dist/assets/{RealtimeCall-CoVaem1M.js → RealtimeCall-Dhr6a7Mg.js} +1 -1
  68. package/dist/assets/{ScheduledTasks-D4yIaSQg.js → ScheduledTasks-Kt_8qr70.js} +2 -2
  69. package/dist/assets/Status-CsLVpa-W.js +1 -0
  70. package/dist/assets/Subscribe-C8vV9elI.js +1 -0
  71. package/dist/assets/{TabSwitcher-Cj5FkNFj.js → TabSwitcher-1aflp1Zv.js} +1 -1
  72. package/dist/assets/Tts-Df7nwE-L.js +1 -0
  73. package/dist/assets/VideoPlayer-DohTdtNb.js +1 -0
  74. package/dist/assets/{alert-C51owb6L.js → alert-BtCIdAUu.js} +1 -1
  75. package/dist/assets/avatar-Bv7JyUU6.js +1 -0
  76. package/dist/assets/{basic-CRrld9OA.js → basic-DgTbde23.js} +1 -1
  77. package/dist/assets/{chat-Djs3CMYQ.js → chat-BAJVAlfM.js} +1 -1
  78. package/dist/assets/{chat-CyTvzUYR.js → chat-BQT10ARJ.js} +1 -1
  79. package/dist/assets/{chat-BWLDqrQp.js → chat-BVPSenfG.js} +1 -1
  80. package/dist/assets/{chat-B2IV8ZzB.js → chat-BX9hv6Cn.js} +1 -1
  81. package/dist/assets/{chat--klww4mg.js → chat-BmzHTNgu.js} +1 -1
  82. package/dist/assets/{chat-BAkAQc5g.js → chat-C0RhIpIj.js} +1 -1
  83. package/dist/assets/{chat-Dk2RhT5t.js → chat-C1ZC5W-Z.js} +1 -1
  84. package/dist/assets/{chat-CiXMNXKV.js → chat-C4tKNcs0.js} +1 -1
  85. package/dist/assets/{chat-jwIvnr-Z.js → chat-CBx2exTb.js} +1 -1
  86. package/dist/assets/{chat-CcgowhOw.js → chat-CNbSPyBV.js} +1 -1
  87. package/dist/assets/{chat-DujLZv9E.js → chat-CgQmxIzF.js} +1 -1
  88. package/dist/assets/{chat-DXoTJfJt.js → chat-DFfVH1p7.js} +1 -1
  89. package/dist/assets/{chat-CjNUebBZ.js → chat-DFiUXatk.js} +1 -1
  90. package/dist/assets/{chat-C1MjOc7Z.js → chat-DOPFAtow.js} +1 -1
  91. package/dist/assets/{chat-BQ8Bawam.js → chat-DfPmfWr3.js} +1 -1
  92. package/dist/assets/{chat-kqaKA2O3.js → chat-Dg9MxSl5.js} +1 -1
  93. package/dist/assets/{chat-CvgG5pw8.js → chat-HQUX2SvZ.js} +1 -1
  94. package/dist/assets/{chat-BhfHbYvm.js → chat-j_CtYFJ5.js} +1 -1
  95. package/dist/assets/{chat-HfhOM8qr.js → chat-vfnrjs0X.js} +1 -1
  96. package/dist/assets/{codingBridge-CKzKbq0e.js → codingBridge-Yq_ZqbeS.js} +2 -2
  97. package/dist/assets/codingBridgeNotify-D_HiZKHX.js +2 -0
  98. package/dist/assets/{collapse-DVCTKQhI.js → collapse-CaOH8qeT.js} +1 -1
  99. package/dist/assets/{constants-DReNd4Tz.js → constants-CG3Vqtr2.js} +1 -1
  100. package/dist/assets/{createTaskActions-DlDZTrTi.js → createTaskActions-DjBBNX42.js} +1 -1
  101. package/dist/assets/date-picker-BHxXMwox.js +1 -0
  102. package/dist/assets/{digitalhuman-DRcby7UE.js → digitalhuman-CYxfsMwG.js} +1 -1
  103. package/dist/assets/drawer-oCDaaf7P.js +1 -0
  104. package/dist/assets/dropdown-C6Rx9375.js +1 -0
  105. package/dist/assets/esm-BZB13bZU.js +1 -0
  106. package/dist/assets/{esm-BFtsNOly.js → esm-BbzShnug.js} +2 -2
  107. package/dist/assets/{esm-Dqi-m0TY.js → esm-CY5XpS1u.js} +3 -3
  108. package/dist/assets/esm-DUXEwYng.js +2 -0
  109. package/dist/assets/{esm-BxUPexDt.js → esm-Dngmw4Vh.js} +1 -1
  110. package/dist/assets/{esm-TyK9ngGz.js → esm-XVHOpBv2.js} +1 -1
  111. package/dist/assets/{esm-DGJel1V6.js → esm-ipuMVWaz.js} +1 -1
  112. package/dist/assets/{fish-2xaryJa3.js → fish-h5_wyNTT.js} +1 -1
  113. package/dist/assets/{flux-Btgj5Y6B.js → flux-DvTB94My.js} +1 -1
  114. package/dist/assets/{grokvideo-gsCAktz5.js → grokvideo-ChQUEdgS.js} +1 -1
  115. package/dist/assets/{maestro-CWIBZMo5.js → hailuo-Di6Xh2wS.js} +1 -1
  116. package/dist/assets/{headshots-DhNlMzKb.js → headshots-Bv_4Uixh.js} +1 -1
  117. package/dist/assets/image-CyMHhN-N.js +1 -0
  118. package/dist/assets/index-DvrwD_5_.js +570 -0
  119. package/dist/assets/{index.browser.esm-B0D6H7p2.js → index.browser.esm-FHVEMg3Y.js} +1 -1
  120. package/dist/assets/{index.es-ZdY-W-4e.js → index.es-CqJPPofK.js} +1 -1
  121. package/dist/assets/{input-number-QSILUkn9.js → input-number-TuiYZ0ol.js} +1 -1
  122. package/dist/assets/{kling-DS8aIBS9.js → kling-DdeYV6Cj.js} +1 -1
  123. package/dist/assets/{qrart-C3AXZwOM.js → luma-DibmKR79.js} +1 -1
  124. package/dist/assets/maestro-0RKpQjX8.js +1 -0
  125. package/dist/assets/{midjourney-DGfJ5S-u.js → midjourney-BkgMRHY7.js} +1 -1
  126. package/dist/assets/{nanobanana-B5taICw2.js → nanobanana-BpPiqKEq.js} +1 -1
  127. package/dist/assets/{openaiimage-C39XhDWm.js → openaiimage-B6SP8pfN.js} +1 -1
  128. package/dist/assets/{pagination-Cd8zGyDq.js → pagination-CE5Izago.js} +2 -2
  129. package/dist/assets/{pika-BGdOaraV.js → pika-ByVuG5cc.js} +1 -1
  130. package/dist/assets/{hailuo-0mbpwvIO.js → pixverse-C80GJddz.js} +1 -1
  131. package/dist/assets/{popover-Yf8qDW5r.js → popover-DOYzoD98.js} +1 -1
  132. package/dist/assets/{producer-CiEeAGeK.js → producer-dnQre5DV.js} +1 -1
  133. package/dist/assets/{luma-DV86vuJ0.js → qrart-NS5ddEc2.js} +1 -1
  134. package/dist/assets/{realtime-BbNNu4h2.js → realtime-DorD6yT0.js} +1 -1
  135. package/dist/assets/{row-Bvl6n_KE.js → row-D_rBlFUD.js} +1 -1
  136. package/dist/assets/{seedance-I-tZ-NMg.js → seedance-DERB1b7J.js} +1 -1
  137. package/dist/assets/{seedream-lJBuNdRS.js → seedream-C8nxrxTp.js} +1 -1
  138. package/dist/assets/select-2imjfEuH.js +1 -0
  139. package/dist/assets/{serp-DiUVOB84.js → serp-COp3I9gI.js} +1 -1
  140. package/dist/assets/slider-CuKXWC2u.js +1 -0
  141. package/dist/assets/solana-wallets-B0Yg25Ub.js +2 -0
  142. package/dist/assets/{solana-wallets-vue-GoVam2vs.js → solana-wallets-vue-jTO6Ssvf.js} +1 -1
  143. package/dist/assets/{sora--A-_dlzp.js → sora-DI4BsWRm.js} +1 -1
  144. package/dist/assets/{suno-BMv4_7EP.js → suno-Cmvtndrx.js} +1 -1
  145. package/dist/assets/{switch-3VV-Xtjg.js → switch-RrNb5Cx5.js} +1 -1
  146. package/dist/assets/{table-B5c9kfrJ.js → table-CsxfmVkg.js} +1 -1
  147. package/dist/assets/tabs-0ZDSDr-L.js +1 -0
  148. package/dist/assets/time-picker-C5YEg4I-.js +1 -0
  149. package/dist/assets/tooltip-nRa5tNic.js +1 -0
  150. package/dist/assets/{upload-Dro0UwGd.js → upload-D0Q58Kh4.js} +1 -1
  151. package/dist/assets/{veo-BET9EJCZ.js → veo-BQAsCkse.js} +1 -1
  152. package/dist/assets/{wan-CdTj4pWK.js → wan-DAL8PRLi.js} +1 -1
  153. package/dist/assets/{web-CjsZENct.js → web-B6aZ5eB8.js} +1 -1
  154. package/dist/assets/{web-FfBpO4bp.js → web-Bf0srkmc.js} +1 -1
  155. package/dist/assets/{web-PsiScoUk.js → web-Bvjo0-K9.js} +1 -1
  156. package/dist/assets/{web-DygowbNG.js → web-Dg0C8jQX.js} +1 -1
  157. package/dist/assets/{web-B0n1MyH1.js → web-DxpbnwEb.js} +1 -1
  158. package/dist/assets/{webextrator-C76b6Ia_.js → webextrator-CQQgV5zY.js} +1 -1
  159. package/dist/index.html +4 -8
  160. package/package.json +1 -1
  161. package/dist/assets/ApiCodeButton-B8qC3cs-.js +0 -1
  162. package/dist/assets/BotPlaceholder-BMiZd9Le.js +0 -1
  163. package/dist/assets/Conversation-xpz49A24.js +0 -3
  164. package/dist/assets/Detail-DfHz2U8G.js +0 -2
  165. package/dist/assets/Extra-YC6SKQXB.js +0 -1
  166. package/dist/assets/Hailuo-BIGGS-v5.js +0 -1
  167. package/dist/assets/ImageWrapper-CbrFggU3.js +0 -1
  168. package/dist/assets/Index-0Kd_iQS8.js +0 -1
  169. package/dist/assets/Index-37m-Fe5o.js +0 -1
  170. package/dist/assets/Index-9J0kjfJf.js +0 -1
  171. package/dist/assets/Index-Bbk4cqOo.js +0 -1
  172. package/dist/assets/Index-BhG9Kp-d.js +0 -1
  173. package/dist/assets/Index-Bh_JOJN8.js +0 -1
  174. package/dist/assets/Index-BkrxJKhs.js +0 -2
  175. package/dist/assets/Index-Bl8ygf2n.js +0 -1
  176. package/dist/assets/Index-BnEEoKmi.js +0 -1
  177. package/dist/assets/Index-Bt4EWpNS.js +0 -1
  178. package/dist/assets/Index-BvrOKkC8.js +0 -1
  179. package/dist/assets/Index-C4TQRHbH.js +0 -1
  180. package/dist/assets/Index-C6FRgcT4.js +0 -1
  181. package/dist/assets/Index-C9HBaHas.js +0 -1
  182. package/dist/assets/Index-CF9OwuTj.css +0 -1
  183. package/dist/assets/Index-CFruZbgd.js +0 -1
  184. package/dist/assets/Index-CLEcdBGy.js +0 -1
  185. package/dist/assets/Index-CQOymFBd.js +0 -1
  186. package/dist/assets/Index-CmJ87q7F.js +0 -1
  187. package/dist/assets/Index-CoYUn8BD.js +0 -1
  188. package/dist/assets/Index-D7F6B-s7.js +0 -1
  189. package/dist/assets/Index-DELz4LrH.js +0 -1
  190. package/dist/assets/Index-DJIA2aSe.js +0 -1
  191. package/dist/assets/Index-DMQ72MpS.js +0 -1
  192. package/dist/assets/Index-DoPbj_9x.js +0 -1
  193. package/dist/assets/Index-MXx4tm9H.js +0 -1
  194. package/dist/assets/Index-P63H1J1f.js +0 -1
  195. package/dist/assets/Index-gmmFCmRL.js +0 -1
  196. package/dist/assets/List-BimYuqnv.js +0 -1
  197. package/dist/assets/List-DR_NeP9z.js +0 -1
  198. package/dist/assets/List-I5c9CzHD.js +0 -1
  199. package/dist/assets/Main-DPm2gjVq.js +0 -1
  200. package/dist/assets/Model-DsFPgfYn.js +0 -1
  201. package/dist/assets/Navigator-BEv1ExN0.js +0 -4
  202. package/dist/assets/Pay-DN0Ib7fJ.js +0 -1
  203. package/dist/assets/PromptTextarea-D7e0wObB.js +0 -1
  204. package/dist/assets/Status-DKF7pUGD.js +0 -1
  205. package/dist/assets/Subscribe-CeIgengl.js +0 -1
  206. package/dist/assets/Tts-BsFjMMPS.js +0 -1
  207. package/dist/assets/VideoPlayer-DRR-fN3Y.js +0 -1
  208. package/dist/assets/aria-CQaCu-Fx.js +0 -1
  209. package/dist/assets/avatar-DQu0w3H8.js +0 -1
  210. package/dist/assets/button-BydTr5nV.js +0 -1
  211. package/dist/assets/codingBridgeNotify-D_t7RhX0.js +0 -2
  212. package/dist/assets/date-picker-DkZyL0YP.js +0 -1
  213. package/dist/assets/drawer-Aw9IMZFK.js +0 -1
  214. package/dist/assets/dropdown-FiHX7Is2.js +0 -1
  215. package/dist/assets/esm-BhqPLJcx.js +0 -2
  216. package/dist/assets/esm-D2kAGaXe.js +0 -1
  217. package/dist/assets/image-3Z-MYHWR.js +0 -1
  218. package/dist/assets/index-CIYP4tky.js +0 -570
  219. package/dist/assets/pixverse-C1p0nOG6.js +0 -1
  220. package/dist/assets/select-F0nTmzsr.js +0 -1
  221. package/dist/assets/slider-D1-dTGSO.js +0 -1
  222. package/dist/assets/solana-wallets-CCd64Rjm.js +0 -2
  223. package/dist/assets/tabs-DP_46_r9.js +0 -1
  224. package/dist/assets/teleport-CuPLY_-u.js +0 -1
  225. package/dist/assets/time-picker-CvR5Vb8X.js +0 -1
  226. package/dist/assets/tooltip-ivBOvVK_.js +0 -1
  227. package/dist/assets/use-dialog-CKZ3Kl7v.js +0 -1
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Ut as c,Vt as l,Wt as u,Z as d,b as f,dt as p,et as m,k as h,tt as g,ut as _,v}from"./vendor-chart-BJCvKk8-.js";import{t as y}from"./button-BydTr5nV.js";import{b,h as x,nt as S}from"./use-deprecated-B-NFNg3W.js";import{r as C,t as w}from"./select-F0nTmzsr.js";import{n as T,t as E}from"./tabs-DP_46_r9.js";import{t as D}from"./upload-Dro0UwGd.js";import{t as O}from"./tooltip-ivBOvVK_.js";import{t as k}from"./image-3Z-MYHWR.js";import{t as A}from"./alert-C51owb6L.js";import{n as j,r as M}from"./radio-3Hz7h3DR.js";import{t as N}from"./drawer-Aw9IMZFK.js";import{n as P,t as F}from"./dropdown-FiHX7Is2.js";import{t as I}from"./input-number-QSILUkn9.js";import{t as L}from"./slider-D1-dTGSO.js";import{t as R}from"./switch-3VV-Xtjg.js";import{hi as z,mi as B}from"./constants-DReNd4Tz.js";import{Ar as V,Br as H,Bt as U,Fr as ee,Gr as te,Hn as W,Ht as G,Or as K,Qt as q,Rr as J,Ur as ne,Vt as re,Wt as ie,Yn as Y,k as X,kr as ae,zt as oe}from"./index-CIYP4tky.js";import{t as Z}from"./index.es-ZdY-W-4e.js";import{t as se}from"./CopyToClipboard-C5mevMpz.js";import{t as Q}from"./ImagePreview-CKvZyZkj.js";import{n as ce}from"./taskDrawerMixin-DEgO_R5H.js";import{t as le}from"./Consumption-CPg7sknu.js";import{i as $,n as ue,t as de}from"./pagination-Cd8zGyDq.js";import{t as fe}from"./VideoPlayer-DRR-fN3Y.js";import{t as pe}from"./ApiCodeButton-B8qC3cs-.js";import{t as me}from"./BotPlaceholder-BMiZd9Le.js";import{t as he}from"./NoTasks-DYN_owjb.js";import{t as ge}from"./PromptTextarea-D7e0wObB.js";import{t as _e}from"./ImageWrapper-CbrFggU3.js";var ve=r({name:`LayoutMidjourney`,components:{ElDrawer:N,ElButton:y,FontAwesomeIcon:Z},mixins:[ce]}),ye={class:`main flex-1 h-full flex flex-row`},be={class:`config w-[320px] flex-none h-full flex flex-col bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},xe={class:`results flex-1 h-full flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function Se(e,r,i,a,s,c){let l=g(`font-awesome-icon`),u=g(`el-button`),f=g(`el-drawer`);return d(),t(`div`,ye,[n(`div`,be,[m(e.$slots,`config`,{},void 0,!0)]),n(`div`,xe,[m(e.$slots,`results`,{},void 0,!0)]),p(o(u,{circle:``,class:`menu`,onClick:r[0]||=t=>e.drawer=!0},{default:_(()=>[o(l,{icon:`fa-solid fa-magic`})]),_:1},512),[[v,!e.tasksEmpty]]),o(f,{modelValue:e.drawer,"onUpdate:modelValue":r[1]||=t=>e.drawer=t,direction:`ltr`,"with-header":!1,size:`350px`,class:`drawer`},{default:_(()=>[m(e.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var Ce=X(ve,[[`render`,Se],[`__scopeId`,`data-v-689d2913`]]),we=r({name:`RatioSelector`,data(){return{options:[{value:`1:1`,label:`1:1`,width:20,height:20},{value:`4:3`,label:`4:3`,width:20,height:15},{value:`3:4`,label:`3:4`,width:15,height:20},{value:`16:9`,label:`16:9`,width:25,height:13},{value:`9:16`,label:`9:16`,width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){return this.$store.state.midjourney.config.ratio},set(e){console.debug(`set ratio`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,ratio:e})}}},mounted(){this.value||=`1:1`}}),Te={class:`text-sm font-bold mb-2 block`},Ee={class:`items`},De=[`onClick`],Oe={class:`name`};function ke(r,i,a,o,f,p){return d(),t(`div`,null,[n(`span`,Te,u(r.$t(`midjourney.name.ratio`)),1),n(`div`,Ee,[(d(!0),t(s,null,e(r.options,(e,i)=>(d(),t(`div`,{key:i,class:l({active:r.active===i,item:!0}),onClick:t=>r.value=e.value},[n(`div`,{class:l([`preview`,e.label])},[n(`div`,{class:`rect`,style:c({width:e.width+`px`,height:e.height+`px`})},null,4)],2),n(`p`,Oe,u(e.label),1)],10,De))),128))])])}var Ae=X(we,[[`render`,ke],[`__scopeId`,`data-v-b1114c34`]]),je=!1,Me=r({name:`AdvancedSelector`,components:{ElSwitch:R},computed:{value:{get(){return this.$store.state.midjourney.config.advanced},set(e){console.debug(`set advanced`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,advanced:e})}}},mounted(){this.value===void 0&&(this.value=je)}}),Ne={class:`field`},Pe={class:`title`};function Fe(e,r,i,a,s,c){let l=g(`el-switch`);return d(),t(`div`,Ne,[n(`h2`,Pe,u(e.$t(`midjourney.name.advanced`)),1),o(l,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`},null,8,[`modelValue`])])}var Ie=X(Me,[[`render`,Fe],[`__scopeId`,`data-v-2d55fce2`]]),Le=r({name:`LoopSelector`,components:{ElSwitch:R,InfoIcon:$},computed:{value:{get(){return this.$store.state.midjourney?.config?.loop},set(e){console.debug(`set loop`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney?.config,loop:e})}}},mounted(){this.value===void 0&&(this.value=!1)}}),Re={class:`relative`},ze={class:`flex justify-between`},Be={class:`flex justify-start items-center`},Ve={class:`text-sm font-bold`},He={class:`flex justify-end items-center`};function Ue(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-switch`);return d(),t(`div`,Re,[n(`div`,ze,[n(`div`,Be,[n(`span`,Ve,u(e.$t(`midjourney.name.loop`)),1),o(l,{content:e.$t(`midjourney.description.loop`)},null,8,[`content`])]),n(`div`,He,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`},null,8,[`modelValue`])])])])}var We=X(Le,[[`render`,Ue]]),Ge=`8.1`,Ke=r({name:`VersionSelector`,components:{ElSelect:C,ElOption:w},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{value:`8.1`,label:`8.1`},{value:`8`,label:`8`},{value:`7`,label:`7`},{value:`6.1`,label:`6.1`},{value:`6.0`,label:`6.0`},{value:`5.2`,label:`5.2`},{value:`5.1`,label:`5.1`},{value:`5.0`,label:`5`},{value:`4`,label:`4`},{value:`3`,label:`3`},{value:`2`,label:`2`},{value:`1`,label:`1`}]}},computed:{value:{get(){return this.$store.state.midjourney.config.version},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,version:e})}}},mounted(){this.value||=Ge}}),qe={class:`field`},Je={class:`text-sm font-bold`};function Ye(r,i,c,l,f,p){let m=g(`el-option`),h=g(`el-select`);return d(),t(`div`,qe,[n(`span`,Je,u(r.$t(`midjourney.name.version`)),1),o(h,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`midjourney.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Xe=X(Ke,[[`render`,Ye],[`__scopeId`,`data-v-8e00777d`]]),Ze=r({name:`HdSelector`,components:{ElSwitch:R,ElTooltip:O,FontAwesomeIcon:Z},computed:{value:{get(){return this.$store.state.midjourney.config.hd||!1},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,hd:e})}}}}),Qe={class:`field`},$e={class:`text-sm font-bold`};function et(e,r,a,s,c,l){let f=g(`font-awesome-icon`),p=g(`el-tooltip`),m=g(`el-switch`);return d(),t(`div`,Qe,[n(`span`,$e,[i(u(e.$t(`midjourney.name.hd`))+` `,1),o(p,{content:e.$t(`midjourney.description.hd`),placement:`top`},{default:_(()=>[o(f,{icon:`fa-solid fa-circle-info`,class:`info-icon`})]),_:1},8,[`content`])]),o(m,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t},null,8,[`modelValue`])])}var tt=X(Ze,[[`render`,et],[`__scopeId`,`data-v-871c894e`]]),nt=r({name:`ReferenceImage`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[G,U],emits:[`change`],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?.response?.file_url)}},watch:{urls:{handler(e){console.debug(`URLs changed:`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,image_url:e[0]})}}},methods:{onExceed(){H.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){H.error(this.$t(`midjourney.message.uploadStartImageError`))}}}),rt={class:`relative`},it={class:`flex justify-between`},at={class:`flex justify-start items-center`},ot={class:`text-sm font-bold`};function st(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,rt,[n(`div`,it,[n(`div`,at,[n(`span`,ot,[i(u(e.$t(`midjourney.name.imageUrl`))+` `,1),r[1]||=n(`span`,{class:`text-red-500`,"aria-hidden":`true`},`*`,-1)]),o(f,{content:e.$t(`midjourney.description.imageUrl`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var ct=X(nt,[[`render`,st],[`__scopeId`,`data-v-0445850f`]]),lt=r({name:`EndImageUrlInput`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[G,U],emits:[`change`],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?.response?.file_url)}},watch:{urls:{handler(e){console.debug(`URLs changed:`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,end_image_url:e[0]})}}},methods:{onExceed(){H.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){H.error(this.$t(`midjourney.message.uploadEndImageError`))}}}),ut={class:`relative`},dt={class:`flex justify-between`},ft={class:`flex justify-start items-center`},pt={class:`text-sm font-bold`};function mt(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,ut,[n(`div`,dt,[n(`div`,ft,[n(`span`,pt,u(e.$t(`midjourney.name.endImageUrl`)),1),o(f,{content:e.$t(`midjourney.description.endImageUrl`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var ht=X(lt,[[`render`,mt],[`__scopeId`,`data-v-375309d2`]]),gt=r({name:`ReferenceImage`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[G,U],emits:[`change`],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?.response?.file_url)}},watch:{urls:{handler(e){console.debug(`URLs changed:`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,image_url:e[0]})}}},methods:{onExceed(){H.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){H.error(this.$t(`midjourney.message.uploadStartImageError`))}}}),_t={class:`relative`},vt={class:`flex justify-between`},yt={class:`flex justify-start items-center`},bt={class:`text-sm font-bold`};function xt(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,_t,[n(`div`,vt,[n(`div`,yt,[n(`span`,bt,u(e.$t(`midjourney.name.imageUrl2`)),1),o(f,{content:e.$t(`midjourney.description.imageUrl2`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var St=X(gt,[[`render`,xt],[`__scopeId`,`data-v-6b4c9a65`]]),Ct=r({name:`StylizeSelector`,components:{ElSlider:L,InfoIcon:$,ElInputNumber:I},computed:{value:{get(){return this.$store.state.midjourney.config.stylize},set(e){console.debug(`set stylize`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,stylize:e})}}},mounted(){this.value||=100}}),wt={class:`flex justify-between`},Tt={class:`flex justify-start items-center`},Et={class:`text-sm font-bold`},Dt={class:`flex justify-end items-center`},Ot={class:`w-full px-2`};function kt(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,wt,[n(`div`,Tt,[n(`span`,Et,u(e.$t(`midjourney.name.stylize`)),1),o(l,{content:e.$t(`midjourney.description.stylize`)},null,8,[`content`])]),n(`div`,Dt,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,Ot,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:100,step:1},null,8,[`modelValue`])])])}var At=X(Ct,[[`render`,kt]]),jt=0,Mt=r({name:`ChaosSelector`,components:{ElSlider:L,InfoIcon:$,ElInputNumber:I},computed:{value:{get(){return this.$store.state.midjourney.config.chaos},set(e){console.debug(`set quality`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,chaos:e})}}},mounted(){this.value||=jt}}),Nt={class:`flex justify-between`},Pt={class:`flex justify-start items-center`},Ft={class:`text-sm font-bold`},It={class:`flex justify-end items-center`},Lt={class:`w-full px-2`};function Rt(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,Nt,[n(`div`,Pt,[n(`span`,Ft,u(e.$t(`midjourney.name.chaos`)),1),o(l,{content:e.$t(`midjourney.description.chaos`)},null,8,[`content`])]),n(`div`,It,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,Lt,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:100,step:1},null,8,[`modelValue`])])])}var zt=X(Mt,[[`render`,Rt],[`__scopeId`,`data-v-ed158765`]]),Bt=r({name:`ModelSelector`,components:{ElImage:k,InfoIcon:$},data(){return{options:[{value:``,label:this.$t(`midjourney.model.general`),image:`https://cdn.acedata.cloud/ebvlwg.png`},{value:`niji 5`,label:this.$t(`midjourney.model.niji`),image:`https://cdn.acedata.cloud/j6v1m7.png`}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)},value:{get(){return this.$store.state.midjourney.config.model},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,model:e})}}},mounted(){this.value===void 0&&(this.value=``)}}),Vt={class:`flex justify-start items-center`},Ht={class:`text-sm font-bold`},Ut={class:`items`},Wt=[`onClick`],Gt={class:`name`};function Kt(r,i,a,c,f,p){let m=g(`info-icon`),h=g(`el-image`);return d(),t(`div`,null,[n(`div`,Vt,[n(`span`,Ht,u(r.$t(`midjourney.name.model`)),1),o(m,{content:r.$t(`midjourney.description.model`)},null,8,[`content`])]),n(`div`,Ut,[(d(!0),t(s,null,e(r.options,(e,i)=>(d(),t(`div`,{key:i,class:l({active:r.active===i,item:!0}),onClick:t=>r.value=e.value},[o(h,{src:e.image,fit:`cover`,class:`image`},null,8,[`src`]),n(`p`,Gt,u(e.label),1)],10,Wt))),128))])])}var qt=X(Bt,[[`render`,Kt],[`__scopeId`,`data-v-ebc6758e`]]),Jt=r({name:`QualitySelector`,components:{ElRadioButton:j,ElRadioGroup:M},computed:{version(){return this.$store.state.midjourney.config.version||``},isV8(){return this.version===`8`||this.version===`8.1`},options(){return this.isV8?[{label:this.$t(`midjourney.button.standard`),value:`1`},{label:this.$t(`midjourney.button.ultra`),value:`4`}]:[{label:this.$t(`midjourney.button.low`),value:`.25`},{label:this.$t(`midjourney.button.medium`),value:`.5`},{label:this.$t(`midjourney.button.high`),value:`1`}]},value:{get(){return this.$store.state.midjourney.config.quality},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,quality:e})}}},watch:{isV8(e){(e&&this.value!==`1`&&this.value!==`4`||!e&&this.value===`4`)&&(this.value=`1`)}},mounted(){this.value||=`1`}}),Yt={class:`field`},Xt={class:`text-sm font-bold`};function Zt(r,c,l,f,p,m){let h=g(`el-radio-button`),v=g(`el-radio-group`);return d(),t(`div`,Yt,[n(`span`,Xt,u(r.$t(`midjourney.name.quality`)),1),o(v,{modelValue:r.value,"onUpdate:modelValue":c[0]||=e=>r.value=e,class:`quality`},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.value},{default:_(()=>[i(u(e.label),1)]),_:2},1032,[`label`]))),128))]),_:1},8,[`modelValue`])])}var Qt=X(Jt,[[`render`,Zt],[`__scopeId`,`data-v-10b2574d`]]),$t=r({name:`ResolutionSelector`,components:{ElSelect:C,ElOption:w},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{value:`480p`,label:`480p`},{value:`720p`,label:`720p`}]}},computed:{value:{get(){return this.$store.state.midjourney?.config?.resolution},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,resolution:e})}}},mounted(){this.value||=B}}),en={class:`field`},tn={class:`title font-bold`};function nn(r,i,c,l,f,p){let m=g(`el-option`),h=g(`el-select`);return d(),t(`div`,en,[n(`h2`,tn,u(r.$t(`midjourney.name.resolution`)),1),o(h,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`midjourney.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var rn=X($t,[[`render`,nn],[`__scopeId`,`data-v-12537f29`]]),an=r({name:`ImageWeightSelector`,components:{ElSlider:L,InfoIcon:$},computed:{value:{get(){return this.$store.state.midjourney.config.iw},set(e){console.debug(`set iw`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,iw:e})}}},mounted(){this.value||=1}}),on={class:`flex justify-between`},sn={class:`flex justify-start items-center`},cn={class:`text-sm font-bold`},ln={class:`flex justify-end items-center`},un={class:`w-full px-2`};function dn(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,on,[n(`div`,sn,[n(`span`,cn,u(e.$t(`midjourney.name.imageWeight`)),1),o(l,{content:e.$t(`midjourney.description.imageWeight`)},null,8,[`content`])]),n(`div`,ln,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,un,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:2,step:.1},null,8,[`modelValue`])])])}var fn=X(an,[[`render`,dn],[`__scopeId`,`data-v-b4bf1f1e`]]),pn=r({name:`WeirdSelector`,components:{ElSlider:L,ElInputNumber:I,InfoIcon:$},computed:{value:{get(){return this.$store.state.midjourney.config.weird},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,weird:e})}}},mounted(){this.value||=0}}),mn={class:`flex justify-between`},hn={class:`flex justify-start items-center`},gn={class:`text-sm font-bold`},_n={class:`flex justify-end items-center`},vn={class:`w-full px-2`};function yn(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,mn,[n(`div`,hn,[n(`span`,gn,u(e.$t(`midjourney.name.weird`)),1),o(l,{content:e.$t(`midjourney.description.weird`)},null,8,[`content`])]),n(`div`,_n,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,vn,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:1e3,step:1},null,8,[`modelValue`])])])}var bn=X(pn,[[`render`,yn]]),xn=r({name:`VideoFromInput`,components:{VideoPlayer:fe},props:{modelValue:{type:Object,required:!1,default:void 0}},data(){return{options:{controls:[`play-large`,`play`,`progress`,`current-time`,`mute`,`captions`,`settings`,`fullscreen`]}}},computed:{config(){return this.$store.state.midjourney?.config}}}),Sn={class:`relative`},Cn={class:`flex mb-2`},wn={class:`text-sm font-bold`};function Tn(e,r,i,o,s,c){let l=g(`video-player`);return d(),t(`div`,Sn,[n(`div`,Cn,[n(`span`,wn,u(e.$t(`midjourney.name.extend`)),1)]),n(`div`,null,[e.config?.video_url?(d(),a(l,{key:0,src:e.config?.video_url,options:e.options},null,8,[`src`,`options`])):h(``,!0)])])}var En=X(xn,[[`render`,Tn]]),Dn=``,On=r({name:`StyleSelector`,components:{ElSelect:C,ElOption:w},data(){return{}},computed:{model(){return this.$store.state.midjourney.config.model},options(){return this.model?.includes(`niji`)?[{value:`cute`,label:this.$t(`midjourney.style.cute`)},{value:`expressive`,label:this.$t(`midjourney.style.expressive`)},{value:`scenic`,label:this.$t(`midjourney.style.scenic`)},{value:`original`,label:this.$t(`midjourney.style.original`)}]:[{value:`raw`,label:this.$t(`midjourney.style.raw`)}]},value:{get(){return this.$store.state.midjourney.config.style},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,style:e})}}},watch:{model(){this.value=``}},mounted(){this.value||=Dn}}),kn={class:`field`},An={class:`text-sm font-bold title`},jn={class:`float-left`},Mn={class:`float-right`};function Nn(r,i,c,l,f,p){let m=g(`el-option`),h=g(`el-select`);return d(),t(`div`,kn,[n(`span`,An,u(r.$t(`midjourney.name.style`)),1),o(h,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`midjourney.placeholder.select`),clearable:``},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(m,{key:e.value,label:e.label,value:e.value},{default:_(()=>[n(`span`,jn,u(e.label),1),n(`span`,Mn,u(e.value),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Pn=X(On,[[`render`,Nn],[`__scopeId`,`data-v-00d50831`]]),Fn=r({name:`ElementsSelector`,components:{Check:b,ElTabs:T,ElTag:te,ElIcon:S,ElTabPane:E,ElImage:k,ElDialog:ne,ElButton:y,InfoIcon:$},emits:[`update:modelValue`],data(){return{tab:`styles`,choosing:!1,elements:{styles:{displayName:this.$t(`midjourney.styleCategory.styles`),items:[{image:`https://cdn.acedata.cloud/94ab394d-2fa3-4fe8-b3b3-41be85720fdb.png`,label:this.$t(`midjourney.styleTag.watercolour`),value:`Watercolour`},{image:`https://cdn.acedata.cloud/c3904cc5-3184-4639-be76-46f4860c1277.png`,label:this.$t(`midjourney.styleTag.oilPainting`),value:`Oil painting`},{image:`https://cdn.acedata.cloud/a0b764bb-13b1-419b-a8e8-855ee7ffc28a.png`,label:this.$t(`midjourney.styleTag.oldPhotograph`),value:`Old Photograph`},{image:`https://cdn.acedata.cloud/04f17d89-d913-4700-a422-99fa97fa79c9.png`,label:this.$t(`midjourney.styleTag.oneLineDrawing`),value:`One-line drawing`},{image:`https://cdn.acedata.cloud/281cfaac-ec59-4f5c-ab2b-f15d7481d752.png`,label:this.$t(`midjourney.styleTag.sketchDrawing`),value:`Sketch Drawing`},{image:`https://cdn.acedata.cloud/091d68cf-533c-4b76-90be-d5983b9ba80b.png`,label:this.$t(`midjourney.styleTag.gouache`),value:`Gouache`},{image:`https://cdn.acedata.cloud/a652c6b2-f0f6-4ef4-bf1b-9053e1daf85b.png`,label:this.$t(`midjourney.styleTag.filmStyle`),value:`Film style`},{image:`https://cdn.acedata.cloud/0aaafc79-9094-4a97-a07d-a01f88d276b1.png`,label:this.$t(`midjourney.styleTag.photorealistic`),value:`Photorealistic`},{image:`https://cdn.acedata.cloud/aa6489ad-8b40-46ae-83a6-f636772084e9.png`,label:this.$t(`midjourney.styleTag.logo`),value:`Logo`},{image:`https://cdn.acedata.cloud/e3e96805-6bcd-4608-b012-a8931e75662a.png`,label:this.$t(`midjourney.styleTag.cartoon`),value:`Cartoon`},{image:`https://cdn.acedata.cloud/11d53af4-ec2d-4256-8ddc-18105df57047.png`,label:this.$t(`midjourney.styleTag.marbleStatue`),value:`Marble Statue`},{image:`https://cdn.acedata.cloud/d0109889-d2a6-49ee-9f5c-49f2033966d8.png`,label:this.$t(`midjourney.styleTag.1800S`),value:`1800s`},{image:`https://cdn.acedata.cloud/86a3fb48-1ef0-422a-809a-580892aa0b9d.png`,label:this.$t(`midjourney.styleTag.1980S`),value:`1980s`},{image:`https://cdn.acedata.cloud/8b07aae4-b6f6-45ad-a556-7206b2945025.png`,label:this.$t(`midjourney.styleTag.isometricAnime`),value:`Isometric anime`,advanced:!0},{image:`https://cdn.acedata.cloud/3be49d3c-e431-4bce-b2bb-fc53f763b348.png`,label:this.$t(`midjourney.styleTag.analyticDrawing`),value:`Analytic drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/4d31c2dc-2a0b-4465-b3e8-bffd7c5fed25.png`,label:this.$t(`midjourney.styleTag.coloringBook`),value:`Coloring book`,advanced:!0},{image:`https://cdn.acedata.cloud/a19dde67-65b2-4923-8895-9e960cf050ee.png`,label:this.$t(`midjourney.styleTag.infographicDrawing`),value:`Infographic drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/f57db729-8692-4524-a373-b495d14ec77e.png`,label:this.$t(`midjourney.styleTag.doubleExposure`),value:`Double exposure`,advanced:!0},{image:`https://cdn.acedata.cloud/f8ff8db0-62dc-4414-b309-7fdf2021e45c.png`,label:this.$t(`midjourney.styleTag.diagrammaticDrawing`),value:`Diagrammatic drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/426447cf-dd10-4c91-b928-e7a3aa4c253a.png`,label:this.$t(`midjourney.styleTag.2DIllustration`),value:`2D illustration`,advanced:!0},{image:`https://cdn.acedata.cloud/25e0edfe-776f-4be0-9791-bb729cca81b3.png`,label:this.$t(`midjourney.styleTag.diagrammaticPortrait`),value:`Diagrammatic portrait`,advanced:!0},{image:`https://cdn.acedata.cloud/819c367c-ad03-4bf8-87a9-38ba53aa00f6.png`,label:this.$t(`midjourney.styleTag.pixelArt`),value:`Pixel art`,advanced:!0},{image:`https://cdn.acedata.cloud/2c4bbd7b-fc59-4f38-b844-762bf2366042.png`,label:this.$t(`midjourney.styleTag.darkFantasy`),value:`Dark fantasy`,advanced:!0},{image:`https://cdn.acedata.cloud/bd786eed-e3ee-4e3a-9473-acbd1ee4306c.png`,label:this.$t(`midjourney.styleTag.ukiyoEArt`),value:`Ukiyo-e art`,advanced:!0},{image:`https://cdn.acedata.cloud/1951d276-5502-428a-8694-1b311d8a5540.png`,label:this.$t(`midjourney.styleTag.paperQuilling`),value:`Paper quilling`,advanced:!0},{image:`https://cdn.acedata.cloud/4f9bcc9c-8b0e-47f4-87b9-4b4d78a8891a.png`,label:this.$t(`midjourney.styleTag.paperCutCraft`),value:`Paper cut craft`},{image:`https://cdn.acedata.cloud/4775f61f-446b-4312-b824-c91c6ecdb372.png`,label:this.$t(`midjourney.styleTag.iridescent`),value:`Iridescent`,advanced:!0},{image:`https://cdn.acedata.cloud/29fbc528-56f0-4eb0-a5a2-2312d53d55b4.png`,label:this.$t(`midjourney.styleTag.patchworkCollage`),value:`Patchwork collage`,advanced:!0},{image:`https://cdn.acedata.cloud/aa03b06a-fac8-45ec-830f-2a6e7ecab5c2.png`,label:this.$t(`midjourney.styleTag.opArt`),value:`Op art`,advanced:!0},{image:`https://cdn.acedata.cloud/29015f2a-3c9c-43c5-808a-23fbbb7bcf2f.png`,label:this.$t(`midjourney.styleTag.japaneseInk`),value:`Japanese ink`,advanced:!0},{image:`https://cdn.acedata.cloud/a65f8f7e-46a9-4ccf-8ee5-720d0c222471.png`,label:this.$t(`midjourney.styleTag.pastelDrawing`),value:`Pastel drawing`},{image:`https://cdn.acedata.cloud/a0cda2b1-b227-4230-8842-feab55edd6c7.png`,label:this.$t(`midjourney.styleTag.drippingArt`),value:`Dripping art`},{image:`https://cdn.acedata.cloud/c4aab372-ec55-4a7e-af94-4469f45c23c5.png`,label:this.$t(`midjourney.styleTag.tattooArt`),value:`Tattoo art`,advanced:!0},{image:`https://cdn.acedata.cloud/5040fbb2-6fa7-4e8f-86ac-f23c1c3e291c.png`,label:this.$t(`midjourney.styleTag.16Bit`),value:`16-Bit`,advanced:!0},{image:`https://cdn.acedata.cloud/b67249a1-36fa-443a-8b41-c167a5002e10.png`,label:this.$t(`midjourney.styleTag.8Bit`),value:`8-Bit`,advanced:!0},{image:`https://cdn.acedata.cloud/1c9600b4-6995-4dcb-b363-40ee38049151.png`,label:this.$t(`midjourney.styleTag.amber`),value:`Amber`,advanced:!0},{image:`https://cdn.acedata.cloud/e2d34946-3148-4f92-ad73-40f6f1208516.png`,label:this.$t(`midjourney.styleTag.anatomicalDrawing`),value:`Anatomical Drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/19940f31-037e-4a8f-a71c-605e16ac9631.png`,label:this.$t(`midjourney.styleTag.ancient`),value:`Ancient`},{image:`https://cdn.acedata.cloud/b714b3d9-2f97-49fb-bf85-99a716bf0c78.png`,label:this.$t(`midjourney.styleTag.anime`),value:`Anime`,advanced:!0},{image:`https://cdn.acedata.cloud/d88c3080-cd54-4342-ac91-dac326ee1060.png`,label:this.$t(`midjourney.styleTag.arabic`),value:`Arabic`,advanced:!0},{image:`https://cdn.acedata.cloud/dc54b749-8e69-4252-9b90-fc1448fa9397.png`,label:this.$t(`midjourney.styleTag.blocky`),value:`Blocky`,advanced:!0},{image:`https://cdn.acedata.cloud/d8009295-2f4b-48d8-896e-46d0f5939923.png`,label:this.$t(`midjourney.styleTag.blueprint`),value:`Blueprint`,advanced:!0},{image:`https://cdn.acedata.cloud/5cc39277-16e0-46d6-9310-b0722479713b.png`,label:this.$t(`midjourney.styleTag.comicbook`),value:`Comicbook`,advanced:!0},{image:`https://cdn.acedata.cloud/b9900d01-20bc-408b-9637-779cc22c493c.png`,label:this.$t(`midjourney.styleTag.caribbean`),value:`Caribbean`,advanced:!0},{image:`https://cdn.acedata.cloud/fedabd4e-a9bb-4bb0-a4ec-8fc48bc74c78.png`,label:this.$t(`midjourney.styleTag.celestial`),value:`Celestial`,advanced:!0},{image:`https://cdn.acedata.cloud/00f1f097-1d72-435f-b47d-656f8e194dc2.png`,label:this.$t(`midjourney.styleTag.cellulose`),value:`Cellulose`,advanced:!0},{image:`https://cdn.acedata.cloud/a002bccf-6287-4b28-a5a7-c1cf5cb07734.png`,label:this.$t(`midjourney.styleTag.charcoalStyle`),value:`Charcoal Style`,advanced:!0},{image:`https://cdn.acedata.cloud/e218ab68-e430-4541-9501-02ee2d7aeda9.png`,label:this.$t(`midjourney.styleTag.chromatic`),value:`Chromatic`,advanced:!0},{image:`https://cdn.acedata.cloud/bd5a79d9-c73d-46c3-974f-932751ff8e46.png`,label:this.$t(`midjourney.styleTag.coral`),value:`Coral`,advanced:!0},{image:`https://cdn.acedata.cloud/58dd439c-cae7-434f-9a83-ac6aefd6e417.png`,label:this.$t(`midjourney.styleTag.conceptArt`),value:`Concept Art`,advanced:!0},{image:`https://cdn.acedata.cloud/767fe9f3-69d0-4e16-9060-41e6cf1b1fe1.png`,label:this.$t(`midjourney.styleTag.fibonacci`),value:`Fibonacci`,advanced:!0},{image:`https://cdn.acedata.cloud/4b78ebb1-5091-43d8-a020-88ffb3719edd.png`,label:this.$t(`midjourney.styleTag.cyberpunk`),value:`Cyberpunk`,advanced:!0},{image:`https://cdn.acedata.cloud/34d35d5c-a2e4-4e8e-aafd-3d3c08499389.png`,label:this.$t(`midjourney.styleTag.diabolic`),value:`Diabolic`,advanced:!0},{image:`https://cdn.acedata.cloud/8e29e2b4-4899-491d-a5dc-5ebbb1ff2758.png`,label:this.$t(`midjourney.styleTag.diffractionGrading`),value:`Diffraction Grading`,advanced:!0},{image:`https://cdn.acedata.cloud/996c6d93-94aa-438a-96d5-278e22e54f5f.png`,label:this.$t(`midjourney.styleTag.lightspeed`),value:`Lightspeed`,advanced:!0},{image:`https://cdn.acedata.cloud/57f3ad49-0940-44e2-a31a-a4872497bae7.png`,label:this.$t(`midjourney.styleTag.liquid`),value:`Liquid`,advanced:!0},{image:`https://cdn.acedata.cloud/a9ff43a9-dadf-4bbc-9a7a-72fd3908d39a.png`,label:this.$t(`midjourney.styleTag.dots`),value:`Dots`,advanced:!0},{image:`https://cdn.acedata.cloud/acff2bf9-1907-4a0f-be23-897c71caf60e.png`,label:this.$t(`midjourney.styleTag.dune`),value:`Dune`,advanced:!0},{image:`https://cdn.acedata.cloud/4a2abc45-ba65-4e2d-8399-8d44491c8a64.png`,label:this.$t(`midjourney.styleTag.drippingPaint`),value:`Dripping Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/7dc4e93f-07a8-45ec-9e8a-89c3f619fd40.png`,label:this.$t(`midjourney.styleTag.electronicCircuitry`),value:`Electronic Circuitry`,advanced:!0},{image:`https://cdn.acedata.cloud/cf502cba-ee64-41fd-a388-93f6357fc7cc.png`,label:this.$t(`midjourney.styleTag.electrical`),value:`Electrical`,advanced:!0},{image:`https://cdn.acedata.cloud/fd6a696b-3102-4301-8fce-5a7fd401231a.png`,label:this.$t(`midjourney.styleTag.futuristic`),value:`Futuristic`,advanced:!0},{image:`https://cdn.acedata.cloud/0fe8fca5-b3d9-4fab-b390-fff7c0f4f594.png`,label:this.$t(`midjourney.styleTag.etching`),value:`Etching`,advanced:!0},{image:`https://cdn.acedata.cloud/46577726-f0ab-4750-81c6-0d4d865ba4bd.png`,label:this.$t(`midjourney.styleTag.extraterrestrial`),value:`Extraterrestrial`,advanced:!0},{image:`https://cdn.acedata.cloud/faa06af4-9988-4e39-9f13-ecdd29e1e20a.png`,label:this.$t(`midjourney.styleTag.glitchart`),value:`Glitchart`,advanced:!0},{image:`https://cdn.acedata.cloud/4380f6af-aaeb-41fd-bcaf-2efadcc3e08f.png`,label:this.$t(`midjourney.styleTag.floral`),value:`Floral`,advanced:!0},{image:`https://cdn.acedata.cloud/096683c4-8e91-4ef0-8211-8a6dcef5298d.png`,label:this.$t(`midjourney.styleTag.fractal`),value:`Fractal`,advanced:!0},{image:`https://cdn.acedata.cloud/10ce713b-a5bc-400b-a0c8-bcec4f7e6548.png`,label:this.$t(`midjourney.styleTag.preHistoric`),value:`Pre Historic`,advanced:!0},{image:`https://cdn.acedata.cloud/6382ad4e-1818-4ab1-b493-10afdb43c196.png`,label:this.$t(`midjourney.styleTag.prokaryotic`),value:`Prokaryotic`,advanced:!0},{image:`https://cdn.acedata.cloud/48205fb3-e48b-4219-ad53-d307e1e686a7.png`,label:this.$t(`midjourney.styleTag.horror`),value:`Horror`,advanced:!0},{image:`https://cdn.acedata.cloud/d0567b20-8f93-4b16-a775-8ca0708a7a50.png`,label:this.$t(`midjourney.styleTag.iceAge`),value:`Ice Age`,advanced:!0},{image:`https://cdn.acedata.cloud/cc1455a5-c139-400d-8a54-121176f196e1.png`,label:this.$t(`midjourney.styleTag.jurassic`),value:`Jurassic`,advanced:!0},{image:`https://cdn.acedata.cloud/84e2bfe2-60bb-4323-936b-18dbb1c8cfa1.png`,label:this.$t(`midjourney.styleTag.knitted`),value:`Knitted`,advanced:!0},{image:`https://cdn.acedata.cloud/2e1ffddf-daa1-4e57-bc92-d16484ef8e34.png`,label:this.$t(`midjourney.styleTag.polka`),value:`Polka`,advanced:!0},{image:`https://cdn.acedata.cloud/9c2670df-3e39-45a7-ad76-ae17502d018f.png`,label:this.$t(`midjourney.styleTag.latex`),value:`Latex`,advanced:!0},{image:`https://cdn.acedata.cloud/d4de1735-235d-461d-b93f-2bf3c280ccfe.png`,label:this.$t(`midjourney.styleTag.pastel`),value:`Pastel`,advanced:!0},{image:`https://cdn.acedata.cloud/37f26555-f634-4964-8bac-ec8a955273d4.png`,label:this.$t(`midjourney.styleTag.mandala`),value:`Mandala`,advanced:!0},{image:`https://cdn.acedata.cloud/f62aa376-1378-45a6-abd0-71bc7bbe49c7.png`,label:this.$t(`midjourney.styleTag.molecular`),value:`Molecular`,advanced:!0},{image:`https://cdn.acedata.cloud/fc135428-1835-453d-afef-aaf72a7cfcbc.png`,label:this.$t(`midjourney.styleTag.merkaba`),value:`Merkaba`,advanced:!0},{image:`https://cdn.acedata.cloud/5caf594b-0f0c-455f-b8a8-8c15a189d0dc.png`,label:this.$t(`midjourney.styleTag.mitochondria`),value:`Mitochondria`,advanced:!0},{image:`https://cdn.acedata.cloud/088e3067-0abe-4f3d-bcb8-f6937e860d1e.png`,label:this.$t(`midjourney.styleTag.graffiti`),value:`Graffiti`,advanced:!0},{image:`https://cdn.acedata.cloud/06230561-916a-4bc5-ad85-9386cf27bf1c.png`,label:this.$t(`midjourney.styleTag.graphicNovel`),value:`Graphic Novel`,advanced:!0},{image:`https://cdn.acedata.cloud/e47f7931-d588-4c4a-87c8-3f7137e7f727.png`,label:this.$t(`midjourney.styleTag.multidimensional`),value:`Multidimensional`,advanced:!0},{image:`https://cdn.acedata.cloud/d2443c93-3227-4216-afd1-b86287ac5140.png`,label:this.$t(`midjourney.styleTag.nasa`),value:`NASA`,advanced:!0},{image:`https://cdn.acedata.cloud/a86a2f67-273c-4edf-9be9-ceecc983c93d.png`,label:this.$t(`midjourney.styleTag.nebula`),value:`Nebula`,advanced:!0},{image:`https://cdn.acedata.cloud/ad1e588c-5892-48ee-a7c2-103c2b4868fc.png`,label:this.$t(`midjourney.styleTag.neon`),value:`Neon`},{image:`https://cdn.acedata.cloud/5a133976-208e-460f-8296-a4ad19809490.png`,label:this.$t(`midjourney.styleTag.nuclear`),value:`Nuclear`,advanced:!0},{image:`https://cdn.acedata.cloud/c99f5082-314b-49e9-8875-b40319ed3cfc.png`,label:this.$t(`midjourney.styleTag.orbital`),value:`Orbital`,advanced:!0},{image:`https://cdn.acedata.cloud/63809059-6ae6-49ff-ad96-ed4ae45a2464.png`,label:this.$t(`midjourney.styleTag.rayTracing`),value:`Ray Tracing`,advanced:!0},{image:`https://cdn.acedata.cloud/cdcf0c05-e7ad-421e-b513-640bcc3d04cc.png`,label:this.$t(`midjourney.styleTag.realistic`),value:`Realistic`},{image:`https://cdn.acedata.cloud/019dc7be-b0e2-4da2-94d4-191226d58dbf.png`,label:this.$t(`midjourney.styleTag.renaissance`),value:`Renaissance`,advanced:!0},{image:`https://cdn.acedata.cloud/d46d3c03-a924-4a0f-b032-e8dbca6ad37e.png`,label:this.$t(`midjourney.styleTag.retro`),value:`Retro`},{image:`https://cdn.acedata.cloud/bc13e200-6865-474b-8fe4-cf0725cf3caf.png`,label:this.$t(`midjourney.styleTag.risograph`),value:`Risograph`,advanced:!0},{image:`https://cdn.acedata.cloud/f8533acc-807b-4f03-8f39-338ee6ff5d53.png`,label:this.$t(`midjourney.styleTag.origami`),value:`Origami`,advanced:!0},{image:`https://cdn.acedata.cloud/b0ff3593-aef3-4dd2-a5f4-548c6febb2e2.png`,label:this.$t(`midjourney.styleTag.ornamental`),value:`Ornamental`,advanced:!0},{image:`https://cdn.acedata.cloud/002c6a5d-b251-43bb-b713-d133f828c0a4.png`,label:this.$t(`midjourney.styleTag.space`),value:`Space`,advanced:!0},{image:`https://cdn.acedata.cloud/641327df-93cc-4746-a55e-667dbb8c1563.png`,label:this.$t(`midjourney.styleTag.splatterPaint`),value:`Splatter Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/42527f9e-6cf0-40a6-bc9b-361d2baf9bf9.png`,label:this.$t(`midjourney.styleTag.sprayPaint`),value:`Spray Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/98bf8e01-9dd8-434b-81df-77cfd3627243.png`,label:this.$t(`midjourney.styleTag.squiggles`),value:`Squiggles`,advanced:!0},{image:`https://cdn.acedata.cloud/26868352-5d9a-4bcc-9926-166927a2be35.png`,label:this.$t(`midjourney.styleTag.stitching`),value:`Stitching`,advanced:!0},{image:`https://cdn.acedata.cloud/23819218-bdbc-4746-a507-7664836a4f59.png`,label:this.$t(`midjourney.styleTag.veins`),value:`Veins`,advanced:!0},{image:`https://cdn.acedata.cloud/2fd3de3d-7211-4cce-b63b-a857d7621c72.png`,label:this.$t(`midjourney.styleTag.streetArt`),value:`Street Art`,advanced:!0},{image:`https://cdn.acedata.cloud/80422ede-79fb-4149-bd0a-85bf0ac75a3d.png`,label:this.$t(`midjourney.styleTag.surreal`),value:`Surreal`},{image:`https://cdn.acedata.cloud/94956306-55de-470b-8a2a-28354d0e556f.png`,label:this.$t(`midjourney.styleTag.symmetric`),value:`Symmetric`,advanced:!0},{image:`https://cdn.acedata.cloud/0098f2a0-b089-4e64-8a86-ffa137605087.png`,label:this.$t(`midjourney.styleTag.synthWave`),value:`Synth-wave`,advanced:!0},{image:`https://cdn.acedata.cloud/f50d33b2-9c91-4939-8f2d-7b5ce185d138.png`,label:this.$t(`midjourney.styleTag.technological`),value:`Technological`,advanced:!0},{image:`https://cdn.acedata.cloud/a446a6eb-444c-4073-8a8e-6f43e65491c2.png`,label:this.$t(`midjourney.styleTag.tron`),value:`Tron`,advanced:!0},{image:`https://cdn.acedata.cloud/8026ccad-aa11-4b0d-ad81-eb870a695a81.png`,label:this.$t(`midjourney.styleTag.tropical`),value:`Tropical`,advanced:!0},{image:`https://cdn.acedata.cloud/22c16c64-068c-470e-9b80-2849297aad9a.png`,label:this.$t(`midjourney.styleTag.ultraModern`),value:`Ultra Modern`},{image:`https://cdn.acedata.cloud/f67bd4b6-3f43-4da8-bdcb-67cd39cb38f9.png`,label:this.$t(`midjourney.styleTag.wormhole`),value:`Wormhole`,advanced:!0},{image:`https://cdn.acedata.cloud/2e2a1ca9-8791-41c6-9ff0-0ac21a13d1c5.png`,label:this.$t(`midjourney.styleTag.wrinkled`),value:`Wrinkled`,advanced:!0},{image:`https://cdn.acedata.cloud/3507c78d-a065-462c-a17c-fd5ed4677644.png`,label:this.$t(`midjourney.styleTag.volcanic`),value:`Volcanic`,advanced:!0},{image:`https://cdn.acedata.cloud/69263783-0610-45b0-9ec4-acac961da092.png`,label:this.$t(`midjourney.styleTag.wetPaint`),value:`Wet Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/9022fc82-d6f7-47e2-90b1-ad96fbba5257.png`,label:this.$t(`midjourney.styleTag.wildWest`),value:`Wild West`,advanced:!0},{image:`https://cdn.acedata.cloud/23de882d-4e5d-40b5-9f00-d0573c443212.png`,label:this.$t(`midjourney.styleTag.wind`),value:`Wind`,advanced:!0},{image:`https://cdn.acedata.cloud/e3a58af1-79bc-48f3-871c-36472da2584b.png`,label:this.$t(`midjourney.styleTag.miniatureFaking`),value:`Miniature Faking`,advanced:!0}]},lighting:{displayName:this.$t(`midjourney.styleCategory.lighting`),items:[{image:`https://cdn.acedata.cloud/a4b9110f-e838-4c52-8ab8-f2637ea753df.png`,label:this.$t(`midjourney.styleTag.accentLighting`),value:`Accent Lighting`},{image:`https://cdn.acedata.cloud/c4c16a69-28d7-4b38-8ea2-3ce49d5c6b07.png`,label:this.$t(`midjourney.styleTag.backlight`),value:`Backlight`},{image:`https://cdn.acedata.cloud/7fd2cd5c-7671-4b40-85a0-230de9c37234.png`,label:this.$t(`midjourney.styleTag.blacklight`),value:`Blacklight`,advanced:!0},{image:`https://cdn.acedata.cloud/a08bff6e-8a0f-4d56-aa91-576f0a9921f2.png`,label:this.$t(`midjourney.styleTag.goldenHourLight`),value:`Golden hour light`,advanced:!0},{image:`https://cdn.acedata.cloud/3cd28696-493f-4b3e-9187-9d1a4c17e95b.png`,label:this.$t(`midjourney.styleTag.candlelight`),value:`Candlelight`},{image:`https://cdn.acedata.cloud/58c9a17e-f7d5-4481-abc8-9e9b66609a4d.png`,label:this.$t(`midjourney.styleTag.concertLighting`),value:`Concert Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/efb8893c-8bd6-4c7d-8e45-6e0626f69479.png`,label:this.$t(`midjourney.styleTag.crepuscularRays`),value:`Crepuscular Rays`,advanced:!0},{image:`https://cdn.acedata.cloud/27b90e83-09b0-4339-9b2c-48fe6fe45bdd.png`,label:this.$t(`midjourney.styleTag.directSunlight`),value:`Direct Sunlight`},{image:`https://cdn.acedata.cloud/d33cb17d-e2a5-4ca3-b68a-93904d2618d7.png`,label:this.$t(`midjourney.styleTag.dust`),value:`Dust`,advanced:!0},{image:`https://cdn.acedata.cloud/3af133d0-5a86-45a9-a16e-f23e6cc68b24.png`,label:this.$t(`midjourney.styleTag.studioLighting`),value:`Studio lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/6bc889b1-a563-4890-9117-7d3ded276caa.png`,label:this.$t(`midjourney.styleTag.rimLight`),value:`Rim light`,advanced:!0},{image:`https://cdn.acedata.cloud/d770265a-066b-413f-a405-a52d68e2f1c7.png`,label:this.$t(`midjourney.styleTag.volumetricLighting`),value:`Volumetric Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/7c83560a-6837-43b2-b296-f74db549accf.png`,label:this.$t(`midjourney.styleTag.fluorescent`),value:`Fluorescent`},{image:`https://cdn.acedata.cloud/6ffc8688-dfd0-4ede-a6bc-91bf8679adc9.png`,label:this.$t(`midjourney.styleTag.glowing`),value:`Glowing`,advanced:!0},{image:`https://cdn.acedata.cloud/63bc0645-ab94-4327-84b8-e226020c6c0f.png`,label:this.$t(`midjourney.styleTag.glowStick`),value:`Glow-stick`,advanced:!0},{image:`https://cdn.acedata.cloud/824111e9-7ebf-47ec-80ef-a6ad0a1d949b.png`,label:this.$t(`midjourney.styleTag.glowRadioactive`),value:`Glow Radioactive`,advanced:!0},{image:`https://cdn.acedata.cloud/9d23de16-57b3-42be-89d2-478de2666483.png`,label:this.$t(`midjourney.styleTag.lavaGlow`),value:`Lava Glow`,advanced:!0},{image:`https://cdn.acedata.cloud/d801ee47-02a0-455d-b333-76ad73a4fdcd.png`,label:this.$t(`midjourney.styleTag.moonlight`),value:`Moonlight`},{image:`https://cdn.acedata.cloud/6d1400a8-e168-46c9-89e8-5e701f8824b2.png`,label:this.$t(`midjourney.styleTag.naturalLighting`),value:`Natural Lighting`},{image:`https://cdn.acedata.cloud/9bb6c4ce-9076-41eb-8ace-43a4fa7e0c03.png`,label:this.$t(`midjourney.styleTag.neonLamp`),value:`Neon Lamp`},{image:`https://cdn.acedata.cloud/ac3fe310-3639-4fc0-b56e-4d69278bc2ca.png`,label:this.$t(`midjourney.styleTag.nightclubLighting`),value:`Nightclub Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/c9331a92-87d2-43b5-9319-24c8629bffd1.png`,label:this.$t(`midjourney.styleTag.nuclearWasteGlo`),value:`Nuclear Waste Glo`,advanced:!0},{image:`https://cdn.acedata.cloud/40ccdbfb-84a7-49f7-9999-92db58802c65.png`,label:this.$t(`midjourney.styleTag.quantumDot`),value:`Quantum Dot`,advanced:!0},{image:`https://cdn.acedata.cloud/d5411604-4e66-4187-9b37-48eb683be65e.png`,label:this.$t(`midjourney.styleTag.spotlight`),value:`Spotlight`},{image:`https://cdn.acedata.cloud/b1f16a4b-fb3d-4783-9c66-c3567e79baeb.png`,label:this.$t(`midjourney.styleTag.edgeLight`),value:`Edge light`,advanced:!0},{image:`https://cdn.acedata.cloud/97fecbc1-a164-48e2-bdf0-c69975c16d63.png`,label:this.$t(`midjourney.styleTag.coldLight`),value:`Cold light`},{image:`https://cdn.acedata.cloud/7087f2fe-f48c-4b72-95bc-c697b56e8b0e.png`,label:this.$t(`midjourney.styleTag.keyLighting`),value:`Key lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/5ab92c7e-bca1-4fbc-8975-6d9fb3f15626.png`,label:this.$t(`midjourney.styleTag.ambientLight`),value:`Ambient Light`,advanced:!0},{image:`https://cdn.acedata.cloud/ac80d283-5532-4664-bbe5-42fbb9582a63.png`,label:this.$t(`midjourney.styleTag.highKeyLighting`),value:`High key lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/add3524d-fc90-45a8-9edc-348bb1f79075.png`,label:this.$t(`midjourney.styleTag.lowKeyLighting`),value:`Low key lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/42174ff8-3080-4004-9ae2-c2ff919e1145.png`,label:this.$t(`midjourney.styleTag.motivatedLighting`),value:`Motivated lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/09f3d509-a366-44dc-be3b-b39712d0fac1.png`,label:this.$t(`midjourney.styleTag.3PointLighting`),value:`3 point lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/794a114e-cd4d-4e83-a187-5e979296d125.png`,label:this.$t(`midjourney.styleTag.strobeLight`),value:`Strobe light`,advanced:!0},{image:`https://cdn.acedata.cloud/9e6ec476-3ac8-4246-964f-a1d89a6d19e9.png`,label:this.$t(`midjourney.styleTag.sunLight`),value:`Sun light`},{image:`https://cdn.acedata.cloud/4360a40b-2126-43c2-be8e-e482978e1ea6.png`,label:this.$t(`midjourney.styleTag.ultraviolet`),value:`Ultraviolet`,advanced:!0},{image:`https://cdn.acedata.cloud/8b6bea86-9ed1-4fc8-9040-8fc2b64abbff.png`,label:this.$t(`midjourney.styleTag.beautifulLighting`),value:`Beautiful Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/a8d1f754-fb35-433d-8a36-e073b0fe6fa2.png`,label:this.$t(`midjourney.styleTag.moodyLighting`),value:`Moody Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/77270807-ca3b-4d02-a9b4-badf8aa48c36.png`,label:this.$t(`midjourney.styleTag.softLighting`),value:`Soft Lighting`}]},artists:{displayName:this.$t(`midjourney.styleCategory.artists`),items:[{image:`https://cdn.acedata.cloud/160cfc29-f258-4795-b663-f687adba19bf.png`,label:this.$t(`midjourney.styleTag.michelangelo`),value:`Michelangelo`},{image:`https://cdn.acedata.cloud/ed0bf2ad-138d-4c8d-bce9-a98299b1ee83.png`,label:this.$t(`midjourney.styleTag.monet`),value:`Monet`},{image:`https://cdn.acedata.cloud/58d9b130-e7b2-4eb8-a71e-7108b3bd4c26.png`,label:this.$t(`midjourney.styleTag.paulCezanne`),value:`Paul Cezanne`,advanced:!0},{image:`https://cdn.acedata.cloud/1247615a-6e75-49e6-842a-b0fb84016d3d.png`,label:this.$t(`midjourney.styleTag.markRothko`),value:`Mark Rothko`,advanced:!0},{image:`https://cdn.acedata.cloud/a7d9d9dd-8add-43d3-942e-8d1199fe277f.png`,label:this.$t(`midjourney.styleTag.paulKlee`),value:`Paul Klee`,advanced:!0},{image:`https://cdn.acedata.cloud/caf5701a-b652-4fab-8467-0c00303d01f3.png`,label:this.$t(`midjourney.styleTag.picasso`),value:`Picasso`},{image:`https://cdn.acedata.cloud/fbb63634-659a-4d2d-bc7b-0fb3399f7061.png`,label:this.$t(`midjourney.styleTag.pietMondrian`),value:`Piet Mondrian`,advanced:!0},{image:`https://cdn.acedata.cloud/29fb173b-17b4-4b05-a63c-e31ce161fe8c.png`,label:this.$t(`midjourney.styleTag.pierreAugusteRer`),value:`Pierre Auguste Rer`,advanced:!0},{image:`https://cdn.acedata.cloud/556f8a48-0b12-49a7-b150-aed40278d3f6.png`,label:this.$t(`midjourney.styleTag.rembrandt`),value:`Rembrandt`},{image:`https://cdn.acedata.cloud/b44d947e-2a14-4db2-880d-332c1aeeb303.png`,label:this.$t(`midjourney.styleTag.reneMagritte`),value:`Rene Magritte`,advanced:!0},{image:`https://cdn.acedata.cloud/0cfcda4a-7e7f-4ec4-ad4f-b4877a900a50.png`,label:this.$t(`midjourney.styleTag.royLichtenstein`),value:`Roy Lichtenstein`,advanced:!0},{image:`https://cdn.acedata.cloud/e592bf88-d9b8-4787-88dd-9ff8e7e9268c.png`,label:this.$t(`midjourney.styleTag.salvadorDali`),value:`Salvador Dali`,advanced:!0},{image:`https://cdn.acedata.cloud/3bbde342-565b-4ea0-8a4c-42b3c109c205.png`,label:this.$t(`midjourney.styleTag.sandroBotticelli`),value:`Sandro Botticelli`,advanced:!0},{image:`https://cdn.acedata.cloud/bfdf6d50-24ab-4b5c-a3de-c8d77d858b04.png`,label:this.$t(`midjourney.styleTag.takashiMurakami`),value:`Takashi Murakami`,advanced:!0},{image:`https://cdn.acedata.cloud/bc67c0ba-614f-46f0-a6ec-047fa561fc01.png`,label:this.$t(`midjourney.styleTag.vanGogh`),value:`Van Gogh`},{image:`https://cdn.acedata.cloud/984a18fa-8050-4084-95d5-732b7ede8e37.png`,label:this.$t(`midjourney.styleTag.wassilyKandinsky`),value:`Wassily Kandinsky`,advanced:!0},{image:`https://cdn.acedata.cloud/48bce45c-6b25-4678-9be8-40707c8e5f43.png`,label:this.$t(`midjourney.styleTag.matCollishaw`),value:`Mat Collishaw`,advanced:!0},{image:`https://cdn.acedata.cloud/6b2851d0-ec8d-4c07-86ed-1eafdd70e1fe.png`,label:this.$t(`midjourney.styleTag.yayoiKusama`),value:`Yayoi Kusama`,advanced:!0},{image:`https://cdn.acedata.cloud/9d691d5c-5560-409b-b998-c979b29902e6.png`,label:this.$t(`midjourney.styleTag.igorMorski`),value:`Igor Morski`,advanced:!0},{image:`https://cdn.acedata.cloud/950cb143-ab40-4bee-80f7-092d0c2a7bc4.png`,label:this.$t(`midjourney.styleTag.shinkaiMakoto`),value:`Shinkai Makoto`},{image:`https://cdn.acedata.cloud/94adf414-a1cc-4b84-b52d-18cd2586df17.png`,label:this.$t(`midjourney.styleTag.pixar`),value:`Pixar`},{image:`https://cdn.acedata.cloud/ccd4d148-e332-4d7e-bbe6-9f1dd68082a8.png`,label:this.$t(`midjourney.styleTag.kyotoAnime`),value:`Kyoto Anime`},{image:`https://cdn.acedata.cloud/b5f5f99a-be40-4fa7-a86a-fd51578a4052.png`,label:this.$t(`midjourney.styleTag.jerryPinkney`),value:`Jerry Pinkney`,advanced:!0},{image:`https://cdn.acedata.cloud/7a4dba74-21ad-4088-89da-6a48104d811d.png`,label:this.$t(`midjourney.styleTag.hayaoMiyazaki`),value:`Hayao Miyazaki`},{image:`https://cdn.acedata.cloud/28477b7e-85d4-4803-b525-938aa2ce3383.png`,label:this.$t(`midjourney.styleTag.beatrixPotter`),value:`Beatrix Potter`,advanced:!0},{image:`https://cdn.acedata.cloud/13854cb8-c478-43c9-9f51-8ac1933b1498.png`,label:this.$t(`midjourney.styleTag.jonKlassen`),value:`Jon Klassen`,advanced:!0},{image:`https://cdn.acedata.cloud/6685c7e0-ea11-488b-a8a0-610032020dfb.png`,label:this.$t(`midjourney.styleTag.kaySage`),value:`Kay Sage`,advanced:!0},{image:`https://cdn.acedata.cloud/cb0c3490-dcd4-488f-96e0-45b9ee671182.png`,label:this.$t(`midjourney.styleTag.jeffreyCatherineJones`),value:`Jeffrey Catherine Jones`,advanced:!0},{image:`https://cdn.acedata.cloud/72f000c5-d8d6-4015-acd4-79961e53ac50.png`,label:this.$t(`midjourney.styleTag.yaacovAgam`),value:`Yaacov Agam`,advanced:!0},{image:`https://cdn.acedata.cloud/f1bd0c4d-af96-4785-99bb-3a70b7f80834.png`,label:this.$t(`midjourney.styleTag.davidHockney`),value:`David Hockney`,advanced:!0},{image:`https://cdn.acedata.cloud/ad0e89d9-214a-4599-90f1-ee5dc0b5592d.png`,label:this.$t(`midjourney.styleTag.victorMoscoso`),value:`Victor Moscoso`,advanced:!0},{image:`https://cdn.acedata.cloud/c3b004e0-f583-4a75-b6cf-0cc60c89b2cf.png`,label:this.$t(`midjourney.styleTag.raphaelite`),value:`Raphaelite`},{image:`https://cdn.acedata.cloud/9c59d174-1e1f-4ef9-b657-1beb57f58088.png`,label:this.$t(`midjourney.styleTag.stefanKoidl`),value:`Stefan Koidl`,advanced:!0},{image:`https://cdn.acedata.cloud/09485865-35a8-4456-a34c-65a8a1c8d2c2.png`,label:this.$t(`midjourney.styleTag.suiIshida`),value:`Sui Ishida`,advanced:!0},{image:`https://cdn.acedata.cloud/31442dfd-d6a8-4674-aade-8543190251b4.png`,label:this.$t(`midjourney.styleTag.swoon`),value:`Swoon`,advanced:!0},{image:`https://cdn.acedata.cloud/842beff4-d333-4388-9880-eec6fd4baa6c.png`,label:this.$t(`midjourney.styleTag.tashaTudor`),value:`Tasha Tudor`,advanced:!0},{image:`https://cdn.acedata.cloud/68c419f3-6f2c-4fbd-a251-ce289d4a9890.png`,label:this.$t(`midjourney.styleTag.tintoretto`),value:`Tintoretto`,advanced:!0},{image:`https://cdn.acedata.cloud/9a3d95da-5019-4fdd-83b9-ec334e609c9d.png`,label:this.$t(`midjourney.styleTag.theodoreRobinsor`),value:`Theodore Robinsor`,advanced:!0},{image:`https://cdn.acedata.cloud/e11cb0a6-2f0e-4d8d-aa0e-8b7378423790.png`,label:this.$t(`midjourney.styleTag.titian`),value:`Titian`,advanced:!0},{image:`https://cdn.acedata.cloud/d3e59ba8-10e6-4d58-a732-e35d579cd3fc.png`,label:this.$t(`midjourney.styleTag.wlop`),value:`WLOP`,advanced:!0},{image:`https://cdn.acedata.cloud/70f22f51-9328-4070-b9aa-578db7d4c502.png`,label:this.$t(`midjourney.styleTag.yanjunCheng`),value:`Yanjun Cheng`,advanced:!0},{image:`https://cdn.acedata.cloud/e1203ff8-cb64-409e-8ba6-06f89645a843.png`,label:this.$t(`midjourney.styleTag.yojiShinkawa`),value:`Yoji Shinkawa`,advanced:!0},{image:`https://cdn.acedata.cloud/6b6d7746-e38b-44db-98d8-51d59ed7531f.png`,label:this.$t(`midjourney.styleTag.zhelongXu`),value:`Zhelong Xu`,advanced:!0},{image:`https://cdn.acedata.cloud/13b9621b-ff7e-4377-9550-0ca82d0f1afb.png`,label:this.$t(`midjourney.styleTag.alenaAenami`),value:`Alena Aenami`,advanced:!0},{image:`https://cdn.acedata.cloud/26d30765-3201-49e9-a4a9-c7c3b8c071ef.png`,label:this.$t(`midjourney.styleTag.anntonFadeevi`),value:`Annton Fadeevi`,advanced:!0},{image:`https://cdn.acedata.cloud/9b4c2bc7-16a8-4807-ad0e-ee9bdc80f1a0.png`,label:this.$t(`midjourney.styleTag.charlieBowater`),value:`Charlie Bowater`,advanced:!0},{image:`https://cdn.acedata.cloud/2f50d67e-3d7e-4e06-a198-5926ce7f357d.png`,label:this.$t(`midjourney.styleTag.coryLoftis`),value:`Cory Loftis`,advanced:!0},{image:`https://cdn.acedata.cloud/47823270-16a6-49cc-a11d-99122a037c68.png`,label:this.$t(`midjourney.styleTag.fenghuaZhong`),value:`Fenghua Zhong`,advanced:!0},{image:`https://cdn.acedata.cloud/1a66b5fd-cbf9-4e09-b817-6effed77b5c2.png`,label:this.$t(`midjourney.styleTag.gregRutkowski`),value:`Greg Rutkowski`,advanced:!0},{image:`https://cdn.acedata.cloud/d05a459a-132b-45a8-b2f3-a978eeeb44af.png`,label:this.$t(`midjourney.styleTag.hongSoonsang`),value:`Hong SoonSang`,advanced:!0},{image:`https://cdn.acedata.cloud/020dbf7f-f026-47bd-90f1-4049407409a1.png`,label:this.$t(`midjourney.styleTag.dennisStock`),value:`Dennis Stock`,advanced:!0},{image:`https://cdn.acedata.cloud/9c1ccc1d-121e-4182-aea0-04eac840869d.png`,label:this.$t(`midjourney.styleTag.michalLisowski`),value:`Michal Lisowski`,advanced:!0},{image:`https://cdn.acedata.cloud/3292404b-e654-4c06-bcd6-5e47a2adf329.png`,label:this.$t(`midjourney.styleTag.paulLehr`),value:`Paul Lehr`,advanced:!0},{image:`https://cdn.acedata.cloud/079c6053-23ad-4dc9-8166-64c5fe2f1e1a.png`,label:this.$t(`midjourney.styleTag.rossTran`),value:`Ross Tran`,advanced:!0},{image:`https://cdn.acedata.cloud/0f267ba1-c031-4008-9ead-630a4bec886a.png`,label:this.$t(`midjourney.styleTag.antonPieck`),value:`Anton Pieck`,advanced:!0},{image:`https://cdn.acedata.cloud/574dd25f-2116-4718-aed6-7d9be3636e22.png`,label:this.$t(`midjourney.styleTag.carlBarks`),value:`Carl Barks`,advanced:!0},{image:`https://cdn.acedata.cloud/38dcdfb5-0003-46f4-8c9d-5857c95f9e59.png`,label:this.$t(`midjourney.styleTag.alphonseMucha`),value:`Alphonse Mucha`,advanced:!0},{image:`https://cdn.acedata.cloud/65f2af96-e875-41f8-9797-3d34dbdf0ea4.png`,label:this.$t(`midjourney.styleTag.andyWarhol`),value:`Andy Warhol`,advanced:!0},{image:`https://cdn.acedata.cloud/801224a0-da77-4095-8799-d288d1ec3c3d.png`,label:this.$t(`midjourney.styleTag.banksy`),value:`Banksy`,advanced:!0},{image:`https://cdn.acedata.cloud/925c6c86-9b69-45ce-a10d-a2c64d4e0db2.png`,label:this.$t(`midjourney.styleTag.franciscoDeGoya`),value:`Francisco De Goya`,advanced:!0},{image:`https://cdn.acedata.cloud/fbb81b10-c579-4dcc-a76a-c099dc0b6c20.png`,label:this.$t(`midjourney.styleTag.caravaggio`),value:`Caravaggio`,advanced:!0},{image:`https://cdn.acedata.cloud/116efedd-42ea-404e-959e-607a9766001a.png`,label:this.$t(`midjourney.styleTag.diegoRivera`),value:`Diego Rivera`,advanced:!0},{image:`https://cdn.acedata.cloud/6f2c1d37-f8ae-4d72-8db1-d9fb04df7114.png`,label:this.$t(`midjourney.styleTag.davidHockney`),value:`David Hockney`,advanced:!0},{image:`https://cdn.acedata.cloud/b74b6b97-f6d7-4a34-840c-a81c69b9d941.png`,label:this.$t(`midjourney.styleTag.marcChagall`),value:`Marc Chagall`},{image:`https://cdn.acedata.cloud/f18ac9a3-a986-4670-813b-6fb81060ed48.png`,label:this.$t(`midjourney.styleTag.edgarDegas`),value:`Edgar Degas`,advanced:!0},{image:`https://cdn.acedata.cloud/275b32e5-9995-46cc-babc-43a0d1aa5d19.png`,label:this.$t(`midjourney.styleTag.eugeneDelacroix`),value:`Eugene Delacroix`,advanced:!0},{image:`https://cdn.acedata.cloud/500edde5-973c-4ba4-aae1-1a3d53a9b27f.png`,label:this.$t(`midjourney.styleTag.francisBacon`),value:`Francis Bacon`,advanced:!0},{image:`https://cdn.acedata.cloud/f7b5cc34-a796-4f45-823c-07122ec46ef6.png`,label:this.$t(`midjourney.styleTag.fridaKahlo`),value:`Frida Kahlo`,advanced:!0},{image:`https://cdn.acedata.cloud/7e41ead3-f54f-4d5f-8353-b2770d75c41b.png`,label:this.$t(`midjourney.styleTag.garaldBrom`),value:`Garald Brom`,advanced:!0},{image:`https://cdn.acedata.cloud/4a46247a-cd9b-48fd-b247-8268d9a891bf.png`,label:this.$t(`midjourney.styleTag.gustavKlimt`),value:`Gustav Klimt`,advanced:!0},{image:`https://cdn.acedata.cloud/3793eae9-61e9-4f16-9c0c-a77c194c45bc.png`,label:this.$t(`midjourney.styleTag.henriMatisse`),value:`Henri Matisse`,advanced:!0},{image:`https://cdn.acedata.cloud/dffa261d-755b-483d-88b7-058c09efd6af.png`,label:this.$t(`midjourney.styleTag.jackKirby`),value:`Jack Kirby`,advanced:!0},{image:`https://cdn.acedata.cloud/4cda1423-455b-463f-981d-b2af8ae1dd95.png`,label:this.$t(`midjourney.styleTag.jacksonPollock`),value:`Jackson Pollock`,advanced:!0},{image:`https://cdn.acedata.cloud/d318e4bc-d69f-4e7a-b6ae-49557e3cd569.png`,label:this.$t(`midjourney.styleTag.johannesVermeer`),value:`Johannes Vermeer`,advanced:!0},{image:`https://cdn.acedata.cloud/4ee7f9d2-01c0-4043-90f3-0174878a2ce7.png`,label:this.$t(`midjourney.styleTag.jeanMichelBasquiat`),value:`Jean Michel Basquiat`,advanced:!0},{image:`https://cdn.acedata.cloud/f60eb307-78b3-4f5e-bfd9-07603bc383c9.png`,label:this.$t(`midjourney.styleTag.marcelDuchamp`),value:`Marcel Duchamp`,advanced:!0}]},material:{displayName:this.$t(`midjourney.styleCategory.material`),items:[{image:`https://cdn.acedata.cloud/f2ce056d-6a89-4b40-b026-5a60cbb1efda.png`,label:this.$t(`midjourney.styleTag.aluminum`),value:`Aluminum`},{image:`https://cdn.acedata.cloud/069c6b1f-0666-4df6-bde6-a1729b33ade1.png`,label:this.$t(`midjourney.styleTag.brick`),value:`Brick`},{image:`https://cdn.acedata.cloud/39f2cbb9-be6a-4669-a7c3-b01dfbb2b563.png`,label:this.$t(`midjourney.styleTag.bronze`),value:`Bronze`},{image:`https://cdn.acedata.cloud/42b30429-2733-41a5-aa4c-e3e0cd50528a.png`,label:this.$t(`midjourney.styleTag.carbonFiber`),value:`Carbon Fiber`},{image:`https://cdn.acedata.cloud/90eeef27-6bdb-4f36-8e17-f1bb49881258.png`,label:this.$t(`midjourney.styleTag.cardboard`),value:`Cardboard`},{image:`https://cdn.acedata.cloud/470235fb-19a8-4ba8-ac9b-236abecf0985.png`,label:this.$t(`midjourney.styleTag.cellulose`),value:`Cellulose`},{image:`https://cdn.acedata.cloud/a8621e16-b046-4300-ab24-09602f734cb9.png`,label:this.$t(`midjourney.styleTag.ceramic`),value:`Ceramic`},{image:`https://cdn.acedata.cloud/af14acf6-92ff-42f8-ae14-ce4b63237bd5.png`,label:this.$t(`midjourney.styleTag.cotton`),value:`Cotton`},{image:`https://cdn.acedata.cloud/d93e6f18-3729-46cc-aa96-9662f2abae3d.png`,label:this.$t(`midjourney.styleTag.fabric`),value:`Fabric`},{image:`https://cdn.acedata.cloud/660533aa-dac7-4968-b27e-0f085b9a67a5.png`,label:this.$t(`midjourney.styleTag.fiberOptic`),value:`Fiber Optic`},{image:`https://cdn.acedata.cloud/94be6d51-5cb3-4362-8274-7d833a88bb79.png`,label:this.$t(`midjourney.styleTag.foil`),value:`Foil`},{image:`https://cdn.acedata.cloud/b89e102d-2fef-4619-8427-94c6bfbeb832.png`,label:this.$t(`midjourney.styleTag.yarn`),value:`Yarn`,advanced:!0},{image:`https://cdn.acedata.cloud/b72ef152-11a7-4c51-b6b4-dc4308995f9e.png`,label:this.$t(`midjourney.styleTag.glass`),value:`Glass`},{image:`https://cdn.acedata.cloud/bca80e91-46ba-4793-b29c-1b5c47b201d7.png`,label:this.$t(`midjourney.styleTag.gold`),value:`Gold`,advanced:!0},{image:`https://cdn.acedata.cloud/3d1e4da5-404b-4f89-8e06-988de47208bd.png`,label:this.$t(`midjourney.styleTag.gummies`),value:`Gummies`,advanced:!0},{image:`https://cdn.acedata.cloud/8afba6b0-a8a5-49c9-bfc5-ebd7b0e12443.png`,label:this.$t(`midjourney.styleTag.latex`),value:`Latex`},{image:`https://cdn.acedata.cloud/d5c39f1c-1be0-4065-80af-e1cb4e627cf2.png`,label:this.$t(`midjourney.styleTag.leather`),value:`Leather`},{image:`https://cdn.acedata.cloud/6e41e8bd-cb0b-4504-8655-a3b1b32ac11c.png`,label:this.$t(`midjourney.styleTag.magma`),value:`Magma`},{image:`https://cdn.acedata.cloud/f816fffa-4a7f-4d60-afcb-e19b0c36d176.png`,label:this.$t(`midjourney.styleTag.metallic`),value:`Metallic`},{image:`https://cdn.acedata.cloud/74c9fe01-37e6-4d05-831a-5778eb34c521.png`,label:this.$t(`midjourney.styleTag.nickel`),value:`Nickel`,advanced:!0},{image:`https://cdn.acedata.cloud/85186eac-1806-4739-9289-8d76aac359b3.png`,label:this.$t(`midjourney.styleTag.nylon`),value:`Nylon`},{image:`https://cdn.acedata.cloud/355d9507-62fa-4c69-986f-def2f2f930c5.png`,label:this.$t(`midjourney.styleTag.paper`),value:`Paper`},{image:`https://cdn.acedata.cloud/6c2626b2-191e-4b85-a97d-e561a2b5c79b.png`,label:this.$t(`midjourney.styleTag.plastic`),value:`Plastic`,advanced:!0},{image:`https://cdn.acedata.cloud/ff0d301d-8181-463c-a276-9b4805321afd.png`,label:this.$t(`midjourney.styleTag.quartz`),value:`Quartz`},{image:`https://cdn.acedata.cloud/7b90754d-2fa5-490e-a73b-d2887525d2e6.png`,label:this.$t(`midjourney.styleTag.wrap`),value:`Wrap`,advanced:!0},{image:`https://cdn.acedata.cloud/7411e62a-546e-4cd2-8446-73c4fb8f103b.png`,label:this.$t(`midjourney.styleTag.wooden`),value:`Wooden`},{image:`https://cdn.acedata.cloud/44e8830f-4be2-471d-a9d4-aaf4913e7451.png`,label:this.$t(`midjourney.styleTag.slime`),value:`Slime`,advanced:!0},{image:`https://cdn.acedata.cloud/16b10e75-a7e7-4b87-804a-2bfc9c18096f.png`,label:this.$t(`midjourney.styleTag.engraving`),value:`Engraving`},{image:`https://cdn.acedata.cloud/b66ec7e2-fd82-4edd-a523-34b87872f544.png`,label:this.$t(`midjourney.styleTag.ivory`),value:`Ivory`},{image:`https://cdn.acedata.cloud/098b954d-1197-414e-b4bd-68e3928b9eb3.png`,label:this.$t(`midjourney.styleTag.basalt`),value:`Basalt`,advanced:!0},{image:`https://cdn.acedata.cloud/b948dd7d-939b-48b5-b37c-09e0ebd6ede6.png`,label:this.$t(`midjourney.styleTag.pine`),value:`Pine`,advanced:!0},{image:`https://cdn.acedata.cloud/4c56fc7d-94c8-4055-9d6e-3bc6662c92d7.png`,label:this.$t(`midjourney.styleTag.diamond`),value:`Diamond`},{image:`https://cdn.acedata.cloud/70de6b75-bb29-4b2a-ae8a-016db33c8184.png`,label:this.$t(`midjourney.styleTag.amethyst`),value:`Amethyst`,advanced:!0},{image:`https://cdn.acedata.cloud/8d2b60e1-c98c-4de2-8a67-4b10c0d2482a.png`,label:this.$t(`midjourney.styleTag.ruby`),value:`Ruby`,advanced:!0},{image:`https://cdn.acedata.cloud/c0f01b99-32a6-4c34-a2d8-448fab08f126.png`,label:this.$t(`midjourney.styleTag.highPolished`),value:`High polished`,advanced:!0},{image:`https://cdn.acedata.cloud/5091142a-3959-40f3-9ea5-f41a29584735.png`,label:this.$t(`midjourney.styleTag.brushed`),value:`Brushed`,advanced:!0},{image:`https://cdn.acedata.cloud/3f84ddc5-5afe-41d1-85cc-2ded7a44d859.png`,label:this.$t(`midjourney.styleTag.matte`),value:`Matte`,advanced:!0},{image:`https://cdn.acedata.cloud/655f5114-b3dd-4b9a-a3cb-94a1a814fb11.png`,label:this.$t(`midjourney.styleTag.satin`),value:`Satin`,advanced:!0},{image:`https://cdn.acedata.cloud/6ec4178e-86e6-4026-aa86-e14eb4e92097.png`,label:this.$t(`midjourney.styleTag.sandblasted`),value:`Sandblasted`,advanced:!0},{image:`https://cdn.acedata.cloud/1c9a4277-5550-4cd4-852a-c785d8505a0f.png`,label:this.$t(`midjourney.styleTag.ebony`),value:`Ebony`,advanced:!0}]},camera:{displayName:this.$t(`midjourney.styleCategory.camera`),items:[{image:`https://cdn.acedata.cloud/9bcf851a-7b94-4554-864b-edcbe0f67017.png`,label:this.$t(`midjourney.styleTag.bokeh`),value:`Bokeh`},{image:`https://cdn.acedata.cloud/f4599568-5889-4da9-8852-8b5361c54412.png`,label:this.$t(`midjourney.styleTag.aerialView`),value:`Aerial view`},{image:`https://cdn.acedata.cloud/bea180e2-9078-42bd-9392-b0ee2b372430.png`,label:this.$t(`midjourney.styleTag.shotByDslr`),value:`Shot by DSLR`,advanced:!0},{image:`https://cdn.acedata.cloud/42444cbd-5442-4093-8911-645272c08863.png`,label:this.$t(`midjourney.styleTag.360Panorama`),value:`360Panorama`},{image:`https://cdn.acedata.cloud/99875464-0be7-44da-adf5-958d2c73eb31.png`,label:this.$t(`midjourney.styleTag.panorama`),value:`Panorama`},{image:`https://cdn.acedata.cloud/e3c3a204-9210-44da-b6fc-5f9a1fea52e0.png`,label:this.$t(`midjourney.styleTag.telephotoLens`),value:`Telephoto Lens`},{image:`https://cdn.acedata.cloud/7bd1f91d-cd6d-48d1-9f07-68382a54a552.png`,label:this.$t(`midjourney.styleTag.macroShot`),value:`Macro shot`},{image:`https://cdn.acedata.cloud/09aca457-2d96-4f60-b5ec-9fedf7a3fcb9.png`,label:this.$t(`midjourney.styleTag.microscopy`),value:`Microscopy`},{image:`https://cdn.acedata.cloud/fb39b4ab-d728-456b-8905-b4c0302f4094.png`,label:this.$t(`midjourney.styleTag.magnification`),value:`Magnification`},{image:`https://cdn.acedata.cloud/b9956b79-70b1-44af-bca3-5eddd412615a.png`,label:this.$t(`midjourney.styleTag.closeUp`),value:`Close up`},{image:`https://cdn.acedata.cloud/2c6b2c92-f790-44e1-bc65-b3182aa484bd.png`,label:this.$t(`midjourney.styleTag.fullBody`),value:`Full body`},{image:`https://cdn.acedata.cloud/05c7f5a8-4a79-4a1c-a4a9-792862ad118c.png`,label:this.$t(`midjourney.styleTag.portrait`),value:`Portrait`},{image:`https://cdn.acedata.cloud/aeb48a08-f0b6-47db-8c5d-ae6f0f92b93d.png`,label:this.$t(`midjourney.styleTag.profile`),value:`Profile`},{image:`https://cdn.acedata.cloud/dd655235-8f80-43b2-823f-bdb44864bee1.png`,label:this.$t(`midjourney.styleTag.pinholeLens`),value:`Pinhole Lens`,advanced:!0},{image:`https://cdn.acedata.cloud/7ad3f221-96f6-4014-953e-853c429d5d57.png`,label:this.$t(`midjourney.styleTag.wideView`),value:`Wide view`},{image:`https://cdn.acedata.cloud/698fbcc7-5ad1-40cb-a926-95189dc9e59b.png`,label:this.$t(`midjourney.styleTag.telescopeLens`),value:`Telescope Lens`,advanced:!0},{image:`https://cdn.acedata.cloud/2e41309b-f006-483f-9843-e15f4ced6be7.png`,label:this.$t(`midjourney.styleTag.satelliteImagery`),value:`Satellite Imagery`},{image:`https://cdn.acedata.cloud/79ad137d-3015-4335-a4e3-2ed29f9b850b.png`,label:this.$t(`midjourney.styleTag.headshot`),value:`Headshot`},{image:`https://cdn.acedata.cloud/d06164a9-ba01-457f-b8cc-f0b38a87b4d5.png`,label:this.$t(`midjourney.styleTag.extremeCloseup`),value:`Extreme closeup`,advanced:!0},{image:`https://cdn.acedata.cloud/b8e10ef3-b37c-45f0-b930-be729c8d17a1.png`,label:this.$t(`midjourney.styleTag.ultrawideShot`),value:`Ultrawide shot`},{image:`https://cdn.acedata.cloud/21eaa8a4-a8f1-448d-9f00-ff8fb0213046.png`,label:this.$t(`midjourney.styleTag.birdView`),value:`Bird view`,advanced:!0},{image:`https://cdn.acedata.cloud/43fadf68-dad1-45d2-bc22-54b1b2792a00.png`,label:this.$t(`midjourney.styleTag.topView`),value:`Top view`,advanced:!0},{image:`https://cdn.acedata.cloud/f8953e9e-6daf-4a70-a691-6f89e91f0b97.png`,label:this.$t(`midjourney.styleTag.frontView`),value:`Front view`,advanced:!0},{image:`https://cdn.acedata.cloud/f2228145-dc8f-4e06-be21-5d18bf50f7cf.png`,label:this.$t(`midjourney.styleTag.sideView`),value:`Side view`,advanced:!0},{image:`https://cdn.acedata.cloud/b218d1cc-60a7-4f62-a719-b852cd6ebf03.png`,label:this.$t(`midjourney.styleTag.backView`),value:`Back view`,advanced:!0},{image:`https://cdn.acedata.cloud/186522ef-7b09-40d8-a712-43dde1266bbf.png`,label:this.$t(`midjourney.styleTag.faceShot`),value:`Face shot`},{image:`https://cdn.acedata.cloud/6a0c1136-2817-42bb-b1e3-c65a130e70cf.png`,label:this.$t(`midjourney.styleTag.chestShot`),value:`Chest shot`},{image:`https://cdn.acedata.cloud/8ac3bf91-2066-420d-8da1-5d6214ad2668.png`,label:this.$t(`midjourney.styleTag.waistShot`),value:`Waist shot`},{image:`https://cdn.acedata.cloud/2558b92f-cb3b-410e-85cd-791eb7d29c60.png`,label:this.$t(`midjourney.styleTag.extraLongShot`),value:`Extra long shot`},{image:`https://cdn.acedata.cloud/0f5c9250-55a4-4eed-8ddf-af18cb52e243.png`,label:this.$t(`midjourney.styleTag.lookUp`),value:`look up`},{image:`https://cdn.acedata.cloud/5e0df52d-e986-4851-b6ae-dc0be744713d.png`,label:this.$t(`midjourney.styleTag.isometricview`),value:`isometricview`,advanced:!0},{image:`https://cdn.acedata.cloud/0d6491dd-1f64-423c-b63b-0f2e96a258e5.png`,label:this.$t(`midjourney.styleTag.highAngleView`),value:`High angle view`,advanced:!0},{image:`https://cdn.acedata.cloud/5b68beee-c079-4a8e-84c5-cb3cc0f6c77b.png`,label:this.$t(`midjourney.styleTag.lowAngleView`),value:`Low angle view`,advanced:!0}]},emotion:{displayName:this.$t(`midjourney.styleCategory.emotion`),items:[{image:`https://cdn.acedata.cloud/033c9cd1-f5cc-448f-8d0a-e6559bbd57e3.png`,label:this.$t(`midjourney.styleTag.happy`),value:`Happy`},{image:`https://cdn.acedata.cloud/d07fbadd-78e4-4a98-bcf8-45b4805c9239.png`,label:this.$t(`midjourney.styleTag.excited`),value:`Excited`},{image:`https://cdn.acedata.cloud/aa94049d-e8fc-4e0e-97b1-afa174d99b88.png`,label:this.$t(`midjourney.styleTag.angry`),value:`Angry`},{image:`https://cdn.acedata.cloud/ede7f1d3-5ce2-4b8f-9cb9-c4bd47b80cae.png`,label:this.$t(`midjourney.styleTag.ped`),value:`ped`},{image:`https://cdn.acedata.cloud/88f9e6ba-2961-497e-ae00-9af36fa2c2d4.png`,label:this.$t(`midjourney.styleTag.disgusted`),value:`Disgusted`},{image:`https://cdn.acedata.cloud/fe91b67b-2430-424a-bf72-1a299e61f049.png`,label:this.$t(`midjourney.styleTag.supnned`),value:`supnned`},{image:`https://cdn.acedata.cloud/24dcfb80-d987-48b0-9595-82276b2a1f94.png`,label:this.$t(`midjourney.styleTag.hopeful`),value:`Hopeful`},{image:`https://cdn.acedata.cloud/f2628539-bdf5-471d-9ceb-f0731c46b593.png`,label:this.$t(`midjourney.styleTag.anxious`),value:`Anxious`},{image:`https://cdn.acedata.cloud/f280d69a-eb1b-4259-b56d-66510f38ec82.png`,label:this.$t(`midjourney.styleTag.elated`),value:`Elated`},{image:`https://cdn.acedata.cloud/94b78236-ba14-4aab-8985-3921b2146fc9.png`,label:this.$t(`midjourney.styleTag.fearful`),value:`Fearful`},{image:`https://cdn.acedata.cloud/68576d87-224f-463f-85c9-5fbeb386a035.png`,label:this.$t(`midjourney.styleTag.hateful`),value:`Hateful`},{image:`https://cdn.acedata.cloud/e0413400-096f-4072-8faf-5ef82f8cc265.png`,label:this.$t(`midjourney.styleTag.apoow`),value:`Apoow`,advanced:!0},{image:`https://cdn.acedata.cloud/c0f4b0f4-1399-468f-873a-a04f4b7929f8.png`,label:this.$t(`midjourney.styleTag.dark`),value:`Dark`,advanced:!0},{image:`https://cdn.acedata.cloud/297d5f3f-ebc9-4c9f-b656-07359b313871.png`,label:this.$t(`midjourney.styleTag.brutal`),value:`Brutal`,advanced:!0}]},chinese:{displayName:this.$t(`midjourney.styleCategory.chinese`),items:[{image:`https://cdn.acedata.cloud/b29020e5-532d-4b30-94b0-cf5405242fc6.png`,label:this.$t(`midjourney.styleTag.hanfu`),value:`Hanfu`},{image:`https://cdn.acedata.cloud/e00eb48c-8240-4468-ac15-1a9d3349b636.png`,label:this.$t(`midjourney.styleTag.cheongsam`),value:`Cheongsam`},{image:`https://cdn.acedata.cloud/87d89bc5-cb61-4780-8894-c1564bdebd66.png`,label:this.$t(`midjourney.styleTag.chineseCostume`),value:`Chinese costume`},{image:`https://cdn.acedata.cloud/811453d2-2715-44fe-8609-b0d184486b19.png`,label:this.$t(`midjourney.styleTag.chineseDress`),value:`Chinese dress`},{image:`https://cdn.acedata.cloud/2463a720-b803-4d0d-9cac-6a7d5b61001d.png`,label:this.$t(`midjourney.styleTag.wuxia`),value:`Wuxia`},{image:`https://cdn.acedata.cloud/2fbee5a1-8a5c-4bfb-a52c-895ff3f53c3c.png`,label:this.$t(`midjourney.styleTag.chinesePhoenix`),value:`Chinese phoenix`},{image:`https://cdn.acedata.cloud/53fd3a51-7739-493f-aff0-daaea74b942c.png`,label:this.$t(`midjourney.styleTag.kungfu`),value:`Kungfu`},{image:`https://cdn.acedata.cloud/bc4c6bb0-82a5-4bbb-b4e3-96a14c52aed3.png`,label:this.$t(`midjourney.styleTag.kunquOpera`),value:`Kunqu opera`,advanced:!0},{image:`https://cdn.acedata.cloud/291ca1c1-069e-4067-8b9d-1c5c11c2ff14.png`,label:this.$t(`midjourney.styleTag.cloisonne`),value:`Cloisonne`,advanced:!0},{image:`https://cdn.acedata.cloud/17e87115-06ec-4f7b-9b8e-daf782cd4d59.png`,label:this.$t(`midjourney.styleTag.porcelain`),value:`Porcelain`},{image:`https://cdn.acedata.cloud/c9cc4712-24b9-4ff8-926b-02bd626df9a9.png`,label:this.$t(`midjourney.styleTag.embroidered`),value:`Embroidered`},{image:`https://cdn.acedata.cloud/7da286ae-d1e6-4a21-8ba5-10ff7bf9d379.png`,label:this.$t(`midjourney.styleTag.jade`),value:`Jade`},{image:`https://cdn.acedata.cloud/11a2d9f8-3c29-4b0b-ae10-525928f71bce.png`,label:this.$t(`midjourney.styleTag.chinesePavilion`),value:`Chinese pavilion`,advanced:!0},{image:`https://cdn.acedata.cloud/639b5e99-8210-4525-b63f-8b89019d07f3.png`,label:this.$t(`midjourney.styleTag.plumFlower`),value:`Plum flower`},{image:`https://cdn.acedata.cloud/cc87764c-2754-4cb7-8bc3-1070b31ec62b.png`,label:this.$t(`midjourney.styleTag.forbiddenCity`),value:`Forbidden city`,advanced:!0},{image:`https://cdn.acedata.cloud/26d2f2aa-ca26-4c0e-a8c7-86a81aafc475.png`,label:this.$t(`midjourney.styleTag.peony`),value:`Peony`,advanced:!0}]},special:{displayName:this.$t(`midjourney.styleCategory.special`),items:[{image:`https://cdn.acedata.cloud/0ca0fd15-cc8d-420e-acf5-6c489e03c7ff.png`,label:this.$t(`midjourney.styleTag.unrealEngine`),value:`Unreal engine`},{image:`https://cdn.acedata.cloud/ead8ba11-6634-409e-8fea-7b31ca3974bc.png`,label:this.$t(`midjourney.styleTag.octaneRender`),value:`Octane render`},{image:`https://cdn.acedata.cloud/209f1bd9-5d44-4699-97ad-fdde73304efb.png`,label:this.$t(`midjourney.styleTag.maxonCinema4D`),value:`Maxon cinema 4D`},{image:`https://cdn.acedata.cloud/93c31b69-7af4-4d1f-99d6-114a34133613.png`,label:this.$t(`midjourney.styleTag.quixelMegascansRender`),value:`Quixel megascans render`},{image:`https://cdn.acedata.cloud/9883f161-5069-414b-9d23-bd63806c5205.png`,label:this.$t(`midjourney.styleTag.coronaRender`),value:`Corona render`},{image:`https://cdn.acedata.cloud/9c28e4af-28b2-4b97-abd4-e4f42d014f3a.png`,label:this.$t(`midjourney.styleTag.vRay`),value:`V-ray`},{image:`https://cdn.acedata.cloud/01d71ceb-7d17-4318-9914-a6a5fe0abc11.png`,label:this.$t(`midjourney.styleTag.architecturalVisualisation`),value:`Architectural visualisation`},{image:`https://cdn.acedata.cloud/e7f2cd21-2efc-4e18-b38d-3c2cbd95c5ec.png`,label:this.$t(`midjourney.styleTag.dramaticContrast`),value:`Dramatic contrast`},{image:`https://cdn.acedata.cloud/8f113377-ba6e-4fb0-bd56-df8635ab6345.png`,label:this.$t(`midjourney.styleTag.goldAndBlackTone`),value:`Gold and black tone`},{image:`https://cdn.acedata.cloud/6da8b72d-5a67-4c06-b915-8c0b5314d9c8.png`,label:this.$t(`midjourney.styleTag.whiteAndPinkTone`),value:`White and pink tone`},{image:`https://cdn.acedata.cloud/09abd535-8ab6-451f-8bce-29859429244b.png`,label:this.$t(`midjourney.styleTag.redAndBlackTone`),value:`Red and black tone`},{image:`https://cdn.acedata.cloud/81115846-7676-4edb-b7cf-df816c90de7f.png`,label:this.$t(`midjourney.styleTag.neonShades`),value:`Neon shades`},{image:`https://cdn.acedata.cloud/dfcc7a8a-e145-4824-b12b-bd29292daa5f.png`,label:this.$t(`midjourney.styleTag.richColor`),value:`Rich color`},{image:`https://cdn.acedata.cloud/38b05148-73c6-4db3-bddd-b972f27f4671.png`,label:this.$t(`midjourney.styleTag.monotone`),value:`Monotone`},{image:`https://cdn.acedata.cloud/6f6704da-1854-43d7-811f-3145fea96909.png`,label:this.$t(`midjourney.styleTag.theLowPurityTone`),value:`The low-purity tone`},{image:`https://cdn.acedata.cloud/3724b5ef-e7dd-4234-b2a2-f71c6b69b4ac.png`,label:this.$t(`midjourney.styleTag.theHighPurityTone`),value:`The high-purity tone`}]}}}},computed:{value:{get(){return this.$store.state.midjourney.config.elements||[]},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,elements:e})}}},methods:{onToggle(e){this.value.includes(e)?this.value=this.value.filter(t=>t!==e):(this.value.push(e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,elements:this.value}))}}}),In={class:`flex justify-between`},Ln={class:`flex justify-start items-center`},Rn={class:`text-sm font-bold`},zn={class:`flex justify-end items-center`},Bn=[`onClick`],Vn={class:`name`};function Hn(r,c,f,p,m,h){let v=g(`info-icon`),y=g(`el-button`),b=g(`el-tag`),x=g(`check`),S=g(`el-icon`),C=g(`el-image`),w=g(`el-tab-pane`),T=g(`el-tabs`),E=g(`el-dialog`);return d(),t(`div`,null,[n(`div`,In,[n(`div`,Ln,[n(`span`,Rn,u(r.$t(`midjourney.field.elements`)),1),o(v,{content:r.$t(`midjourney.description.elements`)},null,8,[`content`])]),n(`div`,zn,[o(y,{round:``,type:`primary`,size:`small`,onClick:c[0]||=e=>r.choosing=!0},{default:_(()=>[i(u(r.$t(`midjourney.button.select`)),1)]),_:1})])]),n(`div`,null,[(d(!0),t(s,null,e(r.value,(e,t)=>(d(),a(b,{key:t,closable:``,effect:`dark`,round:``,class:`mr-1 mb-1`,onClose:t=>r.onToggle(e)},{default:_(()=>[i(u(e.label),1)]),_:2},1032,[`onClose`]))),128))]),o(E,{modelValue:r.choosing,"onUpdate:modelValue":c[2]||=e=>r.choosing=e,width:`70%`},{default:_(()=>[o(T,{modelValue:r.tab,"onUpdate:modelValue":c[1]||=e=>r.tab=e},{default:_(()=>[(d(!0),t(s,null,e(r.elements,(i,c)=>(d(),a(w,{key:c,label:i.displayName,name:c,class:`pane`},{default:_(()=>[(d(!0),t(s,null,e(i.items,(e,i)=>(d(),t(`div`,{key:i,class:l({hidden:e?.advanced,item:!0,active:r.value.includes(e)}),onClick:t=>r.onToggle(e)},[o(S,{class:`icon`},{default:_(()=>[o(x)]),_:1}),o(C,{src:e.image,fit:`fill`,class:`preview`},null,8,[`src`]),n(`span`,Vn,u(e.label),1)],10,Bn))),128))]),_:2},1032,[`label`,`name`]))),128))]),_:1},8,[`modelValue`])]),_:1},8,[`modelValue`])])}var Un=X(Fn,[[`render`,Hn],[`__scopeId`,`data-v-48a019ff`]]),Wn=`fast`,Gn=r({name:`ModeSelector`,components:{ElButton:y,ElDropdown:F,ArrowDown:x,ElIcon:S,FontAwesomeIcon:Z,ElDropdownItem:P},data(){return{options:[{label:this.$t(`midjourney.button.fast`),value:`fast`,icon:`fa-solid fa-wind`,color:`#2dc49c`},{label:this.$t(`midjourney.button.relax`),value:`relax`,icon:`fa-solid fa-mug-saucer`,color:`#ce65e6`},{label:this.$t(`midjourney.button.turbo`),value:`turbo`,icon:`fa-solid fa-bolt`,color:`#ff9900`}]}},computed:{activeOption(){return this.options.find(e=>e.value===this.value)},value:{get(){return this.$store.state.midjourney.config.mode},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,mode:e})}}},mounted(){this.value||=Wn},methods:{onCommand(e){console.log(`command`,e),this.value=e}}}),Kn={class:`ml-2`},qn={class:`ml-1 text-sm`};function Jn(r,i,l,f,p,m){let v=g(`font-awesome-icon`),y=g(`arrow-down`),b=g(`el-icon`),x=g(`el-button`),S=g(`el-dropdown-item`),C=g(`el-dropdown-menu`),w=g(`el-dropdown`);return d(),a(w,{trigger:`click`,onCommand:r.onCommand},{dropdown:_(()=>[o(C,null,{default:_(()=>[(d(!0),t(s,null,e(r.options,(e,t)=>(d(),a(S,{key:t,class:`flex items-center justify-between`,command:e.value},{default:_(()=>[e.icon?(d(),a(v,{key:0,icon:e.icon,style:c({color:e.color})},null,8,[`icon`,`style`])):h(``,!0),n(`span`,qn,u(e.label),1)]),_:2},1032,[`command`]))),128))]),_:1})]),default:_(()=>[o(x,{round:``},{default:_(()=>[r.activeOption?.icon?(d(),a(v,{key:0,icon:r.activeOption.icon,style:c({color:r.activeOption?.color})},null,8,[`icon`,`style`])):h(``,!0),n(`span`,Kn,u(r.activeOption?.label),1),o(b,{class:`el-icon--right`},{default:_(()=>[o(y)]),_:1})]),_:1})]),_:1},8,[`onCommand`])}var Yn=X(Gn,[[`render`,Jn],[`__scopeId`,`data-v-defbf635`]]),Xn=r({name:`PromptInput`,components:{PromptTextarea:ge},computed:{prompt:{get(){return this.$store.state.midjourney?.config.prompt},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney?.config,prompt:e})}}},mounted(){this.prompt||=``}});function Zn(e,t,n,r,i,o){let s=g(`prompt-textarea`);return d(),a(s,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`midjourney.name.prompt`),info:e.$t(`midjourney.description.prompt`),placeholder:e.$t(`midjourney.placeholder.prompt`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Qn=X(Xn,[[`render`,Zn]]),$n=r({name:`ReferenceImage`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[G,U],emits:[`change`],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?.response?.file_url)}},watch:{urls:{handler(e){console.debug(`URLs changed:`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,references:e})}}},methods:{onExceed(){H.warning(this.$t(`midjourney.message.uploadReferencesExceed`))},onError(){H.error(this.$t(`midjourney.message.uploadReferencesError`))}}}),er={class:`relative`},tr={class:`flex justify-between`},nr={class:`flex justify-start items-center`},rr={class:`text-sm font-bold`};function ir(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,er,[n(`div`,tr,[n(`div`,nr,[n(`span`,rr,u(e.$t(`midjourney.name.referenceImage`)),1),o(f,{content:e.$t(`midjourney.description.uploadReferences`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadReferences`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var ar=r({name:`ConfigPanel`,components:{ElButton:y,PromptInput:Qn,ModeSelector:Yn,ModelSelector:qt,ElementsSelector:Un,StyleSelector:Pn,QualitySelector:Qt,RatioSelector:Ae,VersionSelector:Xe,HdSelector:tt,StylizeSelector:At,AdvancedSelector:Ie,ChaosSelector:zt,WeirdSelector:bn,ImageWeightSelector:fn,ReferenceImage:X($n,[[`render`,ir],[`__scopeId`,`data-v-d991c11f`]]),ImageUrlInput:ct,EndImageUrlInput:ht,LoopSelector:We,ResolutionSelector:rn,ImageUrlInput2:St,Consumption:le,VideoFromInput:En,ElTabs:T,ElTabPane:E},emits:[`generate`],computed:{config(){return this.$store.state.midjourney.config},isV8(){return this.config?.version===`8`||this.config?.version===`8.1`},isNiji(){return!!this.config?.model?.includes(`niji`)},type:{get(){return this.$store.state.midjourney.config.type||`imagine`},set(e){console.debug(`set type`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,type:e})}},consumption(){return ie(this.config,this.service?.cost)},service(){return this.$store.state.midjourney?.service}},mounted(){this.config.type||(this.type=z)}}),or={class:`flex flex-col h-full`},sr={class:`flex-1 overflow-y-auto p-5`},cr={class:`pt-2 px-1`},lr={class:`pt-2 px-1`},ur={class:`pt-2 px-1`},dr={class:`flex flex-col px-5 pb-5`},fr={class:`flex gap-1`};function pr(e,r,s,c,l,f){let m=g(`model-selector`),y=g(`prompt-input`),b=g(`reference-image`),x=g(`ratio-selector`),S=g(`quality-selector`),C=g(`version-selector`),w=g(`hd-selector`),T=g(`elements-selector`),E=g(`advanced-selector`),D=g(`stylize-selector`),O=g(`weird-selector`),k=g(`chaos-selector`),A=g(`image-weight-selector`),j=g(`style-selector`),M=g(`el-tab-pane`),N=g(`video-from-input`),P=g(`image-url-input`),F=g(`end-image-url-input`),I=g(`loop-selector`),L=g(`resolution-selector`),R=g(`image-url-input2`),z=g(`el-tabs`),B=g(`consumption`),V=g(`mode-selector`),H=g(`el-button`);return d(),t(`div`,or,[n(`div`,sr,[o(z,{modelValue:e.type,"onUpdate:modelValue":r[0]||=t=>e.type=t,class:`demo-tabs`,stretch:``},{default:_(()=>[o(M,{label:e.$t(`midjourney.tab.images`),name:`imagine`},{default:_(()=>[n(`div`,cr,[o(m,{class:`mb-2`}),o(y,{class:`mb-4`}),o(b,{class:`mb-2`}),o(x,{class:`mb-4`}),o(S,{class:`mb-4`}),e.isNiji?h(``,!0):(d(),a(C,{key:0,class:`mb-4`})),e.isV8&&!e.isNiji?(d(),a(w,{key:1,class:`mb-4`})):h(``,!0),o(T,{class:`mb-2`}),o(E,{class:`mb-2`}),p(n(`div`,null,[o(D,{class:`mb-2`}),o(O,{class:`mb-2`}),o(k,{class:`mb-2`}),e.isV8?h(``,!0):(d(),a(A,{key:0,class:`mb-2`})),o(j,{class:`mb-2`})],512),[[v,e.config?.advanced]])])]),_:1},8,[`label`]),o(M,{label:e.$t(`midjourney.tab.videos`),name:`videos`},{default:_(()=>[n(`div`,lr,[p(o(N,{class:`mb-4`},null,512),[[v,e.config?.action===`extend`]]),o(P,{class:`mb-2`}),o(F,{class:`mb-2`}),o(I,{class:`mb-2`}),o(L,{class:`mb-4`}),o(y,{class:`mb-4`})])]),_:1},8,[`label`]),o(M,{label:e.$t(`midjourney.tab.describe`),name:`describe`},{default:_(()=>[n(`div`,ur,[o(R,{class:`mb-2`})])]),_:1},8,[`label`])]),_:1},8,[`modelValue`])]),n(`div`,dr,[o(B,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),n(`div`,fr,[e.type===`describe`?h(``,!0):(d(),a(V,{key:0})),e.config.action===`extend`?(d(),a(H,{key:1,type:`primary`,class:`btn w-full`,round:``,onClick:r[1]||=t=>e.$emit(`generate`)},{default:_(()=>[i(u(e.$t(`midjourney.button.extend`)),1)]),_:1})):(d(),a(H,{key:2,type:`primary`,class:`btn w-full`,round:``,onClick:r[2]||=t=>e.$emit(`generate`)},{default:_(()=>[i(u(e.$t(`midjourney.button.generate`)),1)]),_:1}))])])])}var mr=X(ar,[[`render`,pr]]),hr=r({name:`TaskPreview`,components:{ElImage:k,ImageWrapper:_e,ImagePreview:Q,ElButton:y,FontAwesomeIcon:Z,ElTooltip:O,ElAlert:A,ElTag:te,CopyToClipboard:se,VideoPlayer:fe,ApiCodeButton:pe},props:{modelValue:{type:Object,required:!0},full:{type:Boolean,default:!1}},emits:[`custom`],data(){return{midjourneyImagineState:ae,actionMapping:{[K.GENERATE]:`Generate`,[K.UPSCALE1]:`U1`,[K.UPSCALE2]:`U2`,[K.UPSCALE3]:`U3`,[K.UPSCALE4]:`U4`,[K.VARIATION1]:`V1`,[K.VARIATION2]:`V2`,[K.VARIATION3]:`V3`,[K.VARIATION4]:`V4`,[K.VARIATION_STRONG]:`Vary (Strong)`,[K.VARIATION_SUBTLE]:`Vary (Subtle)`,[K.UPSCALE_CREATIVE]:`Upscale (Creative)`,[K.UPSCALE_SUBTLE]:`Upscale (Subtle)`,[K.ZOOM_OUT_2X]:`Zoom Out 2x`,[K.ZOOM_OUT_1_5X]:`Zoom Out 1.5x`,[K.UPSCALE_2X]:`Upscale 2x`,[K.UPSCALE_4X]:`Upscale 4x`,[K.REDO_UPSCALE_2X]:`Redo Upscale 2x`,[K.REDO_UPSCALE_4X]:`Redo Upscale 4x`,[K.REDO_UPSCALE_SUBTLE]:`Redo Upscale (Subtle)`,[K.REDO_UPSCALE_CREATIVE]:`Redo Upscale (Creative)`,[K.SQUARE]:`Make Square`,[K.PAN_LEFT]:`⬅️`,[K.PAN_UP]:`⬆️`,[K.PAN_DOWN]:`⬇️`,[K.PAN_RIGHT]:`➡️`,[K.REROLL]:`🔄`},descriptionMapping:{[K.GENERATE]:this.$t(`midjourney.action.generate`),[K.UPSCALE1]:this.$t(`midjourney.action.upscale1`),[K.UPSCALE2]:this.$t(`midjourney.action.upscale2`),[K.UPSCALE3]:this.$t(`midjourney.action.upscale3`),[K.UPSCALE4]:this.$t(`midjourney.action.upscale4`),[K.VARIATION1]:this.$t(`midjourney.action.variation1`),[K.VARIATION2]:this.$t(`midjourney.action.variation2`),[K.VARIATION3]:this.$t(`midjourney.action.variation3`),[K.VARIATION4]:this.$t(`midjourney.action.variation4`),[K.VARIATION_STRONG]:this.$t(`midjourney.action.variation_strong`),[K.VARIATION_SUBTLE]:this.$t(`midjourney.action.variation_subtle`),[K.ZOOM_OUT_2X]:this.$t(`midjourney.action.zoom_out_2x`),[K.ZOOM_OUT_1_5X]:this.$t(`midjourney.action.zoom_out_1_5x`),[K.UPSCALE_2X]:this.$t(`midjourney.action.upscale_2x`),[K.UPSCALE_4X]:this.$t(`midjourney.action.upscale_4x`),[K.UPSCALE_SUBTLE]:this.$t(`midjourney.action.upscale_subtle`),[K.UPSCALE_CREATIVE]:this.$t(`midjourney.action.upscale_creative`),[K.REDO_UPSCALE_2X]:this.$t(`midjourney.action.redo_upscale_2x`),[K.REDO_UPSCALE_4X]:this.$t(`midjourney.action.redo_upscale_4x`),[K.REDO_UPSCALE_SUBTLE]:this.$t(`midjourney.action.redo_upscale_subtle`),[K.REDO_UPSCALE_CREATIVE]:this.$t(`midjourney.action.redo_upscale_creative`),[K.SQUARE]:this.$t(`midjourney.action.square`),[K.PAN_LEFT]:this.$t(`midjourney.action.pan_left`),[K.PAN_UP]:this.$t(`midjourney.action.pan_up`),[K.PAN_DOWN]:this.$t(`midjourney.action.pan_down`),[K.PAN_RIGHT]:this.$t(`midjourney.action.pan_right`),[K.REROLL]:this.$t(`midjourney.action.reroll`)}}},computed:{application(){return this.$store.state.midjourney.application},config(){return this.$store.state.midjourney?.config},service(){return this.$store.state.midjourney?.service}},methods:{getActionDescriptionWithPrice(e,t){return`${this.descriptionMapping[e]} (${ie({...this.config,action:e,mode:t},this.service?.cost)} ${this.$t(`service.unit.${this.service?.unit||`credits`}`)})`},onCustom(e){this.modelValue?.type===`imagine`&&this.$emit(`custom`,{action:e,image_id:this.modelValue?.response?.image_id})},onExtend(e,t){console.debug(`set config`,t),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney?.config,video_id:t.video_id,video_url:t.video_urls?.[0],action:`extend`,type:`videos`,is_videos:!0})},onDownload(e){let t=document.createElement(`a`);t.href=e,t.download=e.split(`/`).pop(),t.click()}}}),gr={key:0,class:`item`},_r={class:`left`},vr={class:`preview`},yr={class:`bot`},br={class:`datetime`},xr={class:`info`},Sr={key:0,class:`prompt`},Cr={key:0},wr={key:1},Tr={key:1,class:`prompt`},Er={key:0},Dr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Or={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},kr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ar={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},jr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Mr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Nr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Pr={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Fr={key:2},Ir={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Lr={key:1,class:`item`},Rr={class:`left`},zr={class:`preview`},Br={class:`bot`},Vr={class:`datetime`},Hr={class:`info`},Ur={key:0,class:`flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto`},Wr={key:1,class:`prompt`},Gr={key:0},Kr={key:1},qr={key:2,class:`prompt`},Jr={key:0},Yr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Xr={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Zr={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Qr={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$r={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ei={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ti={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ni={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},ri={key:0,class:`mb-4`},ii={key:1,class:l({operations:!0,"mt-2":!0,"mb-4":!0})},ai={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},oi={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},si={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ci={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},li={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ui={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},di={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},fi={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},pi={key:2},mi={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},hi={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},gi={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},_i={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},vi={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},yi={key:2,class:`item`},bi={class:`left`},xi={class:`preview`},Si={class:`bot`},Ci={class:`datetime`},wi={class:`info`},Ti={key:0,class:`prompt`},Ei={key:0},Di={key:1},Oi={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ki={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ai={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ji={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Mi={class:`mb-2`},Ni={class:`mb-2`},Pi={key:0},Fi={class:`text-sm text-[var(--el-text-color-primary)]`},Ii={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Li={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ri={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},zi={key:2},Bi={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Vi(r,c,m,y,b,x){let S=g(`el-image`),C=g(`font-awesome-icon`),w=g(`copy-to-clipboard`),T=g(`el-alert`),E=g(`image-wrapper`),D=g(`el-button`),O=g(`el-tooltip`),k=g(`api-code-button`),A=g(`image-preview`),j=g(`video-player`),M=g(`el-tag`);return d(),t(s,null,[r.modelValue?.type===`imagine`?(d(),t(`div`,gr,[n(`div`,_r,[o(S,{src:`https://cdn.acedata.cloud/wto43b.png`,class:`avatar`})]),n(`div`,vr,[n(`div`,yr,[i(u(r.$t(`midjourney.name.midjourneyBot`))+` `,1),n(`span`,br,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,xr,[r.modelValue?.request?.prompt?(d(),t(`p`,Sr,[i(u(r.modelValue?.request?.prompt)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Cr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),r.modelValue?.response?.progress!==void 0&&r.modelValue?.response?.progress!==100?(d(),t(`span`,wr,` - (`+u(r.modelValue?.response?.progress)+`%) `,1)):h(``,!0),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0),r.modelValue?.request?.image_id?(d(),t(`p`,Tr,[i(u(r.modelValue?.request?.image_id)+` - `+u(r.modelValue?.request?.action)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Er,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0)]),r.modelValue?.response?.success===!1?(d(),t(`div`,{key:0,class:l({content:!0,full:r.full,failed:!0})},[o(T,{closable:!1,class:`failure`},{default:_(()=>[n(`p`,Dr,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),n(`p`,Or,[o(C,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(w,{content:r.modelValue?.response?.error?.message},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,kr,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,Ar,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(w,{content:r.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?.success===!0?(d(),t(`div`,{key:1,class:l({content:!0,full:r.full})},[r.modelValue?.response?.raw_image_url?(d(),a(E,{key:0,src:r.modelValue?.response?.image_url,"raw-src":r.modelValue?.response?.raw_image_url},null,8,[`src`,`raw-src`])):h(``,!0),r.modelValue?.response?.actions?(d(),t(`div`,{key:1,class:l({operations:!0,full:r.full})},[(d(!0),t(s,null,e(r.modelValue?.response?.actions,(e,t)=>(d(),a(O,{key:t,class:`box-item`,effect:`dark`,content:r.getActionDescriptionWithPrice(e,r.modelValue?.request?.mode),placement:`top-start`},{default:_(()=>[p(o(D,{type:`info`,size:`small`,class:`btn-action`,onClick:t=>r.onCustom(e)},{default:_(()=>[i(u(r.actionMapping[e]),1)]),_:2},1032,[`onClick`]),[[v,r.actionMapping[e]]])]),_:2},1032,[`content`]))),128)),o(k,{path:`/midjourney/imagine`,body:r.modelValue?.request},null,8,[`body`])],2)):h(``,!0),o(T,{closable:!1,class:`mt-2 success`},{default:_(()=>[n(`p`,jr,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,Mr,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,Nr,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])]),n(`p`,Pr,[o(C,{icon:`fa-solid fa-image`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.imageId`))+`: `+u(r.modelValue?.response?.image_id)+` `,1),o(w,{content:r.modelValue?.response?.image_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?h(``,!0):(d(),t(`div`,Fr,[o(T,{closable:!1,class:`mt-2 info`},{default:_(()=>[n(`p`,Ir,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):h(``,!0),r.modelValue?.type===`videos`?(d(),t(`div`,Lr,[n(`div`,Rr,[o(S,{src:`https://cdn.acedata.cloud/wto43b.png`,class:`avatar`})]),n(`div`,zr,[n(`div`,Br,[i(u(r.$t(`midjourney.name.midjourneyBot`))+` `,1),n(`span`,Vr,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Hr,[r.modelValue?.request?.image_url||r.modelValue?.request?.end_image_url?(d(),t(`div`,Ur,[r.modelValue?.request?.image_url?(d(),a(A,{key:0,url:r.modelValue.request.image_url,name:r.$t(`midjourney.name.imageUrl`),closable:!1},null,8,[`url`,`name`])):h(``,!0),r.modelValue?.request?.end_image_url?(d(),a(A,{key:1,url:r.modelValue.request.end_image_url,name:r.$t(`midjourney.name.endImageUrl`),closable:!1},null,8,[`url`,`name`])):h(``,!0)])):h(``,!0),r.modelValue?.request?.prompt?(d(),t(`p`,Wr,[i(u(r.modelValue?.request?.prompt)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Gr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),r.modelValue?.response?.progress!==void 0&&r.modelValue?.response?.progress!==100?(d(),t(`span`,Kr,` - (`+u(r.modelValue?.response?.progress)+`%) `,1)):h(``,!0),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0),r.modelValue?.request?.video_id?(d(),t(`p`,qr,[i(u(r.modelValue?.request?.video_id)+` - `+u(r.modelValue?.request?.action)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Jr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0)]),r.modelValue?.response?.success===!1?(d(),t(`div`,{key:0,class:l({content:!0,full:r.full,failed:!0})},[o(T,{closable:!1,class:`failure`},{default:_(()=>[r.modelValue?.request?.action?(d(),t(`p`,Yr,[o(C,{icon:`fa-solid fa-bolt`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.action`))+`: `+u(r.modelValue?.request?.action),1)])):h(``,!0),r.modelValue?.request?.resolution?(d(),t(`p`,Xr,[o(C,{icon:`fa-solid fa-gauge-high`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.resolution`))+`: `+u(r.modelValue?.request?.resolution),1)])):h(``,!0),r.modelValue?.request?.mode?(d(),t(`p`,Zr,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.mode`))+`: `+u(r.modelValue?.request?.mode),1)])):h(``,!0),r.modelValue?.request?.loop===void 0?h(``,!0):(d(),t(`p`,Qr,[o(C,{icon:`fa-solid fa-arrows-rotate`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.loop`))+`: `+u(r.modelValue?.request?.loop?r.$t(`midjourney.field.on`):r.$t(`midjourney.field.off`)),1)])),n(`p`,$r,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),n(`p`,ei,[o(C,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(w,{content:r.modelValue?.response?.error?.message},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,ti,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,ni,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(w,{content:r.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?.success===!0?(d(),t(`div`,{key:1,class:l({content:!0,full:r.full})},[r.modelValue?.response.video_urls?(d(),t(`div`,ri,[o(j,{src:r.modelValue?.response.video_urls[0]},null,8,[`src`])])):h(``,!0),r.modelValue?.response&&r.modelValue?.response?.video_urls?(d(),t(`div`,ii,[o(O,{class:`box-item`,effect:`dark`,content:r.$t(`luma.message.extendVideo`),placement:`top-start`},{default:_(()=>[o(D,{type:`info`,size:`small`,class:`btn-action`,onClick:c[0]||=f(e=>r.onExtend(e,r.modelValue?.response),[`stop`])},{default:_(()=>[i(u(r.$t(`midjourney.button.extend`)),1)]),_:1})]),_:1},8,[`content`]),o(O,{class:`box-item`,effect:`dark`,content:r.$t(`luma.message.downloadVideo`),placement:`top-start`},{default:_(()=>[o(D,{type:`info`,size:`small`,class:`btn-action`,onClick:c[1]||=f(e=>r.onDownload(r.modelValue.response.video_urls[0]),[`stop`])},{default:_(()=>[i(u(r.$t(`midjourney.button.download`)),1)]),_:1})]),_:1},8,[`content`]),o(k,{path:`/midjourney/videos`,body:r.modelValue?.request},null,8,[`body`])])):h(``,!0),o(T,{closable:!1,class:`mt-2 success`},{default:_(()=>[r.modelValue?.request?.action?(d(),t(`p`,ai,[o(C,{icon:`fa-solid fa-bolt`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.action`))+`: `+u(r.modelValue?.request?.action),1)])):h(``,!0),r.modelValue?.request?.resolution?(d(),t(`p`,oi,[o(C,{icon:`fa-solid fa-gauge-high`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.resolution`))+`: `+u(r.modelValue?.request?.resolution),1)])):h(``,!0),r.modelValue?.request?.mode?(d(),t(`p`,si,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.mode`))+`: `+u(r.modelValue?.request?.mode),1)])):h(``,!0),r.modelValue?.request?.loop===void 0?h(``,!0):(d(),t(`p`,ci,[o(C,{icon:`fa-solid fa-arrows-rotate`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.loop`))+`: `+u(r.modelValue?.request?.loop?r.$t(`midjourney.field.on`):r.$t(`midjourney.field.off`)),1)])),n(`p`,li,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,ui,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,di,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])]),n(`p`,fi,[o(C,{icon:`fa-solid fa-image`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.videoId`))+`: `+u(r.modelValue?.response?.video_id)+` `,1),o(w,{content:r.modelValue?.response?.video_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?h(``,!0):(d(),t(`div`,pi,[o(T,{closable:!1,class:`info`},{default:_(()=>[r.modelValue?.request?.action?(d(),t(`p`,mi,[o(C,{icon:`fa-solid fa-bolt`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.action`))+`: `+u(r.modelValue?.request?.action),1)])):h(``,!0),r.modelValue?.request?.resolution?(d(),t(`p`,hi,[o(C,{icon:`fa-solid fa-gauge-high`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.resolution`))+`: `+u(r.modelValue?.request?.resolution),1)])):h(``,!0),r.modelValue?.request?.mode?(d(),t(`p`,gi,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.mode`))+`: `+u(r.modelValue?.request?.mode),1)])):h(``,!0),r.modelValue?.request?.loop===void 0?h(``,!0):(d(),t(`p`,_i,[o(C,{icon:`fa-solid fa-arrows-rotate`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.loop`))+`: `+u(r.modelValue?.request?.loop?r.$t(`midjourney.field.on`):r.$t(`midjourney.field.off`)),1)])),n(`p`,vi,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):h(``,!0),r.modelValue?.type===`describe`?(d(),t(`div`,yi,[n(`div`,bi,[o(S,{src:`https://cdn.acedata.cloud/wto43b.png`,class:`avatar`})]),n(`div`,xi,[n(`div`,Si,[i(u(r.$t(`midjourney.name.midjourneyBot`))+` `,1),n(`span`,Ci,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,wi,[r.modelValue?.request?.image_url?(d(),t(`p`,Ti,[i(u(r.modelValue?.request?.image_url)+` `,1),r.modelValue?.response?.descriptions?h(``,!0):(d(),t(`span`,Ei,` - (`+u(r.$t(`midjourney.status.describePending`))+`) `,1)),r.modelValue?.response?.descriptions?(d(),t(`span`,Di,` - (`+u(r.$t(`midjourney.status.describeComplete`))+`) `,1)):h(``,!0)])):h(``,!0)]),r.modelValue?.response&&!r.modelValue?.response?.descriptions?(d(),t(`div`,{key:0,class:l({content:!0,full:r.full,failed:!0})},[o(T,{closable:!1,class:`failure`},{default:_(()=>[n(`p`,Oi,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),n(`p`,ki,[o(C,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(w,{content:r.modelValue?.response?.error?.message},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,Ai,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,ji,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?.descriptions?(d(),t(`div`,{key:1,class:l({content:!0,full:r.full})},[n(`div`,Mi,[n(`div`,Ni,[(d(!0),t(s,null,e(r.modelValue.response.descriptions,(e,r)=>(d(),t(`div`,{key:r,class:`flex items-start`},[e===``?h(``,!0):(d(),t(`div`,Pi,[o(M,{effect:`dark`,size:`small`,type:`primary`,round:``,class:`mr-1`},{default:_(()=>[i(u(r+1),1)]),_:2},1024),n(`span`,Fi,[i(u(e)+` `,1),o(w,{content:e},null,8,[`content`])])]))]))),128))]),r.modelValue?.request?.image_url?(d(),a(E,{key:0,src:r.modelValue?.request?.image_url,"raw-src":r.modelValue?.request?.image_url,class:`image w-full rounded-lg`},null,8,[`src`,`raw-src`])):h(``,!0)]),n(`div`,{class:l({operations:!0,"mt-2":!0,"mb-2":!0,full:r.full})},[o(k,{path:`/midjourney/describe`,body:r.modelValue?.request},null,8,[`body`])],2),o(T,{closable:!1,class:`success`},{default:_(()=>[n(`p`,Ii,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,Li,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,Ri,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?h(``,!0):(d(),t(`div`,zi,[o(T,{closable:!1,class:`info`},{default:_(()=>[n(`p`,Bi,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):h(``,!0)],64)}var Hi=r({name:`TaskList`,components:{TaskItem:X(hr,[[`render`,Vi],[`__scopeId`,`data-v-7a51ab7d`]]),BotPlaceholder:me,NoTasks:he,ScrollList:ue},props:{loading:{type:Boolean,default:!1},floatingLoader:{type:Boolean,default:!0}},emits:[`custom`,`extend`,`reach-top`],data(){return{job:0}},computed:{tasks(){return this.$store.state.midjourney.tasks?.items},application(){return this.$store.state.midjourney.application}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Ui={key:0,class:`p-2 flex flex-col overflow-y-auto`},Wi={key:1,class:`w-full h-full flex items-center justify-center`};function Gi(n,r,i,c,l,u){let f=g(`bot-placeholder`),p=g(`no-tasks`),m=g(`task-item`),v=g(`scroll-list`);return n.tasks===void 0?(d(),t(`div`,Ui,[o(f)])):n.tasks&&n.tasks?.length===0?(d(),t(`div`,Wi,[o(p)])):n.tasks.length>0?(d(),a(v,{key:2,ref:`scrollList`,class:`p-2 py-3 h-full flex flex-col overflow-y-auto tasks`,loading:n.loading,"floating-loader":n.floatingLoader,onReachTop:r[2]||=e=>n.$emit(`reach-top`)},{default:_(()=>[(d(!0),t(s,null,e(n.tasks,e=>(d(),a(m,{key:e.id,"model-value":e,onExtend:r[0]||=e=>n.$emit(`extend`,e),onCustom:r[1]||=e=>n.$emit(`custom`,e)},null,8,[`model-value`]))),128))]),_:1},8,[`loading`,`floating-loader`])):h(``,!0)}var Ki=r({name:`MidjourneyIndex`,components:{ConfigPanel:mr,TaskList:X(Hi,[[`render`,Gi]]),Layout:Ce},mixins:[re],inject:[`initialized`],data(){return{operating:!1,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{tasks(){return this.$store.state.midjourney.tasks},credential(){return this.$store.state.midjourney.credential},config(){return this.$store.state.midjourney.config},loading(){return this.$store.state.midjourney.status.getApplications===ee.Request},tasksLoading(){return this.$store.state.midjourney.status.getTasks===ee.Request||this.fetchingTasks},application(){return this.$store.state.midjourney.application},finalPrompt(){let e=``;this.config.references&&this.config.references?.length>0&&(e+=`${this.config.references.join(` `)} `),this.config.prompt&&(e+=this.config.prompt),this.config.elements&&this.config.elements.length>0&&(e+=`,`+this.config.elements.map(e=>e.value).join(`,`));let t=this.config?.model?.includes(`niji`);return this.config?.model&&!e.includes(`--${this.config.model}`)&&(e+=` --${this.config.model}`),!t&&this.config?.version&&!e.includes(`--version `)&&!e.includes(`--v `)&&(e+=` --version ${this.config.version}`),this.config?.chaos&&this.config?.advanced&&!e.includes(`--chaos `)&&(e+=` --chaos ${this.config.chaos}`),this.config?.quality&&!e.includes(`--quality `)&&!e.includes(`--q `)&&this.config?.quality!==`1`&&(e+=` --quality ${this.config.quality}`),this.config?.ratio&&!e.includes(`--aspect `)&&!e.includes(`--ar `)&&this.config?.ratio!==`1:1`&&(e+=` --aspect ${this.config.ratio}`),this.config?.stylize&&!e.includes(`--stylize `)&&!e.includes(`--s `)&&this.config?.advanced&&this.config?.stylize!==100&&(e+=` --stylize ${this.config?.stylize}`),this.config?.weird&&!e.includes(`--weird `)&&!e.includes(`--w `)&&this.config?.advanced&&this.config?.weird!==0&&(e+=` --weird ${this.config.weird}`),this.config.ignore&&!e.includes(`--no `)&&(e+=` --no ${this.config.ignore}`),this.config?.iw&&!e.includes(`--iw `)&&this.config?.advanced&&this.config?.iw!==1&&(e+=` --iw ${this.config.iw}`),this.config?.style&&this.config?.advanced&&!e.includes(`--style`)&&(e+=` --style ${this.config?.style}`),!t&&this.config?.hd&&!e.includes(`--hd`)&&(e+=` --hd`),e=e.replace(/--(fast|relax|turbo) /g,``),this.config.prompt||this.config.references&&this.config.references?.length>0?e:``}},watch:{tasks:{handler(e,t){e?.items?.length>t?.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 de({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.loading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug(`start onGetService`),await this.$store.dispatch(`midjourney/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplications`),await this.$store.dispatch(`midjourney/getApplications`),console.debug(`end onGetApplications`),await this.onGetTasks()},async onStartImagineTask(e){if(!q())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(!e.prompt&&e.action===K.GENERATE){H.error(this.$t(`midjourney.message.promptRequired`));return}H.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,W.imagine(e,{token:t})).then(()=>{H.success(this.$t(`midjourney.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?H.error(this.$t(`midjourney.message.usedUp`)):H.error(this.$t(`midjourney.message.startTaskFailed`)+e.response?.data?.error?.message)}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},async onStartVideosTask(e){if(!q())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(!e.prompt){H.error(this.$t(`midjourney.message.promptRequired`));return}if(e.action!==V.EXTEND&&!e.image_url){H.error(this.$t(`midjourney.message.imageUrlRequired`));return}H.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,W.videos(e,{token:t})).then(()=>{H.success(this.$t(`midjourney.message.startVideosTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?H.error(this.$t(`midjourney.message.usedUp`)):H.error(this.$t(`midjourney.message.startVideosTaskFailed`)+e.response?.data?.error?.message)}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},async onStartDescribeTask(e){if(!q())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}H.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,W.describe(e,{token:t})).then(()=>{H.success(this.$t(`midjourney.message.startDescribeTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?H.error(this.$t(`midjourney.message.usedUp`)):H.error(this.$t(`midjourney.message.startDescribeTaskFailed`)+e.response?.data?.error?.message)}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},async onCustom(e){let t={image_id:e.image_id,action:e.action,mode:this.config?.mode||`fast`,async:!0,version:this.config?.version,hd:this.config?.hd||!1,quality:this.config?.quality||`1`};this.onStartImagineTask(t)},async onGenerate(){if(oe(this.uploadTracker,e=>this.$t(e),e=>H.warning(e))){if(console.debug(`onGenerate`,this.config),this.config?.type===`videos`){let e={video_id:this.config?.video_id,image_url:this.config?.image_url,action:this.config?.action,prompt:this.config?.prompt,end_image_url:this.config?.end_image_url,resolution:this.config?.resolution,loop:this.config?.loop,mode:this.config?.mode||`fast`,async:!0};await this.onStartVideosTask(e)}else if(this.config?.type===`imagine`){let e=this.config?.version===`8`||this.config?.version===`8.1`,t=!!(this.finalPrompt&&this.finalPrompt.includes(`--sref`)),n=!!(e&&this.config?.references&&this.config.references.length>0),r={mode:this.config?.mode||`fast`,prompt:this.finalPrompt,action:K.GENERATE,translation:this.config?.translation,async:!0,version:this.config?.version,hd:this.config?.hd||!1,quality:this.config?.quality||`1`,style_reference:t,moodboard:n};await this.onStartImagineTask(r)}else if(this.config?.type===`describe`){if(!this.config?.image_url){H.error(this.$t(`midjourney.message.imageUrlRequired`));return}let e={image_url:this.config?.image_url,async:!0};await this.onStartDescribeTask(e)}}},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.loading||this.fetchingTasks){console.debug(`loading`);return}console.debug(`start onGetTasks`,e);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`midjourney/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},getTasksScrollElement(){return this.$refs.taskList?.getScrollElement?.()}}});function qi(e,t,n,r,i,s){let c=g(`config-panel`),l=g(`task-list`),u=g(`layout`);return d(),a(u,null,{config:_(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),results:_(()=>[o(l,{ref:`taskList`,loading:e.loadingMore,onCustom:e.onCustom,onReachTop:e.onReachTop},null,8,[`loading`,`onCustom`,`onReachTop`])]),_:1})}var Ji=X(Ki,[[`render`,qi]]);export{Ji as default};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Ut as c,Vt as l,Wt as u,Z as d,b as f,dt as p,et as m,k as h,tt as g,ut as _,v}from"./vendor-chart-BJCvKk8-.js";import{t as y}from"./button-BydTr5nV.js";import{r as b,t as x}from"./select-F0nTmzsr.js";import{t as S}from"./upload-Dro0UwGd.js";import{t as C}from"./tooltip-ivBOvVK_.js";import{t as w}from"./image-3Z-MYHWR.js";import{t as T}from"./alert-C51owb6L.js";import{t as E}from"./drawer-Aw9IMZFK.js";import{At as D,Ct as O,Dt as k,Et as A,Ft as j,It as M,Mt as N,Nt as ee,Ot as te,St as ne,Tt as re,jt as P,kt as F,wt as I}from"./constants-DReNd4Tz.js";import{Br as L,Bt as R,Fr as z,Ht as B,Qt as V,Rr as H,Vt as U,Wt as W,Yn as G,k as K,un as q,zt as J}from"./index-CIYP4tky.js";import{t as Y}from"./index.es-ZdY-W-4e.js";import{t as X}from"./CopyToClipboard-C5mevMpz.js";import{t as Z}from"./ImagePreview-CKvZyZkj.js";import{n as ie}from"./taskDrawerMixin-DEgO_R5H.js";import{t as ae}from"./Consumption-CPg7sknu.js";import{i as Q,n as oe,t as se}from"./pagination-Cd8zGyDq.js";import{t as ce}from"./VideoPlayer-DRR-fN3Y.js";import{t as le}from"./ApiCodeButton-B8qC3cs-.js";import{t as ue}from"./BotPlaceholder-BMiZd9Le.js";import{t as de}from"./NoTasks-DYN_owjb.js";import{t as fe}from"./PromptTextarea-D7e0wObB.js";var pe=r({name:`LayoutGrokVideo`,components:{ElDrawer:E,ElButton:y,FontAwesomeIcon:Y},mixins:[ie]}),me={class:`main flex flex-row flex-1`},he={class:`config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},ge={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function _e(e,r,i,a,s,c){let l=g(`font-awesome-icon`),u=g(`el-button`),f=g(`el-drawer`);return d(),t(`div`,me,[n(`div`,he,[m(e.$slots,`config`,{},void 0,!0)]),n(`div`,ge,[m(e.$slots,`result`,{},void 0,!0)]),p(o(u,{circle:``,class:`menu`,onClick:r[0]||=t=>e.drawer=!0},{default:_(()=>[o(l,{icon:`fa-solid fa-magic`})]),_:1},512),[[v,!e.tasksEmpty]]),o(f,{modelValue:e.drawer,"onUpdate:modelValue":r[1]||=t=>e.drawer=t,direction:`ltr`,"with-header":!1,size:`350px`},{default:_(()=>[m(e.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var ve=K(pe,[[`render`,_e],[`__scopeId`,`data-v-76ddc288`]]),ye=r({name:`GrokVideoPromptInput`,components:{PromptTextarea:fe},computed:{prompt:{get(){return this.$store.state.grokvideo?.config?.prompt},set(e){this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,prompt:e})}}},mounted(){this.prompt||=``}});function be(e,t,n,r,i,o){let s=g(`prompt-textarea`);return d(),a(s,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`grokvideo.name.prompt`),info:e.$t(`grokvideo.description.prompt`),placeholder:e.$t(`grokvideo.placeholder.prompt`),"min-rows":5},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var xe=K(ye,[[`render`,be]]),Se=r({name:`GrokVideoModelSelector`,components:{ElSelect:b,ElOption:x,InfoIcon:Q},data(){return{options:[{value:te,label:this.$t(`grokvideo.model.default`)},{value:k,label:this.$t(`grokvideo.model.preview15`)}]}},computed:{value:{get(){return this.$store.state.grokvideo?.config?.model},set(e){this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,model:e})}}},mounted(){this.value||=ne}}),Ce={class:`field`},we={class:`label`},Te={class:`box`},Ee={class:`title font-bold`};function De(r,i,c,l,f,p){let m=g(`info-icon`),h=g(`el-option`),v=g(`el-select`);return d(),t(`div`,Ce,[n(`div`,we,[n(`div`,Te,[n(`h2`,Ee,u(r.$t(`grokvideo.name.model`)),1),o(m,{content:r.$t(`grokvideo.description.model`),class:`info`},null,8,[`content`])])]),o(v,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`grokvideo.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Oe=K(Se,[[`render`,De],[`__scopeId`,`data-v-291d93fb`]]),ke=r({name:`GrokVideoDurationSelector`,components:{ElSelect:b,ElOption:x,InfoIcon:Q},computed:{model(){return this.$store.state.grokvideo?.config?.model},maxDuration(){return j(this.model)},options(){return re.filter(e=>e<=this.maxDuration).map(e=>({value:e,label:`${e}s`}))},value:{get(){return this.$store.state.grokvideo?.config?.duration},set(e){this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,duration:e})}}},watch:{maxDuration(e){this.value&&this.value>e&&(this.value=e)}},mounted(){this.value||=8}}),Ae={class:`field`},je={class:`label`},Me={class:`box`},Ne={class:`title font-bold`};function Pe(r,i,c,l,f,p){let m=g(`info-icon`),h=g(`el-option`),v=g(`el-select`);return d(),t(`div`,Ae,[n(`div`,je,[n(`div`,Me,[n(`h2`,Ne,u(r.$t(`grokvideo.name.duration`)),1),o(m,{content:r.$t(`grokvideo.description.duration`),class:`info`},null,8,[`content`])])]),o(v,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`grokvideo.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Fe=K(ke,[[`render`,Pe],[`__scopeId`,`data-v-9c711686`]]),Ie=r({name:`GrokVideoResolutionSelector`,components:{InfoIcon:Q},data(){return{options:[{value:N,label:`480p`},{value:ee,label:`720p`},{value:P,label:`1080p`}]}},computed:{value:{get(){return this.$store.state.grokvideo?.config?.resolution},set(e){this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,resolution:e})}}},mounted(){this.value||=I}}),Le={class:`resolution`},Re={class:`header`},ze={class:`title font-bold`},Be={class:`items`},Ve=[`onClick`];function He(r,i,a,c,f,p){let m=g(`info-icon`);return d(),t(`div`,Le,[n(`div`,Re,[n(`h2`,ze,u(r.$t(`grokvideo.name.resolution`)),1),o(m,{content:r.$t(`grokvideo.description.resolution`),class:`info`},null,8,[`content`])]),n(`div`,Be,[(d(!0),t(s,null,e(r.options,e=>(d(),t(`div`,{key:e.value,class:l([`item`,{active:r.value===e.value}]),onClick:t=>r.value=e.value},u(e.label),11,Ve))),128))])])}var Ue=K(Ie,[[`render`,He],[`__scopeId`,`data-v-54f22a22`]]),We=r({name:`GrokVideoRatioSelector`,components:{InfoIcon:Q},computed:{options(){return[{value:F,label:`16:9`,w:32,h:18},{value:D,label:`9:16`,w:18,h:32},{value:`1:1`,label:`1:1`,w:24,h:24},{value:`4:3`,label:`4:3`,w:28,h:21},{value:`3:4`,label:`3:4`,w:21,h:28},{value:`3:2`,label:`3:2`,w:30,h:20},{value:`2:3`,label:`2:3`,w:20,h:30}]},value:{get(){return this.$store.state.grokvideo?.config?.aspect_ratio},set(e){this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,aspect_ratio:e})}}},mounted(){this.value||=O}}),Ge={class:`ratio`},Ke={class:`header`},qe={class:`title font-bold`},Je={class:`items`},Ye=[`onClick`],Xe={class:`preview`},Ze={class:`name`};function Qe(r,i,a,f,p,m){let h=g(`info-icon`);return d(),t(`div`,Ge,[n(`div`,Ke,[n(`h2`,qe,u(r.$t(`grokvideo.name.ratio`)),1),o(h,{content:r.$t(`grokvideo.description.ratio`),class:`info`},null,8,[`content`])]),n(`div`,Je,[(d(!0),t(s,null,e(r.options,e=>(d(),t(`div`,{key:e.value,class:l([`item`,{active:r.value===e.value}]),onClick:t=>r.value=e.value},[n(`div`,Xe,[n(`div`,{class:`rect`,style:c({width:e.w+`px`,height:e.h+`px`})},null,4)]),n(`div`,Ze,u(e.label),1)],10,Ye))),128))])])}var $e=K(We,[[`render`,Qe],[`__scopeId`,`data-v-70115284`]]),et=r({name:`GrokVideoImageInput`,components:{ElUpload:S,ElButton:y,InfoIcon:Q,FontAwesomeIcon:Y,ImagePreview:Z},mixins:[B,R],data(){return{fileList:[],uploadUrl:H()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},required(){return M(this.$store.state.grokvideo?.config?.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},methods:{onExceed(){L.warning(this.$t(`grokvideo.message.uploadExceed`))},onError(){L.error(this.$t(`grokvideo.message.uploadError`))},onSetImageUrl(){let e=this.urls?.[0];this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,image_url:e||void 0})},async onSuccess(){this.onSetImageUrl()},async onRemove(){this.onSetImageUrl()}}}),tt={class:`relative`},nt={class:`flex justify-between`},rt={class:`flex justify-start items-center`},it={class:`text-sm font-bold`},at={key:0,class:`required-badge`};function ot(e,r,s,c,l,f){let p=g(`info-icon`),m=g(`image-preview`),v=g(`font-awesome-icon`),y=g(`el-button`),b=g(`el-upload`);return d(),t(`div`,tt,[n(`div`,nt,[n(`div`,rt,[n(`span`,it,u(e.$t(`grokvideo.name.image`)),1),e.required?(d(),t(`span`,at,u(e.$t(`grokvideo.name.required`)),1)):h(``,!0),o(p,{content:e.$t(`grokvideo.description.image`)},null,8,[`content`])])]),o(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{file:_(({file:t})=>[t.url&&t.percentage!==void 0?(d(),a(m,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):h(``,!0)]),default:_(()=>[o(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`grokvideo.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])}var st=K(et,[[`render`,ot],[`__scopeId`,`data-v-164e5a1d`]]),ct=4,lt=r({name:`GrokVideoReferenceImagesInput`,components:{ElUpload:S,ElButton:y,InfoIcon:Q,ImagePreview:Z,FontAwesomeIcon:Y},mixins:[B,R],data(){return{fileList:[],uploadUrl:H()+`/api/v1/files/`,limit:ct,suppressWatch:!1}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url).filter(e=>!!e)||[]},value(){return this.$store.state.grokvideo?.config?.reference_image_urls}},watch:{value:{immediate:!0,handler(e){if(this.suppressWatch)return;if(!e||e.length===0){let e=(this.fileList||[]).filter(e=>!e?.response?.file_url);this.fileList=e.length?e:[];return}let t=[];e.forEach(e=>{let n=this.fileList.find(t=>t?.response?.file_url===e||t?.url===e);n?t.push(n):t.push({name:e.split(`/`).pop()||e,url:e,status:`success`,percentage:100,response:{file_url:e}})}),(this.fileList||[]).filter(e=>!e?.response?.file_url).forEach(e=>{t.some(t=>t===e||t?.url===e?.url||t?.response?.file_url===e?.response?.file_url)||t.push(e)}),this.fileList=t}}},methods:{onChange(e){if(!e?.url&&e?.raw)try{e.url=URL.createObjectURL(e.raw)}catch{}},onRemove(e){if(e?.url&&typeof e.url==`string`&&e.url.startsWith(`blob:`))try{URL.revokeObjectURL(e.url)}catch{}this.onSetReferenceImages()},onExceed(){L.warning(this.$t(`grokvideo.message.uploadReferenceExceed`))},onError(){L.error(this.$t(`grokvideo.message.uploadError`))},onSetReferenceImages(){let e=this.urls;this.suppressWatch=!0,this.$store.commit(`grokvideo/setConfig`,{...this.$store.state.grokvideo?.config,reference_image_urls:e.length?e:void 0}),this.$nextTick(()=>{this.suppressWatch=!1})},async onSuccess(e,t){e?.file_url&&(t.url=e.file_url,t.response=e),this.onSetReferenceImages()},onRemovePreview(e,t){if(this.fileList.splice(e,1),t?.url&&typeof t.url==`string`&&t.url.startsWith(`blob:`))try{URL.revokeObjectURL(t.url)}catch{}this.onSetReferenceImages()}}}),ut={class:`field flex items-center justify-between`},dt={class:`title font-bold text-[14px] mb-[10px]`},ft={class:`upload-wrapper flex flex-col items-start gap-[8px]`},pt={class:`controls flex items-center`},mt={class:`file-list flex flex-wrap gap-[10px]`};function ht(r,c,l,f,p,m){let h=g(`font-awesome-icon`),v=g(`el-button`),y=g(`el-upload`),b=g(`info-icon`),x=g(`image-preview`);return d(),t(s,null,[n(`div`,ut,[n(`h2`,dt,u(r.$t(`grokvideo.name.referenceImages`)),1),n(`div`,ft,[n(`div`,pt,[o(y,{ref:`uploader`,"file-list":r.fileList,"onUpdate:fileList":c[0]||=e=>r.fileList=e,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,name:`file`,class:`value`,limit:r.limit,multiple:!0,"show-file-list":!1,action:r.uploadUrl,"on-exceed":r.onExceed,"on-error":r.onError,"on-success":r.onSuccess,"on-change":r.onChange,"on-remove":r.onRemove,headers:r.headers},{default:_(()=>[o(v,{size:`small`,type:`primary`,round:``},{default:_(()=>[o(h,{icon:`fa-solid fa-upload`,class:`mr-1`}),i(` `+u(r.$t(`grokvideo.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`limit`,`action`,`on-exceed`,`on-error`,`on-success`,`on-change`,`on-remove`,`headers`]),o(b,{content:r.$t(`grokvideo.description.referenceImages`),class:`ml-2`},null,8,[`content`])])])]),n(`div`,mt,[(d(!0),t(s,null,e(r.fileList,(e,t)=>(d(),a(x,{key:e.uid||e?.response?.file_url||e.url||t,url:e.url||e?.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>r.onRemovePreview(t,e)},null,8,[`url`,`name`,`percentage`,`onRemove`]))),128))])],64)}var gt=r({name:`GrokVideoConfigPanel`,components:{ElButton:y,FontAwesomeIcon:Y,PromptInput:xe,ModelSelector:Oe,DurationSelector:Fe,ResolutionSelector:Ue,RatioSelector:$e,ImageInput:st,ReferenceImagesInput:K(lt,[[`render`,ht]]),Consumption:ae},emits:[`generate`],computed:{config(){return this.$store.state.grokvideo?.config},supportsReferenceImages(){return!M(this.$store.state.grokvideo?.config?.model)},consumption(){return W(this.config,this.service?.cost)},service(){return this.$store.state.grokvideo?.service}},methods:{onGenerate(){this.$emit(`generate`)}}}),_t={class:`flex flex-col h-full`},vt={class:`flex-1 overflow-y-auto p-5`},yt={class:`flex flex-col items-center justify-center px-5 pb-5`};function bt(e,r,s,c,l,f){let p=g(`prompt-input`),m=g(`model-selector`),v=g(`ratio-selector`),y=g(`resolution-selector`),b=g(`duration-selector`),x=g(`image-input`),S=g(`reference-images-input`),C=g(`consumption`),w=g(`font-awesome-icon`),T=g(`el-button`);return d(),t(`div`,_t,[n(`div`,vt,[o(p,{class:`mb-4`}),o(m,{class:`mb-4`}),o(v,{class:`mb-4`}),o(y,{class:`mb-4`}),o(b,{class:`mb-4`}),o(x,{class:`mb-2`}),e.supportsReferenceImages?(d(),a(S,{key:0,class:`mb-2`})):h(``,!0)]),n(`div`,yt,[o(C,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),o(T,{type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:_(()=>[o(w,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+u(e.$t(`grokvideo.button.generate`)),1)]),_:1},8,[`onClick`])])])}var xt=K(gt,[[`render`,bt]]),St=r({name:`GrokVideoTaskPreview`,components:{ElImage:w,CopyToClipboard:X,FontAwesomeIcon:Y,ElAlert:T,VideoPlayer:ce,ElTooltip:C,ElButton:y,ImagePreview:Z,ApiCodeButton:le},props:{modelValue:{type:Object,required:!0}},data(){return{grokVideoLogo:A,nowTs:Date.now(),timer:0}},computed:{video(){return this.modelValue?.response?.data?.[0]},inputImage(){return this.modelValue?.request?.image_url},pendingElapsed(){let e=parseFloat((this.modelValue?.created_at||``).toString());if(e)return Math.max(0,Math.floor(this.nowTs/1e3-e))}},watch:{"modelValue.response":{handler(e){e&&this.stopTimer()}}},mounted(){this.modelValue?.response||(this.timer=window.setInterval(()=>{this.nowTs=Date.now()},1e3))},beforeUnmount(){this.stopTimer()},methods:{stopTimer(){this.timer&&=(window.clearInterval(this.timer),0)},onDownload(e){window.open(e,`_blank`)}}}),Ct={class:`preview`},wt={class:`left`},Tt={class:`main`},Et={class:`bot`},Dt={class:`datetime`},Ot={class:`info`},kt={key:0,class:`flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto`},At={key:1,class:`prompt mt-2`},jt={key:0},Mt={key:1},Nt={key:0,class:l({content:!0})},Pt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ft={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},It={key:1,class:l({content:!0})},Lt={key:0,class:`mb-4`},Rt={key:1,class:l({operations:!0,"mt-2":!0,"mb-2":!0})},zt={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Bt={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Vt={key:0},Ht={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ut={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Wt={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Gt={key:2,class:l({content:!0})},Kt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},qt={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Jt={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Yt={key:3,class:l({content:!0})},Xt={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Zt(e,r,a,s,c,l){let p=g(`el-image`),m=g(`image-preview`),v=g(`font-awesome-icon`),y=g(`copy-to-clipboard`),b=g(`el-alert`),x=g(`video-player`),S=g(`el-button`),C=g(`el-tooltip`),w=g(`api-code-button`);return d(),t(`div`,Ct,[n(`div`,wt,[o(p,{src:e.grokVideoLogo,class:`avatar`},null,8,[`src`])]),n(`div`,Tt,[n(`div`,Et,[i(u(e.$t(`grokvideo.name.bot`))+` `,1),n(`span`,Dt,u(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Ot,[e.inputImage?(d(),t(`div`,kt,[o(m,{url:e.inputImage,name:`image`,closable:!1},null,8,[`url`])])):h(``,!0),e.modelValue?.request?.prompt?(d(),t(`p`,At,[i(u(e.modelValue?.request?.prompt)+` `,1),e.modelValue?.response?e.video?.state===`processing`||e.video?.state===`pending`?(d(),t(`span`,Mt,` - (`+u(e.$t(`grokvideo.status.processing`))+`) `,1)):h(``,!0):(d(),t(`span`,jt,` - (`+u(e.$t(`grokvideo.status.pending`))+`) `,1))])):h(``,!0)]),e.modelValue?.response?e.modelValue?.response?.success===!0?(d(),t(`div`,It,[e.video?.video_url?(d(),t(`div`,Lt,[o(x,{src:e.video?.video_url},null,8,[`src`])])):h(``,!0),e.video?.video_url?(d(),t(`div`,Rt,[o(C,{class:`box-item`,effect:`dark`,content:e.$t(`grokvideo.message.downloadVideo`),placement:`top-start`},{default:_(()=>[o(S,{type:`info`,size:`small`,class:`btn-action`,onClick:r[0]||=f(t=>e.onDownload(e.video?.video_url),[`stop`])},{default:_(()=>[i(u(e.$t(`grokvideo.button.download`)),1)]),_:1})]),_:1},8,[`content`]),o(w,{path:`/grok/videos`,body:e.modelValue?.request},null,8,[`body`])])):h(``,!0),o(b,{closable:!1,class:`mt-2 success`},{default:_(()=>[e.modelValue?.request?.model?(d(),t(`p`,zt,[o(v,{icon:`fa-solid fa-cube`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.model`))+`: `+u(e.modelValue?.request?.model),1)])):h(``,!0),e.video?.duration?(d(),t(`p`,Bt,[o(v,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.duration`))+`: `+u(e.video?.duration)+`s `,1)])):h(``,!0),e.modelValue?.request?.resolution?(d(),t(`p`,$,[o(v,{icon:`fa-solid fa-expand`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.resolution`))+`: `+u(e.modelValue?.request?.resolution)+` `,1),e.modelValue?.request?.aspect_ratio?(d(),t(`span`,Vt,` · `+u(e.modelValue?.request?.aspect_ratio),1)):h(``,!0)])):h(``,!0),n(`p`,Ht,[o(v,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(y,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),e.modelValue?.elapsed?(d(),t(`p`,Ut,[o(v,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.elapsed`))+`: `+u(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),e.modelValue?.response?.trace_id?(d(),t(`p`,Wt,[o(v,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.traceId`))+`: `+u(e.modelValue?.response?.trace_id)+` `,1),o(y,{content:e.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0)]),_:1})])):e.modelValue?.response?.success===!1?(d(),t(`div`,Gt,[o(b,{closable:!1,class:`failure`},{template:_(()=>[o(v,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.failure`)),1)]),default:_(()=>[n(`p`,Kt,[o(v,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(y,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),e.modelValue?.response?.error?.message?(d(),t(`p`,qt,[o(v,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.failureReason`))+`: `+u(e.modelValue?.response?.error?.message)+` `,1),o(y,{content:e.modelValue?.response?.error?.message,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0),e.modelValue?.response?.trace_id?(d(),t(`p`,Jt,[o(v,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.traceId`))+`: `+u(e.modelValue?.response?.trace_id)+` `,1),o(y,{content:e.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0)]),_:1})])):(d(),t(`div`,Yt,[o(b,{closable:!1,class:`info`},{template:_(()=>[o(v,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.status`)),1)]),default:_(()=>[n(`p`,Xt,[o(v,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(y,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])])]),_:1})])):(d(),t(`div`,Nt,[o(b,{closable:!1,class:`info`},{template:_(()=>[o(v,{icon:`fa-regular fa-clock`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.status.pending`)),1)]),default:_(()=>[n(`p`,Pt,[o(v,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(y,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),e.pendingElapsed===void 0?h(``,!0):(d(),t(`p`,Ft,[o(v,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(e.$t(`grokvideo.name.elapsed`))+`: `+u(e.pendingElapsed)+`s `,1)]))]),_:1})]))])])}var Qt=r({name:`GrokVideoRecentPanel`,components:{TaskPreview:K(St,[[`render`,Zt],[`__scopeId`,`data-v-48f65a64`]]),BotPlaceholder:ue,NoTasks:de,ScrollList:oe},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],computed:{tasks(){return{...this.$store.state.grokvideo?.tasks,items:this.$store.state.grokvideo?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),$t={key:0},en={key:2,class:`w-full h-full flex items-center justify-center`};function tn(n,r,i,c,l,u){let f=g(`bot-placeholder`),p=g(`task-preview`),m=g(`scroll-list`),v=g(`no-tasks`);return d(),t(s,null,[n.tasks?.items===void 0?(d(),t(`div`,$t,[o(f)])):n.tasks?.items?.length&&n.tasks?.items?.length>0?(d(),a(m,{key:1,ref:`scrollList`,class:`tasks w-full h-full overflow-y-auto`,loading:n.loading,onReachTop:r[0]||=e=>n.$emit(`reach-top`)},{default:_(()=>[(d(!0),t(s,null,e(n.tasks?.items,e=>(d(),a(p,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):h(``,!0),n.tasks?.items?.length===0?(d(),t(`div`,en,[o(v)])):h(``,!0)],64)}var nn=r({name:`GrokVideoIndex`,components:{ConfigPanel:xt,Layout:ve,RecentPanel:K(Qt,[[`render`,tn]])},mixins:[U],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.grokvideo?.status?.getApplications===z.Request},tasksLoading(){return this.$store.state.grokvideo?.status?.getTasks===z.Request||this.fetchingTasks},credential(){return this.$store.state.grokvideo?.credential},config(){return this.$store.state.grokvideo?.config},tasks(){return this.$store.state.grokvideo?.tasks}},watch:{initialized:{async handler(e){e&&(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 se({tasks: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(){await this.$store.dispatch(`grokvideo/getService`)},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks)return;let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};this.fetchingTasks=!0;try{await this.$store.dispatch(`grokvideo/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!J(this.uploadTracker,e=>this.$t(e),e=>L.warning(e)))return;let e={...this.config||{}};typeof e?.prompt==`string`&&(e.prompt=e.prompt.trim(),e.prompt||delete e.prompt),typeof e?.image_url==`string`&&!e.image_url.trim()&&delete e.image_url,(M(e?.model)||!(Array.isArray(e?.reference_image_urls)&&e.reference_image_urls.length))&&delete e.reference_image_urls;let t=!!e?.image_url;if(M(e?.model)&&!t){L.warning(this.$t(`grokvideo.message.modelRequiresImage`));return}if(!t&&!e?.prompt){L.warning(this.$t(`grokvideo.message.promptOrImageRequired`));return}let n={...e,async:!0};if(!V())return;let r=this.credential?.token;if(!r){console.error(`no token specified`);return}L.info(this.$t(`grokvideo.message.startingTask`)),G(`grokvideo`,q.generate(n,{token:r})).then(()=>{L.success(this.$t(`grokvideo.message.startTaskSuccess`))}).catch(e=>{let t=e?.response?.data;t?.error?.code===`used_up`?L.error(this.$t(`grokvideo.message.usedUp`)):L.error(this.$t(`grokvideo.message.startTaskFailed`)+(t?.error?.message||``))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function rn(e,t,n,r,i,s){let c=g(`config-panel`),l=g(`recent-panel`),u=g(`layout`);return d(),a(u,null,{config:_(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:_(()=>[o(l,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var an=K(nn,[[`render`,rn]]);export{an as default};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Vt as c,Wt as l,Z as u,b as d,k as f,tt as p,ut as m}from"./vendor-chart-BJCvKk8-.js";import{t as h}from"./button-BydTr5nV.js";import{r as g,t as _}from"./select-F0nTmzsr.js";import{t as v}from"./upload-Dro0UwGd.js";import{t as y}from"./tooltip-ivBOvVK_.js";import{t as b}from"./image-3Z-MYHWR.js";import{t as x}from"./alert-C51owb6L.js";import{Jn as S}from"./constants-DReNd4Tz.js";import{Br as C,Bt as w,Fr as T,Ht as E,Qt as D,Rr as ee,Vt as te,Wt as O,Yn as k,k as A,xn as j,zt as M}from"./index-CIYP4tky.js";import{t as N}from"./index.es-ZdY-W-4e.js";import{t as P}from"./CopyToClipboard-C5mevMpz.js";import{t as F}from"./ImagePreview-CKvZyZkj.js";import{t as I}from"./Consumption-CPg7sknu.js";import{i as L,n as R,t as z}from"./pagination-Cd8zGyDq.js";import{t as B}from"./VideoPlayer-DRR-fN3Y.js";import{t as V}from"./ApiCodeButton-B8qC3cs-.js";import{t as H}from"./BotPlaceholder-BMiZd9Le.js";import{t as U}from"./NoTasks-DYN_owjb.js";import{t as W}from"./Hailuo-BIGGS-v5.js";import{t as G}from"./PromptTextarea-D7e0wObB.js";var K=r({name:`ModelSelector`,components:{ElSelect:g,ElOption:_},data(){return{}},computed:{options(){return[{value:`minimax-t2v`,label:this.$t(`hailuo.button.model1`)},{value:`minimax-i2v`,label:this.$t(`hailuo.button.model2`)},{value:`minimax-i2v-director`,label:this.$t(`hailuo.button.model3`)}]},value:{get(){return this.$store.state.hailuo?.config?.model},set(e){this.$store.commit(`hailuo/setConfig`,{...this.$store.state.hailuo?.config,model:e})}}},mounted(){this.value||=S}}),q={class:`field`},J={class:`title font-bold`},Y={class:`float-left`};function X(r,i,c,d,f,h){let g=p(`el-option`),_=p(`el-select`);return u(),t(`div`,q,[n(`h2`,J,l(r.$t(`hailuo.name.model`)),1),o(_,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`hailuo.placeholder.select`),clearable:``},{default:m(()=>[(u(!0),t(s,null,e(r.options,e=>(u(),a(g,{key:e.value,label:e.label,value:e.value},{default:m(()=>[n(`span`,Y,l(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Z=A(K,[[`render`,X],[`__scopeId`,`data-v-a768fbd9`]]),Q=r({name:`StartImageUrlInput`,components:{ElUpload:v,ElButton:h,InfoIcon:L,ImagePreview:F},mixins:[E,w],data(){return{fileList:[],uploadUrl:ee()+`/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.hailuo?.config?.first_image_url},set(){let e=this.urls?.[0];this.$store.commit(`hailuo/setConfig`,{...this.$store.state.hailuo?.config,first_image_url:e})}}},mounted(){this.value||=void 0,this.onSetStartImageUrl()},methods:{onExceed(){C.warning(this.$t(`hailuo.message.uploadStartImageExceed`))},onError(){C.error(this.$t(`hailuo.message.uploadStartImageError`))},async onRemove(){C.error(this.$t(`hailuo.message.uploadStartImageError`))},onSetStartImageUrl(){let e=this.urls?.[0];this.$store.commit(`hailuo/setConfig`,{...this.$store.state.hailuo?.config,first_image_url:e})},async onSuccess(){this.onSetStartImageUrl()}}}),ne={class:`relative`},re={class:`flex justify-between`},ie={class:`flex justify-start items-center`},ae={class:`text-sm font-bold`};function oe(e,r,s,c,d,h){let g=p(`info-icon`),_=p(`image-preview`),v=p(`el-button`),y=p(`el-upload`);return u(),t(`div`,ne,[n(`div`,re,[n(`div`,ie,[n(`span`,ae,l(e.$t(`hailuo.name.startImageUrl`)),1),o(g,{content:e.$t(`hailuo.description.startImageUrl`),class:`info`},null,8,[`content`])])]),o(y,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,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:m(({file:t})=>[t.url&&t.percentage!==void 0?(u(),a(_,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):f(``,!0)]),default:m(()=>[o(v,{size:`small`,type:`primary`,class:`btn btn-upload`,round:``},{default:m(()=>[i(l(e.$t(`hailuo.button.uploadStartImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-remove`,`on-success`,`headers`])])}var se=A(Q,[[`render`,oe],[`__scopeId`,`data-v-fbf49b06`]]),ce=r({name:`PromptInput`,components:{PromptTextarea:G},computed:{prompt:{get(){return this.$store.state.hailuo?.config?.prompt},set(e){this.$store.commit(`hailuo/setConfig`,{...this.$store.state.hailuo?.config,prompt:e})}}},mounted(){this.prompt||=``}});function le(e,t,n,r,i,o){let s=p(`prompt-textarea`);return u(),a(s,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`hailuo.name.prompt`),info:e.$t(`hailuo.description.prompt`),placeholder:e.$t(`hailuo.placeholder.prompt`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var ue=r({name:`PresetPanel`,components:{ElButton:h,FontAwesomeIcon:N,PromptInput:A(ce,[[`render`,le]]),StartImageUrlInput:se,ModelSelector:Z,Consumption:I},emits:[`generate`],computed:{config(){return this.$store.state.hailuo?.config},consumption(){return O(this.config,this.service?.cost)},service(){return this.$store.state.hailuo?.service}},methods:{onGenerate(){this.$emit(`generate`)}}}),de={class:`flex flex-col h-full`},fe={class:`flex-1 overflow-y-auto p-5`},pe={class:`flex flex-col items-center justify-center px-5 pb-5`};function me(e,r,s,c,d,h){let g=p(`prompt-input`),_=p(`model-selector`),v=p(`start-image-url-input`),y=p(`consumption`),b=p(`font-awesome-icon`),x=p(`el-button`);return u(),t(`div`,de,[n(`div`,fe,[o(g,{class:`mb-4`}),o(_,{class:`mb-4`}),e.config?.model===`minimax-i2v`?(u(),a(v,{key:0,class:`mb-2`})):f(``,!0)]),n(`div`,pe,[o(y,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),e.config?.video_url!==void 0||e.config?.custom?(u(),a(x,{key:0,type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:m(()=>[o(b,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+l(e.$t(`hailuo.button.extend`)),1)]),_:1},8,[`onClick`])):(u(),a(x,{key:1,type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:m(()=>[o(b,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+l(e.$t(`hailuo.button.generate`)),1)]),_:1},8,[`onClick`]))])])}var he=A(ue,[[`render`,me]]),ge=r({name:`TaskPreview`,components:{ElImage:b,CopyToClipboard:P,FontAwesomeIcon:N,ElAlert:x,VideoPlayer:B,ElTooltip:y,ElButton:h,ApiCodeButton:V},props:{modelValue:{type:Object,required:!0}},computed:{application(){return this.$store.state.hailuo?.application},config(){return this.$store.state.hailuo?.config},video(){return this.modelValue?.response?.data?.[0]}},methods:{onDownload(e){console.debug(`on download hailuo video`,e),window.open(e,`_blank`)}}}),_e={class:`preview`},ve={class:`left`},ye={class:`main`},be={class:`bot`},xe={class:`datetime`},Se={class:`info`},Ce={key:0,class:`prompt mt-2`},we={key:0},Te={key:1},Ee={key:0,class:c({content:!0,failed:!0})},De={key:0,class:`mb-4`},Oe={key:1,class:c({operations:!0,"mt-2":!0})},ke={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ae={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},je={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Me={key:1,class:c({content:!0})},Ne={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Pe={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Fe={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Ie={key:2,class:c({content:!0})},Le={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Re(e,r,s,c,h,g){let _=p(`el-image`),v=p(`video-player`),y=p(`el-button`),b=p(`el-tooltip`),x=p(`api-code-button`),S=p(`font-awesome-icon`),C=p(`copy-to-clipboard`),w=p(`el-alert`);return u(),t(`div`,_e,[n(`div`,ve,[o(_,{src:`https://cdn.acedata.cloud/0qg4gp.png`,class:`avatar`})]),n(`div`,ye,[n(`div`,be,[i(l(e.$t(`hailuo.name.hailuoBot`))+` `,1),n(`span`,xe,l(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Se,[e.modelValue?.request?.prompt?(u(),t(`p`,Ce,[i(l(e.modelValue?.request?.prompt)+` `,1),e.modelValue?.response?f(``,!0):(u(),t(`span`,we,` - (`+l(e.$t(`hailuo.status.pending`))+`) `,1)),e.video?.state===`processing`||e.video?.state===`pending`||e.video?.state===`running`?(u(),t(`span`,Te,` - (`+l(e.$t(`hailuo.status.processing`))+`) `,1)):f(``,!0)])):f(``,!0)]),e.modelValue?.response?.success===!0?(u(),t(`div`,Ee,[e.video?.video_url?(u(),t(`div`,De,[o(v,{src:e.video?.video_url},null,8,[`src`])])):f(``,!0),e.video?(u(),t(`div`,Oe,[o(b,{class:`box-item`,effect:`dark`,content:e.$t(`hailuo.message.downloadVideo`),placement:`top-start`},{default:m(()=>[e.video?.video_url?(u(),a(y,{key:0,type:`info`,size:`small`,class:`mb-2`,onClick:r[0]||=d(t=>e.onDownload(e.video?.video_url),[`stop`])},{default:m(()=>[i(l(e.$t(`hailuo.button.download`)),1)]),_:1})):f(``,!0)]),_:1},8,[`content`]),o(x,{path:`/hailuo/videos`,body:e.modelValue?.request},null,8,[`body`])])):f(``,!0),o(w,{closable:!1,class:`mt-2 success`},{default:m(()=>[e.modelValue?.request?.model?(u(),t(`p`,ke,[o(S,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.model`))+`: `+l(e.modelValue?.request?.model)+` `,1),o(C,{content:e.modelValue?.id},null,8,[`content`])])):f(``,!0),n(`p`,Ae,[o(S,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),o(C,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.elapsed?(u(),t(`p`,je,[o(S,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):f(``,!0)]),_:1})])):f(``,!0),e.modelValue?.response?.success===!1?(u(),t(`div`,Me,[o(w,{closable:!1,class:`failure`},{template:m(()=>[o(S,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.failure`)),1)]),default:m(()=>[n(`p`,Ne,[o(S,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),o(C,{content:e.modelValue?.id},null,8,[`content`])]),n(`p`,Pe,[o(S,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.failureReason`))+`: `+l(e.modelValue?.response?.error?.message)+` `,1),o(C,{content:e.modelValue?.response?.error?.message},null,8,[`content`])]),e.modelValue?.elapsed?(u(),t(`p`,$,[o(S,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):f(``,!0),n(`p`,Fe,[o(S,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),o(C,{content:e.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})])):f(``,!0),e.modelValue?.response?.success===void 0?(u(),t(`div`,Ie,[o(w,{closable:!1,class:`info`},{template:m(()=>[o(S,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.failure`)),1)]),default:m(()=>[n(`p`,Le,[o(S,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`hailuo.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),o(C,{content:e.modelValue?.id},null,8,[`content`])])]),_:1})])):f(``,!0)])])}var ze=r({name:`RecentPanel`,components:{TaskPreview:A(ge,[[`render`,Re],[`__scopeId`,`data-v-53d13da4`]]),BotPlaceholder:H,NoTasks:U,ScrollList:R},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.hailuo?.tasks,items:this.$store.state.hailuo?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Be={key:0},Ve={key:2,class:`w-full h-full flex items-center justify-center`};function He(n,r,i,c,l,d){let h=p(`bot-placeholder`),g=p(`task-preview`),_=p(`scroll-list`),v=p(`no-tasks`);return u(),t(s,null,[n.tasks?.items===void 0?(u(),t(`div`,Be,[o(h)])):n.tasks?.items?.length&&n.tasks?.items?.length>0?(u(),a(_,{key:1,ref:`scrollList`,class:`tasks w-full h-full overflow-y-auto`,loading:n.loading,onReachTop:r[0]||=e=>n.$emit(`reach-top`)},{default:m(()=>[(u(!0),t(s,null,e(n.tasks?.items,e=>(u(),a(g,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):f(``,!0),n.tasks?.items?.length===0?(u(),t(`div`,Ve,[o(v)])):f(``,!0)],64)}var Ue=r({name:`HailuoIndex`,components:{ConfigPanel:he,Layout:W,RecentPanel:A(ze,[[`render`,He]])},mixins:[te],inject:[`initialized`],data(){return{task:void 0,job:0,timer:void 0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.hailuo?.status?.getApplications===T.Request},tasksLoading(){return this.$store.state.hailuo?.status?.getTasks===T.Request||this.fetchingTasks},credential(){return this.$store.state.hailuo.credential},config(){return this.$store.state.hailuo.config},application(){return this.$store.state.hailuo.application},tasks(){return this.$store.state.hailuo.tasks}},watch:{tasks:{handler(e,t){e?.items?.length>t?.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 z({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(`hailuo/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplication`),await this.$store.dispatch(`hailuo/getApplications`),console.debug(`end onGetApplication`),await this.onGetTasks()},async onScrollDown(){await this.$nextTick();let 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);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`hailuo/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!M(this.uploadTracker,e=>this.$t(e),e=>C.warning(e)))return;let e={...this.config,async:!0};if(!D())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}C.info(this.$t(`hailuo.message.startingTask`)),k(`hailuo`,j.generate(e,{token:t})).then(()=>{C.success(this.$t(`hailuo.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?C.error(this.$t(`hailuo.message.usedUp`)):C.error(this.$t(`hailuo.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function We(e,t,n,r,i,s){let c=p(`config-panel`),l=p(`recent-panel`),d=p(`layout`);return u(),a(d,null,{config:m(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:m(()=>[o(l,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var Ge=A(Ue,[[`render`,We]]);export{Ge as default};