@acedatacloud/nexior 2.11.25 → 2.11.26
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/{Auth.b7ed39c7.js → Auth.fba00bc9.js} +1 -1
- package/dist/assets/{Buy.f6ca8528.js → Buy.bf617c6e.js} +1 -1
- package/dist/assets/{Buy.51069f93.js → Buy.cab460dd.js} +1 -1
- package/dist/assets/{Callback.465698e2.js → Callback.99d34bf9.js} +1 -1
- package/dist/assets/{Chatdoc.eefed2de.js → Chatdoc.42355bed.js} +1 -1
- package/dist/assets/{Console.519797dc.js → Console.f7842665.js} +1 -1
- package/dist/assets/{Conversation.c860e08b.js → Conversation.5a5a0f85.js} +1 -1
- package/dist/assets/{Conversation.6a4711c2.js → Conversation.966835dc.js} +1 -1
- package/dist/assets/{CopyToClipboard.abdd66a3.js → CopyToClipboard.cb70f6d1.js} +1 -1
- package/dist/assets/{DarkSelector.3ea8ad78.js → DarkSelector.c24f69bb.js} +1 -1
- package/dist/assets/{Detail.eb6944a8.js → Detail.a4d10b8e.js} +1 -1
- package/dist/assets/{History.9354153c.js → History.710c3b79.js} +1 -1
- package/dist/assets/{Index.68fc07b7.js → Index.3443451a.js} +1 -1
- package/dist/assets/{Index.ea0b00b3.js → Index.39093804.js} +1 -1
- package/dist/assets/{Index.0280130a.js → Index.461d0559.js} +1 -1
- package/dist/assets/{Index.79c89844.js → Index.5f4c052d.js} +1 -1
- package/dist/assets/{Index.2d11ef90.js → Index.65f5afb0.js} +1 -1
- package/dist/assets/{Index.9b27f093.js → Index.6c2c55c7.js} +1 -1
- package/dist/assets/{Index.72319b6c.js → Index.6ddc6d6b.js} +1 -1
- package/dist/assets/{Index.b6e4f98e.js → Index.8544caed.js} +1 -1
- package/dist/assets/{Index.ecd1c12c.js → Index.9498266f.js} +1 -1
- package/dist/assets/{Index.5813d2a5.js → Index.efccde33.js} +1 -1
- package/dist/assets/{Index.1da293d9.js → Index.fcd5a7fa.js} +1 -1
- package/dist/assets/{InfoIcon.984a0f98.js → InfoIcon.ac0ec619.js} +1 -1
- package/dist/assets/{Invitees.87f31c24.js → Invitees.ec75effd.js} +1 -1
- package/dist/assets/{List.ed984c17.js → List.22e3bbc6.js} +1 -1
- package/dist/assets/{List.6757640c.js → List.51070687.js} +1 -1
- package/dist/assets/{List.335e4eb2.js → List.dfb1ed0c.js} +1 -1
- package/dist/assets/{Login.9832aa80.js → Login.523b728b.js} +1 -1
- package/dist/assets/{Main.ce761839.js → Main.c85a1b03.js} +1 -1
- package/dist/assets/{Manage.827eefe4.js → Manage.075de898.js} +1 -1
- package/dist/assets/{MarkdownRenderer.b23ba834.js → MarkdownRenderer.46407948.js} +1 -1
- package/dist/assets/{Navigator.9c20f675.js → Navigator.eb351a66.js} +1 -1
- package/dist/assets/{Pagination.a7df00bb.js → Pagination.60d85127.js} +1 -1
- package/dist/assets/{Setting.ef22c5c9.js → Setting.6305ba57.js} +1 -1
- package/dist/assets/{Status.342d6a85.js → Status.5405912d.js} +1 -1
- package/dist/assets/common.02d369f1.js +1 -0
- package/dist/assets/common.0ade0376.js +1 -0
- package/dist/assets/common.198ade39.js +1 -0
- package/dist/assets/common.2bbcc74d.js +1 -0
- package/dist/assets/common.33d95e44.js +1 -0
- package/dist/assets/common.61f5fcaf.js +1 -0
- package/dist/assets/common.6e5b6c21.js +1 -0
- package/dist/assets/common.82026752.js +1 -0
- package/dist/assets/common.afa53b9c.js +1 -0
- package/dist/assets/common.c2d1ab1f.js +1 -0
- package/dist/assets/common.c59e6580.js +1 -0
- package/dist/assets/common.d711cd21.js +1 -0
- package/dist/assets/common.d9881f10.js +1 -0
- package/dist/assets/common.e08e861d.js +1 -0
- package/dist/assets/common.e62048ca.js +1 -0
- package/dist/assets/common.eaea3566.js +1 -0
- package/dist/assets/common.f5089080.js +1 -0
- package/dist/assets/{distribution.cec5b5c1.js → distribution.c4190e75.js} +1 -1
- package/dist/assets/headshots.1a490a07.js +1 -0
- package/dist/assets/headshots.1cbbfdec.js +1 -0
- package/dist/assets/headshots.4c83a9b2.js +1 -0
- package/dist/assets/headshots.563e619d.js +1 -0
- package/dist/assets/headshots.56eae7e4.js +1 -0
- package/dist/assets/headshots.592a7a6d.js +1 -0
- package/dist/assets/headshots.5fdd5f0b.js +1 -0
- package/dist/assets/headshots.6501db19.js +1 -0
- package/dist/assets/headshots.6a51ab17.js +1 -0
- package/dist/assets/headshots.880f2cb1.js +1 -0
- package/dist/assets/headshots.9f5c1eb1.js +1 -0
- package/dist/assets/headshots.a6439b75.js +1 -0
- package/dist/assets/headshots.ad352e10.js +1 -0
- package/dist/assets/headshots.ae3d4804.js +1 -0
- package/dist/assets/headshots.b7f623fd.js +1 -0
- package/dist/assets/headshots.c94c35eb.js +1 -0
- package/dist/assets/headshots.fd93138d.js +1 -0
- package/dist/assets/index.daadea41.js +3 -0
- package/dist/assets/{order.8751dfe2.js → order.5673ca62.js} +1 -1
- package/dist/assets/{price.c76e5634.js → price.bb43bde7.js} +1 -1
- package/dist/assets/site.0972ffdc.js +1 -0
- package/dist/assets/site.154a23bc.js +1 -0
- package/dist/assets/site.2008f862.js +1 -0
- package/dist/assets/site.3ae9c149.js +1 -0
- package/dist/assets/site.3eed797c.js +1 -0
- package/dist/assets/site.42566329.js +1 -0
- package/dist/assets/site.4b614d29.js +1 -0
- package/dist/assets/site.5b344bb7.js +1 -0
- package/dist/assets/site.77b7373b.js +1 -0
- package/dist/assets/site.85805ad6.js +1 -0
- package/dist/assets/site.9b6554c2.js +1 -0
- package/dist/assets/site.b015bfad.js +1 -0
- package/dist/assets/site.b2414f97.js +1 -0
- package/dist/assets/site.c167a927.js +1 -0
- package/dist/assets/site.c1d9ffc1.js +1 -0
- package/dist/assets/site.d1ae2dd0.js +1 -0
- package/dist/assets/{site.cfe00c2b.js → site.ea180d67.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/common.146d31b1.js +0 -1
- package/dist/assets/common.1e652034.js +0 -1
- package/dist/assets/common.4c66b33d.js +0 -1
- package/dist/assets/common.6150ede3.js +0 -1
- package/dist/assets/common.73c9b054.js +0 -1
- package/dist/assets/common.85fdae2d.js +0 -1
- package/dist/assets/common.90cd414a.js +0 -1
- package/dist/assets/common.947a5918.js +0 -1
- package/dist/assets/common.9bd91c77.js +0 -1
- package/dist/assets/common.a40c20b7.js +0 -1
- package/dist/assets/common.a5a9c973.js +0 -1
- package/dist/assets/common.b05744c2.js +0 -1
- package/dist/assets/common.d16fa63d.js +0 -1
- package/dist/assets/common.d2eca526.js +0 -1
- package/dist/assets/common.d456d464.js +0 -1
- package/dist/assets/common.d47e502f.js +0 -1
- package/dist/assets/common.dfc59517.js +0 -1
- package/dist/assets/index.badcd9f9.js +0 -3
- package/dist/assets/site.18e798ee.js +0 -1
- package/dist/assets/site.1fc2c63f.js +0 -1
- package/dist/assets/site.37285cf7.js +0 -1
- package/dist/assets/site.3a4f2290.js +0 -1
- package/dist/assets/site.4ba378ce.js +0 -1
- package/dist/assets/site.66a5a33f.js +0 -1
- package/dist/assets/site.8cead71f.js +0 -1
- package/dist/assets/site.96767aea.js +0 -1
- package/dist/assets/site.9e297093.js +0 -1
- package/dist/assets/site.af3599a8.js +0 -1
- package/dist/assets/site.b74a7434.js +0 -1
- package/dist/assets/site.bb7a593b.js +0 -1
- package/dist/assets/site.bf122cf9.js +0 -1
- package/dist/assets/site.d4cc2e82.js +0 -1
- package/dist/assets/site.d76818e1.js +0 -1
- package/dist/assets/site.fee5f286.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var Ie=Object.defineProperty,Ce=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var fe=(e,t,o)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))Ne.call(t,o)&&fe(e,o,t[o]);if(he)for(var o of he(t))Ae.call(t,o)&&fe(e,o,t[o]);return e},f=(e,t)=>Ce(e,Se(t));import{K as X,V as Te,L as $e,P as xe,M as Ee}from"./vendor-others.4f34a866.js";import{an as ie}from"./vendor-fortawesome.f1998e53.js";import{_ as w,ay as ve,V as se,B as Ve,az as je}from"./index.
|
|
1
|
+
var Ie=Object.defineProperty,Ce=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var fe=(e,t,o)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>{for(var o in t||(t={}))Ne.call(t,o)&&fe(e,o,t[o]);if(he)for(var o of he(t))Ae.call(t,o)&&fe(e,o,t[o]);return e},f=(e,t)=>Ce(e,Se(t));import{K as X,V as Te,L as $e,P as xe,M as Ee}from"./vendor-others.4f34a866.js";import{an as ie}from"./vendor-fortawesome.f1998e53.js";import{_ as w,ay as ve,V as se,B as Ve,az as je}from"./index.daadea41.js";import{P as De,l as ae,w as Le,x as Fe,T as ge,N as ee,s as re,X as le,Z as Ue,_ as ye,$ as ke,u as Ge,S as we,t as Re,C as ze,R as Me,a0 as Oe,a1 as qe,a2 as Be,M as H}from"./vendor-element-plus.ddf5f024.js";import{H as b,al as u,o as l,e as _,S as k,f as a,I as Z,V as r,M as y,U as $,W as K,ai as J,L as P,av as be,O as ce,T as oe,m as U,u as g,A as Pe,s as We,R as He,P as Ke}from"./vendor-@vue.853aef6d.js";import{A as Xe,i as Ye}from"./Status.5405912d.js";import{I as te}from"./InfoIcon.ac0ec619.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";const Ze=b({name:"LayoutSuno",components:{ElDrawer:De,ElButton:ae,FontAwesomeIcon:ie},data(){return{drawer:!1,preview:!1}},computed:{isPlaying(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.player)==null?void 0:t.isPlaying}}}),Je={class:"main"},Qe={class:"config"},et={class:"result"},tt={class:"preview"};function st(e,t,o,s,c,d){const n=u("font-awesome-icon"),p=u("el-button"),h=u("el-drawer");return l(),_("div",Je,[k(" \u6700\u5DE6\u4FA7\u914D\u7F6E\u680F "),a("div",Qe,[Z(e.$slots,"config",{},void 0,!0)]),k(" \u4E2D\u95F4\u6B4C\u66F2\u5217\u8868\u680F "),a("div",et,[Z(e.$slots,"result",{},void 0,!0)]),k(" \u6700\u53F3\u8FB9\u6B4C\u66F2\u9884\u89C8\u680F "),a("div",tt,[Z(e.$slots,"preview",{},void 0,!0)]),r(p,{round:"",class:"menu",onClick:t[0]||(t[0]=v=>e.drawer=!0)},{default:y(()=>[r(n,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),r(h,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=v=>e.drawer=v),"with-header":!1,size:"340px",class:"drawer"},{default:y(()=>[Z(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"]),k(` <el-drawer v-model="isPlaying" :with-header="false" size="340px" class="preview_drawer">
|
|
2
2
|
<slot name="preview" />
|
|
3
3
|
</el-drawer> `)])}var ot=w(Ze,[["render",st],["__scopeId","data-v-0621513c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Suno.vue"]]);const nt=b({name:"VersionSelector",components:{ElSelect:Le,ElOption:Fe,ElSwitch:ge},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{label:this.$t("suno.model.model1"),value:"chirp-v2-xxl-alpha"},{label:this.$t("suno.model.model2"),value:"chirp-v3-0"},{label:this.$t("suno.model.model3"),value:"chirp-v3-5"}]}},computed:{custom:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{custom:e}))}},model:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.model},set(e){var t;console.debug("set model",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{model:e}))}}},mounted(){this.model||(console.debug("set default type",ve),this.model=ve)}}),it={class:"field"},at={class:"title"};function rt(e,t,o,s,c,d){const n=u("el-switch"),p=u("el-option"),h=u("el-select");return l(),_("div",it,[a("h2",at,$(e.$t("suno.name.type")),1),r(n,{modelValue:e.custom,"onUpdate:modelValue":t[0]||(t[0]=v=>e.custom=v),class:"value"},null,8,["modelValue"]),r(h,{modelValue:e.model,"onUpdate:modelValue":t[1]||(t[1]=v=>e.model=v),class:"value",placeholder:e.$t("suno.placeholder.select")},{default:y(()=>[(l(!0),_(K,null,J(e.options,v=>(l(),P(p,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var lt=w(nt,[["render",rt],["__scopeId","data-v-6d5f21aa"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/TypeSelector.vue"]]);const ct="",ut=b({name:"PromptInput",components:{ElInput:ee,InfoIcon:te},data(){return{}},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=ct)}}),dt={class:"field"},pt={class:"box"},_t={class:"title"};function mt(e,t,o,s,c,d){const n=u("info-icon"),p=u("el-input");return l(),_("div",dt,[a("div",pt,[a("h2",_t,$(e.$t("suno.name.prompt")),1),r(n,{content:e.$t("suno.description.prompt"),class:"info"},null,8,["content"])]),r(p,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=h=>e.prompt=h),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("suno.placeholder.prompt"),maxlength:200,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var ht=w(ut,[["render",mt],["__scopeId","data-v-11b65236"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/PromptInput.vue"]]);const ft="",vt=b({name:"LyricInput",components:{ElInput:ee,InfoIcon:te},data(){return{}},computed:{lyric:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.lyric},set(e){var t;console.debug("set lyric",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{lyric:e}))}},config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}},mounted(){this.value||(this.value=ft)}}),$t={class:"field"},gt={class:"box"},yt={class:"title"};function kt(e,t,o,s,c,d){var h;const n=u("info-icon"),p=u("el-input");return l(),_("div",$t,[a("div",gt,[a("h2",yt,$(e.$t("suno.name.lyrics")),1),r(n,{content:e.$t("suno.description.lyrics"),class:"info"},null,8,["content"])]),((h=e.config)==null?void 0:h.action)!=="extend"?(l(),P(p,{key:0,modelValue:e.lyric,"onUpdate:modelValue":t[0]||(t[0]=v=>e.lyric=v),rows:3,type:"textarea",class:"lyrics",placeholder:e.$t("suno.placeholder.lyrics"),maxlength:3e3,"show-word-limit":""},null,8,["modelValue","placeholder"])):(l(),P(p,{key:1,modelValue:e.lyric,"onUpdate:modelValue":t[1]||(t[1]=v=>e.lyric=v),rows:3,type:"textarea",class:"lyrics",placeholder:e.$t("suno.placeholder.extend.lyrics"),maxlength:3e3,"show-word-limit":""},null,8,["modelValue","placeholder"]))])}var wt=w(vt,[["render",kt],["__scopeId","data-v-b47f1748"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/LyricInput.vue"]]);const bt=b({name:"StyleInput",components:{ElInput:ee,InfoIcon:te},data(){return{}},computed:{style:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.style},set(e){var t;console.debug("set style",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{style:e}))}},config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}}}),Pt={class:"field"},It={class:"title-container"},Ct={class:"title"};function St(e,t,o,s,c,d){const n=u("info-icon"),p=u("el-input");return l(),_("div",Pt,[a("div",It,[a("h2",Ct,$(e.$t("suno.name.style")),1),r(n,{content:e.$t("suno.description.style"),class:"info"},null,8,["content"])]),r(p,{modelValue:e.style,"onUpdate:modelValue":t[0]||(t[0]=h=>e.style=h),rows:3,type:"textarea",class:"style",placeholder:e.$t("suno.placeholder.style"),maxlength:120,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Nt=w(bt,[["render",St],["__scopeId","data-v-075e574a"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/StyleInput.vue"]]);const At="",Tt=b({name:"TitleInput",components:{ElInput:ee,InfoIcon:te},data(){return{}},computed:{title:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.title},set(e){var t;console.debug("set title",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{title:e}))}},instrumental:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.instrumental},set(e){var t;console.debug("set instrumental",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{instrumental:e}))}}},mounted(){this.value||(this.value=At)}}),xt={class:"field"},Et={class:"title-container"},Vt={class:"title"};function jt(e,t,o,s,c,d){const n=u("info-icon"),p=u("el-input");return l(),_("div",xt,[a("div",Et,[a("h2",Vt,$(e.$t("suno.name.title")),1),r(n,{content:e.$t("suno.description.title"),class:"info"},null,8,["content"])]),r(p,{modelValue:e.title,"onUpdate:modelValue":t[0]||(t[0]=h=>e.title=h),rows:3,type:"textarea",class:"title",placeholder:e.$t("suno.placeholder.title"),maxlength:80,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Dt=w(Tt,[["render",jt],["__scopeId","data-v-f9bac2fa"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/TitleInput.vue"]]);function Q(e){const t=Math.floor(e)%60;e=Math.floor(e/60);const o=e%60,s=o<10?`0${o}`:o,c=t<10?`0${t}`:t;return s+":"+c}const Lt=b({name:"ExtendFromInput",components:{ElImage:re,ElIcon:le,ElInputNumber:Ue,VideoPlay:ye,VideoPause:ke},data(){return{}},computed:{audio(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.audio},value:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.continue_at},set(e){var t;console.debug("set continue_at",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{continue_at:e?parseInt(e):void 0}))}}},mounted(){this.value||(this.value=void 0)},methods:{handleChange(e){var t,o;e<0?this.value=0:e>((t=this.audio)==null?void 0:t.duration)?this.value=(o=this.audio)==null?void 0:o.duration:this.value=e},useFormatDuring:Q,onPlay(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"playing"})),console.log("on play")},onPause(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"paused"})),console.log("on pause")},onClick(e){var t,o,s;((s=(o=(t=this.$store.state)==null?void 0:t.suno)==null?void 0:o.audio)==null?void 0:s.id)!==e.id&&this.onPlay(f(m({},e),{progress:0}))}}}),Ft={class:"field"},Ut={class:"box"},Gt={class:"title"},Rt={class:"input-wrapper"},zt={class:"task"},Mt={class:"left"},Ot={key:2,class:"duration"},qt={class:"info"},Bt={class:"title"},Wt={class:"style"};function Ht(e,t,o,s,c,d){var S,N,i,A,I,C,E,V,j,F,L,G,R,z,M,O,q,B,W,D,ue,de,pe,_e,me;const n=u("el-input-number"),p=u("el-image"),h=u("video-pause"),v=u("el-icon"),T=u("video-play"),x=be("loading");return l(),_("div",Ft,[a("div",Ut,[a("h2",Gt,$(e.$t("suno.name.extend")),1),a("div",Rt,[r(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=Y=>e.value=Y),class:"value",min:0,max:(S=e.audio)==null?void 0:S.duration,controls:!1,placeholder:e.$t("suno.placeholder.extend.continue_at"),onChange:e.handleChange},null,8,["modelValue","max","placeholder","onChange"])])]),a("div",zt,[a("div",{class:"audio",onClick:t[3]||(t[3]=Y=>e.onClick(e.audio))},[ce((l(),_("div",Mt,[r(p,{src:(N=e.audio)==null?void 0:N.image_url,class:"cover",fit:"cover"},null,8,["src"]),((i=e.audio)==null?void 0:i.audio_url)&&((C=(I=(A=e.$store.state)==null?void 0:A.suno)==null?void 0:I.audio)==null?void 0:C.id)===e.audio.id&&((j=(V=(E=e.$store.state)==null?void 0:E.suno)==null?void 0:V.audio)==null?void 0:j.state)==="playing"?(l(),_("div",{key:0,class:"overlay",onClick:t[1]||(t[1]=Y=>e.onPause(e.audio))},[r(v,null,{default:y(()=>[r(h)]),_:1})])):k("v-if",!0),((F=e.audio)==null?void 0:F.audio_url)&&(((R=(G=(L=e.$store.state)==null?void 0:L.suno)==null?void 0:G.audio)==null?void 0:R.id)!==e.audio.id||((O=(M=(z=e.$store.state)==null?void 0:z.suno)==null?void 0:M.audio)==null?void 0:O.id)===e.audio.id&&((W=(B=(q=e.$store.state)==null?void 0:q.suno)==null?void 0:B.audio)==null?void 0:W.state)==="paused")?(l(),_("div",{key:1,class:"overlay",onClick:t[2]||(t[2]=Y=>e.onPlay(e.audio))},[r(v,null,{default:y(()=>[r(T)]),_:1})])):k("v-if",!0),(D=e.audio)!=null&&D.duration?(l(),_("div",Ot,$(e.useFormatDuring((ue=e.audio)==null?void 0:ue.duration)),1)):k("v-if",!0)])),[[x,!((de=e.audio)!=null&&de.audio_url)||!((pe=e.audio)!=null&&pe.video_url)]]),a("div",qt,[a("h2",Bt,$((_e=e.audio)==null?void 0:_e.title),1),a("p",Wt,$((me=e.audio)==null?void 0:me.style),1)])])])])}var Kt=w(Lt,[["render",Ht],["__scopeId","data-v-040b76e5"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/ExtendFromInput.vue"]]);const Xt=!1,Yt=b({name:"InstrumentSwitch",components:{ElSwitch:ge},data(){return{}},computed:{instrumental:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.instrumental},set(e){var t;console.debug("set instrumental",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{instrumental:e}))}}},mounted(){this.instrumental===void 0&&(this.instrumental=Xt)}}),Zt={class:"field"},Jt={class:"title inline-block"};function Qt(e,t,o,s,c,d){const n=u("el-switch");return l(),_("div",Zt,[r(n,{modelValue:e.instrumental,"onUpdate:modelValue":t[0]||(t[0]=p=>e.instrumental=p),class:"value mr-2"},null,8,["modelValue"]),a("h2",Jt,$(e.$t("suno.name.instrumental")),1)])}var es=w(Yt,[["render",Qt],["__scopeId","data-v-78764cec"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/InstrumentSwitch.vue"]]);const ts=b({name:"PresetPanel",components:{TypeSelector:lt,PromptInput:ht,LyricInput:wt,InstrumentSwitch:es,StyleInput:Nt,TitleInput:Dt,ExtendFromInput:Kt,FontAwesomeIcon:ie,ElButton:ae},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),ss={class:"panel"},os={class:"config"},ns={class:"actions"};function is(e,t,o,s,c,d){var A,I,C,E,V,j;const n=u("type-selector"),p=u("instrument-switch"),h=u("prompt-input"),v=u("lyric-input"),T=u("style-input"),x=u("title-input"),S=u("extend-from-input"),N=u("font-awesome-icon"),i=u("el-button");return l(),_("div",ss,[a("div",os,[r(n,{class:"mb-4"}),r(p,{class:"mb-4 instrument"}),(A=e.config)!=null&&A.custom?k("v-if",!0):(l(),P(h,{key:0,class:"mb-4"})),((I=e.config)==null?void 0:I.custom)&&!e.config.instrumental?(l(),P(v,{key:1,class:"mb-4"})):k("v-if",!0),(C=e.config)!=null&&C.custom?(l(),P(T,{key:2,class:"mb-4"})):k("v-if",!0),(E=e.config)!=null&&E.custom?(l(),P(x,{key:3,class:"mb-4"})):k("v-if",!0),((V=e.config)==null?void 0:V.action)==="extend"?(l(),P(S,{key:4,class:"mb-4"})):k("v-if",!0),a("div",ns,[((j=e.config)==null?void 0:j.action)!=="extend"?(l(),P(i,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:y(()=>[r(N,{icon:"fa-solid fa-magic",class:"mr-2"}),oe(" "+$(e.$t("suno.button.generate")),1)]),_:1},8,["onClick"])):(l(),P(i,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:y(()=>[r(N,{icon:"fa-solid fa-magic",class:"mr-2"}),oe(" "+$(e.$t("suno.button.extend")),1)]),_:1},8,["onClick"]))])])])}var as=w(ts,[["render",is],["__scopeId","data-v-38bb3c66"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/ConfigPanel.vue"]]);const rs=b({name:"TaskPreview",components:{ElImage:re,ElIcon:le,ElTooltip:Ge,ElButton:ae,FontAwesomeIcon:ie,VideoPlay:ye,VideoPause:ke},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{task(){var e;return(e=this.$store.state.suno)==null?void 0:e.tasks},audios(){var t,o,s,c,d;let e=[];return Array.isArray((o=(t=this.modelValue)==null?void 0:t.response)==null?void 0:o.data)&&((d=(c=(s=this.modelValue)==null?void 0:s.response)==null?void 0:c.data)==null||d.forEach(n=>{let p=n;e.push(p)})),console.log("audios",e),e},application(){var e;return(e=this.$store.state.suno)==null?void 0:e.application},active(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.tasks)==null?void 0:t.active}},methods:{useFormatDuring:Q,onPlay(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"playing"})),console.log("on play")},onPause(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"paused"})),console.log("on pause")},onClick(e){var t,o,s;((s=(o=(t=this.$store.state)==null?void 0:t.suno)==null?void 0:o.audio)==null?void 0:s.id)!==e.id&&this.onPlay(f(m({},e),{progress:0}))},onExtend(e,t){var o;e.stopPropagation(),console.log("on extend"),console.debug("set config",t),this.$store.commit("suno/setConfig",f(m({},(o=this.$store.state.suno)==null?void 0:o.config),{model:t.model,custom:!0,instrumental:!1,style:t.style,action:"extend",audio:t,audio_id:t.id,continue_at:t.duration}))},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onPreview(e,t){e.stopPropagation(),console.log("on preview"),window.open(t,"_blank")}}}),ls={class:"task"},cs=["onClick"],us={class:"left"},ds=["onClick"],ps=["onClick"],_s={key:2,class:"duration"},ms={class:"info"},hs={class:"title"},fs={class:"style"},vs={class:"right"};function $s(e,t,o,s,c,d){const n=u("el-image"),p=u("video-pause"),h=u("el-icon"),v=u("video-play"),T=u("el-button"),x=u("font-awesome-icon"),S=u("el-tooltip"),N=be("loading");return l(),_("div",ls,[(l(!0),_(K,null,J(e.audios,(i,A)=>{var I,C,E,V,j,F,L,G,R,z,M,O,q,B,W;return l(),_("div",{key:A,class:"audio",onClick:D=>e.onClick(i)},[ce((l(),_("div",us,[r(n,{src:i==null?void 0:i.image_url,class:"cover",fit:"cover"},null,8,["src"]),(i==null?void 0:i.audio_url)&&((E=(C=(I=e.$store.state)==null?void 0:I.suno)==null?void 0:C.audio)==null?void 0:E.id)===i.id&&((F=(j=(V=e.$store.state)==null?void 0:V.suno)==null?void 0:j.audio)==null?void 0:F.state)==="playing"?(l(),_("div",{key:0,class:"overlay",onClick:D=>e.onPause(i)},[r(h,null,{default:y(()=>[r(p)]),_:1})],8,ds)):k("v-if",!0),(i==null?void 0:i.audio_url)&&(((R=(G=(L=e.$store.state)==null?void 0:L.suno)==null?void 0:G.audio)==null?void 0:R.id)!==i.id||((O=(M=(z=e.$store.state)==null?void 0:z.suno)==null?void 0:M.audio)==null?void 0:O.id)===i.id&&((W=(B=(q=e.$store.state)==null?void 0:q.suno)==null?void 0:B.audio)==null?void 0:W.state)==="paused")?(l(),_("div",{key:1,class:"overlay",onClick:D=>e.onPlay(i)},[r(h,null,{default:y(()=>[r(v)]),_:1})],8,ps)):k("v-if",!0),i!=null&&i.duration?(l(),_("div",_s,$(e.useFormatDuring(i==null?void 0:i.duration)),1)):k("v-if",!0)])),[[N,!(i!=null&&i.audio_url)||!(i!=null&&i.video_url)]]),a("div",ms,[a("h2",hs,$(i==null?void 0:i.title),1),a("p",fs,$(i==null?void 0:i.style),1)]),a("div",vs,[(i==null?void 0:i.audio_url)&&(i==null?void 0:i.video_url)?(l(),P(T,{key:0,size:"small",round:"",onClick:D=>e.onExtend(D,i)},{default:y(()=>[oe($(e.$t("suno.button.extend")),1)]),_:2},1032,["onClick"])):k("v-if",!0),r(S,{effect:"dark",content:e.$t("suno.button.download"),placement:"top"},{default:y(()=>[i!=null&&i.audio_url?(l(),P(x,{key:0,icon:"fa-solid fa-download",class:"icon icon-download",onClick:D=>e.onDownload(D,i==null?void 0:i.audio_url)},null,8,["onClick"])):k("v-if",!0)]),_:2},1032,["content"]),r(S,{effect:"dark",content:e.$t("suno.button.video"),placement:"top"},{default:y(()=>[i!=null&&i.video_url?(l(),P(x,{key:0,icon:"fa-solid fa-clapperboard",class:"icon icon-preview",onClick:D=>e.onPreview(D,i==null?void 0:i.video_url)},null,8,["onClick"])):k("v-if",!0)]),_:2},1032,["content"])])],8,cs)}),128))])}var gs=w(rs,[["render",$s],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/task/Preview.vue"]]);const ys={class:"player-slider"},ks=b({setup(e){const t=X(),o=U({get:()=>{var n,p;return(p=(n=t.state.suno)==null?void 0:n.audio)==null?void 0:p.progress},set:n=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:n}))}),s=U({get:()=>{var n,p;return(p=(n=t.state.suno)==null?void 0:n.audio)==null?void 0:p.duration},set:n=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{duration:n}))}),c=()=>{},d=n=>t.dispatch("suno/setAudio",f(m({},t.state.suno.audio),{progress:n}));return(n,p)=>(l(),_("div",ys,[r(g(we),{modelValue:g(o),"onUpdate:modelValue":p[0]||(p[0]=h=>Pe(o)?o.value=h:null),"show-tooltip":!1,min:0,max:g(s),onChange:d,onInput:c},null,8,["modelValue","max"])]))}});var ws=w(ks,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerSlider.vue"]]),bs="/assets/disk.4907c891.png";const Ps={class:"flex player-song"},Is=["src"],Cs={class:"ml-2 text-xs flex flex-col justify-between"},Ss={class:"w-52 2xl:w-96 cursor-pointer truncate"},Ns={class:"flex"},As={class:"ml-2 text-dc"},Ts=b({setup(e){const t=X(),o=U({get:()=>t.state.suno.audio,set:s=>t.commit("suno/setAudio",s)});return We(o,(s,c)=>{if((s==null?void 0:s.audio_url)!==(c==null?void 0:c.audio_url)){console.log("audio changed",s),s.object&&(console.log("111",s.object),s.object.pause(),delete s.object);const d=new Audio(s.audio_url);s.state==="playing"?d.play():d.pause(),d.addEventListener("loadedmetadata",()=>{d.currentTime=0,d.addEventListener("timeupdate",()=>{t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:d.currentTime}))})}),t.commit("suno/setAudio",f(m({},t.state.suno.audio),{object:d}))}else if((s==null?void 0:s.progress)!==(c==null?void 0:c.progress)&&Math.abs(s.progress-s.object.currentTime)>2){console.log("progress changed",s.progress);const d=t.state.suno.audio;d.object&&(d.object.currentTime=d.progress)}else(s==null?void 0:s.state)!==(c==null?void 0:c.state)&&(console.log("state changed",s.state),s.object&&(s.state==="playing"?s.object.play():s.object.pause()));(s==null?void 0:s.volume)!==(c==null?void 0:c.volume)&&(console.log("volume changed",s.volume),s.object&&(s.object.volume=s.volume/100))}),(s,c)=>{var d,n,p;return l(),_("div",Ps,[a("img",{alt:"",class:"w-11 h-11 rounded",src:((d=g(o))==null?void 0:d.image_url)||g(bs)},null,8,Is),a("div",Cs,[a("div",Ss,[a("div",Ns,[a("span",null,$(((n=g(o))==null?void 0:n.title)||"Music"),1),a("span",As,"- "+$(((p=g(o))==null?void 0:p.style)||"SmallRuralDog"),1)])])])])}}});var xs=w(Ts,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerSong.vue"]]);const Es={class:"flex justify-end items-center gap-x-2.5"},Vs={class:"text-xs"},js=b({setup(e){const t=X(),o=U({get:()=>{var c,d;return(d=(c=t.state.suno)==null?void 0:c.audio)==null?void 0:d.progress},set:c=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:c}))}),s=U({get:()=>{var c,d;return(d=(c=t.state.suno)==null?void 0:c.audio)==null?void 0:d.duration},set:c=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{duration:c}))});return(c,d)=>(l(),_("div",Es,[a("span",Vs,$(g(Q)(g(o)))+" / "+$(g(Q)(g(s))),1)]))}});var Ds=w(js,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerAction.vue"]]);const Ls=b({props:{icon:{type:null,required:!0},theme:{type:String,required:!1},size:{type:[Number,String],required:!1},spin:{type:Boolean,required:!1},fill:{type:[String,Array],required:!1},strokeLinecap:{type:String,required:!1},strokeLinejoin:{type:String,required:!1},strokeWidth:{type:Number,required:!1}},setup(e){return(t,o)=>(l(),P(He(e.icon),{theme:e.theme,size:e.size,spin:e.spin,fill:e.fill,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,"stroke-width":e.strokeWidth},null,8,["theme","size","spin","fill","stroke-linecap","stroke-linejoin","stroke-width"]))}});var ne=w(Ls,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/IconPark.vue"]]);const Fs={class:"player-volume flex flex-col items-center pt-2"},Us={class:"text-sm mt-3"},Gs={class:"mt-2"},Rs=b({setup(e){const t=X(),o=U({get:()=>{var n;return(n=t.state.suno.audio)==null?void 0:n.volume},set:n=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{volume:n}))}),s=U({get:()=>{var n;return(n=t.state.suno.audio)==null?void 0:n.muted},set:n=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{muted:n}))}),c=()=>t.dispatch("suno/toggleMuted"),d=n=>t.dispatch("suno/setVolume",n);return(n,p)=>(l(),_("div",Fs,[a("div",null,[r(g(we),{modelValue:g(o),"onUpdate:modelValue":p[0]||(p[0]=h=>Pe(o)?o.value=h:null),vertical:"",height:"100px","show-tooltip":!1,max:100,min:0,size:"small",disabled:g(s),onInput:d},null,8,["modelValue","disabled"])]),a("div",Us,$(g(o)),1),a("div",Gs,[r(ne,{icon:g(s)?g(Te):g($e),size:"16",theme:"filled",class:"hover-text",onClick:c},null,8,["icon"])])]))}});var zs=w(Rs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerVolumeSlider.vue"]]);const Ms={class:"flex items-center justify-center gap-x-3"},Os=b({setup(e){const t=X(),o=()=>t.dispatch("suno/setAudio",f(m({},t.state.suno.audio),{state:t.state.suno.audio.state==="playing"?"paused":"playing"})),s=U(()=>t.state.suno.audio);return(c,d)=>{var n;return l(),_("div",Ms,[r(ne,{icon:((n=g(s))==null?void 0:n.state)==="playing"?g(xe):g(Ee),size:"45",theme:"filled",class:"control",onClick:o},null,8,["icon"]),r(g(Re),{placement:"top",width:"50px"},{reference:y(()=>[r(ne,{icon:g($e),size:"20","stroke-width":3,class:"hover-text"},null,8,["icon"])]),default:y(()=>[r(zs)]),_:1})])}}});var qs=w(Os,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerController.vue"]]);const Bs={class:"flex flex-col items-stretch h-20"},Ws={class:"flex grow px-5 items-center"},Hs={class:"flex-1"},Ks={class:"flex-1"},Xs={class:"flex-1"},Ys=b({setup(e){return(t,o)=>(l(),_("div",Bs,[r(ws),a("div",Ws,[a("div",Hs,[r(xs)]),a("div",Ks,[r(qs)]),a("div",Xs,[r(Ds)])])]))}});var Zs=w(Ys,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/Player.vue"]]);const Js=b({name:"RecentPanel",components:{TaskPreview:gs,ElSkeleton:ze,ElSkeletonItem:Me,Player:Zs},data(){return{job:0}},computed:{tasks(){var e,t,o,s;return f(m({},(e=this.$store.state.suno)==null?void 0:e.tasks),{items:(s=(o=(t=this.$store.state.suno)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:s.slice().reverse()})}}}),Qs={class:"panel recent"},eo={key:0,class:"tasks"},to={class:"left"},so={class:"main"},oo={key:1,class:"tasks"},no={key:2,class:"description"},io={class:"flex-1 flex flex-col"},ao={class:"h-20"};function ro(e,t,o,s,c,d){var T,x,S,N,i,A,I,C,E,V,j,F;const n=u("el-skeleton-item"),p=u("el-skeleton"),h=u("task-preview"),v=u("player");return l(),_(K,null,[a("div",Qs,[((T=e.tasks)==null?void 0:T.items)===void 0?(l(),_("div",eo,[(l(),_(K,null,J(3,L=>a("div",{key:L,class:"task placeholder"},[a("div",to,[r(p,{animated:""},{template:y(()=>[r(n,{variant:"image",class:"avatar"})]),_:1})]),a("div",so,[r(p,{animated:""},{template:y(()=>[r(n,{variant:"p",class:"title"}),r(n,{variant:"text",style:{"margin-right":"16px"}}),r(n,{variant:"text",style:{width:"80%"}})]),_:1})])])),64))])):((S=(x=e.tasks)==null?void 0:x.items)==null?void 0:S.length)&&((i=(N=e.tasks)==null?void 0:N.items)==null?void 0:i.length)>0?(l(),_("div",oo,[(l(!0),_(K,null,J((A=e.tasks)==null?void 0:A.items,(L,G)=>(l(),P(h,{key:G,"model-value":L,class:"preview"},null,8,["model-value"]))),128))])):k("v-if",!0),((C=(I=e.tasks)==null?void 0:I.items)==null?void 0:C.length)===0?(l(),_("p",no,$(e.$t("suno.message.noTasks")),1)):k("v-if",!0)]),ce(a("div",io,[a("div",ao,[r(v)])],512),[[Ke,!!((F=(j=(V=(E=e.$store)==null?void 0:E.state)==null?void 0:V.suno)==null?void 0:j.audio)!=null&&F.object)]])],64)}var lo=w(Js,[["render",ro],["__scopeId","data-v-9a683526"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/RecentPanel.vue"]]);const co=b({name:"TaskPreview",components:{ElScrollbar:Oe,IconPicture:qe,ElImage:re,ElAvatar:Be,ElIcon:le},data(){return{showCloseIcon:!0}},computed:{audio(){var e;return(e=this.$store.state.suno)==null?void 0:e.audio}},methods:{closeCard(){this.showCloseIcon=!this.showCloseIcon}}}),uo={key:0,class:"card"},po={class:"image-container"},_o={class:"image-slot"},mo={class:"title"},ho={class:"content"},fo={class:"artist"},vo={class:"style"},$o={class:"time"},go={class:"lyrics"},yo={key:1,class:"gradient-background"};function ko(e,t,o,s,c,d){const n=u("icon-picture"),p=u("el-icon"),h=u("el-image"),v=u("el-avatar"),T=u("el-scrollbar");return l(),P(T,{class:"right-panel"},{default:y(()=>{var x,S,N,i,A,I,C;return[(x=e.audio)!=null&&x.object?(l(),_("div",uo,[a("div",po,[r(h,{src:e.audio.image_url,fit:"cover"},{error:y(()=>[a("div",_o,[r(p,null,{default:y(()=>[r(n)]),_:1})])]),_:1},8,["src"]),a("h2",mo,$((S=e.audio)==null?void 0:S.title),1)]),a("div",ho,[a("div",fo,[r(v,{size:30,src:(N=e.audio)==null?void 0:N.image_url},null,8,["src"]),a("span",null,$((i=e.audio)==null?void 0:i.prompt),1)]),a("p",vo,$((A=e.audio)==null?void 0:A.style),1),a("p",$o,$(e.$dayjs.format((I=e.audio)==null?void 0:I.created_at)),1),a("div",go,[a("p",null,$((C=e.audio)==null?void 0:C.lyric),1)])])])):(l(),_("div",yo))]}),_:1})}var wo=w(co,[["render",ko],["__scopeId","data-v-19e67a48"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/PreviewPanel.vue"]]);const bo="https://webhook.acedata.cloud/suno",Po=b({name:"SunoIndex",components:{Layout:ot,ApplicationStatus:Xe,ConfigPanel:as,RecentPanel:lo,PreviewPanel:wo},data(){return{task:void 0,job:0,timer:void 0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.suno)==null?void 0:e.status)==null?void 0:t.getApplications)===se.Request},service(){return this.$store.state.suno.service},credential(){return this.$store.state.suno.credential},config(){return this.$store.state.suno.config},initializing(){return this.$store.state.suno.status.getApplications===se.Request},needApply(){return this.$store.state.suno.status.getApplications===se.Success&&!this.application},application(){return this.$store.state.suno.application},tasks(){return this.$store.state.suno.tasks}},watch:{tasks:{handler(e,t){var o,s;((o=e==null?void 0:e.items)==null?void 0:o.length)>((s=t==null?void 0:t.items)==null?void 0:s.length)&&(console.debug("new tasks detected"),this.onScrollDown())},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job),clearInterval(this.timer)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("suno/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplications"),await this.$store.dispatch("suno/getApplications"),console.debug("end onGetApplications"),await this.onGetTasks()},onApply(){Ve.create({application:this.application}).then(({data:e})=>{this.application=e,H.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Ye&&H.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},1e3)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("suno/getTasks",{limit:30,offset:0})},async onGenerateAudio(){var o;const e=f(m({},this.config),{callback_url:bo}),t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}H.info(this.$t("suno.message.startingTask")),je.audio(e,{token:t}).then(()=>{H.success(this.$t("suno.message.startTaskSuccess"))}).catch(s=>{var c,d,n;H.error(((n=(d=(c=s==null?void 0:s.response)==null?void 0:c.data)==null?void 0:d.error)==null?void 0:n.message)||this.$t("suno.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function Io(e,t,o,s,c,d){const n=u("config-panel"),p=u("application-status"),h=u("recent-panel"),v=u("preview-panel"),T=u("layout");return l(),P(T,null,{config:y(()=>[r(n,{onGenerate:e.onGenerateAudio},null,8,["onGenerate"])]),result:y(()=>[r(p,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),r(h,{class:"panel recent"})]),preview:y(()=>[r(v)]),_:1})}var Lo=w(Po,[["render",Io],["__scopeId","data-v-11d62c6c"],["__file","/home/runner/work/Nexior/Nexior/src/pages/suno/Index.vue"]]);export{Lo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.4f34a866.js";import{C as A}from"./CopyToClipboard.
|
|
1
|
+
import"./vendor-others.4f34a866.js";import{C as A}from"./CopyToClipboard.cb70f6d1.js";import{_ as H,a7 as Q,a8 as G,a9 as W}from"./index.daadea41.js";import{d as q,s as Y,a as j}from"./distribution.c4190e75.js";import{an as J}from"./vendor-fortawesome.f1998e53.js";import{Q as K}from"./vendor-qrcode.452c7ca7.js";import{W as X,i as Z,h as x,l as tt,D as et,r as it,u as st,y as ot,A as nt,C as lt}from"./vendor-element-plus.ddf5f024.js";import{H as at,al as a,L as b,M as o,o as l,V as i,f as e,U as s,e as k,T as y,S as C}from"./vendor-@vue.853aef6d.js";import"./vendor-axios.168e6950.js";const rt=at({name:"ConsoleDistributionList",components:{CopyToClipboard:A,FontAwesomeIcon:J,QrCode:K,ElProgress:X,ElRow:Z,ElCol:x,ElButton:tt,ElDivider:et,ElCard:it,ElTooltip:st,ElTable:ot,ElTableColumn:nt,ElSkeleton:lt},data(){return{invitees:[],inviteesCount:void 0,distributionLevels:[],distributionLink:void 0,distributionStatus:void 0,loading:!1}},computed:{redirect(){return this.$route.query.redirect},page(){var t;return parseInt(((t=this.$route.query.page)==null?void 0:t.toString())||"1")},distributionLevelMap(){let t={};return this.distributionLevels.forEach(n=>{t[n.level]=n}),t}},watch:{page:{handler(){this.onFetchData()}}},async mounted(){this.onFetchData(),this.onGenerateDistributionLink()},methods:{goHistory(){this.$router.push({name:Q})},goInvitees(){this.$router.push({name:G})},onPageChange(t){var n;this.$router.push({name:(n=this.$route.name)==null?void 0:n.toString(),query:{page:t}})},getPercentageForNextLevel(){var c,h,p,f,r,m,_;const t=(p=this.distributionLevelMap[(h=(c=this.distributionStatus)==null?void 0:c.level)==null?void 0:h.level])==null?void 0:p.threshold,n=(m=this.distributionLevelMap[((r=(f=this.distributionStatus)==null?void 0:f.level)==null?void 0:r.level)+1])==null?void 0:m.threshold;return Math.floor((((_=this.distributionStatus)==null?void 0:_.price)-t)/(n-t)*100)},getDeltaForNextLevel(){var n,c,h,p;const t=(h=this.distributionLevelMap[((c=(n=this.distributionStatus)==null?void 0:n.level)==null?void 0:c.level)+1])==null?void 0:h.threshold;return Math.floor(t-((p=this.distributionStatus)==null?void 0:p.price))},async onFetchData(){this.loading=!0,await q.initialize(),Promise.all([this.onFetchDistributionStatus(),this.onFetchDistributionLevels(),this.onFetchInvitees()]).finally(()=>{this.loading=!1})},async onGenerateDistributionLink(){var c,h,p;const n=`${window.location.origin}?inviter_id=${this.$store.getters.user.id}`;try{const f=(p=(h=(c=await Y.create(n))==null?void 0:c.data)==null?void 0:h.data)==null?void 0:p.url;this.distributionLink=f||n}catch{this.distributionLink=n}},async onFetchDistributionStatus(){const{data:t}=await q.getAll({user_id:this.$store.getters.user.id});t.items&&t.items.length>0&&(this.distributionStatus=t.items[0])},async onFetchDistributionLevels(){const{data:t}=await j.getAll({limit:20,user_id:this.$store.getters.user.id});this.distributionLevels=t.items},async onFetchInvitees(){const{data:t}=await W.getInvitees({});this.invitees=t.items,this.inviteesCount=t.count}}}),dt={class:"title"},ut={key:1},ct={class:"icon-wrapper"},ht={class:"text-left"},pt={class:"description"},_t={class:"value"},bt={key:1},vt={class:"icon-wrapper"},mt={class:"text-left"},ft={class:"description"},gt={class:"value"},kt={key:1},$t={class:"icon-wrapper"},yt={class:"text-left"},wt={class:"description"},Lt={class:"value"},St={key:1},Ct={class:"icon-wrapper"},Dt={class:"text-left"},It={class:"description"},Ft={class:"value"},Tt={key:1},Et={class:"title"},Nt={class:"clear-both overflow-hidden"},Mt={class:"float-left description"},Ot={class:"float-right description"},Pt={class:"description"},Bt={class:"level"},qt={class:"level"},Rt={class:"level"},Ut={key:1},Vt={class:"title"},zt={class:"link-wrapper text-center"},At=["href"],Ht={class:"qr-wrapper ml-auto mr-auto"},Qt={class:"mt-0"},Gt={class:"description"},Wt={class:"more"};function Yt(t,n,c,h,p,f){const r=a("el-col"),m=a("el-row"),_=a("el-skeleton"),w=a("font-awesome-icon"),L=a("el-button"),g=a("el-card"),D=a("el-tooltip"),R=a("el-progress"),I=a("el-divider"),S=a("el-table-column"),U=a("el-table"),V=a("copy-to-clipboard"),z=a("qr-code");return l(),b(m,{class:"panel"},{default:o(()=>[i(r,{span:24},{default:o(()=>[i(m,null,{default:o(()=>[i(r,{span:24},{default:o(()=>[e("h2",dt,s(t.$t("common.title.distribution")),1)]),_:1})]),_:1}),i(m,{gutter:15},{default:o(()=>[i(r,{md:6,xs:24},{default:o(()=>[i(g,{shadow:"hover",class:"item-mini mb-4"},{default:o(()=>{var d,u;return[t.loading?(l(),b(_,{key:0})):(l(),k("div",ut,[e("div",ct,[i(w,{icon:"fa-solid fa-wallet",class:"icon"})]),e("div",ht,[e("p",pt,s(t.$t("distribution.title.price")),1),e("p",_t,"$"+s((u=(d=t.distributionStatus)==null?void 0:d.price)==null?void 0:u.toFixed(2)),1)]),i(L,{type:"primary",round:"",size:"small",class:"btn",onClick:t.goHistory},{default:o(()=>[y(s(t.$t("distribution.button.detail")),1)]),_:1},8,["onClick"])]))]}),_:1})]),_:1}),i(r,{md:6,xs:24},{default:o(()=>[i(g,{shadow:"hover",class:"item-mini mb-4"},{default:o(()=>{var d,u;return[t.loading?(l(),b(_,{key:0})):(l(),k("div",bt,[e("div",vt,[i(w,{icon:"fa-solid fa-coins",class:"icon"})]),e("div",mt,[e("p",ft,s(t.$t("distribution.title.reward")),1),e("p",gt,"$"+s((u=(d=t.distributionStatus)==null?void 0:d.reward)==null?void 0:u.toFixed(2)),1)]),i(D,{effect:"dark",content:t.$t("distribution.message.developingWithDrawal"),placement:"top"},{default:o(()=>[i(L,{type:"primary",round:"",size:"small",class:"btn"},{default:o(()=>[y(s(t.$t("distribution.button.withdrawal")),1)]),_:1})]),_:1},8,["content"])]))]}),_:1})]),_:1}),i(r,{md:6,xs:24},{default:o(()=>[i(g,{shadow:"hover",class:"item-mini mb-4"},{default:o(()=>{var d,u;return[t.loading?(l(),b(_,{key:0})):(l(),k("div",kt,[e("div",$t,[i(w,{icon:"fa-solid fa-percent",class:"icon"})]),e("div",yt,[e("p",wt,s(t.$t("distribution.title.percentage")),1),e("p",Lt,s((u=(d=t.distributionStatus)==null?void 0:d.level)==null?void 0:u.percentage)+"%",1)])]))]}),_:1})]),_:1}),i(r,{md:6,xs:24},{default:o(()=>[i(g,{shadow:"hover",class:"item-mini mb-4"},{default:o(()=>[t.loading?(l(),b(_,{key:0})):(l(),k("div",St,[e("div",Ct,[i(w,{icon:"fa-regular fa-user",class:"icon"})]),e("div",Dt,[e("p",It,s(t.$t("distribution.title.inviteesCount")),1),e("p",Ft,s(t.inviteesCount),1)]),i(L,{type:"primary",round:"",size:"small",class:"btn",onClick:t.goInvitees},{default:o(()=>[y(s(t.$t("distribution.button.detail")),1)]),_:1},8,["onClick"])]))]),_:1})]),_:1})]),_:1}),i(m,{gutter:15},{default:o(()=>[i(r,{md:12,xs:24},{default:o(()=>[i(g,{shadow:"hover",class:"level-info mb-4"},{default:o(()=>{var d,u,F,T,E,N,M,O,P,B;return[t.loading?(l(),b(_,{key:0})):(l(),k("div",Tt,[e("h4",Et,s(t.$t("distribution.title.levelInfo")),1),e("div",Nt,[e("div",Mt,[e("p",null,s(t.$t("distribution.title.currentLevel"))+": L"+s((u=(d=t.distributionStatus)==null?void 0:d.level)==null?void 0:u.level),1),e("p",null,s(t.$t("distribution.title.currentPercentage"))+": "+s((E=t.distributionLevelMap[(T=(F=t.distributionStatus)==null?void 0:F.level)==null?void 0:T.level])==null?void 0:E.percentage)+"% ",1)]),e("div",Ot,[e("p",null,s(t.$t("distribution.title.nextLevel"))+": L"+s(((M=(N=t.distributionStatus)==null?void 0:N.level)==null?void 0:M.level)+1),1),e("p",null,s(t.$t("distribution.title.nextPercentage"))+": "+s((B=t.distributionLevelMap[((P=(O=t.distributionStatus)==null?void 0:O.level)==null?void 0:P.level)+1])==null?void 0:B.percentage)+"% ",1)])]),i(R,{"text-inside":!0,"stroke-width":20,percentage:t.getPercentageForNextLevel(),class:"mb-2"},null,8,["percentage"]),e("p",Pt,s(t.$t("distribution.message.deltaPriceForNextLevel"))+": $"+s(t.getDeltaForNextLevel()),1),i(I),t.distributionLevels?(l(),b(U,{key:0,data:t.distributionLevels,stripe:""},{default:o(()=>[i(S,{label:t.$t("distribution.field.level")},{default:o($=>{var v;return[e("span",Bt,"L"+s((v=$.row)==null?void 0:v.level),1)]}),_:1},8,["label"]),i(S,{label:t.$t("distribution.field.threshold")},{default:o($=>{var v;return[e("span",qt,"$"+s((v=$.row)==null?void 0:v.threshold),1)]}),_:1},8,["label"]),i(S,{label:t.$t("distribution.field.percentage")},{default:o($=>{var v;return[e("span",Rt,s((v=$.row)==null?void 0:v.percentage)+"%",1)]}),_:1},8,["label"])]),_:1},8,["data"])):C("v-if",!0)]))]}),_:1})]),_:1}),i(r,{md:12,xs:24},{default:o(()=>[i(g,{shadow:"hover",class:"distribution-info mb-4"},{default:o(()=>[t.loading?(l(),b(_,{key:0})):(l(),k("div",Ut,[e("h4",Vt,s(t.$t("distribution.title.distributionLink")),1),i(I),e("div",zt,[C("v-if",!0),e("a",{href:t.distributionLink,class:"link"},s(t.distributionLink),9,At),i(V,{content:t.distributionLink},null,8,["content"])]),e("div",Ht,[t.distributionLink?(l(),b(z,{key:0,value:t.distributionLink,size:180,margin:2,class:"block mb-2 ml-auto mr-auto"},null,8,["value"])):C("v-if",!0),e("p",Qt,s(t.$t("distribution.message.distributionQrDescription")),1)]),e("p",Gt,[y(s(t.$t("distribution.message.distributionLinkDescription"))+" ",1),e("span",Wt,[i(D,{effect:"dark",content:t.$t("distribution.message.distributionLinkDescription2"),placement:"top"},{default:o(()=>[y(s(t.$t("distribution.message.technicalDetail")),1)]),_:1},8,["content"])])])]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var se=H(rt,[["render",Yt],["__scopeId","data-v-732e1b6b"],["__file","/home/runner/work/Nexior/Nexior/src/pages/distribution/Index.vue"]]);export{se as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var le=Object.defineProperty,ie=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var Y=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))de.call(t,r)&&Y(e,r,t[r]);if(Q)for(var r of Q(t))ue.call(t,r)&&Y(e,r,t[r]);return e},P=(e,t)=>ie(e,ce(t));import{D as I,C as Z}from"./vendor-others.4f34a866.js";import{g as j,_ as k,S as me,s as pe,i as _e,R as he,a as fe,b as ve,c as q}from"./index.badcd9f9.js";import{h as ge,C as ke,a as K}from"./vendor-vue-dark-switch.88f0eab0.js";import{H as C,al as a,o as s,L as d,e as E,V as o,M as n,W as we,ai as Le,T as g,U as m,aK as xe,aL as Ae,f as h,av as Ee,O as _,S as A}from"./vendor-@vue.853aef6d.js";import{d as W,e as ee,f as Ce,h as oe,i as te,j as be,k as ye,l as Ie,m as Oe,n as ne,o as Ve,p as Se,q as Ue}from"./vendor-element-plus.ddf5f024.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";import"./vendor-fortawesome.f1998e53.js";var Ne="data:image/png;base64,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";const Te=C({components:{DarkSwitch:ge},emits:["update:dark"],computed:{dark(){return I("THEME")==="dark"},switchValue(){return ke.value}},watch:{switchValue(e){console.log("switchValue",e),this.setCookie(e)},dark(e){document.documentElement.classList.toggle("dark",e),this.setCookie(this.dark)}},mounted(){console.log("dark selector mounted"),this.dark?(K(!0),document.documentElement.classList.add("dark")):(K(!1),document.documentElement.classList.remove("dark"))},methods:{setCookie(e){Z("THEME",e?"dark":"light",{path:"/",domain:j()})}}});function $e(e,t,r,w,f,L){const i=a("dark-switch");return s(),d(i,{class:"switch","dark-background":"#333","light-background":"#fff"})}var Re=k(Te,[["render",$e],["__file","/home/runner/work/Nexior/Nexior/src/components/common/DarkSelector2.vue"]]);const Fe=C({name:"LanguageSelector",components:{ElDropdown:W,ElDropdownItem:ee,ElDropdownMenu:Ce},data(){return{locales:me}},methods:{async onSelectLocale(e){this.$router.push({query:P(X({},this.$route.query),{locale:void 0})}),await pe(e),this.setCookie(e),window.location.reload()},setCookie(e){Z("LOCALE",e,{path:"/",domain:j()})}}}),He=e=>(xe("data-v-716b17bb"),e=e(),Ae(),e),Be=He(()=>h("i",{class:"icon"},[h("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},[h("path",{fill:"currentColor",d:"m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"})])],-1));function Ge(e,t,r,w,f,L){const i=a("el-dropdown-item"),c=a("el-dropdown-menu"),l=a("el-dropdown");return s(),E("div",null,[o(l,{"max-height":"700",trigger:"click",onCommand:e.onSelectLocale},{dropdown:n(()=>[o(c,null,{default:n(()=>[(s(!0),E(we,null,Le(e.locales,(v,x)=>(s(),d(i,{key:x,command:v.value},{default:n(()=>[g(m(v.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n(()=>[Be]),_:1},8,["onCommand"])])}var Je=k(Fe,[["render",Ge],["__scopeId","data-v-716b17bb"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LanguageSelector.vue"]]);const ze={emits:["click"],data(){return{url1:"https://cdn.acedata.cloud/logo.png/thumb_450x_",url2:"https://cdn.acedata.cloud/logo2.png/thumb_450x_",dark:I("THEME")==="dark",url:"",isOfficial:_e(),interval:void 0}},watch:{dark(){this.updateUrl()}},mounted(){this.interval=window.setInterval(this.checkCookie,500),this.updateUrl()},unmounted(){this.interval&&clearInterval(this.interval)},methods:{checkCookie(){this.dark=I("THEME")==="dark"},updateUrl(){var e;this.isOfficial?this.url=this.dark?this.url2:this.url1:this.url=((e=this.$store.state.site)==null?void 0:e.logo)||""}}},Me=["src"];function De(e,t,r,w,f,L){return s(),E("img",{src:f.url,class:"logo",onClick:t[0]||(t[0]=i=>e.$emit("click"))},null,8,Me)}var Qe=k(ze,[["render",De],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Logo.vue"]]);const Ye=C({name:"TopHeader",components:{ElCol:oe,Logo:Qe,ElRow:te,DarkSelector:Re,ElDropdown:W,ElMenu:be,ElMenuItem:ye,ElDropdownItem:ee,ElButton:Ie,ElSubMenu:Oe,LanguageSelector:Je},data(){return{defaultAvatar:Ne}},computed:{site(){var e;return(e=this.$store.state)==null?void 0:e.site},dark(){var e;return(e=this.$store.getters)==null?void 0:e.dark},active(){var e,t;return(t=(e=this.$route.matched)==null?void 0:e[0])==null?void 0:t.path},user(){var e;return(e=this.$store.getters)==null?void 0:e.user},authenticated(){var e;return(e=this.$store.getters)==null?void 0:e.authenticated}},methods:{openTab(e){window.open(e,"_blank")},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:he})},onLogin(){this.$router.push({name:fe})},onProfile(){const e=q();window.open(`${e}/user/profile`,"_blank")},onVerify(){const e=q();window.open(`${e}/user/verify`,"_blank")},onConsole(){this.$router.push({name:ve})},async onLogout(){this.$store.dispatch("logout")}}}),Xe={key:0,class:"mt-4 pr-10"},Pe={key:1,class:"float-right"},qe=["src"];function Ke(e,t,r,w,f,L){const i=a("logo"),c=a("el-col"),l=a("el-menu-item"),v=a("el-sub-menu"),x=a("el-menu"),y=a("el-button"),b=a("language-selector"),O=a("dark-selector"),V=a("el-dropdown-item"),ae=a("el-dropdown-menu"),re=a("el-dropdown"),se=a("el-row"),p=Ee("t");return s(),d(se,{class:"header"},{default:n(()=>[o(c,{md:4,xs:24},{default:n(()=>[o(i,{onClick:e.onHome},null,8,["onClick"])]),_:1}),o(c,{md:16,xs:13},{default:n(()=>[o(x,{"default-active":e.active,mode:"horizontal",class:"menu",ellipsis:!0,onSelect:e.onSelect},{default:n(()=>[o(v,{index:1},{title:n(()=>[g(m(e.$t("common.nav.products")),1)]),default:n(()=>{var u,S,U,N,T,$,R,F,H,B,G,J,z,M,D;return[(U=(S=(u=e.site)==null?void 0:u.features)==null?void 0:S.chat)!=null&&U.enabled?_((s(),d(l,{key:0,index:"/chat"},null,512)),[[p,"index.title.chat"]]):A("v-if",!0),($=(T=(N=e.site)==null?void 0:N.features)==null?void 0:T.midjourney)!=null&&$.enabled?_((s(),d(l,{key:1,index:"/midjourney"},null,512)),[[p,"index.title.midjourney"]]):A("v-if",!0),(H=(F=(R=e.site)==null?void 0:R.features)==null?void 0:F.qrart)!=null&&H.enabled?_((s(),d(l,{key:2,index:"/qrart"},null,512)),[[p,"index.title.qrart"]]):A("v-if",!0),(J=(G=(B=e.site)==null?void 0:B.features)==null?void 0:G.suno)!=null&&J.enabled?_((s(),d(l,{key:3,index:"/suno"},null,512)),[[p,"index.title.suno"]]):A("v-if",!0),(D=(M=(z=e.site)==null?void 0:z.features)==null?void 0:M.luma)!=null&&D.enabled?_((s(),d(l,{key:4,index:"/luma"},null,512)),[[p,"index.title.luma"]]):A("v-if",!0)]}),_:1}),_(o(l,{onRoute:void 0,onClick:t[0]||(t[0]=u=>e.openTab("https://platform.acedata.cloud"))},null,512),[[p,"common.nav.apiPlatform"]]),_(o(l,{onRoute:void 0,onClick:t[1]||(t[1]=u=>e.openTab("https://platform.acedata.cloud/support"))},null,512),[[p,"common.nav.support"]]),_(o(l,{index:"/distribution"},null,512),[[p,"common.nav.referral"]])]),_:1},8,["default-active","onSelect"])]),_:1}),o(c,{md:4,xs:11},{default:n(()=>[e.authenticated?(s(),E("div",Pe,[o(O),o(b,{class:"locale"}),h("div",{class:"console",onClick:t[2]||(t[2]=(...u)=>e.onConsole&&e.onConsole(...u))},m(e.$t("common.button.console")),1),o(re,{trigger:"click"},{dropdown:n(()=>[o(ae,null,{default:n(()=>[o(V,{onClick:e.onProfile},{default:n(()=>[g(m(e.$t("common.button.profile")),1)]),_:1},8,["onClick"]),o(V,{onClick:e.onLogout},{default:n(()=>[g(m(e.$t("common.button.logout")),1)]),_:1},8,["onClick"])]),_:1})]),default:n(()=>{var u;return[h("img",{src:((u=e.user)==null?void 0:u.avatar)||e.defaultAvatar,class:"avatar"},null,8,qe)]}),_:1})])):(s(),E("div",Xe,[o(y,{type:"primary",class:"float-right",size:"small",round:"",onClick:e.onLogin},{default:n(()=>[g(m(e.$t("common.button.login")),1)]),_:1},8,["onClick"]),o(b,{class:"locale float-right mr-4"}),o(O,{class:"float-right mr-4"})]))]),_:1})]),_:1})}var Ze=k(Ye,[["render",Ke],["__file","/home/runner/work/Nexior/Nexior/src/components/common/TopHeader.vue"]]);const je=C({name:"BottomFooter",components:{ElContainer:ne,ElRow:te,ElCol:oe},data(){return{}},computed:{},methods:{}}),We={href:"https://platform.acedata.cloud"};function eo(e,t,r,w,f,L){const i=a("el-col"),c=a("el-row"),l=a("el-container");return s(),d(l,{id:"footer",class:"footer"},{default:n(()=>[o(c,{class:"w-full"},{default:n(()=>[o(i,{class:"container",span:18,offset:3},{default:n(()=>[o(c,null,{default:n(()=>[o(i,{span:24,class:"text-center"},{default:n(()=>[h("p",null,[h("a",We,m(e.$t("common.entity.website")),1),g(" \xA9 "+m(new Date().getFullYear())+" "+m(e.$t("common.entity.copyright")),1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var oo=k(je,[["render",eo],["__scopeId","data-v-5c0f0aec"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/BottomFooter.vue"]]);const to=C({name:"LayoutIndex",components:{TopHeader:Ze,BottomFooter:oo,ElContainer:ne,ElMain:Ve,ElFooter:Se,ElHeader:Ue}});function no(e,t,r,w,f,L){const i=a("top-header"),c=a("el-header"),l=a("router-view"),v=a("el-main"),x=a("bottom-footer"),y=a("el-footer"),b=a("el-container");return s(),d(b,{class:"wrapper"},{default:n(()=>[o(c,{class:"header"},{default:n(()=>[o(i)]),_:1}),o(v,{class:"main"},{default:n(()=>[o(l)]),_:1}),o(y,{class:"footer"},{default:n(()=>[o(x)]),_:1})]),_:1})}var _o=k(to,[["render",no],["__scopeId","data-v-3deb56ba"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Index.vue"]]);export{_o as default};
|
|
1
|
+
var le=Object.defineProperty,ie=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var Y=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))de.call(t,r)&&Y(e,r,t[r]);if(Q)for(var r of Q(t))ue.call(t,r)&&Y(e,r,t[r]);return e},P=(e,t)=>ie(e,ce(t));import{D as I,C as Z}from"./vendor-others.4f34a866.js";import{g as j,_ as k,S as me,s as pe,i as _e,R as he,a as fe,b as ve,c as q}from"./index.daadea41.js";import{h as ge,C as ke,a as K}from"./vendor-vue-dark-switch.88f0eab0.js";import{H as C,al as a,o as s,L as d,e as E,V as o,M as n,W as we,ai as Le,T as g,U as m,aK as xe,aL as Ae,f as h,av as Ee,O as _,S as A}from"./vendor-@vue.853aef6d.js";import{d as W,e as ee,f as Ce,h as oe,i as te,j as be,k as ye,l as Ie,m as Oe,n as ne,o as Ve,p as Se,q as Ue}from"./vendor-element-plus.ddf5f024.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";import"./vendor-fortawesome.f1998e53.js";var Ne="data:image/png;base64,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";const Te=C({components:{DarkSwitch:ge},emits:["update:dark"],computed:{dark(){return I("THEME")==="dark"},switchValue(){return ke.value}},watch:{switchValue(e){console.log("switchValue",e),this.setCookie(e)},dark(e){document.documentElement.classList.toggle("dark",e),this.setCookie(this.dark)}},mounted(){console.log("dark selector mounted"),this.dark?(K(!0),document.documentElement.classList.add("dark")):(K(!1),document.documentElement.classList.remove("dark"))},methods:{setCookie(e){Z("THEME",e?"dark":"light",{path:"/",domain:j()})}}});function $e(e,t,r,w,f,L){const i=a("dark-switch");return s(),d(i,{class:"switch","dark-background":"#333","light-background":"#fff"})}var Re=k(Te,[["render",$e],["__file","/home/runner/work/Nexior/Nexior/src/components/common/DarkSelector2.vue"]]);const Fe=C({name:"LanguageSelector",components:{ElDropdown:W,ElDropdownItem:ee,ElDropdownMenu:Ce},data(){return{locales:me}},methods:{async onSelectLocale(e){this.$router.push({query:P(X({},this.$route.query),{locale:void 0})}),await pe(e),this.setCookie(e),window.location.reload()},setCookie(e){Z("LOCALE",e,{path:"/",domain:j()})}}}),He=e=>(xe("data-v-716b17bb"),e=e(),Ae(),e),Be=He(()=>h("i",{class:"icon"},[h("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},[h("path",{fill:"currentColor",d:"m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"})])],-1));function Ge(e,t,r,w,f,L){const i=a("el-dropdown-item"),c=a("el-dropdown-menu"),l=a("el-dropdown");return s(),E("div",null,[o(l,{"max-height":"700",trigger:"click",onCommand:e.onSelectLocale},{dropdown:n(()=>[o(c,null,{default:n(()=>[(s(!0),E(we,null,Le(e.locales,(v,x)=>(s(),d(i,{key:x,command:v.value},{default:n(()=>[g(m(v.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n(()=>[Be]),_:1},8,["onCommand"])])}var Je=k(Fe,[["render",Ge],["__scopeId","data-v-716b17bb"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LanguageSelector.vue"]]);const ze={emits:["click"],data(){return{url1:"https://cdn.acedata.cloud/logo.png/thumb_450x_",url2:"https://cdn.acedata.cloud/logo2.png/thumb_450x_",dark:I("THEME")==="dark",url:"",isOfficial:_e(),interval:void 0}},watch:{dark(){this.updateUrl()}},mounted(){this.interval=window.setInterval(this.checkCookie,500),this.updateUrl()},unmounted(){this.interval&&clearInterval(this.interval)},methods:{checkCookie(){this.dark=I("THEME")==="dark"},updateUrl(){var e;this.isOfficial?this.url=this.dark?this.url2:this.url1:this.url=((e=this.$store.state.site)==null?void 0:e.logo)||""}}},Me=["src"];function De(e,t,r,w,f,L){return s(),E("img",{src:f.url,class:"logo",onClick:t[0]||(t[0]=i=>e.$emit("click"))},null,8,Me)}var Qe=k(ze,[["render",De],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Logo.vue"]]);const Ye=C({name:"TopHeader",components:{ElCol:oe,Logo:Qe,ElRow:te,DarkSelector:Re,ElDropdown:W,ElMenu:be,ElMenuItem:ye,ElDropdownItem:ee,ElButton:Ie,ElSubMenu:Oe,LanguageSelector:Je},data(){return{defaultAvatar:Ne}},computed:{site(){var e;return(e=this.$store.state)==null?void 0:e.site},dark(){var e;return(e=this.$store.getters)==null?void 0:e.dark},active(){var e,t;return(t=(e=this.$route.matched)==null?void 0:e[0])==null?void 0:t.path},user(){var e;return(e=this.$store.getters)==null?void 0:e.user},authenticated(){var e;return(e=this.$store.getters)==null?void 0:e.authenticated}},methods:{openTab(e){window.open(e,"_blank")},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:he})},onLogin(){this.$router.push({name:fe})},onProfile(){const e=q();window.open(`${e}/user/profile`,"_blank")},onVerify(){const e=q();window.open(`${e}/user/verify`,"_blank")},onConsole(){this.$router.push({name:ve})},async onLogout(){this.$store.dispatch("logout")}}}),Xe={key:0,class:"mt-4 pr-10"},Pe={key:1,class:"float-right"},qe=["src"];function Ke(e,t,r,w,f,L){const i=a("logo"),c=a("el-col"),l=a("el-menu-item"),v=a("el-sub-menu"),x=a("el-menu"),y=a("el-button"),b=a("language-selector"),O=a("dark-selector"),V=a("el-dropdown-item"),ae=a("el-dropdown-menu"),re=a("el-dropdown"),se=a("el-row"),p=Ee("t");return s(),d(se,{class:"header"},{default:n(()=>[o(c,{md:4,xs:24},{default:n(()=>[o(i,{onClick:e.onHome},null,8,["onClick"])]),_:1}),o(c,{md:16,xs:13},{default:n(()=>[o(x,{"default-active":e.active,mode:"horizontal",class:"menu",ellipsis:!0,onSelect:e.onSelect},{default:n(()=>[o(v,{index:1},{title:n(()=>[g(m(e.$t("common.nav.products")),1)]),default:n(()=>{var u,S,U,N,T,$,R,F,H,B,G,J,z,M,D;return[(U=(S=(u=e.site)==null?void 0:u.features)==null?void 0:S.chat)!=null&&U.enabled?_((s(),d(l,{key:0,index:"/chat"},null,512)),[[p,"index.title.chat"]]):A("v-if",!0),($=(T=(N=e.site)==null?void 0:N.features)==null?void 0:T.midjourney)!=null&&$.enabled?_((s(),d(l,{key:1,index:"/midjourney"},null,512)),[[p,"index.title.midjourney"]]):A("v-if",!0),(H=(F=(R=e.site)==null?void 0:R.features)==null?void 0:F.qrart)!=null&&H.enabled?_((s(),d(l,{key:2,index:"/qrart"},null,512)),[[p,"index.title.qrart"]]):A("v-if",!0),(J=(G=(B=e.site)==null?void 0:B.features)==null?void 0:G.suno)!=null&&J.enabled?_((s(),d(l,{key:3,index:"/suno"},null,512)),[[p,"index.title.suno"]]):A("v-if",!0),(D=(M=(z=e.site)==null?void 0:z.features)==null?void 0:M.luma)!=null&&D.enabled?_((s(),d(l,{key:4,index:"/luma"},null,512)),[[p,"index.title.luma"]]):A("v-if",!0)]}),_:1}),_(o(l,{onRoute:void 0,onClick:t[0]||(t[0]=u=>e.openTab("https://platform.acedata.cloud"))},null,512),[[p,"common.nav.apiPlatform"]]),_(o(l,{onRoute:void 0,onClick:t[1]||(t[1]=u=>e.openTab("https://platform.acedata.cloud/support"))},null,512),[[p,"common.nav.support"]]),_(o(l,{index:"/distribution"},null,512),[[p,"common.nav.referral"]])]),_:1},8,["default-active","onSelect"])]),_:1}),o(c,{md:4,xs:11},{default:n(()=>[e.authenticated?(s(),E("div",Pe,[o(O),o(b,{class:"locale"}),h("div",{class:"console",onClick:t[2]||(t[2]=(...u)=>e.onConsole&&e.onConsole(...u))},m(e.$t("common.button.console")),1),o(re,{trigger:"click"},{dropdown:n(()=>[o(ae,null,{default:n(()=>[o(V,{onClick:e.onProfile},{default:n(()=>[g(m(e.$t("common.button.profile")),1)]),_:1},8,["onClick"]),o(V,{onClick:e.onLogout},{default:n(()=>[g(m(e.$t("common.button.logout")),1)]),_:1},8,["onClick"])]),_:1})]),default:n(()=>{var u;return[h("img",{src:((u=e.user)==null?void 0:u.avatar)||e.defaultAvatar,class:"avatar"},null,8,qe)]}),_:1})])):(s(),E("div",Xe,[o(y,{type:"primary",class:"float-right",size:"small",round:"",onClick:e.onLogin},{default:n(()=>[g(m(e.$t("common.button.login")),1)]),_:1},8,["onClick"]),o(b,{class:"locale float-right mr-4"}),o(O,{class:"float-right mr-4"})]))]),_:1})]),_:1})}var Ze=k(Ye,[["render",Ke],["__file","/home/runner/work/Nexior/Nexior/src/components/common/TopHeader.vue"]]);const je=C({name:"BottomFooter",components:{ElContainer:ne,ElRow:te,ElCol:oe},data(){return{}},computed:{},methods:{}}),We={href:"https://platform.acedata.cloud"};function eo(e,t,r,w,f,L){const i=a("el-col"),c=a("el-row"),l=a("el-container");return s(),d(l,{id:"footer",class:"footer"},{default:n(()=>[o(c,{class:"w-full"},{default:n(()=>[o(i,{class:"container",span:18,offset:3},{default:n(()=>[o(c,null,{default:n(()=>[o(i,{span:24,class:"text-center"},{default:n(()=>[h("p",null,[h("a",We,m(e.$t("common.entity.website")),1),g(" \xA9 "+m(new Date().getFullYear())+" "+m(e.$t("common.entity.copyright")),1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var oo=k(je,[["render",eo],["__scopeId","data-v-5c0f0aec"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/BottomFooter.vue"]]);const to=C({name:"LayoutIndex",components:{TopHeader:Ze,BottomFooter:oo,ElContainer:ne,ElMain:Ve,ElFooter:Se,ElHeader:Ue}});function no(e,t,r,w,f,L){const i=a("top-header"),c=a("el-header"),l=a("router-view"),v=a("el-main"),x=a("bottom-footer"),y=a("el-footer"),b=a("el-container");return s(),d(b,{class:"wrapper"},{default:n(()=>[o(c,{class:"header"},{default:n(()=>[o(i)]),_:1}),o(v,{class:"main"},{default:n(()=>[o(l)]),_:1}),o(y,{class:"footer"},{default:n(()=>[o(x)]),_:1})]),_:1})}var _o=k(to,[["render",no],["__scopeId","data-v-3deb56ba"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Index.vue"]]);export{_o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ue=Object.defineProperty,Ce=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ve=(e,t,o)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))Le.call(t,o)&&Ve(e,o,t[o]);if(ke)for(var o of ke(t))Ne.call(t,o)&&Ve(e,o,t[o]);return e},k=(e,t)=>Ce(e,Pe(t));import{J as Ee}from"./vendor-others.4f34a866.js";import{an as Q}from"./vendor-fortawesome.f1998e53.js";import{_ as V,at as Ae,au as Te,av as Ge,K as W,V as K,B as Re,aw as De}from"./index.badcd9f9.js";import{P as ze,l as D,T as X,O as Y,M as y,N as Oe,s as Fe,F as je,u as Be,C as qe,R as Me}from"./vendor-element-plus.ddf5f024.js";import{H as I,al as n,o as r,e as p,f as a,I as J,V as s,M as m,U as i,T as g,L as A,S as h,Q as H,W as Ie,ai as Se}from"./vendor-@vue.853aef6d.js";import{I as R}from"./InfoIcon.984a0f98.js";import{A as He,i as Ke,h as Je}from"./Status.342d6a85.js";import{C as Qe}from"./CopyToClipboard.abdd66a3.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";const We=I({name:"LayoutLuma",components:{ElDrawer:ze,ElButton:D,FontAwesomeIcon:Q},data(){return{drawer:!1}}}),Xe={class:"main"},Ye={class:"config"},Ze={class:"result"};function xe(e,t,o,l,f,v){const c=n("font-awesome-icon"),u=n("el-button"),d=n("el-drawer");return r(),p("div",Xe,[a("div",Ye,[J(e.$slots,"config",{},void 0,!0)]),a("div",Ze,[J(e.$slots,"result",{},void 0,!0)]),s(u,{round:"",class:"menu",onClick:t[0]||(t[0]=_=>e.drawer=!0)},{default:m(()=>[s(c,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(d,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=_=>e.drawer=_),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[J(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var et=V(We,[["render",xe],["__scopeId","data-v-234cfb9c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Luma.vue"]]);const tt=I({name:"EnhancementSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.enhancement},set(e){var t;console.debug("set enhancement",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{enhancement:e}))}}},mounted(){this.value===void 0&&(this.value=Ae)}}),ot={class:"field"},st={class:"title"};function nt(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",ot,[a("h2",st,i(e.$t("luma.name.enhancement")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.enhancement"),class:"info"},null,8,["content"])])}var at=V(tt,[["render",nt],["__scopeId","data-v-175365a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EnhancementSelector.vue"]]);const lt=I({name:"CustomSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{custom:e}))}}},mounted(){this.value===void 0&&(this.value=Te)}}),it={class:"field"},rt={class:"title"};function ct(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",it,[a("h2",rt,i(e.$t("luma.name.custom")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.custom"),class:"info"},null,8,["content"])])}var ut=V(lt,[["render",ct],["__scopeId","data-v-5ac2addb"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/CustomSelector.vue"]]);const dt=I({name:"LoopSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.loop},set(e){var t;console.debug("set loop",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{loop:e}))}}},mounted(){this.value===void 0&&(this.value=Ge)}}),mt={class:"field"},pt={class:"title"};function _t(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",mt,[a("h2",pt,i(e.$t("luma.name.loop")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.loop"),class:"info"},null,8,["content"])])}var ft=V(dt,[["render",_t],["__scopeId","data-v-69cccd4e"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/LoopSelector.vue"]]);const ht=I({name:"ContentInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.end_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{end_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadEndImageExceed"))},onError(){y.error(this.$t("luma.message.uploadEndImageError"))},onSetEndImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{end_image_url:e}))},async onSuccess(){this.onSetEndImageUrl()}}}),vt={class:"field"},gt={class:"title"},$t={class:"upload-wrapper"};function yt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",vt,[a("h2",gt,i(e.$t("luma.name.endImageUrl")),1),a("div",$t,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadEndImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.endImageUrl"),class:"info"},null,8,["content"])])}var bt=V(ht,[["render",yt],["__scopeId","data-v-97900bb4"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EndImageUrlInput.vue"]]);const wt=I({name:"StartImageUrlInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.start_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{start_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadStartImageExceed"))},onError(){y.error(this.$t("luma.message.uploadStartImageError"))},async onRemove(){y.error(this.$t("luma.message.uploadStartImageError"))},onSetStartImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{start_image_url:e}))},async onSuccess(){this.onSetStartImageUrl()}}}),kt={class:"field"},Vt={class:"title"},It={class:"upload-wrapper"};function St(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",kt,[a("h2",Vt,i(e.$t("luma.name.startImageUrl")),1),a("div",It,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadStartImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])]),s(d,{content:e.$t("luma.description.startImageUrl"),class:"info"},null,8,["content"])])}var Et=V(wt,[["render",St],["__scopeId","data-v-5440a4bf"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/StartImageUrlInput.vue"]]);const Ut=I({name:"UploadVideo",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.video_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{video_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetVideoUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadVideoExceed"))},onError(){y.error(this.$t("luma.message.uploadVideoError"))},beforeUpload(e){const t=e.type==="video/mp4",o=e.size/1024/1024<10;return t?o?!0:(y.error(this.$t("luma.message.uploadVideoSizeExceed")),!1):(y.error(this.$t("luma.message.uploadVideoTypeFailed")),!1)},onSetVideoUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_url:e,action:"extend"}))},async onSuccess(){this.onSetVideoUrl()}}}),Ct={class:"field"},Pt={class:"title"},Lt={class:"upload-wrapper"};function Nt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",Ct,[a("h2",Pt,i(e.$t("luma.name.videoUrl")),1),a("div",Lt,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".mp4",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadVideoUrl")),1)]),_:1})]),_:1},8,["file-list","action","before-upload","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.videoUrl"),class:"info"},null,8,["content"])])}var At=V(Ut,[["render",Nt],["__scopeId","data-v-46c66c9f"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/UploadVideo.vue"]]);const Tt="",Gt=I({name:"PromptInput",components:{ElInput:Oe,InfoIcon:R},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=Tt)}}),Rt={class:"field"},Dt={class:"box"},zt={class:"title"};function Ot(e,t,o,l,f,v){const c=n("info-icon"),u=n("el-input");return r(),p("div",Rt,[a("div",Dt,[a("h2",zt,i(e.$t("luma.name.prompt")),1),s(c,{content:e.$t("luma.description.prompt"),class:"info"},null,8,["content"])]),s(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=d=>e.prompt=d),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("luma.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Ft=V(Gt,[["render",Ot],["__scopeId","data-v-19a7446b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/PromptInput.vue"]]);const jt=I({name:"ExtendFromInput",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}},computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}}}),Bt={class:"field"},qt={class:"box"},Mt={class:"title"},Ht={class:"task"},Kt=["data-poster"],Jt=["src"];function Qt(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",Bt,[a("div",qt,[a("h2",Mt,i(e.$t("luma.name.extend")),1)]),a("div",Ht,[a("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(u=e.config)==null?void 0:u.thumbnail_url},[a("source",{size:"1080",src:(d=e.config)==null?void 0:d.video_url,type:"video/mp4"},null,8,Jt)],8,Kt)]}),_:1},8,["options"])])])])}var Wt=V(jt,[["render",Qt],["__scopeId","data-v-1cefb16b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/ExtendFromInput.vue"]]);const Xt=I({name:"PresetPanel",components:{LoopSelector:ft,StartImageUrlInput:Et,EndImageUrlInput:bt,EnhancementSelector:at,ElButton:D,FontAwesomeIcon:Q,PromptInput:Ft,ExtendFromInput:Wt,CustomSelector:ut,UploadVideo:At},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Yt={class:"panel"},Zt={class:"config"},xt={class:"actions"};function eo(e,t,o,l,f,v){var N,U,G,z,O,F,j,B,q;const c=n("extend-from-input"),u=n("prompt-input"),d=n("custom-selector"),_=n("upload-video"),$=n("start-image-url-input"),E=n("end-image-url-input"),C=n("enhancement-selector"),T=n("loop-selector"),P=n("font-awesome-icon"),L=n("el-button");return r(),p("div",Yt,[a("div",Zt,[((N=e.config)==null?void 0:N.video_id)||((U=e.config)==null?void 0:U.video_url)?(r(),A(c,{key:0,class:"mb-4"})):h("v-if",!0),s(u,{class:"mb-4"}),(G=e.config)!=null&&G.video_id?h("v-if",!0):(r(),A(d,{key:1,class:"mb-4"})),(z=e.config)!=null&&z.custom?(r(),A(_,{key:2,class:"mb-4"})):h("v-if",!0),!(((O=e.config)==null?void 0:O.video_id)||((F=e.config)==null?void 0:F.video_url))&&!((j=e.config)!=null&&j.custom)?(r(),A($,{key:3,class:"mb-4"})):h("v-if",!0),s(E,{class:"mb-4"}),s(C,{class:"mb-4"}),s(T,{class:"mb-4"}),a("div",xt,[((B=e.config)==null?void 0:B.video_url)!==void 0||((q=e.config)==null?void 0:q.custom)?(r(),A(L,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.extend")),1)]),_:1},8,["onClick"])):(r(),A(L,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.generate")),1)]),_:1},8,["onClick"]))])])])}var to=V(Xt,[["render",eo],["__scopeId","data-v-951b4cc0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/ConfigPanel.vue"]]);const oo=I({name:"VideoPlayer",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),so=["data-poster"],no=["src"];function ao(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d,_,$;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(d=(u=e.modelValue)==null?void 0:u.response)==null?void 0:d.thumbnail_url},[a("source",{size:"1080",src:($=(_=e.modelValue)==null?void 0:_.response)==null?void 0:$.video_url,type:"video/mp4"},null,8,no)],8,so)]}),_:1},8,["options"])])}var lo=V(oo,[["render",ao],["__scopeId","data-v-759e400c"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/VideoPlayer.vue"]]);const io=I({name:"TaskPreview",components:{ElImage:Fe,CopyToClipboard:Qe,FontAwesomeIcon:Q,ElAlert:je,VideoPlayer:lo,ElTooltip:Be,ElButton:D},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.luma)==null?void 0:e.application},config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onExtend(e,t){var o;e.stopPropagation(),console.debug("set config",t),this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_id:t.video_id,prompt:t.prompt,action:"extend",thumbnail_url:t.thumbnail_url,video_url:t.video_url}))},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),l=o.searchParams.get("retry");if(!l)o.searchParams.set("retry","1");else if(parseInt(l)<2)o.searchParams.set("retry",(parseInt(l)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ro={class:"preview"},co={class:"left"},uo={class:"main"},mo={class:"bot"},po={class:"datetime"},_o={class:"info"},fo={key:0,class:"prompt mt-2"},ho={key:0},vo={key:1},go={key:0,class:H({content:!0,failed:!0})},$o={class:"image-wrapper"},yo={key:0,class:H({operations:!0,"mt-2":!0})},bo={class:"description"},wo={key:1,class:H({content:!0})},ko={class:"description"},Vo={class:"description"},Io={class:"description"},So={key:2,class:H({content:!0})},Eo={class:"description"};function Uo(e,t,o,l,f,v){var T,P,L,N,U,G,z,O,F,j,B,q,Z,x,ee,te,oe,se,ne,ae,le,ie,re,ce,ue,de,me,pe;const c=n("el-image"),u=n("VideoPlayer"),d=n("el-button"),_=n("el-tooltip"),$=n("font-awesome-icon"),E=n("copy-to-clipboard"),C=n("el-alert");return r(),p("div",ro,[a("div",co,[s(c,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),a("div",uo,[a("div",mo,[g(i(e.$t("luma.name.lumaBot"))+" ",1),a("span",po,i(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),a("div",_o,[(L=(P=e.modelValue)==null?void 0:P.request)!=null&&L.prompt?(r(),p("p",fo,[g(i((U=(N=e.modelValue)==null?void 0:N.request)==null?void 0:U.prompt)+" ",1),(G=e.modelValue)!=null&&G.response?h("v-if",!0):(r(),p("span",ho," - ("+i(e.$t("luma.status.pending"))+") ",1)),((F=(O=(z=e.modelValue)==null?void 0:z.response)==null?void 0:O.data)==null?void 0:F.state)==="processing"||((q=(B=(j=e.modelValue)==null?void 0:j.response)==null?void 0:B.data)==null?void 0:q.state)==="pending"||((ee=(x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.data)==null?void 0:ee.state)==="completed"?(r(),p("span",vo," - ("+i(e.$t("luma.status.processing"))+") ",1)):h("v-if",!0)])):h("v-if",!0)]),h(" Display success message "),((oe=(te=e.modelValue)==null?void 0:te.response)==null?void 0:oe.success)===!0?(r(),p("div",go,[a("div",$o,[s(u,{"model-value":e.modelValue},null,8,["model-value"])]),((se=e.modelValue)==null?void 0:se.response)&&!((ne=e.config)!=null&&ne.custom)?(r(),p("div",yo,[s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.extendVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=S=>{var b;return e.onExtend(S,(b=e.modelValue)==null?void 0:b.response)})},{default:m(()=>[g(i(e.$t("luma.button.extend")),1)]),_:1})]),_:1},8,["content"]),s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.downloadVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[1]||(t[1]=S=>{var b,M;return e.onDownload(S,(M=(b=e.modelValue)==null?void 0:b.response)==null?void 0:M.video_url)})},{default:m(()=>[g(i(e.$t("luma.button.download")),1)]),_:1})]),_:1},8,["content"])])):h("v-if",!0),s(C,{closable:!1,class:"mt-2 success"},{default:m(()=>{var S,b;return[a("p",bo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),((le=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:le.success)===!1?(r(),p("div",wo,[s(C,{closable:!1,class:"failure"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b,M,_e,fe,he,ve,ge,$e,ye,be,we;return[a("p",ko,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),a("p",Vo,[s($,{icon:"fa-solid fa-circle-info",class:"mr-1"}),g(" "+i(e.$t("luma.name.failureReason"))+": "+i((fe=(_e=(M=e.modelValue)==null?void 0:M.response)==null?void 0:_e.error)==null?void 0:fe.message)+" ",1),s(E,{content:(ge=(ve=(he=e.modelValue)==null?void 0:he.response)==null?void 0:ve.error)==null?void 0:ge.message,class:"btn-copy"},null,8,["content"])]),a("p",Io,[s($,{icon:"fa-solid fa-hashtag",class:"mr-1"}),g(" "+i(e.$t("luma.name.traceId"))+": "+i((ye=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:ye.trace_id)+" ",1),s(E,{content:(we=(be=e.modelValue)==null?void 0:be.response)==null?void 0:we.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),!((ie=e.modelValue)!=null&&ie.response)||((ue=(ce=(re=e.modelValue)==null?void 0:re.response)==null?void 0:ce.data)==null?void 0:ue.state)==="processing"||((pe=(me=(de=e.modelValue)==null?void 0:de.response)==null?void 0:me.data)==null?void 0:pe.state)==="pending"?(r(),p("div",So,[s(C,{closable:!1,class:"info"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b;return[a("p",Eo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0)])])}var Co=V(io,[["render",Uo],["__scopeId","data-v-077795a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/task/Preview.vue"]]);const Po=I({name:"RecentPanel",components:{TaskPreview:Co,ElSkeleton:qe,ElSkeletonItem:Me},data(){return{job:0}},computed:{tasks(){var e,t,o,l;return k(w({},(e=this.$store.state.luma)==null?void 0:e.tasks),{items:(l=(o=(t=this.$store.state.luma)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:l.slice().reverse()})}}}),Lo={class:"panel recent"},No={key:0,class:"tasks"},Ao={class:"left"},To={class:"main"},Go={key:1,class:"tasks"},Ro={key:2,class:"description"};function Do(e,t,o,l,f,v){var _,$,E,C,T,P,L,N;const c=n("el-skeleton-item"),u=n("el-skeleton"),d=n("task-preview");return r(),p("div",Lo,[((_=e.tasks)==null?void 0:_.items)===void 0?(r(),p("div",No,[(r(),p(Ie,null,Se(3,U=>a("div",{key:U,class:"task placeholder"},[a("div",Ao,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"image",class:"avatar"})]),_:1})]),a("div",To,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"p",class:"title"}),s(c,{variant:"image",class:"icon"})]),_:1})])])),64))])):((E=($=e.tasks)==null?void 0:$.items)==null?void 0:E.length)&&((T=(C=e.tasks)==null?void 0:C.items)==null?void 0:T.length)>0?(r(),p("div",Go,[(r(!0),p(Ie,null,Se((P=e.tasks)==null?void 0:P.items,(U,G)=>(r(),A(d,{key:G,"model-value":U,class:"preview"},null,8,["model-value"]))),128))])):h("v-if",!0),((N=(L=e.tasks)==null?void 0:L.items)==null?void 0:N.length)===0?(r(),p("p",Ro,i(e.$t("luma.message.noTasks")),1)):h("v-if",!0)])}var zo=V(Po,[["render",Do],["__scopeId","data-v-2f8302a7"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/RecentPanel.vue"]]);const Oo="https://webhook.acedata.cloud/luma",Fo=I({name:"LumaIndex",components:{ConfigPanel:to,Layout:et,ApplicationStatus:He,RecentPanel:zo},data(){return{task:void 0,job:0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.luma)==null?void 0:e.status)==null?void 0:t.getApplications)===K.Request},service(){return this.$store.state.luma.service},credential(){return this.$store.state.luma.credential},config(){return this.$store.state.luma.config},initializing(){return this.$store.state.luma.status.getApplications===K.Request},needApply(){return this.$store.state.luma.status.getApplications===K.Success&&!this.application},application(){return this.$store.state.luma.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("luma/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("luma/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){Re.create({application:this.application}).then(({data:e})=>{this.application=e,y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Ke&&y.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("luma/getTasks",{limit:30,offset:0})},async onGenerateVideo(){var o;const e=k(w({},this.config),{callback_url:Oo}),t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}y.info(this.$t("luma.message.startingTask")),De.generate(e,{token:t}).then(()=>{y.success(this.$t("luma.message.startTaskSuccess")),this.$store.commit("luma/setConfig",{config:void 0})}).catch(l=>{var v,c;const f=(v=l==null?void 0:l.response)==null?void 0:v.data;((c=f==null?void 0:f.error)==null?void 0:c.code)===Je?y.error(this.$t("luma.message.usedUp")):y.error(this.$t("luma.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function jo(e,t,o,l,f,v){const c=n("config-panel"),u=n("application-status"),d=n("recent-panel"),_=n("layout");return r(),A(_,null,{config:m(()=>[s(c,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:m(()=>[s(u,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),s(d,{class:"panel recent"}),h(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var xo=V(Fo,[["render",jo],["__scopeId","data-v-c45e0af8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/luma/Index.vue"]]);export{xo as default};
|
|
1
|
+
var Ue=Object.defineProperty,Ce=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ve=(e,t,o)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))Le.call(t,o)&&Ve(e,o,t[o]);if(ke)for(var o of ke(t))Ne.call(t,o)&&Ve(e,o,t[o]);return e},k=(e,t)=>Ce(e,Pe(t));import{J as Ee}from"./vendor-others.4f34a866.js";import{an as Q}from"./vendor-fortawesome.f1998e53.js";import{_ as V,at as Ae,au as Te,av as Ge,K as W,V as K,B as Re,aw as De}from"./index.daadea41.js";import{P as ze,l as D,T as X,O as Y,M as y,N as Oe,s as Fe,F as je,u as Be,C as qe,R as Me}from"./vendor-element-plus.ddf5f024.js";import{H as I,al as n,o as r,e as p,f as a,I as J,V as s,M as m,U as i,T as g,L as A,S as h,Q as H,W as Ie,ai as Se}from"./vendor-@vue.853aef6d.js";import{I as R}from"./InfoIcon.ac0ec619.js";import{A as He,i as Ke,h as Je}from"./Status.5405912d.js";import{C as Qe}from"./CopyToClipboard.cb70f6d1.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";const We=I({name:"LayoutLuma",components:{ElDrawer:ze,ElButton:D,FontAwesomeIcon:Q},data(){return{drawer:!1}}}),Xe={class:"main"},Ye={class:"config"},Ze={class:"result"};function xe(e,t,o,l,f,v){const c=n("font-awesome-icon"),u=n("el-button"),d=n("el-drawer");return r(),p("div",Xe,[a("div",Ye,[J(e.$slots,"config",{},void 0,!0)]),a("div",Ze,[J(e.$slots,"result",{},void 0,!0)]),s(u,{round:"",class:"menu",onClick:t[0]||(t[0]=_=>e.drawer=!0)},{default:m(()=>[s(c,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(d,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=_=>e.drawer=_),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[J(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var et=V(We,[["render",xe],["__scopeId","data-v-234cfb9c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Luma.vue"]]);const tt=I({name:"EnhancementSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.enhancement},set(e){var t;console.debug("set enhancement",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{enhancement:e}))}}},mounted(){this.value===void 0&&(this.value=Ae)}}),ot={class:"field"},st={class:"title"};function nt(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",ot,[a("h2",st,i(e.$t("luma.name.enhancement")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.enhancement"),class:"info"},null,8,["content"])])}var at=V(tt,[["render",nt],["__scopeId","data-v-175365a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EnhancementSelector.vue"]]);const lt=I({name:"CustomSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{custom:e}))}}},mounted(){this.value===void 0&&(this.value=Te)}}),it={class:"field"},rt={class:"title"};function ct(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",it,[a("h2",rt,i(e.$t("luma.name.custom")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.custom"),class:"info"},null,8,["content"])])}var ut=V(lt,[["render",ct],["__scopeId","data-v-5ac2addb"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/CustomSelector.vue"]]);const dt=I({name:"LoopSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.loop},set(e){var t;console.debug("set loop",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{loop:e}))}}},mounted(){this.value===void 0&&(this.value=Ge)}}),mt={class:"field"},pt={class:"title"};function _t(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",mt,[a("h2",pt,i(e.$t("luma.name.loop")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.loop"),class:"info"},null,8,["content"])])}var ft=V(dt,[["render",_t],["__scopeId","data-v-69cccd4e"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/LoopSelector.vue"]]);const ht=I({name:"ContentInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.end_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{end_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadEndImageExceed"))},onError(){y.error(this.$t("luma.message.uploadEndImageError"))},onSetEndImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{end_image_url:e}))},async onSuccess(){this.onSetEndImageUrl()}}}),vt={class:"field"},gt={class:"title"},$t={class:"upload-wrapper"};function yt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",vt,[a("h2",gt,i(e.$t("luma.name.endImageUrl")),1),a("div",$t,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadEndImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.endImageUrl"),class:"info"},null,8,["content"])])}var bt=V(ht,[["render",yt],["__scopeId","data-v-97900bb4"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EndImageUrlInput.vue"]]);const wt=I({name:"StartImageUrlInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.start_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{start_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadStartImageExceed"))},onError(){y.error(this.$t("luma.message.uploadStartImageError"))},async onRemove(){y.error(this.$t("luma.message.uploadStartImageError"))},onSetStartImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{start_image_url:e}))},async onSuccess(){this.onSetStartImageUrl()}}}),kt={class:"field"},Vt={class:"title"},It={class:"upload-wrapper"};function St(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",kt,[a("h2",Vt,i(e.$t("luma.name.startImageUrl")),1),a("div",It,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadStartImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])]),s(d,{content:e.$t("luma.description.startImageUrl"),class:"info"},null,8,["content"])])}var Et=V(wt,[["render",St],["__scopeId","data-v-5440a4bf"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/StartImageUrlInput.vue"]]);const Ut=I({name:"UploadVideo",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.video_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{video_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetVideoUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadVideoExceed"))},onError(){y.error(this.$t("luma.message.uploadVideoError"))},beforeUpload(e){const t=e.type==="video/mp4",o=e.size/1024/1024<10;return t?o?!0:(y.error(this.$t("luma.message.uploadVideoSizeExceed")),!1):(y.error(this.$t("luma.message.uploadVideoTypeFailed")),!1)},onSetVideoUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_url:e,action:"extend"}))},async onSuccess(){this.onSetVideoUrl()}}}),Ct={class:"field"},Pt={class:"title"},Lt={class:"upload-wrapper"};function Nt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",Ct,[a("h2",Pt,i(e.$t("luma.name.videoUrl")),1),a("div",Lt,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".mp4",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadVideoUrl")),1)]),_:1})]),_:1},8,["file-list","action","before-upload","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.videoUrl"),class:"info"},null,8,["content"])])}var At=V(Ut,[["render",Nt],["__scopeId","data-v-46c66c9f"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/UploadVideo.vue"]]);const Tt="",Gt=I({name:"PromptInput",components:{ElInput:Oe,InfoIcon:R},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=Tt)}}),Rt={class:"field"},Dt={class:"box"},zt={class:"title"};function Ot(e,t,o,l,f,v){const c=n("info-icon"),u=n("el-input");return r(),p("div",Rt,[a("div",Dt,[a("h2",zt,i(e.$t("luma.name.prompt")),1),s(c,{content:e.$t("luma.description.prompt"),class:"info"},null,8,["content"])]),s(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=d=>e.prompt=d),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("luma.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Ft=V(Gt,[["render",Ot],["__scopeId","data-v-19a7446b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/PromptInput.vue"]]);const jt=I({name:"ExtendFromInput",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}},computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}}}),Bt={class:"field"},qt={class:"box"},Mt={class:"title"},Ht={class:"task"},Kt=["data-poster"],Jt=["src"];function Qt(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",Bt,[a("div",qt,[a("h2",Mt,i(e.$t("luma.name.extend")),1)]),a("div",Ht,[a("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(u=e.config)==null?void 0:u.thumbnail_url},[a("source",{size:"1080",src:(d=e.config)==null?void 0:d.video_url,type:"video/mp4"},null,8,Jt)],8,Kt)]}),_:1},8,["options"])])])])}var Wt=V(jt,[["render",Qt],["__scopeId","data-v-1cefb16b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/ExtendFromInput.vue"]]);const Xt=I({name:"PresetPanel",components:{LoopSelector:ft,StartImageUrlInput:Et,EndImageUrlInput:bt,EnhancementSelector:at,ElButton:D,FontAwesomeIcon:Q,PromptInput:Ft,ExtendFromInput:Wt,CustomSelector:ut,UploadVideo:At},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Yt={class:"panel"},Zt={class:"config"},xt={class:"actions"};function eo(e,t,o,l,f,v){var N,U,G,z,O,F,j,B,q;const c=n("extend-from-input"),u=n("prompt-input"),d=n("custom-selector"),_=n("upload-video"),$=n("start-image-url-input"),E=n("end-image-url-input"),C=n("enhancement-selector"),T=n("loop-selector"),P=n("font-awesome-icon"),L=n("el-button");return r(),p("div",Yt,[a("div",Zt,[((N=e.config)==null?void 0:N.video_id)||((U=e.config)==null?void 0:U.video_url)?(r(),A(c,{key:0,class:"mb-4"})):h("v-if",!0),s(u,{class:"mb-4"}),(G=e.config)!=null&&G.video_id?h("v-if",!0):(r(),A(d,{key:1,class:"mb-4"})),(z=e.config)!=null&&z.custom?(r(),A(_,{key:2,class:"mb-4"})):h("v-if",!0),!(((O=e.config)==null?void 0:O.video_id)||((F=e.config)==null?void 0:F.video_url))&&!((j=e.config)!=null&&j.custom)?(r(),A($,{key:3,class:"mb-4"})):h("v-if",!0),s(E,{class:"mb-4"}),s(C,{class:"mb-4"}),s(T,{class:"mb-4"}),a("div",xt,[((B=e.config)==null?void 0:B.video_url)!==void 0||((q=e.config)==null?void 0:q.custom)?(r(),A(L,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.extend")),1)]),_:1},8,["onClick"])):(r(),A(L,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.generate")),1)]),_:1},8,["onClick"]))])])])}var to=V(Xt,[["render",eo],["__scopeId","data-v-951b4cc0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/ConfigPanel.vue"]]);const oo=I({name:"VideoPlayer",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),so=["data-poster"],no=["src"];function ao(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d,_,$;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(d=(u=e.modelValue)==null?void 0:u.response)==null?void 0:d.thumbnail_url},[a("source",{size:"1080",src:($=(_=e.modelValue)==null?void 0:_.response)==null?void 0:$.video_url,type:"video/mp4"},null,8,no)],8,so)]}),_:1},8,["options"])])}var lo=V(oo,[["render",ao],["__scopeId","data-v-759e400c"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/VideoPlayer.vue"]]);const io=I({name:"TaskPreview",components:{ElImage:Fe,CopyToClipboard:Qe,FontAwesomeIcon:Q,ElAlert:je,VideoPlayer:lo,ElTooltip:Be,ElButton:D},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.luma)==null?void 0:e.application},config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onExtend(e,t){var o;e.stopPropagation(),console.debug("set config",t),this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_id:t.video_id,prompt:t.prompt,action:"extend",thumbnail_url:t.thumbnail_url,video_url:t.video_url}))},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),l=o.searchParams.get("retry");if(!l)o.searchParams.set("retry","1");else if(parseInt(l)<2)o.searchParams.set("retry",(parseInt(l)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ro={class:"preview"},co={class:"left"},uo={class:"main"},mo={class:"bot"},po={class:"datetime"},_o={class:"info"},fo={key:0,class:"prompt mt-2"},ho={key:0},vo={key:1},go={key:0,class:H({content:!0,failed:!0})},$o={class:"image-wrapper"},yo={key:0,class:H({operations:!0,"mt-2":!0})},bo={class:"description"},wo={key:1,class:H({content:!0})},ko={class:"description"},Vo={class:"description"},Io={class:"description"},So={key:2,class:H({content:!0})},Eo={class:"description"};function Uo(e,t,o,l,f,v){var T,P,L,N,U,G,z,O,F,j,B,q,Z,x,ee,te,oe,se,ne,ae,le,ie,re,ce,ue,de,me,pe;const c=n("el-image"),u=n("VideoPlayer"),d=n("el-button"),_=n("el-tooltip"),$=n("font-awesome-icon"),E=n("copy-to-clipboard"),C=n("el-alert");return r(),p("div",ro,[a("div",co,[s(c,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),a("div",uo,[a("div",mo,[g(i(e.$t("luma.name.lumaBot"))+" ",1),a("span",po,i(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),a("div",_o,[(L=(P=e.modelValue)==null?void 0:P.request)!=null&&L.prompt?(r(),p("p",fo,[g(i((U=(N=e.modelValue)==null?void 0:N.request)==null?void 0:U.prompt)+" ",1),(G=e.modelValue)!=null&&G.response?h("v-if",!0):(r(),p("span",ho," - ("+i(e.$t("luma.status.pending"))+") ",1)),((F=(O=(z=e.modelValue)==null?void 0:z.response)==null?void 0:O.data)==null?void 0:F.state)==="processing"||((q=(B=(j=e.modelValue)==null?void 0:j.response)==null?void 0:B.data)==null?void 0:q.state)==="pending"||((ee=(x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.data)==null?void 0:ee.state)==="completed"?(r(),p("span",vo," - ("+i(e.$t("luma.status.processing"))+") ",1)):h("v-if",!0)])):h("v-if",!0)]),h(" Display success message "),((oe=(te=e.modelValue)==null?void 0:te.response)==null?void 0:oe.success)===!0?(r(),p("div",go,[a("div",$o,[s(u,{"model-value":e.modelValue},null,8,["model-value"])]),((se=e.modelValue)==null?void 0:se.response)&&!((ne=e.config)!=null&&ne.custom)?(r(),p("div",yo,[s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.extendVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=S=>{var b;return e.onExtend(S,(b=e.modelValue)==null?void 0:b.response)})},{default:m(()=>[g(i(e.$t("luma.button.extend")),1)]),_:1})]),_:1},8,["content"]),s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.downloadVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[1]||(t[1]=S=>{var b,M;return e.onDownload(S,(M=(b=e.modelValue)==null?void 0:b.response)==null?void 0:M.video_url)})},{default:m(()=>[g(i(e.$t("luma.button.download")),1)]),_:1})]),_:1},8,["content"])])):h("v-if",!0),s(C,{closable:!1,class:"mt-2 success"},{default:m(()=>{var S,b;return[a("p",bo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),((le=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:le.success)===!1?(r(),p("div",wo,[s(C,{closable:!1,class:"failure"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b,M,_e,fe,he,ve,ge,$e,ye,be,we;return[a("p",ko,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),a("p",Vo,[s($,{icon:"fa-solid fa-circle-info",class:"mr-1"}),g(" "+i(e.$t("luma.name.failureReason"))+": "+i((fe=(_e=(M=e.modelValue)==null?void 0:M.response)==null?void 0:_e.error)==null?void 0:fe.message)+" ",1),s(E,{content:(ge=(ve=(he=e.modelValue)==null?void 0:he.response)==null?void 0:ve.error)==null?void 0:ge.message,class:"btn-copy"},null,8,["content"])]),a("p",Io,[s($,{icon:"fa-solid fa-hashtag",class:"mr-1"}),g(" "+i(e.$t("luma.name.traceId"))+": "+i((ye=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:ye.trace_id)+" ",1),s(E,{content:(we=(be=e.modelValue)==null?void 0:be.response)==null?void 0:we.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),!((ie=e.modelValue)!=null&&ie.response)||((ue=(ce=(re=e.modelValue)==null?void 0:re.response)==null?void 0:ce.data)==null?void 0:ue.state)==="processing"||((pe=(me=(de=e.modelValue)==null?void 0:de.response)==null?void 0:me.data)==null?void 0:pe.state)==="pending"?(r(),p("div",So,[s(C,{closable:!1,class:"info"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b;return[a("p",Eo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0)])])}var Co=V(io,[["render",Uo],["__scopeId","data-v-077795a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/task/Preview.vue"]]);const Po=I({name:"RecentPanel",components:{TaskPreview:Co,ElSkeleton:qe,ElSkeletonItem:Me},data(){return{job:0}},computed:{tasks(){var e,t,o,l;return k(w({},(e=this.$store.state.luma)==null?void 0:e.tasks),{items:(l=(o=(t=this.$store.state.luma)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:l.slice().reverse()})}}}),Lo={class:"panel recent"},No={key:0,class:"tasks"},Ao={class:"left"},To={class:"main"},Go={key:1,class:"tasks"},Ro={key:2,class:"description"};function Do(e,t,o,l,f,v){var _,$,E,C,T,P,L,N;const c=n("el-skeleton-item"),u=n("el-skeleton"),d=n("task-preview");return r(),p("div",Lo,[((_=e.tasks)==null?void 0:_.items)===void 0?(r(),p("div",No,[(r(),p(Ie,null,Se(3,U=>a("div",{key:U,class:"task placeholder"},[a("div",Ao,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"image",class:"avatar"})]),_:1})]),a("div",To,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"p",class:"title"}),s(c,{variant:"image",class:"icon"})]),_:1})])])),64))])):((E=($=e.tasks)==null?void 0:$.items)==null?void 0:E.length)&&((T=(C=e.tasks)==null?void 0:C.items)==null?void 0:T.length)>0?(r(),p("div",Go,[(r(!0),p(Ie,null,Se((P=e.tasks)==null?void 0:P.items,(U,G)=>(r(),A(d,{key:G,"model-value":U,class:"preview"},null,8,["model-value"]))),128))])):h("v-if",!0),((N=(L=e.tasks)==null?void 0:L.items)==null?void 0:N.length)===0?(r(),p("p",Ro,i(e.$t("luma.message.noTasks")),1)):h("v-if",!0)])}var zo=V(Po,[["render",Do],["__scopeId","data-v-2f8302a7"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/RecentPanel.vue"]]);const Oo="https://webhook.acedata.cloud/luma",Fo=I({name:"LumaIndex",components:{ConfigPanel:to,Layout:et,ApplicationStatus:He,RecentPanel:zo},data(){return{task:void 0,job:0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.luma)==null?void 0:e.status)==null?void 0:t.getApplications)===K.Request},service(){return this.$store.state.luma.service},credential(){return this.$store.state.luma.credential},config(){return this.$store.state.luma.config},initializing(){return this.$store.state.luma.status.getApplications===K.Request},needApply(){return this.$store.state.luma.status.getApplications===K.Success&&!this.application},application(){return this.$store.state.luma.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("luma/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("luma/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){Re.create({application:this.application}).then(({data:e})=>{this.application=e,y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Ke&&y.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("luma/getTasks",{limit:30,offset:0})},async onGenerateVideo(){var o;const e=k(w({},this.config),{callback_url:Oo}),t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}y.info(this.$t("luma.message.startingTask")),De.generate(e,{token:t}).then(()=>{y.success(this.$t("luma.message.startTaskSuccess")),this.$store.commit("luma/setConfig",{config:void 0})}).catch(l=>{var v,c;const f=(v=l==null?void 0:l.response)==null?void 0:v.data;((c=f==null?void 0:f.error)==null?void 0:c.code)===Je?y.error(this.$t("luma.message.usedUp")):y.error(this.$t("luma.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function jo(e,t,o,l,f,v){const c=n("config-panel"),u=n("application-status"),d=n("recent-panel"),_=n("layout");return r(),A(_,null,{config:m(()=>[s(c,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:m(()=>[s(u,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),s(d,{class:"panel recent"}),h(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var xo=V(Fo,[["render",jo],["__scopeId","data-v-c45e0af8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/luma/Index.vue"]]);export{xo as default};
|