@acedatacloud/nexior 3.353.2 → 3.353.4

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 (253) hide show
  1. package/dist/assets/{ApiCodeButton-PTy1Cbvo.js → ApiCodeButton-BoYfR8v5.js} +1 -1
  2. package/dist/assets/{Artifacts-y2YaVPLb.js → Artifacts-D2nQo4tU.js} +1 -1
  3. package/dist/assets/{AskUserQuestionCard-C9K8VKME.js → AskUserQuestionCard-roLNRaCn.js} +1 -1
  4. package/dist/assets/{Auth-01g2CCao.js → Auth-K5YCbBk2.js} +1 -1
  5. package/dist/assets/{Bare-Dp0mAdYw.js → Bare-D5W9OqtC.js} +1 -1
  6. package/dist/assets/{BotPlaceholder-BxCtmaAR.js → BotPlaceholder-C42Ymqvl.js} +1 -1
  7. package/dist/assets/{BottomFooter-BzgPkkio.js → BottomFooter-wiCnN85k.js} +1 -1
  8. package/dist/assets/{BrowserPairingDialog-DAP5zPmP.js → BrowserPairingDialog--ujU3DsW.js} +1 -1
  9. package/dist/assets/{Callback-DTr3kKHU.js → Callback-COmMgA5x.js} +1 -1
  10. package/dist/assets/{CodeSnippet-BL_7sDPR.js → CodeSnippet-CHGLu7DJ.js} +1 -1
  11. package/dist/assets/{Console-UBhzeV6E.js → Console-L7JJpzyh.js} +1 -1
  12. package/dist/assets/{Consumption-CpQHXzGt.js → Consumption-DGykzGxC.js} +1 -1
  13. package/dist/assets/{Conversation-XVBOvOi7.js → Conversation-DLC9y3KR.js} +1 -1
  14. package/dist/assets/{Conversation-xRCUb-xo.js → Conversation-dOY7hKiQ.js} +1 -1
  15. package/dist/assets/{CopyToClipboard-kEHSjRrJ.js → CopyToClipboard-CP5bh5uq.js} +1 -1
  16. package/dist/assets/{Detail-B1s_JKw_.js → Detail-CttCSTZq.js} +2 -2
  17. package/dist/assets/{Extra-DG37zGLy.js → Extra-bL5dtE9Y.js} +1 -1
  18. package/dist/assets/{FilePreview-CvCyrhWU.js → FilePreview-BaSJGB_a.js} +1 -1
  19. package/dist/assets/{Hailuo-BglWP260.js → Hailuo-ClFOkALJ.js} +1 -1
  20. package/dist/assets/{History-j1yW0Q04.js → History-7TfR3bG5.js} +1 -1
  21. package/dist/assets/{ImagePreview-BkFVGOWx.js → ImagePreview-fQJvI010.js} +1 -1
  22. package/dist/assets/{ImageWrapper-4e84V2ru.js → ImageWrapper-COWOs7PX.js} +1 -1
  23. package/dist/assets/{Index-DooByda72.js → Index-5F7g-4uB2.js} +1 -1
  24. package/dist/assets/{Index-CbpDcGAw.css → Index-7zEoaAQu.css} +1 -1
  25. package/dist/assets/{Index-D3JFwKr-.js → Index-B1vWOtER.js} +1 -1
  26. package/dist/assets/{Index-CSztlfB1.js → Index-Bbk1rAHB.js} +1 -1
  27. package/dist/assets/Index-BwkDhmFE.js +1 -0
  28. package/dist/assets/{Index-CytMO5iT.js → Index-C4OVnYCq.js} +1 -1
  29. package/dist/assets/{Index-DCwpuH2y.js → Index-CCx7gQCe.js} +1 -1
  30. package/dist/assets/{Index-B9Ygqxkf.js → Index-CJIzTKOg.js} +1 -1
  31. package/dist/assets/{Index-hKIxS6j_.js → Index-CUq80NZF.js} +1 -1
  32. package/dist/assets/{Index-R2VUT1Sy.js → Index-CYW7u2JH.js} +1 -1
  33. package/dist/assets/{Index-DiLvTMjM.js → Index-CZ2oBBT8.js} +1 -1
  34. package/dist/assets/{Index-B9xal3wg.js → Index-CcnW93mQ.js} +1 -1
  35. package/dist/assets/{Index-CrRGYTB_.js → Index-Cf-UjF1D.js} +1 -1
  36. package/dist/assets/{Index-syUY5be5.js → Index-Cg_E2kJJ.js} +1 -1
  37. package/dist/assets/{Index-DFa4-D2c2.js → Index-Cj93EwQM2.js} +1 -1
  38. package/dist/assets/{Index-w1kjEmD0.js → Index-Ck-MtsAt.js} +1 -1
  39. package/dist/assets/{Index-DOCz5ZV2.js → Index-CpsA-lJv.js} +1 -1
  40. package/dist/assets/{Index-Z2BXVkMg.js → Index-D1OEri8a.js} +1 -1
  41. package/dist/assets/{Index-YcP7FdSW.js → Index-D5Cd1PAJ.js} +1 -1
  42. package/dist/assets/{Index-D8QSnZx7.js → Index-D6G3PR4-.js} +1 -1
  43. package/dist/assets/{Index-DdEKTzD1.js → Index-D77J8iuo.js} +1 -1
  44. package/dist/assets/{Index-CfIM_2-T.js → Index-DAfPb1VE.js} +1 -1
  45. package/dist/assets/{Index-6_wXfk2T.js → Index-DGM5e4rY.js} +1 -1
  46. package/dist/assets/{Index-ZkG50SAg2.js → Index-DKqcW8gN2.js} +1 -1
  47. package/dist/assets/{Index-BI2wG4Oz.js → Index-DQbZ4QOr.js} +1 -1
  48. package/dist/assets/Index-DXlKbIkM.js +1 -0
  49. package/dist/assets/{Index-B706gkpT.js → Index-DfrL7HHX.js} +1 -1
  50. package/dist/assets/{Index-BJ3IdM5N.js → Index-DkNslpYz.js} +1 -1
  51. package/dist/assets/{Index-CkCEn-bk2.js → Index-Ds_JOOxL2.js} +1 -1
  52. package/dist/assets/{Index-DXO_BIXY.js → Index-HzUGw1Yb.js} +1 -1
  53. package/dist/assets/{Index-Dre5PLHc.js → Index-cso7ieUL.js} +1 -1
  54. package/dist/assets/{Index-x-8Z8EGa.js → Index-d_eDrmfZ.js} +1 -1
  55. package/dist/assets/{Index-KbkiKEGa2.js → Index-iostdk_R2.js} +1 -1
  56. package/dist/assets/{Index-CkMjTJdP.js → Index-tV7YZP-O.js} +1 -1
  57. package/dist/assets/{Invitees-QOLdnev6.js → Invitees-DSarU8BX.js} +1 -1
  58. package/dist/assets/{List-C2qglbhd.js → List-B9AVZp4s.js} +1 -1
  59. package/dist/assets/{List-C3DD5tPN.js → List-BjCtr92-.js} +1 -1
  60. package/dist/assets/{List-81QTxg_3.js → List-D673Pgy1.js} +1 -1
  61. package/dist/assets/{LocalTools-BDONAask.js → LocalTools-BC8jGBeL.js} +1 -1
  62. package/dist/assets/{LocalTools-DINsTLSN.js → LocalTools-eA6Y2rJq.js} +1 -1
  63. package/dist/assets/{Logo-DyrYlIJ-.js → Logo-Br3BGwwf.js} +1 -1
  64. package/dist/assets/{Main-DgrXyDL3.js → Main-CieB2Bf0.js} +1 -1
  65. package/dist/assets/Message-DHGdWt27.js +3 -0
  66. package/dist/assets/{Message-C1Nhth6j.css → Message-MrnJ51mA.css} +1 -1
  67. package/dist/assets/{Model-B-qhfE9o.js → Model-_ubRp5cm.js} +1 -1
  68. package/dist/assets/{Navigator-9sgtE2e0.js → Navigator-Bg-oSPVG.js} +3 -3
  69. package/dist/assets/{NotFound-GCbnUZjE.js → NotFound-Dvg08YK-.js} +1 -1
  70. package/dist/assets/{PageHeader-Dmi_HuY6.js → PageHeader-1oHtUwp7.js} +1 -1
  71. package/dist/assets/{Pay-CaHOv8ez.js → Pay-BWzR8VbM.js} +1 -1
  72. package/dist/assets/{Player-Crn-5xR_.js → Player-DznlIUrT.js} +1 -1
  73. package/dist/assets/{Poivelle-gM_P8xUZ.js → Poivelle-B-D1e0H1.js} +1 -1
  74. package/dist/assets/{RealtimeCall-49tL0UW6.js → RealtimeCall-DW49UKFy.js} +1 -1
  75. package/dist/assets/{ReportButton-CybqyzF6.js → ReportButton-Donr-AWk.js} +1 -1
  76. package/dist/assets/{ReportDialog-Bjypjitb.js → ReportDialog-BiLDb7Xj.js} +1 -1
  77. package/dist/assets/{ScheduledTasks-BDjUIQKF.js → ScheduledTasks-SoVhudjw.js} +1 -1
  78. package/dist/assets/{Status-75Zo1A3i.css → Status-8gHhjAIu.css} +1 -1
  79. package/dist/assets/Status-CsjAZI18.js +1 -0
  80. package/dist/assets/{Subscribe-CSVjTSdJ.js → Subscribe-BAWpX-9R.js} +1 -1
  81. package/dist/assets/{TabSwitcher-DcYdDAiy.js → TabSwitcher-BpZ1QcOS.js} +1 -1
  82. package/dist/assets/{Tts-D-emMwyM.js → Tts-CIeZdEMp.js} +1 -1
  83. package/dist/assets/{VideoPlayer-RzzT_NxH.js → VideoPlayer-BNRh6h0n.js} +1 -1
  84. package/dist/assets/{VideoPreview-BBjrN7yJ.js → VideoPreview-3_dzkg8M.js} +1 -1
  85. package/dist/assets/arrow-down-BxiXgbhu.js +1 -0
  86. package/dist/assets/{arrow-down-wide-narrow-DDQaX8Bj.js → arrow-down-wide-narrow-15zvSaHy.js} +1 -1
  87. package/dist/assets/arrow-left-BK9Fxa_j.js +1 -0
  88. package/dist/assets/arrow-right-CoHZqGXA.js +1 -0
  89. package/dist/assets/arrow-up-BV9vk3tx.js +1 -0
  90. package/dist/assets/{authorizeFlow-C0YXdMen.js → authorizeFlow-Cy446zIb.js} +1 -1
  91. package/dist/assets/{avatar-DlWhfISR.js → avatar-DRt2U5Pb.js} +1 -1
  92. package/dist/assets/{basic-Dk44KjDw.js → basic-DEJvhpaF.js} +1 -1
  93. package/dist/assets/{book-open-D7rcU9I8.js → book-open-Dv6qcZ2P.js} +1 -1
  94. package/dist/assets/{box-DCajlFel.js → box-aM-pcoXN.js} +1 -1
  95. package/dist/assets/{boxes-CNvhF1WR.js → boxes-YTdv0XY7.js} +1 -1
  96. package/dist/assets/{brain-BZtBmZSb.js → brain-C9dUBwpu.js} +1 -1
  97. package/dist/assets/{chart-no-axes-combined-CQUeJcAm.js → chart-no-axes-combined-D8kNMTYO.js} +1 -1
  98. package/dist/assets/{chat-qV1hEPyz.js → chat-C22xHrwi.js} +1 -1
  99. package/dist/assets/check-DpKzDz-5.js +1 -0
  100. package/dist/assets/chevron-down-BtvltmkO.js +1 -0
  101. package/dist/assets/chevron-right-D7HkzO9k.js +1 -0
  102. package/dist/assets/circle-check-B-06aax7.js +1 -0
  103. package/dist/assets/{circle-question-mark-YWvOuoPq.js → circle-question-mark-DuIxA4WE.js} +1 -1
  104. package/dist/assets/{clipboard-list-oYPkextV.js → clipboard-list-mNBTHEo2.js} +1 -1
  105. package/dist/assets/clock-CCljPowN.js +1 -0
  106. package/dist/assets/code-krPCdlwZ.js +1 -0
  107. package/dist/assets/{codingBridge-C2VV5GHb.js → codingBridge-DkDWjaM1.js} +1 -1
  108. package/dist/assets/{codingBridgeNotify-A6_CLdF4.js → codingBridgeNotify-D_NpZVaT.js} +2 -2
  109. package/dist/assets/{coins-BTAlPjXc.js → coins-BaBjiwRM.js} +1 -1
  110. package/dist/assets/{copy-C9p5ttuS.js → copy-DOHqs49h.js} +1 -1
  111. package/dist/assets/{createTaskActions-BUUrOofZ.js → createTaskActions-BkRUXvhA.js} +1 -1
  112. package/dist/assets/{digitalhuman-CjcLP1c8.js → digitalhuman-Ck3ZoJtC.js} +1 -1
  113. package/dist/assets/{dollar-sign-0lRHeuEq.js → dollar-sign-Dy-yQgch.js} +1 -1
  114. package/dist/assets/{download-BauSMozc.js → download-xaSy0mRf.js} +1 -1
  115. package/dist/assets/{drawer-DwNKgVNQ.js → drawer-BYrWn-wi.js} +1 -1
  116. package/dist/assets/{dropdown-BcSxMBDj.js → dropdown-WLLKaXoi.js} +1 -1
  117. package/dist/assets/{dropdown-DlD-t7w-.js → dropdown-dJyl79PP.js} +1 -1
  118. package/dist/assets/{ellipsis-qKp2yx_c.js → ellipsis-Kgu9BKV-.js} +1 -1
  119. package/dist/assets/esm-BTt8L_JR.js +1 -0
  120. package/dist/assets/{esm-Dq5mDv4-.js → esm-BWUBZWRX.js} +2 -2
  121. package/dist/assets/{esm-BVjtAKaL.js → esm-BcXgbm5s.js} +1 -1
  122. package/dist/assets/{esm-CBoelXqf.js → esm-BmoJJzPK.js} +2 -2
  123. package/dist/assets/{esm-C8yU5yBP.js → esm-ByzZb6WU.js} +1 -1
  124. package/dist/assets/{esm-BfitMxkx.js → esm-DBzwbQLe.js} +3 -3
  125. package/dist/assets/{esm-CwGCktEB.js → esm-DXlvgaWH.js} +1 -1
  126. package/dist/assets/{external-link-C-Spy8-D.js → external-link-BkmV4CLH.js} +1 -1
  127. package/dist/assets/{eye-B-pmZqp4.js → eye-DuSVGvFU.js} +1 -1
  128. package/dist/assets/{file-DxSuQKk4.js → file-BqOmxxbq.js} +1 -1
  129. package/dist/assets/{file-output-D2uw-hnn.js → file-output-BFLboA2n.js} +1 -1
  130. package/dist/assets/{file-text-BkEg1Wga.js → file-text-vQBok-1B.js} +1 -1
  131. package/dist/assets/{fish-B1UT-_TY.js → fish-CVQ6zwCl.js} +1 -1
  132. package/dist/assets/{flux-DdLMs2G5.js → flux-uQlHDfLl.js} +1 -1
  133. package/dist/assets/{folder-CfbjZMBC.js → folder-BPNNWMbi.js} +1 -1
  134. package/dist/assets/gauge-BYfRBfSe.js +1 -0
  135. package/dist/assets/{globe-G4DF9IKX.js → globe-C6g3JZgL.js} +1 -1
  136. package/dist/assets/{grokvideo-BKEvSXgA.js → grokvideo-DS40Qjn-.js} +1 -1
  137. package/dist/assets/{hailuo-B1r9WT5U.js → hailuo-C4genAdr.js} +1 -1
  138. package/dist/assets/{headphones-B3Ty0tOt.js → headphones-Cv7zE6hM.js} +1 -1
  139. package/dist/assets/{history-C6O2j7lB.js → history-CVkxFYWc.js} +1 -1
  140. package/dist/assets/{house-CNnzIeWl.js → house-D0BhonPH.js} +1 -1
  141. package/dist/assets/{image-9grrIbOS.js → image-CbgMrDy4.js} +1 -1
  142. package/dist/assets/{index-z6KXKq9i.js → index-DSAgKNWm.js} +3 -3
  143. package/dist/assets/{index.browser.esm-CtJGNwb5.js → index.browser.esm-BiZ1PUoX.js} +1 -1
  144. package/dist/assets/{index.es-DHWDsThb.js → index.es-BGtTBs6E.js} +1 -1
  145. package/dist/assets/{info-Cxon5zpU.js → info-B8n3U43j.js} +1 -1
  146. package/dist/assets/{input-number-DXUwKhhk.js → input-number-B6mCFWZN.js} +1 -1
  147. package/dist/assets/{key-round-CZWfOYD1.js → key-round-CAl3B3wn.js} +1 -1
  148. package/dist/assets/{kling-HOfETRV0.js → kling-LYu_XAKT.js} +1 -1
  149. package/dist/assets/{languages-B1h2tvSz.js → languages-sDxkzpgd.js} +1 -1
  150. package/dist/assets/{laptop-Po8L1sXC.js → laptop-B6VIa9KH.js} +1 -1
  151. package/dist/assets/{lightbulb-CBWCkzJ4.js → lightbulb-C8_0Sfzu.js} +1 -1
  152. package/dist/assets/{link-bwtqVJS9.js → link-Cqm9iai8.js} +1 -1
  153. package/dist/assets/loader-circle-C3oRC_46.js +1 -0
  154. package/dist/assets/{lock-DK3wDuN2.js → lock-DBne33UH.js} +1 -1
  155. package/dist/assets/{luma-DFBcZFqE.js → luma-DEP_aFYd.js} +1 -1
  156. package/dist/assets/{maestro-Wk3gy6mB.js → maestro-D7aVuf7F.js} +1 -1
  157. package/dist/assets/{mail-pYhlvo6E.js → mail-DoqXbBJ-.js} +1 -1
  158. package/dist/assets/{message-circle-BZxOIvHV.js → message-circle-CJKVqRKG.js} +1 -1
  159. package/dist/assets/{mic-dzhfHc1x.js → mic-CQqzgu2a.js} +1 -1
  160. package/dist/assets/{midjourney-BHvZGkjl.js → midjourney-Bnu6OgB6.js} +1 -1
  161. package/dist/assets/{mobileLocalExec-CgzaTlQ8.js → mobileLocalExec-WiFkhFuu.js} +2 -2
  162. package/dist/assets/{monitor-CO6lra68.js → monitor-DaGlrKZg.js} +1 -1
  163. package/dist/assets/{mouse-pointer-2-CjMoQP3P.js → mouse-pointer-2-BTYdPv6Y.js} +1 -1
  164. package/dist/assets/music-2-Bzom9ep9.js +1 -0
  165. package/dist/assets/{nanobanana-B61JIvz0.js → nanobanana-pFKlXGOc.js} +1 -1
  166. package/dist/assets/{omni-CSFtRao4.js → omni-vKP8RxU8.js} +1 -1
  167. package/dist/assets/{openaiimage-NzKSE7Tj.js → openaiimage-C3Y5kC8l.js} +1 -1
  168. package/dist/assets/{pagination-CYWHmEQy.js → pagination-BTVOvpvg.js} +1 -1
  169. package/dist/assets/{pagination-DSsNxN86.js → pagination-BbB25PxT.js} +1 -1
  170. package/dist/assets/{pagination-C7GFvDBj.js → pagination-CtkSWjVi.js} +1 -1
  171. package/dist/assets/{palette-D3WdfT0r.js → palette-8rydNAeE.js} +1 -1
  172. package/dist/assets/{paperclip-CSumSurJ.js → paperclip-DHh7WRgg.js} +1 -1
  173. package/dist/assets/{pause-DEFfi1MW.js → pause-VyvJQ-Z_.js} +1 -1
  174. package/dist/assets/{pencil-CmslIKkS.js → pencil-CrMC0hWn.js} +1 -1
  175. package/dist/assets/{pika-CkiuTfss.js → pika-DtaRH2KI.js} +1 -1
  176. package/dist/assets/{pixverse-DM8gfWnt.js → pixverse-C5WgxOjD.js} +1 -1
  177. package/dist/assets/play-xCfCGCia.js +1 -0
  178. package/dist/assets/{plug-ZkRs9BxT.js → plug-JAsKzEsm.js} +1 -1
  179. package/dist/assets/plus-Bgf4b7_D.js +1 -0
  180. package/dist/assets/{poivelle-BMjnxwPJ.js → poivelle-DrkneRmn.js} +1 -1
  181. package/dist/assets/{popover-BVk0bt76.js → popover-Oaiq8oiH.js} +1 -1
  182. package/dist/assets/{producer-CmDDQGq2.js → producer-CYrZMDUU.js} +1 -1
  183. package/dist/assets/{qrart-CDzKn5MX.js → qrart-Bv93TtPh.js} +1 -1
  184. package/dist/assets/{realtime-COJla9Tv.js → realtime-sBs7dTpg.js} +1 -1
  185. package/dist/assets/{refresh-cw-BLbDJ9d8.js → refresh-cw-ToSOF7mi.js} +1 -1
  186. package/dist/assets/rotate-ccw-DaRid_jM.js +1 -0
  187. package/dist/assets/rotate-cw-Dg6YEi1E.js +1 -0
  188. package/dist/assets/search-CT76oSOi.js +1 -0
  189. package/dist/assets/{seedance-Cr31rqL_.js → seedance-BA82Hana.js} +1 -1
  190. package/dist/assets/{seedream-E0SOoWYs.js → seedream-BblPBiNO.js} +1 -1
  191. package/dist/assets/{select-C1JBloXv.js → select-D1luRgRq.js} +1 -1
  192. package/dist/assets/{serp-C9eS9pPN.js → serp-CjpJqV9i.js} +1 -1
  193. package/dist/assets/{shield-CULt0IEs.js → shield-D81DAkjw.js} +1 -1
  194. package/dist/assets/{shuffle-5xvSnr1q.js → shuffle-bT3TpoOw.js} +1 -1
  195. package/dist/assets/{slider-D6bhKIIm.js → slider-B2HxCy0H.js} +1 -1
  196. package/dist/assets/{solana-wallets-oFQv81JO.js → solana-wallets-Ca1v2kZV.js} +2 -2
  197. package/dist/assets/{solana-wallets-vue-BmNRVZtb.js → solana-wallets-vue-CRE-3KhZ.js} +1 -1
  198. package/dist/assets/{sora-Dh3dsrvB.js → sora-Dh2A94bD.js} +1 -1
  199. package/dist/assets/{sparkles-Dj0Edp5k.js → sparkles-CGHT4a00.js} +1 -1
  200. package/dist/assets/square-z_a9bxBG.js +1 -0
  201. package/dist/assets/{store-3csKhH3_.js → store-CiS4Tvci.js} +1 -1
  202. package/dist/assets/{suno-C21REsqf.js → suno-BUxGWjMV.js} +1 -1
  203. package/dist/assets/{switch-Df4G1XQO.js → switch-C4Vaponc.js} +1 -1
  204. package/dist/assets/{table-xyp9aHdM.js → table-DRPwLfzY.js} +1 -1
  205. package/dist/assets/{tag-WUIasyR7.js → tag-BCkvG45l.js} +1 -1
  206. package/dist/assets/terminal-CE6gL9a8.js +1 -0
  207. package/dist/assets/{time-picker-BT9Xe-k7.js → time-picker-kfSXrfW7.js} +1 -1
  208. package/dist/assets/{tooltip-Cwwy0TGy.js → tooltip-DUcNmmP-.js} +1 -1
  209. package/dist/assets/{trash-2-mMMYa28u.js → trash-2-DLKDfmcv.js} +1 -1
  210. package/dist/assets/{triangle-alert-C28SDtE0.js → triangle-alert-BWV9pT6w.js} +1 -1
  211. package/dist/assets/{upload-D6NHiFjY.js → upload-BZ-Gklsa.js} +1 -1
  212. package/dist/assets/user-DV1_LEkO.js +1 -0
  213. package/dist/assets/{veo-CV2N5WQr.js → veo-Bm7aEC_8.js} +1 -1
  214. package/dist/assets/{video-BVL2CdJr.js → video-BUh3B3m1.js} +1 -1
  215. package/dist/assets/{volume-2-_ZlHtBbD.js → volume-2-BhxYo14t.js} +1 -1
  216. package/dist/assets/{wallet-BU45j_Ox.js → wallet-VxcilCIK.js} +1 -1
  217. package/dist/assets/{wan-CAj3-_ld.js → wan-CwcdkxuC.js} +1 -1
  218. package/dist/assets/{wand-sparkles-DPuJe95W.js → wand-sparkles-zeg14-Rq.js} +1 -1
  219. package/dist/assets/{web-DeloOhQd.js → web-1VZSOW5_.js} +1 -1
  220. package/dist/assets/{web-BjiFfADF.js → web-BO4N3c4H.js} +1 -1
  221. package/dist/assets/{web-DDTGlPY5.js → web-C3UOdUqb.js} +1 -1
  222. package/dist/assets/{web-BiRGFygI.js → web-CjeEalt1.js} +1 -1
  223. package/dist/assets/{web-D_i4Wxbr.js → web-UnkwI-Um.js} +1 -1
  224. package/dist/assets/{webextrator-BoP6DB5j.js → webextrator-5jcmEsnJ.js} +1 -1
  225. package/dist/assets/{zap-C2LTrSLM.js → zap-aiC_mBZz.js} +1 -1
  226. package/dist/index.html +1 -1
  227. package/package.json +1 -1
  228. package/dist/assets/Index-BaqenzAc.js +0 -1
  229. package/dist/assets/Index-TC_vF2rj.js +0 -1
  230. package/dist/assets/Message-CsExToPh.js +0 -3
  231. package/dist/assets/Status-1tFt4qql.js +0 -1
  232. package/dist/assets/arrow-down-BHy-uRDc.js +0 -1
  233. package/dist/assets/arrow-left-WvpuqvbU.js +0 -1
  234. package/dist/assets/arrow-right-CRIhneaK.js +0 -1
  235. package/dist/assets/arrow-up-D3Pwyuc0.js +0 -1
  236. package/dist/assets/check-ClRF_Odp.js +0 -1
  237. package/dist/assets/chevron-down-uClS3DwZ.js +0 -1
  238. package/dist/assets/chevron-right-DR-ZiDX1.js +0 -1
  239. package/dist/assets/circle-check-YpZm567l.js +0 -1
  240. package/dist/assets/clock-CG4G8mZJ.js +0 -1
  241. package/dist/assets/code-DKR_Hvr2.js +0 -1
  242. package/dist/assets/esm-BISGe7VK.js +0 -1
  243. package/dist/assets/gauge-DHXXbHVi.js +0 -1
  244. package/dist/assets/loader-circle-CCnrUMcL.js +0 -1
  245. package/dist/assets/music-2-CEgzmd8X.js +0 -1
  246. package/dist/assets/play-B_zaMs6X.js +0 -1
  247. package/dist/assets/plus-BQE5Wk3j.js +0 -1
  248. package/dist/assets/rotate-ccw-hwYQifpm.js +0 -1
  249. package/dist/assets/rotate-cw-COX1kONg.js +0 -1
  250. package/dist/assets/search-FsbPJb03.js +0 -1
  251. package/dist/assets/square-CIuXnaWe.js +0 -1
  252. package/dist/assets/terminal-DydDU401.js +0 -1
  253. package/dist/assets/user-Cj50GgYO.js +0 -1
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,C as t,Gt as n,I as r,Jt as i,L as a,M as o,N as s,T as c,at as l,bt as u,ht as d,it as f,j as p,mt as m,qt as h,rt as g,st as _,tt as v,x as y,z as b}from"./vendor-chart-Dw-P17PN.js";import{F as x}from"./icon-CDmWyIgD.js";import{r as S,t as C}from"./select-C1JBloXv.js";import{n as w,t as T}from"./tabs-CEdTUVdB.js";import{t as E}from"./upload-Cjls2phY.js";import{t as D}from"./tooltip-Cwwy0TGy.js";import{t as O}from"./alert-BprQRUmf.js";import{c as k,h as A,l as j,s as M,v as N}from"./models-yTQ4rqqP.js";import{n as P,r as F}from"./radio-BNhFzeBO.js";import{t as I}from"./drawer-DwNKgVNQ.js";import{n as L,t as R}from"./dropdown-BcSxMBDj.js";import{t as z}from"./input-number-DXUwKhhk.js";import{t as B}from"./slider-D6bhKIIm.js";import{t as V}from"./switch-Df4G1XQO.js";import{t as H}from"./arrow-down-BHy-uRDc.js";import{t as ee}from"./arrow-left-WvpuqvbU.js";import{t as te}from"./arrow-right-CRIhneaK.js";import{t as ne}from"./arrow-up-D3Pwyuc0.js";import{t as re}from"./check-ClRF_Odp.js";import{t as ie}from"./chevron-down-uClS3DwZ.js";import{t as ae}from"./clock-CG4G8mZJ.js";import{t as oe}from"./gauge-DHXXbHVi.js";import{a as se,c as ce,n as le,o as U,r as ue,t as de}from"./pagination-C7GFvDBj.js";import{t as fe}from"./image-9grrIbOS.js";import{t as pe}from"./info-Cxon5zpU.js";import{t as me}from"./refresh-cw-BLbDJ9d8.js";import{t as W}from"./upload-D6NHiFjY.js";import{t as he}from"./wand-sparkles-DPuJe95W.js";import{t as G}from"./zap-C2LTrSLM.js";import{Ai as ge,Oi as _e,ki as ve}from"./constants-CzYWUlOY.js";import{$t as ye,Ci as be,Mi as xe,O as K,Pi as q,Qt as J,Ti as Se,Zt as Ce,_r as we,en as Y,fn as Te,jr as Ee,oi as X,qt as Z,rn as De,tn as Q,yi as Oe}from"./index-z6KXKq9i.js";import{t as ke}from"./CopyToClipboard-kEHSjRrJ.js";import{t as Ae}from"./ReportButton-CybqyzF6.js";import{t as $}from"./ImagePreview-BkFVGOWx.js";import{n as je}from"./taskDrawerMixin-DyAUhFEq.js";import{t as Me}from"./Consumption-CpQHXzGt.js";import{t as Ne}from"./VideoPlayer-RzzT_NxH.js";import{t as Pe}from"./ApiCodeButton-PTy1Cbvo.js";import{t as Fe}from"./BotPlaceholder-BxCtmaAR.js";import{t as Ie}from"./ImageWrapper-4e84V2ru.js";var Le=Oe(`coffee`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]),Re=b({name:`LayoutMidjourney`,components:{MagicIcon:he,ElDrawer:I,ElButton:q},mixins:[je]}),ze={class:`main flex-1 h-full flex flex-row`},Be={class:`config w-[320px] flex-none h-full min-h-0 overflow-hidden flex flex-col bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},Ve={class:`results flex-1 h-full flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function He(t,n,r,i,o,c){let u=l(`magic-icon`),p=l(`el-button`),h=l(`el-drawer`);return v(),s(`div`,ze,[e(`div`,Be,[f(t.$slots,`config`,{},void 0,!0)]),e(`div`,Ve,[f(t.$slots,`results`,{},void 0,!0)]),d(a(p,{circle:``,class:`menu`,"aria-label":t.$t(`common.button.openMenu`),title:t.$t(`common.button.openMenu`),onClick:n[0]||=e=>t.drawer=!0},{default:m(()=>[a(u,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`]),[[y,!t.tasksEmpty]]),a(h,{modelValue:t.drawer,"onUpdate:modelValue":n[1]||=e=>t.drawer=e,direction:`ltr`,"with-header":!1,size:`340px`,class:`drawer generator-drawer`},{default:m(()=>[f(t.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var Ue=K(Re,[[`render`,He],[`__scopeId`,`data-v-fa528a88`]]),We=b({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`}}),Ge={class:`text-sm font-bold mb-2 block`},Ke={class:`items`},qe=[`onClick`],Je={class:`name`};function Ye(t,r,a,o,l,u){return v(),s(`div`,null,[e(`span`,Ge,i(t.$t(`midjourney.name.ratio`)),1),e(`div`,Ke,[(v(!0),s(c,null,g(t.options,(r,a)=>(v(),s(`div`,{key:a,class:n({active:t.active===a,item:!0}),onClick:e=>t.value=r.value},[e(`div`,{class:n([`preview`,r.label])},[e(`div`,{class:`rect`,style:h({width:r.width+`px`,height:r.height+`px`})},null,4)],2),e(`p`,Je,i(r.label),1)],10,qe))),128))])])}var Xe=K(We,[[`render`,Ye],[`__scopeId`,`data-v-b1114c34`]]),Ze=!1,Qe=b({name:`AdvancedSelector`,components:{ElSwitch:V},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=Ze)}}),$e={class:`field`},et={class:`title`};function tt(t,n,r,o,c,u){let d=l(`el-switch`);return v(),s(`div`,$e,[e(`h2`,et,i(t.$t(`midjourney.name.advanced`)),1),a(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`},null,8,[`modelValue`])])}var nt=K(Qe,[[`render`,tt],[`__scopeId`,`data-v-2d55fce2`]]),rt=b({name:`LoopSelector`,components:{ElSwitch:V,InfoIcon:U},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)}}),it={class:`relative`},at={class:`flex justify-between`},ot={class:`flex justify-start items-center`},st={class:`text-sm font-bold`},ct={class:`flex justify-end items-center`};function lt(t,n,r,o,c,u){let d=l(`info-icon`),f=l(`el-switch`);return v(),s(`div`,it,[e(`div`,at,[e(`div`,ot,[e(`span`,st,i(t.$t(`midjourney.name.loop`)),1),a(d,{content:t.$t(`midjourney.description.loop`)},null,8,[`content`])]),e(`div`,ct,[a(f,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`},null,8,[`modelValue`])])])])}var ut=K(rt,[[`render`,lt]]),dt=`8.1`,ft=b({name:`VersionSelector`,components:{ElSelect:S,ElOption:C},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){let t=this.$store.state.midjourney.config;this.$store.commit(`midjourney/setConfig`,{...t,version:e,...e===`8.1`?{quality:void 0,mode:t.mode===`turbo`?`fast`:t.mode}:{}})}}},watch:{value:{immediate:!0,handler(e){let t=this.$store.state.midjourney.config;e===`8.1`&&(t.quality||t.mode===`turbo`)&&(this.value=e)}}},mounted(){this.value||=dt}}),pt={class:`field`},mt={class:`text-sm font-bold`};function ht(t,n,r,o,u,d){let f=l(`el-option`),h=l(`el-select`);return v(),s(`div`,pt,[e(`span`,mt,i(t.$t(`midjourney.name.version`)),1),a(h,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`midjourney.placeholder.select`)},{default:m(()=>[(v(!0),s(c,null,g(t.options,e=>(v(),p(f,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var gt=K(ft,[[`render`,ht],[`__scopeId`,`data-v-c5a62d22`]]),_t=b({name:`HdSelector`,components:{InfoIcon:pe,ElSwitch:V,ElTooltip:D},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})}}}}),vt={class:`field`},yt={class:`text-sm font-bold`};function bt(t,n,o,c,u,d){let f=l(`info-icon`),p=l(`el-tooltip`),h=l(`el-switch`);return v(),s(`div`,vt,[e(`span`,yt,[r(i(t.$t(`midjourney.name.hd`))+` `,1),a(p,{content:t.$t(`midjourney.description.hd`),placement:`top`},{default:m(()=>[a(f,{class:`info-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`content`])]),a(h,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e},null,8,[`modelValue`])])}var xt=K(_t,[[`render`,bt],[`__scopeId`,`data-v-a97b008b`]]),St=b({name:`ReferenceImage`,components:{UploadIcon:W,ElUpload:E,ElButton:q,InfoIcon:U,ImagePreview:$},mixins:[Q,Y,J,Z],emits:[`change`],data(){return{fileList:[],uploadUrl:X()+`/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(){N.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){N.error(this.$t(`midjourney.message.uploadStartImageError`))}}}),Ct={class:`relative`},wt={class:`flex min-h-8 items-center pr-20`},Tt={class:`flex justify-start items-center`},Et={class:`text-sm font-bold`};function Dt(t,n,o,c,u,d){let f=l(`info-icon`),p=l(`image-preview`),h=l(`upload-icon`),g=l(`el-button`),_=l(`el-upload`);return v(),s(`div`,Ct,[e(`div`,wt,[e(`div`,Tt,[e(`span`,Et,[r(i(t.$t(`midjourney.name.imageUrl`))+` `,1),n[1]||=e(`span`,{class:`text-red-500`,"aria-hidden":`true`},`*`,-1)]),a(f,{content:t.$t(`midjourney.description.imageUrl`)},null,8,[`content`])])]),a(_,{ref:`uploader`,"file-list":t.fileList,"onUpdate:fileList":n[0]||=e=>t.fileList=e,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,"before-upload":t.beforeUploadSizeGuard,action:t.uploadUrl,"on-exceed":t.onExceed,"on-error":t.onError,headers:t.headers},{file:m(({file:e})=>[a(p,{url:e.url||e.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>t.fileList.splice(t.fileList.indexOf(e),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:m(()=>[a(g,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:m(()=>[a(h,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`before-upload`,`action`,`on-exceed`,`on-error`,`headers`])])}var Ot=K(St,[[`render`,Dt],[`__scopeId`,`data-v-e785a985`]]),kt=b({name:`EndImageUrlInput`,components:{UploadIcon:W,ElUpload:E,ElButton:q,InfoIcon:U,ImagePreview:$},mixins:[Q,Y,J,Z],emits:[`change`],data(){return{fileList:[],uploadUrl:X()+`/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(){N.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){N.error(this.$t(`midjourney.message.uploadEndImageError`))}}}),At={class:`relative`},jt={class:`flex min-h-8 items-center pr-20`},Mt={class:`flex justify-start items-center`},Nt={class:`text-sm font-bold`};function Pt(t,n,o,c,u,d){let f=l(`info-icon`),p=l(`image-preview`),h=l(`upload-icon`),g=l(`el-button`),_=l(`el-upload`);return v(),s(`div`,At,[e(`div`,jt,[e(`div`,Mt,[e(`span`,Nt,i(t.$t(`midjourney.name.endImageUrl`)),1),a(f,{content:t.$t(`midjourney.description.endImageUrl`)},null,8,[`content`])])]),a(_,{ref:`uploader`,"file-list":t.fileList,"onUpdate:fileList":n[0]||=e=>t.fileList=e,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,"before-upload":t.beforeUploadSizeGuard,action:t.uploadUrl,"on-exceed":t.onExceed,"on-error":t.onError,headers:t.headers},{file:m(({file:e})=>[a(p,{url:e.url||e.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>t.fileList.splice(t.fileList.indexOf(e),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:m(()=>[a(g,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:m(()=>[a(h,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`before-upload`,`action`,`on-exceed`,`on-error`,`headers`])])}var Ft=K(kt,[[`render`,Pt],[`__scopeId`,`data-v-ab778070`]]),It=b({name:`ReferenceImage`,components:{UploadIcon:W,ElUpload:E,ElButton:q,InfoIcon:U,ImagePreview:$},mixins:[Q,Y,J,Z],emits:[`change`],data(){return{fileList:[],uploadUrl:X()+`/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(){N.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){N.error(this.$t(`midjourney.message.uploadStartImageError`))}}}),Lt={class:`relative`},Rt={class:`flex min-h-8 items-center pr-20`},zt={class:`flex justify-start items-center`},Bt={class:`text-sm font-bold`};function Vt(t,n,o,c,u,d){let f=l(`info-icon`),p=l(`image-preview`),h=l(`upload-icon`),g=l(`el-button`),_=l(`el-upload`);return v(),s(`div`,Lt,[e(`div`,Rt,[e(`div`,zt,[e(`span`,Bt,i(t.$t(`midjourney.name.imageUrl2`)),1),a(f,{content:t.$t(`midjourney.description.imageUrl2`)},null,8,[`content`])])]),a(_,{ref:`uploader`,"file-list":t.fileList,"onUpdate:fileList":n[0]||=e=>t.fileList=e,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,"before-upload":t.beforeUploadSizeGuard,action:t.uploadUrl,"on-exceed":t.onExceed,"on-error":t.onError,headers:t.headers},{file:m(({file:e})=>[a(p,{url:e.url||e.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>t.fileList.splice(t.fileList.indexOf(e),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:m(()=>[a(g,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:m(()=>[a(h,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`before-upload`,`action`,`on-exceed`,`on-error`,`headers`])])}var Ht=K(It,[[`render`,Vt],[`__scopeId`,`data-v-000610fb`]]),Ut=b({name:`StylizeSelector`,components:{ElSlider:B,InfoIcon:U,ElInputNumber:z},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`},Gt={class:`flex justify-start items-center`},Kt={class:`text-sm font-bold`},qt={class:`flex justify-end items-center`},Jt={class:`w-full px-2`};function Yt(t,n,r,o,c,u){let d=l(`info-icon`),f=l(`el-input-number`),p=l(`el-slider`);return v(),s(`div`,null,[e(`div`,Wt,[e(`div`,Gt,[e(`span`,Kt,i(t.$t(`midjourney.name.stylize`)),1),a(d,{content:t.$t(`midjourney.description.stylize`)},null,8,[`content`])]),e(`div`,qt,[a(f,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"controls-position":`right`},null,8,[`modelValue`])])]),e(`div`,Jt,[a(p,{modelValue:t.value,"onUpdate:modelValue":n[1]||=e=>t.value=e,min:0,max:100,step:1},null,8,[`modelValue`])])])}var Xt=K(Ut,[[`render`,Yt]]),Zt=0,Qt=b({name:`ChaosSelector`,components:{ElSlider:B,InfoIcon:U,ElInputNumber:z},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||=Zt}}),$t={class:`flex justify-between`},en={class:`flex justify-start items-center`},tn={class:`text-sm font-bold`},nn={class:`flex justify-end items-center`},rn={class:`w-full px-2`};function an(t,n,r,o,c,u){let d=l(`info-icon`),f=l(`el-input-number`),p=l(`el-slider`);return v(),s(`div`,null,[e(`div`,$t,[e(`div`,en,[e(`span`,tn,i(t.$t(`midjourney.name.chaos`)),1),a(d,{content:t.$t(`midjourney.description.chaos`)},null,8,[`content`])]),e(`div`,nn,[a(f,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"controls-position":`right`},null,8,[`modelValue`])])]),e(`div`,rn,[a(p,{modelValue:t.value,"onUpdate:modelValue":n[1]||=e=>t.value=e,min:0,max:100,step:1},null,8,[`modelValue`])])])}var on=K(Qt,[[`render`,an],[`__scopeId`,`data-v-ed158765`]]),sn=b({name:`ModelSelector`,components:{ElImage:be,InfoIcon:U},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=``)}}),cn={class:`flex justify-start items-center`},ln={class:`text-sm font-bold`},un={class:`items`},dn=[`onClick`],fn={class:`name`};function pn(t,r,o,u,d,f){let p=l(`info-icon`),m=l(`el-image`);return v(),s(`div`,null,[e(`div`,cn,[e(`span`,ln,i(t.$t(`midjourney.name.model`)),1),a(p,{content:t.$t(`midjourney.description.model`)},null,8,[`content`])]),e(`div`,un,[(v(!0),s(c,null,g(t.options,(r,o)=>(v(),s(`div`,{key:o,class:n({active:t.active===o,item:!0}),onClick:e=>t.value=r.value},[a(m,{src:r.image,fit:`cover`,class:`image`},null,8,[`src`]),e(`p`,fn,i(r.label),1)],10,dn))),128))])])}var mn=K(sn,[[`render`,pn],[`__scopeId`,`data-v-ebc6758e`]]),hn=b({name:`QualitySelector`,components:{ElRadioButton:P,ElRadioGroup:F},computed:{version(){return this.$store.state.midjourney.config.version||``},isV8(){return this.version===`8`},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`}}),gn={class:`field`},_n={class:`text-sm font-bold`};function vn(t,n,o,u,d,f){let h=l(`el-radio-button`),_=l(`el-radio-group`);return v(),s(`div`,gn,[e(`span`,_n,i(t.$t(`midjourney.name.quality`)),1),a(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`quality`},{default:m(()=>[(v(!0),s(c,null,g(t.options,e=>(v(),p(h,{key:e.value,label:e.value},{default:m(()=>[r(i(e.label),1)]),_:2},1032,[`label`]))),128))]),_:1},8,[`modelValue`])])}var yn=K(hn,[[`render`,vn],[`__scopeId`,`data-v-f1efdc92`]]),bn=b({name:`ResolutionSelector`,components:{ElSelect:S,ElOption:C},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||=ve}}),xn={class:`field`},Sn={class:`title font-bold`};function Cn(t,n,r,o,u,d){let f=l(`el-option`),h=l(`el-select`);return v(),s(`div`,xn,[e(`h2`,Sn,i(t.$t(`midjourney.name.resolution`)),1),a(h,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`midjourney.placeholder.select`)},{default:m(()=>[(v(!0),s(c,null,g(t.options,e=>(v(),p(f,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var wn=K(bn,[[`render`,Cn],[`__scopeId`,`data-v-12537f29`]]),Tn=b({name:`ImageWeightSelector`,components:{ElSlider:B,InfoIcon:U},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}}),En={class:`flex justify-between`},Dn={class:`flex justify-start items-center`},On={class:`text-sm font-bold`},kn={class:`flex justify-end items-center`},An={class:`w-full px-2`};function jn(t,n,r,o,c,u){let d=l(`info-icon`),f=l(`el-input-number`),p=l(`el-slider`);return v(),s(`div`,null,[e(`div`,En,[e(`div`,Dn,[e(`span`,On,i(t.$t(`midjourney.name.imageWeight`)),1),a(d,{content:t.$t(`midjourney.description.imageWeight`)},null,8,[`content`])]),e(`div`,kn,[a(f,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"controls-position":`right`},null,8,[`modelValue`])])]),e(`div`,An,[a(p,{modelValue:t.value,"onUpdate:modelValue":n[1]||=e=>t.value=e,min:0,max:2,step:.1},null,8,[`modelValue`])])])}var Mn=K(Tn,[[`render`,jn],[`__scopeId`,`data-v-b4bf1f1e`]]),Nn=b({name:`WeirdSelector`,components:{ElSlider:B,ElInputNumber:z,InfoIcon:U},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}}),Pn={class:`flex justify-between`},Fn={class:`flex justify-start items-center`},In={class:`text-sm font-bold`},Ln={class:`flex justify-end items-center`},Rn={class:`w-full px-2`};function zn(t,n,r,o,c,u){let d=l(`info-icon`),f=l(`el-input-number`),p=l(`el-slider`);return v(),s(`div`,null,[e(`div`,Pn,[e(`div`,Fn,[e(`span`,In,i(t.$t(`midjourney.name.weird`)),1),a(d,{content:t.$t(`midjourney.description.weird`)},null,8,[`content`])]),e(`div`,Ln,[a(f,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,"controls-position":`right`},null,8,[`modelValue`])])]),e(`div`,Rn,[a(p,{modelValue:t.value,"onUpdate:modelValue":n[1]||=e=>t.value=e,min:0,max:1e3,step:1},null,8,[`modelValue`])])])}var Bn=K(Nn,[[`render`,zn]]),Vn=b({name:`VideoFromInput`,components:{VideoPlayer:Ne},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}}}),Hn={class:`relative`},Un={class:`flex mb-2`},Wn={class:`text-sm font-bold`};function Gn(t,n,r,a,c,u){let d=l(`video-player`);return v(),s(`div`,Hn,[e(`div`,Un,[e(`span`,Wn,i(t.$t(`midjourney.name.extend`)),1)]),e(`div`,null,[t.config?.video_url?(v(),p(d,{key:0,src:t.config?.video_url,options:t.options},null,8,[`src`,`options`])):o(``,!0)])])}var Kn=K(Vn,[[`render`,Gn]]),qn=``,Jn=b({name:`StyleSelector`,components:{ElSelect:S,ElOption:C},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||=qn}}),Yn={class:`field`},Xn={class:`text-sm font-bold title`},Zn={class:`float-left`},Qn={class:`float-right`};function $n(t,n,r,o,u,d){let f=l(`el-option`),h=l(`el-select`);return v(),s(`div`,Yn,[e(`span`,Xn,i(t.$t(`midjourney.name.style`)),1),a(h,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`midjourney.placeholder.select`),clearable:``},{default:m(()=>[(v(!0),s(c,null,g(t.options,t=>(v(),p(f,{key:t.value,label:t.label,value:t.value},{default:m(()=>[e(`span`,Zn,i(t.label),1),e(`span`,Qn,i(t.value),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var er=K(Jn,[[`render`,$n],[`__scopeId`,`data-v-00d50831`]]),tr=b({name:`ElementsSelector`,components:{Check:re,ElTabs:w,ElTag:xe,ElIcon:x,ElTabPane:T,ElImage:be,ElDialog:Se,ElButton:q,InfoIcon:U},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}))}}}),nr={class:`flex justify-between`},rr={class:`flex justify-start items-center`},ir={class:`text-sm font-bold`},ar={class:`flex justify-end items-center`},or=[`onClick`],sr={class:`name`};function cr(t,o,u,d,f,h){let _=l(`info-icon`),y=l(`el-button`),b=l(`el-tag`),x=l(`check`),S=l(`el-icon`),C=l(`el-image`),w=l(`el-tab-pane`),T=l(`el-tabs`),E=l(`el-dialog`);return v(),s(`div`,null,[e(`div`,nr,[e(`div`,rr,[e(`span`,ir,i(t.$t(`midjourney.field.elements`)),1),a(_,{content:t.$t(`midjourney.description.elements`)},null,8,[`content`])]),e(`div`,ar,[a(y,{round:``,type:`primary`,size:`small`,onClick:o[0]||=e=>t.choosing=!0},{default:m(()=>[r(i(t.$t(`midjourney.button.select`)),1)]),_:1})])]),e(`div`,null,[(v(!0),s(c,null,g(t.value,(e,n)=>(v(),p(b,{key:n,closable:``,effect:`dark`,round:``,class:`mr-1 mb-1`,onClose:n=>t.onToggle(e)},{default:m(()=>[r(i(e.label),1)]),_:2},1032,[`onClose`]))),128))]),a(E,{modelValue:t.choosing,"onUpdate:modelValue":o[2]||=e=>t.choosing=e,width:`70%`},{default:m(()=>[a(T,{modelValue:t.tab,"onUpdate:modelValue":o[1]||=e=>t.tab=e},{default:m(()=>[(v(!0),s(c,null,g(t.elements,(r,o)=>(v(),p(w,{key:o,label:r.displayName,name:o,class:`pane`},{default:m(()=>[(v(!0),s(c,null,g(r.items,(r,o)=>(v(),s(`div`,{key:o,class:n({hidden:r?.advanced,item:!0,active:t.value.includes(r)}),onClick:e=>t.onToggle(r)},[a(S,{class:`icon`},{default:m(()=>[a(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1}),a(C,{src:r.image,fit:`fill`,class:`preview`},null,8,[`src`]),e(`span`,sr,i(r.label),1)],10,or))),128))]),_:2},1032,[`label`,`name`]))),128))]),_:1},8,[`modelValue`])]),_:1},8,[`modelValue`])])}var lr=K(tr,[[`render`,cr],[`__scopeId`,`data-v-ec52a37e`]]),ur=`fast`,dr=b({name:`ModeSelector`,components:{ElButton:q,ElDropdown:R,ArrowDown:ie,ElIcon:x,ElDropdownItem:L},data(){return{allOptions:[{label:this.$t(`midjourney.button.fast`),value:`fast`,icon:u(G),color:`#2dc49c`},{label:this.$t(`midjourney.button.relax`),value:`relax`,icon:u(Le),color:`#ce65e6`},{label:this.$t(`midjourney.button.turbo`),value:`turbo`,icon:u(G),color:`#ff9900`}]}},computed:{version(){return this.$store.state.midjourney.config.version||``},type(){return this.$store.state.midjourney.config.type||`imagine`},isV81Imagine(){return this.type===`imagine`&&this.version===`8.1`},options(){return this.isV81Imagine?this.allOptions.filter(e=>e.value!==`turbo`):this.allOptions},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})}}},watch:{isV81Imagine:{immediate:!0,handler(e){e&&this.value===`turbo`&&(this.value=ur)}}},mounted(){this.value||=ur},methods:{onCommand(e){console.log(`command`,e),this.value=e}}}),fr={class:`ml-2`},pr={class:`ml-1 text-sm`};function mr(t,n,r,u,d,f){let y=l(`arrow-down`),b=l(`el-icon`),x=l(`el-button`),S=l(`el-dropdown-item`),C=l(`el-dropdown-menu`),w=l(`el-dropdown`);return v(),p(w,{trigger:`click`,onCommand:t.onCommand},{dropdown:m(()=>[a(C,null,{default:m(()=>[(v(!0),s(c,null,g(t.options,(t,n)=>(v(),p(S,{key:n,class:`flex items-center justify-between`,command:t.value},{default:m(()=>[t.icon?(v(),p(_(t.icon),{key:0,style:h({color:t.color}),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`style`])):o(``,!0),e(`span`,pr,i(t.label),1)]),_:2},1032,[`command`]))),128))]),_:1})]),default:m(()=>[a(x,{round:``},{default:m(()=>[t.activeOption?.icon?(v(),p(_(t.activeOption?.icon),{key:0,style:h({color:t.activeOption?.color}),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`style`])):o(``,!0),e(`span`,fr,i(t.activeOption?.label),1),a(b,{class:`el-icon--right`},{default:m(()=>[a(y,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1})]),_:1})]),_:1},8,[`onCommand`])}var hr=K(dr,[[`render`,mr],[`__scopeId`,`data-v-4512452b`]]),gr=b({name:`PromptInput`,components:{PromptTextarea:se},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 _r(e,t,n,r,i,a){let o=l(`prompt-textarea`);return v(),p(o,{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 vr=K(gr,[[`render`,_r]]),yr=b({name:`ReferenceImage`,components:{UploadIcon:W,ElUpload:E,ElButton:q,InfoIcon:U,ImagePreview:$},mixins:[Q,Y,J,Z],emits:[`change`],data(){return{fileList:[],uploadUrl:X()+`/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(){N.warning(this.$t(`midjourney.message.uploadReferencesExceed`))},onError(){N.error(this.$t(`midjourney.message.uploadReferencesError`))}}}),br={class:`relative`},xr={class:`flex min-h-8 items-center pr-20`},Sr={class:`flex justify-start items-center`},Cr={class:`text-sm font-bold`};function wr(t,n,o,c,u,d){let f=l(`info-icon`),p=l(`image-preview`),h=l(`upload-icon`),g=l(`el-button`),_=l(`el-upload`);return v(),s(`div`,br,[e(`div`,xr,[e(`div`,Sr,[e(`span`,Cr,i(t.$t(`midjourney.name.referenceImage`)),1),a(f,{content:t.$t(`midjourney.description.uploadReferences`)},null,8,[`content`])])]),a(_,{ref:`uploader`,"file-list":t.fileList,"onUpdate:fileList":n[0]||=e=>t.fileList=e,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,"before-upload":t.beforeUploadSizeGuard,action:t.uploadUrl,"on-exceed":t.onExceed,"on-error":t.onError,headers:t.headers},{file:m(({file:e})=>[a(p,{url:e.url||e.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>t.fileList.splice(t.fileList.indexOf(e),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:m(()=>[a(g,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:m(()=>[a(h,{class:`icon mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`midjourney.button.uploadReferences`)),1)]),_:1})]),_:1},8,[`file-list`,`before-upload`,`action`,`on-exceed`,`on-error`,`headers`])])}var Tr=b({name:`ConfigPanel`,components:{ElButton:q,PromptInput:vr,ModeSelector:hr,ModelSelector:mn,ElementsSelector:lr,StyleSelector:er,QualitySelector:yn,RatioSelector:Xe,VersionSelector:gt,HdSelector:xt,StylizeSelector:Xt,AdvancedSelector:nt,ChaosSelector:on,WeirdSelector:Bn,ImageWeightSelector:Mn,ReferenceImage:K(yr,[[`render`,wr],[`__scopeId`,`data-v-16eb82b3`]]),ImageUrlInput:Ot,EndImageUrlInput:Ft,LoopSelector:ut,ResolutionSelector:wn,ImageUrlInput2:Ht,Consumption:Me,VideoFromInput:Kn,ElTabs:w,ElTabPane:T},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 De(this.config,this.service?.cost)},service(){return this.$store.state.midjourney?.service}},mounted(){this.config.type||(this.type=ge)}}),Er={class:`flex flex-col h-full`},Dr={class:`flex-1 min-h-0 overflow-hidden`},Or={class:`p-5`},kr={class:`p-5`},Ar={class:`p-5`},jr={class:`flex flex-col px-5 pb-5`},Mr={class:`flex gap-1`};function Nr(t,n,c,u,f,h){let g=l(`model-selector`),_=l(`prompt-input`),b=l(`reference-image`),x=l(`ratio-selector`),S=l(`quality-selector`),C=l(`version-selector`),w=l(`hd-selector`),T=l(`elements-selector`),E=l(`advanced-selector`),D=l(`stylize-selector`),O=l(`weird-selector`),k=l(`chaos-selector`),A=l(`image-weight-selector`),j=l(`style-selector`),M=l(`el-tab-pane`),N=l(`video-from-input`),P=l(`image-url-input`),F=l(`end-image-url-input`),I=l(`loop-selector`),L=l(`resolution-selector`),R=l(`image-url-input2`),z=l(`el-tabs`),B=l(`consumption`),V=l(`mode-selector`),H=l(`el-button`);return v(),s(`div`,Er,[e(`div`,Dr,[a(z,{modelValue:t.type,"onUpdate:modelValue":n[0]||=e=>t.type=e,class:`demo-tabs scenario-tabs scenario-tabs--scrollable`},{default:m(()=>[a(M,{label:t.$t(`midjourney.tab.images`),name:`imagine`},{default:m(()=>[e(`div`,Or,[a(g,{class:`mb-2`}),a(_,{class:`mb-4`}),a(b,{class:`mb-4`}),a(x,{class:`mb-4`}),t.config?.version===`8.1`?o(``,!0):(v(),p(S,{key:0,class:`mb-4`})),t.isNiji?o(``,!0):(v(),p(C,{key:1,class:`mb-4`})),t.isV8&&!t.isNiji?(v(),p(w,{key:2,class:`mb-4`})):o(``,!0),a(T,{class:`mb-2`}),a(E,{class:`mb-2`}),d(e(`div`,null,[a(D,{class:`mb-2`}),a(O,{class:`mb-2`}),a(k,{class:`mb-2`}),t.isV8?o(``,!0):(v(),p(A,{key:0,class:`mb-2`})),a(j,{class:`mb-2`})],512),[[y,t.config?.advanced]])])]),_:1},8,[`label`]),a(M,{label:t.$t(`midjourney.tab.videos`),name:`videos`},{default:m(()=>[e(`div`,kr,[d(a(N,{class:`mb-4`},null,512),[[y,t.config?.action===`extend`]]),a(P,{class:`mb-4`}),a(F,{class:`mb-4`}),a(I,{class:`mb-2`}),a(L,{class:`mb-4`}),a(_,{class:`mb-4`})])]),_:1},8,[`label`]),a(M,{label:t.$t(`midjourney.tab.describe`),name:`describe`},{default:m(()=>[e(`div`,Ar,[a(R,{class:`mb-4`})])]),_:1},8,[`label`])]),_:1},8,[`modelValue`])]),e(`div`,jr,[a(B,{value:t.consumption,service:t.service},null,8,[`value`,`service`]),e(`div`,Mr,[t.type===`describe`?o(``,!0):(v(),p(V,{key:0})),t.config.action===`extend`?(v(),p(H,{key:1,type:`primary`,class:`btn w-full`,round:``,onClick:n[1]||=e=>t.$emit(`generate`)},{default:m(()=>[r(i(t.$t(`midjourney.button.extend`)),1)]),_:1})):(v(),p(H,{key:2,type:`primary`,class:`btn w-full`,round:``,onClick:n[2]||=e=>t.$emit(`generate`)},{default:m(()=>[r(i(t.$t(`midjourney.button.generate`)),1)]),_:1}))])])])}var Pr=K(Tr,[[`render`,Nr],[`__scopeId`,`data-v-2b591fc9`]]),Fr=b({name:`TaskPreview`,components:{ChannelIcon:ce,ImageIcon:fe,InfoIcon:pe,LightningIcon:G,MagicIcon:he,PerformanceIcon:oe,RefreshIcon:me,TimeIcon:ae,ImageWrapper:Ie,ImagePreview:$,ElButton:q,ElTooltip:D,ElAlert:O,ElTag:xe,CopyToClipboard:ke,VideoPlayer:Ne,ApiCodeButton:Pe,ReportButton:Ae},props:{modelValue:{type:Object,required:!0},full:{type:Boolean,default:!1}},emits:[`custom`],data(){return{midjourneyImagineState:k,actionMapping:{[M.GENERATE]:`Generate`,[M.UPSCALE1]:`U1`,[M.UPSCALE2]:`U2`,[M.UPSCALE3]:`U3`,[M.UPSCALE4]:`U4`,[M.VARIATION1]:`V1`,[M.VARIATION2]:`V2`,[M.VARIATION3]:`V3`,[M.VARIATION4]:`V4`,[M.VARIATION_STRONG]:`Vary (Strong)`,[M.VARIATION_SUBTLE]:`Vary (Subtle)`,[M.UPSCALE_CREATIVE]:`Upscale (Creative)`,[M.UPSCALE_SUBTLE]:`Upscale (Subtle)`,[M.ZOOM_OUT_2X]:`Zoom Out 2x`,[M.ZOOM_OUT_1_5X]:`Zoom Out 1.5x`,[M.UPSCALE_2X]:`Upscale 2x`,[M.UPSCALE_4X]:`Upscale 4x`,[M.REDO_UPSCALE_2X]:`Redo Upscale 2x`,[M.REDO_UPSCALE_4X]:`Redo Upscale 4x`,[M.REDO_UPSCALE_SUBTLE]:`Redo Upscale (Subtle)`,[M.REDO_UPSCALE_CREATIVE]:`Redo Upscale (Creative)`,[M.SQUARE]:`Make Square`,[M.PAN_LEFT]:`Pan Left`,[M.PAN_UP]:`Pan Up`,[M.PAN_DOWN]:`Pan Down`,[M.PAN_RIGHT]:`Pan Right`,[M.REROLL]:`Reroll`},actionIconMapping:{[M.PAN_LEFT]:u(ee),[M.PAN_UP]:u(ne),[M.PAN_DOWN]:u(H),[M.PAN_RIGHT]:u(te),[M.REROLL]:u(me)},descriptionMapping:{[M.GENERATE]:this.$t(`midjourney.action.generate`),[M.UPSCALE1]:this.$t(`midjourney.action.upscale1`),[M.UPSCALE2]:this.$t(`midjourney.action.upscale2`),[M.UPSCALE3]:this.$t(`midjourney.action.upscale3`),[M.UPSCALE4]:this.$t(`midjourney.action.upscale4`),[M.VARIATION1]:this.$t(`midjourney.action.variation1`),[M.VARIATION2]:this.$t(`midjourney.action.variation2`),[M.VARIATION3]:this.$t(`midjourney.action.variation3`),[M.VARIATION4]:this.$t(`midjourney.action.variation4`),[M.VARIATION_STRONG]:this.$t(`midjourney.action.variation_strong`),[M.VARIATION_SUBTLE]:this.$t(`midjourney.action.variation_subtle`),[M.ZOOM_OUT_2X]:this.$t(`midjourney.action.zoom_out_2x`),[M.ZOOM_OUT_1_5X]:this.$t(`midjourney.action.zoom_out_1_5x`),[M.UPSCALE_2X]:this.$t(`midjourney.action.upscale_2x`),[M.UPSCALE_4X]:this.$t(`midjourney.action.upscale_4x`),[M.UPSCALE_SUBTLE]:this.$t(`midjourney.action.upscale_subtle`),[M.UPSCALE_CREATIVE]:this.$t(`midjourney.action.upscale_creative`),[M.REDO_UPSCALE_2X]:this.$t(`midjourney.action.redo_upscale_2x`),[M.REDO_UPSCALE_4X]:this.$t(`midjourney.action.redo_upscale_4x`),[M.REDO_UPSCALE_SUBTLE]:this.$t(`midjourney.action.redo_upscale_subtle`),[M.REDO_UPSCALE_CREATIVE]:this.$t(`midjourney.action.redo_upscale_creative`),[M.SQUARE]:this.$t(`midjourney.action.square`),[M.PAN_LEFT]:this.$t(`midjourney.action.pan_left`),[M.PAN_UP]:this.$t(`midjourney.action.pan_up`),[M.PAN_DOWN]:this.$t(`midjourney.action.pan_down`),[M.PAN_RIGHT]:this.$t(`midjourney.action.pan_right`),[M.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]} (${De({...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()}}}),Ir={key:0,class:`item`},Lr={class:`left`},Rr={class:`preview`},zr={class:`bot`},Br={class:`datetime`},Vr={class:`info`},Hr={key:0,class:`prompt`},Ur={key:0},Wr={key:1},Gr={key:1,class:`prompt`},Kr={key:0},qr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Jr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Yr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Xr={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Zr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Qr={key:0,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-0`},ti={key:2},ni={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},ri={key:1,class:`item`},ii={class:`left`},ai={class:`preview`},oi={class:`bot`},si={class:`datetime`},ci={class:`info`},li={key:0,class:`flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto`},ui={key:1,class:`prompt`},di={key:0},fi={key:1},pi={key:2,class:`prompt`},mi={key:0},hi={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},gi={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},_i={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},vi={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},yi={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},bi={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},xi={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Si={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Ci={key:0,class:`mb-4`},wi={key:1,class:n({operations:!0,"mt-2":!0,"mb-4":!0})},Ti={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ei={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Di={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Oi={key:3,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:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ji={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Mi={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Ni={key:2},Pi={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Fi={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ii={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Li={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ri={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},zi={key:2,class:`item`},Bi={class:`left`},Vi={class:`preview`},Hi={class:`bot`},Ui={class:`datetime`},Wi={class:`info`},Gi={key:0,class:`prompt`},Ki={key:0},qi={key:1},Ji={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Yi={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Xi={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Zi={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Qi={class:`mb-2`},$i={class:`mb-2`},ea={key:0},ta={class:`text-sm text-[var(--el-text-color-primary)]`},na={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ra={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ia={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},aa={key:2},oa={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function sa(u,f,h,b,x,S){let C=l(`capability-presentation`),w=l(`magic-icon`),T=l(`copy-to-clipboard`),E=l(`info-icon`),D=l(`time-icon`),O=l(`channel-icon`),k=l(`el-alert`),A=l(`image-wrapper`),j=l(`el-button`),M=l(`el-tooltip`),N=l(`api-code-button`),P=l(`report-button`),F=l(`image-icon`),I=l(`image-preview`),L=l(`lightning-icon`),R=l(`performance-icon`),z=l(`refresh-icon`),B=l(`video-player`),V=l(`el-tag`);return v(),s(c,null,[u.modelValue?.type===`imagine`?(v(),s(`div`,Ir,[e(`div`,Lr,[a(C,{capability:`midjourney`,part:`avatar`,class:`avatar`})]),e(`div`,Rr,[e(`div`,zr,[a(C,{capability:`midjourney`,part:`name`}),e(`span`,Br,i(u.$dayjs.format(``+new Date(parseFloat((u.modelValue?.created_at||``).toString())*1e3))),1)]),e(`div`,Vr,[u.modelValue?.request?.prompt?(v(),s(`p`,Hr,[r(i(u.modelValue?.request?.prompt)+` `,1),u.modelValue?.response?o(``,!0):(v(),s(`span`,Ur,` - (`+i(u.$t(`midjourney.status.pending`))+`) `,1)),u.modelValue?.response?.progress!==void 0&&u.modelValue?.response?.progress!==100?(v(),s(`span`,Wr,` - (`+i(u.modelValue?.response?.progress)+`%) `,1)):o(``,!0),e(`span`,null,`(`+i(u.modelValue?.request?.mode)+`)`,1)])):o(``,!0),u.modelValue?.request?.image_id?(v(),s(`p`,Gr,[r(i(u.modelValue?.request?.image_id)+` - `+i(u.modelValue?.request?.action)+` `,1),u.modelValue?.response?o(``,!0):(v(),s(`span`,Kr,` - (`+i(u.$t(`midjourney.status.pending`))+`) `,1)),e(`span`,null,`(`+i(u.modelValue?.request?.mode)+`)`,1)])):o(``,!0)]),u.modelValue?.response?.success===!1?(v(),s(`div`,{key:0,class:n({content:!0,full:u.full,failed:!0})},[a(k,{closable:!1,class:`mt-2 failure`},{default:m(()=>[e(`p`,qr,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])]),e(`p`,Jr,[a(E,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.failureReason`))+`: `+i(u.modelValue?.response?.error?.message)+` `,1),a(T,{content:u.modelValue?.response?.error?.message},null,8,[`content`])]),u.modelValue?.elapsed?(v(),s(`p`,Yr,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.elapsed`))+`: `+i(u.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e(`p`,Xr,[a(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.traceId`))+`: `+i(u.modelValue?.response?.trace_id)+` `,1),a(T,{content:u.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})],2)):o(``,!0),u.modelValue?.response?.success===!0?(v(),s(`div`,{key:1,class:n({content:!0,full:u.full})},[u.modelValue?.response?.raw_image_url?(v(),p(A,{key:0,src:u.modelValue?.response?.image_url,"raw-src":u.modelValue?.response?.raw_image_url,class:`mb-4`},null,8,[`src`,`raw-src`])):o(``,!0),u.modelValue?.response?.actions?(v(),s(`div`,{key:1,class:n({operations:!0,full:u.full})},[(v(!0),s(c,null,g(u.modelValue?.response?.actions,(e,t)=>(v(),p(M,{key:t,class:`box-item`,effect:`dark`,content:u.getActionDescriptionWithPrice(e,u.modelValue?.request?.mode),placement:`top-start`},{default:m(()=>[d(a(j,{type:`info`,size:`small`,class:`btn-action`,"aria-label":u.actionIconMapping[e]?u.descriptionMapping[e]:void 0,onClick:t=>u.onCustom(e)},{default:m(()=>[u.actionIconMapping[e]?(v(),p(_(u.actionIconMapping[e]),{key:0,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(v(),s(c,{key:1},[r(i(u.actionMapping[e]),1)],64))]),_:2},1032,[`aria-label`,`onClick`]),[[y,u.actionMapping[e]]])]),_:2},1032,[`content`]))),128)),a(N,{path:`/midjourney/imagine`,body:u.modelValue?.request},null,8,[`body`]),a(P,{service:`midjourney`,"target-id":u.modelValue?.id,snapshot:{prompt:u.modelValue?.request?.prompt}},null,8,[`target-id`,`snapshot`])],2)):o(``,!0),a(k,{closable:!1,class:`mt-2 success`},{default:m(()=>[e(`p`,Zr,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])]),u.modelValue?.elapsed?(v(),s(`p`,Qr,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.elapsed`))+`: `+i(u.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e(`p`,$r,[a(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.traceId`))+`: `+i(u.modelValue?.trace_id)+` `,1),a(T,{content:u.modelValue?.trace_id},null,8,[`content`])]),e(`p`,ei,[a(F,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.imageId`))+`: `+i(u.modelValue?.response?.image_id)+` `,1),a(T,{content:u.modelValue?.response?.image_id},null,8,[`content`])])]),_:1})],2)):o(``,!0),u.modelValue?.response?o(``,!0):(v(),s(`div`,ti,[a(k,{closable:!1,class:`mt-2 info`},{default:m(()=>[e(`p`,ni,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):o(``,!0),u.modelValue?.type===`videos`?(v(),s(`div`,ri,[e(`div`,ii,[a(C,{capability:`midjourney`,part:`avatar`,class:`avatar`})]),e(`div`,ai,[e(`div`,oi,[a(C,{capability:`midjourney`,part:`name`}),e(`span`,si,i(u.$dayjs.format(``+new Date(parseFloat((u.modelValue?.created_at||``).toString())*1e3))),1)]),e(`div`,ci,[u.modelValue?.request?.image_url||u.modelValue?.request?.end_image_url?(v(),s(`div`,li,[u.modelValue?.request?.image_url?(v(),p(I,{key:0,url:u.modelValue.request.image_url,name:u.$t(`midjourney.name.imageUrl`),closable:!1},null,8,[`url`,`name`])):o(``,!0),u.modelValue?.request?.end_image_url?(v(),p(I,{key:1,url:u.modelValue.request.end_image_url,name:u.$t(`midjourney.name.endImageUrl`),closable:!1},null,8,[`url`,`name`])):o(``,!0)])):o(``,!0),u.modelValue?.request?.prompt?(v(),s(`p`,ui,[r(i(u.modelValue?.request?.prompt)+` `,1),u.modelValue?.response?o(``,!0):(v(),s(`span`,di,` - (`+i(u.$t(`midjourney.status.pending`))+`) `,1)),u.modelValue?.response?.progress!==void 0&&u.modelValue?.response?.progress!==100?(v(),s(`span`,fi,` - (`+i(u.modelValue?.response?.progress)+`%) `,1)):o(``,!0),e(`span`,null,`(`+i(u.modelValue?.request?.mode)+`)`,1)])):o(``,!0),u.modelValue?.request?.video_id?(v(),s(`p`,pi,[r(i(u.modelValue?.request?.video_id)+` - `+i(u.modelValue?.request?.action)+` `,1),u.modelValue?.response?o(``,!0):(v(),s(`span`,mi,` - (`+i(u.$t(`midjourney.status.pending`))+`) `,1)),e(`span`,null,`(`+i(u.modelValue?.request?.mode)+`)`,1)])):o(``,!0)]),u.modelValue?.response?.success===!1?(v(),s(`div`,{key:0,class:n({content:!0,full:u.full,failed:!0})},[a(k,{closable:!1,class:`mt-2 failure`},{default:m(()=>[u.modelValue?.request?.action?(v(),s(`p`,hi,[a(L,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.action`))+`: `+i(u.modelValue?.request?.action),1)])):o(``,!0),u.modelValue?.request?.resolution?(v(),s(`p`,gi,[a(R,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.resolution`))+`: `+i(u.modelValue?.request?.resolution),1)])):o(``,!0),u.modelValue?.request?.mode?(v(),s(`p`,_i,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.mode`))+`: `+i(u.modelValue?.request?.mode),1)])):o(``,!0),u.modelValue?.request?.loop===void 0?o(``,!0):(v(),s(`p`,vi,[a(z,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.loop`))+`: `+i(u.modelValue?.request?.loop?u.$t(`midjourney.field.on`):u.$t(`midjourney.field.off`)),1)])),e(`p`,yi,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])]),e(`p`,bi,[a(E,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.failureReason`))+`: `+i(u.modelValue?.response?.error?.message)+` `,1),a(T,{content:u.modelValue?.response?.error?.message},null,8,[`content`])]),u.modelValue?.elapsed?(v(),s(`p`,xi,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.elapsed`))+`: `+i(u.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e(`p`,Si,[a(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.traceId`))+`: `+i(u.modelValue?.response?.trace_id)+` `,1),a(T,{content:u.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})],2)):o(``,!0),u.modelValue?.response?.success===!0?(v(),s(`div`,{key:1,class:n({content:!0,full:u.full})},[u.modelValue?.response.video_urls?(v(),s(`div`,Ci,[a(B,{src:u.modelValue?.response.video_urls[0]},null,8,[`src`])])):o(``,!0),u.modelValue?.response&&u.modelValue?.response?.video_urls?(v(),s(`div`,wi,[a(M,{class:`box-item`,effect:`dark`,content:u.$t(`luma.message.extendVideo`),placement:`top-start`},{default:m(()=>[a(j,{type:`info`,size:`small`,class:`btn-action`,onClick:f[0]||=t(e=>u.onExtend(e,u.modelValue?.response),[`stop`])},{default:m(()=>[r(i(u.$t(`midjourney.button.extend`)),1)]),_:1})]),_:1},8,[`content`]),a(M,{class:`box-item`,effect:`dark`,content:u.$t(`luma.message.downloadVideo`),placement:`top-start`},{default:m(()=>[a(j,{type:`info`,size:`small`,class:`btn-action`,onClick:f[1]||=t(e=>u.onDownload(u.modelValue.response.video_urls[0]),[`stop`])},{default:m(()=>[r(i(u.$t(`midjourney.button.download`)),1)]),_:1})]),_:1},8,[`content`]),a(N,{path:`/midjourney/videos`,body:u.modelValue?.request},null,8,[`body`]),a(P,{service:`midjourney`,"target-id":u.modelValue?.id,snapshot:{prompt:u.modelValue?.request?.prompt}},null,8,[`target-id`,`snapshot`])])):o(``,!0),a(k,{closable:!1,class:`mt-2 success`},{default:m(()=>[u.modelValue?.request?.action?(v(),s(`p`,Ti,[a(L,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.action`))+`: `+i(u.modelValue?.request?.action),1)])):o(``,!0),u.modelValue?.request?.resolution?(v(),s(`p`,Ei,[a(R,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.resolution`))+`: `+i(u.modelValue?.request?.resolution),1)])):o(``,!0),u.modelValue?.request?.mode?(v(),s(`p`,Di,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.mode`))+`: `+i(u.modelValue?.request?.mode),1)])):o(``,!0),u.modelValue?.request?.loop===void 0?o(``,!0):(v(),s(`p`,Oi,[a(z,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.loop`))+`: `+i(u.modelValue?.request?.loop?u.$t(`midjourney.field.on`):u.$t(`midjourney.field.off`)),1)])),e(`p`,ki,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])]),u.modelValue?.elapsed?(v(),s(`p`,Ai,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.elapsed`))+`: `+i(u.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e(`p`,ji,[a(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.traceId`))+`: `+i(u.modelValue?.trace_id)+` `,1),a(T,{content:u.modelValue?.trace_id},null,8,[`content`])]),e(`p`,Mi,[a(F,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.videoId`))+`: `+i(u.modelValue?.response?.video_id)+` `,1),a(T,{content:u.modelValue?.response?.video_id},null,8,[`content`])])]),_:1})],2)):o(``,!0),u.modelValue?.response?o(``,!0):(v(),s(`div`,Ni,[a(k,{closable:!1,class:`mt-2 info`},{default:m(()=>[u.modelValue?.request?.action?(v(),s(`p`,Pi,[a(L,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.action`))+`: `+i(u.modelValue?.request?.action),1)])):o(``,!0),u.modelValue?.request?.resolution?(v(),s(`p`,Fi,[a(R,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.resolution`))+`: `+i(u.modelValue?.request?.resolution),1)])):o(``,!0),u.modelValue?.request?.mode?(v(),s(`p`,Ii,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.mode`))+`: `+i(u.modelValue?.request?.mode),1)])):o(``,!0),u.modelValue?.request?.loop===void 0?o(``,!0):(v(),s(`p`,Li,[a(z,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.name.loop`))+`: `+i(u.modelValue?.request?.loop?u.$t(`midjourney.field.on`):u.$t(`midjourney.field.off`)),1)])),e(`p`,Ri,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):o(``,!0),u.modelValue?.type===`describe`?(v(),s(`div`,zi,[e(`div`,Bi,[a(C,{capability:`midjourney`,part:`avatar`,class:`avatar`})]),e(`div`,Vi,[e(`div`,Hi,[a(C,{capability:`midjourney`,part:`name`}),e(`span`,Ui,i(u.$dayjs.format(``+new Date(parseFloat((u.modelValue?.created_at||``).toString())*1e3))),1)]),e(`div`,Wi,[u.modelValue?.request?.image_url?(v(),s(`p`,Gi,[r(i(u.modelValue?.request?.image_url)+` `,1),u.modelValue?.response?.descriptions?o(``,!0):(v(),s(`span`,Ki,` - (`+i(u.$t(`midjourney.status.describePending`))+`) `,1)),u.modelValue?.response?.descriptions?(v(),s(`span`,qi,` - (`+i(u.$t(`midjourney.status.describeComplete`))+`) `,1)):o(``,!0)])):o(``,!0)]),u.modelValue?.response&&!u.modelValue?.response?.descriptions?(v(),s(`div`,{key:0,class:n({content:!0,full:u.full,failed:!0})},[a(k,{closable:!1,class:`mt-2 failure`},{default:m(()=>[e(`p`,Ji,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])]),e(`p`,Yi,[a(E,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.failureReason`))+`: `+i(u.modelValue?.response?.error?.message)+` `,1),a(T,{content:u.modelValue?.response?.error?.message},null,8,[`content`])]),u.modelValue?.elapsed?(v(),s(`p`,Xi,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.elapsed`))+`: `+i(u.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e(`p`,Zi,[a(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.traceId`))+`: `+i(u.modelValue?.trace_id)+` `,1),a(T,{content:u.modelValue?.trace_id},null,8,[`content`])])]),_:1})],2)):o(``,!0),u.modelValue?.response?.descriptions?(v(),s(`div`,{key:1,class:n({content:!0,full:u.full})},[e(`div`,Qi,[e(`div`,$i,[(v(!0),s(c,null,g(u.modelValue.response.descriptions,(t,n)=>(v(),s(`div`,{key:n,class:`flex items-start`},[t===``?o(``,!0):(v(),s(`div`,ea,[a(V,{effect:`dark`,size:`small`,type:`primary`,round:``,class:`mr-1`},{default:m(()=>[r(i(n+1),1)]),_:2},1024),e(`span`,ta,[r(i(t)+` `,1),a(T,{content:t},null,8,[`content`])])]))]))),128))]),u.modelValue?.request?.image_url?(v(),p(A,{key:0,src:u.modelValue?.request?.image_url,"raw-src":u.modelValue?.request?.image_url,class:`image w-full rounded-lg`},null,8,[`src`,`raw-src`])):o(``,!0)]),e(`div`,{class:n({operations:!0,"mt-2":!0,"mb-2":!0,full:u.full})},[a(N,{path:`/midjourney/describe`,body:u.modelValue?.request},null,8,[`body`]),a(P,{service:`midjourney`,"target-id":u.modelValue?.id,snapshot:{image_url:u.modelValue?.request?.image_url}},null,8,[`target-id`,`snapshot`])],2),a(k,{closable:!1,class:`mt-2 success`},{default:m(()=>[e(`p`,na,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])]),u.modelValue?.elapsed?(v(),s(`p`,ra,[a(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.elapsed`))+`: `+i(u.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e(`p`,ia,[a(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.traceId`))+`: `+i(u.modelValue?.trace_id)+` `,1),a(T,{content:u.modelValue?.trace_id},null,8,[`content`])])]),_:1})],2)):o(``,!0),u.modelValue?.response?o(``,!0):(v(),s(`div`,aa,[a(k,{closable:!1,class:`mt-2 info`},{default:m(()=>[e(`p`,oa,[a(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(u.$t(`midjourney.field.taskId`))+`: `+i(u.modelValue?.id)+` `,1),a(T,{content:u.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):o(``,!0)],64)}var ca=b({name:`TaskList`,components:{TaskItem:K(Fr,[[`render`,sa],[`__scopeId`,`data-v-3db556f3`]]),BotPlaceholder:Fe,NoTasks:ue,ScrollList:le},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?.()}}}),la={key:0,class:`p-2 flex flex-col overflow-y-auto`},ua={key:1,class:`w-full h-full flex items-center justify-center`};function da(e,t,n,r,i,u){let d=l(`bot-placeholder`),f=l(`no-tasks`),h=l(`task-item`),_=l(`scroll-list`);return e.tasks===void 0?(v(),s(`div`,la,[a(d)])):e.tasks&&e.tasks?.length===0?(v(),s(`div`,ua,[a(f)])):e.tasks.length>0?(v(),p(_,{key:2,ref:`scrollList`,class:`p-2 py-3 h-full flex flex-col overflow-y-auto tasks`,loading:e.loading,"floating-loader":e.floatingLoader,onReachTop:t[2]||=t=>e.$emit(`reach-top`)},{default:m(()=>[(v(!0),s(c,null,g(e.tasks,n=>(v(),p(h,{key:n.id,"model-value":n,onExtend:t[0]||=t=>e.$emit(`extend`,t),onCustom:t[1]||=t=>e.$emit(`custom`,t)},null,8,[`model-value`]))),128))]),_:1},8,[`loading`,`floating-loader`])):o(``,!0)}var fa=b({name:`MidjourneyIndex`,components:{ConfigPanel:Pr,TaskList:K(ca,[[`render`,da]]),Layout:Ue},mixins:[ye],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===A.Request},tasksLoading(){return this.$store.state.midjourney.status.getTasks===A.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?.version!==`8.1`&&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(!Te())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(!e.prompt&&e.action===M.GENERATE){N.error(this.$t(`midjourney.message.promptRequired`));return}N.info(this.$t(`midjourney.message.startingTask`)),Ee(`midjourney`,we.imagine(e,{token:t})).then(()=>{N.success(this.$t(`midjourney.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?N.error(this.$t(`midjourney.message.usedUp`)):N.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(!Te())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(!e.prompt){N.error(this.$t(`midjourney.message.promptRequired`));return}if(e.action!==j.EXTEND&&!e.image_url){N.error(this.$t(`midjourney.message.imageUrlRequired`));return}N.info(this.$t(`midjourney.message.startingTask`)),Ee(`midjourney`,we.videos(e,{token:t})).then(()=>{N.success(this.$t(`midjourney.message.startVideosTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?N.error(this.$t(`midjourney.message.usedUp`)):N.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(!Te())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}N.info(this.$t(`midjourney.message.startingTask`)),Ee(`midjourney`,we.describe(e,{token:t})).then(()=>{N.success(this.$t(`midjourney.message.startDescribeTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?N.error(this.$t(`midjourney.message.usedUp`)):N.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=this.config?.version===`8.1`,n={image_id:e.image_id,action:e.action,mode:t?_e:this.config?.mode||`fast`,async:!0,version:this.config?.version,hd:this.config?.hd||!1,...t?{}:{quality:this.config?.quality||`1`}};this.onStartImagineTask(n)},async onGenerate(){if(Ce(this.uploadTracker,e=>this.$t(e),e=>N.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.1`,t=this.config?.version===`8`||this.config?.version===`8.1`,n=!!(this.finalPrompt&&this.finalPrompt.includes(`--sref`)),r=!!(t&&this.config?.references&&this.config.references.length>0),i={mode:this.config?.mode||`fast`,prompt:this.finalPrompt,action:M.GENERATE,translation:this.config?.translation,async:!0,version:this.config?.version,hd:this.config?.hd||!1,...e?{}:{quality:this.config?.quality||`1`},style_reference:n,moodboard:r};await this.onStartImagineTask(i)}else if(this.config?.type===`describe`){if(!this.config?.image_url){N.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 pa(e,t,n,r,i,o){let s=l(`config-panel`),c=l(`task-list`),u=l(`layout`);return v(),p(u,null,{config:m(()=>[a(s,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),results:m(()=>[a(c,{ref:`taskList`,loading:e.loadingMore,onCustom:e.onCustom,onReachTop:e.onReachTop},null,8,[`loading`,`onCustom`,`onReachTop`])]),_:1})}var ma=K(fa,[[`render`,pa]]);export{ma as default};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,at as s,ht as c,j as l,mt as u,ot as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{n as m,t as h}from"./row-ZP6dDlmT.js";import{i as g,n as _,r as v,t as y}from"./container-VI0MzukK.js";import{n as b,t as x}from"./dropdown-BcSxMBDj.js";import{i as S,n as C,r as w,t as T}from"./avatar-DlWhfISR.js";import{O as E,Pi as D,Z as O,_t as k,ai as A,di as j,dn as M,gn as N,hi as P,j as F,ot as I,pi as L}from"./index-z6KXKq9i.js";import{t as R}from"./BottomFooter-BzgPkkio.js";import{t as z}from"./Logo-DyrYlIJ-.js";var B=p({name:`TopHeader`,components:{ElCol:m,Logo:z,ElRow:h,ElDropdown:x,ElMenu:C,ElMenuItem:w,ElDropdownItem:b,ElButton:D,ElSubMenu:S},data(){return{defaultAvatar:T,products:`chat`}},computed:{site(){return this.$store.state?.site},dark(){return this.$store.getters?.dark},active(){return this.$route.matched?.[0]?.path},isHome(){return this.$route.name===k},user(){return this.$store.getters?.user},authenticated(){return this.$store.getters?.authenticated},isMainOfficialHost(){return N()},isDesktopChrome(){return j()},isMacChrome(){return j()&&L()}},methods:{openTab(e){if(P()){F.open({url:e}).catch(t=>{console.warn(`Browser.open failed, falling back to window.open`,t),window.open(e,`_blank`)});return}window.open(e,`_blank`)},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:k})},onLogin(){this.$store.dispatch(`login`,{redirect:this.$route.fullPath})},onDownload(){this.$router.push({name:I})},onProfile(){let e=A();this.openTab(M(`${e}/user/profile`))},onVerify(){let e=A();this.openTab(M(`${e}/user/verify`))},onConsole(){this.$router.push({name:O})},async onLogout(){this.$store.dispatch(`logout`)}}}),V={key:0,class:`mt-4 pr-10`},H={key:1,class:`float-right`},U=[`src`];function W(p,m,h,g,_,v){let y=s(`logo`),b=s(`el-col`),x=s(`el-menu-item`),S=s(`el-sub-menu`),C=s(`el-menu`),w=s(`el-button`),T=s(`language-selector`),E=s(`dark-selector`),D=s(`el-dropdown-item`),O=s(`el-dropdown-menu`),k=s(`el-dropdown`),A=s(`el-row`),j=d(`t`);return f(),l(A,{class:t([`header`,{"desktop-chrome":p.isDesktopChrome,"is-mac":p.isMacChrome,"home-only":p.isHome}])},{default:u(()=>[p.isHome?(f(),l(b,{key:0,span:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})):(f(),l(b,{key:1,md:4,xs:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})),p.isHome?a(``,!0):(f(),l(b,{key:2,md:16,xs:13},{default:u(()=>[i(C,{"default-active":p.active,mode:`horizontal`,class:`menu`,ellipsis:!0,onSelect:p.onSelect},{default:u(()=>[i(S,{index:p.products},{title:u(()=>[n(r(p.$t(`common.nav.products`)),1)]),default:u(()=>[p.site?.features?.chatgpt?.enabled?c((f(),l(x,{key:0,index:`/chat`},null,512)),[[j,`index.title.chat`]]):a(``,!0),p.site?.features?.midjourney?.enabled?c((f(),l(x,{key:1,index:`/midjourney`},null,512)),[[j,`index.title.midjourney`]]):a(``,!0),p.site?.features?.qrart?.enabled?c((f(),l(x,{key:2,index:`/qrart`},null,512)),[[j,`index.title.qrart`]]):a(``,!0),p.site?.features?.suno?.enabled?c((f(),l(x,{key:3,index:`/suno`},null,512)),[[j,`index.title.suno`]]):a(``,!0),p.site?.features?.luma?.enabled?c((f(),l(x,{key:4,index:`/luma`},null,512)),[[j,`index.title.luma`]]):a(``,!0)]),_:1},8,[`index`]),p.isMainOfficialHost?c((f(),l(x,{key:0,onRoute:e=>void 0,onClick:p.onDownload},null,8,[`onClick`])),[[j,`common.nav.mobileApp`]]):a(``,!0),c(i(x,{onRoute:e=>void 0,onClick:m[0]||=e=>p.openTab(`https://platform.acedata.cloud`)},null,512),[[j,`common.nav.apiPlatform`]]),c(i(x,{onRoute:e=>void 0,onClick:m[1]||=e=>p.openTab(`https://platform.acedata.cloud/support`)},null,512),[[j,`common.nav.support`]]),c(i(x,{onRoute:e=>void 0,onClick:m[2]||=e=>p.openTab(`https://platform.acedata.cloud/earning`)},null,512),[[j,`common.nav.referral`]])]),_:1},8,[`default-active`,`onSelect`])]),_:1})),p.isHome?a(``,!0):(f(),l(b,{key:3,md:4,xs:11},{default:u(()=>[p.authenticated?(f(),o(`div`,H,[e(`div`,{class:`console`,onClick:m[3]||=(...e)=>p.onConsole&&p.onConsole(...e)},r(p.$t(`common.button.console`)),1),i(k,{trigger:`click`},{dropdown:u(()=>[i(O,null,{default:u(()=>[i(D,{onClick:p.onProfile},{default:u(()=>[n(r(p.$t(`common.button.profile`)),1)]),_:1},8,[`onClick`]),i(D,{onClick:p.onLogout},{default:u(()=>[n(r(p.$t(`common.button.logout`)),1)]),_:1},8,[`onClick`])]),_:1})]),default:u(()=>[e(`img`,{src:p.user?.avatar||p.defaultAvatar,class:`avatar`},null,8,U)]),_:1})])):(f(),o(`div`,V,[i(w,{type:`primary`,class:`float-right`,size:`small`,round:``,onClick:p.onLogin},{default:u(()=>[n(r(p.$t(`common.button.login`)),1)]),_:1},8,[`onClick`]),i(T,{class:`locale float-right mr-4`}),i(E,{class:`float-right mr-4`})]))]),_:1}))]),_:1},8,[`class`])}var G=p({name:`LayoutIndex`,components:{TopHeader:E(B,[[`render`,W]]),BottomFooter:R,ElContainer:y,ElMain:g,ElFooter:_,ElHeader:v}});function K(e,t,n,r,a,o){let c=s(`top-header`),d=s(`el-header`),p=s(`router-view`),m=s(`el-main`),h=s(`bottom-footer`),g=s(`el-footer`),_=s(`el-container`);return f(),l(_,{class:`wrapper min-h-[100vh]`},{default:u(()=>[i(d,{class:`header p-0 h-auto`},{default:u(()=>[i(c)]),_:1}),i(m,{class:`main`},{default:u(()=>[i(p)]),_:1}),i(g,{class:`footer p-0 h-auto`},{default:u(()=>[i(h)]),_:1})]),_:1})}var q=E(G,[[`render`,K]]);export{q as default};
@@ -1,3 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,C as t,Gt as n,I as r,Jt as i,L as a,M as o,N as s,S as c,T as l,at as u,ft as d,ht as f,j as p,k as m,mt as h,ot as g,rt as _,st as v,tt as y,wt as b,x,z as S}from"./vendor-chart-Dw-P17PN.js";import{F as C}from"./icon-CDmWyIgD.js";import{t as w}from"./tooltip-Cwwy0TGy.js";import{d as T,v as ee}from"./models-yTQ4rqqP.js";import{n as te,t as E}from"./checkbox-DXMDpaxv.js";import{t as D}from"./popover-BVk0bt76.js";import{t as O}from"./arrow-down-BHy-uRDc.js";import{t as k}from"./brain-BZtBmZSb.js";import{t as A}from"./check-ClRF_Odp.js";import{t as j}from"./chevron-right-DR-ZiDX1.js";import{n as M,t as ne}from"./mail-pYhlvo6E.js";import{t as N}from"./circle-check-YpZm567l.js";import{t as P}from"./clock-CG4G8mZJ.js";import{t as re}from"./external-link-C-Spy8-D.js";import{t as F}from"./file-text-BkEg1Wga.js";import{t as I}from"./file-DxSuQKk4.js";import{t as L}from"./globe-G4DF9IKX.js";import{t as ie}from"./info-Cxon5zpU.js";import{t as ae}from"./link-bwtqVJS9.js";import{t as R}from"./loader-circle-CCnrUMcL.js";import{t as oe}from"./message-circle-BZxOIvHV.js";import{t as se}from"./monitor-CO6lra68.js";import{t as ce}from"./pencil-CmslIKkS.js";import{t as le}from"./plug-ZkRs9BxT.js";import{t as ue}from"./refresh-cw-BLbDJ9d8.js";import{t as de}from"./shield-CULt0IEs.js";import{t as z}from"./triangle-alert-C28SDtE0.js";import{Ca as fe,Sa as pe,_a as me,ba as he,ga as ge,ha as _e,ma as ve,pa as ye,xa as be,ya as xe}from"./constants-CzYWUlOY.js";import{o as Se}from"./i18n-CSLcjJrY.js";import{Ci as B,En as Ce,Hi as we,O as V,Pi as H,Ti as Te,Tr as U,W as Ee,ai as W,an as De,fi as Oe,on as ke,vi as Ae,xr as je,yi as G,yr as Me}from"./index-z6KXKq9i.js";import"./vendor-highlight-BHrfT4-E.js";import{t as Ne}from"./CopyToClipboard-kEHSjRrJ.js";import{t as Pe}from"./VueMarkdown-CiiRjbWs.js";import{t as Fe}from"./ReportButton-CybqyzF6.js";import{t as Ie}from"./FilePreview-CvCyrhWU.js";import{t as Le}from"./AskUserQuestionCard-C9K8VKME.js";var Re=G(`file-archive`,[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),ze=G(`file-spreadsheet`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]),Be=G(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),Ve=S({name:`AnsweringMark`,data(){return{}},computed:{conversationId(){return this.$route.params?.id?.toString()}}}),He={class:`mark`};function Ue(e,t,n,r,i,a){return y(),s(`div`,He)}var We=V(Ve,[[`render`,Ue]]),Ge=S({name:`CitationCard`,props:{citation:{type:Object,required:!0}},data(){return{iconFailed:!1}},computed:{displayUrl(){try{let e=new URL(this.citation.url);return e.host+(e.pathname&&e.pathname!==`/`?e.pathname:``)}catch{return this.citation.url}},hostLabel(){try{return new URL(this.citation.url).host.replace(/^www\./,``)}catch{return``}},resolvedIcon(){if(this.iconFailed)return``;if(this.citation.icon)return this.citation.icon;try{let e=new URL(this.citation.url).host;return e?`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`:``}catch{return``}},fallbackIcon(){let e=(this.citation.type||``).toLowerCase();return e===`file`?F:e===`page`?I:e===`issue`?ie:e===`email`?ne:e===`message`?oe:e===`web`?L:ae}},methods:{onIconError(){this.iconFailed=!0}}}),Ke=[`href`],qe={class:`head`},Je=[`src`,`alt`],Ye={key:2,class:`source`},Xe={key:0,class:`title`},Ze={key:1,class:`snippet`},Qe={class:`url`};function $e(t,n,r,a,c,l){return y(),s(`a`,{class:`citation-card`,href:t.citation.url,target:`_blank`,rel:`noopener noreferrer`},[e(`div`,qe,[t.resolvedIcon?(y(),s(`img`,{key:0,src:t.resolvedIcon,alt:t.citation.source||``,class:`icon`,referrerpolicy:`no-referrer`,loading:`lazy`,onError:n[0]||=(...e)=>t.onIconError&&t.onIconError(...e)},null,40,Je)):(y(),p(v(t.fallbackIcon),{key:1,class:`icon-fallback`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),t.citation.source||t.hostLabel?(y(),s(`span`,Ye,i(t.citation.source||t.hostLabel),1)):o(``,!0)]),t.citation.title?(y(),s(`div`,Xe,i(t.citation.title),1)):o(``,!0),t.citation.snippet?(y(),s(`div`,Ze,i(t.citation.snippet),1)):o(``,!0),e(`div`,Qe,i(t.displayUrl),1)],8,Ke)}var et=V(Ge,[[`render`,$e],[`__scopeId`,`data-v-0565e215`]]),tt=/\[\^acite:([A-Za-z0-9_-]{1,32})\]/g,nt=S({name:`MarkdownRenderer`,directives:{highlight:De},components:{VueMarkdown:Pe,CitationCard:et,ElPopover:D},props:{content:{type:String,required:!1,default:``},citations:{type:Object,required:!1,default:()=>({})}},data(){return{hoveredCitation:null,popoverAnchor:null,popoverVisible:!1}},computed:{enrichedContent(){let e=this.content||``;if(!e.includes(`[^acite:`))return e;let t=this.citations||{};return e.replace(tt,(e,n)=>{let r=t[n];return r?it(n,r):``})}},methods:{onChipHover(e){let t=e.target;if(!t)return;let n=t.closest(`.citation-chip`);if(!n){this.popoverVisible=!1;return}let r=n.dataset.citationId;if(!r)return;let i=(this.citations||{})[r];i&&(this.hoveredCitation=i,this.popoverAnchor=n,this.popoverVisible=!0)},onChipLeave(){this.popoverVisible=!1}}});function rt(e){let t=e.source||(()=>{try{return new URL(e.url).host.replace(/^www\./,``)}catch{return``}})()||e.title||`source`;return t.length>24?t.slice(0,23)+`…`:t}function K(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function it(e,t){let n=K(e),r=K(t.title||t.source||t.url||e),i=K(rt(t)),a=t.url?` href="${K(t.url)}"`:``;return[`<span class="citation-chip" data-citation-id="${n}" title="${r}">`,`<a class="citation-chip__link"${a} target="_blank" rel="noopener noreferrer" tabindex="-1">`,`<span class="citation-chip__label">${i}</span>`,`</a>`,`</span>`].join(``)}var at={class:`markdown-with-citations`};function ot(e,t,n,r,i,c){let l=u(`vue-markdown`),d=u(`citation-card`),m=u(`el-popover`),_=g(`highlight`);return y(),s(`div`,at,[f(a(l,{source:e.enrichedContent,class:`markdown-body bg-transparent pt-[3px] text-[inherit]`,onMouseover:e.onChipHover,onMouseleave:e.onChipLeave},null,8,[`source`,`onMouseover`,`onMouseleave`]),[[_]]),e.hoveredCitation&&e.popoverAnchor?(y(),p(m,{key:0,"virtual-ref":e.popoverAnchor,"virtual-triggering":``,trigger:`hover`,visible:e.popoverVisible,placement:`top`,width:340,"popper-class":`citation-popover`,"show-arrow":!0,"hide-after":120},{default:h(()=>[a(d,{citation:e.hoveredCitation},null,8,[`citation`])]),_:1},8,[`virtual-ref`,`visible`])):o(``,!0)])}var st=V(nt,[[`render`,ot],[`__scopeId`,`data-v-f3f2e7ba`]]),ct=S({name:`CopyToClipboard`,components:{RefreshIcon:ue,ElTooltip:w},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:[`restart`],data(){return{copied:!1}},methods:{onRestart(){this.$emit(`restart`)}}}),lt=[`aria-label`,`title`];function ut(t,n,r,i,o,s){let c=u(`refresh-icon`),l=u(`el-tooltip`);return y(),p(l,{effect:`dark`,content:t.$t(`common.button.restart`),placement:`bottom`},{default:h(()=>[e(`button`,{type:`button`,class:`icon-sync`,"aria-label":t.$t(`common.button.restart`),title:t.$t(`common.button.restart`),onClick:n[0]||=(...e)=>t.onRestart&&t.onRestart(...e)},[a(c,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,lt)]),_:1},8,[`content`])}var dt=V(ct,[[`render`,ut],[`__scopeId`,`data-v-fbede026`]]),ft=S({name:`EditMessage`,components:{EditIcon:ce,ElTooltip:w},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:[`click`],data(){return{copied:!1}},methods:{onEdit(){this.$emit(`click`)}}}),pt=[`aria-label`,`title`];function mt(t,n,r,i,o,c){let l=u(`edit-icon`),d=u(`el-tooltip`);return y(),s(`span`,null,[a(d,{effect:`dark`,content:t.$t(`common.button.restart`),placement:`bottom`},{default:h(()=>[e(`button`,{type:`button`,class:`icon-edit`,"aria-label":t.$t(`common.button.edit`),title:t.$t(`common.button.edit`),onClick:n[0]||=(...e)=>t.onEdit&&t.onEdit(...e)},[a(l,{class:`icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,pt)]),_:1},8,[`content`])])}var ht=V(ft,[[`render`,mt],[`__scopeId`,`data-v-ff8de14d`]]),gt={code_execute:`Running code`,web_search:`Searching the web`,image_generate:`Generating image`,video_generate:`Generating video`,music_generate:`Generating music`},_t=S({name:`ToolActivity`,components:{Loading:R,CircleCheckFilled:N,CircleCloseFilled:M,ArrowRight:j},props:{item:{type:Object,required:!0}},data(){return{expanded:!1}},computed:{displayName(){if(this.item.tool_display_name)return this.item.tool_display_name;let e=this.item.tool_name||``;return gt[e]||e.replace(/_/g,` `)},inputText(){let e=this.item.input;return e&&Object.keys(e).length>0?this.item.tool_name===`code_execute`?e.code||``:this.item.tool_name===`web_search`?e.query||``:JSON.stringify(e,null,2):this.item.input_stream||``}}}),vt={class:`tool-icon`},yt={class:`tool-name`},bt={key:0,class:`tool-duration`},xt={key:0,class:`tool-body`},St={key:0,class:`tool-section`},Ct={class:`tool-code`},wt={key:1,class:`tool-section`},Tt={class:`tool-code`};function Et(t,r,c,l,d,f){let m=u(`Loading`),g=u(`el-icon`),_=u(`CircleCloseFilled`),v=u(`CircleCheckFilled`),b=u(`ArrowRight`);return y(),s(`div`,{class:n([`tool-activity`,{"is-error":t.item.is_error,"is-running":t.item.status===`running`}])},[e(`div`,{class:`tool-header`,onClick:r[0]||=e=>t.expanded=!t.expanded},[e(`span`,vt,[t.item.status===`running`?(y(),p(g,{key:0,class:`is-loading`},{default:h(()=>[a(m,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1})):t.item.is_error?(y(),p(g,{key:1,color:`var(--el-color-danger)`},{default:h(()=>[a(_,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1})):(y(),p(g,{key:2,color:`var(--el-color-success)`},{default:h(()=>[a(v,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1}))]),e(`span`,yt,i(t.displayName),1),t.item.duration_ms?(y(),s(`span`,bt,i(t.item.duration_ms)+`ms`,1)):o(``,!0),a(g,{class:n([`tool-expand`,{rotated:t.expanded}])},{default:h(()=>[a(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`class`])]),t.expanded?(y(),s(`div`,xt,[t.inputText?(y(),s(`div`,St,[r[1]||=e(`div`,{class:`tool-section-label`},`Input`,-1),e(`pre`,Ct,i(t.inputText),1)])):o(``,!0),t.item.output?(y(),s(`div`,wt,[r[2]||=e(`div`,{class:`tool-section-label`},`Output`,-1),e(`pre`,Tt,i(t.item.output),1)])):o(``,!0)])):o(``,!0)],2)}var Dt=V(_t,[[`render`,Et],[`__scopeId`,`data-v-aea54073`]]),Ot={starting_session:R,attaching_tab:L,ready:se,executing:R,completed:N,device_offline:z,device_busy:z,authorization_required:P,stopped:Ae,expired:P,debugger_unavailable:z,unknown_outcome:z,failed:Ae},kt={device_offline:`open-device-manager`,device_busy:`stop-other-session`,debugger_unavailable:`close-devtools`,authorization_required:`open-consent-card`},At=S({name:`BrowserToolActivity`,components:{ElButton:H,ElIcon:C,ExpandRightIcon:j},props:{item:{type:Object,required:!0}},emits:[`stop-session`,`recovery`],data(){return{expanded:!1}},computed:{state(){return Me(this.item.execution_state)?this.item.execution_state:`starting_session`},title(){return this.item.tool_display_name||this.item.tool_name?.replace(/_/g,` `)||this.$t(`chat.browserTool.title`)},origin(){let e=je(this.item.origin);return e?new URL(e).hostname:void 0},icon(){return Ot[this.state]},recoveryAction(){return kt[this.state]},canStop(){return!!this.item.browser_session_id&&[`starting_session`,`attaching_tab`,`ready`,`executing`].includes(this.state)},inputText(){let e=this.item.input;return!e||Object.keys(e).length===0?this.item.input_stream||``:JSON.stringify(e,null,2)}}}),jt={class:`activity-icon`,"aria-hidden":`true`},Mt={class:`activity-copy`},Nt={class:`activity-title`},Pt={class:`activity-status`},Ft={key:0,class:`activity-origin`},It={class:`activity-actions`},Lt={key:0,class:`activity-duration`},Rt={key:0,class:`activity-body`},zt={key:0,class:`activity-section`},Bt={class:`activity-code`},Vt={key:1,class:`activity-section`},Ht={class:`activity-code`};function Ut(c,l,d,f,m,g){let _=u(`el-button`),b=u(`ExpandRightIcon`),x=u(`el-icon`);return y(),s(`div`,{class:n([`browser-tool-activity`,`state-${c.state}`,{"is-error":c.item.is_error}]),role:`status`,"aria-live":`polite`},[e(`div`,{class:`activity-header`,onClick:l[2]||=e=>c.expanded=!c.expanded},[e(`div`,jt,[(y(),p(v(c.icon),{class:n({"is-spinning":c.state===`executing`}),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]))]),e(`div`,Mt,[e(`div`,Nt,i(c.title),1),e(`div`,Pt,i(c.$t(`chat.browserTool.state.${c.state}`)),1),c.origin?(y(),s(`div`,Ft,i(c.origin),1)):o(``,!0)]),e(`div`,It,[c.item.duration_ms?(y(),s(`span`,Lt,i(c.item.duration_ms)+`ms`,1)):o(``,!0),c.recoveryAction?(y(),p(_,{key:1,text:``,size:`small`,onClick:l[0]||=t(e=>c.$emit(`recovery`,c.recoveryAction),[`stop`])},{default:h(()=>[r(i(c.$t(`chat.browserTool.recovery.${c.recoveryAction}`)),1)]),_:1})):o(``,!0),c.canStop?(y(),p(_,{key:2,text:``,size:`small`,onClick:l[1]||=t(e=>c.$emit(`stop-session`,c.item.browser_session_id),[`stop`])},{default:h(()=>[r(i(c.$t(`chat.browserTool.stop`)),1)]),_:1})):o(``,!0),a(x,{class:n([`activity-expand`,{rotated:c.expanded}])},{default:h(()=>[a(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`class`])])]),c.expanded?(y(),s(`div`,Rt,[c.inputText?(y(),s(`div`,zt,[l[3]||=e(`div`,{class:`activity-section-label`},`Input`,-1),e(`pre`,Bt,i(c.inputText),1)])):o(``,!0),c.item.output?(y(),s(`div`,Vt,[l[4]||=e(`div`,{class:`activity-section-label`},`Output`,-1),e(`pre`,Ht,i(c.item.output),1)])):o(``,!0)])):o(``,!0)],2)}var Wt=V(At,[[`render`,Ut],[`__scopeId`,`data-v-19e1f97e`]]),Gt=S({name:`EntityCard`,components:{DownIcon:O,ElImage:B,ExternalLinkIcon:re},props:{card:{type:Object,required:!0}},data(){return{mediaFailed:!1}},computed:{cardType(){if(this.mediaFailed)return`file`;let e=(this.card.type||``).toLowerCase();return e===`audio`||e===`image`?e:e===`video`||e===`embed`?`video`:this.card.mimeType?.startsWith(`audio/`)?`audio`:this.card.mimeType?.startsWith(`video/`)?`video`:this.card.mimeType?.startsWith(`image/`)?`image`:`file`},mediaKey(){return[this.card.url,this.card.type,this.card.mimeType||``].join(`\0`)},videoUsesIframe(){if((this.card.type||``).toLowerCase()===`embed`)return!0;try{return new URL(this.card.url).pathname.split(`/`).includes(`embed`)}catch{return!1}},formattedDuration(){let e=this.card.duration??0;return!Number.isFinite(e)||e<=0?``:`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`},cleanFileName(){try{let e=new URL(this.card.url),t=e.pathname.split(`/`).filter(Boolean);return decodeURIComponent(t[t.length-1]||e.hostname)}catch{return this.card.url}},hostname(){try{return new URL(this.card.url).hostname}catch{return``}},fileIcon(){let e=(this.card.mimeType||``).toLowerCase();return e.includes(`word`)||e.includes(`msword`)||e.includes(`pdf`)||e.startsWith(`text/`)?F:e.includes(`sheet`)||e.includes(`excel`)||e.includes(`csv`)?ze:e.includes(`zip`)||e.includes(`compressed`)?Re:I}},watch:{mediaKey(){this.mediaFailed=!1}},methods:{onMediaError(){this.mediaFailed=!0}}}),Kt={key:0,class:`audio-card`},qt={key:0,class:`thumb`},Jt=[`src`,`alt`],Yt={class:`meta`},Xt=[`title`],Zt={key:1,class:`sub`},Qt=[`src`],$t={class:`actions`},en=[`href`],tn={key:1,class:`video-card`},nn={class:`frame`},rn=[`src`,`title`],an=[`src`],on={key:0,class:`meta`},sn=[`title`],cn={key:1,class:`sub`},ln={key:2,class:`image-card`},un=[`title`],dn=[`href`,`title`],fn={class:`info`},pn={class:`title`},mn={class:`sub`};function hn(t,c,l,d,f,m){let g=u(`down-icon`),_=u(`el-image`),b=u(`external-link-icon`);return y(),s(`div`,{class:n([`entity-card`,`entity-card--${t.cardType}`])},[t.cardType===`audio`?(y(),s(`div`,Kt,[t.card.thumbnail?(y(),s(`div`,qt,[e(`img`,{src:t.card.thumbnail,alt:t.card.title||``},null,8,Jt)])):o(``,!0),e(`div`,Yt,[t.card.title?(y(),s(`div`,{key:0,class:`title`,title:t.card.title},i(t.card.title),9,Xt)):o(``,!0),t.card.duration?(y(),s(`div`,Zt,i(t.formattedDuration),1)):o(``,!0),e(`audio`,{class:`player`,controls:``,preload:`metadata`,src:t.card.url,onError:c[0]||=(...e)=>t.onMediaError&&t.onMediaError(...e)},null,40,Qt),e(`div`,$t,[e(`a`,{class:`download`,href:t.card.url,target:`_blank`,rel:`noopener noreferrer`},[a(g,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(t.$t(`common.button.download`)),1)],8,en)])])])):t.cardType===`video`?(y(),s(`div`,tn,[e(`div`,nn,[t.videoUsesIframe?(y(),s(`iframe`,{key:0,class:`player`,src:t.card.url,title:t.card.title||``,frameborder:`0`,loading:`lazy`,referrerpolicy:`strict-origin-when-cross-origin`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowfullscreen:``,onError:c[1]||=(...e)=>t.onMediaError&&t.onMediaError(...e)},null,40,rn)):(y(),s(`video`,{key:1,class:`player`,controls:``,preload:`metadata`,src:t.card.url,onError:c[2]||=(...e)=>t.onMediaError&&t.onMediaError(...e)},null,40,an))]),t.card.title||t.card.duration?(y(),s(`div`,on,[t.card.title?(y(),s(`span`,{key:0,class:`title`,title:t.card.title},i(t.card.title),9,sn)):o(``,!0),t.card.duration?(y(),s(`span`,cn,i(t.formattedDuration),1)):o(``,!0)])):o(``,!0)])):t.cardType===`image`?(y(),s(`div`,ln,[a(_,{src:t.card.url,alt:t.card.alt||t.card.title||``,fit:`contain`,class:`image`,"preview-src-list":[t.card.url],"initial-index":0,"hide-on-click-modal":!0,"preview-teleported":!0,onError:t.onMediaError},{placeholder:h(()=>[...c[3]||=[e(`div`,{class:`image-placeholder`},null,-1)]]),error:h(()=>[...c[4]||=[e(`div`,{class:`image-placeholder image-placeholder--error`},null,-1)]]),_:1},8,[`src`,`alt`,`preview-src-list`,`onError`]),t.card.title?(y(),s(`div`,{key:0,class:`caption`,title:t.card.title},i(t.card.title),9,un)):o(``,!0)])):(y(),s(`a`,{key:3,class:`file-card`,href:t.card.url,target:`_blank`,rel:`noopener noreferrer`,title:t.card.title||t.card.url},[(y(),p(v(t.fileIcon),{class:`icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`div`,fn,[e(`div`,pn,i(t.card.title||t.cleanFileName),1),e(`div`,mn,i(t.card.mimeType||t.hostname),1)]),a(b,{class:`open`,size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,dn))],2)}var gn=V(Gt,[[`render`,hn],[`__scopeId`,`data-v-d8672a01`]]),_n=S({name:`ThinkingBlock`,components:{AiIcon:k,ArrowRight:j,ElIcon:C,MarkdownRenderer:st},props:{content:{type:String,required:!0},done:{type:Boolean,default:!1}},setup(e){let{t}=Se(),n=b(!1);return d(()=>e.done,e=>{e&&(n.value=!0)}),{collapsed:n,label:m(()=>e.done?t(`chat.thinking.done`):t(`chat.thinking.inProgress`))}}}),vn={class:`thinking-label`},yn={class:`thinking-content`};function bn(t,r,o,c,l,d){let p=u(`ArrowRight`),m=u(`el-icon`),g=u(`ai-icon`),_=u(`markdown-renderer`);return y(),s(`div`,{class:n([`thinking-block`,{active:!t.done}])},[e(`div`,{class:`thinking-header`,onClick:r[0]||=e=>t.collapsed=!t.collapsed},[a(m,{class:n([`caret`,{"rotate-90":!t.collapsed}])},{default:h(()=>[a(p,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`class`]),a(g,{class:n([`brain`,{pulse:!t.done}]),size:`1em`,"aria-hidden":`true`,focusable:`false`},null,8,[`class`]),e(`span`,vn,i(t.label),1)]),f(e(`div`,yn,[a(_,{content:t.content},null,8,[`content`])],512),[[x,!t.collapsed]])],2)}var xn=V(_n,[[`render`,bn],[`__scopeId`,`data-v-0723c4f5`]]),Sn=S({name:`ConnectorEntryRow`,components:{ConnectionIcon:le,ElButton:H,SuccessIcon:N},props:{entry:{type:Object,required:!0},catalog:{type:Object,default:null},disabled:{type:Boolean,default:!1}},emits:[`authorize`],data(){return{logoError:!1}},computed:{fallbackName(){let e=this.entry.connector??``;return e.startsWith(`acedatacloud/`)?e.slice(13):e},displayName(){return this.catalog?.name?.trim()||this.fallbackName},iconUrl(){return this.logoError?``:this.catalog?.icon_url||``},secondaryText(){return this.entry.context&&this.entry.context.trim()?this.entry.context:this.catalog?.short_description||``}},watch:{"catalog.icon_url"(){this.logoError=!1}},methods:{onAuthorize(){this.$emit(`authorize`,this.entry)},onLogoError(){this.logoError=!0}}}),Cn={class:`entry-icon`,"aria-hidden":`true`},wn=[`src`,`alt`],Tn={class:`entry-text`},En={class:`entry-name`},Dn={key:0,class:`entry-context`},On={class:`entry-action`},kn={key:0,class:`status-pill connected`},An={key:2,class:`status-pill unconnected`};function jn(t,a,c,l,d,f){let m=u(`success-icon`),g=u(`connection-icon`),_=u(`el-button`);return y(),s(`div`,{class:n([`connector-entry-row`,{"is-connected":t.entry.status===`connected`}])},[e(`div`,Cn,[t.iconUrl?(y(),s(`img`,{key:0,src:t.iconUrl,class:`icon-logo`,alt:t.displayName,onError:a[0]||=(...e)=>t.onLogoError&&t.onLogoError(...e)},null,40,wn)):t.entry.status===`connected`?(y(),p(m,{key:1,class:`icon-connected`,size:`1em`,"aria-hidden":`true`,focusable:`false`})):(y(),p(g,{key:2,class:`icon-unconnected`,size:`1em`,"aria-hidden":`true`,focusable:`false`}))]),e(`div`,Tn,[e(`div`,En,i(t.displayName),1),t.secondaryText?(y(),s(`div`,Dn,i(t.secondaryText),1)):o(``,!0)]),e(`div`,On,[t.entry.status===`connected`?(y(),s(`span`,kn,i(t.$t(`chat.consent.statusConnected`)),1)):t.entry.install_url?(y(),p(_,{key:1,type:`primary`,size:`small`,disabled:t.disabled,onClick:t.onAuthorize},{default:h(()=>[r(i(t.$t(`chat.consent.authorize`)),1)]),_:1},8,[`disabled`,`onClick`])):(y(),s(`span`,An,i(t.$t(`chat.consent.statusUnconnected`)),1))])],2)}var Mn=V(Sn,[[`render`,jn],[`__scopeId`,`data-v-c71edc61`]]);function Nn(e){let t=new Set,n=[];for(let r of e.requirements??[])if(!r.satisfied)for(let e of r.entries??[])e.status===`unconnected`&&!t.has(e.connector)&&(t.add(e.connector),n.push(e.connector));return n}function q(e,t,n){return JSON.stringify({consent_request_id:e.consent_request_id,authorized:t,skipped:n})}async function Pn(){let e=await U.get(`/connections/`,{baseURL:`${W()}/api/v1`});return Array.isArray(e.data)?e.data:[]}var Fn=new Map,J=new Map;async function In(e){if(!e)return;let t=Fn.get(e);if(t)return t;let n=J.get(e);if(n)return n;let r=(async()=>{try{let t=(await U.get(`/connectors/${e}/`,{baseURL:`${W()}/api/v1`})).data;return Fn.set(e,t),t}catch(t){console.warn(`connector catalog fetch failed`,e,t);return}})().finally(()=>{J.delete(e)});return J.set(e,r),r}var Y=null,X=null,Z=null,Q=0;async function Ln(e,t=!1){let n=e??null;if(n!==X&&(X=n,Y=null,Z=null,Q++),!n)return[];if(!t&&Y)return Y;if(!t&&Z)return Z;let r=++Q,i=(async()=>{try{let e=(await U.get(`/connectors/`,{baseURL:`${W()}/api/v1`,params:{sort:`popular`,limit:200}}))?.data?.items,t=Array.isArray(e)?e.filter(e=>e?.installed&&e?.icon_url).map(e=>({id:e.id,identifier:e.identifier,name:e.name,icon_url:e.icon_url})):[];return X===n&&Q===r&&(Y=t),t}catch(e){return console.warn(`enabled connectors fetch failed`,e),Y??[]}})();return Z=i,i.finally(()=>{Q===r&&(Z=null)}),i}async function Rn(e,t){return(await U.post(`/connectors/${e}/install/`,t,{baseURL:`${W()}/api/v1`})).data}var zn=S({name:`ConnectorConsentCard`,components:{ConnectorEntryRow:Mn,ElButton:H,ElCheckbox:E,ElCheckboxGroup:te,ElDialog:Te,SecurityIcon:de},props:{toolUseId:{type:String,required:!0},payload:{type:Object,required:!0},resolved:{type:Boolean,default:!1},previousOutput:{type:String,default:``}},emits:[`submit`,`authorize`],data(){return{resolvedAuthorized:[],resolvedSkipped:[],catalogs:{},scopeDialogVisible:!1,scopeDialogEntry:null,scopeDialogCatalog:null,selectedScopes:[],authorizingConnector:``,liveStatuses:{},hasCheckedStatuses:!1,refreshingStatus:!1}},computed:{requirements(){return this.payload?.requirements??[]},effectiveStatus(){return e=>this.liveStatuses[e.connector]??e.status},effectiveEntriesFor(){return e=>e.entries.map(e=>{let t=this.liveStatuses[e.connector];return!t||t===e.status?e:{...e,status:t}})},effectiveSatisfiedFor(){return e=>{let t=e.entries.map(e=>this.effectiveStatus(e));return t.length===0?e.satisfied:e.match===`all`?t.every(e=>e===`connected`):t.some(e=>e===`connected`)}},hasUnsatisfied(){return this.requirements.some(e=>!this.effectiveSatisfiedFor(e))},showContinueButton(){return this.resolved||!this.hasCheckedStatuses?!1:!this.hasUnsatisfied},resolvedSummary(){return this.resolvedAuthorized.length>0?this.$t(`chat.consent.resolvedAuthorized`,{list:this.resolvedAuthorized.join(`, `)}):this.$t(`chat.consent.resolvedSkipped`)}},watch:{resolved:{immediate:!0,handler(e){e&&this.parsePreviousOutput()}},previousOutput:{immediate:!1,handler(){this.resolved&&this.parsePreviousOutput()}},payload:{immediate:!0,deep:!1,handler(){this.refreshCatalogs()}}},mounted(){this.shouldRefreshFromReturn()&&this.refreshConnectionStatuses()},methods:{showMatchLabel(e){return e.entries.length>1&&!this.effectiveSatisfiedFor(e)},catalogFor(e){return this.catalogs[e.catalog_id]||null},async refreshCatalogs(){let e=new Set;for(let t of this.requirements)for(let n of t.entries)n.catalog_id&&e.add(n.catalog_id);await Promise.all(Array.from(e).map(async e=>{if(this.catalogs[e])return;let t=await In(e);t&&(this.catalogs={...this.catalogs,[e]:t})}))},onAuthorize(e){let t=this.catalogFor(e);if(!t||t.auth_mode===`byoc`||!t.installable){this.$emit(`authorize`,{tool_use_id:this.toolUseId,entry:e});return}let n=t.permissions||[];if(n.length>1){this.scopeDialogEntry=e,this.scopeDialogCatalog=t,this.selectedScopes=n.map(e=>e.id),this.scopeDialogVisible=!0;return}this.performInstall(e,void 0)},onConfirmScopes(){let e=this.scopeDialogEntry;if(!e){this.scopeDialogVisible=!1;return}let t=[...this.selectedScopes];this.scopeDialogVisible=!1,this.performInstall(e,t)},async performInstall(e,t){this.authorizingConnector=e.connector;try{let n=new URL(window.location.href);n.searchParams.set(`consent`,this.payload.consent_request_id),n.searchParams.delete(`connector`);let r=await Rn(e.catalog_id,{scopes:t,return_url:n.toString()});if(r.type===`redirect`&&r.authorization_url){window.location.href=r.authorization_url;return}this.$emit(`authorize`,{tool_use_id:this.toolUseId,entry:e})}catch(t){console.error(`installFromCatalog failed`,t),ee.error(this.$t(`chat.consent.installFailed`)),this.$emit(`authorize`,{tool_use_id:this.toolUseId,entry:e})}finally{this.authorizingConnector=``}},onSkip(){let e=Nn(this.payload),t=q(this.payload,[],e);this.$emit(`submit`,{tool_use_id:this.toolUseId,output:t})},shouldRefreshFromReturn(){if(typeof window>`u`)return!1;try{return new URL(window.location.href).searchParams.get(`consent`)===this.payload?.consent_request_id}catch{return!1}},async refreshConnectionStatuses(){this.refreshingStatus=!0;try{let e=await Pn(),t=new Set;for(let n of e){let e=n.connector_identifier;e&&String(n.status).toLowerCase()===`active`&&t.add(e)}let n={};for(let e of this.requirements)for(let r of e.entries)n[r.connector]=t.has(r.connector)?`connected`:`unconnected`;this.liveStatuses=n,this.hasCheckedStatuses=!0}catch(e){console.warn(`listMyConnections failed`,e)}finally{this.refreshingStatus=!1}},onContinue(){let e=[];for(let t of this.requirements)for(let n of t.entries)this.effectiveStatus(n)===`connected`&&e.push(n.connector);let t=q(this.payload,e,[]);this.$emit(`submit`,{tool_use_id:this.toolUseId,output:t})},parsePreviousOutput(){if(this.resolvedAuthorized=[],this.resolvedSkipped=[],this.previousOutput)try{let e=JSON.parse(this.previousOutput);Array.isArray(e.authorized)&&(this.resolvedAuthorized=e.authorized.filter(e=>typeof e==`string`)),Array.isArray(e.skipped)&&(this.resolvedSkipped=e.skipped.filter(e=>typeof e==`string`))}catch{}}}}),Bn={class:`ccc-header`},Vn={class:`header-title`},Hn={key:0,class:`ccc-rationale`},Un={key:0,class:`ccc-req-match`},Wn={key:1,class:`ccc-actions`},Gn={key:2,class:`ccc-resolved-banner`},Kn={class:`ccc-scope-hint`},qn={class:`ccc-scope-label`},Jn={key:0,class:`ccc-scope-desc`};function Yn(t,c,d,f,m,g){let v=u(`security-icon`),b=u(`ConnectorEntryRow`),x=u(`el-button`),S=u(`el-checkbox`),C=u(`el-checkbox-group`),w=u(`el-dialog`);return y(),s(`div`,{class:n([`connector-consent-card`,{"is-resolved":t.resolved}])},[e(`div`,Bn,[a(v,{class:`header-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Vn,i(t.$t(`chat.consent.title`)),1)]),t.payload.rationale?(y(),s(`p`,Hn,i(t.payload.rationale),1)):o(``,!0),(y(!0),s(l,null,_(t.requirements,e=>(y(),s(`div`,{key:e.requirement_index,class:n([`ccc-requirement`,{"is-satisfied":t.effectiveSatisfiedFor(e)}])},[t.showMatchLabel(e)?(y(),s(`div`,Un,i(e.match===`any`?t.$t(`chat.consent.matchAny`):t.$t(`chat.consent.matchAll`)),1)):o(``,!0),(y(!0),s(l,null,_(t.effectiveEntriesFor(e),e=>(y(),p(b,{key:e.connector,entry:e,catalog:t.catalogFor(e),disabled:t.resolved||t.authorizingConnector!==``,onAuthorize:t.onAuthorize},null,8,[`entry`,`catalog`,`disabled`,`onAuthorize`]))),128))],2))),128)),!t.resolved&&(t.hasUnsatisfied||t.showContinueButton)?(y(),s(`div`,Wn,[t.hasUnsatisfied?(y(),p(x,{key:0,text:``,disabled:t.authorizingConnector!==``,onClick:t.onSkip},{default:h(()=>[r(i(t.$t(`chat.consent.skip`)),1)]),_:1},8,[`disabled`,`onClick`])):o(``,!0),t.showContinueButton?(y(),p(x,{key:1,type:`primary`,loading:t.refreshingStatus,disabled:t.authorizingConnector!==``,onClick:t.onContinue},{default:h(()=>[r(i(t.$t(`chat.consent.continue`)),1)]),_:1},8,[`loading`,`disabled`,`onClick`])):o(``,!0)])):o(``,!0),t.resolved?(y(),s(`div`,Gn,i(t.resolvedSummary),1)):o(``,!0),a(w,{modelValue:t.scopeDialogVisible,"onUpdate:modelValue":c[2]||=e=>t.scopeDialogVisible=e,title:t.scopeDialogCatalog?t.$t(`chat.consent.selectScopes`,{provider:t.scopeDialogCatalog.name}):``,width:`480px`,"close-on-click-modal":!1,"append-to-body":``},{footer:h(()=>[a(x,{disabled:t.authorizingConnector!==``,onClick:c[1]||=e=>t.scopeDialogVisible=!1},{default:h(()=>[r(i(t.$t(`common.button.cancel`)),1)]),_:1},8,[`disabled`]),a(x,{type:`primary`,loading:t.authorizingConnector!==``,onClick:t.onConfirmScopes},{default:h(()=>[r(i(t.$t(`common.button.confirm`)),1)]),_:1},8,[`loading`,`onClick`])]),default:h(()=>[e(`p`,Kn,i(t.$t(`chat.consent.selectScopesHint`)),1),a(C,{modelValue:t.selectedScopes,"onUpdate:modelValue":c[0]||=e=>t.selectedScopes=e},{default:h(()=>[(y(!0),s(l,null,_(t.scopeDialogCatalog?.permissions||[],t=>(y(),s(`div`,{key:t.id,class:`ccc-scope-row`},[a(S,{value:t.id,label:t.id},{default:h(()=>[e(`span`,qn,i(t.label||t.id),1)]),_:2},1032,[`value`,`label`]),t.desc?(y(),s(`p`,Jn,i(t.desc),1)):o(``,!0)]))),128))]),_:1},8,[`modelValue`])]),_:1},8,[`modelValue`,`title`])],2)}var Xn=V(zn,[[`render`,Yn],[`__scopeId`,`data-v-abe74887`]]),Zn=S({name:`GenericFieldList`,props:{summary:{type:String,default:``},fields:{type:Array,default:()=>[]}}}),Qn={class:`generic-field-list`},$n={key:0,class:`gfl-summary`},er={key:1,class:`gfl-fields`},tr={class:`gfl-label`},nr={class:`gfl-value`};function rr(t,n,r,a,c,u){return y(),s(`div`,Qn,[t.summary?(y(),s(`p`,$n,i(t.summary),1)):o(``,!0),t.fields.length>0?(y(),s(`dl`,er,[(y(!0),s(l,null,_(t.fields,(t,n)=>(y(),s(`div`,{key:n,class:`gfl-row`},[e(`dt`,tr,i(t.label),1),e(`dd`,nr,i(t.value),1)]))),128))])):o(``,!0)])}var ir=V(Zn,[[`render`,rr],[`__scopeId`,`data-v-397c1174`]]),$=`SELF_ONLY`,ar=S({name:`TikTokPublishForm`,props:{detail:{type:Object,required:!0},initialTitle:{type:String,default:``},durationSec:{type:Number,default:0}},emits:[`validity-change`],data(){return{form:{title:this.initialTitle,privacy_level:``,allow_comment:!1,allow_duet:!1,allow_stitch:!1,commercial:!1,brand_organic_toggle:!1,brand_content_toggle:!1}}},computed:{privacyOptions(){return this.detail?.privacy_level_options??[]},tooLong(){let e=this.detail?.max_video_post_duration_sec??0;return e>0&&this.durationSec>e},brandedContentBlocked(){return this.form.privacy_level===$},selfOnlyBlocked(){return this.form.commercial&&this.form.brand_content_toggle},commercialLabel(){return this.form.brand_content_toggle?this.$t(`chat.actionConfirmation.tiktok.labelPaidPartnership`):this.form.brand_organic_toggle?this.$t(`chat.actionConfirmation.tiktok.labelPromotional`):``},musicDeclaration(){let e=this.form.commercial&&this.form.brand_content_toggle?`chat.actionConfirmation.tiktok.musicBranded`:`chat.actionConfirmation.tiktok.music`;return this.$t(e)},isValid(){return!(!this.form.privacy_level||this.tooLong||this.form.commercial&&!this.form.brand_organic_toggle&&!this.form.brand_content_toggle)},values(){return{title:this.form.title,privacy_level:this.form.privacy_level,disable_comment:!this.form.allow_comment,disable_duet:!this.form.allow_duet,disable_stitch:!this.form.allow_stitch,brand_organic_toggle:this.form.commercial?this.form.brand_organic_toggle:!1,brand_content_toggle:this.form.commercial?this.form.brand_content_toggle:!1}}},watch:{isValid:{immediate:!0,handler(e){this.$emit(`validity-change`,e)}},"form.privacy_level"(e){e===$&&(this.form.brand_content_toggle=!1)},"form.commercial"(e){e||(this.form.brand_organic_toggle=!1,this.form.brand_content_toggle=!1)}},methods:{isPrivacyDisabled(e){return e===$&&this.selfOnlyBlocked},privacyLabel(e){let t={PUBLIC_TO_EVERYONE:`chat.actionConfirmation.tiktok.privacyPublic`,MUTUAL_FOLLOW_FRIENDS:`chat.actionConfirmation.tiktok.privacyFriends`,FOLLOWER_OF_CREATOR:`chat.actionConfirmation.tiktok.privacyFollowers`,SELF_ONLY:`chat.actionConfirmation.tiktok.privacySelf`};return t[e]?this.$t(t[e]):e},collect(){return this.values}}}),or={class:`tiktok-publish-form`},sr={class:`tpf-account`},cr={key:0,class:`tpf-error`},lr={class:`tpf-field`},ur={class:`tpf-label`,for:`tpf-caption`},dr={class:`tpf-field`},fr={class:`tpf-label`,for:`tpf-privacy`},pr={key:0,class:`tpf-hint`},mr={class:`tpf-field`},hr={class:`tpf-label`},gr={class:`tpf-checks`},_r={class:`tpf-field`},vr={key:0,class:`tpf-checks tpf-indent`},yr={key:0,class:`tpf-hint`},br={key:1,class:`tpf-hint`},xr={class:`tpf-declaration`};function Sr(t,n,c,d,f,m){let g=u(`el-input`),v=u(`el-option`),b=u(`el-select`),x=u(`el-checkbox`);return y(),s(`div`,or,[e(`p`,sr,[r(i(t.$t(`chat.actionConfirmation.tiktok.postingTo`))+` `,1),e(`strong`,null,i(t.detail.creator_nickname),1)]),t.tooLong?(y(),s(`p`,cr,i(t.$t(`chat.actionConfirmation.tiktok.tooLong`,{max:t.detail.max_video_post_duration_sec})),1)):o(``,!0),e(`div`,lr,[e(`label`,ur,i(t.$t(`chat.actionConfirmation.tiktok.caption`)),1),a(g,{id:`tpf-caption`,modelValue:t.form.title,"onUpdate:modelValue":n[0]||=e=>t.form.title=e,type:`textarea`,rows:3,maxlength:2200,"show-word-limit":``,placeholder:t.$t(`chat.actionConfirmation.tiktok.captionPlaceholder`)},null,8,[`modelValue`,`placeholder`])]),e(`div`,dr,[e(`label`,fr,[r(i(t.$t(`chat.actionConfirmation.tiktok.privacy`))+` `,1),n[8]||=e(`span`,{class:`tpf-required`},`*`,-1)]),a(b,{id:`tpf-privacy`,modelValue:t.form.privacy_level,"onUpdate:modelValue":n[1]||=e=>t.form.privacy_level=e,placeholder:t.$t(`chat.actionConfirmation.tiktok.privacyPlaceholder`),class:`tpf-select`},{default:h(()=>[(y(!0),s(l,null,_(t.privacyOptions,e=>(y(),p(v,{key:e,label:t.privacyLabel(e),value:e,disabled:t.isPrivacyDisabled(e)},null,8,[`label`,`value`,`disabled`]))),128))]),_:1},8,[`modelValue`,`placeholder`]),t.selfOnlyBlocked?(y(),s(`p`,pr,i(t.$t(`chat.actionConfirmation.tiktok.brandedNotPrivate`)),1)):o(``,!0)]),e(`div`,mr,[e(`span`,hr,i(t.$t(`chat.actionConfirmation.tiktok.interactions`)),1),e(`div`,gr,[a(x,{modelValue:t.form.allow_comment,"onUpdate:modelValue":n[2]||=e=>t.form.allow_comment=e,disabled:t.detail.comment_disabled},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.tiktok.allowComment`)),1)]),_:1},8,[`modelValue`,`disabled`]),t.detail.is_photo_post?o(``,!0):(y(),s(l,{key:0},[a(x,{modelValue:t.form.allow_duet,"onUpdate:modelValue":n[3]||=e=>t.form.allow_duet=e,disabled:t.detail.duet_disabled},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.tiktok.allowDuet`)),1)]),_:1},8,[`modelValue`,`disabled`]),a(x,{modelValue:t.form.allow_stitch,"onUpdate:modelValue":n[4]||=e=>t.form.allow_stitch=e,disabled:t.detail.stitch_disabled},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.tiktok.allowStitch`)),1)]),_:1},8,[`modelValue`,`disabled`])],64))])]),e(`div`,_r,[a(x,{modelValue:t.form.commercial,"onUpdate:modelValue":n[5]||=e=>t.form.commercial=e},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.tiktok.commercial`)),1)]),_:1},8,[`modelValue`]),t.form.commercial?(y(),s(`div`,vr,[a(x,{modelValue:t.form.brand_organic_toggle,"onUpdate:modelValue":n[6]||=e=>t.form.brand_organic_toggle=e},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.tiktok.yourBrand`)),1)]),_:1},8,[`modelValue`]),a(x,{modelValue:t.form.brand_content_toggle,"onUpdate:modelValue":n[7]||=e=>t.form.brand_content_toggle=e,disabled:t.brandedContentBlocked},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.tiktok.brandedContent`)),1)]),_:1},8,[`modelValue`,`disabled`]),t.commercialLabel?(y(),s(`p`,yr,i(t.commercialLabel),1)):o(``,!0),t.brandedContentBlocked?(y(),s(`p`,br,i(t.$t(`chat.actionConfirmation.tiktok.brandedNotPrivate`)),1)):o(``,!0)])):o(``,!0)]),e(`p`,xr,i(t.musicDeclaration),1)])}var Cr=S({name:`ActionConfirmationCard`,components:{GenericFieldList:ir,TikTokPublishForm:V(ar,[[`render`,Sr],[`__scopeId`,`data-v-02ebbb29`]]),ConfirmIcon:A,WarningIcon:z},props:{payload:{type:Object,required:!0},resolved:{type:Boolean,default:!1},previousOutput:{type:String,default:``}},emits:[`submit`],data(){return{submitting:!1,resolvedConfirmed:null,bodyValid:!0}},computed:{isTikTokPublish(){return this.payload?.kind===`tiktok.publish`&&!!this.payload?.detail},initialTitle(){let e=this.payload?.detail;return typeof e?.suggested_title==`string`?e.suggested_title:``},isDestructive(){return this.payload?.severity===`destructive`},headerIcon(){return this.isDestructive?z:A},confirmLabel(){return this.payload?.confirm_label||this.$t(`chat.actionConfirmation.confirm`)},formattedDuration(){let e=Math.round(this.payload?.preview?.duration_sec??0),t=Math.floor(e/60),n=e%60;return`${t}:${String(n).padStart(2,`0`)}`},resolvedSummary(){let e=this.resolvedConfirmed?`chat.actionConfirmation.resolvedConfirmed`:`chat.actionConfirmation.resolvedCancelled`;return this.$t(e)}},watch:{resolved:{immediate:!0,handler(e){e&&(this.submitting=!1,this.resolvedConfirmed=this.parsePreviousConfirmed())}}},methods:{parsePreviousConfirmed(){if(!this.previousOutput)return!1;try{return JSON.parse(this.previousOutput)?.confirmed===!0}catch{return!1}},emitResult(e,t){if(this.submitting||this.resolved)return;this.submitting=!0;let n={action_confirmation_id:this.payload.action_confirmation_id,confirmed:e};e&&t&&(n.values=t),this.$emit(`submit`,n)},onValidityChange(e){this.bodyValid=e},collectValues(){let e=this.$refs.tiktokForm;return e?.collect?e.collect():void 0},onConfirm(){this.emitResult(!0,this.collectValues())},onCancel(){this.emitResult(!1)}}}),wr={class:`acc-header`},Tr={class:`header-title`},Er={key:0,class:`acc-preview`},Dr=[`src`],Or=[`src`,`alt`],kr={key:2,class:`preview-duration`},Ar={class:`acc-body`},jr={key:1,class:`acc-actions`},Mr={key:2,class:`acc-resolved-banner`};function Nr(t,c,l,d,f,m){let g=u(`TikTokPublishForm`),_=u(`GenericFieldList`),b=u(`el-button`);return y(),s(`div`,{class:n([`action-confirmation-card`,{"is-resolved":t.resolved,"is-destructive":t.isDestructive}])},[e(`div`,wr,[(y(),p(v(t.headerIcon),{class:`header-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`})),e(`span`,Tr,i(t.payload.title),1)]),t.payload.preview?(y(),s(`div`,Er,[t.payload.preview.type===`video`?(y(),s(`video`,{key:0,class:`preview-media`,src:t.payload.preview.url,controls:``,preload:`metadata`},null,8,Dr)):(y(),s(`img`,{key:1,class:`preview-media`,src:t.payload.preview.url,alt:t.payload.title},null,8,Or)),t.payload.preview.duration_sec?(y(),s(`span`,kr,i(t.formattedDuration),1)):o(``,!0)])):o(``,!0),e(`div`,Ar,[t.isTikTokPublish?(y(),p(g,{key:0,ref:`tiktokForm`,detail:t.payload.detail,"initial-title":t.initialTitle,"duration-sec":t.payload.preview?.duration_sec??0,onValidityChange:t.onValidityChange},null,8,[`detail`,`initial-title`,`duration-sec`,`onValidityChange`])):(y(),p(_,{key:1,summary:t.payload.summary,fields:t.payload.fields??[]},null,8,[`summary`,`fields`]))]),t.resolved?(y(),s(`div`,Mr,i(t.resolvedSummary),1)):(y(),s(`div`,jr,[a(b,{text:``,disabled:t.submitting,onClick:t.onCancel},{default:h(()=>[r(i(t.$t(`chat.actionConfirmation.cancel`)),1)]),_:1},8,[`disabled`,`onClick`]),a(b,{type:t.isDestructive?`danger`:`primary`,loading:t.submitting,disabled:!t.bodyValid,onClick:t.onConfirm},{default:h(()=>[r(i(t.confirmLabel),1)]),_:1},8,[`type`,`loading`,`disabled`,`onClick`])]))],2)}var Pr=S({name:`Message`,components:{ErrorIcon:M,EditMessage:ht,CopyToClipboard:Ne,RestartToGenerate:dt,ReportButton:Fe,AnsweringMark:We,MarkdownRenderer:st,FilePreview:Ie,ToolActivity:Dt,BrowserToolActivity:Wt,EntityCard:gn,ThinkingBlock:xn,AskUserQuestionCard:Le,ConnectorConsentCard:Xn,ActionConfirmationCard:V(Cr,[[`render`,Nr],[`__scopeId`,`data-v-77628ebf`]]),ElButton:H,ElImage:B,ElInput:we},props:{messages:{type:Array,required:!1,default:()=>[]},message:{type:Object,required:!0},application:{type:Object,required:!0},readonly:{type:Boolean,default:!1},modelGroupOverride:{type:Object,required:!1,default:void 0}},emits:[`stop`,`edit`,`restart`,`answerAskUserQuestion`,`skipAskUserQuestion`,`respondConnectorConsent`,`respondActionConfirmation`,`authorizeConnector`,`stopBrowserSession`,`browserRecovery`],data(){return{copied:!1,isEditing:!1,questionValue:this.message.content,messageState:T}},computed:{modelGroup(){return this.modelGroupOverride||this.$store.state.chat?.modelGroup},copyableText(){let e=this.message.content;return e?typeof e==`string`?e:Array.isArray(e)?e.filter(e=>e&&e.type===`text`&&typeof e.text==`string`).map(e=>e.text).join(`
2
-
3
- `).trim():``:``},errorText(){if(console.debug(`error`,this.message.error),!(!this.message.error||!this.message.error?.code)){if(this.message.error?.message)return this.message.error.message;switch(this.message.error?.code){case fe:return this.$t(`chat.message.errorUsedUp`);case ye:return this.$t(`chat.message.errorApiError`);case ve:return this.$t(`chat.message.errorBadRequest`);case he:return this.$t(`chat.message.errorTimeout`);case _e:return this.$t(`chat.message.errorBusy`);case me:return this.$t(`chat.message.errorContentTooLarge`);case be:return this.$t(`chat.message.errorTooManyRequests`);case xe:return this.$t(`chat.message.errorNotApplied`);case ge:return;case pe:default:return this.$t(`chat.message.errorUnknown`)}}},showBuyMore(){return Ce(this.$store.getters.site)?!1:!Oe()&&this.message.role===`assistant`&&this.message.error?.code===`used_up`}},watch:{},methods:{startEditing(){this.isEditing=!0,this.questionValue=this.message.content,console.debug(`start to get answer`,this.message)},cancelEdit(){this.isEditing=!1},onRestart(){this.$emit(`restart`,this.message)},onEdit(){this.isEditing=!1,this.onSubmit()},onEditEnterKey(e){let t=e;t.isComposing||t.keyCode===229||(t.preventDefault(),this.onEdit())},onSubmit(){this.$emit(`edit`,this.message,this.questionValue)},onCopy(){ke(this.message.content.toString(),{debug:!0}),this.copied=!0,setTimeout(()=>{this.copied=!1},3e3)},onBuyMore(){this.$router.push({name:Ee,params:{id:this.application?.id}})},onAskUserQuestionSubmit(e){this.$emit(`answerAskUserQuestion`,e)},onAskUserQuestionSkip(e){this.$emit(`skipAskUserQuestion`,e)},askUserQuestionPayloadFromBlock(e){return e.pending_question?e.pending_question:{questions:e.input?.questions||[]}},onConnectorConsentSubmit(e){this.$emit(`respondConnectorConsent`,e)},onConnectorConsentAuthorize(e){this.$emit(`authorizeConnector`,e)},consentPayloadFromBlock(e){return e.pending_consent_request??null},onActionConfirmationSubmit(e,t){this.$emit(`respondActionConfirmation`,{tool_use_id:e.tool_id||``,result:t})},actionConfirmationPayloadFromBlock(e){return e.pending_action_confirmation??null}}}),Fr=[`role`],Ir={class:`author`},Lr={key:0,class:`main`},Rr={initial:{opacity:0,y:5},enter:{opacity:1,y:0,scale:1},delay:300,duration:400,layout:!0,transition:{enter:{delay:.3,duration:.5},layout:{duration:.4,easing:`ease-in-out`}},class:`content`},zr={key:0,class:`message-content`},Br={key:1},Vr={key:1,class:`whitespace-pre-wrap break-words w-fit max-w-full py-1`},Hr={key:2},Ur=[`src`],Wr={key:2},Gr={key:1,class:`whitespace-pre-wrap break-words w-fit max-w-full py-1`},Kr={key:1,class:`edits`},qr={class:`flex justify-end`},Jr={initial:{opacity:0,y:5},enter:{opacity:1,y:0,scale:1},delay:300,duration:400,layout:!0,transition:{enter:{delay:.3,duration:.5},layout:{duration:.4,easing:`ease-in-out`}},class:`operations`},Yr={key:1,class:`error-card`},Xr={class:`error-content`},Zr={class:`error-text`};function Qr(d,m,v,b,x,S){let C=u(`el-image`),w=u(`thinking-block`),T=u(`markdown-renderer`),ee=u(`file-preview`),te=u(`tool-activity`),E=u(`browser-tool-activity`),D=u(`ask-user-question-card`),O=u(`connector-consent-card`),k=u(`action-confirmation-card`),A=u(`entity-card`),j=u(`el-input`),M=u(`el-button`),ne=u(`answering-mark`),N=u(`edit-message`),P=u(`copy-to-clipboard`),re=u(`restart-to-generate`),F=u(`report-button`),I=u(`error-icon`),L=g(`motion`);return y(),s(`div`,{class:n({message:!0,[d.message.role]:!0}),role:d.message.role},[e(`div`,Ir,[d.message.role===`assistant`?(y(),p(C,{key:0,src:d.modelGroup?.icon,fit:`cover`,class:`avatar`},null,8,[`src`])):o(``,!0)]),d.errorText?(y(),s(`div`,Yr,[e(`div`,Xr,[a(I,{class:`error-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,Zr,i(d.errorText),1)]),d.showBuyMore&&!d.readonly?(y(),p(M,{key:0,round:``,type:`primary`,class:`btn-topup`,size:`small`,onClick:d.onBuyMore},{default:h(()=>[r(i(d.$t(`common.button.buyMore`)),1)]),_:1},8,[`onClick`])):o(``,!0)])):(y(),s(`div`,Lr,[f((y(),s(`div`,Rr,[d.isEditing?(y(),s(`div`,Kr,[a(j,{modelValue:d.questionValue,"onUpdate:modelValue":m[2]||=e=>d.questionValue=e,type:`textarea`,class:`mb-2`,onKeydown:c(t(d.onEditEnterKey,[`exact`]),[`enter`])},null,8,[`modelValue`,`onKeydown`]),e(`div`,qr,[a(M,{round:``,onClick:d.cancelEdit},{default:h(()=>[r(i(d.$t(`common.button.cancel`)),1)]),_:1},8,[`onClick`]),a(M,{type:`primary`,class:`btn-confirm`,round:``,onClick:d.onEdit},{default:h(()=>[r(i(d.$t(`common.button.confirm`)),1)]),_:1},8,[`onClick`])])])):(y(),s(`div`,zr,[d.message.role===`assistant`&&d.message.thinking?(y(),p(w,{key:0,content:d.message.thinking,done:d.message.state===d.messageState.FINISHED||d.message.state===d.messageState.FAILED},null,8,[`content`,`done`])):o(``,!0),Array.isArray(d.message.content)?(y(),s(`div`,Hr,[(y(!0),s(l,null,_(d.message.content,(e,t)=>(y(),s(`div`,{key:t},[e.type===`image_url`?(y(),s(`img`,{key:0,src:typeof e?.image_url==`string`?e.image_url:e.image_url?.url,fit:`cover`,class:`image`},null,8,Ur)):o(``,!0),e.file_url?(y(),p(ee,{key:1,name:e.name||(typeof e?.file_url==`string`?e.file_url:e.file_url?.url),percentage:0,closable:!1,class:`mt-2`},null,8,[`name`])):o(``,!0),e.type===`text`?(y(),s(`div`,Wr,[d.message.role===`assistant`?(y(),p(T,{key:0,content:e.text,citations:d.message.citations},null,8,[`content`,`citations`])):(y(),s(`pre`,Gr,i(e.text?.trim()),1))])):o(``,!0),e.type===`tool_use`&&e.execution!==`browser`&&!(e.tool_name===`ask_user_question`&&(e.status===`awaiting_input`||e.status===`done`))&&!(e.tool_name===`request_user_consent`&&(e.status===`awaiting_input`||e.status===`done`))?(y(),p(te,{key:3,item:e},null,8,[`item`])):o(``,!0),e.type===`tool_use`&&e.execution===`browser`?(y(),p(E,{key:4,item:e,onStopSession:m[0]||=e=>d.$emit(`stopBrowserSession`,e),onRecovery:m[1]||=e=>d.$emit(`browserRecovery`,e)},null,8,[`item`])):o(``,!0),e.type===`tool_use`&&e.tool_name===`ask_user_question`&&e.status===`awaiting_input`&&e.pending_question?(y(),p(D,{key:5,"tool-use-id":e.tool_id||``,payload:e.pending_question,collapsed:!1,onSubmit:d.onAskUserQuestionSubmit,onSkip:d.onAskUserQuestionSkip},null,8,[`tool-use-id`,`payload`,`onSubmit`,`onSkip`])):o(``,!0),e.type===`tool_use`&&e.tool_name===`ask_user_question`&&e.status===`done`?(y(),p(D,{key:6,"tool-use-id":e.tool_id||``,payload:d.askUserQuestionPayloadFromBlock(e),collapsed:!0,"previous-output":e.output||``},null,8,[`tool-use-id`,`payload`,`previous-output`])):o(``,!0),e.type===`tool_use`&&e.tool_name===`request_user_consent`&&e.status===`awaiting_input`&&e.pending_consent_request?(y(),p(O,{key:7,"tool-use-id":e.tool_id||``,payload:e.pending_consent_request,resolved:!1,onSubmit:d.onConnectorConsentSubmit,onAuthorize:d.onConnectorConsentAuthorize},null,8,[`tool-use-id`,`payload`,`onSubmit`,`onAuthorize`])):o(``,!0),e.type===`tool_use`&&e.tool_name===`request_user_consent`&&e.status===`done`&&d.consentPayloadFromBlock(e)?(y(),p(O,{key:8,"tool-use-id":e.tool_id||``,payload:d.consentPayloadFromBlock(e),resolved:!0,"previous-output":e.output||``},null,8,[`tool-use-id`,`payload`,`previous-output`])):o(``,!0),e.type===`tool_use`&&e.tool_name===`request_action_confirmation`&&e.status===`awaiting_input`&&e.pending_action_confirmation?(y(),p(k,{key:9,payload:e.pending_action_confirmation,resolved:!1,onSubmit:t=>d.onActionConfirmationSubmit(e,t)},null,8,[`payload`,`onSubmit`])):o(``,!0),e.type===`tool_use`&&e.tool_name===`request_action_confirmation`&&e.status===`done`&&d.actionConfirmationPayloadFromBlock(e)?(y(),p(k,{key:10,payload:d.actionConfirmationPayloadFromBlock(e),resolved:!0,"previous-output":e.output||``},null,8,[`payload`,`previous-output`])):o(``,!0),e.type===`card`&&e.card?(y(),p(A,{key:11,card:e.card},null,8,[`card`])):o(``,!0)]))),128))])):(y(),s(`div`,Br,[d.message.role===`assistant`?(y(),p(T,{key:0,content:d.message?.content,citations:d.message.citations},null,8,[`content`,`citations`])):(y(),s(`pre`,Vr,i(d.message.content),1))]))])),d.message.state===d.messageState.PENDING?(y(),p(ne,{key:2})):o(``,!0)])),[[L]]),f((y(),s(`div`,Jr,[!d.readonly&&d.message.role===`user`&&!d.isEditing&&!Array.isArray(d.message.content)?(y(),p(N,{key:0,class:`btn-edit`,onClick:d.startEditing},null,8,[`onClick`])):o(``,!0),d.copyableText&&d.message.state!==d.messageState.PENDING&&d.message.state!==d.messageState.ANSWERING?(y(),p(P,{key:1,content:d.copyableText,class:`btn-copy`},null,8,[`content`])):o(``,!0),!d.readonly&&(d.message.state===d.messageState.FINISHED||d.message.state===d.messageState.FAILED)&&d.message.role===`assistant`&&d.message===d.messages[d.messages.length-1]?(y(),p(re,{key:2,class:`btn-restart`,messages:d.messages,onRestart:d.onRestart},null,8,[`messages`,`onRestart`])):o(``,!0),d.message.role===`assistant`&&d.message.state!==d.messageState.PENDING&&d.message.state!==d.messageState.ANSWERING?(y(),p(F,{key:3,class:`btn-report`,service:`chat`,snapshot:{answer:d.copyableText}},null,8,[`snapshot`])):o(``,!0)])),[[L]])]))],10,Fr)}var $r=V(Pr,[[`render`,Qr],[`__scopeId`,`data-v-59358c5d`]]);export{Re as a,Be as i,Ln as n,q as r,$r as t};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,C as t,Gt as n,I as r,Jt as i,L as a,M as o,N as s,T as c,at as l,j as u,mt as d,rt as f,tt as p,z as m}from"./vendor-chart-Dw-P17PN.js";import{F as h}from"./icon-CDmWyIgD.js";import{p as g}from"./models-yTQ4rqqP.js";import{t as _}from"./chart-no-axes-combined-CQUeJcAm.js";import{t as v}from"./check-ClRF_Odp.js";import{t as y}from"./coins-BTAlPjXc.js";import{t as b}from"./wallet-BU45j_Ox.js";import{$ as x,En as S,O as C,Pi as w,Ti as T,W as E,fi as D,hi as O}from"./index-z6KXKq9i.js";import{t as k}from"./CopyToClipboard-kEHSjRrJ.js";var A=m({name:`ApplicationInfo`,components:{AnalyticsIcon:_,ConfirmIcon:v,CreditsIcon:y,ElButton:w,ElIcon:h,CopyToClipboard:k,WalletIcon:b},props:{application:{type:Object,required:!0},showType:{type:Boolean,default:!1},showId:{type:Boolean,default:!1}},emits:[`buy`,`usage`],computed:{showPayment(){return S(this.$store.getters.site)?!1:!D()||this.application?.scope===`Global`?!0:(this.application?.packages||[]).some(e=>e?.metadata?.apple_product_id)},remainingAmountText(){let e=Number(this.application?.remaining_amount??0);return!Number.isFinite(e)||e<0?`0.00`:e.toFixed(2)}}}),j={class:`flex flex-col min-w-0`},M={key:0,class:`app-id-row`},N={class:`icon !mb-0 flex-shrink-0`},P={class:`app-id-line`},F={class:`app-id-label`},I={class:`app-id-value`},L={key:1,class:`icon`},R={class:`text-left`},z={class:`description`},ee={key:0},B={key:1},V={class:`value`},H={class:`description2`},U={key:0},W={key:1},G={class:`actions`};function K(n,c,f,m,h,g){let _=l(`confirm-icon`),v=l(`el-icon`),y=l(`wallet-icon`),b=l(`copy-to-clipboard`),x=l(`el-tag`),S=l(`analytics-icon`),C=l(`el-button`),w=l(`credits-icon`);return p(),s(`div`,null,[e(`div`,j,[a(v,{class:`check`},{default:d(()=>[a(_,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1}),n.showId?(p(),s(`div`,M,[e(`div`,N,[a(y,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),e(`div`,P,[e(`span`,F,i(n.$t(`application.field.id`))+`:`,1),e(`span`,I,i(n.application.id),1),n.application.id?(p(),u(b,{key:0,content:n.application.id,class:`copy-small`},null,8,[`content`])):o(``,!0)])])):(p(),s(`div`,L,[a(y,{size:`1em`,"aria-hidden":`true`,focusable:`false`})])),e(`div`,R,[e(`p`,z,[n.application.service?(p(),s(`span`,B,i(n.$t(`application.title.applicationBalance`,{service:n.application.service?.title})),1)):(p(),s(`span`,ee,i(n.$t(`application.title.globalBalance`)),1)),n.application.role===`grantee`?(p(),u(x,{key:2,class:`shared-badge`,size:`small`,type:`warning`,effect:`dark`,round:``},{default:d(()=>[r(i(n.$t(`application.badge.shared`)),1)]),_:1})):o(``,!0)]),e(`p`,V,i(n.remainingAmountText)+` `+i(n.$t(`service.unit.`+(n.application?.service?.unit||`credit`)+`s`)),1),e(`p`,H,[n.application.type===`Period`?(p(),s(`span`,U,i(n.$t(`application.field.expiredAt`))+`: `+i(n.$dayjs.format(n.application.expired_at)),1)):(p(),s(`span`,W,i(n.$t(`application.message.neverExpire`)),1))])])]),e(`div`,G,[a(C,{size:`small`,round:``,onClick:c[0]||=t(e=>n.$emit(`usage`,n.application),[`stop`])},{default:d(()=>[a(S,{class:`mr-1 text-[11px]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(n.$t(`application.button.usage`)),1)]),_:1}),n.showPayment?(p(),u(C,{key:0,type:`primary`,round:``,size:`small`,onClick:c[1]||=t(e=>n.$emit(`buy`,n.application),[`stop`])},{default:d(()=>[a(w,{class:`mr-1 text-[11px]`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),r(` `+i(n.$t(`application.button.buyMore`)),1)]),_:1})):o(``,!0)])])}var q=m({name:`ApplicationStatus`,components:{WalletIcon:b,ElDialog:T,ApplicationInfo:C(A,[[`render`,K],[`__scopeId`,`data-v-19146d4c`]])},props:{application:{type:Object,required:!0},applications:{type:Array,default:void 0},service:{type:Object,required:!0}},emits:[`select`],data(){return{visible:!1,applicationType:g}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user},balanceAmount(){return Number(this.application?.remaining_amount??0)},balanceUnit(){let e=`service.unit.${this.application?.service?.unit||`credit`}`+(this.balanceAmount===1?``:`s`);return this.$t(e)},balanceText(){let e=this.balanceAmount;return Number.isFinite(e)?e>=1e3?Math.round(e).toLocaleString():e>=100?e.toFixed(1):e.toFixed(2):`0`},balanceTitle(){return`${this.balanceText} ${this.balanceUnit}`}},methods:{onGoUsage(e){let t={name:x,query:{application_id:e.id}};if(O()){this.visible=!1,this.$router.push(t);return}window.open(this.$router.resolve(t).href,`_blank`)},onBuyMore(e){let t={name:E,params:{id:e.id}};if(O()){this.visible=!1,this.$router.push(t);return}window.open(this.$router.resolve(t).href,`_blank`)},onSelectApplication(e){this.$emit(`select`,e)}}}),J={class:`status`},Y={key:0},X={class:`text-center mb-4`},Z={class:`flex flex-col gap-4 mb-6 overflow-y-auto`},Q=[`title`],$={class:`entry-amount`},te={class:`entry-unit`};function ne(t,r,m,h,g,_){let v=l(`application-info`),y=l(`el-dialog`),b=l(`wallet-icon`);return p(),s(`div`,J,[a(y,{modelValue:t.visible,"onUpdate:modelValue":r[0]||=e=>t.visible=e,class:`mt-12`,width:`450px`},{default:d(()=>[t.application?(p(),s(`div`,Y,[e(`p`,X,i(t.$t(`application.message.applicationSelection`)),1),e(`div`,Z,[(p(!0),s(c,null,f(t.applications,(e,r)=>(p(),u(v,{key:r,class:n({item:!0,active:t.application?.id===e.id}),application:e,"show-id":``,onClick:n=>t.onSelectApplication(e),onUsage:n=>t.onGoUsage(e),onBuy:n=>t.onBuyMore(e)},null,8,[`class`,`application`,`onClick`,`onUsage`,`onBuy`]))),128))])])):o(``,!0)]),_:1},8,[`modelValue`]),e(`button`,{type:`button`,class:`entry`,title:t.balanceTitle,onClick:r[1]||=e=>t.visible=!0},[a(b,{class:`entry-icon`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,$,i(t.balanceText),1),e(`span`,te,i(t.balanceUnit),1)],8,Q)])}var re=C(q,[[`render`,ne],[`__scopeId`,`data-v-b2f8b2d1`]]);export{re as t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Zi as e}from"./index-z6KXKq9i.js";var t=e(`PushNotifications`,{});export{t as PushNotifications};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]);export{t};
@@ -1 +0,0 @@
1
- import{yi as e}from"./index-z6KXKq9i.js";var t=e(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]);export{t};