@acedatacloud/nexior 3.293.0 → 3.293.1
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-DHL1psv6.js → ApiCodeButton-D1SodmBd.js} +1 -1
- package/dist/assets/{AskUserQuestionCard-DEJ8a9Pr.js → AskUserQuestionCard-BqQAMxfb.js} +2 -2
- package/dist/assets/{Auth-BKxCO19P.js → Auth-C5p0RTJg.js} +1 -1
- package/dist/assets/{Bare-DBq_LMCe.js → Bare-BklV6JL7.js} +1 -1
- package/dist/assets/{BotPlaceholder-AGDn5BIB.js → BotPlaceholder-6XDbb6nY.js} +1 -1
- package/dist/assets/{BottomFooter-Cl72Smtt.js → BottomFooter-fmcFt1uP.js} +1 -1
- package/dist/assets/{Callback-Bax3x1EJ.js → Callback-_1d-YAIF.js} +1 -1
- package/dist/assets/{CodeSnippet-9b32YgDc.js → CodeSnippet-Cvq9OGG3.js} +1 -1
- package/dist/assets/{Console-Capkcwbx.js → Console-6-4BBZk9.js} +1 -1
- package/dist/assets/{Consumption-BlNXmhQj.js → Consumption-C3XBSNC_.js} +1 -1
- package/dist/assets/Conversation-Bvx_02jY.js +3 -0
- package/dist/assets/{CopyToClipboard-B_dyXgFi.js → CopyToClipboard-qY8oOQf0.js} +1 -1
- package/dist/assets/Detail-CfIJtaf5.js +2 -0
- package/dist/assets/{Extra-BA0bhp2N.js → Extra-CwLC0ycn.js} +1 -1
- package/dist/assets/{FilePreview-WAxE0kEZ.js → FilePreview-CMOjwzji.js} +1 -1
- package/dist/assets/{Hailuo-B70yNMVH.js → Hailuo-D2lRLQp_.js} +1 -1
- package/dist/assets/{History-Ha1Vi97k.js → History-DpbSRnnG.js} +1 -1
- package/dist/assets/{ImagePreview-Vv03BqSl.js → ImagePreview-Dv8PlZ7b.js} +1 -1
- package/dist/assets/{ImageWrapper-DGhpSbM-.js → ImageWrapper-DjCv8vQh.js} +1 -1
- package/dist/assets/{Index-ab4Dh82g.js → Index-243S1nGf.js} +1 -1
- package/dist/assets/{Index-Cl7G9L9R.js → Index-BAtXewgO.js} +1 -1
- package/dist/assets/{Index-d-4T9CGU.js → Index-BIXV5hAF.js} +1 -1
- package/dist/assets/Index-BMGiN26b.js +1 -0
- package/dist/assets/{Index-CGPN7CFA.js → Index-BTvIEHUY.js} +1 -1
- package/dist/assets/{Index-9H28ZDD8.js → Index-BX43wxOV.js} +1 -1
- package/dist/assets/{Index-D4UXdc0r.js → Index-BsO5hjZ6.js} +1 -1
- package/dist/assets/{Index-CT5uZBlM.js → Index-C1I7BNRn.js} +1 -1
- package/dist/assets/{Index-DGXvfGL6.js → Index-C1rMv2Li.js} +1 -1
- package/dist/assets/Index-C5sVeeSV.js +1 -0
- package/dist/assets/{Index-DiVRkTcD.js → Index-C8yWadGw.js} +1 -1
- package/dist/assets/Index-CIlyOn2c.js +1 -0
- package/dist/assets/Index-CNjMCqG2.js +1 -0
- package/dist/assets/{Index-ZoXCNoYI.js → Index-CkXKBjG3.js} +1 -1
- package/dist/assets/{Index-CFwQ8m0x.js → Index-CtucdIqD.js} +1 -1
- package/dist/assets/Index-DD-eT8QW.js +1 -0
- package/dist/assets/{Index-ChV5qQPw.js → Index-DOsdWyPg.js} +1 -1
- package/dist/assets/Index-DU9Gx0Ub.js +1 -0
- package/dist/assets/{Index-BNRrgXx8.js → Index-DkhC276z.js} +1 -1
- package/dist/assets/{Index-a6nPxQkt.js → Index-Dn53uPdk.js} +1 -1
- package/dist/assets/{Index-D4l7fBCW.js → Index-Dp6MnrqD.js} +1 -1
- package/dist/assets/{Index-DMza2Vzw.js → Index-G2XQ1Fp2.js} +1 -1
- package/dist/assets/{Index-BL6v432O.js → Index-KI2E4jEF.js} +1 -1
- package/dist/assets/{Index-CYnt1uxC.js → Index-dPT0TLwv.js} +1 -1
- package/dist/assets/{Index-D86i74Da.js → Index-fx3WwNWg.js} +2 -2
- package/dist/assets/{Index-CBVHHryC.js → Index-gfQv2WQa.js} +1 -1
- package/dist/assets/{Index-DlabbKUb.js → Index-jDPSa9kL.js} +1 -1
- package/dist/assets/Index-jcWZFjx4.js +1 -0
- package/dist/assets/{Invitees-yP68lsRH.js → Invitees-T4E_jvwP.js} +1 -1
- package/dist/assets/{List-BSa9rJc2.js → List-Cjy1l2D5.js} +1 -1
- package/dist/assets/{List-CSRTG_mC.js → List-DWqnltrl.js} +1 -1
- package/dist/assets/{List-SDZ-LWsB.js → List-Ddf11FuU.js} +1 -1
- package/dist/assets/{LocalTools--EW6hoHF.js → LocalTools-BpEYPkk3.js} +1 -1
- package/dist/assets/{LocalTools-DSLojBfS.js → LocalTools-C8TbItXc.js} +1 -1
- package/dist/assets/{Main-CBJN0qFc.js → Main-BBQKfYso.js} +1 -1
- package/dist/assets/{Model-D4imzpdN.js → Model-D2RPrHFs.js} +1 -1
- package/dist/assets/{Navigator-CCjpZXOW.css → Navigator-D1SCrf5n.css} +1 -1
- package/dist/assets/{Navigator-Cq5RiO0g.js → Navigator-wiGMgZVe.js} +4 -4
- package/dist/assets/{NoTasks-ONVYMCv3.js → NoTasks-BTALnelO.js} +1 -1
- package/dist/assets/{NotFound-DFHEdAVk.js → NotFound-CBMjRX2-.js} +1 -1
- package/dist/assets/{Pagination-S9W1EohO.js → Pagination-Ck0XAccX.js} +1 -1
- package/dist/assets/Pay-DW2iyjk1.js +1 -0
- package/dist/assets/{Player-zovaflvR.js → Player-BkGuu6lx.js} +1 -1
- package/dist/assets/{PromptTextarea-B0M-KULX.js → PromptTextarea-BYhIlTRp.js} +1 -1
- package/dist/assets/{RealtimeCall-WIPF4l-5.js → RealtimeCall-DPmoj3lh.js} +1 -1
- package/dist/assets/{ScheduledTasks-D5PFc9tT.js → ScheduledTasks-BpOefssZ.js} +2 -2
- package/dist/assets/{Status-BPJMdhvN.js → Status-D3HBIyzN.js} +1 -1
- package/dist/assets/{Subscribe-C2n0pNDc.js → Subscribe-B2C6GlU2.js} +1 -1
- package/dist/assets/TabSwitcher-CiFHDgQt.js +1 -0
- package/dist/assets/{Tts-Yd4qJbQ7.js → Tts-iRLzVHEu.js} +1 -1
- package/dist/assets/{VideoPlayer-Bc_s62A_.js → VideoPlayer-fj_u1MLp.js} +1 -1
- package/dist/assets/{avatar-QAgIQcP2.js → avatar-DylNTSpX.js} +1 -1
- package/dist/assets/{basic-WmuDRDej.js → basic-Dba_1bcq.js} +1 -1
- package/dist/assets/{chat-z7ohbhyN.js → chat-B01ePF-l.js} +1 -1
- package/dist/assets/{codingBridge-D0mz81Wx.js → codingBridge-DMYESiFR.js} +2 -2
- package/dist/assets/{codingBridgeNotify-DJqzAYr_.js → codingBridgeNotify-SXiNGrbu.js} +2 -2
- package/dist/assets/{collapse-IvJDHrw-.js → collapse-CxFSXzed.js} +1 -1
- package/dist/assets/{createTaskActions-BWpwXJX6.js → createTaskActions-D-voR_MV.js} +1 -1
- package/dist/assets/{date-picker-B4WsLBJZ.js → date-picker-DqhbZy6O.js} +1 -1
- package/dist/assets/{digitalhuman-Dll-npeH.js → digitalhuman-CDZdHuX_.js} +1 -1
- package/dist/assets/{dropdown-BIbINvSB.js → dropdown-BJDfXHmL.js} +1 -1
- package/dist/assets/{esm-COIhkMzG.js → esm-28TqD_uR.js} +1 -1
- package/dist/assets/esm-B3pGKSBU.js +1 -0
- package/dist/assets/{esm-DnGJpo_G.js → esm-CQT8xAz2.js} +2 -2
- package/dist/assets/{esm-9KMabZri.js → esm-Dc3UhknS.js} +2 -2
- package/dist/assets/{esm-H4QWsTe8.js → esm-DdJLuxWe.js} +1 -1
- package/dist/assets/{esm-CZIaQUu7.js → esm-UQZMuHYt.js} +3 -3
- package/dist/assets/{esm-pARjdO3I.js → esm-zjk58Nzm.js} +1 -1
- package/dist/assets/{fish-DJMLCK2H.js → fish-BBkjlKRG.js} +1 -1
- package/dist/assets/{flux-CMc2TYCP.js → flux-Bis7qeCp.js} +1 -1
- package/dist/assets/{grokvideo-Dr9XhC4T.js → grokvideo-fOgQHBme.js} +1 -1
- package/dist/assets/{hailuo-C57J-o7f.js → hailuo-BycRHc7s.js} +1 -1
- package/dist/assets/{veo-jH-ooSlN.js → headshots-D2Qr4n6m.js} +1 -1
- package/dist/assets/{image-DGBTHOGs.js → image-DhUf1SwK.js} +1 -1
- package/dist/assets/{index-gL6ghX1C.js → index-BiQB19uW.js} +3 -3
- package/dist/assets/{index.browser.esm-BgrNpPGG.js → index.browser.esm-Y2hvZThs.js} +1 -1
- package/dist/assets/{index.es-CigRTulG.js → index.es-BsCuAkPm.js} +1 -1
- package/dist/assets/{input-number-BmRF0OYd.js → input-number-BLavrLl1.js} +1 -1
- package/dist/assets/{kling-DwjhsSrJ.js → kling-bFnHxLKX.js} +1 -1
- package/dist/assets/{luma-OdJ82WSY.js → luma-CxaOHxMy.js} +1 -1
- package/dist/assets/{maestro-D3R5Xlpu.js → maestro-DrdbPCcs.js} +1 -1
- package/dist/assets/{midjourney-BfXWk_fo.js → midjourney-CIg5pwEq.js} +1 -1
- package/dist/assets/{nanobanana-BQtnSnzh.js → nanobanana-CewM0i-d.js} +1 -1
- package/dist/assets/{openaiimage-eLfG-AA6.js → openaiimage-BsQ3-7eH.js} +1 -1
- package/dist/assets/{pagination-mJTTut6-.js → pagination-Claj-ghi.js} +2 -2
- package/dist/assets/{pika-CkEx4Qak.js → pika-tZr2vBFM.js} +1 -1
- package/dist/assets/pixverse-4GkndLJt.js +1 -0
- package/dist/assets/{popover-DKZGLu68.js → popover-C3IayYLp.js} +1 -1
- package/dist/assets/{producer-D4qmcDYq.js → producer-CsCytL77.js} +1 -1
- package/dist/assets/{qrart-SL7zNNe-.js → qrart-CRPrDUVY.js} +1 -1
- package/dist/assets/realtime-C9hK9g4F.js +1 -0
- package/dist/assets/{row-jaZV5BQZ.js → row-dLLfON-r.js} +1 -1
- package/dist/assets/{seedance-BTfhs8kI.js → seedance-1EwzdwRn.js} +1 -1
- package/dist/assets/{seedream-5toxxKNM.js → seedream--ahPQJH-.js} +1 -1
- package/dist/assets/{select-BrwwSdS7.js → select-B48QP8uZ.js} +1 -1
- package/dist/assets/{serp-B7kYkH8h.js → serp-B1-nf-1y.js} +1 -1
- package/dist/assets/{slider-ITjltrX6.js → slider-S5rEahFQ.js} +1 -1
- package/dist/assets/{solana-wallets-VjbaLARA.js → solana-wallets-C_drPXg4.js} +2 -2
- package/dist/assets/{solana-wallets-vue-C6rE9llD.js → solana-wallets-vue-O9tCPjfl.js} +1 -1
- package/dist/assets/sora-CLgwYIlD.js +1 -0
- package/dist/assets/{suno-Di7XZgTj.js → suno-Dli-TPCQ.js} +1 -1
- package/dist/assets/{switch-Dt8eZdY2.js → switch-DlglvsgH.js} +1 -1
- package/dist/assets/{tabs-BZ7XmGMM.js → tabs-MD2mux_F.js} +1 -1
- package/dist/assets/{time-picker-DJZUjD6p.js → time-picker-BX8oDwS-.js} +1 -1
- package/dist/assets/{upload-DHc6yOwN.js → upload-BOgZP4Et.js} +1 -1
- package/dist/assets/{headshots-BJ_GX0HE.js → veo-Dxv1XnQJ.js} +1 -1
- package/dist/assets/{wan-DD1czZuj.js → wan-C35zEuTr.js} +1 -1
- package/dist/assets/{web-CIjmEYfs.js → web-436kAffj.js} +1 -1
- package/dist/assets/{web-CGxChUxn.js → web-9CTZQRaH.js} +1 -1
- package/dist/assets/{web-B-a50y_S.js → web-BH4RXorO.js} +1 -1
- package/dist/assets/{web-B9tU-eAX.js → web-CppNxPzI.js} +1 -1
- package/dist/assets/{web-BQIEmQ2X.js → web-DXXpg-Vl.js} +1 -1
- package/dist/assets/{webextrator-Csp3-E2y.js → webextrator-DVLVw66w.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Conversation-DcEATo8E.js +0 -3
- package/dist/assets/Detail-BKbvzG2H.js +0 -2
- package/dist/assets/Index-BpT-sfst.js +0 -1
- package/dist/assets/Index-CKG8RMcq.js +0 -1
- package/dist/assets/Index-DZJSbM3h.js +0 -1
- package/dist/assets/Index-Dlz2JUB_.js +0 -1
- package/dist/assets/Index-P7XwliQW.js +0 -1
- package/dist/assets/Index-Wbxfz6DA.js +0 -1
- package/dist/assets/Index-_rPhVcZ2.js +0 -1
- package/dist/assets/Pay-CscZsd16.js +0 -1
- package/dist/assets/TabSwitcher-D6feOoo9.js +0 -1
- package/dist/assets/esm-BSEq6uqK.js +0 -1
- package/dist/assets/pixverse-DDDLZuks.js +0 -1
- package/dist/assets/realtime-oYHlHJlc.js +0 -1
- package/dist/assets/sora-BKBb-wOl.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
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-B48QP8uZ.js";import{n as T,t as E}from"./tabs-MD2mux_F.js";import{t as D}from"./upload-BOgZP4Et.js";import{t as O}from"./tooltip-BxeH2Vts.js";import{t as k}from"./image-DhUf1SwK.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-BJDfXHmL.js";import{t as I}from"./input-number-BLavrLl1.js";import{t as L}from"./slider-S5rEahFQ.js";import{t as R}from"./switch-DlglvsgH.js";import{gi as z,hi as B}from"./constants-DayHF6p0.js";import{Bn as V,Bt as H,Dr as ee,Er as U,Ir as W,Kr as G,Nr as K,O as q,Or as te,Rt as ne,Ut as re,Vt as J,Yr as ie,Zr as ae,qn as Y,zt as X}from"./index-BiQB19uW.js";import{t as Z}from"./index.es-BsCuAkPm.js";import{t as oe}from"./CopyToClipboard-qY8oOQf0.js";import{t as Q}from"./ImagePreview-Dv8PlZ7b.js";import{n as se}from"./taskDrawerMixin-DEgO_R5H.js";import{t as ce}from"./Consumption-C3XBSNC_.js";import{i as $,n as le,t as ue}from"./pagination-Claj-ghi.js";import{t as de}from"./VideoPlayer-fj_u1MLp.js";import{t as fe}from"./ApiCodeButton-D1SodmBd.js";import{t as pe}from"./BotPlaceholder-6XDbb6nY.js";import{t as me}from"./NoTasks-BTALnelO.js";import{t as he}from"./PromptTextarea-BYhIlTRp.js";import{t as ge}from"./ImageWrapper-DjCv8vQh.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:[J,X],emits:[`change`],data(){return{fileList:[],uploadUrl:W()+`/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(){G.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){G.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:[J,X],emits:[`change`],data(){return{fileList:[],uploadUrl:W()+`/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(){G.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){G.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:[J,X],emits:[`change`],data(){return{fileList:[],uploadUrl:W()+`/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(){G.warning(this.$t(`midjourney.message.uploadStartImageExceed`))},onError(){G.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:ae,ElIcon:S,ElTabPane:E,ElImage:k,ElDialog:ie,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:[J,X],emits:[`change`],data(){return{fileList:[],uploadUrl:W()+`/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(){G.warning(this.$t(`midjourney.message.uploadReferencesExceed`))},onError(){G.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 re(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:ae,CopyToClipboard:oe,VideoPlayer:de,ApiCodeButton:fe},props:{modelValue:{type:Object,required:!0},full:{type:Boolean,default:!1}},emits:[`custom`],data(){return{midjourneyImagineState:ee,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]} (${re({...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:[H],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===K.Request},tasksLoading(){return this.$store.state.midjourney.status.getTasks===K.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){G.error(this.$t(`midjourney.message.promptRequired`));return}G.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,V.imagine(e,{token:t})).then(()=>{G.success(this.$t(`midjourney.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?G.error(this.$t(`midjourney.message.usedUp`)):G.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){G.error(this.$t(`midjourney.message.promptRequired`));return}if(e.action!==te.EXTEND&&!e.image_url){G.error(this.$t(`midjourney.message.imageUrlRequired`));return}G.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,V.videos(e,{token:t})).then(()=>{G.success(this.$t(`midjourney.message.startVideosTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?G.error(this.$t(`midjourney.message.usedUp`)):G.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}G.info(this.$t(`midjourney.message.startingTask`)),Y(`midjourney`,V.describe(e,{token:t})).then(()=>{G.success(this.$t(`midjourney.message.startDescribeTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?G.error(this.$t(`midjourney.message.usedUp`)):G.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(ne(this.uploadTracker,e=>this.$t(e),e=>G.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){G.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime--c01j_DQ.js";import{$ as e,A as t,D as n,F as r,N as i,O as a,P as o,S as s,Ut as c,Vt as l,Wt as u,Z as d,b as f,dt as p,et as m,k as h,tt as g,ut as _,v}from"./vendor-chart-BJCvKk8-.js";import{t as y}from"./button-BydTr5nV.js";import{r as b,t as x}from"./select-B48QP8uZ.js";import{t as S}from"./upload-BOgZP4Et.js";import{t as C}from"./tooltip-BxeH2Vts.js";import{t as w}from"./image-DhUf1SwK.js";import{t as T}from"./alert-CuX4SjQB.js";import{t as E}from"./drawer-R6pcaap2.js";import{t as D}from"./input-number-BLavrLl1.js";import{t as O}from"./switch-DlglvsgH.js";import{$t as k,Bt as A,Gt as j,Jt as ee,Kt as te,Qt as ne,Ut as M,Vt as N,Wt as P,Xt as re,Yt as ie,Zt as ae,an as F,cn as oe,en as se,in as I,ln as ce,nn as le,on as L,qt as R,rn as z,tn as B,un as V}from"./constants-DayHF6p0.js";import{Bt as H,Ir as U,Kr as W,Nr as G,O as K,Rt as ue,Ut as de,Vt as q,ln as fe,qn as pe,zt as J}from"./index-BiQB19uW.js";import{t as Y}from"./index.es-BsCuAkPm.js";import{t as me}from"./CopyToClipboard-qY8oOQf0.js";import{t as X}from"./ImagePreview-Dv8PlZ7b.js";import{n as he}from"./taskDrawerMixin-DEgO_R5H.js";import{t as ge}from"./Consumption-C3XBSNC_.js";import{i as Z,n as _e,t as ve}from"./pagination-Claj-ghi.js";import{t as ye}from"./VideoPlayer-fj_u1MLp.js";import{t as be}from"./ApiCodeButton-D1SodmBd.js";import{t as xe}from"./BotPlaceholder-6XDbb6nY.js";import{t as Se}from"./NoTasks-BTALnelO.js";import{t as Ce}from"./PromptTextarea-BYhIlTRp.js";import{t as we}from"./ImageWrapper-DjCv8vQh.js";var Te=r({name:`LayoutSeedance`,components:{ElDrawer:E,ElButton:y,FontAwesomeIcon:Y},mixins:[he]}),Ee={class:`main flex flex-row flex-1`},De={class:`config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},Oe={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function ke(e,r,i,a,s,c){let l=g(`font-awesome-icon`),u=g(`el-button`),f=g(`el-drawer`);return d(),t(`div`,Ee,[n(`div`,De,[m(e.$slots,`config`,{},void 0,!0)]),n(`div`,Oe,[m(e.$slots,`result`,{},void 0,!0)]),p(o(u,{circle:``,class:`menu`,onClick:r[0]||=t=>e.drawer=!0},{default:_(()=>[o(l,{icon:`fa-solid fa-magic`})]),_:1},512),[[v,!e.tasksEmpty]]),o(f,{modelValue:e.drawer,"onUpdate:modelValue":r[1]||=t=>e.drawer=t,direction:`ltr`,"with-header":!1,size:`350px`},{default:_(()=>[m(e.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var Ae=K(Te,[[`render`,ke],[`__scopeId`,`data-v-ec312952`]]),je=r({name:`SeedancePromptInput`,components:{PromptTextarea:Ce},computed:{prompt:{get(){return this.$store.state.seedance?.config?.prompt},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,prompt:e})}}},mounted(){this.prompt||=``}});function Me(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(`seedance.name.prompt`),info:e.$t(`seedance.description.prompt`),placeholder:e.$t(`seedance.placeholder.prompt`),"min-rows":5},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Ne=K(je,[[`render`,Me]]),Pe=r({name:`SeedanceModelSelector`,components:{ElSelect:b,ElOption:x,InfoIcon:Z},data(){return{options:[{value:re,label:this.$t(`seedance.model.seedance20`)},{value:ae,label:this.$t(`seedance.model.seedance20Fast`)},{value:ne,label:this.$t(`seedance.model.seedance20Mini`)},{value:ie,label:this.$t(`seedance.model.seedance15pro`)},{value:R,label:this.$t(`seedance.model.seedance10pro`)},{value:ee,label:this.$t(`seedance.model.seedance10proFast`)},{value:te,label:this.$t(`seedance.model.seedance10liteT2v`)},{value:j,label:this.$t(`seedance.model.seedance10liteI2v`)}]}},computed:{value:{get(){return this.$store.state.seedance?.config?.model},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,model:e})}}},mounted(){this.value||=A}}),Fe={class:`field`},Ie={class:`label`},Le={class:`box`},Re={class:`title font-bold`};function ze(r,i,c,l,f,p){let m=g(`info-icon`),h=g(`el-option`),v=g(`el-select`);return d(),t(`div`,Fe,[n(`div`,Ie,[n(`div`,Le,[n(`h2`,Re,u(r.$t(`seedance.name.model`)),1),o(m,{content:r.$t(`seedance.description.model`),class:`info`},null,8,[`content`])])]),o(v,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`seedance.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Be=K(Pe,[[`render`,ze],[`__scopeId`,`data-v-deb4c429`]]),Ve=r({name:`SeedanceDurationSelector`,components:{ElSelect:b,ElOption:x,InfoIcon:Z},computed:{model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},options(){let e=[];for(let t=this.capability.minDuration;t<=this.capability.maxDuration;t++)e.push({value:t,label:`${t}s`});return e},value:{get(){return this.$store.state.seedance?.config?.duration},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,duration:e})}}},watch:{model(){this.clampValue()}},mounted(){this.value?this.clampValue():this.value=5},methods:{clampValue(){let e=this.value;e!==void 0&&(e<this.capability.minDuration||e>this.capability.maxDuration)&&(this.value=5)}}}),He={class:`field`},Ue={class:`label`},We={class:`box`},Ge={class:`title font-bold`};function Ke(r,i,c,l,f,p){let m=g(`info-icon`),h=g(`el-option`),v=g(`el-select`);return d(),t(`div`,He,[n(`div`,Ue,[n(`div`,We,[n(`h2`,Ge,u(r.$t(`seedance.name.duration`)),1),o(m,{content:r.$t(`seedance.description.duration`),class:`info`},null,8,[`content`])])]),o(v,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`seedance.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var qe=K(Ve,[[`render`,Ke],[`__scopeId`,`data-v-216def8f`]]),Q={[F]:0,[L]:1,[I]:2,"4k":3},Je=r({name:`SeedanceResolutionSelector`,components:{InfoIcon:Z,ElTooltip:C},computed:{model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},options(){let e=[{value:F,label:`480p`},{value:L,label:`720p`},{value:I,label:`1080p`},{value:`4k`,label:`4k`}],t=Q[this.capability.maxResolution]??Q[`1080p`];return e.map(e=>({...e,disabled:Q[e.value]>t}))},value:{get(){return this.$store.state.seedance?.config?.resolution},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,resolution:e})}}},watch:{model(){this.clampValue()}},mounted(){this.value?this.clampValue():this.value=this.capability.defaultResolution||`720p`},methods:{onSelect(e){e.disabled||(this.value=e.value)},clampValue(){let e=this.value,t=this.options.find(t=>t.value===e);(!e||t&&t.disabled)&&(this.value=this.capability.defaultResolution||`720p`)}}}),Ye={class:`resolution`},Xe={class:`header`},Ze={class:`title font-bold`},Qe={class:`items`},$e=[`onClick`];function et(r,i,c,f,p,m){let h=g(`info-icon`),v=g(`el-tooltip`);return d(),t(`div`,Ye,[n(`div`,Xe,[n(`h2`,Ze,u(r.$t(`seedance.name.resolution`)),1),o(h,{content:r.$t(`seedance.description.resolution`),class:`info`},null,8,[`content`])]),n(`div`,Qe,[(d(!0),t(s,null,e(r.options,e=>(d(),a(v,{key:e.value,content:r.$t(`seedance.message.resolutionNotSupported`),disabled:!e.disabled,placement:`top`},{default:_(()=>[n(`div`,{class:l([`item`,{active:r.value===e.value,disabled:e.disabled}]),onClick:t=>r.onSelect(e)},u(e.label),11,$e)]),_:2},1032,[`content`,`disabled`]))),128))])])}var tt=K(Je,[[`render`,et],[`__scopeId`,`data-v-db7e8aff`]]),nt=r({name:`SeedanceRatioSelector`,components:{InfoIcon:Z},computed:{options(){return[{value:se,label:`16:9`,w:32,h:18},{value:le,label:`9:16`,w:18,h:32},{value:`4:3`,label:`4:3`,w:28,h:21},{value:`3:4`,label:`3:4`,w:21,h:28},{value:`1:1`,label:`1:1`,w:24,h:24},{value:B,label:`21:9`,w:34,h:14},{value:z,label:this.$t(`seedance.ratio.adaptive`),w:0,h:0}]},value:{get(){return this.$store.state.seedance?.config?.ratio},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,ratio:e})}}},mounted(){this.value||=N}}),rt={class:`ratio`},it={class:`header`},at={class:`title font-bold`},ot={class:`items`},st=[`onClick`],ct={class:`preview`},lt={key:1,class:`rect rect-auto`},ut={class:`name`};function dt(r,i,a,f,p,m){let h=g(`info-icon`);return d(),t(`div`,rt,[n(`div`,it,[n(`h2`,at,u(r.$t(`seedance.name.ratio`)),1),o(h,{content:r.$t(`seedance.description.ratio`),class:`info`},null,8,[`content`])]),n(`div`,ot,[(d(!0),t(s,null,e(r.options,e=>(d(),t(`div`,{key:e.value,class:l([`item`,{active:r.value===e.value}]),onClick:t=>r.value=e.value},[n(`div`,ct,[e.w&&e.h?(d(),t(`div`,{key:0,class:`rect`,style:c({width:e.w+`px`,height:e.h+`px`})},null,4)):(d(),t(`div`,lt,`A`))]),n(`div`,ut,u(e.label),1)],10,st))),128))])])}var ft=K(nt,[[`render`,dt],[`__scopeId`,`data-v-8ddec2dd`]]),pt=r({name:`SeedanceGenerateAudioSwitch`,components:{ElSwitch:O,InfoIcon:Z},computed:{isSupported(){let e=this.$store.state.seedance?.config?.model;return V(e).acceptsAudio},value:{get(){return this.$store.state.seedance?.config?.generate_audio??!1},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,generate_audio:e})}}},watch:{isSupported(e){!e&&this.value&&(this.value=!1)}},mounted(){this.value===void 0&&(this.value=!1)}}),mt={key:0,class:`field`},ht={class:`label`},gt={class:`box`},_t={class:`title font-bold`},vt={class:`value`};function yt(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-switch`);return e.isSupported?(d(),t(`div`,mt,[n(`div`,ht,[n(`div`,gt,[n(`h2`,_t,u(e.$t(`seedance.name.generateAudio`)),1),o(l,{content:e.$t(`seedance.description.generateAudio`),class:`info`},null,8,[`content`])])]),n(`div`,vt,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"inline-prompt":``,"active-text":e.$t(`seedance.button.on`),"inactive-text":e.$t(`seedance.button.off`)},null,8,[`modelValue`,`active-text`,`inactive-text`])])])):h(``,!0)}var bt=K(pt,[[`render`,yt],[`__scopeId`,`data-v-df51dfbd`]]),xt=r({name:`SeedanceCameraFixedSwitch`,components:{ElSwitch:O,InfoIcon:Z},computed:{value:{get(){return this.$store.state.seedance?.config?.camerafixed??!1},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,camerafixed:e})}}},mounted(){this.$store.state.seedance?.config?.camerafixed===void 0&&(this.value=!1)}}),St={class:`field`},Ct={class:`label`},wt={class:`box`},Tt={class:`title font-bold`},Et={class:`value`};function Dt(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-switch`);return d(),t(`div`,St,[n(`div`,Ct,[n(`div`,wt,[n(`h2`,Tt,u(e.$t(`seedance.name.cameraFixed`)),1),o(l,{content:e.$t(`seedance.description.cameraFixed`),class:`info`},null,8,[`content`])])]),n(`div`,Et,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"inline-prompt":``,"active-text":e.$t(`seedance.button.on`),"inactive-text":e.$t(`seedance.button.off`)},null,8,[`modelValue`,`active-text`,`inactive-text`])])])}var Ot=K(xt,[[`render`,Dt],[`__scopeId`,`data-v-ae777d61`]]),kt=r({name:`SeedanceFirstFrameImage`,components:{ElUpload:S,ElButton:y,InfoIcon:Z,FontAwesomeIcon:Y,ImagePreview:X},mixins:[q,J],data(){return{fileList:[],uploadUrl:U()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsImage"(e){e||(this.fileList=[],this.onSetFirstFrameUrl())}},methods:{onExceed(){W.warning(this.$t(`seedance.message.uploadExceed`))},onError(){W.error(this.$t(`seedance.message.uploadError`))},onSetFirstFrameUrl(){let e=this.urls?.[0],t=(this.$store.state.seedance?.config?.images||[]).filter(e=>e?.role!==`first_frame`);e&&t.push({url:e,role:`first_frame`}),this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,images:t.length>0?t:void 0})},async onSuccess(){this.onSetFirstFrameUrl()},async onRemove(){this.onSetFirstFrameUrl()}}}),At={key:0,class:`relative`},jt={class:`flex justify-between`},Mt={class:`flex justify-start items-center`},Nt={class:`text-sm font-bold`},Pt={key:0,class:`required-badge`};function Ft(e,r,s,c,l,f){let p=g(`info-icon`),m=g(`image-preview`),v=g(`font-awesome-icon`),y=g(`el-button`),b=g(`el-upload`);return e.capability.acceptsImage?(d(),t(`div`,At,[n(`div`,jt,[n(`div`,Mt,[n(`span`,Nt,u(e.$t(`seedance.name.firstFrame`)),1),e.capability.requiresImage?(d(),t(`span`,Pt,u(e.$t(`seedance.name.required`)),1)):h(``,!0),o(p,{content:e.$t(`seedance.description.firstFrame`)},null,8,[`content`])])]),o(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{file:_(({file:t})=>[t.url&&t.percentage!==void 0?(d(),a(m,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):h(``,!0)]),default:_(()=>[o(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):h(``,!0)}var It=K(kt,[[`render`,Ft],[`__scopeId`,`data-v-e2597f23`]]),Lt=r({name:`SeedanceLastFrameImage`,components:{ElUpload:S,ElButton:y,ImagePreview:X,InfoIcon:Z,FontAwesomeIcon:Y},mixins:[q,J],data(){return{fileList:[],uploadUrl:U()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsLastFrame"(e){e||(this.fileList=[],this.onSetLastFrameUrl())}},methods:{onExceed(){W.warning(this.$t(`seedance.message.uploadExceed`))},onError(){W.error(this.$t(`seedance.message.uploadError`))},onSetLastFrameUrl(){let e=this.urls?.[0],t=(this.$store.state.seedance?.config?.images||[]).filter(e=>e?.role!==`last_frame`);e&&t.push({url:e,role:`last_frame`}),this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,images:t.length>0?t:void 0})},async onSuccess(){this.onSetLastFrameUrl()},async onRemove(){this.onSetLastFrameUrl()}}}),Rt={key:0,class:`relative`},zt={class:`flex justify-between`},Bt={class:`flex justify-start items-center`},Vt={class:`text-sm font-bold`};function Ht(e,r,s,c,l,f){let p=g(`info-icon`),m=g(`image-preview`),v=g(`font-awesome-icon`),y=g(`el-button`),b=g(`el-upload`);return e.capability.acceptsLastFrame?(d(),t(`div`,Rt,[n(`div`,zt,[n(`div`,Bt,[n(`span`,Vt,u(e.$t(`seedance.name.lastFrame`)),1),o(p,{content:e.$t(`seedance.description.lastFrame`)},null,8,[`content`])])]),o(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{file:_(({file:t})=>[t.url&&t.percentage!==void 0?(d(),a(m,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):h(``,!0)]),default:_(()=>[o(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):h(``,!0)}var Ut=K(Lt,[[`render`,Ht],[`__scopeId`,`data-v-3a191e51`]]),Wt=r({name:`SeedanceReferenceImage`,components:{ElUpload:S,ElButton:y,InfoIcon:Z,FontAwesomeIcon:Y,ImagePreview:X},mixins:[q,J],data(){return{fileList:[],uploadUrl:U()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsReferenceImage"(e){e||(this.fileList=[],this.onSetReferenceImageUrls())}},methods:{onExceed(){W.warning(this.$t(`seedance.message.uploadExceed`))},onError(){W.error(this.$t(`seedance.message.uploadError`))},onSetReferenceImageUrls(){let e=(this.urls||[]).filter(Boolean),t=(this.$store.state.seedance?.config?.images||[]).filter(e=>e?.role!==`reference_image`);e.forEach(e=>t.push({url:e,role:`reference_image`})),this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,images:t.length>0?t:void 0})},async onSuccess(){this.onSetReferenceImageUrls()},async onRemove(){this.onSetReferenceImageUrls()}}}),Gt={key:0,class:`relative`},Kt={class:`flex justify-between`},qt={class:`flex justify-start items-center`},Jt={class:`text-sm font-bold`};function Yt(e,r,s,c,l,f){let p=g(`info-icon`),m=g(`image-preview`),v=g(`font-awesome-icon`),y=g(`el-button`),b=g(`el-upload`);return e.capability.acceptsReferenceImage?(d(),t(`div`,Gt,[n(`div`,Kt,[n(`div`,qt,[n(`span`,Jt,u(e.$t(`seedance.name.referenceImage`)),1),o(p,{content:e.$t(`seedance.description.referenceImage`)},null,8,[`content`])])]),o(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{file:_(({file:t})=>[t.url&&t.percentage!==void 0?(d(),a(m,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):h(``,!0)]),default:_(()=>[o(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):h(``,!0)}var Xt=K(Wt,[[`render`,Yt],[`__scopeId`,`data-v-230a67f6`]]),Zt=r({name:`SeedanceReferenceAudio`,components:{ElUpload:S,ElButton:y,InfoIcon:Z,FontAwesomeIcon:Y},mixins:[J],data(){return{fileList:[],uploadUrl:U()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsReferenceAudio"(e){e||(this.fileList=[],this.onSetReferenceAudios())}},methods:{onExceed(){W.warning(this.$t(`seedance.message.uploadExceed`))},onError(){W.error(this.$t(`seedance.message.uploadError`))},onSetReferenceAudios(){let e=(this.urls||[]).filter(Boolean);this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,audios:e.length>0?e.map(e=>({url:e})):void 0})},async onSuccess(){this.onSetReferenceAudios()},async onRemove(){this.onSetReferenceAudios()}}}),Qt={key:0,class:`relative`},$t={class:`flex justify-between`},en={class:`flex justify-start items-center`},tn={class:`text-sm font-bold`};function nn(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`font-awesome-icon`),m=g(`el-button`),v=g(`el-upload`);return e.capability.acceptsReferenceAudio?(d(),t(`div`,Qt,[n(`div`,$t,[n(`div`,en,[n(`span`,tn,u(e.$t(`seedance.name.referenceAudio`)),1),o(f,{content:e.$t(`seedance.description.referenceAudio`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.mp3,.wav,.m4a,.aac,.ogg,.flac`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`text`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{default:_(()=>[o(m,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(p,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):h(``,!0)}var rn=K(Zt,[[`render`,nn],[`__scopeId`,`data-v-49515675`]]),an=r({name:`SeedanceReferenceVideo`,components:{ElUpload:S,ElButton:y,InfoIcon:Z,FontAwesomeIcon:Y},mixins:[J],data(){return{fileList:[],uploadUrl:U()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return V(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsReferenceVideo"(e){e||(this.fileList=[],this.onSetReferenceVideos())}},methods:{onExceed(){W.warning(this.$t(`seedance.message.uploadExceed`))},onError(){W.error(this.$t(`seedance.message.uploadError`))},onSetReferenceVideos(){let e=(this.urls||[]).filter(Boolean);this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,videos:e.length>0?e.map(e=>({url:e})):void 0})},async onSuccess(){this.onSetReferenceVideos()},async onRemove(){this.onSetReferenceVideos()}}}),on={key:0,class:`relative`},sn={class:`flex justify-between`},cn={class:`flex justify-start items-center`},ln={class:`text-sm font-bold`};function un(e,r,a,s,c,l){let f=g(`info-icon`),p=g(`font-awesome-icon`),m=g(`el-button`),v=g(`el-upload`);return e.capability.acceptsReferenceVideo?(d(),t(`div`,on,[n(`div`,sn,[n(`div`,cn,[n(`span`,ln,u(e.$t(`seedance.name.referenceVideo`)),1),o(f,{content:e.$t(`seedance.description.referenceVideo`)},null,8,[`content`])])]),o(v,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.mp4,.mov,.webm,.mkv,.avi`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`text`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{default:_(()=>[o(m,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:_(()=>[o(p,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+u(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):h(``,!0)}var dn=K(an,[[`render`,un],[`__scopeId`,`data-v-b212c474`]]),fn=r({name:`SeedanceServiceTierSelector`,components:{ElSelect:b,ElOption:x,InfoIcon:Z},data(){return{options:[{value:oe,label:this.$t(`seedance.serviceTier.default`)},{value:ce,label:this.$t(`seedance.serviceTier.flex`)}]}},computed:{value:{get(){return this.$store.state.seedance?.config?.service_tier},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,service_tier:e})}}},mounted(){this.value||=M}}),pn={class:`field`},mn={class:`label`},hn={class:`box`},gn={class:`title font-bold`};function _n(r,i,c,l,f,p){let m=g(`info-icon`),h=g(`el-option`),v=g(`el-select`);return d(),t(`div`,pn,[n(`div`,mn,[n(`div`,hn,[n(`h2`,gn,u(r.$t(`seedance.name.serviceTier`)),1),o(m,{content:r.$t(`seedance.description.serviceTier`),class:`info`},null,8,[`content`])])]),o(v,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`seedance.placeholder.select`)},{default:_(()=>[(d(!0),t(s,null,e(r.options,e=>(d(),a(h,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var vn=K(fn,[[`render`,_n],[`__scopeId`,`data-v-cc938de2`]]),yn=r({name:`SeedanceReturnLastFrameSwitch`,components:{ElSwitch:O,InfoIcon:Z},computed:{model(){return this.$store.state.seedance?.config?.model},isSupported(){return V(this.model).acceptsReturnLastFrame},value:{get(){return this.$store.state.seedance?.config?.return_last_frame},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,return_last_frame:e})}}},watch:{isSupported(e){!e&&this.value&&(this.value=!1)}},mounted(){this.value===void 0&&(this.value=!1)}}),bn={key:0,class:`field`},xn={class:`label`},Sn={class:`box`},Cn={class:`title font-bold`},wn={class:`value`};function Tn(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-switch`);return e.isSupported?(d(),t(`div`,bn,[n(`div`,xn,[n(`div`,Sn,[n(`h2`,Cn,u(e.$t(`seedance.name.returnLastFrame`)),1),o(l,{content:e.$t(`seedance.description.returnLastFrame`),class:`info`},null,8,[`content`])])]),n(`div`,wn,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,"inline-prompt":``,"active-text":e.$t(`seedance.button.on`),"inactive-text":e.$t(`seedance.button.off`)},null,8,[`modelValue`,`active-text`,`inactive-text`])])])):h(``,!0)}var En=K(yn,[[`render`,Tn],[`__scopeId`,`data-v-edea5451`]]),Dn=r({name:`SeedanceSeedInput`,components:{ElInputNumber:D,InfoIcon:Z},computed:{value:{get(){let e=this.$store.state.seedance?.config?.seed;return typeof e==`number`?e:-1},set(e){let t={...this.$store.state.seedance?.config||{}};t.seed=typeof e==`number`&&Number.isInteger(e)?e:-1,this.$store.commit(`seedance/setConfig`,t)}}}}),On={class:`field`},kn={class:`label`},An={class:`box`},jn={class:`title font-bold`},Mn={class:`value`};function Nn(e,r,i,a,s,c){let l=g(`info-icon`),f=g(`el-input-number`);return d(),t(`div`,On,[n(`div`,kn,[n(`div`,An,[n(`h2`,jn,u(e.$t(`seedance.name.seed`)),1),o(l,{content:e.$t(`seedance.description.seed`),class:`info`},null,8,[`content`])])]),n(`div`,Mn,[o(f,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,min:-1,max:2147483647,step:1,size:`default`,"controls-position":`right`,class:`counter`},null,8,[`modelValue`])])])}var Pn=r({name:`SeedanceConfigPanel`,components:{ElButton:y,FontAwesomeIcon:Y,PromptInput:Ne,ModelSelector:Be,DurationSelector:qe,ResolutionSelector:tt,RatioSelector:ft,GenerateAudioSwitch:bt,CameraFixedSwitch:Ot,ServiceTierSelector:vn,ReturnLastFrameSwitch:En,SeedInput:K(Dn,[[`render`,Nn],[`__scopeId`,`data-v-685a9869`]]),FirstFrameImage:It,LastFrameImage:Ut,ReferenceImage:Xt,ReferenceAudio:rn,ReferenceVideo:dn,Consumption:ge},emits:[`generate`],computed:{config(){return this.$store.state.seedance?.config},consumption(){return de(this.config,this.service?.cost)},service(){return this.$store.state.seedance?.service}},methods:{onGenerate(){this.$emit(`generate`)}}}),Fn={class:`flex flex-col h-full`},In={class:`flex-1 overflow-y-auto p-5`},Ln={class:`flex flex-col items-center justify-center px-5 pb-5`};function Rn(e,r,a,s,c,l){let f=g(`prompt-input`),p=g(`model-selector`),m=g(`ratio-selector`),h=g(`resolution-selector`),v=g(`duration-selector`),y=g(`service-tier-selector`),b=g(`generate-audio-switch`),x=g(`camera-fixed-switch`),S=g(`return-last-frame-switch`),C=g(`seed-input`),w=g(`first-frame-image`),T=g(`last-frame-image`),E=g(`reference-image`),D=g(`reference-audio`),O=g(`reference-video`),k=g(`consumption`),A=g(`font-awesome-icon`),j=g(`el-button`);return d(),t(`div`,Fn,[n(`div`,In,[o(f,{class:`mb-4`}),o(p,{class:`mb-4`}),o(m,{class:`mb-4`}),o(h,{class:`mb-4`}),o(v,{class:`mb-4`}),o(y,{class:`mb-4`}),o(b,{class:`mb-4`}),o(x,{class:`mb-4`}),o(S,{class:`mb-4`}),o(C,{class:`mb-4`}),o(w,{class:`mb-2`}),o(T,{class:`mb-2`}),o(E,{class:`mb-2`}),o(D,{class:`mb-2`}),o(O,{class:`mb-2`})]),n(`div`,Ln,[o(k,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),o(j,{type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:_(()=>[o(A,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+u(e.$t(`seedance.button.generate`)),1)]),_:1},8,[`onClick`])])])}var zn=K(Pn,[[`render`,Rn]]),Bn=r({name:`SeedanceTaskPreview`,components:{ElImage:w,CopyToClipboard:me,FontAwesomeIcon:Y,ElAlert:T,VideoPlayer:ye,ElTooltip:C,ElButton:y,ImageWrapper:we,ImagePreview:X,ApiCodeButton:be},props:{modelValue:{type:Object,required:!0}},data(){return{seedanceLogo:P}},computed:{video(){return this.modelValue?.response?.data},referenceImages(){let e=this.modelValue?.request?.images;if(!Array.isArray(e))return[];let t=[],n=e.find(e=>e?.role===`first_frame`);n?.url&&t.push({url:n.url,name:`first-frame`});let r=e.find(e=>e?.role===`last_frame`);return r?.url&&t.push({url:r.url,name:`last-frame`}),e.forEach((e,n)=>{e?.url&&e.role!==`first_frame`&&e.role!==`last_frame`&&t.push({url:e.url,name:e.role||`image-${n}`})}),t}},methods:{onDownload(e){window.open(e,`_blank`)}}}),Vn={class:`preview`},Hn={class:`left`},Un={class:`main`},Wn={class:`bot`},Gn={class:`datetime`},Kn={class:`info`},qn={key:0,class:`flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto`},Jn={key:1,class:`prompt mt-2`},Yn={key:0},Xn={key:1},Zn={key:0,class:l({content:!0})},Qn={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},$n={key:1,class:l({content:!0})},er={key:0,class:`mb-4`},tr={key:1,class:`mb-4`},nr={key:2,class:l({operations:!0,"mt-2":!0,"mb-2":!0})},rr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ir={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ar={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},or={key:0},sr={key:1},$={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},cr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},lr={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},ur={key:5,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},dr={key:2,class:l({content:!0})},fr={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},pr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},mr={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},hr={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},gr={key:3,class:l({content:!0})},_r={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},vr={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function yr(r,c,l,p,m,v){let y=g(`el-image`),b=g(`image-preview`),x=g(`font-awesome-icon`),S=g(`copy-to-clipboard`),C=g(`el-alert`),w=g(`video-player`),T=g(`image-wrapper`),E=g(`el-button`),D=g(`el-tooltip`),O=g(`api-code-button`);return d(),t(`div`,Vn,[n(`div`,Hn,[o(y,{src:r.seedanceLogo,class:`avatar`},null,8,[`src`])]),n(`div`,Un,[n(`div`,Wn,[i(u(r.$t(`seedance.name.seedanceBot`))+` `,1),n(`span`,Gn,u(r.$dayjs.format(``+new Date(parseFloat((r.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Kn,[r.referenceImages.length>0?(d(),t(`div`,qn,[(d(!0),t(s,null,e(r.referenceImages,(e,t)=>(d(),a(b,{key:t,url:e.url,name:e.name,closable:!1},null,8,[`url`,`name`]))),128))])):h(``,!0),r.modelValue?.request?.prompt?(d(),t(`p`,Jn,[i(u(r.modelValue?.request?.prompt)+` `,1),r.modelValue?.response?r.video?.status===`processing`||r.video?.status===`pending`?(d(),t(`span`,Xn,` - (`+u(r.$t(`seedance.status.processing`))+`) `,1)):h(``,!0):(d(),t(`span`,Yn,` - (`+u(r.$t(`seedance.status.pending`))+`) `,1))])):h(``,!0)]),r.modelValue?.response?r.modelValue?.response?.success===!0?(d(),t(`div`,$n,[r.video?.video_url?(d(),t(`div`,er,[o(w,{src:r.video?.video_url},null,8,[`src`])])):h(``,!0),r.video?.last_frame_url?(d(),t(`div`,tr,[o(T,{src:r.video?.last_frame_url,"raw-src":r.video?.last_frame_url},null,8,[`src`,`raw-src`])])):h(``,!0),r.video?.video_url?(d(),t(`div`,nr,[o(D,{class:`box-item`,effect:`dark`,content:r.$t(`seedance.message.downloadVideo`),placement:`top-start`},{default:_(()=>[o(E,{type:`info`,size:`small`,class:`btn-action`,onClick:c[0]||=f(e=>r.onDownload(r.video?.video_url),[`stop`])},{default:_(()=>[i(u(r.$t(`seedance.button.download`)),1)]),_:1})]),_:1},8,[`content`]),o(O,{path:`/seedance/videos`,body:r.modelValue?.request},null,8,[`body`])])):h(``,!0),o(C,{closable:!1,class:`mt-2 success`},{default:_(()=>[r.modelValue?.request?.model?(d(),t(`p`,rr,[o(x,{icon:`fa-solid fa-cube`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.model`))+`: `+u(r.modelValue?.request?.model),1)])):h(``,!0),r.video?.duration?(d(),t(`p`,ir,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.duration`))+`: `+u(r.video?.duration)+`s `,1)])):h(``,!0),r.video?.resolution?(d(),t(`p`,ar,[o(x,{icon:`fa-solid fa-expand`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.resolution`))+`: `+u(r.video?.resolution)+` `,1),r.video?.ratio?(d(),t(`span`,or,` · `+u(r.video?.ratio),1)):h(``,!0),r.video?.framespersecond?(d(),t(`span`,sr,` · `+u(r.video?.framespersecond)+`fps`,1)):h(``,!0)])):h(``,!0),r.modelValue?.request?.generate_audio?(d(),t(`p`,$,[o(x,{icon:`fa-solid fa-volume-up`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.generateAudio`))+`: `+u(r.$t(`seedance.button.on`)),1)])):h(``,!0),n(`p`,cr,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(S,{content:r.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),r.modelValue?.elapsed?(d(),t(`p`,lr,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),r.modelValue?.response?.trace_id?(d(),t(`p`,ur,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(S,{content:r.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0)]),_:1})])):r.modelValue?.response?.success===!1?(d(),t(`div`,dr,[o(C,{closable:!1,class:`failure`},{template:_(()=>[o(x,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.failure`)),1)]),default:_(()=>[n(`p`,fr,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(S,{content:r.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),r.modelValue?.response?.error?.message?(d(),t(`p`,pr,[o(x,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.failureReason`))+`: `+u(r.modelValue?.response?.error?.message)+` `,1),o(S,{content:r.modelValue?.response?.error?.message,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0),r.modelValue?.elapsed?(d(),t(`p`,mr,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.elapsed`))+`: `+u(r.modelValue?.elapsed?.toFixed(2))+`s `,1)])):h(``,!0),r.modelValue?.response?.trace_id?(d(),t(`p`,hr,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(S,{content:r.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0)]),_:1})])):(d(),t(`div`,gr,[o(C,{closable:!1,class:`info`},{template:_(()=>[o(x,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.status`)),1)]),default:_(()=>[n(`p`,_r,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(S,{content:r.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),r.modelValue?.response?.trace_id?(d(),t(`p`,vr,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.traceId`))+`: `+u(r.modelValue?.response?.trace_id)+` `,1),o(S,{content:r.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):h(``,!0)]),_:1})])):(d(),t(`div`,Zn,[o(C,{closable:!1,class:`info`},{template:_(()=>[o(x,{icon:`fa-regular fa-clock`,class:`mr-1`}),i(` `+u(r.$t(`seedance.status.pending`)),1)]),default:_(()=>[n(`p`,Qn,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+u(r.$t(`seedance.name.taskId`))+`: `+u(r.modelValue?.id)+` `,1),o(S,{content:r.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])])]),_:1})]))])])}var br=r({name:`SeedanceRecentPanel`,components:{TaskPreview:K(Bn,[[`render`,yr],[`__scopeId`,`data-v-8b7e10f0`]]),BotPlaceholder:xe,NoTasks:Se,ScrollList:_e},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],computed:{tasks(){return{...this.$store.state.seedance?.tasks,items:this.$store.state.seedance?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),xr={key:0},Sr={key:2,class:`w-full h-full flex items-center justify-center`};function Cr(n,r,i,c,l,u){let f=g(`bot-placeholder`),p=g(`task-preview`),m=g(`scroll-list`),v=g(`no-tasks`);return d(),t(s,null,[n.tasks?.items===void 0?(d(),t(`div`,xr,[o(f)])):n.tasks?.items?.length&&n.tasks?.items?.length>0?(d(),a(m,{key:1,ref:`scrollList`,class:`tasks w-full h-full overflow-y-auto`,loading:n.loading,onReachTop:r[0]||=e=>n.$emit(`reach-top`)},{default:_(()=>[(d(!0),t(s,null,e(n.tasks?.items,e=>(d(),a(p,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):h(``,!0),n.tasks?.items?.length===0?(d(),t(`div`,Sr,[o(v)])):h(``,!0)],64)}var wr=r({name:`SeedanceIndex`,components:{ConfigPanel:zn,Layout:Ae,RecentPanel:K(br,[[`render`,Cr]])},mixins:[H],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.seedance?.status?.getApplications===G.Request},tasksLoading(){return this.$store.state.seedance?.status?.getTasks===G.Request||this.fetchingTasks},credential(){return this.$store.state.seedance?.credential},config(){return this.$store.state.seedance?.config},tasks(){return this.$store.state.seedance?.tasks}},watch:{initialized:{async handler(e){e&&(await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await ve({tasks:this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){await this.$store.dispatch(`seedance/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(`seedance/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!ue(this.uploadTracker,e=>this.$t(e),e=>W.warning(e)))return;let e={...this.config||{}};if(typeof e?.prompt==`string`&&(e.prompt=e.prompt.trim(),e.prompt||delete e.prompt),Array.isArray(e?.images)){e.images=e.images.filter(e=>!!e?.url);let t=e.images.some(e=>e?.role===`first_frame`),n=e.images.some(e=>e?.role===`last_frame`);!t&&n&&(e.images=e.images.map(e=>e?.role===`last_frame`?{...e,role:`first_frame`}:e))}let t=Array.isArray(e?.images)&&e.images.length>0;if(!t&&`images`in e&&delete e.images,e?.model&&!k[e.model]){W.warning(this.$t(`seedance.message.modelUnsupported`));return}let n=V(e?.model);if(n.requiresImage&&!t){W.warning(this.$t(`seedance.message.modelRequiresImage`));return}if(!n.acceptsImage&&t){W.warning(this.$t(`seedance.message.modelRejectsImage`));return}if(!n.acceptsText&&!t){W.warning(this.$t(`seedance.message.modelRequiresImage`));return}!n.acceptsAudio&&e.generate_audio&&(e.generate_audio=!1),!n.acceptsReturnLastFrame&&e.return_last_frame&&(e.return_last_frame=!1),!n.acceptsLastFrame&&t&&(e.images=e.images.filter(e=>e?.role!==`last_frame`)),n.acceptsReferenceAudio&&Array.isArray(e?.audios)&&(e.audios=e.audios.filter(e=>e?.url)),(!n.acceptsReferenceAudio||!Array.isArray(e?.audios)||e.audios.length===0)&&delete e.audios,n.acceptsReferenceVideo&&Array.isArray(e?.videos)&&(e.videos=e.videos.filter(e=>e?.url)),(!n.acceptsReferenceVideo||!Array.isArray(e?.videos)||e.videos.length===0)&&delete e.videos,!n.acceptsReferenceImage&&Array.isArray(e?.images)&&(e.images=e.images.filter(e=>e?.role!==`reference_image`),e.images.length===0&&delete e.images);let r=Array.isArray(e?.images)&&e.images.some(e=>e?.role===`reference_image`);if(Array.isArray(e?.audios)&&e.audios.length>0&&!r){W.warning(this.$t(`seedance.message.audioRequiresReferenceImage`));return}let i={...e,async:!0},a=this.credential?.token;if(!a){console.error(`no token specified`);return}W.info(this.$t(`seedance.message.startingTask`)),pe(`seedance`,fe.generate(i,{token:a})).then(()=>{W.success(this.$t(`seedance.message.startTaskSuccess`))}).catch(e=>{let t=e?.response?.data;t?.error?.code===`used_up`?W.error(this.$t(`seedance.message.usedUp`)):W.error(this.$t(`seedance.message.startTaskFailed`)+(t?.error?.message||``))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function Tr(e,t,n,r,i,s){let c=g(`config-panel`),l=g(`recent-panel`),u=g(`layout`);return d(),a(u,null,{config:_(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:_(()=>[o(l,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var Er=K(wr,[[`render`,Tr]]);export{Er as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{A as e,D as t,F as n,N as r,O as i,P as a,Vt as o,Wt as s,Z as c,dt as l,k as u,nt as d,tt as f,ut as p}from"./vendor-chart-BJCvKk8-.js";import{t as m}from"./button-BydTr5nV.js";import{n as h,t as g}from"./row-
|
|
1
|
+
import"./rolldown-runtime--c01j_DQ.js";import{A as e,D as t,F as n,N as r,O as i,P as a,Vt as o,Wt as s,Z as c,dt as l,k as u,nt as d,tt as f,ut as p}from"./vendor-chart-BJCvKk8-.js";import{t as m}from"./button-BydTr5nV.js";import{n as h,t as g}from"./row-dLLfON-r.js";import{i as _,n as v,r as y,t as b}from"./container-BgEH5azS.js";import{n as x,t as S}from"./dropdown-BJDfXHmL.js";import{a as C,i as w,n as T,r as E,t as D}from"./avatar-DylNTSpX.js";import{$ as O,Fr as k,G as A,M as j,O as M,Ur as N,Vr as P,Xt as F,j as I,ut as L,zr as R}from"./index-BiQB19uW.js";import{t as z}from"./BottomFooter-fmcFt1uP.js";var B=n({name:`TopHeader`,components:{ElCol:h,Logo:T,ElRow:g,ElDropdown:S,ElMenu:E,ElMenuItem:w,ElDropdownItem:x,ElButton:m,ElSubMenu:C},data(){return{defaultAvatar:D,products:`chat`}},computed:{site(){return this.$store.state?.site},dark(){return this.$store.getters?.dark},active(){return this.$route.matched?.[0]?.path},user(){return this.$store.getters?.user},authenticated(){return this.$store.getters?.authenticated},isDesktopChrome(){return R()},isMacChrome(){return R()&&P()}},methods:{openTab(e){if(N()){I.open({url:e}).catch(t=>{console.warn(`Browser.open failed, falling back to window.open`,t),window.open(e,`_blank`)});return}window.open(e,`_blank`)},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:L})},onLogin(){this.$router.push({name:j})},onDownload(){this.$router.push({name:O})},onProfile(){let e=k();this.openTab(F(`${e}/user/profile`))},onVerify(){let e=k();this.openTab(F(`${e}/user/verify`))},onConsole(){this.$router.push({name:A})},async onLogout(){this.$store.dispatch(`logout`)}}}),V={key:0,class:`mt-4 pr-10`},H={key:1,class:`float-right`},U=[`src`];function W(n,m,h,g,_,v){let y=f(`logo`),b=f(`el-col`),x=f(`el-menu-item`),S=f(`el-sub-menu`),C=f(`el-menu`),w=f(`el-button`),T=f(`language-selector`),E=f(`dark-selector`),D=f(`el-dropdown-item`),O=f(`el-dropdown-menu`),k=f(`el-dropdown`),A=f(`el-row`),j=d(`t`);return c(),i(A,{class:o([`header`,{"desktop-chrome":n.isDesktopChrome,"is-mac":n.isMacChrome}])},{default:p(()=>[a(b,{md:4,xs:24,class:`brand-col`},{default:p(()=>[a(y,{onClick:n.onHome},null,8,[`onClick`])]),_:1}),a(b,{md:16,xs:13},{default:p(()=>[a(C,{"default-active":n.active,mode:`horizontal`,class:`menu`,ellipsis:!0,onSelect:n.onSelect},{default:p(()=>[a(S,{index:n.products},{title:p(()=>[r(s(n.$t(`common.nav.products`)),1)]),default:p(()=>[n.site?.features?.chatgpt?.enabled?l((c(),i(x,{key:0,index:`/chat`},null,512)),[[j,`index.title.chat`]]):u(``,!0),n.site?.features?.midjourney?.enabled?l((c(),i(x,{key:1,index:`/midjourney`},null,512)),[[j,`index.title.midjourney`]]):u(``,!0),n.site?.features?.qrart?.enabled?l((c(),i(x,{key:2,index:`/qrart`},null,512)),[[j,`index.title.qrart`]]):u(``,!0),n.site?.features?.suno?.enabled?l((c(),i(x,{key:3,index:`/suno`},null,512)),[[j,`index.title.suno`]]):u(``,!0),n.site?.features?.luma?.enabled?l((c(),i(x,{key:4,index:`/luma`},null,512)),[[j,`index.title.luma`]]):u(``,!0),n.site?.features?.headshots?.enabled?l((c(),i(x,{key:5,index:`/headshots`},null,512)),[[j,`index.title.headshots`]]):u(``,!0)]),_:1},8,[`index`]),l(a(x,{onRoute:e=>void 0,onClick:n.onDownload},null,8,[`onClick`]),[[j,`common.nav.mobileApp`]]),l(a(x,{onRoute:e=>void 0,onClick:m[0]||=e=>n.openTab(`https://platform.acedata.cloud`)},null,512),[[j,`common.nav.apiPlatform`]]),l(a(x,{onRoute:e=>void 0,onClick:m[1]||=e=>n.openTab(`https://platform.acedata.cloud/support`)},null,512),[[j,`common.nav.support`]]),l(a(x,{onRoute:e=>void 0,onClick:m[2]||=e=>n.openTab(`https://platform.acedata.cloud/earning`)},null,512),[[j,`common.nav.referral`]])]),_:1},8,[`default-active`,`onSelect`])]),_:1}),a(b,{md:4,xs:11},{default:p(()=>[n.authenticated?(c(),e(`div`,H,[t(`div`,{class:`console`,onClick:m[3]||=(...e)=>n.onConsole&&n.onConsole(...e)},s(n.$t(`common.button.console`)),1),a(k,{trigger:`click`},{dropdown:p(()=>[a(O,null,{default:p(()=>[a(D,{onClick:n.onProfile},{default:p(()=>[r(s(n.$t(`common.button.profile`)),1)]),_:1},8,[`onClick`]),a(D,{onClick:n.onLogout},{default:p(()=>[r(s(n.$t(`common.button.logout`)),1)]),_:1},8,[`onClick`])]),_:1})]),default:p(()=>[t(`img`,{src:n.user?.avatar||n.defaultAvatar,class:`avatar`},null,8,U)]),_:1})])):(c(),e(`div`,V,[a(w,{type:`primary`,class:`float-right`,size:`small`,round:``,onClick:n.onLogin},{default:p(()=>[r(s(n.$t(`common.button.login`)),1)]),_:1},8,[`onClick`]),a(T,{class:`locale float-right mr-4`}),a(E,{class:`float-right mr-4`})]))]),_:1})]),_:1},8,[`class`])}var G=n({name:`LayoutIndex`,components:{TopHeader:M(B,[[`render`,W]]),BottomFooter:z,ElContainer:b,ElMain:_,ElFooter:v,ElHeader:y}});function K(e,t,n,r,o,s){let l=f(`top-header`),u=f(`el-header`),d=f(`router-view`),m=f(`el-main`),h=f(`bottom-footer`),g=f(`el-footer`),_=f(`el-container`);return c(),i(_,{class:`wrapper min-h-[100vh]`},{default:p(()=>[a(u,{class:`header p-0 h-auto`},{default:p(()=>[a(l)]),_:1}),a(m,{class:`main`},{default:p(()=>[a(d)]),_:1}),a(g,{class:`footer p-0 h-auto`},{default:p(()=>[a(h)]),_:1})]),_:1})}var q=M(G,[[`render`,K]]);export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rolldown-runtime--c01j_DQ.js";import{A as e,D as t,F as n,N as r,O as i,P as a,S as o,Vt as s,Wt as c,Z as l,k as u,tt as d,ut as f}from"./vendor-chart-BJCvKk8-.js";import{t as p}from"./button-BydTr5nV.js";import{at as m,et as ee,it as h,nt as te,ot as g,rt as _,st as v,tt as y}from"./constants-DayHF6p0.js";import{C as b,Nt as x,O as S,S as C,b as w,r as T,s as E,y as D}from"./index-gL6ghX1C.js";import{t as O}from"./index.es-CigRTulG.js";var k=n({name:`DownloadIndex`,components:{ElButton:p,QrCode:x,FontAwesomeIcon:O},data(){return{faAndroid:D,faApple:w,faGooglePlay:C,faWindows:b,faDownload:E,faCircleInfo:T}},computed:{version(){return g},brandTitle(){return this.$store.state.site?.title||`AceData`},brandLogo(){return this.$store.state.site?.logo||`/assets/logo-CDy94G52.png`},androidDownloadUrl(){return h},hasAndroidDownload(){return!!h},playStoreUrl(){return m},hasPlayStore(){return!!m},appStoreUrl(){return v},hasAppStore(){return!!v},iosDownloadUrl(){return``},iosFallbackUrl(){return``},hasIosDownload(){return!1},hasIos(){return this.hasAppStore||this.hasIosDownload},desktopVersion(){return ee},windowsDownloadUrl(){return _},macArmDownloadUrl(){return y},macIntelDownloadUrl(){return te}},methods:{openSupport(){window.open(`https://platform.acedata.cloud/support`,`_blank`)}}}),A={class:`download-page`},j={class:`download-page__inner`},M={class:`hero`},N={class:`hero__brand`},P=[`src`,`alt`],F={class:`hero__eyebrow`},I={class:`hero__title`},L={class:`hero__subtitle`},R={class:`hero__badges`},z={class:`badge badge--live`},B={class:`badge`},V={class:`badge`},H={class:`hero__actions`},U={class:`platforms`},W={class:`platform platform--android`},G={class:`platform__head`},K={class:`platform__os`},q={class:`chip chip--live`},J={class:`platform__title`},Y={class:`platform__text`},X={key:0,class:`qr`},Z={class:`qr__hint`},Q={class:`platform__foot platform__foot--stack`},ne={key:0,class:`platform__fallback`},re={class:`platform__meta`},ie={class:`platform__meta`},ae={class:`platform platform--ios`},oe={class:`platform__head`},se={class:`platform__os`},ce={class:`platform__title`},le={class:`platform__text`},ue={key:0,class:`qr`},de={class:`qr__hint`},fe={key:1,class:`platform__foot platform__foot--stack`},pe={class:`btn-row`},me={class:`platform__meta`},he={class:`ios-soon`},ge={class:`ios-soon__text`},_e={class:`platform__foot platform__foot--stack`},ve={class:`platform platform--windows`},ye={class:`platform__head`},be={class:`platform__os`},xe={class:`platform__title`},Se={class:`platform__text`},Ce={class:`platform__foot platform__foot--stack`},we={class:`platform__meta`},Te={class:`platform platform--mac`},Ee={class:`platform__head`},De={class:`platform__os`},Oe={class:`platform__title`},ke={class:`platform__text`},Ae={class:`platform__foot platform__foot--stack`},je={class:`btn-row`},Me={class:`platform__meta`},Ne={class:`advantages`},Pe={class:`advantage`},$={class:`advantage__title`},Fe={class:`advantage__text`},Ie={class:`advantage`},Le={class:`advantage__title`},Re={class:`advantage__text`},ze={class:`advantage`},Be={class:`advantage__title`},Ve={class:`advantage__text`},He={key:0,class:`note`},Ue={class:`note__text`},We={class:`note`},Ge={class:`note__text`};function Ke(n,p,m,ee,h,te){let g=d(`font-awesome-icon`),_=d(`el-button`),v=d(`qr-code`);return l(),e(`div`,A,[p[14]||=t(`div`,{class:`download-page__glow`,"aria-hidden":`true`},null,-1),t(`div`,j,[t(`header`,M,[t(`span`,N,[t(`img`,{src:n.brandLogo,alt:n.brandTitle,class:`hero__logo`},null,8,P)]),t(`p`,F,c(n.brandTitle)+` · `+c(n.$t(`common.nav.mobileApp`)),1),t(`h1`,I,c(n.$t(`common.title.mobileApp`)),1),t(`p`,L,c(n.$t(`common.message.mobileAppDescription`)),1),t(`div`,R,[t(`span`,z,[p[0]||=t(`span`,{class:`badge__dot`},null,-1),r(c(n.$t(`common.message.mobileAvailableNow`)),1)]),t(`span`,B,`v`+c(n.version),1),t(`span`,V,c(n.$t(`common.message.mobileSharedAccount`)),1)]),t(`div`,H,[n.hasPlayStore?(l(),i(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:n.playStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faGooglePlay,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnGooglePlay`)),1)]),_:1},8,[`href`])):n.hasAndroidDownload?(l(),i(_,{key:1,type:`primary`,round:``,size:`large`,tag:`a`,href:n.androidDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faAndroid,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`])):u(``,!0),n.hasAppStore?(l(),i(_,{key:2,round:``,size:`large`,tag:`a`,href:n.appStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnAppStore`)),1)]),_:1},8,[`href`])):u(``,!0),a(_,{round:``,size:`large`,class:`btn-ghost`,onClick:n.openSupport},{default:f(()=>[r(c(n.$t(`common.nav.support`)),1)]),_:1},8,[`onClick`])])]),t(`section`,U,[t(`article`,W,[t(`div`,G,[t(`span`,K,[a(g,{icon:n.faAndroid,class:`platform__os-icon`},null,8,[`icon`]),p[1]||=r(` Android `,-1)]),t(`span`,q,[p[2]||=t(`span`,{class:`chip__dot`},null,-1),r(c(n.$t(`common.message.mobileAvailableNow`)),1)])]),t(`h2`,J,c(n.$t(`common.button.downloadAndroid`)),1),t(`p`,Y,c(n.$t(`common.message.mobileAndroidHint`)),1),n.hasPlayStore||n.hasAndroidDownload?(l(),e(`div`,X,[a(v,{value:n.hasPlayStore?n.playStoreUrl:n.androidDownloadUrl,width:184,height:184,class:`qr__img`,type:`image/png`,color:{dark:`#0e2a33ff`,light:`#ffffffff`}},null,8,[`value`]),t(`p`,Z,c(n.hasPlayStore?n.$t(`common.message.mobilePlayStoreHint`):n.$t(`common.message.mobileSecureDelivery`)),1)])):u(``,!0),t(`div`,Q,[n.hasPlayStore?(l(),i(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:n.playStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faGooglePlay,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnGooglePlay`)),1)]),_:1},8,[`href`])):u(``,!0),n.hasAndroidDownload?(l(),e(o,{key:1},[n.hasPlayStore?(l(),e(`div`,ne,[a(_,{round:``,tag:`a`,href:n.androidDownloadUrl,target:`_blank`,class:`btn-ghost`},{default:f(()=>[a(g,{icon:n.faDownload,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`]),t(`span`,re,c(n.$t(`common.message.mobileApkFallback`))+` · v`+c(n.version),1)])):(l(),e(o,{key:1},[a(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:n.androidDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faDownload,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`]),t(`span`,ie,c(n.$t(`common.message.mobileDirectInstall`))+` · v`+c(n.version),1)],64))],64)):u(``,!0)])]),t(`article`,ae,[t(`div`,oe,[t(`span`,se,[a(g,{icon:n.faApple,class:`platform__os-icon`},null,8,[`icon`]),p[3]||=r(` iOS `,-1)]),t(`span`,{class:s([`chip`,n.hasIos?`chip--live`:`chip--pending`])},[p[4]||=t(`span`,{class:`chip__dot`},null,-1),r(` `+c(n.hasIos?n.$t(`common.message.mobileNowOnAppStore`):n.$t(`common.message.mobileComingSoon`)),1)],2)]),t(`h2`,ce,c(n.$t(`common.button.downloadIos`)),1),t(`p`,le,c(n.hasIos?n.$t(`common.message.mobileIosHint`):n.$t(`common.message.mobileIosPending`)),1),n.hasAppStore?(l(),e(`div`,ue,[a(v,{value:n.appStoreUrl,width:184,height:184,class:`qr__img`,type:`image/png`,color:{dark:`#0e2a33ff`,light:`#ffffffff`}},null,8,[`value`]),t(`p`,de,c(n.$t(`common.message.mobileAppStoreHint`)),1)])):u(``,!0),n.hasIos?(l(),e(`div`,fe,[n.hasAppStore?(l(),i(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:n.appStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnAppStore`)),1)]),_:1},8,[`href`])):u(``,!0),n.hasIosDownload?(l(),e(o,{key:1},[t(`div`,pe,[a(_,{type:n.hasAppStore?`default`:`primary`,round:``,size:n.hasAppStore?`default`:`large`,class:s({"btn-ghost":n.hasAppStore}),tag:`a`,href:n.iosDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.installIos`)),1)]),_:1},8,[`type`,`size`,`class`,`href`]),a(_,{round:``,size:`large`,class:`btn-ghost`,tag:`a`,href:n.iosFallbackUrl,target:`_blank`},{default:f(()=>[r(c(n.$t(`common.button.downloadIos`)),1)]),_:1},8,[`href`])]),t(`span`,me,c(n.$t(`common.message.mobileInstallNote`)),1)],64)):u(``,!0)])):(l(),e(o,{key:2},[t(`div`,he,[a(g,{icon:n.faApple,class:`ios-soon__icon`},null,8,[`icon`]),t(`p`,ge,c(n.$t(`common.message.mobileComingSoon`)),1)]),t(`div`,_e,[a(_,{round:``,size:`large`,class:`btn-ghost`,onClick:n.openSupport},{default:f(()=>[r(c(n.$t(`common.nav.support`)),1)]),_:1},8,[`onClick`])])],64))]),t(`article`,ve,[t(`div`,ye,[t(`span`,be,[a(g,{icon:n.faWindows,class:`platform__os-icon`},null,8,[`icon`]),p[5]||=r(` Windows `,-1)]),p[6]||=t(`span`,{class:`chip chip--beta`},[t(`span`,{class:`chip__dot`}),r(`Beta `)],-1)]),t(`h2`,xe,c(n.$t(`common.button.downloadWindows`)),1),t(`p`,Se,c(n.$t(`common.message.desktopWindowsHint`)),1),t(`div`,Ce,[a(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:n.windowsDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faWindows,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadWindows`)),1)]),_:1},8,[`href`]),t(`span`,we,`Beta · v`+c(n.desktopVersion),1)])]),t(`article`,Te,[t(`div`,Ee,[t(`span`,De,[a(g,{icon:n.faApple,class:`platform__os-icon`},null,8,[`icon`]),p[7]||=r(` macOS `,-1)]),p[8]||=t(`span`,{class:`chip chip--beta`},[t(`span`,{class:`chip__dot`}),r(`Beta `)],-1)]),t(`h2`,Oe,c(n.$t(`common.button.downloadMac`)),1),t(`p`,ke,c(n.$t(`common.message.desktopMacHint`)),1),t(`div`,Ae,[t(`div`,je,[a(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:n.macArmDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),p[9]||=r(` Apple Silicon `,-1)]),_:1},8,[`href`]),a(_,{round:``,size:`large`,class:`btn-ghost`,tag:`a`,href:n.macIntelDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),p[10]||=r(` Intel `,-1)]),_:1},8,[`href`])]),t(`span`,Me,`Beta · v`+c(n.desktopVersion),1)])])]),t(`section`,Ne,[t(`article`,Pe,[p[11]||=t(`span`,{class:`advantage__num`},`01`,-1),t(`h3`,$,c(n.$t(`common.title.mobileFastAccess`)),1),t(`p`,Fe,c(n.$t(`common.message.mobileFastAccess`)),1)]),t(`article`,Ie,[p[12]||=t(`span`,{class:`advantage__num`},`02`,-1),t(`h3`,Le,c(n.$t(`common.title.mobileTrustedRelease`)),1),t(`p`,Re,c(n.$t(`common.message.mobileTrustedRelease`)),1)]),t(`article`,ze,[p[13]||=t(`span`,{class:`advantage__num`},`03`,-1),t(`h3`,Be,c(n.$t(`common.title.mobileUnifiedExperience`)),1),t(`p`,Ve,c(n.$t(`common.message.mobileUnifiedExperience`)),1)])]),n.hasIosDownload?(l(),e(`aside`,He,[a(g,{icon:n.faCircleInfo,class:`note__icon`},null,8,[`icon`]),t(`p`,Ue,c(n.$t(`common.message.mobileInstallNote`)),1)])):u(``,!0),t(`aside`,We,[a(g,{icon:n.faCircleInfo,class:`note__icon`},null,8,[`icon`]),t(`p`,Ge,c(n.$t(`common.message.desktopUnsignedNote`)),1)])])])}var qe=S(k,[[`render`,Ke],[`__scopeId`,`data-v-4305d153`]]);export{qe as default};
|
|
1
|
+
import"./rolldown-runtime--c01j_DQ.js";import{A as e,D as t,F as n,N as r,O as i,P as a,S as o,Vt as s,Wt as c,Z as l,k as u,tt as d,ut as f}from"./vendor-chart-BJCvKk8-.js";import{t as p}from"./button-BydTr5nV.js";import{at as m,et as ee,it as h,nt as te,ot as g,rt as _,st as v,tt as y}from"./constants-DayHF6p0.js";import{C as b,O as x,Pt as S,S as C,b as w,r as T,s as E,y as D}from"./index-BiQB19uW.js";import{t as O}from"./index.es-BsCuAkPm.js";var k=n({name:`DownloadIndex`,components:{ElButton:p,QrCode:S,FontAwesomeIcon:O},data(){return{faAndroid:D,faApple:w,faGooglePlay:C,faWindows:b,faDownload:E,faCircleInfo:T}},computed:{version(){return g},brandTitle(){return this.$store.state.site?.title||`AceData`},brandLogo(){return this.$store.state.site?.logo||`/assets/logo-CDy94G52.png`},androidDownloadUrl(){return h},hasAndroidDownload(){return!!h},playStoreUrl(){return m},hasPlayStore(){return!!m},appStoreUrl(){return v},hasAppStore(){return!!v},iosDownloadUrl(){return``},iosFallbackUrl(){return``},hasIosDownload(){return!1},hasIos(){return this.hasAppStore||this.hasIosDownload},desktopVersion(){return ee},windowsDownloadUrl(){return _},macArmDownloadUrl(){return y},macIntelDownloadUrl(){return te}},methods:{openSupport(){window.open(`https://platform.acedata.cloud/support`,`_blank`)}}}),A={class:`download-page`},j={class:`download-page__inner`},M={class:`hero`},N={class:`hero__brand`},P=[`src`,`alt`],F={class:`hero__eyebrow`},I={class:`hero__title`},L={class:`hero__subtitle`},R={class:`hero__badges`},z={class:`badge badge--live`},B={class:`badge`},V={class:`badge`},H={class:`hero__actions`},U={class:`platforms`},W={class:`platform platform--android`},G={class:`platform__head`},K={class:`platform__os`},q={class:`chip chip--live`},J={class:`platform__title`},Y={class:`platform__text`},X={key:0,class:`qr`},Z={class:`qr__hint`},Q={class:`platform__foot platform__foot--stack`},ne={key:0,class:`platform__fallback`},re={class:`platform__meta`},ie={class:`platform__meta`},ae={class:`platform platform--ios`},oe={class:`platform__head`},se={class:`platform__os`},ce={class:`platform__title`},le={class:`platform__text`},ue={key:0,class:`qr`},de={class:`qr__hint`},fe={key:1,class:`platform__foot platform__foot--stack`},pe={class:`btn-row`},me={class:`platform__meta`},he={class:`ios-soon`},ge={class:`ios-soon__text`},_e={class:`platform__foot platform__foot--stack`},ve={class:`platform platform--windows`},ye={class:`platform__head`},be={class:`platform__os`},xe={class:`platform__title`},Se={class:`platform__text`},Ce={class:`platform__foot platform__foot--stack`},we={class:`platform__meta`},Te={class:`platform platform--mac`},Ee={class:`platform__head`},De={class:`platform__os`},Oe={class:`platform__title`},ke={class:`platform__text`},Ae={class:`platform__foot platform__foot--stack`},je={class:`btn-row`},Me={class:`platform__meta`},Ne={class:`advantages`},Pe={class:`advantage`},$={class:`advantage__title`},Fe={class:`advantage__text`},Ie={class:`advantage`},Le={class:`advantage__title`},Re={class:`advantage__text`},ze={class:`advantage`},Be={class:`advantage__title`},Ve={class:`advantage__text`},He={key:0,class:`note`},Ue={class:`note__text`},We={class:`note`},Ge={class:`note__text`};function Ke(n,p,m,ee,h,te){let g=d(`font-awesome-icon`),_=d(`el-button`),v=d(`qr-code`);return l(),e(`div`,A,[p[14]||=t(`div`,{class:`download-page__glow`,"aria-hidden":`true`},null,-1),t(`div`,j,[t(`header`,M,[t(`span`,N,[t(`img`,{src:n.brandLogo,alt:n.brandTitle,class:`hero__logo`},null,8,P)]),t(`p`,F,c(n.brandTitle)+` · `+c(n.$t(`common.nav.mobileApp`)),1),t(`h1`,I,c(n.$t(`common.title.mobileApp`)),1),t(`p`,L,c(n.$t(`common.message.mobileAppDescription`)),1),t(`div`,R,[t(`span`,z,[p[0]||=t(`span`,{class:`badge__dot`},null,-1),r(c(n.$t(`common.message.mobileAvailableNow`)),1)]),t(`span`,B,`v`+c(n.version),1),t(`span`,V,c(n.$t(`common.message.mobileSharedAccount`)),1)]),t(`div`,H,[n.hasPlayStore?(l(),i(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:n.playStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faGooglePlay,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnGooglePlay`)),1)]),_:1},8,[`href`])):n.hasAndroidDownload?(l(),i(_,{key:1,type:`primary`,round:``,size:`large`,tag:`a`,href:n.androidDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faAndroid,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`])):u(``,!0),n.hasAppStore?(l(),i(_,{key:2,round:``,size:`large`,tag:`a`,href:n.appStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnAppStore`)),1)]),_:1},8,[`href`])):u(``,!0),a(_,{round:``,size:`large`,class:`btn-ghost`,onClick:n.openSupport},{default:f(()=>[r(c(n.$t(`common.nav.support`)),1)]),_:1},8,[`onClick`])])]),t(`section`,U,[t(`article`,W,[t(`div`,G,[t(`span`,K,[a(g,{icon:n.faAndroid,class:`platform__os-icon`},null,8,[`icon`]),p[1]||=r(` Android `,-1)]),t(`span`,q,[p[2]||=t(`span`,{class:`chip__dot`},null,-1),r(c(n.$t(`common.message.mobileAvailableNow`)),1)])]),t(`h2`,J,c(n.$t(`common.button.downloadAndroid`)),1),t(`p`,Y,c(n.$t(`common.message.mobileAndroidHint`)),1),n.hasPlayStore||n.hasAndroidDownload?(l(),e(`div`,X,[a(v,{value:n.hasPlayStore?n.playStoreUrl:n.androidDownloadUrl,width:184,height:184,class:`qr__img`,type:`image/png`,color:{dark:`#0e2a33ff`,light:`#ffffffff`}},null,8,[`value`]),t(`p`,Z,c(n.hasPlayStore?n.$t(`common.message.mobilePlayStoreHint`):n.$t(`common.message.mobileSecureDelivery`)),1)])):u(``,!0),t(`div`,Q,[n.hasPlayStore?(l(),i(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:n.playStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faGooglePlay,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnGooglePlay`)),1)]),_:1},8,[`href`])):u(``,!0),n.hasAndroidDownload?(l(),e(o,{key:1},[n.hasPlayStore?(l(),e(`div`,ne,[a(_,{round:``,tag:`a`,href:n.androidDownloadUrl,target:`_blank`,class:`btn-ghost`},{default:f(()=>[a(g,{icon:n.faDownload,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`]),t(`span`,re,c(n.$t(`common.message.mobileApkFallback`))+` · v`+c(n.version),1)])):(l(),e(o,{key:1},[a(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:n.androidDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faDownload,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`]),t(`span`,ie,c(n.$t(`common.message.mobileDirectInstall`))+` · v`+c(n.version),1)],64))],64)):u(``,!0)])]),t(`article`,ae,[t(`div`,oe,[t(`span`,se,[a(g,{icon:n.faApple,class:`platform__os-icon`},null,8,[`icon`]),p[3]||=r(` iOS `,-1)]),t(`span`,{class:s([`chip`,n.hasIos?`chip--live`:`chip--pending`])},[p[4]||=t(`span`,{class:`chip__dot`},null,-1),r(` `+c(n.hasIos?n.$t(`common.message.mobileNowOnAppStore`):n.$t(`common.message.mobileComingSoon`)),1)],2)]),t(`h2`,ce,c(n.$t(`common.button.downloadIos`)),1),t(`p`,le,c(n.hasIos?n.$t(`common.message.mobileIosHint`):n.$t(`common.message.mobileIosPending`)),1),n.hasAppStore?(l(),e(`div`,ue,[a(v,{value:n.appStoreUrl,width:184,height:184,class:`qr__img`,type:`image/png`,color:{dark:`#0e2a33ff`,light:`#ffffffff`}},null,8,[`value`]),t(`p`,de,c(n.$t(`common.message.mobileAppStoreHint`)),1)])):u(``,!0),n.hasIos?(l(),e(`div`,fe,[n.hasAppStore?(l(),i(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:n.appStoreUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.getOnAppStore`)),1)]),_:1},8,[`href`])):u(``,!0),n.hasIosDownload?(l(),e(o,{key:1},[t(`div`,pe,[a(_,{type:n.hasAppStore?`default`:`primary`,round:``,size:n.hasAppStore?`default`:`large`,class:s({"btn-ghost":n.hasAppStore}),tag:`a`,href:n.iosDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.installIos`)),1)]),_:1},8,[`type`,`size`,`class`,`href`]),a(_,{round:``,size:`large`,class:`btn-ghost`,tag:`a`,href:n.iosFallbackUrl,target:`_blank`},{default:f(()=>[r(c(n.$t(`common.button.downloadIos`)),1)]),_:1},8,[`href`])]),t(`span`,me,c(n.$t(`common.message.mobileInstallNote`)),1)],64)):u(``,!0)])):(l(),e(o,{key:2},[t(`div`,he,[a(g,{icon:n.faApple,class:`ios-soon__icon`},null,8,[`icon`]),t(`p`,ge,c(n.$t(`common.message.mobileComingSoon`)),1)]),t(`div`,_e,[a(_,{round:``,size:`large`,class:`btn-ghost`,onClick:n.openSupport},{default:f(()=>[r(c(n.$t(`common.nav.support`)),1)]),_:1},8,[`onClick`])])],64))]),t(`article`,ve,[t(`div`,ye,[t(`span`,be,[a(g,{icon:n.faWindows,class:`platform__os-icon`},null,8,[`icon`]),p[5]||=r(` Windows `,-1)]),p[6]||=t(`span`,{class:`chip chip--beta`},[t(`span`,{class:`chip__dot`}),r(`Beta `)],-1)]),t(`h2`,xe,c(n.$t(`common.button.downloadWindows`)),1),t(`p`,Se,c(n.$t(`common.message.desktopWindowsHint`)),1),t(`div`,Ce,[a(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:n.windowsDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faWindows,class:`btn-icon`},null,8,[`icon`]),r(` `+c(n.$t(`common.button.downloadWindows`)),1)]),_:1},8,[`href`]),t(`span`,we,`Beta · v`+c(n.desktopVersion),1)])]),t(`article`,Te,[t(`div`,Ee,[t(`span`,De,[a(g,{icon:n.faApple,class:`platform__os-icon`},null,8,[`icon`]),p[7]||=r(` macOS `,-1)]),p[8]||=t(`span`,{class:`chip chip--beta`},[t(`span`,{class:`chip__dot`}),r(`Beta `)],-1)]),t(`h2`,Oe,c(n.$t(`common.button.downloadMac`)),1),t(`p`,ke,c(n.$t(`common.message.desktopMacHint`)),1),t(`div`,Ae,[t(`div`,je,[a(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:n.macArmDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),p[9]||=r(` Apple Silicon `,-1)]),_:1},8,[`href`]),a(_,{round:``,size:`large`,class:`btn-ghost`,tag:`a`,href:n.macIntelDownloadUrl,target:`_blank`},{default:f(()=>[a(g,{icon:n.faApple,class:`btn-icon`},null,8,[`icon`]),p[10]||=r(` Intel `,-1)]),_:1},8,[`href`])]),t(`span`,Me,`Beta · v`+c(n.desktopVersion),1)])])]),t(`section`,Ne,[t(`article`,Pe,[p[11]||=t(`span`,{class:`advantage__num`},`01`,-1),t(`h3`,$,c(n.$t(`common.title.mobileFastAccess`)),1),t(`p`,Fe,c(n.$t(`common.message.mobileFastAccess`)),1)]),t(`article`,Ie,[p[12]||=t(`span`,{class:`advantage__num`},`02`,-1),t(`h3`,Le,c(n.$t(`common.title.mobileTrustedRelease`)),1),t(`p`,Re,c(n.$t(`common.message.mobileTrustedRelease`)),1)]),t(`article`,ze,[p[13]||=t(`span`,{class:`advantage__num`},`03`,-1),t(`h3`,Be,c(n.$t(`common.title.mobileUnifiedExperience`)),1),t(`p`,Ve,c(n.$t(`common.message.mobileUnifiedExperience`)),1)])]),n.hasIosDownload?(l(),e(`aside`,He,[a(g,{icon:n.faCircleInfo,class:`note__icon`},null,8,[`icon`]),t(`p`,Ue,c(n.$t(`common.message.mobileInstallNote`)),1)])):u(``,!0),t(`aside`,We,[a(g,{icon:n.faCircleInfo,class:`note__icon`},null,8,[`icon`]),t(`p`,Ge,c(n.$t(`common.message.desktopUnsignedNote`)),1)])])])}var qe=x(k,[[`render`,Ke],[`__scopeId`,`data-v-4305d153`]]);export{qe as default};
|
|
@@ -0,0 +1 @@
|
|
|
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,dt as f,et as p,k as m,tt as h,ut as g,v as _}from"./vendor-chart-BJCvKk8-.js";import{t as v}from"./button-BydTr5nV.js";import{r as y,t as b}from"./select-B48QP8uZ.js";import{t as x}from"./upload-BOgZP4Et.js";import{t as S}from"./tooltip-BxeH2Vts.js";import{t as C}from"./image-DhUf1SwK.js";import{t as w}from"./alert-CuX4SjQB.js";import{t as T}from"./drawer-R6pcaap2.js";import{vt as E,yt as D}from"./constants-DayHF6p0.js";import{Bt as ee,Ir as te,Kr as O,Nr as k,O as A,Rt as j,Ut as M,Vt as N,on as P,qn as F,zt as I}from"./index-BiQB19uW.js";import{t as L}from"./index.es-BsCuAkPm.js";import{t as R}from"./CopyToClipboard-qY8oOQf0.js";import{t as z}from"./ImagePreview-Dv8PlZ7b.js";import{n as B}from"./taskDrawerMixin-DEgO_R5H.js";import{t as V}from"./Consumption-C3XBSNC_.js";import{i as H,n as U,t as W}from"./pagination-Claj-ghi.js";import{t as G}from"./VideoPlayer-fj_u1MLp.js";import{t as K}from"./ApiCodeButton-D1SodmBd.js";import{t as q}from"./BotPlaceholder-6XDbb6nY.js";import{t as J}from"./NoTasks-BTALnelO.js";import{t as Y}from"./PromptTextarea-BYhIlTRp.js";var X=r({name:`LayoutWan`,components:{ElDrawer:T,ElButton:v,FontAwesomeIcon:L},mixins:[B]}),Z={class:`main flex flex-row flex-1`},Q={class:`config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},ne={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function re(e,r,i,a,s,c){let l=h(`font-awesome-icon`),d=h(`el-button`),m=h(`el-drawer`);return u(),t(`div`,Z,[n(`div`,Q,[p(e.$slots,`config`,{},void 0,!0)]),n(`div`,ne,[p(e.$slots,`result`,{},void 0,!0)]),f(o(d,{circle:``,class:`menu`,onClick:r[0]||=t=>e.drawer=!0},{default:g(()=>[o(l,{icon:`fa-solid fa-magic`})]),_:1},512),[[_,!e.tasksEmpty]]),o(m,{modelValue:e.drawer,"onUpdate:modelValue":r[1]||=t=>e.drawer=t,direction:`ltr`,"with-header":!1,size:`340px`},{default:g(()=>[p(e.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var ie=A(X,[[`render`,re],[`__scopeId`,`data-v-1ffeb6b4`]]),ae=r({name:`ModelSelector`,components:{ElSelect:y,ElOption:b},data(){return{}},computed:{options(){return[{value:`wan2.6-t2v`,label:this.$t(`wan.button.modelT2v`)},{value:`wan2.6-i2v`,label:this.$t(`wan.button.modelI2v`)},{value:`wan2.6-i2v-flash`,label:this.$t(`wan.button.modelI2vFlash`)},{value:`wan2.6-r2v`,label:this.$t(`wan.button.modelR2v`)}]},value:{get(){return this.$store.state.wan?.config?.model},set(e){this.$store.commit(`wan/setConfig`,{...this.$store.state.wan?.config,model:e})}}},mounted(){this.value||=E}}),oe={class:`field`},se={class:`title font-bold`},ce={class:`float-left`};function le(r,i,c,d,f,p){let m=h(`el-option`),_=h(`el-select`);return u(),t(`div`,oe,[n(`h2`,se,l(r.$t(`wan.name.model`)),1),o(_,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`wan.placeholder.select`),clearable:``},{default:g(()=>[(u(!0),t(s,null,e(r.options,e=>(u(),a(m,{key:e.value,label:e.label,value:e.value},{default:g(()=>[n(`span`,ce,l(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ue=A(ae,[[`render`,le],[`__scopeId`,`data-v-eb090beb`]]),de=`720p`,fe=r({name:`ResolutionSelector`,components:{ElSelect:y,ElOption:b},computed:{options(){return[{value:`480p`,label:this.$t(`wan.name.resolution480p`)},{value:`720p`,label:this.$t(`wan.name.resolution720p`)},{value:`1080p`,label:this.$t(`wan.name.resolution1080p`)}]},value:{get(){return this.$store.state.wan?.config?.resolution},set(e){this.$store.commit(`wan/setConfig`,{...this.$store.state.wan?.config,resolution:e})}}},mounted(){this.value||=de}}),pe={class:`field`},me={class:`title font-bold`},he={class:`float-left`};function ge(r,i,c,d,f,p){let m=h(`el-option`),_=h(`el-select`);return u(),t(`div`,pe,[n(`h2`,me,l(r.$t(`wan.name.resolution`)),1),o(_,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`wan.placeholder.select`),clearable:``},{default:g(()=>[(u(!0),t(s,null,e(r.options,e=>(u(),a(m,{key:e.value,label:e.label,value:e.value},{default:g(()=>[n(`span`,he,l(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var _e=A(fe,[[`render`,ge],[`__scopeId`,`data-v-3e39f44e`]]),ve=5,ye=r({name:`DurationSelector`,components:{ElSelect:y,ElOption:b},computed:{options(){return[{value:5,label:this.$t(`wan.name.duration5s`)},{value:10,label:this.$t(`wan.name.duration10s`)},{value:15,label:this.$t(`wan.name.duration15s`)}]},value:{get(){return this.$store.state.wan?.config?.duration},set(e){this.$store.commit(`wan/setConfig`,{...this.$store.state.wan?.config,duration:e})}}},mounted(){this.value||=ve}}),be={class:`field`},xe={class:`title font-bold`},Se={class:`float-left`};function Ce(r,i,c,d,f,p){let m=h(`el-option`),_=h(`el-select`);return u(),t(`div`,be,[n(`h2`,xe,l(r.$t(`wan.name.duration`)),1),o(_,{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`value`,placeholder:r.$t(`wan.placeholder.select`),clearable:``},{default:g(()=>[(u(!0),t(s,null,e(r.options,e=>(u(),a(m,{key:e.value,label:e.label,value:e.value},{default:g(()=>[n(`span`,Se,l(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var we=A(ye,[[`render`,Ce],[`__scopeId`,`data-v-5f35a2cf`]]),Te=r({name:`ImageUrlInput`,components:{ElUpload:x,ElButton:v,InfoIcon:H,ImagePreview:z},mixins:[N,I],data(){return{fileList:[],uploadUrl:te()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e.url).filter(e=>e!==void 0)},value:{get(){return this.$store.state.wan?.config?.image_url},set(){let e=this.urls?.[0];this.$store.commit(`wan/setConfig`,{...this.$store.state.wan?.config,image_url:e})}}},mounted(){this.value||=void 0,this.onSetImageUrl()},methods:{onExceed(){O.warning(this.$t(`wan.message.uploadImageExceed`))},onError(){O.error(this.$t(`wan.message.uploadImageError`))},async onRemove(){O.error(this.$t(`wan.message.uploadImageError`))},onSetImageUrl(){let e=this.urls?.[0];this.$store.commit(`wan/setConfig`,{...this.$store.state.wan?.config,image_url:e})},async onSuccess(){this.onSetImageUrl()}}}),Ee={class:`relative`},De={class:`flex justify-between`},Oe={class:`flex justify-start items-center`},ke={class:`text-sm font-bold`};function Ae(e,r,s,c,d,f){let p=h(`info-icon`),_=h(`image-preview`),v=h(`el-button`),y=h(`el-upload`);return u(),t(`div`,Ee,[n(`div`,De,[n(`div`,Oe,[n(`span`,ke,l(e.$t(`wan.name.imageUrl`)),1),o(p,{content:e.$t(`wan.description.imageUrl`),class:`info`},null,8,[`content`])])]),o(y,{"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,name:`file`,"show-file-list":!0,limit:1,multiple:!1,"list-type":`picture`,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{file:g(({file:t})=>[t.url&&t.percentage!==void 0?(u(),a(_,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):m(``,!0)]),default:g(()=>[o(v,{size:`small`,type:`primary`,class:`btn btn-upload`,round:``},{default:g(()=>[i(l(e.$t(`wan.button.uploadImageUrl`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-remove`,`on-success`,`headers`])])}var je=A(Te,[[`render`,Ae],[`__scopeId`,`data-v-41a69004`]]),Me=r({name:`PromptInput`,components:{PromptTextarea:Y},computed:{prompt:{get(){return this.$store.state.wan?.config?.prompt},set(e){this.$store.commit(`wan/setConfig`,{...this.$store.state.wan?.config,prompt:e})}}},mounted(){this.prompt||=``}});function Ne(e,t,n,r,i,o){let s=h(`prompt-textarea`);return u(),a(s,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`wan.name.prompt`),info:e.$t(`wan.description.prompt`),placeholder:e.$t(`wan.placeholder.prompt`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Pe=r({name:`PresetPanel`,components:{ElButton:v,FontAwesomeIcon:L,PromptInput:A(Me,[[`render`,Ne]]),ImageUrlInput:je,ModelSelector:ue,ResolutionSelector:_e,DurationSelector:we,Consumption:V},emits:[`generate`],computed:{config(){return this.$store.state.wan?.config},consumption(){return M(this.config,this.service?.cost)},service(){return this.$store.state.wan?.service},supportsResolution(){let e=this.config?.model;return e===`wan2.6-t2v`||e===`wan2.6-i2v`||e===`wan2.6-i2v-flash`},supportsDuration(){return this.config?.model===`wan2.6-t2v`},supportsImageUrl(){let e=this.config?.model;return e===`wan2.6-i2v`||e===`wan2.6-i2v-flash`}},methods:{onGenerate(){this.$emit(`generate`)}}}),Fe={class:`flex flex-col h-full`},Ie={class:`flex-1 overflow-y-auto p-5`},Le={class:`flex flex-col items-center justify-center px-5 pb-5`};function Re(e,r,s,c,d,f){let p=h(`prompt-input`),_=h(`model-selector`),v=h(`resolution-selector`),y=h(`duration-selector`),b=h(`image-url-input`),x=h(`consumption`),S=h(`font-awesome-icon`),C=h(`el-button`);return u(),t(`div`,Fe,[n(`div`,Ie,[o(p,{class:`mb-4`}),o(_,{class:`mb-4`}),e.supportsResolution?(u(),a(v,{key:0,class:`mb-4`})):m(``,!0),e.supportsDuration?(u(),a(y,{key:1,class:`mb-4`})):m(``,!0),e.supportsImageUrl?(u(),a(b,{key:2,class:`mb-2`})):m(``,!0)]),n(`div`,Le,[o(x,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),o(C,{type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:g(()=>[o(S,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+l(e.$t(`wan.button.generate`)),1)]),_:1},8,[`onClick`])])])}var ze=A(Pe,[[`render`,Re]]),Be=r({name:`TaskPreview`,components:{ElImage:C,CopyToClipboard:R,FontAwesomeIcon:L,ElAlert:w,VideoPlayer:G,ElTooltip:S,ElButton:v,ApiCodeButton:K},props:{modelValue:{type:Object,required:!0}},setup(){return{WAN_LOGO:D}},computed:{application(){return this.$store.state.wan?.application},config(){return this.$store.state.wan?.config}},methods:{onDownload(e){console.debug(`on download wan video`,e),window.open(e,`_blank`)}}}),Ve={class:`preview`},He={class:`left`},Ue={class:`main`},We={class:`bot`},Ge={class:`datetime`},Ke={class:`info`},qe={key:0,class:`prompt mt-2`},Je={key:0},Ye={key:1},Xe={key:0,class:c({content:!0,failed:!0})},Ze={key:0,class:`mb-4`},Qe={key:1,class:c({operations:!0,"mt-2":!0})},$e={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},et={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},tt={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},$={key:1,class:c({content:!0})},nt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},rt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},it={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},at={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},ot={key:2,class:c({content:!0})},st={class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function ct(e,r,a,s,c,f){let p=h(`el-image`),_=h(`video-player`),v=h(`el-button`),y=h(`el-tooltip`),b=h(`api-code-button`),x=h(`font-awesome-icon`),S=h(`copy-to-clipboard`),C=h(`el-alert`);return u(),t(`div`,Ve,[n(`div`,He,[o(p,{src:e.WAN_LOGO,class:`avatar`},null,8,[`src`])]),n(`div`,Ue,[n(`div`,We,[i(l(e.$t(`wan.name.wanBot`))+` `,1),n(`span`,Ge,l(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,Ke,[e.modelValue?.request?.prompt?(u(),t(`p`,qe,[i(l(e.modelValue?.request?.prompt)+` `,1),e.modelValue?.response?m(``,!0):(u(),t(`span`,Je,` - (`+l(e.$t(`wan.status.pending`))+`) `,1)),e.modelValue?.response?.state===`processing`||e.modelValue?.response?.state===`pending`||e.modelValue?.response?.state===`running`?(u(),t(`span`,Ye,` - (`+l(e.$t(`wan.status.processing`))+`) `,1)):m(``,!0)])):m(``,!0)]),e.modelValue?.response?.success===!0?(u(),t(`div`,Xe,[e.modelValue?.response?.video_url?(u(),t(`div`,Ze,[o(_,{src:e.modelValue?.response?.video_url},null,8,[`src`])])):m(``,!0),e.modelValue?.response?.video_url?(u(),t(`div`,Qe,[o(y,{class:`box-item`,effect:`dark`,content:e.$t(`wan.message.downloadVideo`),placement:`top-start`},{default:g(()=>[o(v,{type:`info`,size:`small`,class:`mb-2`,onClick:r[0]||=d(t=>e.onDownload(e.modelValue?.response?.video_url),[`stop`])},{default:g(()=>[i(l(e.$t(`wan.button.download`)),1)]),_:1})]),_:1},8,[`content`]),o(b,{path:`/wan/videos`,body:e.modelValue?.request},null,8,[`body`])])):m(``,!0),o(C,{closable:!1,class:`mt-2 success`},{default:g(()=>[e.modelValue?.request?.model?(u(),t(`p`,$e,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.model`))+`: `+l(e.modelValue?.request?.model)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])])):m(``,!0),n(`p`,et,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.elapsed?(u(),t(`p`,tt,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):m(``,!0)]),_:1})])):m(``,!0),e.modelValue?.response?.success===!1?(u(),t(`div`,$,[o(C,{closable:!1,class:`failure`},{template:g(()=>[o(x,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.failure`)),1)]),default:g(()=>[n(`p`,nt,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])]),n(`p`,rt,[o(x,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.failureReason`))+`: `+l(e.modelValue?.response?.error?.message)+` `,1),o(S,{content:e.modelValue?.response?.error?.message},null,8,[`content`])]),e.modelValue?.elapsed?(u(),t(`p`,it,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):m(``,!0),n(`p`,at,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),o(S,{content:e.modelValue?.response?.trace_id},null,8,[`content`])])]),_:1})])):m(``,!0),e.modelValue?.response?.success===void 0?(u(),t(`div`,ot,[o(C,{closable:!1,class:`info`},{template:g(()=>[o(x,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.failure`)),1)]),default:g(()=>[n(`p`,st,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`wan.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])])]),_:1})])):m(``,!0)])])}var lt=r({name:`RecentPanel`,components:{TaskPreview:A(Be,[[`render`,ct],[`__scopeId`,`data-v-916b8970`]]),BotPlaceholder:q,NoTasks:J,ScrollList:U},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.wan?.tasks,items:this.$store.state.wan?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),ut={key:0},dt={key:2,class:`w-full h-full flex items-center justify-center`};function ft(n,r,i,c,l,d){let f=h(`bot-placeholder`),p=h(`task-preview`),_=h(`scroll-list`),v=h(`no-tasks`);return u(),t(s,null,[n.tasks?.items===void 0?(u(),t(`div`,ut,[o(f)])):n.tasks?.items?.length&&n.tasks?.items?.length>0?(u(),a(_,{key:1,ref:`scrollList`,class:`tasks w-full h-full overflow-y-auto`,loading:n.loading,onReachTop:r[0]||=e=>n.$emit(`reach-top`)},{default:g(()=>[(u(!0),t(s,null,e(n.tasks?.items,e=>(u(),a(p,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):m(``,!0),n.tasks?.items?.length===0?(u(),t(`div`,dt,[o(v)])):m(``,!0)],64)}var pt=r({name:`WanIndex`,components:{ConfigPanel:ze,Layout:ie,RecentPanel:A(lt,[[`render`,ft]])},mixins:[ee],inject:[`initialized`],data(){return{task:void 0,job:0,timer:void 0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.wan?.status?.getApplications===k.Request},tasksLoading(){return this.$store.state.wan?.status?.getTasks===k.Request||this.fetchingTasks},credential(){return this.$store.state.wan.credential},config(){return this.$store.state.wan.config},application(){return this.$store.state.wan.application},tasks(){return this.$store.state.wan.tasks}},watch:{tasks:{handler(e,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 W({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug(`start onGetService`),await this.$store.dispatch(`wan/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplication`),await this.$store.dispatch(`wan/getApplications`),console.debug(`end onGetApplication`),await this.onGetTasks()},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug(`loading`);return}console.debug(`start onGetTasks`,e);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`wan/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!j(this.uploadTracker,e=>this.$t(e),e=>O.warning(e)))return;let e={...this.config,async:!0},t=this.credential?.token;if(!t){console.error(`no token specified`);return}O.info(this.$t(`wan.message.startingTask`)),F(`wan`,P.generate(e,{token:t})).then(()=>{O.success(this.$t(`wan.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?O.error(this.$t(`wan.message.usedUp`)):O.error(this.$t(`wan.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function mt(e,t,n,r,i,s){let c=h(`config-panel`),l=h(`recent-panel`),d=h(`layout`);return u(),a(d,null,{config:g(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:g(()=>[o(l,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var ht=A(pt,[[`render`,mt]]);export{ht as default};
|