@acedatacloud/nexior 3.292.2 → 3.292.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.
- package/dist/assets/{ApiCodeButton-ClN3H3w1.js → ApiCodeButton-C0YHo-n7.js} +1 -1
- package/dist/assets/{AskUserQuestionCard-BjQ1787D.js → AskUserQuestionCard-qCTNo-y-.js} +2 -2
- package/dist/assets/{Auth-D_v_93EM.js → Auth-BHQ18Teu.js} +1 -1
- package/dist/assets/{Bare-BmKhNUmV.js → Bare-CATvybam.js} +1 -1
- package/dist/assets/{BotPlaceholder-lV3Aa152.js → BotPlaceholder-pAjVBF03.js} +1 -1
- package/dist/assets/{BottomFooter-CtrBQlnG.js → BottomFooter-BOADzVjk.js} +1 -1
- package/dist/assets/{Callback-Clz6SyOX.js → Callback-CafC0SlM.js} +1 -1
- package/dist/assets/{CodeSnippet-B2RCg9tg.js → CodeSnippet-8MWGEyHs.js} +1 -1
- package/dist/assets/{Console-BQCydo34.js → Console-Dbmk_hTe.js} +1 -1
- package/dist/assets/{Consumption-CGU0vcV2.js → Consumption-1JavGBES.js} +1 -1
- package/dist/assets/{Conversation-C0OkeWDR.js → Conversation-C8wmyanr.js} +2 -2
- package/dist/assets/{CopyToClipboard-CO1AynIe.js → CopyToClipboard-Bh2hyhZh.js} +1 -1
- package/dist/assets/Detail-BXfdwXp2.js +2 -0
- package/dist/assets/{Extra-DJdtE-MF.js → Extra-DoOGRG8W.js} +1 -1
- package/dist/assets/{FilePreview-C8P8T7Ei.js → FilePreview-BLrGoW1W.js} +1 -1
- package/dist/assets/{Hailuo-BHuriP3C.js → Hailuo-CMpxQQQW.js} +1 -1
- package/dist/assets/{History-BippF194.js → History-By91myqG.js} +1 -1
- package/dist/assets/{ImagePreview-CUTFSGLq.js → ImagePreview-CHeNTOsy.js} +1 -1
- package/dist/assets/{ImageWrapper-CMBvFhTl.js → ImageWrapper-BAjBt4i4.js} +1 -1
- package/dist/assets/Index-9zB-Ljr5.js +1 -0
- package/dist/assets/{Index-5Q5UpArP.js → Index-B-RrI5fk.js} +1 -1
- package/dist/assets/{Index-DelN88D4.js → Index-B8aQKYE8.js} +1 -1
- package/dist/assets/{Index-BM9pei4z.js → Index-BDmZnaVn.js} +1 -1
- package/dist/assets/Index-BH740XJK.js +1 -0
- package/dist/assets/{Index-mtTt--uN.js → Index-BJ_dl7Xt.js} +1 -1
- package/dist/assets/{Index-lwbeoRTh.js → Index-BQqB0E2M.js} +1 -1
- package/dist/assets/{Index-DQ5ovI7T.js → Index-BTGyESMt.js} +1 -1
- package/dist/assets/{Index-BgEcehqn.js → Index-BTY0jKZW.js} +1 -1
- package/dist/assets/{Index-brWELMmP.js → Index-Bm89lAi5.js} +1 -1
- package/dist/assets/{Index-Dv0U5sbv.js → Index-CFXdTydj.js} +1 -1
- package/dist/assets/{Index-jbQpDn9n.js → Index-CIip8wk1.js} +1 -1
- package/dist/assets/{Index-BXgzPmSD.js → Index-C_2B8X_U.js} +1 -1
- package/dist/assets/Index-CjrIqAAW.js +1 -0
- package/dist/assets/{Index-D0-itlKh.js → Index-CriPxQSY.js} +1 -1
- package/dist/assets/{Index-Bq4dlIl6.js → Index-DM-SwG-u.js} +1 -1
- package/dist/assets/Index-DZ85JVz3.js +1 -0
- package/dist/assets/{Index-C2uZ0lDR.js → Index-DZ8c70k3.js} +1 -1
- package/dist/assets/Index-DgftypeQ.js +1 -0
- package/dist/assets/{Index-DV00ZNF9.js → Index-Djj_TWfP.js} +1 -1
- package/dist/assets/Index-Dk3W159a.js +1 -0
- package/dist/assets/{Index-BeoO8vWg.js → Index-DoIdhFne.js} +2 -2
- package/dist/assets/{Index-BomKfPSW.js → Index-Dr-J67fJ.js} +1 -1
- package/dist/assets/{Index-CNkMi2s4.js → Index-Dtiwg-7o.js} +1 -1
- package/dist/assets/{Index-CxRX5TQe.js → Index-DvfZq1ly.js} +1 -1
- package/dist/assets/{Index-yBhTfrdR.js → Index-ERxzPVmU.js} +1 -1
- package/dist/assets/{Index-BABMIYLh.js → Index-Khxwau5X.js} +1 -1
- package/dist/assets/{Index-Bn5q5mwP.js → Index-lkqMV1mH.js} +1 -1
- package/dist/assets/{Invitees-DbXgjW_x.js → Invitees-C71Mi_Wh.js} +1 -1
- package/dist/assets/{List-BwJjlc6c.js → List-BjN5IBgS.js} +1 -1
- package/dist/assets/{List-hiAU-ZR3.js → List-ComUlIB4.js} +1 -1
- package/dist/assets/{List-DiuMG4pZ.js → List-Dqu0RFm-.js} +1 -1
- package/dist/assets/{LocalTools-CqyeENAa.js → LocalTools-COOKpJ0p.js} +1 -1
- package/dist/assets/{LocalTools-CGnMKjs-.js → LocalTools-GDug_ymy.js} +1 -1
- package/dist/assets/{Main-CiQI1zDU.js → Main-DN-eMrbb.js} +1 -1
- package/dist/assets/Model-DN9K8pi1.js +1 -0
- package/dist/assets/{Navigator-D2rOf0EJ.js → Navigator-C0r9QnUM.js} +4 -4
- package/dist/assets/{NoTasks-tgfYxa6S.js → NoTasks-Col9y1R2.js} +1 -1
- package/dist/assets/{NotFound-CWEw9oBF.js → NotFound-ARennKeL.js} +1 -1
- package/dist/assets/{Pagination-DVguRxDD.js → Pagination-bTh0y7Ey.js} +1 -1
- package/dist/assets/{Pay-C73IIA8S.js → Pay-B97DIG8Q.js} +1 -1
- package/dist/assets/{Player-D0ZFXu3H.js → Player-DQiIJf1Z.js} +1 -1
- package/dist/assets/{PromptTextarea-BRYoZn2E.js → PromptTextarea--Z5Zwd35.js} +1 -1
- package/dist/assets/{RealtimeCall-whTISuu5.js → RealtimeCall-CQkZ8GV-.js} +1 -1
- package/dist/assets/{ScheduledTasks-BouayqA-.js → ScheduledTasks-C98-UUbA.js} +2 -2
- package/dist/assets/{Status-59nA7jct.js → Status-CxG_S9k0.js} +1 -1
- package/dist/assets/Subscribe-D4vlOBtE.js +1 -0
- package/dist/assets/{TabSwitcher-DDxDlk0E.js → TabSwitcher-CPI0F7wT.js} +1 -1
- package/dist/assets/Tts-DJNc_6W_.js +1 -0
- package/dist/assets/{VideoPlayer-nLp9Fue2.js → VideoPlayer-C40ST3y6.js} +1 -1
- package/dist/assets/{avatar-BO4cdVRL.js → avatar-D5RzgvOQ.js} +1 -1
- package/dist/assets/{basic-CIX5okPv.js → basic-AUILPWFH.js} +1 -1
- package/dist/assets/{chat-DZzgMLyg.js → chat-VzHGGgiF.js} +1 -1
- package/dist/assets/{codingBridge-D8kb3z5C.js → codingBridge-LmbavdYO.js} +2 -2
- package/dist/assets/{codingBridgeNotify-rQPtfAnV.js → codingBridgeNotify-BFHNPHrM.js} +2 -2
- package/dist/assets/{collapse-RRpNyCZs.js → collapse-CelUi2zd.js} +1 -1
- package/dist/assets/{createTaskActions-DfEAWHBQ.js → createTaskActions-CkczSpy5.js} +1 -1
- package/dist/assets/{date-picker-DxBToOLW.js → date-picker-C34MfX2c.js} +1 -1
- package/dist/assets/{digitalhuman-C4thWZqP.js → digitalhuman-DeMvZOYZ.js} +1 -1
- package/dist/assets/{dropdown-ByF3hQpL.js → dropdown-DLF5MgPG.js} +1 -1
- package/dist/assets/{esm-DbPVAI-g.js → esm-BEXb6_Up.js} +2 -2
- package/dist/assets/{esm-DaoSdi91.js → esm-BjqjU1ZL.js} +1 -1
- package/dist/assets/{esm-5zom4rJS.js → esm-BjxoPnOR.js} +3 -3
- package/dist/assets/esm-CpsCsu_5.js +1 -0
- package/dist/assets/{esm-D5L4Mf7R.js → esm-D1jxoXbW.js} +1 -1
- package/dist/assets/{esm-BYixlWnc.js → esm-Ujoge3K2.js} +1 -1
- package/dist/assets/{esm--jvPJl8C.js → esm-bloKkVWG.js} +2 -2
- package/dist/assets/{fish-gNsopE0m.js → fish-DkmGqNdq.js} +1 -1
- package/dist/assets/{flux-CHoxp83h.js → flux-M8U2kSbi.js} +1 -1
- package/dist/assets/{grokvideo-DFhuj9Jg.js → grokvideo-nTCyTO6m.js} +1 -1
- package/dist/assets/{hailuo-DhW75Ou-.js → hailuo-C6y_kVKc.js} +1 -1
- package/dist/assets/{headshots-DuTVlkoD.js → headshots-DE8nCxfd.js} +1 -1
- package/dist/assets/{image-2Z64T0b4.js → image-BjWCwIEm.js} +1 -1
- package/dist/assets/{index-D-Qqijue.js → index-BlIMFWaC.js} +3 -3
- package/dist/assets/{index.browser.esm-DostSlsA.js → index.browser.esm-CktdRlD1.js} +1 -1
- package/dist/assets/{index.es-PNv_H_Xs.js → index.es-DYmYr4EW.js} +1 -1
- package/dist/assets/{input-number-2hM2c7pj.js → input-number-C8kITelF.js} +1 -1
- package/dist/assets/{kling-Cs7aXpb6.js → kling-sETQBh-t.js} +1 -1
- package/dist/assets/{luma-DDDYYbmL.js → luma-Buhp8_0n.js} +1 -1
- package/dist/assets/{maestro-DNnxEJTp.js → maestro-C8ZlscNr.js} +1 -1
- package/dist/assets/{midjourney-Cm8PkGG9.js → midjourney-B-I6izGm.js} +1 -1
- package/dist/assets/{nanobanana-DbABHNau.js → nanobanana-ZXTStWg7.js} +1 -1
- package/dist/assets/{openaiimage-DQGgyzbi.js → openaiimage-C8c2e_zZ.js} +1 -1
- package/dist/assets/{pagination-CuBmtmwA.js → pagination-D68vMmNy.js} +2 -2
- package/dist/assets/{pika-CphUmPS5.js → pika-CLNo9qQB.js} +1 -1
- package/dist/assets/{pixverse-53fVkn_k.js → pixverse-B7E9K5jR.js} +1 -1
- package/dist/assets/{popover-IXfiUgCO.js → popover-CFVk2uhc.js} +1 -1
- package/dist/assets/{producer-BFXuZiNU.js → producer-BTEfSsyU.js} +1 -1
- package/dist/assets/{qrart-BpxjacUm.js → qrart-DuSotYhM.js} +1 -1
- package/dist/assets/{realtime-BapBeQQj.js → realtime-CK9f7kXY.js} +1 -1
- package/dist/assets/{row-DIYqBnV-.js → row-GRmaBdt5.js} +1 -1
- package/dist/assets/{seedance-3ZvIzvDl.js → seedance-C_cTzbcQ.js} +1 -1
- package/dist/assets/{seedream-d0crZjTb.js → seedream-Nc88-xp9.js} +1 -1
- package/dist/assets/{select-D8-MrXlh.js → select-DGaj26tk.js} +1 -1
- package/dist/assets/{serp-DrqtA05w.js → serp-CTMJmo_E.js} +1 -1
- package/dist/assets/{slider-D-sIyihy.js → slider-wM0_imFc.js} +1 -1
- package/dist/assets/{solana-wallets-BD-91s3k.js → solana-wallets-BNtjz_8-.js} +2 -2
- package/dist/assets/{solana-wallets-vue-BN7vwDg-.js → solana-wallets-vue-BzlQjPRZ.js} +1 -1
- package/dist/assets/{sora-CpiAltQm.js → sora-ChU7PB4k.js} +1 -1
- package/dist/assets/{suno-Dn2Kc9PH.js → suno-Ba1TNaTD.js} +1 -1
- package/dist/assets/{switch-Bre-1sLo.js → switch-DlUukKGW.js} +1 -1
- package/dist/assets/{tabs-DeLDBcg4.js → tabs-CbB4SIp-.js} +1 -1
- package/dist/assets/{time-picker-CE-kZjBQ.js → time-picker-BrZzqFsz.js} +1 -1
- package/dist/assets/{upload-tclXtS3C.js → upload-hN1sgLI1.js} +1 -1
- package/dist/assets/{veo-DE11LP67.js → veo-Dlkyxg3k.js} +1 -1
- package/dist/assets/{wan-B9YWfRHo.js → wan-DYJNNuD2.js} +1 -1
- package/dist/assets/{web-Cx5H069d.js → web-CpbrzkyL.js} +1 -1
- package/dist/assets/{web-CgAZNso0.js → web-D7ggqTTW.js} +1 -1
- package/dist/assets/{web-BVYSZrrw.js → web-DDDRyI0n.js} +1 -1
- package/dist/assets/{web-CQKy79Ew.js → web-G1YX-tuy.js} +1 -1
- package/dist/assets/{web-DOodaFyR.js → web-tRwK9XMe.js} +1 -1
- package/dist/assets/{webextrator-D3OA0DWx.js → webextrator-BxNhus0d.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Detail-Dt1JZzWr.js +0 -2
- package/dist/assets/Index-BYNxAQvg.js +0 -1
- package/dist/assets/Index-CMyjWW8c.js +0 -1
- package/dist/assets/Index-CyhpX25F.js +0 -1
- package/dist/assets/Index-a8sgjhRD.js +0 -1
- package/dist/assets/Index-uzjkCQVY.js +0 -1
- package/dist/assets/Index-zwFk9SSc.js +0 -1
- package/dist/assets/Model-BpYhyxPg.js +0 -1
- package/dist/assets/Subscribe-DBwjymUV.js +0 -1
- package/dist/assets/Tts-yqxbQRvW.js +0 -1
- package/dist/assets/esm-BjcGM19K.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Ut as c,Vt as l,Wt as u,Z as d,b as f,dt as p,et as m,k as h,tt as g,ut as _,v}from"./vendor-chart-BJCvKk8-.js";import{t as y}from"./button-BydTr5nV.js";import{b,h as x,nt as S}from"./use-deprecated-B-NFNg3W.js";import{r as C,t as w}from"./select-D8-MrXlh.js";import{n as T,t as E}from"./tabs-DeLDBcg4.js";import{t as D}from"./upload-tclXtS3C.js";import{t as O}from"./tooltip-BxeH2Vts.js";import{t as k}from"./image-2Z64T0b4.js";import{t as A}from"./alert-CuX4SjQB.js";import{n as j,r as M}from"./radio-3Hz7h3DR.js";import{t as N}from"./drawer-R6pcaap2.js";import{n as P,t as F}from"./dropdown-ByF3hQpL.js";import{t as I}from"./input-number-2hM2c7pj.js";import{t as L}from"./slider-D-sIyihy.js";import{t as R}from"./switch-Bre-1sLo.js";import{gi as z,hi as B}from"./constants-MMMyjdpT.js";import{Bt as V,Dr as H,Er as U,Ht as W,Ir as G,Kr as K,Lt as ee,Nr as te,O as q,Or as ne,Rt as J,Yr as re,Zr as ie,qn as Y,zn as X,zt as ae}from"./index-D-Qqijue.js";import{t as Z}from"./index.es-PNv_H_Xs.js";import{t as oe}from"./CopyToClipboard-CO1AynIe.js";import{t as Q}from"./ImagePreview-CUTFSGLq.js";import{n as se}from"./taskDrawerMixin-DEgO_R5H.js";import{t as ce}from"./Consumption-CGU0vcV2.js";import{i as $,n as le,t as ue}from"./pagination-CuBmtmwA.js";import{t as de}from"./VideoPlayer-nLp9Fue2.js";import{t as fe}from"./ApiCodeButton-ClN3H3w1.js";import{t as pe}from"./BotPlaceholder-lV3Aa152.js";import{t as me}from"./NoTasks-tgfYxa6S.js";import{t as he}from"./PromptTextarea-BRYoZn2E.js";import{t as ge}from"./ImageWrapper-CMBvFhTl.js";var _e=r({name:`LayoutMidjourney`,components:{ElDrawer:N,ElButton:y,FontAwesomeIcon:Z},mixins:[se]}),ve={class:`main flex-1 h-full flex flex-row`},ye={class:`config w-[320px] flex-none h-full flex flex-col bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},be={class:`results flex-1 h-full flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function xe(e,r,i,a,s,c){let l=g(`font-awesome-icon`),u=g(`el-button`),f=g(`el-drawer`);return d(),t(`div`,ve,[n(`div`,ye,[m(e.$slots,`config`,{},void 0,!0)]),n(`div`,be,[m(e.$slots,`results`,{},void 0,!0)]),p(o(u,{circle:``,class:`menu`,onClick:r[0]||=t=>e.drawer=!0},{default:_(()=>[o(l,{icon:`fa-solid fa-magic`})]),_:1},512),[[v,!e.tasksEmpty]]),o(f,{modelValue:e.drawer,"onUpdate:modelValue":r[1]||=t=>e.drawer=t,direction:`ltr`,"with-header":!1,size:`350px`,class:`drawer`},{default:_(()=>[m(e.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var Se=q(_e,[[`render`,xe],[`__scopeId`,`data-v-689d2913`]]),Ce=r({name:`RatioSelector`,data(){return{options:[{value:`1:1`,label:`1:1`,width:20,height:20},{value:`4:3`,label:`4:3`,width:20,height:15},{value:`3:4`,label:`3:4`,width:15,height:20},{value:`16:9`,label:`16:9`,width:25,height:13},{value:`9:16`,label:`9:16`,width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){return this.$store.state.midjourney.config.ratio},set(e){console.debug(`set ratio`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,ratio:e})}}},mounted(){this.value||=`1:1`}}),we={class:`text-sm font-bold mb-2 block`},Te={class:`items`},Ee=[`onClick`],De={class:`name`};function Oe(r,i,a,o,f,p){return d(),t(`div`,null,[n(`span`,we,u(r.$t(`midjourney.name.ratio`)),1),n(`div`,Te,[(d(!0),t(s,null,e(r.options,(e,i)=>(d(),t(`div`,{key:i,class:l({active:r.active===i,item:!0}),onClick:t=>r.value=e.value},[n(`div`,{class:l([`preview`,e.label])},[n(`div`,{class:`rect`,style:c({width:e.width+`px`,height:e.height+`px`})},null,4)],2),n(`p`,De,u(e.label),1)],10,Ee))),128))])])}var ke=q(Ce,[[`render`,Oe],[`__scopeId`,`data-v-b1114c34`]]),Ae=!1,je=r({name:`AdvancedSelector`,components:{ElSwitch:R},computed:{value:{get(){return this.$store.state.midjourney.config.advanced},set(e){console.debug(`set advanced`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,advanced:e})}}},mounted(){this.value===void 0&&(this.value=Ae)}}),Me={class:`field`},Ne={class:`title`};function Pe(e,r,i,a,s,c){let l=g(`el-switch`);return d(),t(`div`,Me,[n(`h2`,Ne,u(e.$t(`midjourney.name.advanced`)),1),o(l,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`},null,8,[`modelValue`])])}var Fe=q(je,[[`render`,Pe],[`__scopeId`,`data-v-2d55fce2`]]),Ie=r({name:`LoopSelector`,components:{ElSwitch:R,InfoIcon:$},computed:{value:{get(){return this.$store.state.midjourney?.config?.loop},set(e){console.debug(`set loop`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney?.config,loop:e})}}},mounted(){this.value===void 0&&(this.value=!1)}}),Le={class:`relative`},Re={class:`flex justify-between`},ze={class:`flex justify-start items-center`},Be={class:`text-sm font-bold`},Ve={class:`flex justify-end items-center`};function He(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-switch`);return d(),t(`div`,Le,[n(`div`,Re,[n(`div`,ze,[n(`span`,Be,u(e.$t(`midjourney.name.loop`)),1),o(l,{content:e.$t(`midjourney.description.loop`)},null,8,[`content`])]),n(`div`,Ve,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`},null,8,[`modelValue`])])])])}var Ue=q(Ie,[[`render`,He]]),We=`8.1`,Ge=r({name:`VersionSelector`,components:{ElSelect:C,ElOption:w},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{value:`8.1`,label:`8.1`},{value:`8`,label:`8`},{value:`7`,label:`7`},{value:`6.1`,label:`6.1`},{value:`6.0`,label:`6.0`},{value:`5.2`,label:`5.2`},{value:`5.1`,label:`5.1`},{value:`5.0`,label:`5`},{value:`4`,label:`4`},{value:`3`,label:`3`},{value:`2`,label:`2`},{value:`1`,label:`1`}]}},computed:{value:{get(){return this.$store.state.midjourney.config.version},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,version:e})}}},mounted(){this.value||=We}}),Ke={class:`field`},qe={class:`text-sm font-bold`};function Je(r,i,c,l,f,p){let m=g(`el-option`),h=g(`el-select`);return d(),t(`div`,Ke,[n(`span`,qe,u(r.$t(`midjourney.name.version`)),1),o(h,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`midjourney.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Ye=q(Ge,[[`render`,Je],[`__scopeId`,`data-v-8e00777d`]]),Xe=r({name:`HdSelector`,components:{ElSwitch:R,ElTooltip:O,FontAwesomeIcon:Z},computed:{value:{get(){return this.$store.state.midjourney.config.hd||!1},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,hd:e})}}}}),Ze={class:`field`},Qe={class:`text-sm font-bold`};function $e(e,r,a,s,c,l){let f=g(`font-awesome-icon`),p=g(`el-tooltip`),m=g(`el-switch`);return d(),t(`div`,Ze,[n(`span`,Qe,[i(u(e.$t(`midjourney.name.hd`))+` `,1),o(p,{content:e.$t(`midjourney.description.hd`),placement:`top`},{default:_(()=>[o(f,{icon:`fa-solid fa-circle-info`,class:`info-icon`})]),_:1},8,[`content`])]),o(m,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t},null,8,[`modelValue`])])}var et=q(Xe,[[`render`,$e],[`__scopeId`,`data-v-871c894e`]]),tt=r({name:`ReferenceImage`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[V,J],emits:[`change`],data(){return{fileList:[],uploadUrl:G()+`/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(){K.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){K.error(this.$t(`midjourney.message.uploadStartImageError`))}}}),nt={class:`relative`},rt={class:`flex justify-between`},it={class:`flex justify-start items-center`},at={class:`text-sm font-bold`};function ot(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,nt,[n(`div`,rt,[n(`div`,it,[n(`span`,at,[i(u(e.$t(`midjourney.name.imageUrl`))+` `,1),r[1]||=n(`span`,{class:`text-red-500`,"aria-hidden":`true`},`*`,-1)]),o(f,{content:e.$t(`midjourney.description.imageUrl`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var st=q(tt,[[`render`,ot],[`__scopeId`,`data-v-0445850f`]]),ct=r({name:`EndImageUrlInput`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[V,J],emits:[`change`],data(){return{fileList:[],uploadUrl:G()+`/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(){K.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){K.error(this.$t(`midjourney.message.uploadEndImageError`))}}}),lt={class:`relative`},ut={class:`flex justify-between`},dt={class:`flex justify-start items-center`},ft={class:`text-sm font-bold`};function pt(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,lt,[n(`div`,ut,[n(`div`,dt,[n(`span`,ft,u(e.$t(`midjourney.name.endImageUrl`)),1),o(f,{content:e.$t(`midjourney.description.endImageUrl`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var mt=q(ct,[[`render`,pt],[`__scopeId`,`data-v-375309d2`]]),ht=r({name:`ReferenceImage`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[V,J],emits:[`change`],data(){return{fileList:[],uploadUrl:G()+`/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(){K.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){K.error(this.$t(`midjourney.message.uploadStartImageError`))}}}),gt={class:`relative`},_t={class:`flex justify-between`},vt={class:`flex justify-start items-center`},yt={class:`text-sm font-bold`};function bt(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,gt,[n(`div`,_t,[n(`div`,vt,[n(`span`,yt,u(e.$t(`midjourney.name.imageUrl2`)),1),o(f,{content:e.$t(`midjourney.description.imageUrl2`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var xt=q(ht,[[`render`,bt],[`__scopeId`,`data-v-6b4c9a65`]]),St=r({name:`StylizeSelector`,components:{ElSlider:L,InfoIcon:$,ElInputNumber:I},computed:{value:{get(){return this.$store.state.midjourney.config.stylize},set(e){console.debug(`set stylize`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,stylize:e})}}},mounted(){this.value||=100}}),Ct={class:`flex justify-between`},wt={class:`flex justify-start items-center`},Tt={class:`text-sm font-bold`},Et={class:`flex justify-end items-center`},Dt={class:`w-full px-2`};function Ot(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,Ct,[n(`div`,wt,[n(`span`,Tt,u(e.$t(`midjourney.name.stylize`)),1),o(l,{content:e.$t(`midjourney.description.stylize`)},null,8,[`content`])]),n(`div`,Et,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,Dt,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:100,step:1},null,8,[`modelValue`])])])}var kt=q(St,[[`render`,Ot]]),At=0,jt=r({name:`ChaosSelector`,components:{ElSlider:L,InfoIcon:$,ElInputNumber:I},computed:{value:{get(){return this.$store.state.midjourney.config.chaos},set(e){console.debug(`set quality`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,chaos:e})}}},mounted(){this.value||=At}}),Mt={class:`flex justify-between`},Nt={class:`flex justify-start items-center`},Pt={class:`text-sm font-bold`},Ft={class:`flex justify-end items-center`},It={class:`w-full px-2`};function Lt(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,Mt,[n(`div`,Nt,[n(`span`,Pt,u(e.$t(`midjourney.name.chaos`)),1),o(l,{content:e.$t(`midjourney.description.chaos`)},null,8,[`content`])]),n(`div`,Ft,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,It,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:100,step:1},null,8,[`modelValue`])])])}var Rt=q(jt,[[`render`,Lt],[`__scopeId`,`data-v-ed158765`]]),zt=r({name:`ModelSelector`,components:{ElImage:k,InfoIcon:$},data(){return{options:[{value:``,label:this.$t(`midjourney.model.general`),image:`https://cdn.acedata.cloud/ebvlwg.png`},{value:`niji 5`,label:this.$t(`midjourney.model.niji`),image:`https://cdn.acedata.cloud/j6v1m7.png`}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)},value:{get(){return this.$store.state.midjourney.config.model},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,model:e})}}},mounted(){this.value===void 0&&(this.value=``)}}),Bt={class:`flex justify-start items-center`},Vt={class:`text-sm font-bold`},Ht={class:`items`},Ut=[`onClick`],Wt={class:`name`};function Gt(r,i,a,c,f,p){let m=g(`info-icon`),h=g(`el-image`);return d(),t(`div`,null,[n(`div`,Bt,[n(`span`,Vt,u(r.$t(`midjourney.name.model`)),1),o(m,{content:r.$t(`midjourney.description.model`)},null,8,[`content`])]),n(`div`,Ht,[(d(!0),t(s,null,e(r.options,(e,i)=>(d(),t(`div`,{key:i,class:l({active:r.active===i,item:!0}),onClick:t=>r.value=e.value},[o(h,{src:e.image,fit:`cover`,class:`image`},null,8,[`src`]),n(`p`,Wt,u(e.label),1)],10,Ut))),128))])])}var Kt=q(zt,[[`render`,Gt],[`__scopeId`,`data-v-ebc6758e`]]),qt=r({name:`QualitySelector`,components:{ElRadioButton:j,ElRadioGroup:M},computed:{version(){return this.$store.state.midjourney.config.version||``},isV8(){return this.version===`8`||this.version===`8.1`},options(){return this.isV8?[{label:this.$t(`midjourney.button.standard`),value:`1`},{label:this.$t(`midjourney.button.ultra`),value:`4`}]:[{label:this.$t(`midjourney.button.low`),value:`.25`},{label:this.$t(`midjourney.button.medium`),value:`.5`},{label:this.$t(`midjourney.button.high`),value:`1`}]},value:{get(){return this.$store.state.midjourney.config.quality},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,quality:e})}}},watch:{isV8(e){(e&&this.value!==`1`&&this.value!==`4`||!e&&this.value===`4`)&&(this.value=`1`)}},mounted(){this.value||=`1`}}),Jt={class:`field`},Yt={class:`text-sm font-bold`};function Xt(r,c,l,f,p,m){let h=g(`el-radio-button`),v=g(`el-radio-group`);return d(),t(`div`,Jt,[n(`span`,Yt,u(r.$t(`midjourney.name.quality`)),1),o(v,{modelValue:r.value,"onUpdate:modelValue":c[0]||=e=>r.value=e,class:`quality`},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.value},{default:_(()=>[i(u(e.label),1)]),_:2},1032,[`label`]))),128))]),_:1},8,[`modelValue`])])}var Zt=q(qt,[[`render`,Xt],[`__scopeId`,`data-v-10b2574d`]]),Qt=r({name:`ResolutionSelector`,components:{ElSelect:C,ElOption:w},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{value:`480p`,label:`480p`},{value:`720p`,label:`720p`}]}},computed:{value:{get(){return this.$store.state.midjourney?.config?.resolution},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,resolution:e})}}},mounted(){this.value||=B}}),$t={class:`field`},en={class:`title font-bold`};function tn(r,i,c,l,f,p){let m=g(`el-option`),h=g(`el-select`);return d(),t(`div`,$t,[n(`h2`,en,u(r.$t(`midjourney.name.resolution`)),1),o(h,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`midjourney.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var nn=q(Qt,[[`render`,tn],[`__scopeId`,`data-v-12537f29`]]),rn=r({name:`ImageWeightSelector`,components:{ElSlider:L,InfoIcon:$},computed:{value:{get(){return this.$store.state.midjourney.config.iw},set(e){console.debug(`set iw`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,iw:e})}}},mounted(){this.value||=1}}),an={class:`flex justify-between`},on={class:`flex justify-start items-center`},sn={class:`text-sm font-bold`},cn={class:`flex justify-end items-center`},ln={class:`w-full px-2`};function un(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,an,[n(`div`,on,[n(`span`,sn,u(e.$t(`midjourney.name.imageWeight`)),1),o(l,{content:e.$t(`midjourney.description.imageWeight`)},null,8,[`content`])]),n(`div`,cn,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,ln,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:2,step:.1},null,8,[`modelValue`])])])}var dn=q(rn,[[`render`,un],[`__scopeId`,`data-v-b4bf1f1e`]]),fn=r({name:`WeirdSelector`,components:{ElSlider:L,ElInputNumber:I,InfoIcon:$},computed:{value:{get(){return this.$store.state.midjourney.config.weird},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,weird:e})}}},mounted(){this.value||=0}}),pn={class:`flex justify-between`},mn={class:`flex justify-start items-center`},hn={class:`text-sm font-bold`},gn={class:`flex justify-end items-center`},_n={class:`w-full px-2`};function vn(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`),p=g(`el-slider`);return d(),t(`div`,null,[n(`div`,pn,[n(`div`,mn,[n(`span`,hn,u(e.$t(`midjourney.name.weird`)),1),o(l,{content:e.$t(`midjourney.description.weird`)},null,8,[`content`])]),n(`div`,gn,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"controls-position":`right`},null,8,[`modelValue`])])]),n(`div`,_n,[o(p,{modelValue:e.value,"onUpdate:modelValue":r[1]||=t=>e.value=t,min:0,max:1e3,step:1},null,8,[`modelValue`])])])}var yn=q(fn,[[`render`,vn]]),bn=r({name:`VideoFromInput`,components:{VideoPlayer:de},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}}}),xn={class:`relative`},Sn={class:`flex mb-2`},Cn={class:`text-sm font-bold`};function wn(e,r,i,o,s,c){let l=g(`video-player`);return d(),t(`div`,xn,[n(`div`,Sn,[n(`span`,Cn,u(e.$t(`midjourney.name.extend`)),1)]),n(`div`,null,[e.config?.video_url?(d(),a(l,{key:0,src:e.config?.video_url,options:e.options},null,8,[`src`,`options`])):h(``,!0)])])}var Tn=q(bn,[[`render`,wn]]),En=``,Dn=r({name:`StyleSelector`,components:{ElSelect:C,ElOption:w},data(){return{}},computed:{model(){return this.$store.state.midjourney.config.model},options(){return this.model?.includes(`niji`)?[{value:`cute`,label:this.$t(`midjourney.style.cute`)},{value:`expressive`,label:this.$t(`midjourney.style.expressive`)},{value:`scenic`,label:this.$t(`midjourney.style.scenic`)},{value:`original`,label:this.$t(`midjourney.style.original`)}]:[{value:`raw`,label:this.$t(`midjourney.style.raw`)}]},value:{get(){return this.$store.state.midjourney.config.style},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,style:e})}}},watch:{model(){this.value=``}},mounted(){this.value||=En}}),On={class:`field`},kn={class:`text-sm font-bold title`},An={class:`float-left`},jn={class:`float-right`};function Mn(r,i,c,l,f,p){let m=g(`el-option`),h=g(`el-select`);return d(),t(`div`,On,[n(`span`,kn,u(r.$t(`midjourney.name.style`)),1),o(h,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`midjourney.placeholder.select`),clearable:``},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(m,{key:e.value,label:e.label,value:e.value},{default:_(()=>[n(`span`,An,u(e.label),1),n(`span`,jn,u(e.value),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Nn=q(Dn,[[`render`,Mn],[`__scopeId`,`data-v-00d50831`]]),Pn=r({name:`ElementsSelector`,components:{Check:b,ElTabs:T,ElTag:ie,ElIcon:S,ElTabPane:E,ElImage:k,ElDialog:re,ElButton:y,InfoIcon:$},emits:[`update:modelValue`],data(){return{tab:`styles`,choosing:!1,elements:{styles:{displayName:this.$t(`midjourney.styleCategory.styles`),items:[{image:`https://cdn.acedata.cloud/94ab394d-2fa3-4fe8-b3b3-41be85720fdb.png`,label:this.$t(`midjourney.styleTag.watercolour`),value:`Watercolour`},{image:`https://cdn.acedata.cloud/c3904cc5-3184-4639-be76-46f4860c1277.png`,label:this.$t(`midjourney.styleTag.oilPainting`),value:`Oil painting`},{image:`https://cdn.acedata.cloud/a0b764bb-13b1-419b-a8e8-855ee7ffc28a.png`,label:this.$t(`midjourney.styleTag.oldPhotograph`),value:`Old Photograph`},{image:`https://cdn.acedata.cloud/04f17d89-d913-4700-a422-99fa97fa79c9.png`,label:this.$t(`midjourney.styleTag.oneLineDrawing`),value:`One-line drawing`},{image:`https://cdn.acedata.cloud/281cfaac-ec59-4f5c-ab2b-f15d7481d752.png`,label:this.$t(`midjourney.styleTag.sketchDrawing`),value:`Sketch Drawing`},{image:`https://cdn.acedata.cloud/091d68cf-533c-4b76-90be-d5983b9ba80b.png`,label:this.$t(`midjourney.styleTag.gouache`),value:`Gouache`},{image:`https://cdn.acedata.cloud/a652c6b2-f0f6-4ef4-bf1b-9053e1daf85b.png`,label:this.$t(`midjourney.styleTag.filmStyle`),value:`Film style`},{image:`https://cdn.acedata.cloud/0aaafc79-9094-4a97-a07d-a01f88d276b1.png`,label:this.$t(`midjourney.styleTag.photorealistic`),value:`Photorealistic`},{image:`https://cdn.acedata.cloud/aa6489ad-8b40-46ae-83a6-f636772084e9.png`,label:this.$t(`midjourney.styleTag.logo`),value:`Logo`},{image:`https://cdn.acedata.cloud/e3e96805-6bcd-4608-b012-a8931e75662a.png`,label:this.$t(`midjourney.styleTag.cartoon`),value:`Cartoon`},{image:`https://cdn.acedata.cloud/11d53af4-ec2d-4256-8ddc-18105df57047.png`,label:this.$t(`midjourney.styleTag.marbleStatue`),value:`Marble Statue`},{image:`https://cdn.acedata.cloud/d0109889-d2a6-49ee-9f5c-49f2033966d8.png`,label:this.$t(`midjourney.styleTag.1800S`),value:`1800s`},{image:`https://cdn.acedata.cloud/86a3fb48-1ef0-422a-809a-580892aa0b9d.png`,label:this.$t(`midjourney.styleTag.1980S`),value:`1980s`},{image:`https://cdn.acedata.cloud/8b07aae4-b6f6-45ad-a556-7206b2945025.png`,label:this.$t(`midjourney.styleTag.isometricAnime`),value:`Isometric anime`,advanced:!0},{image:`https://cdn.acedata.cloud/3be49d3c-e431-4bce-b2bb-fc53f763b348.png`,label:this.$t(`midjourney.styleTag.analyticDrawing`),value:`Analytic drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/4d31c2dc-2a0b-4465-b3e8-bffd7c5fed25.png`,label:this.$t(`midjourney.styleTag.coloringBook`),value:`Coloring book`,advanced:!0},{image:`https://cdn.acedata.cloud/a19dde67-65b2-4923-8895-9e960cf050ee.png`,label:this.$t(`midjourney.styleTag.infographicDrawing`),value:`Infographic drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/f57db729-8692-4524-a373-b495d14ec77e.png`,label:this.$t(`midjourney.styleTag.doubleExposure`),value:`Double exposure`,advanced:!0},{image:`https://cdn.acedata.cloud/f8ff8db0-62dc-4414-b309-7fdf2021e45c.png`,label:this.$t(`midjourney.styleTag.diagrammaticDrawing`),value:`Diagrammatic drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/426447cf-dd10-4c91-b928-e7a3aa4c253a.png`,label:this.$t(`midjourney.styleTag.2DIllustration`),value:`2D illustration`,advanced:!0},{image:`https://cdn.acedata.cloud/25e0edfe-776f-4be0-9791-bb729cca81b3.png`,label:this.$t(`midjourney.styleTag.diagrammaticPortrait`),value:`Diagrammatic portrait`,advanced:!0},{image:`https://cdn.acedata.cloud/819c367c-ad03-4bf8-87a9-38ba53aa00f6.png`,label:this.$t(`midjourney.styleTag.pixelArt`),value:`Pixel art`,advanced:!0},{image:`https://cdn.acedata.cloud/2c4bbd7b-fc59-4f38-b844-762bf2366042.png`,label:this.$t(`midjourney.styleTag.darkFantasy`),value:`Dark fantasy`,advanced:!0},{image:`https://cdn.acedata.cloud/bd786eed-e3ee-4e3a-9473-acbd1ee4306c.png`,label:this.$t(`midjourney.styleTag.ukiyoEArt`),value:`Ukiyo-e art`,advanced:!0},{image:`https://cdn.acedata.cloud/1951d276-5502-428a-8694-1b311d8a5540.png`,label:this.$t(`midjourney.styleTag.paperQuilling`),value:`Paper quilling`,advanced:!0},{image:`https://cdn.acedata.cloud/4f9bcc9c-8b0e-47f4-87b9-4b4d78a8891a.png`,label:this.$t(`midjourney.styleTag.paperCutCraft`),value:`Paper cut craft`},{image:`https://cdn.acedata.cloud/4775f61f-446b-4312-b824-c91c6ecdb372.png`,label:this.$t(`midjourney.styleTag.iridescent`),value:`Iridescent`,advanced:!0},{image:`https://cdn.acedata.cloud/29fbc528-56f0-4eb0-a5a2-2312d53d55b4.png`,label:this.$t(`midjourney.styleTag.patchworkCollage`),value:`Patchwork collage`,advanced:!0},{image:`https://cdn.acedata.cloud/aa03b06a-fac8-45ec-830f-2a6e7ecab5c2.png`,label:this.$t(`midjourney.styleTag.opArt`),value:`Op art`,advanced:!0},{image:`https://cdn.acedata.cloud/29015f2a-3c9c-43c5-808a-23fbbb7bcf2f.png`,label:this.$t(`midjourney.styleTag.japaneseInk`),value:`Japanese ink`,advanced:!0},{image:`https://cdn.acedata.cloud/a65f8f7e-46a9-4ccf-8ee5-720d0c222471.png`,label:this.$t(`midjourney.styleTag.pastelDrawing`),value:`Pastel drawing`},{image:`https://cdn.acedata.cloud/a0cda2b1-b227-4230-8842-feab55edd6c7.png`,label:this.$t(`midjourney.styleTag.drippingArt`),value:`Dripping art`},{image:`https://cdn.acedata.cloud/c4aab372-ec55-4a7e-af94-4469f45c23c5.png`,label:this.$t(`midjourney.styleTag.tattooArt`),value:`Tattoo art`,advanced:!0},{image:`https://cdn.acedata.cloud/5040fbb2-6fa7-4e8f-86ac-f23c1c3e291c.png`,label:this.$t(`midjourney.styleTag.16Bit`),value:`16-Bit`,advanced:!0},{image:`https://cdn.acedata.cloud/b67249a1-36fa-443a-8b41-c167a5002e10.png`,label:this.$t(`midjourney.styleTag.8Bit`),value:`8-Bit`,advanced:!0},{image:`https://cdn.acedata.cloud/1c9600b4-6995-4dcb-b363-40ee38049151.png`,label:this.$t(`midjourney.styleTag.amber`),value:`Amber`,advanced:!0},{image:`https://cdn.acedata.cloud/e2d34946-3148-4f92-ad73-40f6f1208516.png`,label:this.$t(`midjourney.styleTag.anatomicalDrawing`),value:`Anatomical Drawing`,advanced:!0},{image:`https://cdn.acedata.cloud/19940f31-037e-4a8f-a71c-605e16ac9631.png`,label:this.$t(`midjourney.styleTag.ancient`),value:`Ancient`},{image:`https://cdn.acedata.cloud/b714b3d9-2f97-49fb-bf85-99a716bf0c78.png`,label:this.$t(`midjourney.styleTag.anime`),value:`Anime`,advanced:!0},{image:`https://cdn.acedata.cloud/d88c3080-cd54-4342-ac91-dac326ee1060.png`,label:this.$t(`midjourney.styleTag.arabic`),value:`Arabic`,advanced:!0},{image:`https://cdn.acedata.cloud/dc54b749-8e69-4252-9b90-fc1448fa9397.png`,label:this.$t(`midjourney.styleTag.blocky`),value:`Blocky`,advanced:!0},{image:`https://cdn.acedata.cloud/d8009295-2f4b-48d8-896e-46d0f5939923.png`,label:this.$t(`midjourney.styleTag.blueprint`),value:`Blueprint`,advanced:!0},{image:`https://cdn.acedata.cloud/5cc39277-16e0-46d6-9310-b0722479713b.png`,label:this.$t(`midjourney.styleTag.comicbook`),value:`Comicbook`,advanced:!0},{image:`https://cdn.acedata.cloud/b9900d01-20bc-408b-9637-779cc22c493c.png`,label:this.$t(`midjourney.styleTag.caribbean`),value:`Caribbean`,advanced:!0},{image:`https://cdn.acedata.cloud/fedabd4e-a9bb-4bb0-a4ec-8fc48bc74c78.png`,label:this.$t(`midjourney.styleTag.celestial`),value:`Celestial`,advanced:!0},{image:`https://cdn.acedata.cloud/00f1f097-1d72-435f-b47d-656f8e194dc2.png`,label:this.$t(`midjourney.styleTag.cellulose`),value:`Cellulose`,advanced:!0},{image:`https://cdn.acedata.cloud/a002bccf-6287-4b28-a5a7-c1cf5cb07734.png`,label:this.$t(`midjourney.styleTag.charcoalStyle`),value:`Charcoal Style`,advanced:!0},{image:`https://cdn.acedata.cloud/e218ab68-e430-4541-9501-02ee2d7aeda9.png`,label:this.$t(`midjourney.styleTag.chromatic`),value:`Chromatic`,advanced:!0},{image:`https://cdn.acedata.cloud/bd5a79d9-c73d-46c3-974f-932751ff8e46.png`,label:this.$t(`midjourney.styleTag.coral`),value:`Coral`,advanced:!0},{image:`https://cdn.acedata.cloud/58dd439c-cae7-434f-9a83-ac6aefd6e417.png`,label:this.$t(`midjourney.styleTag.conceptArt`),value:`Concept Art`,advanced:!0},{image:`https://cdn.acedata.cloud/767fe9f3-69d0-4e16-9060-41e6cf1b1fe1.png`,label:this.$t(`midjourney.styleTag.fibonacci`),value:`Fibonacci`,advanced:!0},{image:`https://cdn.acedata.cloud/4b78ebb1-5091-43d8-a020-88ffb3719edd.png`,label:this.$t(`midjourney.styleTag.cyberpunk`),value:`Cyberpunk`,advanced:!0},{image:`https://cdn.acedata.cloud/34d35d5c-a2e4-4e8e-aafd-3d3c08499389.png`,label:this.$t(`midjourney.styleTag.diabolic`),value:`Diabolic`,advanced:!0},{image:`https://cdn.acedata.cloud/8e29e2b4-4899-491d-a5dc-5ebbb1ff2758.png`,label:this.$t(`midjourney.styleTag.diffractionGrading`),value:`Diffraction Grading`,advanced:!0},{image:`https://cdn.acedata.cloud/996c6d93-94aa-438a-96d5-278e22e54f5f.png`,label:this.$t(`midjourney.styleTag.lightspeed`),value:`Lightspeed`,advanced:!0},{image:`https://cdn.acedata.cloud/57f3ad49-0940-44e2-a31a-a4872497bae7.png`,label:this.$t(`midjourney.styleTag.liquid`),value:`Liquid`,advanced:!0},{image:`https://cdn.acedata.cloud/a9ff43a9-dadf-4bbc-9a7a-72fd3908d39a.png`,label:this.$t(`midjourney.styleTag.dots`),value:`Dots`,advanced:!0},{image:`https://cdn.acedata.cloud/acff2bf9-1907-4a0f-be23-897c71caf60e.png`,label:this.$t(`midjourney.styleTag.dune`),value:`Dune`,advanced:!0},{image:`https://cdn.acedata.cloud/4a2abc45-ba65-4e2d-8399-8d44491c8a64.png`,label:this.$t(`midjourney.styleTag.drippingPaint`),value:`Dripping Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/7dc4e93f-07a8-45ec-9e8a-89c3f619fd40.png`,label:this.$t(`midjourney.styleTag.electronicCircuitry`),value:`Electronic Circuitry`,advanced:!0},{image:`https://cdn.acedata.cloud/cf502cba-ee64-41fd-a388-93f6357fc7cc.png`,label:this.$t(`midjourney.styleTag.electrical`),value:`Electrical`,advanced:!0},{image:`https://cdn.acedata.cloud/fd6a696b-3102-4301-8fce-5a7fd401231a.png`,label:this.$t(`midjourney.styleTag.futuristic`),value:`Futuristic`,advanced:!0},{image:`https://cdn.acedata.cloud/0fe8fca5-b3d9-4fab-b390-fff7c0f4f594.png`,label:this.$t(`midjourney.styleTag.etching`),value:`Etching`,advanced:!0},{image:`https://cdn.acedata.cloud/46577726-f0ab-4750-81c6-0d4d865ba4bd.png`,label:this.$t(`midjourney.styleTag.extraterrestrial`),value:`Extraterrestrial`,advanced:!0},{image:`https://cdn.acedata.cloud/faa06af4-9988-4e39-9f13-ecdd29e1e20a.png`,label:this.$t(`midjourney.styleTag.glitchart`),value:`Glitchart`,advanced:!0},{image:`https://cdn.acedata.cloud/4380f6af-aaeb-41fd-bcaf-2efadcc3e08f.png`,label:this.$t(`midjourney.styleTag.floral`),value:`Floral`,advanced:!0},{image:`https://cdn.acedata.cloud/096683c4-8e91-4ef0-8211-8a6dcef5298d.png`,label:this.$t(`midjourney.styleTag.fractal`),value:`Fractal`,advanced:!0},{image:`https://cdn.acedata.cloud/10ce713b-a5bc-400b-a0c8-bcec4f7e6548.png`,label:this.$t(`midjourney.styleTag.preHistoric`),value:`Pre Historic`,advanced:!0},{image:`https://cdn.acedata.cloud/6382ad4e-1818-4ab1-b493-10afdb43c196.png`,label:this.$t(`midjourney.styleTag.prokaryotic`),value:`Prokaryotic`,advanced:!0},{image:`https://cdn.acedata.cloud/48205fb3-e48b-4219-ad53-d307e1e686a7.png`,label:this.$t(`midjourney.styleTag.horror`),value:`Horror`,advanced:!0},{image:`https://cdn.acedata.cloud/d0567b20-8f93-4b16-a775-8ca0708a7a50.png`,label:this.$t(`midjourney.styleTag.iceAge`),value:`Ice Age`,advanced:!0},{image:`https://cdn.acedata.cloud/cc1455a5-c139-400d-8a54-121176f196e1.png`,label:this.$t(`midjourney.styleTag.jurassic`),value:`Jurassic`,advanced:!0},{image:`https://cdn.acedata.cloud/84e2bfe2-60bb-4323-936b-18dbb1c8cfa1.png`,label:this.$t(`midjourney.styleTag.knitted`),value:`Knitted`,advanced:!0},{image:`https://cdn.acedata.cloud/2e1ffddf-daa1-4e57-bc92-d16484ef8e34.png`,label:this.$t(`midjourney.styleTag.polka`),value:`Polka`,advanced:!0},{image:`https://cdn.acedata.cloud/9c2670df-3e39-45a7-ad76-ae17502d018f.png`,label:this.$t(`midjourney.styleTag.latex`),value:`Latex`,advanced:!0},{image:`https://cdn.acedata.cloud/d4de1735-235d-461d-b93f-2bf3c280ccfe.png`,label:this.$t(`midjourney.styleTag.pastel`),value:`Pastel`,advanced:!0},{image:`https://cdn.acedata.cloud/37f26555-f634-4964-8bac-ec8a955273d4.png`,label:this.$t(`midjourney.styleTag.mandala`),value:`Mandala`,advanced:!0},{image:`https://cdn.acedata.cloud/f62aa376-1378-45a6-abd0-71bc7bbe49c7.png`,label:this.$t(`midjourney.styleTag.molecular`),value:`Molecular`,advanced:!0},{image:`https://cdn.acedata.cloud/fc135428-1835-453d-afef-aaf72a7cfcbc.png`,label:this.$t(`midjourney.styleTag.merkaba`),value:`Merkaba`,advanced:!0},{image:`https://cdn.acedata.cloud/5caf594b-0f0c-455f-b8a8-8c15a189d0dc.png`,label:this.$t(`midjourney.styleTag.mitochondria`),value:`Mitochondria`,advanced:!0},{image:`https://cdn.acedata.cloud/088e3067-0abe-4f3d-bcb8-f6937e860d1e.png`,label:this.$t(`midjourney.styleTag.graffiti`),value:`Graffiti`,advanced:!0},{image:`https://cdn.acedata.cloud/06230561-916a-4bc5-ad85-9386cf27bf1c.png`,label:this.$t(`midjourney.styleTag.graphicNovel`),value:`Graphic Novel`,advanced:!0},{image:`https://cdn.acedata.cloud/e47f7931-d588-4c4a-87c8-3f7137e7f727.png`,label:this.$t(`midjourney.styleTag.multidimensional`),value:`Multidimensional`,advanced:!0},{image:`https://cdn.acedata.cloud/d2443c93-3227-4216-afd1-b86287ac5140.png`,label:this.$t(`midjourney.styleTag.nasa`),value:`NASA`,advanced:!0},{image:`https://cdn.acedata.cloud/a86a2f67-273c-4edf-9be9-ceecc983c93d.png`,label:this.$t(`midjourney.styleTag.nebula`),value:`Nebula`,advanced:!0},{image:`https://cdn.acedata.cloud/ad1e588c-5892-48ee-a7c2-103c2b4868fc.png`,label:this.$t(`midjourney.styleTag.neon`),value:`Neon`},{image:`https://cdn.acedata.cloud/5a133976-208e-460f-8296-a4ad19809490.png`,label:this.$t(`midjourney.styleTag.nuclear`),value:`Nuclear`,advanced:!0},{image:`https://cdn.acedata.cloud/c99f5082-314b-49e9-8875-b40319ed3cfc.png`,label:this.$t(`midjourney.styleTag.orbital`),value:`Orbital`,advanced:!0},{image:`https://cdn.acedata.cloud/63809059-6ae6-49ff-ad96-ed4ae45a2464.png`,label:this.$t(`midjourney.styleTag.rayTracing`),value:`Ray Tracing`,advanced:!0},{image:`https://cdn.acedata.cloud/cdcf0c05-e7ad-421e-b513-640bcc3d04cc.png`,label:this.$t(`midjourney.styleTag.realistic`),value:`Realistic`},{image:`https://cdn.acedata.cloud/019dc7be-b0e2-4da2-94d4-191226d58dbf.png`,label:this.$t(`midjourney.styleTag.renaissance`),value:`Renaissance`,advanced:!0},{image:`https://cdn.acedata.cloud/d46d3c03-a924-4a0f-b032-e8dbca6ad37e.png`,label:this.$t(`midjourney.styleTag.retro`),value:`Retro`},{image:`https://cdn.acedata.cloud/bc13e200-6865-474b-8fe4-cf0725cf3caf.png`,label:this.$t(`midjourney.styleTag.risograph`),value:`Risograph`,advanced:!0},{image:`https://cdn.acedata.cloud/f8533acc-807b-4f03-8f39-338ee6ff5d53.png`,label:this.$t(`midjourney.styleTag.origami`),value:`Origami`,advanced:!0},{image:`https://cdn.acedata.cloud/b0ff3593-aef3-4dd2-a5f4-548c6febb2e2.png`,label:this.$t(`midjourney.styleTag.ornamental`),value:`Ornamental`,advanced:!0},{image:`https://cdn.acedata.cloud/002c6a5d-b251-43bb-b713-d133f828c0a4.png`,label:this.$t(`midjourney.styleTag.space`),value:`Space`,advanced:!0},{image:`https://cdn.acedata.cloud/641327df-93cc-4746-a55e-667dbb8c1563.png`,label:this.$t(`midjourney.styleTag.splatterPaint`),value:`Splatter Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/42527f9e-6cf0-40a6-bc9b-361d2baf9bf9.png`,label:this.$t(`midjourney.styleTag.sprayPaint`),value:`Spray Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/98bf8e01-9dd8-434b-81df-77cfd3627243.png`,label:this.$t(`midjourney.styleTag.squiggles`),value:`Squiggles`,advanced:!0},{image:`https://cdn.acedata.cloud/26868352-5d9a-4bcc-9926-166927a2be35.png`,label:this.$t(`midjourney.styleTag.stitching`),value:`Stitching`,advanced:!0},{image:`https://cdn.acedata.cloud/23819218-bdbc-4746-a507-7664836a4f59.png`,label:this.$t(`midjourney.styleTag.veins`),value:`Veins`,advanced:!0},{image:`https://cdn.acedata.cloud/2fd3de3d-7211-4cce-b63b-a857d7621c72.png`,label:this.$t(`midjourney.styleTag.streetArt`),value:`Street Art`,advanced:!0},{image:`https://cdn.acedata.cloud/80422ede-79fb-4149-bd0a-85bf0ac75a3d.png`,label:this.$t(`midjourney.styleTag.surreal`),value:`Surreal`},{image:`https://cdn.acedata.cloud/94956306-55de-470b-8a2a-28354d0e556f.png`,label:this.$t(`midjourney.styleTag.symmetric`),value:`Symmetric`,advanced:!0},{image:`https://cdn.acedata.cloud/0098f2a0-b089-4e64-8a86-ffa137605087.png`,label:this.$t(`midjourney.styleTag.synthWave`),value:`Synth-wave`,advanced:!0},{image:`https://cdn.acedata.cloud/f50d33b2-9c91-4939-8f2d-7b5ce185d138.png`,label:this.$t(`midjourney.styleTag.technological`),value:`Technological`,advanced:!0},{image:`https://cdn.acedata.cloud/a446a6eb-444c-4073-8a8e-6f43e65491c2.png`,label:this.$t(`midjourney.styleTag.tron`),value:`Tron`,advanced:!0},{image:`https://cdn.acedata.cloud/8026ccad-aa11-4b0d-ad81-eb870a695a81.png`,label:this.$t(`midjourney.styleTag.tropical`),value:`Tropical`,advanced:!0},{image:`https://cdn.acedata.cloud/22c16c64-068c-470e-9b80-2849297aad9a.png`,label:this.$t(`midjourney.styleTag.ultraModern`),value:`Ultra Modern`},{image:`https://cdn.acedata.cloud/f67bd4b6-3f43-4da8-bdcb-67cd39cb38f9.png`,label:this.$t(`midjourney.styleTag.wormhole`),value:`Wormhole`,advanced:!0},{image:`https://cdn.acedata.cloud/2e2a1ca9-8791-41c6-9ff0-0ac21a13d1c5.png`,label:this.$t(`midjourney.styleTag.wrinkled`),value:`Wrinkled`,advanced:!0},{image:`https://cdn.acedata.cloud/3507c78d-a065-462c-a17c-fd5ed4677644.png`,label:this.$t(`midjourney.styleTag.volcanic`),value:`Volcanic`,advanced:!0},{image:`https://cdn.acedata.cloud/69263783-0610-45b0-9ec4-acac961da092.png`,label:this.$t(`midjourney.styleTag.wetPaint`),value:`Wet Paint`,advanced:!0},{image:`https://cdn.acedata.cloud/9022fc82-d6f7-47e2-90b1-ad96fbba5257.png`,label:this.$t(`midjourney.styleTag.wildWest`),value:`Wild West`,advanced:!0},{image:`https://cdn.acedata.cloud/23de882d-4e5d-40b5-9f00-d0573c443212.png`,label:this.$t(`midjourney.styleTag.wind`),value:`Wind`,advanced:!0},{image:`https://cdn.acedata.cloud/e3a58af1-79bc-48f3-871c-36472da2584b.png`,label:this.$t(`midjourney.styleTag.miniatureFaking`),value:`Miniature Faking`,advanced:!0}]},lighting:{displayName:this.$t(`midjourney.styleCategory.lighting`),items:[{image:`https://cdn.acedata.cloud/a4b9110f-e838-4c52-8ab8-f2637ea753df.png`,label:this.$t(`midjourney.styleTag.accentLighting`),value:`Accent Lighting`},{image:`https://cdn.acedata.cloud/c4c16a69-28d7-4b38-8ea2-3ce49d5c6b07.png`,label:this.$t(`midjourney.styleTag.backlight`),value:`Backlight`},{image:`https://cdn.acedata.cloud/7fd2cd5c-7671-4b40-85a0-230de9c37234.png`,label:this.$t(`midjourney.styleTag.blacklight`),value:`Blacklight`,advanced:!0},{image:`https://cdn.acedata.cloud/a08bff6e-8a0f-4d56-aa91-576f0a9921f2.png`,label:this.$t(`midjourney.styleTag.goldenHourLight`),value:`Golden hour light`,advanced:!0},{image:`https://cdn.acedata.cloud/3cd28696-493f-4b3e-9187-9d1a4c17e95b.png`,label:this.$t(`midjourney.styleTag.candlelight`),value:`Candlelight`},{image:`https://cdn.acedata.cloud/58c9a17e-f7d5-4481-abc8-9e9b66609a4d.png`,label:this.$t(`midjourney.styleTag.concertLighting`),value:`Concert Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/efb8893c-8bd6-4c7d-8e45-6e0626f69479.png`,label:this.$t(`midjourney.styleTag.crepuscularRays`),value:`Crepuscular Rays`,advanced:!0},{image:`https://cdn.acedata.cloud/27b90e83-09b0-4339-9b2c-48fe6fe45bdd.png`,label:this.$t(`midjourney.styleTag.directSunlight`),value:`Direct Sunlight`},{image:`https://cdn.acedata.cloud/d33cb17d-e2a5-4ca3-b68a-93904d2618d7.png`,label:this.$t(`midjourney.styleTag.dust`),value:`Dust`,advanced:!0},{image:`https://cdn.acedata.cloud/3af133d0-5a86-45a9-a16e-f23e6cc68b24.png`,label:this.$t(`midjourney.styleTag.studioLighting`),value:`Studio lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/6bc889b1-a563-4890-9117-7d3ded276caa.png`,label:this.$t(`midjourney.styleTag.rimLight`),value:`Rim light`,advanced:!0},{image:`https://cdn.acedata.cloud/d770265a-066b-413f-a405-a52d68e2f1c7.png`,label:this.$t(`midjourney.styleTag.volumetricLighting`),value:`Volumetric Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/7c83560a-6837-43b2-b296-f74db549accf.png`,label:this.$t(`midjourney.styleTag.fluorescent`),value:`Fluorescent`},{image:`https://cdn.acedata.cloud/6ffc8688-dfd0-4ede-a6bc-91bf8679adc9.png`,label:this.$t(`midjourney.styleTag.glowing`),value:`Glowing`,advanced:!0},{image:`https://cdn.acedata.cloud/63bc0645-ab94-4327-84b8-e226020c6c0f.png`,label:this.$t(`midjourney.styleTag.glowStick`),value:`Glow-stick`,advanced:!0},{image:`https://cdn.acedata.cloud/824111e9-7ebf-47ec-80ef-a6ad0a1d949b.png`,label:this.$t(`midjourney.styleTag.glowRadioactive`),value:`Glow Radioactive`,advanced:!0},{image:`https://cdn.acedata.cloud/9d23de16-57b3-42be-89d2-478de2666483.png`,label:this.$t(`midjourney.styleTag.lavaGlow`),value:`Lava Glow`,advanced:!0},{image:`https://cdn.acedata.cloud/d801ee47-02a0-455d-b333-76ad73a4fdcd.png`,label:this.$t(`midjourney.styleTag.moonlight`),value:`Moonlight`},{image:`https://cdn.acedata.cloud/6d1400a8-e168-46c9-89e8-5e701f8824b2.png`,label:this.$t(`midjourney.styleTag.naturalLighting`),value:`Natural Lighting`},{image:`https://cdn.acedata.cloud/9bb6c4ce-9076-41eb-8ace-43a4fa7e0c03.png`,label:this.$t(`midjourney.styleTag.neonLamp`),value:`Neon Lamp`},{image:`https://cdn.acedata.cloud/ac3fe310-3639-4fc0-b56e-4d69278bc2ca.png`,label:this.$t(`midjourney.styleTag.nightclubLighting`),value:`Nightclub Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/c9331a92-87d2-43b5-9319-24c8629bffd1.png`,label:this.$t(`midjourney.styleTag.nuclearWasteGlo`),value:`Nuclear Waste Glo`,advanced:!0},{image:`https://cdn.acedata.cloud/40ccdbfb-84a7-49f7-9999-92db58802c65.png`,label:this.$t(`midjourney.styleTag.quantumDot`),value:`Quantum Dot`,advanced:!0},{image:`https://cdn.acedata.cloud/d5411604-4e66-4187-9b37-48eb683be65e.png`,label:this.$t(`midjourney.styleTag.spotlight`),value:`Spotlight`},{image:`https://cdn.acedata.cloud/b1f16a4b-fb3d-4783-9c66-c3567e79baeb.png`,label:this.$t(`midjourney.styleTag.edgeLight`),value:`Edge light`,advanced:!0},{image:`https://cdn.acedata.cloud/97fecbc1-a164-48e2-bdf0-c69975c16d63.png`,label:this.$t(`midjourney.styleTag.coldLight`),value:`Cold light`},{image:`https://cdn.acedata.cloud/7087f2fe-f48c-4b72-95bc-c697b56e8b0e.png`,label:this.$t(`midjourney.styleTag.keyLighting`),value:`Key lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/5ab92c7e-bca1-4fbc-8975-6d9fb3f15626.png`,label:this.$t(`midjourney.styleTag.ambientLight`),value:`Ambient Light`,advanced:!0},{image:`https://cdn.acedata.cloud/ac80d283-5532-4664-bbe5-42fbb9582a63.png`,label:this.$t(`midjourney.styleTag.highKeyLighting`),value:`High key lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/add3524d-fc90-45a8-9edc-348bb1f79075.png`,label:this.$t(`midjourney.styleTag.lowKeyLighting`),value:`Low key lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/42174ff8-3080-4004-9ae2-c2ff919e1145.png`,label:this.$t(`midjourney.styleTag.motivatedLighting`),value:`Motivated lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/09f3d509-a366-44dc-be3b-b39712d0fac1.png`,label:this.$t(`midjourney.styleTag.3PointLighting`),value:`3 point lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/794a114e-cd4d-4e83-a187-5e979296d125.png`,label:this.$t(`midjourney.styleTag.strobeLight`),value:`Strobe light`,advanced:!0},{image:`https://cdn.acedata.cloud/9e6ec476-3ac8-4246-964f-a1d89a6d19e9.png`,label:this.$t(`midjourney.styleTag.sunLight`),value:`Sun light`},{image:`https://cdn.acedata.cloud/4360a40b-2126-43c2-be8e-e482978e1ea6.png`,label:this.$t(`midjourney.styleTag.ultraviolet`),value:`Ultraviolet`,advanced:!0},{image:`https://cdn.acedata.cloud/8b6bea86-9ed1-4fc8-9040-8fc2b64abbff.png`,label:this.$t(`midjourney.styleTag.beautifulLighting`),value:`Beautiful Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/a8d1f754-fb35-433d-8a36-e073b0fe6fa2.png`,label:this.$t(`midjourney.styleTag.moodyLighting`),value:`Moody Lighting`,advanced:!0},{image:`https://cdn.acedata.cloud/77270807-ca3b-4d02-a9b4-badf8aa48c36.png`,label:this.$t(`midjourney.styleTag.softLighting`),value:`Soft Lighting`}]},artists:{displayName:this.$t(`midjourney.styleCategory.artists`),items:[{image:`https://cdn.acedata.cloud/160cfc29-f258-4795-b663-f687adba19bf.png`,label:this.$t(`midjourney.styleTag.michelangelo`),value:`Michelangelo`},{image:`https://cdn.acedata.cloud/ed0bf2ad-138d-4c8d-bce9-a98299b1ee83.png`,label:this.$t(`midjourney.styleTag.monet`),value:`Monet`},{image:`https://cdn.acedata.cloud/58d9b130-e7b2-4eb8-a71e-7108b3bd4c26.png`,label:this.$t(`midjourney.styleTag.paulCezanne`),value:`Paul Cezanne`,advanced:!0},{image:`https://cdn.acedata.cloud/1247615a-6e75-49e6-842a-b0fb84016d3d.png`,label:this.$t(`midjourney.styleTag.markRothko`),value:`Mark Rothko`,advanced:!0},{image:`https://cdn.acedata.cloud/a7d9d9dd-8add-43d3-942e-8d1199fe277f.png`,label:this.$t(`midjourney.styleTag.paulKlee`),value:`Paul Klee`,advanced:!0},{image:`https://cdn.acedata.cloud/caf5701a-b652-4fab-8467-0c00303d01f3.png`,label:this.$t(`midjourney.styleTag.picasso`),value:`Picasso`},{image:`https://cdn.acedata.cloud/fbb63634-659a-4d2d-bc7b-0fb3399f7061.png`,label:this.$t(`midjourney.styleTag.pietMondrian`),value:`Piet Mondrian`,advanced:!0},{image:`https://cdn.acedata.cloud/29fb173b-17b4-4b05-a63c-e31ce161fe8c.png`,label:this.$t(`midjourney.styleTag.pierreAugusteRer`),value:`Pierre Auguste Rer`,advanced:!0},{image:`https://cdn.acedata.cloud/556f8a48-0b12-49a7-b150-aed40278d3f6.png`,label:this.$t(`midjourney.styleTag.rembrandt`),value:`Rembrandt`},{image:`https://cdn.acedata.cloud/b44d947e-2a14-4db2-880d-332c1aeeb303.png`,label:this.$t(`midjourney.styleTag.reneMagritte`),value:`Rene Magritte`,advanced:!0},{image:`https://cdn.acedata.cloud/0cfcda4a-7e7f-4ec4-ad4f-b4877a900a50.png`,label:this.$t(`midjourney.styleTag.royLichtenstein`),value:`Roy Lichtenstein`,advanced:!0},{image:`https://cdn.acedata.cloud/e592bf88-d9b8-4787-88dd-9ff8e7e9268c.png`,label:this.$t(`midjourney.styleTag.salvadorDali`),value:`Salvador Dali`,advanced:!0},{image:`https://cdn.acedata.cloud/3bbde342-565b-4ea0-8a4c-42b3c109c205.png`,label:this.$t(`midjourney.styleTag.sandroBotticelli`),value:`Sandro Botticelli`,advanced:!0},{image:`https://cdn.acedata.cloud/bfdf6d50-24ab-4b5c-a3de-c8d77d858b04.png`,label:this.$t(`midjourney.styleTag.takashiMurakami`),value:`Takashi Murakami`,advanced:!0},{image:`https://cdn.acedata.cloud/bc67c0ba-614f-46f0-a6ec-047fa561fc01.png`,label:this.$t(`midjourney.styleTag.vanGogh`),value:`Van Gogh`},{image:`https://cdn.acedata.cloud/984a18fa-8050-4084-95d5-732b7ede8e37.png`,label:this.$t(`midjourney.styleTag.wassilyKandinsky`),value:`Wassily Kandinsky`,advanced:!0},{image:`https://cdn.acedata.cloud/48bce45c-6b25-4678-9be8-40707c8e5f43.png`,label:this.$t(`midjourney.styleTag.matCollishaw`),value:`Mat Collishaw`,advanced:!0},{image:`https://cdn.acedata.cloud/6b2851d0-ec8d-4c07-86ed-1eafdd70e1fe.png`,label:this.$t(`midjourney.styleTag.yayoiKusama`),value:`Yayoi Kusama`,advanced:!0},{image:`https://cdn.acedata.cloud/9d691d5c-5560-409b-b998-c979b29902e6.png`,label:this.$t(`midjourney.styleTag.igorMorski`),value:`Igor Morski`,advanced:!0},{image:`https://cdn.acedata.cloud/950cb143-ab40-4bee-80f7-092d0c2a7bc4.png`,label:this.$t(`midjourney.styleTag.shinkaiMakoto`),value:`Shinkai Makoto`},{image:`https://cdn.acedata.cloud/94adf414-a1cc-4b84-b52d-18cd2586df17.png`,label:this.$t(`midjourney.styleTag.pixar`),value:`Pixar`},{image:`https://cdn.acedata.cloud/ccd4d148-e332-4d7e-bbe6-9f1dd68082a8.png`,label:this.$t(`midjourney.styleTag.kyotoAnime`),value:`Kyoto Anime`},{image:`https://cdn.acedata.cloud/b5f5f99a-be40-4fa7-a86a-fd51578a4052.png`,label:this.$t(`midjourney.styleTag.jerryPinkney`),value:`Jerry Pinkney`,advanced:!0},{image:`https://cdn.acedata.cloud/7a4dba74-21ad-4088-89da-6a48104d811d.png`,label:this.$t(`midjourney.styleTag.hayaoMiyazaki`),value:`Hayao Miyazaki`},{image:`https://cdn.acedata.cloud/28477b7e-85d4-4803-b525-938aa2ce3383.png`,label:this.$t(`midjourney.styleTag.beatrixPotter`),value:`Beatrix Potter`,advanced:!0},{image:`https://cdn.acedata.cloud/13854cb8-c478-43c9-9f51-8ac1933b1498.png`,label:this.$t(`midjourney.styleTag.jonKlassen`),value:`Jon Klassen`,advanced:!0},{image:`https://cdn.acedata.cloud/6685c7e0-ea11-488b-a8a0-610032020dfb.png`,label:this.$t(`midjourney.styleTag.kaySage`),value:`Kay Sage`,advanced:!0},{image:`https://cdn.acedata.cloud/cb0c3490-dcd4-488f-96e0-45b9ee671182.png`,label:this.$t(`midjourney.styleTag.jeffreyCatherineJones`),value:`Jeffrey Catherine Jones`,advanced:!0},{image:`https://cdn.acedata.cloud/72f000c5-d8d6-4015-acd4-79961e53ac50.png`,label:this.$t(`midjourney.styleTag.yaacovAgam`),value:`Yaacov Agam`,advanced:!0},{image:`https://cdn.acedata.cloud/f1bd0c4d-af96-4785-99bb-3a70b7f80834.png`,label:this.$t(`midjourney.styleTag.davidHockney`),value:`David Hockney`,advanced:!0},{image:`https://cdn.acedata.cloud/ad0e89d9-214a-4599-90f1-ee5dc0b5592d.png`,label:this.$t(`midjourney.styleTag.victorMoscoso`),value:`Victor Moscoso`,advanced:!0},{image:`https://cdn.acedata.cloud/c3b004e0-f583-4a75-b6cf-0cc60c89b2cf.png`,label:this.$t(`midjourney.styleTag.raphaelite`),value:`Raphaelite`},{image:`https://cdn.acedata.cloud/9c59d174-1e1f-4ef9-b657-1beb57f58088.png`,label:this.$t(`midjourney.styleTag.stefanKoidl`),value:`Stefan Koidl`,advanced:!0},{image:`https://cdn.acedata.cloud/09485865-35a8-4456-a34c-65a8a1c8d2c2.png`,label:this.$t(`midjourney.styleTag.suiIshida`),value:`Sui Ishida`,advanced:!0},{image:`https://cdn.acedata.cloud/31442dfd-d6a8-4674-aade-8543190251b4.png`,label:this.$t(`midjourney.styleTag.swoon`),value:`Swoon`,advanced:!0},{image:`https://cdn.acedata.cloud/842beff4-d333-4388-9880-eec6fd4baa6c.png`,label:this.$t(`midjourney.styleTag.tashaTudor`),value:`Tasha Tudor`,advanced:!0},{image:`https://cdn.acedata.cloud/68c419f3-6f2c-4fbd-a251-ce289d4a9890.png`,label:this.$t(`midjourney.styleTag.tintoretto`),value:`Tintoretto`,advanced:!0},{image:`https://cdn.acedata.cloud/9a3d95da-5019-4fdd-83b9-ec334e609c9d.png`,label:this.$t(`midjourney.styleTag.theodoreRobinsor`),value:`Theodore Robinsor`,advanced:!0},{image:`https://cdn.acedata.cloud/e11cb0a6-2f0e-4d8d-aa0e-8b7378423790.png`,label:this.$t(`midjourney.styleTag.titian`),value:`Titian`,advanced:!0},{image:`https://cdn.acedata.cloud/d3e59ba8-10e6-4d58-a732-e35d579cd3fc.png`,label:this.$t(`midjourney.styleTag.wlop`),value:`WLOP`,advanced:!0},{image:`https://cdn.acedata.cloud/70f22f51-9328-4070-b9aa-578db7d4c502.png`,label:this.$t(`midjourney.styleTag.yanjunCheng`),value:`Yanjun Cheng`,advanced:!0},{image:`https://cdn.acedata.cloud/e1203ff8-cb64-409e-8ba6-06f89645a843.png`,label:this.$t(`midjourney.styleTag.yojiShinkawa`),value:`Yoji Shinkawa`,advanced:!0},{image:`https://cdn.acedata.cloud/6b6d7746-e38b-44db-98d8-51d59ed7531f.png`,label:this.$t(`midjourney.styleTag.zhelongXu`),value:`Zhelong Xu`,advanced:!0},{image:`https://cdn.acedata.cloud/13b9621b-ff7e-4377-9550-0ca82d0f1afb.png`,label:this.$t(`midjourney.styleTag.alenaAenami`),value:`Alena Aenami`,advanced:!0},{image:`https://cdn.acedata.cloud/26d30765-3201-49e9-a4a9-c7c3b8c071ef.png`,label:this.$t(`midjourney.styleTag.anntonFadeevi`),value:`Annton Fadeevi`,advanced:!0},{image:`https://cdn.acedata.cloud/9b4c2bc7-16a8-4807-ad0e-ee9bdc80f1a0.png`,label:this.$t(`midjourney.styleTag.charlieBowater`),value:`Charlie Bowater`,advanced:!0},{image:`https://cdn.acedata.cloud/2f50d67e-3d7e-4e06-a198-5926ce7f357d.png`,label:this.$t(`midjourney.styleTag.coryLoftis`),value:`Cory Loftis`,advanced:!0},{image:`https://cdn.acedata.cloud/47823270-16a6-49cc-a11d-99122a037c68.png`,label:this.$t(`midjourney.styleTag.fenghuaZhong`),value:`Fenghua Zhong`,advanced:!0},{image:`https://cdn.acedata.cloud/1a66b5fd-cbf9-4e09-b817-6effed77b5c2.png`,label:this.$t(`midjourney.styleTag.gregRutkowski`),value:`Greg Rutkowski`,advanced:!0},{image:`https://cdn.acedata.cloud/d05a459a-132b-45a8-b2f3-a978eeeb44af.png`,label:this.$t(`midjourney.styleTag.hongSoonsang`),value:`Hong SoonSang`,advanced:!0},{image:`https://cdn.acedata.cloud/020dbf7f-f026-47bd-90f1-4049407409a1.png`,label:this.$t(`midjourney.styleTag.dennisStock`),value:`Dennis Stock`,advanced:!0},{image:`https://cdn.acedata.cloud/9c1ccc1d-121e-4182-aea0-04eac840869d.png`,label:this.$t(`midjourney.styleTag.michalLisowski`),value:`Michal Lisowski`,advanced:!0},{image:`https://cdn.acedata.cloud/3292404b-e654-4c06-bcd6-5e47a2adf329.png`,label:this.$t(`midjourney.styleTag.paulLehr`),value:`Paul Lehr`,advanced:!0},{image:`https://cdn.acedata.cloud/079c6053-23ad-4dc9-8166-64c5fe2f1e1a.png`,label:this.$t(`midjourney.styleTag.rossTran`),value:`Ross Tran`,advanced:!0},{image:`https://cdn.acedata.cloud/0f267ba1-c031-4008-9ead-630a4bec886a.png`,label:this.$t(`midjourney.styleTag.antonPieck`),value:`Anton Pieck`,advanced:!0},{image:`https://cdn.acedata.cloud/574dd25f-2116-4718-aed6-7d9be3636e22.png`,label:this.$t(`midjourney.styleTag.carlBarks`),value:`Carl Barks`,advanced:!0},{image:`https://cdn.acedata.cloud/38dcdfb5-0003-46f4-8c9d-5857c95f9e59.png`,label:this.$t(`midjourney.styleTag.alphonseMucha`),value:`Alphonse Mucha`,advanced:!0},{image:`https://cdn.acedata.cloud/65f2af96-e875-41f8-9797-3d34dbdf0ea4.png`,label:this.$t(`midjourney.styleTag.andyWarhol`),value:`Andy Warhol`,advanced:!0},{image:`https://cdn.acedata.cloud/801224a0-da77-4095-8799-d288d1ec3c3d.png`,label:this.$t(`midjourney.styleTag.banksy`),value:`Banksy`,advanced:!0},{image:`https://cdn.acedata.cloud/925c6c86-9b69-45ce-a10d-a2c64d4e0db2.png`,label:this.$t(`midjourney.styleTag.franciscoDeGoya`),value:`Francisco De Goya`,advanced:!0},{image:`https://cdn.acedata.cloud/fbb81b10-c579-4dcc-a76a-c099dc0b6c20.png`,label:this.$t(`midjourney.styleTag.caravaggio`),value:`Caravaggio`,advanced:!0},{image:`https://cdn.acedata.cloud/116efedd-42ea-404e-959e-607a9766001a.png`,label:this.$t(`midjourney.styleTag.diegoRivera`),value:`Diego Rivera`,advanced:!0},{image:`https://cdn.acedata.cloud/6f2c1d37-f8ae-4d72-8db1-d9fb04df7114.png`,label:this.$t(`midjourney.styleTag.davidHockney`),value:`David Hockney`,advanced:!0},{image:`https://cdn.acedata.cloud/b74b6b97-f6d7-4a34-840c-a81c69b9d941.png`,label:this.$t(`midjourney.styleTag.marcChagall`),value:`Marc Chagall`},{image:`https://cdn.acedata.cloud/f18ac9a3-a986-4670-813b-6fb81060ed48.png`,label:this.$t(`midjourney.styleTag.edgarDegas`),value:`Edgar Degas`,advanced:!0},{image:`https://cdn.acedata.cloud/275b32e5-9995-46cc-babc-43a0d1aa5d19.png`,label:this.$t(`midjourney.styleTag.eugeneDelacroix`),value:`Eugene Delacroix`,advanced:!0},{image:`https://cdn.acedata.cloud/500edde5-973c-4ba4-aae1-1a3d53a9b27f.png`,label:this.$t(`midjourney.styleTag.francisBacon`),value:`Francis Bacon`,advanced:!0},{image:`https://cdn.acedata.cloud/f7b5cc34-a796-4f45-823c-07122ec46ef6.png`,label:this.$t(`midjourney.styleTag.fridaKahlo`),value:`Frida Kahlo`,advanced:!0},{image:`https://cdn.acedata.cloud/7e41ead3-f54f-4d5f-8353-b2770d75c41b.png`,label:this.$t(`midjourney.styleTag.garaldBrom`),value:`Garald Brom`,advanced:!0},{image:`https://cdn.acedata.cloud/4a46247a-cd9b-48fd-b247-8268d9a891bf.png`,label:this.$t(`midjourney.styleTag.gustavKlimt`),value:`Gustav Klimt`,advanced:!0},{image:`https://cdn.acedata.cloud/3793eae9-61e9-4f16-9c0c-a77c194c45bc.png`,label:this.$t(`midjourney.styleTag.henriMatisse`),value:`Henri Matisse`,advanced:!0},{image:`https://cdn.acedata.cloud/dffa261d-755b-483d-88b7-058c09efd6af.png`,label:this.$t(`midjourney.styleTag.jackKirby`),value:`Jack Kirby`,advanced:!0},{image:`https://cdn.acedata.cloud/4cda1423-455b-463f-981d-b2af8ae1dd95.png`,label:this.$t(`midjourney.styleTag.jacksonPollock`),value:`Jackson Pollock`,advanced:!0},{image:`https://cdn.acedata.cloud/d318e4bc-d69f-4e7a-b6ae-49557e3cd569.png`,label:this.$t(`midjourney.styleTag.johannesVermeer`),value:`Johannes Vermeer`,advanced:!0},{image:`https://cdn.acedata.cloud/4ee7f9d2-01c0-4043-90f3-0174878a2ce7.png`,label:this.$t(`midjourney.styleTag.jeanMichelBasquiat`),value:`Jean Michel Basquiat`,advanced:!0},{image:`https://cdn.acedata.cloud/f60eb307-78b3-4f5e-bfd9-07603bc383c9.png`,label:this.$t(`midjourney.styleTag.marcelDuchamp`),value:`Marcel Duchamp`,advanced:!0}]},material:{displayName:this.$t(`midjourney.styleCategory.material`),items:[{image:`https://cdn.acedata.cloud/f2ce056d-6a89-4b40-b026-5a60cbb1efda.png`,label:this.$t(`midjourney.styleTag.aluminum`),value:`Aluminum`},{image:`https://cdn.acedata.cloud/069c6b1f-0666-4df6-bde6-a1729b33ade1.png`,label:this.$t(`midjourney.styleTag.brick`),value:`Brick`},{image:`https://cdn.acedata.cloud/39f2cbb9-be6a-4669-a7c3-b01dfbb2b563.png`,label:this.$t(`midjourney.styleTag.bronze`),value:`Bronze`},{image:`https://cdn.acedata.cloud/42b30429-2733-41a5-aa4c-e3e0cd50528a.png`,label:this.$t(`midjourney.styleTag.carbonFiber`),value:`Carbon Fiber`},{image:`https://cdn.acedata.cloud/90eeef27-6bdb-4f36-8e17-f1bb49881258.png`,label:this.$t(`midjourney.styleTag.cardboard`),value:`Cardboard`},{image:`https://cdn.acedata.cloud/470235fb-19a8-4ba8-ac9b-236abecf0985.png`,label:this.$t(`midjourney.styleTag.cellulose`),value:`Cellulose`},{image:`https://cdn.acedata.cloud/a8621e16-b046-4300-ab24-09602f734cb9.png`,label:this.$t(`midjourney.styleTag.ceramic`),value:`Ceramic`},{image:`https://cdn.acedata.cloud/af14acf6-92ff-42f8-ae14-ce4b63237bd5.png`,label:this.$t(`midjourney.styleTag.cotton`),value:`Cotton`},{image:`https://cdn.acedata.cloud/d93e6f18-3729-46cc-aa96-9662f2abae3d.png`,label:this.$t(`midjourney.styleTag.fabric`),value:`Fabric`},{image:`https://cdn.acedata.cloud/660533aa-dac7-4968-b27e-0f085b9a67a5.png`,label:this.$t(`midjourney.styleTag.fiberOptic`),value:`Fiber Optic`},{image:`https://cdn.acedata.cloud/94be6d51-5cb3-4362-8274-7d833a88bb79.png`,label:this.$t(`midjourney.styleTag.foil`),value:`Foil`},{image:`https://cdn.acedata.cloud/b89e102d-2fef-4619-8427-94c6bfbeb832.png`,label:this.$t(`midjourney.styleTag.yarn`),value:`Yarn`,advanced:!0},{image:`https://cdn.acedata.cloud/b72ef152-11a7-4c51-b6b4-dc4308995f9e.png`,label:this.$t(`midjourney.styleTag.glass`),value:`Glass`},{image:`https://cdn.acedata.cloud/bca80e91-46ba-4793-b29c-1b5c47b201d7.png`,label:this.$t(`midjourney.styleTag.gold`),value:`Gold`,advanced:!0},{image:`https://cdn.acedata.cloud/3d1e4da5-404b-4f89-8e06-988de47208bd.png`,label:this.$t(`midjourney.styleTag.gummies`),value:`Gummies`,advanced:!0},{image:`https://cdn.acedata.cloud/8afba6b0-a8a5-49c9-bfc5-ebd7b0e12443.png`,label:this.$t(`midjourney.styleTag.latex`),value:`Latex`},{image:`https://cdn.acedata.cloud/d5c39f1c-1be0-4065-80af-e1cb4e627cf2.png`,label:this.$t(`midjourney.styleTag.leather`),value:`Leather`},{image:`https://cdn.acedata.cloud/6e41e8bd-cb0b-4504-8655-a3b1b32ac11c.png`,label:this.$t(`midjourney.styleTag.magma`),value:`Magma`},{image:`https://cdn.acedata.cloud/f816fffa-4a7f-4d60-afcb-e19b0c36d176.png`,label:this.$t(`midjourney.styleTag.metallic`),value:`Metallic`},{image:`https://cdn.acedata.cloud/74c9fe01-37e6-4d05-831a-5778eb34c521.png`,label:this.$t(`midjourney.styleTag.nickel`),value:`Nickel`,advanced:!0},{image:`https://cdn.acedata.cloud/85186eac-1806-4739-9289-8d76aac359b3.png`,label:this.$t(`midjourney.styleTag.nylon`),value:`Nylon`},{image:`https://cdn.acedata.cloud/355d9507-62fa-4c69-986f-def2f2f930c5.png`,label:this.$t(`midjourney.styleTag.paper`),value:`Paper`},{image:`https://cdn.acedata.cloud/6c2626b2-191e-4b85-a97d-e561a2b5c79b.png`,label:this.$t(`midjourney.styleTag.plastic`),value:`Plastic`,advanced:!0},{image:`https://cdn.acedata.cloud/ff0d301d-8181-463c-a276-9b4805321afd.png`,label:this.$t(`midjourney.styleTag.quartz`),value:`Quartz`},{image:`https://cdn.acedata.cloud/7b90754d-2fa5-490e-a73b-d2887525d2e6.png`,label:this.$t(`midjourney.styleTag.wrap`),value:`Wrap`,advanced:!0},{image:`https://cdn.acedata.cloud/7411e62a-546e-4cd2-8446-73c4fb8f103b.png`,label:this.$t(`midjourney.styleTag.wooden`),value:`Wooden`},{image:`https://cdn.acedata.cloud/44e8830f-4be2-471d-a9d4-aaf4913e7451.png`,label:this.$t(`midjourney.styleTag.slime`),value:`Slime`,advanced:!0},{image:`https://cdn.acedata.cloud/16b10e75-a7e7-4b87-804a-2bfc9c18096f.png`,label:this.$t(`midjourney.styleTag.engraving`),value:`Engraving`},{image:`https://cdn.acedata.cloud/b66ec7e2-fd82-4edd-a523-34b87872f544.png`,label:this.$t(`midjourney.styleTag.ivory`),value:`Ivory`},{image:`https://cdn.acedata.cloud/098b954d-1197-414e-b4bd-68e3928b9eb3.png`,label:this.$t(`midjourney.styleTag.basalt`),value:`Basalt`,advanced:!0},{image:`https://cdn.acedata.cloud/b948dd7d-939b-48b5-b37c-09e0ebd6ede6.png`,label:this.$t(`midjourney.styleTag.pine`),value:`Pine`,advanced:!0},{image:`https://cdn.acedata.cloud/4c56fc7d-94c8-4055-9d6e-3bc6662c92d7.png`,label:this.$t(`midjourney.styleTag.diamond`),value:`Diamond`},{image:`https://cdn.acedata.cloud/70de6b75-bb29-4b2a-ae8a-016db33c8184.png`,label:this.$t(`midjourney.styleTag.amethyst`),value:`Amethyst`,advanced:!0},{image:`https://cdn.acedata.cloud/8d2b60e1-c98c-4de2-8a67-4b10c0d2482a.png`,label:this.$t(`midjourney.styleTag.ruby`),value:`Ruby`,advanced:!0},{image:`https://cdn.acedata.cloud/c0f01b99-32a6-4c34-a2d8-448fab08f126.png`,label:this.$t(`midjourney.styleTag.highPolished`),value:`High polished`,advanced:!0},{image:`https://cdn.acedata.cloud/5091142a-3959-40f3-9ea5-f41a29584735.png`,label:this.$t(`midjourney.styleTag.brushed`),value:`Brushed`,advanced:!0},{image:`https://cdn.acedata.cloud/3f84ddc5-5afe-41d1-85cc-2ded7a44d859.png`,label:this.$t(`midjourney.styleTag.matte`),value:`Matte`,advanced:!0},{image:`https://cdn.acedata.cloud/655f5114-b3dd-4b9a-a3cb-94a1a814fb11.png`,label:this.$t(`midjourney.styleTag.satin`),value:`Satin`,advanced:!0},{image:`https://cdn.acedata.cloud/6ec4178e-86e6-4026-aa86-e14eb4e92097.png`,label:this.$t(`midjourney.styleTag.sandblasted`),value:`Sandblasted`,advanced:!0},{image:`https://cdn.acedata.cloud/1c9a4277-5550-4cd4-852a-c785d8505a0f.png`,label:this.$t(`midjourney.styleTag.ebony`),value:`Ebony`,advanced:!0}]},camera:{displayName:this.$t(`midjourney.styleCategory.camera`),items:[{image:`https://cdn.acedata.cloud/9bcf851a-7b94-4554-864b-edcbe0f67017.png`,label:this.$t(`midjourney.styleTag.bokeh`),value:`Bokeh`},{image:`https://cdn.acedata.cloud/f4599568-5889-4da9-8852-8b5361c54412.png`,label:this.$t(`midjourney.styleTag.aerialView`),value:`Aerial view`},{image:`https://cdn.acedata.cloud/bea180e2-9078-42bd-9392-b0ee2b372430.png`,label:this.$t(`midjourney.styleTag.shotByDslr`),value:`Shot by DSLR`,advanced:!0},{image:`https://cdn.acedata.cloud/42444cbd-5442-4093-8911-645272c08863.png`,label:this.$t(`midjourney.styleTag.360Panorama`),value:`360Panorama`},{image:`https://cdn.acedata.cloud/99875464-0be7-44da-adf5-958d2c73eb31.png`,label:this.$t(`midjourney.styleTag.panorama`),value:`Panorama`},{image:`https://cdn.acedata.cloud/e3c3a204-9210-44da-b6fc-5f9a1fea52e0.png`,label:this.$t(`midjourney.styleTag.telephotoLens`),value:`Telephoto Lens`},{image:`https://cdn.acedata.cloud/7bd1f91d-cd6d-48d1-9f07-68382a54a552.png`,label:this.$t(`midjourney.styleTag.macroShot`),value:`Macro shot`},{image:`https://cdn.acedata.cloud/09aca457-2d96-4f60-b5ec-9fedf7a3fcb9.png`,label:this.$t(`midjourney.styleTag.microscopy`),value:`Microscopy`},{image:`https://cdn.acedata.cloud/fb39b4ab-d728-456b-8905-b4c0302f4094.png`,label:this.$t(`midjourney.styleTag.magnification`),value:`Magnification`},{image:`https://cdn.acedata.cloud/b9956b79-70b1-44af-bca3-5eddd412615a.png`,label:this.$t(`midjourney.styleTag.closeUp`),value:`Close up`},{image:`https://cdn.acedata.cloud/2c6b2c92-f790-44e1-bc65-b3182aa484bd.png`,label:this.$t(`midjourney.styleTag.fullBody`),value:`Full body`},{image:`https://cdn.acedata.cloud/05c7f5a8-4a79-4a1c-a4a9-792862ad118c.png`,label:this.$t(`midjourney.styleTag.portrait`),value:`Portrait`},{image:`https://cdn.acedata.cloud/aeb48a08-f0b6-47db-8c5d-ae6f0f92b93d.png`,label:this.$t(`midjourney.styleTag.profile`),value:`Profile`},{image:`https://cdn.acedata.cloud/dd655235-8f80-43b2-823f-bdb44864bee1.png`,label:this.$t(`midjourney.styleTag.pinholeLens`),value:`Pinhole Lens`,advanced:!0},{image:`https://cdn.acedata.cloud/7ad3f221-96f6-4014-953e-853c429d5d57.png`,label:this.$t(`midjourney.styleTag.wideView`),value:`Wide view`},{image:`https://cdn.acedata.cloud/698fbcc7-5ad1-40cb-a926-95189dc9e59b.png`,label:this.$t(`midjourney.styleTag.telescopeLens`),value:`Telescope Lens`,advanced:!0},{image:`https://cdn.acedata.cloud/2e41309b-f006-483f-9843-e15f4ced6be7.png`,label:this.$t(`midjourney.styleTag.satelliteImagery`),value:`Satellite Imagery`},{image:`https://cdn.acedata.cloud/79ad137d-3015-4335-a4e3-2ed29f9b850b.png`,label:this.$t(`midjourney.styleTag.headshot`),value:`Headshot`},{image:`https://cdn.acedata.cloud/d06164a9-ba01-457f-b8cc-f0b38a87b4d5.png`,label:this.$t(`midjourney.styleTag.extremeCloseup`),value:`Extreme closeup`,advanced:!0},{image:`https://cdn.acedata.cloud/b8e10ef3-b37c-45f0-b930-be729c8d17a1.png`,label:this.$t(`midjourney.styleTag.ultrawideShot`),value:`Ultrawide shot`},{image:`https://cdn.acedata.cloud/21eaa8a4-a8f1-448d-9f00-ff8fb0213046.png`,label:this.$t(`midjourney.styleTag.birdView`),value:`Bird view`,advanced:!0},{image:`https://cdn.acedata.cloud/43fadf68-dad1-45d2-bc22-54b1b2792a00.png`,label:this.$t(`midjourney.styleTag.topView`),value:`Top view`,advanced:!0},{image:`https://cdn.acedata.cloud/f8953e9e-6daf-4a70-a691-6f89e91f0b97.png`,label:this.$t(`midjourney.styleTag.frontView`),value:`Front view`,advanced:!0},{image:`https://cdn.acedata.cloud/f2228145-dc8f-4e06-be21-5d18bf50f7cf.png`,label:this.$t(`midjourney.styleTag.sideView`),value:`Side view`,advanced:!0},{image:`https://cdn.acedata.cloud/b218d1cc-60a7-4f62-a719-b852cd6ebf03.png`,label:this.$t(`midjourney.styleTag.backView`),value:`Back view`,advanced:!0},{image:`https://cdn.acedata.cloud/186522ef-7b09-40d8-a712-43dde1266bbf.png`,label:this.$t(`midjourney.styleTag.faceShot`),value:`Face shot`},{image:`https://cdn.acedata.cloud/6a0c1136-2817-42bb-b1e3-c65a130e70cf.png`,label:this.$t(`midjourney.styleTag.chestShot`),value:`Chest shot`},{image:`https://cdn.acedata.cloud/8ac3bf91-2066-420d-8da1-5d6214ad2668.png`,label:this.$t(`midjourney.styleTag.waistShot`),value:`Waist shot`},{image:`https://cdn.acedata.cloud/2558b92f-cb3b-410e-85cd-791eb7d29c60.png`,label:this.$t(`midjourney.styleTag.extraLongShot`),value:`Extra long shot`},{image:`https://cdn.acedata.cloud/0f5c9250-55a4-4eed-8ddf-af18cb52e243.png`,label:this.$t(`midjourney.styleTag.lookUp`),value:`look up`},{image:`https://cdn.acedata.cloud/5e0df52d-e986-4851-b6ae-dc0be744713d.png`,label:this.$t(`midjourney.styleTag.isometricview`),value:`isometricview`,advanced:!0},{image:`https://cdn.acedata.cloud/0d6491dd-1f64-423c-b63b-0f2e96a258e5.png`,label:this.$t(`midjourney.styleTag.highAngleView`),value:`High angle view`,advanced:!0},{image:`https://cdn.acedata.cloud/5b68beee-c079-4a8e-84c5-cb3cc0f6c77b.png`,label:this.$t(`midjourney.styleTag.lowAngleView`),value:`Low angle view`,advanced:!0}]},emotion:{displayName:this.$t(`midjourney.styleCategory.emotion`),items:[{image:`https://cdn.acedata.cloud/033c9cd1-f5cc-448f-8d0a-e6559bbd57e3.png`,label:this.$t(`midjourney.styleTag.happy`),value:`Happy`},{image:`https://cdn.acedata.cloud/d07fbadd-78e4-4a98-bcf8-45b4805c9239.png`,label:this.$t(`midjourney.styleTag.excited`),value:`Excited`},{image:`https://cdn.acedata.cloud/aa94049d-e8fc-4e0e-97b1-afa174d99b88.png`,label:this.$t(`midjourney.styleTag.angry`),value:`Angry`},{image:`https://cdn.acedata.cloud/ede7f1d3-5ce2-4b8f-9cb9-c4bd47b80cae.png`,label:this.$t(`midjourney.styleTag.ped`),value:`ped`},{image:`https://cdn.acedata.cloud/88f9e6ba-2961-497e-ae00-9af36fa2c2d4.png`,label:this.$t(`midjourney.styleTag.disgusted`),value:`Disgusted`},{image:`https://cdn.acedata.cloud/fe91b67b-2430-424a-bf72-1a299e61f049.png`,label:this.$t(`midjourney.styleTag.supnned`),value:`supnned`},{image:`https://cdn.acedata.cloud/24dcfb80-d987-48b0-9595-82276b2a1f94.png`,label:this.$t(`midjourney.styleTag.hopeful`),value:`Hopeful`},{image:`https://cdn.acedata.cloud/f2628539-bdf5-471d-9ceb-f0731c46b593.png`,label:this.$t(`midjourney.styleTag.anxious`),value:`Anxious`},{image:`https://cdn.acedata.cloud/f280d69a-eb1b-4259-b56d-66510f38ec82.png`,label:this.$t(`midjourney.styleTag.elated`),value:`Elated`},{image:`https://cdn.acedata.cloud/94b78236-ba14-4aab-8985-3921b2146fc9.png`,label:this.$t(`midjourney.styleTag.fearful`),value:`Fearful`},{image:`https://cdn.acedata.cloud/68576d87-224f-463f-85c9-5fbeb386a035.png`,label:this.$t(`midjourney.styleTag.hateful`),value:`Hateful`},{image:`https://cdn.acedata.cloud/e0413400-096f-4072-8faf-5ef82f8cc265.png`,label:this.$t(`midjourney.styleTag.apoow`),value:`Apoow`,advanced:!0},{image:`https://cdn.acedata.cloud/c0f4b0f4-1399-468f-873a-a04f4b7929f8.png`,label:this.$t(`midjourney.styleTag.dark`),value:`Dark`,advanced:!0},{image:`https://cdn.acedata.cloud/297d5f3f-ebc9-4c9f-b656-07359b313871.png`,label:this.$t(`midjourney.styleTag.brutal`),value:`Brutal`,advanced:!0}]},chinese:{displayName:this.$t(`midjourney.styleCategory.chinese`),items:[{image:`https://cdn.acedata.cloud/b29020e5-532d-4b30-94b0-cf5405242fc6.png`,label:this.$t(`midjourney.styleTag.hanfu`),value:`Hanfu`},{image:`https://cdn.acedata.cloud/e00eb48c-8240-4468-ac15-1a9d3349b636.png`,label:this.$t(`midjourney.styleTag.cheongsam`),value:`Cheongsam`},{image:`https://cdn.acedata.cloud/87d89bc5-cb61-4780-8894-c1564bdebd66.png`,label:this.$t(`midjourney.styleTag.chineseCostume`),value:`Chinese costume`},{image:`https://cdn.acedata.cloud/811453d2-2715-44fe-8609-b0d184486b19.png`,label:this.$t(`midjourney.styleTag.chineseDress`),value:`Chinese dress`},{image:`https://cdn.acedata.cloud/2463a720-b803-4d0d-9cac-6a7d5b61001d.png`,label:this.$t(`midjourney.styleTag.wuxia`),value:`Wuxia`},{image:`https://cdn.acedata.cloud/2fbee5a1-8a5c-4bfb-a52c-895ff3f53c3c.png`,label:this.$t(`midjourney.styleTag.chinesePhoenix`),value:`Chinese phoenix`},{image:`https://cdn.acedata.cloud/53fd3a51-7739-493f-aff0-daaea74b942c.png`,label:this.$t(`midjourney.styleTag.kungfu`),value:`Kungfu`},{image:`https://cdn.acedata.cloud/bc4c6bb0-82a5-4bbb-b4e3-96a14c52aed3.png`,label:this.$t(`midjourney.styleTag.kunquOpera`),value:`Kunqu opera`,advanced:!0},{image:`https://cdn.acedata.cloud/291ca1c1-069e-4067-8b9d-1c5c11c2ff14.png`,label:this.$t(`midjourney.styleTag.cloisonne`),value:`Cloisonne`,advanced:!0},{image:`https://cdn.acedata.cloud/17e87115-06ec-4f7b-9b8e-daf782cd4d59.png`,label:this.$t(`midjourney.styleTag.porcelain`),value:`Porcelain`},{image:`https://cdn.acedata.cloud/c9cc4712-24b9-4ff8-926b-02bd626df9a9.png`,label:this.$t(`midjourney.styleTag.embroidered`),value:`Embroidered`},{image:`https://cdn.acedata.cloud/7da286ae-d1e6-4a21-8ba5-10ff7bf9d379.png`,label:this.$t(`midjourney.styleTag.jade`),value:`Jade`},{image:`https://cdn.acedata.cloud/11a2d9f8-3c29-4b0b-ae10-525928f71bce.png`,label:this.$t(`midjourney.styleTag.chinesePavilion`),value:`Chinese pavilion`,advanced:!0},{image:`https://cdn.acedata.cloud/639b5e99-8210-4525-b63f-8b89019d07f3.png`,label:this.$t(`midjourney.styleTag.plumFlower`),value:`Plum flower`},{image:`https://cdn.acedata.cloud/cc87764c-2754-4cb7-8bc3-1070b31ec62b.png`,label:this.$t(`midjourney.styleTag.forbiddenCity`),value:`Forbidden city`,advanced:!0},{image:`https://cdn.acedata.cloud/26d2f2aa-ca26-4c0e-a8c7-86a81aafc475.png`,label:this.$t(`midjourney.styleTag.peony`),value:`Peony`,advanced:!0}]},special:{displayName:this.$t(`midjourney.styleCategory.special`),items:[{image:`https://cdn.acedata.cloud/0ca0fd15-cc8d-420e-acf5-6c489e03c7ff.png`,label:this.$t(`midjourney.styleTag.unrealEngine`),value:`Unreal engine`},{image:`https://cdn.acedata.cloud/ead8ba11-6634-409e-8fea-7b31ca3974bc.png`,label:this.$t(`midjourney.styleTag.octaneRender`),value:`Octane render`},{image:`https://cdn.acedata.cloud/209f1bd9-5d44-4699-97ad-fdde73304efb.png`,label:this.$t(`midjourney.styleTag.maxonCinema4D`),value:`Maxon cinema 4D`},{image:`https://cdn.acedata.cloud/93c31b69-7af4-4d1f-99d6-114a34133613.png`,label:this.$t(`midjourney.styleTag.quixelMegascansRender`),value:`Quixel megascans render`},{image:`https://cdn.acedata.cloud/9883f161-5069-414b-9d23-bd63806c5205.png`,label:this.$t(`midjourney.styleTag.coronaRender`),value:`Corona render`},{image:`https://cdn.acedata.cloud/9c28e4af-28b2-4b97-abd4-e4f42d014f3a.png`,label:this.$t(`midjourney.styleTag.vRay`),value:`V-ray`},{image:`https://cdn.acedata.cloud/01d71ceb-7d17-4318-9914-a6a5fe0abc11.png`,label:this.$t(`midjourney.styleTag.architecturalVisualisation`),value:`Architectural visualisation`},{image:`https://cdn.acedata.cloud/e7f2cd21-2efc-4e18-b38d-3c2cbd95c5ec.png`,label:this.$t(`midjourney.styleTag.dramaticContrast`),value:`Dramatic contrast`},{image:`https://cdn.acedata.cloud/8f113377-ba6e-4fb0-bd56-df8635ab6345.png`,label:this.$t(`midjourney.styleTag.goldAndBlackTone`),value:`Gold and black tone`},{image:`https://cdn.acedata.cloud/6da8b72d-5a67-4c06-b915-8c0b5314d9c8.png`,label:this.$t(`midjourney.styleTag.whiteAndPinkTone`),value:`White and pink tone`},{image:`https://cdn.acedata.cloud/09abd535-8ab6-451f-8bce-29859429244b.png`,label:this.$t(`midjourney.styleTag.redAndBlackTone`),value:`Red and black tone`},{image:`https://cdn.acedata.cloud/81115846-7676-4edb-b7cf-df816c90de7f.png`,label:this.$t(`midjourney.styleTag.neonShades`),value:`Neon shades`},{image:`https://cdn.acedata.cloud/dfcc7a8a-e145-4824-b12b-bd29292daa5f.png`,label:this.$t(`midjourney.styleTag.richColor`),value:`Rich color`},{image:`https://cdn.acedata.cloud/38b05148-73c6-4db3-bddd-b972f27f4671.png`,label:this.$t(`midjourney.styleTag.monotone`),value:`Monotone`},{image:`https://cdn.acedata.cloud/6f6704da-1854-43d7-811f-3145fea96909.png`,label:this.$t(`midjourney.styleTag.theLowPurityTone`),value:`The low-purity tone`},{image:`https://cdn.acedata.cloud/3724b5ef-e7dd-4234-b2a2-f71c6b69b4ac.png`,label:this.$t(`midjourney.styleTag.theHighPurityTone`),value:`The high-purity tone`}]}}}},computed:{value:{get(){return this.$store.state.midjourney.config.elements||[]},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,elements:e})}}},methods:{onToggle(e){this.value.includes(e)?this.value=this.value.filter(t=>t!==e):(this.value.push(e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,elements:this.value}))}}}),Fn={class:`flex justify-between`},In={class:`flex justify-start items-center`},Ln={class:`text-sm font-bold`},Rn={class:`flex justify-end items-center`},zn=[`onClick`],Bn={class:`name`};function Vn(r,c,f,p,m,h){let v=g(`info-icon`),y=g(`el-button`),b=g(`el-tag`),x=g(`check`),S=g(`el-icon`),C=g(`el-image`),w=g(`el-tab-pane`),T=g(`el-tabs`),E=g(`el-dialog`);return d(),t(`div`,null,[n(`div`,Fn,[n(`div`,In,[n(`span`,Ln,u(r.$t(`midjourney.field.elements`)),1),o(v,{content:r.$t(`midjourney.description.elements`)},null,8,[`content`])]),n(`div`,Rn,[o(y,{round:``,type:`primary`,size:`small`,onClick:c[0]||=e=>r.choosing=!0},{default:_(()=>[i(u(r.$t(`midjourney.button.select`)),1)]),_:1})])]),n(`div`,null,[(d(!0),t(s,null,e(r.value,(e,t)=>(d(),a(b,{key:t,closable:``,effect:`dark`,round:``,class:`mr-1 mb-1`,onClose:t=>r.onToggle(e)},{default:_(()=>[i(u(e.label),1)]),_:2},1032,[`onClose`]))),128))]),o(E,{modelValue:r.choosing,"onUpdate:modelValue":c[2]||=e=>r.choosing=e,width:`70%`},{default:_(()=>[o(T,{modelValue:r.tab,"onUpdate:modelValue":c[1]||=e=>r.tab=e},{default:_(()=>[(d(!0),t(s,null,e(r.elements,(i,c)=>(d(),a(w,{key:c,label:i.displayName,name:c,class:`pane`},{default:_(()=>[(d(!0),t(s,null,e(i.items,(e,i)=>(d(),t(`div`,{key:i,class:l({hidden:e?.advanced,item:!0,active:r.value.includes(e)}),onClick:t=>r.onToggle(e)},[o(S,{class:`icon`},{default:_(()=>[o(x)]),_:1}),o(C,{src:e.image,fit:`fill`,class:`preview`},null,8,[`src`]),n(`span`,Bn,u(e.label),1)],10,zn))),128))]),_:2},1032,[`label`,`name`]))),128))]),_:1},8,[`modelValue`])]),_:1},8,[`modelValue`])])}var Hn=q(Pn,[[`render`,Vn],[`__scopeId`,`data-v-48a019ff`]]),Un=`fast`,Wn=r({name:`ModeSelector`,components:{ElButton:y,ElDropdown:F,ArrowDown:x,ElIcon:S,FontAwesomeIcon:Z,ElDropdownItem:P},data(){return{options:[{label:this.$t(`midjourney.button.fast`),value:`fast`,icon:`fa-solid fa-wind`,color:`#2dc49c`},{label:this.$t(`midjourney.button.relax`),value:`relax`,icon:`fa-solid fa-mug-saucer`,color:`#ce65e6`},{label:this.$t(`midjourney.button.turbo`),value:`turbo`,icon:`fa-solid fa-bolt`,color:`#ff9900`}]}},computed:{activeOption(){return this.options.find(e=>e.value===this.value)},value:{get(){return this.$store.state.midjourney.config.mode},set(e){this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,mode:e})}}},mounted(){this.value||=Un},methods:{onCommand(e){console.log(`command`,e),this.value=e}}}),Gn={class:`ml-2`},Kn={class:`ml-1 text-sm`};function qn(r,i,l,f,p,m){let v=g(`font-awesome-icon`),y=g(`arrow-down`),b=g(`el-icon`),x=g(`el-button`),S=g(`el-dropdown-item`),C=g(`el-dropdown-menu`),w=g(`el-dropdown`);return d(),a(w,{trigger:`click`,onCommand:r.onCommand},{dropdown:_(()=>[o(C,null,{default:_(()=>[(d(!0),t(s,null,e(r.options,(e,t)=>(d(),a(S,{key:t,class:`flex items-center justify-between`,command:e.value},{default:_(()=>[e.icon?(d(),a(v,{key:0,icon:e.icon,style:c({color:e.color})},null,8,[`icon`,`style`])):h(``,!0),n(`span`,Kn,u(e.label),1)]),_:2},1032,[`command`]))),128))]),_:1})]),default:_(()=>[o(x,{round:``},{default:_(()=>[r.activeOption?.icon?(d(),a(v,{key:0,icon:r.activeOption.icon,style:c({color:r.activeOption?.color})},null,8,[`icon`,`style`])):h(``,!0),n(`span`,Gn,u(r.activeOption?.label),1),o(b,{class:`el-icon--right`},{default:_(()=>[o(y)]),_:1})]),_:1})]),_:1},8,[`onCommand`])}var Jn=q(Wn,[[`render`,qn],[`__scopeId`,`data-v-defbf635`]]),Yn=r({name:`PromptInput`,components:{PromptTextarea:he},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 Xn(e,t,n,r,i,o){let s=g(`prompt-textarea`);return d(),a(s,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`midjourney.name.prompt`),info:e.$t(`midjourney.description.prompt`),placeholder:e.$t(`midjourney.placeholder.prompt`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Zn=q(Yn,[[`render`,Xn]]),Qn=r({name:`ReferenceImage`,components:{ElUpload:D,ElButton:y,InfoIcon:$,FontAwesomeIcon:Z,ImagePreview:Q},mixins:[V,J],emits:[`change`],data(){return{fileList:[],uploadUrl:G()+`/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(){K.warning(this.$t(`midjourney.message.uploadReferencesExceed`))},onError(){K.error(this.$t(`midjourney.message.uploadReferencesError`))}}}),$n={class:`relative`},er={class:`flex justify-between`},tr={class:`flex justify-start items-center`},nr={class:`text-sm font-bold`};function rr(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`image-preview`),m=g(`font-awesome-icon`),h=g(`el-button`),v=g(`el-upload`);return d(),t(`div`,$n,[n(`div`,er,[n(`div`,tr,[n(`span`,nr,u(e.$t(`midjourney.name.referenceImage`)),1),o(f,{content:e.$t(`midjourney.description.uploadReferences`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,limit:5,class:`upload-wrapper`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,multiple:!0,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:_(({file:t})=>[o(p,{url:t.url||t.response?.file_url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:_(()=>[o(h,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(m,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`midjourney.button.uploadReferences`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`headers`])])}var ir=r({name:`ConfigPanel`,components:{ElButton:y,PromptInput:Zn,ModeSelector:Jn,ModelSelector:Kt,ElementsSelector:Hn,StyleSelector:Nn,QualitySelector:Zt,RatioSelector:ke,VersionSelector:Ye,HdSelector:et,StylizeSelector:kt,AdvancedSelector:Fe,ChaosSelector:Rt,WeirdSelector:yn,ImageWeightSelector:dn,ReferenceImage:q(Qn,[[`render`,rr],[`__scopeId`,`data-v-d991c11f`]]),ImageUrlInput:st,EndImageUrlInput:mt,LoopSelector:Ue,ResolutionSelector:nn,ImageUrlInput2:xt,Consumption:ce,VideoFromInput:Tn,ElTabs:T,ElTabPane:E},emits:[`generate`],computed:{config(){return this.$store.state.midjourney.config},isV8(){return this.config?.version===`8`||this.config?.version===`8.1`},isNiji(){return!!this.config?.model?.includes(`niji`)},type:{get(){return this.$store.state.midjourney.config.type||`imagine`},set(e){console.debug(`set type`,e),this.$store.commit(`midjourney/setConfig`,{...this.$store.state.midjourney.config,type:e})}},consumption(){return W(this.config,this.service?.cost)},service(){return this.$store.state.midjourney?.service}},mounted(){this.config.type||(this.type=z)}}),ar={class:`flex flex-col h-full`},or={class:`flex-1 overflow-y-auto p-5`},sr={class:`pt-2 px-1`},cr={class:`pt-2 px-1`},lr={class:`pt-2 px-1`},ur={class:`flex flex-col px-5 pb-5`},dr={class:`flex gap-1`};function fr(e,r,s,c,l,f){let m=g(`model-selector`),y=g(`prompt-input`),b=g(`reference-image`),x=g(`ratio-selector`),S=g(`quality-selector`),C=g(`version-selector`),w=g(`hd-selector`),T=g(`elements-selector`),E=g(`advanced-selector`),D=g(`stylize-selector`),O=g(`weird-selector`),k=g(`chaos-selector`),A=g(`image-weight-selector`),j=g(`style-selector`),M=g(`el-tab-pane`),N=g(`video-from-input`),P=g(`image-url-input`),F=g(`end-image-url-input`),I=g(`loop-selector`),L=g(`resolution-selector`),R=g(`image-url-input2`),z=g(`el-tabs`),B=g(`consumption`),V=g(`mode-selector`),H=g(`el-button`);return d(),t(`div`,ar,[n(`div`,or,[o(z,{modelValue:e.type,"onUpdate:modelValue":r[0]||=t=>e.type=t,class:`demo-tabs`,stretch:``},{default:_(()=>[o(M,{label:e.$t(`midjourney.tab.images`),name:`imagine`},{default:_(()=>[n(`div`,sr,[o(m,{class:`mb-2`}),o(y,{class:`mb-4`}),o(b,{class:`mb-2`}),o(x,{class:`mb-4`}),o(S,{class:`mb-4`}),e.isNiji?h(``,!0):(d(),a(C,{key:0,class:`mb-4`})),e.isV8&&!e.isNiji?(d(),a(w,{key:1,class:`mb-4`})):h(``,!0),o(T,{class:`mb-2`}),o(E,{class:`mb-2`}),p(n(`div`,null,[o(D,{class:`mb-2`}),o(O,{class:`mb-2`}),o(k,{class:`mb-2`}),e.isV8?h(``,!0):(d(),a(A,{key:0,class:`mb-2`})),o(j,{class:`mb-2`})],512),[[v,e.config?.advanced]])])]),_:1},8,[`label`]),o(M,{label:e.$t(`midjourney.tab.videos`),name:`videos`},{default:_(()=>[n(`div`,cr,[p(o(N,{class:`mb-4`},null,512),[[v,e.config?.action===`extend`]]),o(P,{class:`mb-2`}),o(F,{class:`mb-2`}),o(I,{class:`mb-2`}),o(L,{class:`mb-4`}),o(y,{class:`mb-4`})])]),_:1},8,[`label`]),o(M,{label:e.$t(`midjourney.tab.describe`),name:`describe`},{default:_(()=>[n(`div`,lr,[o(R,{class:`mb-2`})])]),_:1},8,[`label`])]),_:1},8,[`modelValue`])]),n(`div`,ur,[o(B,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),n(`div`,dr,[e.type===`describe`?h(``,!0):(d(),a(V,{key:0})),e.config.action===`extend`?(d(),a(H,{key:1,type:`primary`,class:`btn w-full`,round:``,onClick:r[1]||=t=>e.$emit(`generate`)},{default:_(()=>[i(u(e.$t(`midjourney.button.extend`)),1)]),_:1})):(d(),a(H,{key:2,type:`primary`,class:`btn w-full`,round:``,onClick:r[2]||=t=>e.$emit(`generate`)},{default:_(()=>[i(u(e.$t(`midjourney.button.generate`)),1)]),_:1}))])])])}var pr=q(ir,[[`render`,fr]]),mr=r({name:`TaskPreview`,components:{ElImage:k,ImageWrapper:ge,ImagePreview:Q,ElButton:y,FontAwesomeIcon:Z,ElTooltip:O,ElAlert:A,ElTag:ie,CopyToClipboard:oe,VideoPlayer:de,ApiCodeButton:fe},props:{modelValue:{type:Object,required:!0},full:{type:Boolean,default:!1}},emits:[`custom`],data(){return{midjourneyImagineState:H,actionMapping:{[U.GENERATE]:`Generate`,[U.UPSCALE1]:`U1`,[U.UPSCALE2]:`U2`,[U.UPSCALE3]:`U3`,[U.UPSCALE4]:`U4`,[U.VARIATION1]:`V1`,[U.VARIATION2]:`V2`,[U.VARIATION3]:`V3`,[U.VARIATION4]:`V4`,[U.VARIATION_STRONG]:`Vary (Strong)`,[U.VARIATION_SUBTLE]:`Vary (Subtle)`,[U.UPSCALE_CREATIVE]:`Upscale (Creative)`,[U.UPSCALE_SUBTLE]:`Upscale (Subtle)`,[U.ZOOM_OUT_2X]:`Zoom Out 2x`,[U.ZOOM_OUT_1_5X]:`Zoom Out 1.5x`,[U.UPSCALE_2X]:`Upscale 2x`,[U.UPSCALE_4X]:`Upscale 4x`,[U.REDO_UPSCALE_2X]:`Redo Upscale 2x`,[U.REDO_UPSCALE_4X]:`Redo Upscale 4x`,[U.REDO_UPSCALE_SUBTLE]:`Redo Upscale (Subtle)`,[U.REDO_UPSCALE_CREATIVE]:`Redo Upscale (Creative)`,[U.SQUARE]:`Make Square`,[U.PAN_LEFT]:`⬅️`,[U.PAN_UP]:`⬆️`,[U.PAN_DOWN]:`⬇️`,[U.PAN_RIGHT]:`➡️`,[U.REROLL]:`🔄`},descriptionMapping:{[U.GENERATE]:this.$t(`midjourney.action.generate`),[U.UPSCALE1]:this.$t(`midjourney.action.upscale1`),[U.UPSCALE2]:this.$t(`midjourney.action.upscale2`),[U.UPSCALE3]:this.$t(`midjourney.action.upscale3`),[U.UPSCALE4]:this.$t(`midjourney.action.upscale4`),[U.VARIATION1]:this.$t(`midjourney.action.variation1`),[U.VARIATION2]:this.$t(`midjourney.action.variation2`),[U.VARIATION3]:this.$t(`midjourney.action.variation3`),[U.VARIATION4]:this.$t(`midjourney.action.variation4`),[U.VARIATION_STRONG]:this.$t(`midjourney.action.variation_strong`),[U.VARIATION_SUBTLE]:this.$t(`midjourney.action.variation_subtle`),[U.ZOOM_OUT_2X]:this.$t(`midjourney.action.zoom_out_2x`),[U.ZOOM_OUT_1_5X]:this.$t(`midjourney.action.zoom_out_1_5x`),[U.UPSCALE_2X]:this.$t(`midjourney.action.upscale_2x`),[U.UPSCALE_4X]:this.$t(`midjourney.action.upscale_4x`),[U.UPSCALE_SUBTLE]:this.$t(`midjourney.action.upscale_subtle`),[U.UPSCALE_CREATIVE]:this.$t(`midjourney.action.upscale_creative`),[U.REDO_UPSCALE_2X]:this.$t(`midjourney.action.redo_upscale_2x`),[U.REDO_UPSCALE_4X]:this.$t(`midjourney.action.redo_upscale_4x`),[U.REDO_UPSCALE_SUBTLE]:this.$t(`midjourney.action.redo_upscale_subtle`),[U.REDO_UPSCALE_CREATIVE]:this.$t(`midjourney.action.redo_upscale_creative`),[U.SQUARE]:this.$t(`midjourney.action.square`),[U.PAN_LEFT]:this.$t(`midjourney.action.pan_left`),[U.PAN_UP]:this.$t(`midjourney.action.pan_up`),[U.PAN_DOWN]:this.$t(`midjourney.action.pan_down`),[U.PAN_RIGHT]:this.$t(`midjourney.action.pan_right`),[U.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]} (${W({...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()}}}),hr={key:0,class:`item`},gr={class:`left`},_r={class:`preview`},vr={class:`bot`},yr={class:`datetime`},br={class:`info`},xr={key:0,class:`prompt`},Sr={key:0},Cr={key:1},wr={key:1,class:`prompt`},Tr={key:0},Er={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Dr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Or={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},kr={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Ar={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},jr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Mr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Nr={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Pr={key:2},Fr={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Ir={key:1,class:`item`},Lr={class:`left`},Rr={class:`preview`},zr={class:`bot`},Br={class:`datetime`},Vr={class:`info`},Hr={key:0,class:`flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto`},Ur={key:1,class:`prompt`},Wr={key:0},Gr={key:1},Kr={key:2,class:`prompt`},qr={key:0},Jr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Yr={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Xr={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Zr={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Qr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$r={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ei={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ti={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},ni={key:0,class:`mb-4`},ri={key:1,class:l({operations:!0,"mt-2":!0,"mb-4":!0})},ii={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ai={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},oi={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},si={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ci={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},li={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ui={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},di={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},fi={key:2},pi={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},mi={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},hi={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},gi={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},_i={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},vi={key:2,class:`item`},yi={class:`left`},bi={class:`preview`},xi={class:`bot`},Si={class:`datetime`},Ci={class:`info`},wi={key:0,class:`prompt`},Ti={key:0},Ei={key:1},Di={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Oi={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ki={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ai={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},ji={class:`mb-2`},Mi={class:`mb-2`},Ni={key:0},Pi={class:`text-sm text-[var(--el-text-color-primary)]`},Fi={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ii={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Li={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ri={key:2},zi={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Bi(r,c,m,y,b,x){let S=g(`el-image`),C=g(`font-awesome-icon`),w=g(`copy-to-clipboard`),T=g(`el-alert`),E=g(`image-wrapper`),D=g(`el-button`),O=g(`el-tooltip`),k=g(`api-code-button`),A=g(`image-preview`),j=g(`video-player`),M=g(`el-tag`);return d(),t(s,null,[r.modelValue?.type===`imagine`?(d(),t(`div`,hr,[n(`div`,gr,[o(S,{src:`https://cdn.acedata.cloud/wto43b.png`,class:`avatar`})]),n(`div`,_r,[n(`div`,vr,[i(u(r.$t(`midjourney.name.midjourneyBot`))+` `,1),n(`span`,yr,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,br,[r.modelValue?.request?.prompt?(d(),t(`p`,xr,[i(u(r.modelValue?.request?.prompt)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Sr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),r.modelValue?.response?.progress!==void 0&&r.modelValue?.response?.progress!==100?(d(),t(`span`,Cr,` - (`+u(r.modelValue?.response?.progress)+`%) `,1)):h(``,!0),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0),r.modelValue?.request?.image_id?(d(),t(`p`,wr,[i(u(r.modelValue?.request?.image_id)+` - `+u(r.modelValue?.request?.action)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Tr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0)]),r.modelValue?.response?.success===!1?(d(),t(`div`,{key:0,class:l({content:!0,full:r.full,failed:!0})},[o(T,{closable:!1,class:`failure`},{default:_(()=>[n(`p`,Er,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),n(`p`,Dr,[o(C,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(w,{content:r.modelValue?.response?.error?.message},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,Or,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,kr,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(w,{content:r.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?.success===!0?(d(),t(`div`,{key:1,class:l({content:!0,full:r.full})},[r.modelValue?.response?.raw_image_url?(d(),a(E,{key:0,src:r.modelValue?.response?.image_url,"raw-src":r.modelValue?.response?.raw_image_url},null,8,[`src`,`raw-src`])):h(``,!0),r.modelValue?.response?.actions?(d(),t(`div`,{key:1,class:l({operations:!0,full:r.full})},[(d(!0),t(s,null,e(r.modelValue?.response?.actions,(e,t)=>(d(),a(O,{key:t,class:`box-item`,effect:`dark`,content:r.getActionDescriptionWithPrice(e,r.modelValue?.request?.mode),placement:`top-start`},{default:_(()=>[p(o(D,{type:`info`,size:`small`,class:`btn-action`,onClick:t=>r.onCustom(e)},{default:_(()=>[i(u(r.actionMapping[e]),1)]),_:2},1032,[`onClick`]),[[v,r.actionMapping[e]]])]),_:2},1032,[`content`]))),128)),o(k,{path:`/midjourney/imagine`,body:r.modelValue?.request},null,8,[`body`])],2)):h(``,!0),o(T,{closable:!1,class:`mt-2 success`},{default:_(()=>[n(`p`,Ar,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,jr,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,Mr,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])]),n(`p`,Nr,[o(C,{icon:`fa-solid fa-image`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.imageId`))+`: `+u(r.modelValue?.response?.image_id)+` `,1),o(w,{content:r.modelValue?.response?.image_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?h(``,!0):(d(),t(`div`,Pr,[o(T,{closable:!1,class:`mt-2 info`},{default:_(()=>[n(`p`,Fr,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):h(``,!0),r.modelValue?.type===`videos`?(d(),t(`div`,Ir,[n(`div`,Lr,[o(S,{src:`https://cdn.acedata.cloud/wto43b.png`,class:`avatar`})]),n(`div`,Rr,[n(`div`,zr,[i(u(r.$t(`midjourney.name.midjourneyBot`))+` `,1),n(`span`,Br,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Vr,[r.modelValue?.request?.image_url||r.modelValue?.request?.end_image_url?(d(),t(`div`,Hr,[r.modelValue?.request?.image_url?(d(),a(A,{key:0,url:r.modelValue.request.image_url,name:r.$t(`midjourney.name.imageUrl`),closable:!1},null,8,[`url`,`name`])):h(``,!0),r.modelValue?.request?.end_image_url?(d(),a(A,{key:1,url:r.modelValue.request.end_image_url,name:r.$t(`midjourney.name.endImageUrl`),closable:!1},null,8,[`url`,`name`])):h(``,!0)])):h(``,!0),r.modelValue?.request?.prompt?(d(),t(`p`,Ur,[i(u(r.modelValue?.request?.prompt)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,Wr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),r.modelValue?.response?.progress!==void 0&&r.modelValue?.response?.progress!==100?(d(),t(`span`,Gr,` - (`+u(r.modelValue?.response?.progress)+`%) `,1)):h(``,!0),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0),r.modelValue?.request?.video_id?(d(),t(`p`,Kr,[i(u(r.modelValue?.request?.video_id)+` - `+u(r.modelValue?.request?.action)+` `,1),r.modelValue?.response?h(``,!0):(d(),t(`span`,qr,` - (`+u(r.$t(`midjourney.status.pending`))+`) `,1)),n(`span`,null,`(`+u(r.modelValue?.request?.mode)+`)`,1)])):h(``,!0)]),r.modelValue?.response?.success===!1?(d(),t(`div`,{key:0,class:l({content:!0,full:r.full,failed:!0})},[o(T,{closable:!1,class:`failure`},{default:_(()=>[r.modelValue?.request?.action?(d(),t(`p`,Jr,[o(C,{icon:`fa-solid fa-bolt`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.action`))+`: `+u(r.modelValue?.request?.action),1)])):h(``,!0),r.modelValue?.request?.resolution?(d(),t(`p`,Yr,[o(C,{icon:`fa-solid fa-gauge-high`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.resolution`))+`: `+u(r.modelValue?.request?.resolution),1)])):h(``,!0),r.modelValue?.request?.mode?(d(),t(`p`,Xr,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.mode`))+`: `+u(r.modelValue?.request?.mode),1)])):h(``,!0),r.modelValue?.request?.loop===void 0?h(``,!0):(d(),t(`p`,Zr,[o(C,{icon:`fa-solid fa-arrows-rotate`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.loop`))+`: `+u(r.modelValue?.request?.loop?r.$t(`midjourney.field.on`):r.$t(`midjourney.field.off`)),1)])),n(`p`,Qr,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),n(`p`,$r,[o(C,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(w,{content:r.modelValue?.response?.error?.message},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,ei,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,ti,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(w,{content:r.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?.success===!0?(d(),t(`div`,{key:1,class:l({content:!0,full:r.full})},[r.modelValue?.response.video_urls?(d(),t(`div`,ni,[o(j,{src:r.modelValue?.response.video_urls[0]},null,8,[`src`])])):h(``,!0),r.modelValue?.response&&r.modelValue?.response?.video_urls?(d(),t(`div`,ri,[o(O,{class:`box-item`,effect:`dark`,content:r.$t(`luma.message.extendVideo`),placement:`top-start`},{default:_(()=>[o(D,{type:`info`,size:`small`,class:`btn-action`,onClick:c[0]||=f(e=>r.onExtend(e,r.modelValue?.response),[`stop`])},{default:_(()=>[i(u(r.$t(`midjourney.button.extend`)),1)]),_:1})]),_:1},8,[`content`]),o(O,{class:`box-item`,effect:`dark`,content:r.$t(`luma.message.downloadVideo`),placement:`top-start`},{default:_(()=>[o(D,{type:`info`,size:`small`,class:`btn-action`,onClick:c[1]||=f(e=>r.onDownload(r.modelValue.response.video_urls[0]),[`stop`])},{default:_(()=>[i(u(r.$t(`midjourney.button.download`)),1)]),_:1})]),_:1},8,[`content`]),o(k,{path:`/midjourney/videos`,body:r.modelValue?.request},null,8,[`body`])])):h(``,!0),o(T,{closable:!1,class:`mt-2 success`},{default:_(()=>[r.modelValue?.request?.action?(d(),t(`p`,ii,[o(C,{icon:`fa-solid fa-bolt`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.action`))+`: `+u(r.modelValue?.request?.action),1)])):h(``,!0),r.modelValue?.request?.resolution?(d(),t(`p`,ai,[o(C,{icon:`fa-solid fa-gauge-high`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.resolution`))+`: `+u(r.modelValue?.request?.resolution),1)])):h(``,!0),r.modelValue?.request?.mode?(d(),t(`p`,oi,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.mode`))+`: `+u(r.modelValue?.request?.mode),1)])):h(``,!0),r.modelValue?.request?.loop===void 0?h(``,!0):(d(),t(`p`,si,[o(C,{icon:`fa-solid fa-arrows-rotate`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.loop`))+`: `+u(r.modelValue?.request?.loop?r.$t(`midjourney.field.on`):r.$t(`midjourney.field.off`)),1)])),n(`p`,ci,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,li,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,ui,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])]),n(`p`,di,[o(C,{icon:`fa-solid fa-image`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.videoId`))+`: `+u(r.modelValue?.response?.video_id)+` `,1),o(w,{content:r.modelValue?.response?.video_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?h(``,!0):(d(),t(`div`,fi,[o(T,{closable:!1,class:`info`},{default:_(()=>[r.modelValue?.request?.action?(d(),t(`p`,pi,[o(C,{icon:`fa-solid fa-bolt`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.action`))+`: `+u(r.modelValue?.request?.action),1)])):h(``,!0),r.modelValue?.request?.resolution?(d(),t(`p`,mi,[o(C,{icon:`fa-solid fa-gauge-high`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.resolution`))+`: `+u(r.modelValue?.request?.resolution),1)])):h(``,!0),r.modelValue?.request?.mode?(d(),t(`p`,hi,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.mode`))+`: `+u(r.modelValue?.request?.mode),1)])):h(``,!0),r.modelValue?.request?.loop===void 0?h(``,!0):(d(),t(`p`,gi,[o(C,{icon:`fa-solid fa-arrows-rotate`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.name.loop`))+`: `+u(r.modelValue?.request?.loop?r.$t(`midjourney.field.on`):r.$t(`midjourney.field.off`)),1)])),n(`p`,_i,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):h(``,!0),r.modelValue?.type===`describe`?(d(),t(`div`,vi,[n(`div`,yi,[o(S,{src:`https://cdn.acedata.cloud/wto43b.png`,class:`avatar`})]),n(`div`,bi,[n(`div`,xi,[i(u(r.$t(`midjourney.name.midjourneyBot`))+` `,1),n(`span`,Si,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Ci,[r.modelValue?.request?.image_url?(d(),t(`p`,wi,[i(u(r.modelValue?.request?.image_url)+` `,1),r.modelValue?.response?.descriptions?h(``,!0):(d(),t(`span`,Ti,` - (`+u(r.$t(`midjourney.status.describePending`))+`) `,1)),r.modelValue?.response?.descriptions?(d(),t(`span`,Ei,` - (`+u(r.$t(`midjourney.status.describeComplete`))+`) `,1)):h(``,!0)])):h(``,!0)]),r.modelValue?.response&&!r.modelValue?.response?.descriptions?(d(),t(`div`,{key:0,class:l({content:!0,full:r.full,failed:!0})},[o(T,{closable:!1,class:`failure`},{default:_(()=>[n(`p`,Di,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),n(`p`,Oi,[o(C,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(w,{content:r.modelValue?.response?.error?.message},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,ki,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,Ai,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?.descriptions?(d(),t(`div`,{key:1,class:l({content:!0,full:r.full})},[n(`div`,ji,[n(`div`,Mi,[(d(!0),t(s,null,e(r.modelValue.response.descriptions,(e,r)=>(d(),t(`div`,{key:r,class:`flex items-start`},[e===``?h(``,!0):(d(),t(`div`,Ni,[o(M,{effect:`dark`,size:`small`,type:`primary`,round:``,class:`mr-1`},{default:_(()=>[i(u(r+1),1)]),_:2},1024),n(`span`,Pi,[i(u(e)+` `,1),o(w,{content:e},null,8,[`content`])])]))]))),128))]),r.modelValue?.request?.image_url?(d(),a(E,{key:0,src:r.modelValue?.request?.image_url,"raw-src":r.modelValue?.request?.image_url,class:`image w-full rounded-lg`},null,8,[`src`,`raw-src`])):h(``,!0)]),n(`div`,{class:l({operations:!0,"mt-2":!0,"mb-2":!0,full:r.full})},[o(k,{path:`/midjourney/describe`,body:r.modelValue?.request},null,8,[`body`])],2),o(T,{closable:!1,class:`success`},{default:_(()=>[n(`p`,Fi,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,Ii,[o(C,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),n(`p`,Li,[o(C,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.traceId`))+`: `+u(r.modelValue?.trace_id)+` `,1),o(w,{content:r.modelValue?.trace_id},null,8,[`content`])])]),_:1})],2)):h(``,!0),r.modelValue?.response?h(``,!0):(d(),t(`div`,Ri,[o(T,{closable:!1,class:`info`},{default:_(()=>[n(`p`,zi,[o(C,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`midjourney.field.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(w,{content:r.modelValue?.id},null,8,[`content`])])]),_:1})]))])])):h(``,!0)],64)}var Vi=r({name:`TaskList`,components:{TaskItem:q(mr,[[`render`,Bi],[`__scopeId`,`data-v-7a51ab7d`]]),BotPlaceholder:pe,NoTasks:me,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?.()}}}),Hi={key:0,class:`p-2 flex flex-col overflow-y-auto`},Ui={key:1,class:`w-full h-full flex items-center justify-center`};function Wi(n,r,i,c,l,u){let f=g(`bot-placeholder`),p=g(`no-tasks`),m=g(`task-item`),v=g(`scroll-list`);return n.tasks===void 0?(d(),t(`div`,Hi,[o(f)])):n.tasks&&n.tasks?.length===0?(d(),t(`div`,Ui,[o(p)])):n.tasks.length>0?(d(),a(v,{key:2,ref:`scrollList`,class:`p-2 py-3 h-full flex flex-col overflow-y-auto tasks`,loading:n.loading,"floating-loader":n.floatingLoader,onReachTop:r[2]||=e=>n.$emit(`reach-top`)},{default:_(()=>[(d(!0),t(s,null,e(n.tasks,e=>(d(),a(m,{key:e.id,"model-value":e,onExtend:r[0]||=e=>n.$emit(`extend`,e),onCustom:r[1]||=e=>n.$emit(`custom`,e)},null,8,[`model-value`]))),128))]),_:1},8,[`loading`,`floating-loader`])):h(``,!0)}var Gi=r({name:`MidjourneyIndex`,components:{ConfigPanel:pr,TaskList:q(Vi,[[`render`,Wi]]),Layout:Se},mixins:[ae],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===te.Request},tasksLoading(){return this.$store.state.midjourney.status.getTasks===te.Request||this.fetchingTasks},application(){return this.$store.state.midjourney.application},finalPrompt(){let e=``;this.config.references&&this.config.references?.length>0&&(e+=`${this.config.references.join(` `)} `),this.config.prompt&&(e+=this.config.prompt),this.config.elements&&this.config.elements.length>0&&(e+=`,`+this.config.elements.map(e=>e.value).join(`,`));let t=this.config?.model?.includes(`niji`);return this.config?.model&&!e.includes(`--${this.config.model}`)&&(e+=` --${this.config.model}`),!t&&this.config?.version&&!e.includes(`--version `)&&!e.includes(`--v `)&&(e+=` --version ${this.config.version}`),this.config?.chaos&&this.config?.advanced&&!e.includes(`--chaos `)&&(e+=` --chaos ${this.config.chaos}`),this.config?.quality&&!e.includes(`--quality `)&&!e.includes(`--q `)&&this.config?.quality!==`1`&&(e+=` --quality ${this.config.quality}`),this.config?.ratio&&!e.includes(`--aspect `)&&!e.includes(`--ar `)&&this.config?.ratio!==`1:1`&&(e+=` --aspect ${this.config.ratio}`),this.config?.stylize&&!e.includes(`--stylize `)&&!e.includes(`--s `)&&this.config?.advanced&&this.config?.stylize!==100&&(e+=` --stylize ${this.config?.stylize}`),this.config?.weird&&!e.includes(`--weird `)&&!e.includes(`--w `)&&this.config?.advanced&&this.config?.weird!==0&&(e+=` --weird ${this.config.weird}`),this.config.ignore&&!e.includes(`--no `)&&(e+=` --no ${this.config.ignore}`),this.config?.iw&&!e.includes(`--iw `)&&this.config?.advanced&&this.config?.iw!==1&&(e+=` --iw ${this.config.iw}`),this.config?.style&&this.config?.advanced&&!e.includes(`--style`)&&(e+=` --style ${this.config?.style}`),!t&&this.config?.hd&&!e.includes(`--hd`)&&(e+=` --hd`),e=e.replace(/--(fast|relax|turbo) /g,``),this.config.prompt||this.config.references&&this.config.references?.length>0?e:``}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug(`new tasks detected`)},deep:!0},initialized:{async handler(e){e&&(console.debug(`layout initialized`),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await ue({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){let t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(!e.prompt&&e.action===U.GENERATE){K.error(this.$t(`midjourney.message.promptRequired`));return}K.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,X.imagine(e,{token:t})).then(()=>{K.success(this.$t(`midjourney.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?K.error(this.$t(`midjourney.message.usedUp`)):K.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){let t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(!e.prompt){K.error(this.$t(`midjourney.message.promptRequired`));return}if(e.action!==ne.EXTEND&&!e.image_url){K.error(this.$t(`midjourney.message.imageUrlRequired`));return}K.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,X.videos(e,{token:t})).then(()=>{K.success(this.$t(`midjourney.message.startVideosTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?K.error(this.$t(`midjourney.message.usedUp`)):K.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){let t=this.credential?.token;if(!t){console.error(`no token specified`);return}K.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,X.describe(e,{token:t})).then(()=>{K.success(this.$t(`midjourney.message.startDescribeTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?K.error(this.$t(`midjourney.message.usedUp`)):K.error(this.$t(`midjourney.message.startDescribeTaskFailed`)+e.response?.data?.error?.message)}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},async onCustom(e){let t={image_id:e.image_id,action:e.action,mode:this.config?.mode||`fast`,async:!0,version:this.config?.version,hd:this.config?.hd||!1,quality:this.config?.quality||`1`};this.onStartImagineTask(t)},async onGenerate(){if(ee(this.uploadTracker,e=>this.$t(e),e=>K.warning(e))){if(console.debug(`onGenerate`,this.config),this.config?.type===`videos`){let e={video_id:this.config?.video_id,image_url:this.config?.image_url,action:this.config?.action,prompt:this.config?.prompt,end_image_url:this.config?.end_image_url,resolution:this.config?.resolution,loop:this.config?.loop,mode:this.config?.mode||`fast`,async:!0};await this.onStartVideosTask(e)}else if(this.config?.type===`imagine`){let e=this.config?.version===`8`||this.config?.version===`8.1`,t=!!(this.finalPrompt&&this.finalPrompt.includes(`--sref`)),n=!!(e&&this.config?.references&&this.config.references.length>0),r={mode:this.config?.mode||`fast`,prompt:this.finalPrompt,action:U.GENERATE,translation:this.config?.translation,async:!0,version:this.config?.version,hd:this.config?.hd||!1,quality:this.config?.quality||`1`,style_reference:t,moodboard:n};await this.onStartImagineTask(r)}else if(this.config?.type===`describe`){if(!this.config?.image_url){K.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 Ki(e,t,n,r,i,s){let c=g(`config-panel`),l=g(`task-list`),u=g(`layout`);return d(),a(u,null,{config:_(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),results:_(()=>[o(l,{ref:`taskList`,loading:e.loadingMore,onCustom:e.onCustom,onReachTop:e.onReachTop},null,8,[`loading`,`onCustom`,`onReachTop`])]),_:1})}var qi=q(Gi,[[`render`,Ki]]);export{qi as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Vt as c,Wt as l,Z as u,b as d,k as f,tt as p,ut as m}from"./vendor-chart-BJCvKk8-.js";import{t as h}from"./button-BydTr5nV.js";import{t as g}from"./upload-tclXtS3C.js";import{t as _}from"./image-2Z64T0b4.js";import{t as v}from"./alert-CuX4SjQB.js";import{n as y,r as b}from"./radio-3Hz7h3DR.js";import{t as x}from"./switch-Bre-1sLo.js";import{t as S}from"./vendor-axios-Ck2ffRoh.js";import"./constants-MMMyjdpT.js";import{$r as C,Ir as w,Kr as T,O as E,Rt as D,et as ee,rn as te}from"./index-D-Qqijue.js";import{t as O}from"./index.es-PNv_H_Xs.js";import{t as k}from"./CopyToClipboard-CO1AynIe.js";import{t as A}from"./BotPlaceholder-lV3Aa152.js";import{t as j}from"./Hailuo-BHuriP3C.js";import{t as M}from"./TabSwitcher-DDxDlk0E.js";var N=4,P=90,F=r({name:`FishRecorder`,components:{ElButton:h,FontAwesomeIcon:O},emits:[`done`,`cancel`,`update:script`],data(){return{state:`idle`,scriptIndex:0,seconds:0,timerId:0,maxTimerId:0,mediaRecorder:null,stream:null,chunks:[],recordedBlob:null,recordedUrl:``,uploading:!1}},computed:{formattedTime(){let e=Math.floor(this.seconds/60),t=this.seconds%60;return`${e.toString().padStart(2,`0`)}:${t.toString().padStart(2,`0`)}`},currentScript(){let e=`fish.script.passage${this.scriptIndex%N+1}`;return this.$t(e)}},beforeUnmount(){this.cleanup()},mounted(){this.$emit(`update:script`,this.currentScript)},methods:{nextScript(){this.scriptIndex=(this.scriptIndex+1)%N,this.$emit(`update:script`,this.currentScript)},async startRecord(){if(!navigator.mediaDevices?.getUserMedia||typeof MediaRecorder>`u`){T.error(this.$t(`fish.message.recorderUnsupported`));return}try{this.stream=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(e){let t=e?.name===`NotAllowedError`||e?.name===`PermissionDeniedError`;T.error(this.$t(t?`fish.message.micDenied`:`fish.message.micError`));return}this.chunks=[];let e=this.pickMimeType();try{this.mediaRecorder=e?new MediaRecorder(this.stream,{mimeType:e}):new MediaRecorder(this.stream)}catch{this.mediaRecorder=new MediaRecorder(this.stream)}this.mediaRecorder.ondataavailable=e=>{e.data&&e.data.size>0&&this.chunks.push(e.data)},this.mediaRecorder.onstop=()=>{let e=new Blob(this.chunks,{type:this.mediaRecorder?.mimeType||`audio/webm`});this.recordedBlob=e,this.recordedUrl=URL.createObjectURL(e),this.state=`recorded`,this.releaseStream()},this.mediaRecorder.start(),this.state=`recording`,this.seconds=0,this.timerId=window.setInterval(()=>{this.seconds++},1e3),this.maxTimerId=window.setTimeout(()=>{this.state===`recording`&&this.stopRecord()},P*1e3)},stopRecord(){this.mediaRecorder&&this.mediaRecorder.state!==`inactive`&&this.mediaRecorder.stop(),window.clearInterval(this.timerId),window.clearTimeout(this.maxTimerId)},reset(){this.recordedUrl&&URL.revokeObjectURL(this.recordedUrl),this.recordedUrl=``,this.recordedBlob=null,this.state=`idle`,this.seconds=0},onCancel(){this.cleanup(),this.$emit(`cancel`)},cleanup(){this.stopRecord(),this.releaseStream(),this.recordedUrl&&URL.revokeObjectURL(this.recordedUrl)},releaseStream(){this.stream?.getTracks().forEach(e=>e.stop()),this.stream=null},pickMimeType(){for(let e of[`audio/webm;codecs=opus`,`audio/webm`,`audio/mp4`,`audio/ogg`])if(typeof MediaRecorder<`u`&&MediaRecorder.isTypeSupported?.(e))return e},extensionForMime(e){return e.includes(`webm`)?`webm`:e.includes(`mp4`)?`m4a`:e.includes(`ogg`)?`ogg`:e.includes(`wav`)?`wav`:`mp3`},async useRecording(){if(this.recordedBlob){if(this.seconds<3){T.warning(this.$t(`fish.message.recordingTooShort`));return}this.uploading=!0;try{let e=this.$store.state.token?.access,t=this.extensionForMime(this.recordedBlob.type||``),n=new File([this.recordedBlob],`recording-${Date.now()}.${t}`,{type:this.recordedBlob.type||`audio/webm`}),r=new FormData;r.append(`file`,n);let{data:i}=await S.post(`${w()}/api/v1/files/`,r,{headers:{Authorization:`Bearer ${e}`}}),a=i?.file_url;if(!a){T.error(this.$t(`fish.message.uploadError`));return}this.$emit(`done`,{url:a,text:this.currentScript})}catch(e){T.error(this.$t(`fish.message.uploadError`)),console.error(`recorder upload failed`,e)}finally{this.uploading=!1}}}}}),I={class:`recorder`},L={key:0,class:`script`},R={class:`script-header`},z={class:`label`},B={class:`script-text`},V={class:`controls`},H={class:`status`},U={class:`hint`},W={key:1,class:`preview`},G=[`src`],K={class:`preview-actions`},q={class:`footer`};function J(e,r,s,d,h,g){let _=p(`font-awesome-icon`),v=p(`el-button`);return u(),t(`div`,I,[e.state===`recorded`?f(``,!0):(u(),t(`div`,L,[n(`div`,R,[o(_,{icon:`fa-solid fa-book-open`,class:`icon mr-1`}),n(`span`,z,l(e.$t(`fish.description.readScript`)),1),o(v,{link:``,size:`small`,class:`ml-auto`,disabled:e.state===`recording`,onClick:e.nextScript},{default:m(()=>[o(_,{icon:`fa-solid fa-shuffle`,class:`mr-1`}),i(` `+l(e.$t(`fish.button.nextScript`)),1)]),_:1},8,[`disabled`,`onClick`])]),n(`p`,B,l(e.currentScript),1)])),n(`div`,V,[e.state===`idle`?(u(),a(v,{key:0,type:`danger`,circle:``,size:`large`,title:e.$t(`fish.button.startRecord`),onClick:e.startRecord},{default:m(()=>[o(_,{icon:`fa-solid fa-microphone`})]),_:1},8,[`title`,`onClick`])):e.state===`recording`?(u(),a(v,{key:1,type:`warning`,circle:``,size:`large`,title:e.$t(`fish.button.stopRecord`),onClick:e.stopRecord},{default:m(()=>[o(_,{icon:`fa-solid fa-stop`})]),_:1},8,[`title`,`onClick`])):f(``,!0),n(`div`,H,[n(`span`,{class:c([`timer`,e.state===`recording`?`live`:``])},l(e.formattedTime),3),n(`span`,U,l(e.state===`idle`?e.$t(`fish.description.recorderIdle`):e.state===`recording`?e.$t(`fish.description.recorderRecording`):e.$t(`fish.description.recorderRecorded`)),1)])]),e.state===`recorded`&&e.recordedUrl?(u(),t(`div`,W,[n(`audio`,{src:e.recordedUrl,controls:``,preload:`metadata`,class:`w-full`},null,8,G),n(`div`,K,[o(v,{size:`small`,disabled:e.uploading,onClick:e.reset},{default:m(()=>[o(_,{icon:`fa-solid fa-rotate-left`,class:`mr-1`}),i(` `+l(e.$t(`fish.button.reRecord`)),1)]),_:1},8,[`disabled`,`onClick`]),o(v,{size:`small`,type:`primary`,loading:e.uploading,onClick:e.useRecording},{default:m(()=>[o(_,{icon:`fa-solid fa-check`,class:`mr-1`}),i(` `+l(e.$t(`fish.button.useRecording`)),1)]),_:1},8,[`loading`,`onClick`])])])):f(``,!0),n(`div`,q,[o(v,{link:``,size:`small`,disabled:e.uploading||e.state===`recording`,onClick:e.onCancel},{default:m(()=>[i(l(e.$t(`fish.button.cancel`)),1)]),_:1},8,[`disabled`,`onClick`])])])}var Y=E(F,[[`render`,J],[`__scopeId`,`data-v-1958e4a1`]]),X=50*1024*1024,Z=()=>({title:``,description:``,texts:``,voicesUrl:``,visibility:`unlist`,trainMode:`fast`,enhanceAudio:!0,generateSample:!1}),Q=r({name:`FishModelConfigPanel`,components:{ElButton:h,ElInput:C,ElRadioButton:y,ElRadioGroup:b,ElSwitch:x,ElUpload:g,FontAwesomeIcon:O,Recorder:Y},mixins:[D],emits:[`create`],data(){return{form:Z(),fileList:[],uploading:!1,creating:!1,recording:!1,textsAuto:!0}},computed:{uploadUrl(){return w()+`/api/v1/files/`},uploadHeaders(){return{Authorization:`Bearer ${this.$store.state.token?.access}`}},canCreate(){return!!this.form.title.trim()&&!!this.form.voicesUrl&&!this.uploading&&!this.creating},supportsRecorder(){return!!(typeof navigator<`u`?navigator.mediaDevices:void 0)?.getUserMedia&&typeof MediaRecorder<`u`}},methods:{onBeforeUpload(e){return e.size>X?(T.warning(this.$t(`fish.message.audioSizeExceed`)),!1):(this.uploading=!0,!0)},onExceed(){T.warning(this.$t(`fish.message.audioOnlyOne`))},onUploadError(){this.uploading=!1,T.error(this.$t(`fish.message.uploadError`))},onUploadSuccess(e,t,n){this.uploading=!1;let r=e?.file_url;if(!r){T.error(this.$t(`fish.message.uploadError`)),this.fileList=[];return}this.form.voicesUrl=r,this.fileList=n},onRecorded(e){this.form.voicesUrl=e.url,this.recording=!1,e.text&&this.textsAuto&&(this.form.texts=e.text)},onStartRecord(){this.recording=!0,this.textsAuto=!this.form.texts.trim()},onScriptChange(e){this.textsAuto&&this.recording&&(this.form.texts=e)},onTextsInput(){this.textsAuto=!1},clearAudio(){this.form.voicesUrl=``,this.fileList=[]},onCreate(){let e=this.form.title.trim();if(!e){T.warning(this.$t(`fish.message.titleRequired`));return}if(!this.form.voicesUrl){T.warning(this.$t(`fish.message.audioRequired`));return}let t={title:e,voices:this.form.voicesUrl,visibility:this.form.visibility,train_mode:this.form.trainMode,enhance_audio_quality:this.form.enhanceAudio,generate_sample:this.form.generateSample};this.form.description.trim()&&(t.description=this.form.description.trim()),this.form.texts.trim()&&(t.texts=[this.form.texts.trim()]),this.creating=!0,this.$emit(`create`,t),setTimeout(()=>{this.creating=!1,this.form=Z(),this.fileList=[]},600)}}}),ne={class:`flex flex-col h-full`},re={class:`flex-1 overflow-y-auto p-5`},ie={class:`field-block mb-4`},ae={class:`title font-bold`},oe={class:`field-block mb-4`},se={class:`flex items-baseline justify-between mb-1`},ce={class:`title font-bold`},le={key:0,class:`muted`},ue={class:`hint`},de={key:0,class:`audio-actions`},fe={key:1,class:`hint warn`},pe={key:3,class:`mt-2`},me=[`src`],he={class:`ready-actions`},ge={class:`field-block mb-4`},_e={class:`title font-bold`},ve={class:`hint`},ye={class:`field-block mb-4`},be={class:`title font-bold`},xe={class:`field-block mb-4`},Se={class:`title font-bold`},Ce={class:`field-block mb-4`},we={class:`title font-bold`},Te={class:`field-block mb-3`},Ee={class:`field-row`},De={class:`title font-bold`},Oe={class:`hint mt-0 mb-0`},ke={class:`field-block mb-2`},Ae={class:`field-row`},je={class:`title font-bold`},Me={class:`hint mt-0 mb-0`},Ne={class:`flex flex-col items-center justify-center px-5 pb-5`};function Pe(e,r,s,c,d,h){let g=p(`el-input`),_=p(`font-awesome-icon`),v=p(`el-button`),y=p(`el-upload`),b=p(`recorder`),x=p(`el-radio-button`),S=p(`el-radio-group`),C=p(`el-switch`);return u(),t(`div`,ne,[n(`div`,re,[n(`div`,ie,[n(`h2`,ae,[i(l(e.$t(`fish.name.voiceTitle`))+` `,1),r[9]||=n(`span`,{class:`required`},`*`,-1)]),o(g,{modelValue:e.form.title,"onUpdate:modelValue":r[0]||=t=>e.form.title=t,placeholder:e.$t(`fish.placeholder.voiceTitle`),maxlength:`60`},null,8,[`modelValue`,`placeholder`])]),n(`div`,oe,[n(`div`,se,[n(`h2`,ce,[i(l(e.$t(`fish.name.referenceAudio`))+` `,1),r[10]||=n(`span`,{class:`required`},`*`,-1)]),!e.form.voicesUrl&&!e.recording?(u(),t(`span`,le,l(e.$t(`fish.description.audioRequired`)),1)):f(``,!0)]),n(`p`,ue,l(e.$t(`fish.description.uploadAudio`)),1),!e.form.voicesUrl&&!e.recording?(u(),t(`div`,de,[o(y,{"file-list":e.fileList,"onUpdate:fileList":r[1]||=t=>e.fileList=t,name:`file`,limit:1,class:`upload-wrapper`,action:e.uploadUrl,accept:`.mp3,.wav,.m4a,.ogg,.webm,audio/*`,"show-file-list":!1,"on-exceed":e.onExceed,"on-error":e.onUploadError,"on-success":e.onUploadSuccess,"before-upload":e.onBeforeUpload,headers:e.uploadHeaders},{default:m(()=>[o(v,{type:`primary`,plain:``,round:``,loading:e.uploading},{default:m(()=>[o(_,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+l(e.$t(`fish.button.uploadAudio`)),1)]),_:1},8,[`loading`])]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`before-upload`,`headers`]),o(v,{type:`primary`,round:``,disabled:!e.supportsRecorder,onClick:e.onStartRecord},{default:m(()=>[o(_,{icon:`fa-solid fa-microphone`,class:`icon mr-1`}),i(` `+l(e.$t(`fish.button.recordAudio`)),1)]),_:1},8,[`disabled`,`onClick`])])):f(``,!0),!e.supportsRecorder&&!e.form.voicesUrl&&!e.recording?(u(),t(`p`,fe,l(e.$t(`fish.message.recorderUnsupported`)),1)):f(``,!0),e.recording?(u(),a(b,{key:2,class:`mt-2`,onDone:e.onRecorded,onCancel:r[2]||=t=>e.recording=!1,"onUpdate:script":e.onScriptChange},null,8,[`onDone`,`onUpdate:script`])):f(``,!0),e.form.voicesUrl&&!e.recording?(u(),t(`div`,pe,[n(`audio`,{src:e.form.voicesUrl,controls:``,preload:`metadata`,class:`w-full`},null,8,me),n(`div`,he,[o(v,{link:``,size:`small`,onClick:e.clearAudio},{default:m(()=>[o(_,{icon:`fa-solid fa-rotate-left`,class:`mr-1`}),i(` `+l(e.$t(`fish.button.replaceAudio`)),1)]),_:1},8,[`onClick`])])])):f(``,!0)]),n(`div`,ge,[n(`h2`,_e,l(e.$t(`fish.name.audioTexts`)),1),n(`p`,ve,l(e.$t(`fish.description.audioTexts`)),1),o(g,{modelValue:e.form.texts,"onUpdate:modelValue":r[3]||=t=>e.form.texts=t,type:`textarea`,rows:2,placeholder:e.$t(`fish.placeholder.audioTexts`),maxlength:`500`,onInput:e.onTextsInput},null,8,[`modelValue`,`placeholder`,`onInput`])]),n(`div`,ye,[n(`h2`,be,l(e.$t(`fish.name.voiceDescription`)),1),o(g,{modelValue:e.form.description,"onUpdate:modelValue":r[4]||=t=>e.form.description=t,type:`textarea`,rows:2,placeholder:e.$t(`fish.placeholder.voiceDescription`),maxlength:`500`},null,8,[`modelValue`,`placeholder`])]),n(`div`,xe,[n(`h2`,Se,l(e.$t(`fish.name.visibility`)),1),o(S,{modelValue:e.form.visibility,"onUpdate:modelValue":r[5]||=t=>e.form.visibility=t,size:`small`},{default:m(()=>[o(x,{label:`private`,value:`private`},{default:m(()=>[i(l(e.$t(`fish.value.private`)),1)]),_:1}),o(x,{label:`unlist`,value:`unlist`},{default:m(()=>[i(l(e.$t(`fish.value.unlist`)),1)]),_:1}),o(x,{label:`public`,value:`public`},{default:m(()=>[i(l(e.$t(`fish.value.public`)),1)]),_:1})]),_:1},8,[`modelValue`])]),n(`div`,Ce,[n(`h2`,we,l(e.$t(`fish.name.trainMode`)),1),o(S,{modelValue:e.form.trainMode,"onUpdate:modelValue":r[6]||=t=>e.form.trainMode=t,size:`small`},{default:m(()=>[o(x,{label:`fast`,value:`fast`},{default:m(()=>[i(l(e.$t(`fish.value.trainModeFast`)),1)]),_:1}),o(x,{label:`precise`,value:`precise`},{default:m(()=>[i(l(e.$t(`fish.value.trainModePrecise`)),1)]),_:1})]),_:1},8,[`modelValue`])]),n(`div`,Te,[n(`div`,Ee,[n(`h2`,De,l(e.$t(`fish.name.enhanceAudio`)),1),o(C,{modelValue:e.form.enhanceAudio,"onUpdate:modelValue":r[7]||=t=>e.form.enhanceAudio=t},null,8,[`modelValue`])]),n(`p`,Oe,l(e.$t(`fish.description.enhanceAudio`)),1)]),n(`div`,ke,[n(`div`,Ae,[n(`h2`,je,l(e.$t(`fish.name.generateSample`)),1),o(C,{modelValue:e.form.generateSample,"onUpdate:modelValue":r[8]||=t=>e.form.generateSample=t},null,8,[`modelValue`])]),n(`p`,Me,l(e.$t(`fish.description.generateSample`)),1)])]),n(`div`,Ne,[o(v,{type:`primary`,class:`btn w-full`,round:``,disabled:!e.canCreate||e.creating,loading:e.creating,onClick:e.onCreate},{default:m(()=>[o(_,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+l(e.$t(`fish.button.createModel`)),1)]),_:1},8,[`disabled`,`loading`,`onClick`])])])}var Fe=E(Q,[[`render`,Pe],[`__scopeId`,`data-v-d8fc0e55`]]),Ie=r({name:`FishVoiceCard`,components:{ElAlert:v,ElButton:h,ElImage:_,CopyToClipboard:k,FontAwesomeIcon:O},props:{modelValue:{type:Object,required:!0}},computed:{sampleAudioUrl(){let e=this.modelValue?.samples;if(e?.length)return e[0]?.audio},voiceId(){let e=this.modelValue;return(e?.id||e?._id||e?.reference_id||``).toString()},coverSrc(){let e=this.modelValue?.cover_image;return e&&typeof e==`string`?e:void 0},createdAtLabel(){let e=this.modelValue?.created_at;if(e==null||e===``)return null;let t=typeof e==`number`?e:parseFloat(String(e));return!Number.isFinite(t)||t<=0?null:this.$dayjs.format(``+new Date(t*1e3))}},methods:{onUseVoice(){let e=this.voiceId;e&&(this.$store.commit(`fish/setConfig`,{...this.$store.state.fish?.config,reference_id:e}),this.$router.push({name:ee}))}}}),Le={class:`card`},Re={class:`left`},ze={class:`main`},Be={class:`header`},Ve={class:`title`},He={key:0,class:`datetime`},Ue={key:0,class:`description`},We={key:1,class:`sample mt-2`},Ge=[`src`],Ke={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},qe={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Je={class:`operations mt-2`};function Ye(e,r,s,c,h,g){let _=p(`el-image`),v=p(`font-awesome-icon`),y=p(`copy-to-clipboard`),b=p(`el-alert`),x=p(`el-button`);return u(),t(`div`,Le,[n(`div`,Re,[e.coverSrc?(u(),a(_,{key:0,src:e.coverSrc,class:`cover`,fit:`cover`},{error:m(()=>[o(_,{src:`https://cdn.acedata.cloud/e40fccc727.png`,class:`cover fallback`,fit:`cover`})]),placeholder:m(()=>[...r[0]||=[n(`div`,{class:`cover placeholder`},null,-1)]]),_:1},8,[`src`])):(u(),a(_,{key:1,src:`https://cdn.acedata.cloud/e40fccc727.png`,class:`cover fallback`,fit:`cover`}))]),n(`div`,ze,[n(`div`,Be,[n(`span`,Ve,l(e.modelValue?.title||e.$t(`fish.name.untitledVoice`)),1),e.createdAtLabel?(u(),t(`span`,He,l(e.createdAtLabel),1)):f(``,!0)]),e.modelValue?.description?(u(),t(`p`,Ue,l(e.modelValue?.description),1)):f(``,!0),e.sampleAudioUrl?(u(),t(`div`,We,[n(`audio`,{src:e.sampleAudioUrl,controls:``,preload:`metadata`,class:`w-full`},null,8,Ge)])):f(``,!0),o(b,{closable:!1,class:`mt-2 success`},{default:m(()=>[e.voiceId?(u(),t(`p`,Ke,[o(v,{icon:`fa-solid fa-microphone`,class:`mr-1`}),i(` `+l(e.$t(`fish.name.referenceId`))+`: `+l(e.voiceId)+` `,1),o(y,{content:e.voiceId},null,8,[`content`])])):f(``,!0),e.modelValue?.visibility?(u(),t(`p`,qe,[o(v,{icon:`fa-solid fa-eye`,class:`mr-1`}),i(` `+l(e.$t(`fish.name.visibility`))+`: `+l(e.modelValue?.visibility),1)])):f(``,!0)]),_:1}),n(`div`,Je,[o(x,{type:`primary`,size:`small`,plain:``,disabled:!e.voiceId,onClick:d(e.onUseVoice,[`stop`])},{default:m(()=>[o(v,{icon:`fa-solid fa-volume-high`,class:`mr-1`}),i(` `+l(e.$t(`fish.button.useVoice`)),1)]),_:1},8,[`disabled`,`onClick`])])])])}var Xe=r({name:`FishModelListPanel`,components:{VoiceCard:E(Ie,[[`render`,Ye],[`__scopeId`,`data-v-629e2d04`]]),BotPlaceholder:A,FontAwesomeIcon:O},props:{loading:{type:Boolean,default:!1}},computed:{voices(){return this.$store.state.fish?.voices}}}),Ze={class:`model-list-panel flex flex-col h-full`},Qe={class:`header`},$e={class:`title`},et={key:0,class:`count`},tt={class:`body flex-1 min-h-0`},$={key:0,class:`h-full`},nt={key:1,class:`w-full h-full flex flex-col items-center justify-center text-center px-6`},rt={class:`empty-title`},it={class:`empty-hint`},at={key:2,class:`w-full h-full overflow-y-auto pr-1`};function ot(r,i,c,d,m,h){let g=p(`bot-placeholder`),_=p(`font-awesome-icon`),v=p(`voice-card`);return u(),t(`div`,Ze,[n(`header`,Qe,[n(`h2`,$e,l(r.$t(`fish.title.myVoices`)),1),r.voices?.length?(u(),t(`span`,et,l(r.voices?.length),1)):f(``,!0)]),n(`div`,tt,[r.voices===void 0?(u(),t(`div`,$,[o(g)])):r.voices.length===0?(u(),t(`div`,nt,[o(_,{icon:`fa-solid fa-microphone-lines`,class:`empty-icon`}),n(`p`,rt,l(r.$t(`fish.title.noVoicesYet`)),1),n(`p`,it,l(r.$t(`fish.description.noVoicesYet`)),1)])):(u(),t(`div`,at,[(u(!0),t(s,null,e(r.voices,e=>(u(),a(v,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]))])])}var st=r({name:`FishModelIndex`,components:{ModelConfigPanel:Fe,Layout:j,ModelListPanel:E(Xe,[[`render`,ot],[`__scopeId`,`data-v-4aab2294`]]),TabSwitcher:M},inject:[`initialized`],data(){return{loading:!1}},computed:{credential(){return this.$store.state.fish?.credential}},watch:{initialized:{async handler(e){e&&await this.onGetVoices()},immediate:!0}},async mounted(){await this.onGetService()},methods:{async onGetService(){await this.$store.dispatch(`fish/getService`)},async onGetVoices(){await this.$store.dispatch(`fish/getVoices`)},async onCreate(e){let t=this.credential?.token;if(!t){console.error(`no token specified`);return}this.loading=!0,T.info(this.$t(`fish.message.creatingModel`));try{await te.createModel(e,{token:t}),T.success(this.$t(`fish.message.createModelSuccess`)),await this.onGetVoices()}catch(e){let t=e?.response?.data;t?.error?.code===`used_up`?T.error(this.$t(`fish.message.usedUp`)):T.error(t?.error?.message||this.$t(`fish.message.createModelFailed`))}finally{this.loading=!1}}}}),ct={class:`flex flex-col h-full`},lt={class:`flex-1 min-h-0`};function ut(e,t,r,i,s,c){let l=p(`tab-switcher`),d=p(`model-config-panel`),f=p(`model-list-panel`),h=p(`layout`);return u(),a(h,null,{config:m(()=>[n(`div`,ct,[o(l),n(`div`,lt,[o(d,{onCreate:e.onCreate},null,8,[`onCreate`])])])]),result:m(()=>[o(f,{loading:e.loading},null,8,[`loading`])]),_:1})}var dt=E(st,[[`render`,ut]]);export{dt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Vt as c,Wt as l,Z as u,k as d,tt as f,ut as p}from"./vendor-chart-BJCvKk8-.js";import{t as m}from"./button-BydTr5nV.js";import{t as h}from"./card-DjyfNde2.js";import{n as g,t as _}from"./row-DIYqBnV-.js";import{t as v}from"./empty-CdsD8g84.js";import{t as y}from"./skeleton-BwNBivMN.js";import{An as b,Br as x,Fn as S,H as C,Hn as w,Jn as T,Kr as E,Mr as D,O,Ut as k,Zr as A,jr as j,z as M}from"./index-D-Qqijue.js";import{t as N}from"./index.es-PNv_H_Xs.js";var P=r({name:`ConsoleSubscriptionBuy`,components:{ElSkeleton:y,ElRow:_,ElTag:A,ElCol:g,ElCard:h,ElEmpty:v,FontAwesomeIcon:N,ElButton:m},data(){return{application:void 0,application2:void 0,type:j.PERIOD,services:[],loading:!1,creating:!1,subscription:void 0}},computed:{site(){return this.$store.getters.site},applicationId(){return this.$route.params?.id?.toString()},showPayment(){return!x()},subscriptions(){let e=[{name:`WEEK`,label:this.$t(`console.subscription.weekly`),description:this.$t(`console.subscription.weekly.description`),duration:10080*60},{name:`MONTH`,label:this.$t(`console.subscription.monthly`),description:this.$t(`console.subscription.monthly.description`),duration:720*60*60},{name:`YEAR`,tag:this.$t(`console.button.suggested`),label:this.$t(`console.subscription.yearly`),description:this.$t(`console.subscription.yearly.description`),duration:365*24*60*60}];for(let t of e){console.log(`item`,t);let e=this.getPackages(t.duration);console.log(`pkgs`,e),e&&(t.price=e.reduce((e,t)=>e+t.price,0));for(let n of e)t.benefits||=[],t.benefits.push({enabled:!0,content:`${n?.service?.title} - ${n.amount} `+this.$t(`service.unit.`+n?.service?.unit+`s`)});t.benefits?.push({enabled:t.name!==`WEEK`,content:this.$t(`console.message.benefit1`)}),t.benefits?.push({enabled:t.name!==`WEEK`,content:this.$t(`console.message.benefit2`)})}return e},service(){return this.application?.service},serviceIds(){return!this.application||!this.application.service?[]:[this.application.service.id]}},async mounted(){this.loading=!0,await this.onFetchApplication(),await this.onFetchApplication2(),await this.onCreateApplications(),this.loading=!1,this.subscription=this.subscriptions[2]},methods:{getPriceString:k,onBuyExtra(){this.$router.push({name:M,params:{id:this.applicationId}})},getPackages(e){let t=[];if(!this.service)return[];let n=[this.service].sort((e,t)=>this.serviceIds.indexOf(e.id)-this.serviceIds.indexOf(t.id));for(let r of n){let n=r.packages?.find(t=>t.type===D.PERIOD&&t.duration===e);n&&t.push({...n,service:r})}return t},async onCreateApplications(){let e=[];if(this.application2||e.push(this.application?.service?.id),e.length>0){for(let t of e)await w.create({service_id:t,type:j.PERIOD});await this.onFetchApplication2()}},onChangeType(){console.log(`onChangeType`,this.type),this.$router.push({name:M,params:this.$route.params})},async onFetchServices(){let{data:e}=await b.getAll({id:this.serviceIds});this.services=e.items,console.debug(`services`,this.services)},async onFetchApplication(){let{data:e}=await w.get(this.applicationId);this.application=e,console.debug(`application`,this.application)},async onFetchApplication2(){let{data:e}=await w.getAll({limit:100,offset:0,user_id:this.$store.getters.user.id,ordering:`-created_at`,service_id:this.serviceIds,type:j.PERIOD});this.application2=e.items?.[0],console.debug(`application2`,this.application2)},onCreateOrder(e){if(this.subscription=e,this.creating=!0,!this.application2||!this.application2.id){E.error(this.$t(`console.message.applicationNotFound`)),this.creating=!1;return}T(`payment_initiated`,{service:this.service?.alias,action:`subscribe`,duration:e.duration}),S.create({application_ids:[this.application2.id],package_ids:this.getPackages(e.duration).map(e=>e.id),description:this.service?.title+` - `+e.label}).then(({data:e})=>{this.creating=!1,this.$router.push({name:C,params:{id:e.id}})}).catch(e=>{E.error(this.$t(`order.message.createFailed`)),this.creating=!1,T(`payment_failed`,{service:this.service?.alias,action:`subscribe`,error:e?.response?.data?.error?.message??String(e)})})}}}),F={class:`title`},I={class:`introduction`},L={class:`name`},R={class:`price`},z={class:`description`},B={class:`benefits`},V={class:`operations`},H={key:2,class:`extra`};function U(r,m,h,g,_,v){let y=f(`el-col`),b=f(`el-row`),x=f(`el-empty`),S=f(`el-skeleton`),C=f(`el-tag`),w=f(`font-awesome-icon`),T=f(`el-button`),E=f(`el-card`);return u(),a(b,{class:`panel`},{default:p(()=>[o(y,{span:24},{default:p(()=>[o(b,null,{default:p(()=>[o(y,{span:24},{default:p(()=>[n(`h2`,F,l(r.$t(`common.title.buyMore`)),1)]),_:1})]),_:1}),o(b,null,{default:p(()=>[o(y,{span:24},{default:p(()=>[o(E,{shadow:`hover`,class:`card`},{default:p(()=>[o(b,null,{default:p(()=>[r.showPayment?(u(),a(y,{key:1,class:`max-w-4xl mx-auto`},{default:p(()=>[n(`p`,I,l(r.$t(`console.subscription.title`)),1),r.loading?(u(),a(S,{key:0})):(u(),a(b,{key:1,gutter:15,class:`subscriptions`},{default:p(()=>[(u(!0),t(s,null,e(r.subscriptions,(f,m)=>(u(),a(y,{key:m,xs:24,md:24/(r.subscriptions?.length||4)},{default:p(()=>[o(E,{shadow:`hover`,class:c({subscription:!0,active:r.subscription?.name===f.name}),onClick:e=>r.subscription=f},{default:p(()=>[n(`h4`,L,[i(l(f.label)+` `,1),f.tag?(u(),a(C,{key:0,type:`warning`},{default:p(()=>[i(l(f.tag),1)]),_:2},1024)):d(``,!0)]),n(`h2`,R,l(r.getPriceString({value:f.price})),1),n(`p`,z,l(f.description),1),n(`div`,B,[(u(!0),t(s,null,e(f.benefits,(e,r)=>(u(),t(`div`,{key:r,class:`benefit`},[e.enabled?(u(),a(w,{key:0,icon:`fa-solid fa-check`,class:`icon icon-check`})):(u(),a(w,{key:1,icon:`fa-solid fa-xmark`,class:`icon icon-xmark`})),n(`span`,null,l(e.content),1)]))),128))]),n(`div`,V,[r.showPayment?(u(),a(T,{key:0,class:`btn btn-subscribe`,type:r.subscription?.name===f?.name?`primary`:``,round:``,onClick:e=>r.onCreateOrder(f)},{default:p(()=>[i(l(r.$t(`common.button.buy`)),1)]),_:1},8,[`type`,`onClick`])):d(``,!0)])]),_:2},1032,[`class`,`onClick`])]),_:2},1032,[`md`]))),128))]),_:1})),!r.loading&&r.showPayment?(u(),t(`div`,H,[n(`span`,null,l(r.$t(`console.message.doNotWantSubscribe`)),1),o(T,{type:`primary`,class:`btn btn-extra`,round:``,size:`small`,onClick:r.onBuyExtra},{default:p(()=>[i(l(r.$t(`console.message.buyExtra`)),1)]),_:1},8,[`onClick`])])):d(``,!0)]),_:1})):(u(),a(y,{key:0,class:`max-w-4xl mx-auto`},{default:p(()=>[o(x,{description:r.$t(`common.message.noData`)},null,8,[`description`])]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var W=O(P,[[`render`,U],[`__scopeId`,`data-v-710510b8`]]);export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Wt as c,Z as l,b as u,k as d,tt as f,ut as p}from"./vendor-chart-BJCvKk8-.js";import{t as m}from"./button-BydTr5nV.js";import{r as h,t as g}from"./select-D8-MrXlh.js";import{t as _}from"./image-2Z64T0b4.js";import{t as v}from"./alert-CuX4SjQB.js";import{t as y}from"./slider-D-sIyihy.js";import{ft as b,ht as x}from"./constants-MMMyjdpT.js";import{Ht as S,Kr as C,Lt as ee,Nr as w,O as T,qn as te,rn as E,zt as D}from"./index-D-Qqijue.js";import{t as O}from"./index.es-PNv_H_Xs.js";import{t as k}from"./CopyToClipboard-CO1AynIe.js";import{t as A}from"./Consumption-CGU0vcV2.js";import{n as j,t as M}from"./pagination-CuBmtmwA.js";import{t as N}from"./ApiCodeButton-ClN3H3w1.js";import{t as P}from"./BotPlaceholder-lV3Aa152.js";import{t as F}from"./NoTasks-tgfYxa6S.js";import{t as I}from"./Hailuo-BHuriP3C.js";import{t as L}from"./TabSwitcher-DDxDlk0E.js";import{t as R}from"./PromptTextarea-BRYoZn2E.js";var z=r({name:`FishTextInput`,components:{PromptTextarea:R},computed:{text:{get(){return this.$store.state.fish?.config?.text},set(e){this.$store.commit(`fish/setConfig`,{...this.$store.state.fish?.config,text:e})}}}});function B(e,t,n,r,i,o){let s=f(`prompt-textarea`);return l(),a(s,{modelValue:e.text,"onUpdate:modelValue":t[0]||=t=>e.text=t,title:e.$t(`fish.name.text`),info:e.$t(`fish.description.text`),placeholder:e.$t(`fish.placeholder.text`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var V=T(z,[[`render`,B]]),H=r({name:`FishModelSelector`,components:{ElSelect:h,ElOption:g},computed:{options(){return[{value:x,label:this.$t(`fish.button.modelS2Pro`)},{value:`s1`,label:this.$t(`fish.button.modelS1`)}]},value:{get(){return this.$store.state.fish?.config?.model},set(e){this.$store.commit(`fish/setConfig`,{...this.$store.state.fish?.config,model:e})}}},mounted(){this.value||=b}}),U={class:`field`},W={class:`title font-bold`};function G(r,i,u,d,m,h){let g=f(`el-option`),_=f(`el-select`);return l(),t(`div`,U,[n(`h2`,W,c(r.$t(`fish.name.model`)),1),o(_,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`fish.placeholder.select`)},{default:p(()=>[(l(!0),t(s,null,e(r.options,e=>(l(),a(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var K=T(H,[[`render`,G],[`__scopeId`,`data-v-9702e6d3`]]),q=r({name:`FishVoicePicker`,components:{ElSelect:h,ElOption:g},computed:{loading(){return this.$store.state.fish?.status?.getApplications===w.Request},options(){return this.$store.state.fish?.voices??[]},displayOptions(){return this.options.map(e=>{let t=e,n=(t.id||t._id||t.reference_id||``).toString();return{value:n,label:t.title||n}}).filter(e=>!!e.value)},credential(){return this.$store.state.fish?.credential},value:{get(){return this.$store.state.fish?.config?.reference_id},set(e){this.$store.commit(`fish/setConfig`,{...this.$store.state.fish?.config,reference_id:e||void 0})}}},watch:{credential:{immediate:!0,handler(e){if(!e?.token)return;let t=this.$store.state.fish?.voices;(t===void 0||t.length===0)&&this.$store.dispatch(`fish/getVoices`)}}}}),J={class:`field`},Y={class:`title font-bold`};function X(r,i,u,d,m,h){let g=f(`el-option`),_=f(`el-select`);return l(),t(`div`,J,[n(`h2`,Y,c(r.$t(`fish.name.voice`)),1),o(_,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`fish.placeholder.voice`),clearable:``,filterable:``,loading:r.loading,"no-data-text":r.$t(`fish.message.noVoices`)},{default:p(()=>[(l(!0),t(s,null,e(r.displayOptions,e=>(l(),a(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`,`loading`,`no-data-text`])])}var Z=r({name:`FishConfigPanel`,components:{ElButton:m,ElSlider:y,FontAwesomeIcon:O,TextInput:V,ModelSelector:K,VoicePicker:T(q,[[`render`,X],[`__scopeId`,`data-v-ac9e3a92`]]),Consumption:A},emits:[`generate`],computed:{config(){return this.$store.state.fish?.config},consumption(){return S(this.config,this.service?.cost)},service(){return this.$store.state.fish?.service},canGenerate(){let e=this.config?.text;return typeof e==`string`&&e.trim().length>0},speed:{get(){return this.config?.prosody?.speed??1},set(e){this.$store.commit(`fish/setConfig`,{...this.config,prosody:{...this.config?.prosody??{},speed:e}})}}},methods:{onGenerate(){this.$emit(`generate`)}}}),Q={class:`flex flex-col h-full`},ne={class:`flex-1 overflow-y-auto p-5`},re={class:`field mb-2`},ie={class:`title font-bold`},ae={class:`flex flex-col items-center justify-center px-5 pb-5`};function oe(e,r,a,s,u,d){let m=f(`text-input`),h=f(`model-selector`),g=f(`voice-picker`),_=f(`el-slider`),v=f(`consumption`),y=f(`font-awesome-icon`),b=f(`el-button`);return l(),t(`div`,Q,[n(`div`,ne,[o(m,{class:`mb-4`}),o(h,{class:`mb-4`}),o(g,{class:`mb-4`}),n(`div`,re,[n(`h2`,ie,c(e.$t(`fish.name.speed`)),1),o(_,{modelValue:e.speed,"onUpdate:modelValue":r[0]||=t=>e.speed=t,min:.5,max:2,step:.1,class:`value`,"show-input":``},null,8,[`modelValue`])])]),n(`div`,ae,[o(v,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),o(b,{type:`primary`,class:`btn w-full`,round:``,disabled:!e.canGenerate,onClick:e.onGenerate},{default:p(()=>[o(y,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+c(e.$t(`fish.button.generate`)),1)]),_:1},8,[`disabled`,`onClick`])])])}var se=T(Z,[[`render`,oe],[`__scopeId`,`data-v-1ccd36ba`]]),ce=r({name:`FishTaskPreview`,components:{ElImage:_,CopyToClipboard:k,FontAwesomeIcon:O,ElAlert:v,ElButton:m,ApiCodeButton:N},props:{modelValue:{type:Object,required:!0}},computed:{prompt(){return this.modelValue?.request?.text},audioUrl(){return this.modelValue?.response?.audio_url}},methods:{onDownload(e){window.open(e,`_blank`)}}}),le={class:`preview`},ue={class:`left`},de={class:`main`},fe={class:`bot`},pe={class:`datetime`},me={class:`info`},he={key:0,class:`prompt mt-2`},ge={key:0},_e={key:0,class:`content`},ve=[`src`],ye={class:`operations mt-2`},be={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},xe={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Se={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ce={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},we={key:1,class:`content`},Te={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Ee(e,r,a,s,m,h){let g=f(`el-image`),_=f(`el-button`),v=f(`api-code-button`),y=f(`font-awesome-icon`),b=f(`copy-to-clipboard`),x=f(`el-alert`);return l(),t(`div`,le,[n(`div`,ue,[o(g,{src:`https://cdn.acedata.cloud/e40fccc727.png`,class:`avatar`})]),n(`div`,de,[n(`div`,fe,[i(c(e.$t(`fish.name.fishBot`))+` `,1),n(`span`,pe,c(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,me,[e.prompt?(l(),t(`p`,he,[i(c(e.prompt)+` `,1),e.modelValue?.response?d(``,!0):(l(),t(`span`,ge,` - (`+c(e.$t(`fish.status.pending`))+`) `,1))])):d(``,!0)]),e.audioUrl?(l(),t(`div`,_e,[n(`audio`,{src:e.audioUrl,controls:``,preload:`metadata`,class:`w-full mb-3`},null,8,ve),n(`div`,ye,[o(_,{type:`info`,size:`small`,class:`mb-2`,onClick:r[0]||=u(t=>e.onDownload(e.audioUrl),[`stop`])},{default:p(()=>[i(c(e.$t(`fish.button.download`)),1)]),_:1}),o(v,{path:`/fish/tts`,body:e.modelValue?.request},null,8,[`body`])]),o(x,{closable:!1,class:`mt-2 success`},{default:p(()=>[e.modelValue?.request?.model?(l(),t(`p`,be,[o(y,{icon:`fa-solid fa-microchip`,class:`mr-1`}),i(` `+c(e.$t(`fish.name.model`))+`: `+c(e.modelValue?.request?.model),1)])):d(``,!0),e.modelValue?.request?.reference_id?(l(),t(`p`,xe,[o(y,{icon:`fa-solid fa-microphone`,class:`mr-1`}),i(` `+c(e.$t(`fish.name.referenceId`))+`: `+c(e.modelValue?.request?.reference_id)+` `,1),o(b,{content:e.modelValue?.request?.reference_id},null,8,[`content`])])):d(``,!0),n(`p`,Se,[o(y,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+c(e.$t(`fish.name.taskId`))+`: `+c(e.modelValue?.id)+` `,1),o(b,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.elapsed?(l(),t(`p`,Ce,[o(y,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+c(e.$t(`fish.name.elapsed`))+`: `+c(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):d(``,!0)]),_:1})])):(l(),t(`div`,we,[o(x,{closable:!1,class:`info`},{default:p(()=>[n(`p`,Te,[o(y,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+c(e.$t(`fish.name.taskId`))+`: `+c(e.modelValue?.id)+` `,1),o(b,{content:e.modelValue?.id},null,8,[`content`])])]),_:1})]))])])}var De=r({name:`FishRecentPanel`,components:{TaskPreview:T(ce,[[`render`,Ee],[`__scopeId`,`data-v-754753f2`]]),BotPlaceholder:P,NoTasks:F,ScrollList:j},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],computed:{tasks(){return{...this.$store.state.fish?.tasks,items:this.$store.state.fish?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),$={key:0},Oe={key:2,class:`w-full h-full flex items-center justify-center`};function ke(n,r,i,c,u,m){let h=f(`bot-placeholder`),g=f(`task-preview`),_=f(`scroll-list`),v=f(`no-tasks`);return l(),t(s,null,[n.tasks?.items===void 0?(l(),t(`div`,$,[o(h)])):n.tasks?.items?.length&&n.tasks?.items?.length>0?(l(),a(_,{key:1,ref:`scrollList`,class:`tasks w-full h-full overflow-y-auto`,loading:n.loading,onReachTop:r[0]||=e=>n.$emit(`reach-top`)},{default:p(()=>[(l(!0),t(s,null,e(n.tasks?.items,e=>(l(),a(g,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):d(``,!0),n.tasks?.items?.length===0?(l(),t(`div`,Oe,[o(v)])):d(``,!0)],64)}var Ae=r({name:`FishTtsIndex`,components:{ConfigPanel:se,Layout:I,RecentPanel:T(De,[[`render`,ke]]),TabSwitcher:L},mixins:[D],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.fish?.status?.getApplications===w.Request},tasksLoading(){return this.$store.state.fish?.status?.getTasks===w.Request||this.fetchingTasks},credential(){return this.$store.state.fish?.credential},config(){return this.$store.state.fish?.config},application(){return this.$store.state.fish?.application},tasks(){return this.$store.state.fish?.tasks}},watch:{initialized:{async handler(e){e&&(await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService(),await this.$store.dispatch(`fish/getVoices`)},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await M({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){await this.$store.dispatch(`fish/getService`)},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks)return;let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};this.fetchingTasks=!0;try{await this.$store.dispatch(`fish/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!ee(this.uploadTracker,e=>this.$t(e),e=>C.warning(e)))return;let e=this.config??{},t=e.text?.trim();if(!t){C.warning(this.$t(`fish.message.textRequired`));return}let n=this.credential?.token;if(!n){console.error(`no token specified`);return}let r=e.model||`s2-pro`,i={text:t,async:!0};e.reference_id&&(i.reference_id=e.reference_id),e.format&&(i.format=e.format),e.prosody&&Object.keys(e.prosody).length>0&&(i.prosody=e.prosody),C.info(this.$t(`fish.message.startingTask`)),te(`fish`,E.generateTts(i,{token:n,model:r})).then(()=>{C.success(this.$t(`fish.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?C.error(this.$t(`fish.message.usedUp`)):C.error(this.$t(`fish.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}}),je={class:`flex flex-col h-full`},Me={class:`flex-1 min-h-0`};function Ne(e,t,r,i,s,c){let u=f(`tab-switcher`),d=f(`config-panel`),m=f(`recent-panel`),h=f(`layout`);return l(),a(h,null,{config:p(()=>[n(`div`,je,[o(u),n(`div`,Me,[o(d,{onGenerate:e.onGenerate},null,8,[`onGenerate`])])])]),result:p(()=>[o(m,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var Pe=T(Ae,[[`render`,Ne]]);export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{oi as e}from"./index-D-Qqijue.js";var t=e(`PushNotifications`,{});export{t as PushNotifications};
|