@acedatacloud/nexior 2.11.27 → 2.11.28
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.3f2c1171.js → Auth.40a20b94.js} +1 -1
- package/dist/assets/{Buy.fe99b6c8.js → Buy.1b0648bd.js} +1 -1
- package/dist/assets/{Buy.0fe30031.js → Buy.eb724672.js} +1 -1
- package/dist/assets/{Callback.1f46627f.js → Callback.c1291352.js} +1 -1
- package/dist/assets/{Chatdoc.b9958a5d.js → Chatdoc.44d48efa.js} +1 -1
- package/dist/assets/{Console.8f7aea71.js → Console.3906a29f.js} +1 -1
- package/dist/assets/{Conversation.3ae532ed.js → Conversation.2fdf296a.js} +1 -1
- package/dist/assets/{Conversation.898c5997.js → Conversation.9fbadc0e.js} +1 -1
- package/dist/assets/{CopyToClipboard.837612f4.js → CopyToClipboard.c791184c.js} +1 -1
- package/dist/assets/{DarkSelector.6dddfe8c.js → DarkSelector.7591d459.js} +1 -1
- package/dist/assets/{Detail.eb7f5808.js → Detail.b851f6b5.js} +1 -1
- package/dist/assets/{History.11120562.js → History.843c06cf.js} +1 -1
- package/dist/assets/{Index.955779ac.js → Index.0e5ec606.js} +1 -1
- package/dist/assets/{Index.817ee3bb.js → Index.424de694.js} +1 -1
- package/dist/assets/{Index.0eebde78.js → Index.4448632e.js} +1 -1
- package/dist/assets/{Index.ec7d870e.js → Index.481b142e.js} +1 -1
- package/dist/assets/{Index.d14d723f.js → Index.56595b28.js} +1 -1
- package/dist/assets/{Index.4783806f.js → Index.8e96fcac.js} +1 -1
- package/dist/assets/{Index.82305592.js → Index.9baa1ca9.js} +1 -1
- package/dist/assets/{Index.f666f7a6.js → Index.ae61e3d2.js} +1 -1
- package/dist/assets/{Index.ca01d16c.js → Index.c5619d45.js} +1 -1
- package/dist/assets/{Index.63b7dc52.js → Index.ccfe3426.js} +1 -1
- package/dist/assets/{Index.70bf135c.js → Index.ee6edbeb.js} +1 -1
- package/dist/assets/{InfoIcon.82abbe85.js → InfoIcon.23e9d3f1.js} +1 -1
- package/dist/assets/{Invitees.f3befefd.js → Invitees.d5f9137c.js} +1 -1
- package/dist/assets/{List.30a27614.js → List.010f1de6.js} +1 -1
- package/dist/assets/{List.da014223.js → List.1f0c3249.js} +1 -1
- package/dist/assets/{List.73bdaf85.js → List.cd16db78.js} +1 -1
- package/dist/assets/{Login.68b76d49.js → Login.092bc738.js} +1 -1
- package/dist/assets/{Main.238238ef.js → Main.e4b68130.js} +1 -1
- package/dist/assets/{Manage.54d81652.js → Manage.14283477.js} +1 -1
- package/dist/assets/{MarkdownRenderer.c9be93cf.js → MarkdownRenderer.a8c8a400.js} +1 -1
- package/dist/assets/{Navigator.8477cac5.js → Navigator.1e9e4580.js} +1 -1
- package/dist/assets/{Pagination.c99e81dc.js → Pagination.2594dfab.js} +1 -1
- package/dist/assets/{Setting.ce51beba.js → Setting.29a244f8.js} +1 -1
- package/dist/assets/{Status.06d1d873.js → Status.a33ad639.js} +1 -1
- package/dist/assets/{distribution.af905172.js → distribution.7c7a6d0d.js} +1 -1
- package/dist/assets/index.22fdfd19.js +1 -0
- package/dist/assets/index.30a27d8d.js +1 -0
- package/dist/assets/index.4459fc2f.js +1 -0
- package/dist/assets/{index.32a639f4.js → index.51b4aed7.js} +2 -2
- package/dist/assets/index.79cb6cc4.js +1 -0
- package/dist/assets/index.7e9285e8.js +1 -0
- package/dist/assets/index.8814d650.js +1 -0
- package/dist/assets/index.9188158c.js +1 -0
- package/dist/assets/index.95dd5d61.js +1 -0
- package/dist/assets/index.aee09acd.js +1 -0
- package/dist/assets/index.b745b187.js +1 -0
- package/dist/assets/index.c60fc17d.js +1 -0
- package/dist/assets/index.cff63a3f.js +1 -0
- package/dist/assets/index.d35b5c14.js +1 -0
- package/dist/assets/index.d5b5117d.js +1 -0
- package/dist/assets/index.de9c199d.js +1 -0
- package/dist/assets/index.f63da6d3.js +1 -0
- package/dist/assets/index.feb83200.js +1 -0
- package/dist/assets/{order.c241fb88.js → order.13b62dce.js} +1 -1
- package/dist/assets/{price.1724a1c4.js → price.e0aed40d.js} +1 -1
- package/dist/assets/suno.19d830f3.js +1 -0
- package/dist/assets/suno.1fdb8073.js +1 -0
- package/dist/assets/suno.3ec0a0e5.js +1 -0
- package/dist/assets/suno.68123fd6.js +1 -0
- package/dist/assets/suno.704d9129.js +1 -0
- package/dist/assets/suno.94b9e5c4.js +1 -0
- package/dist/assets/suno.9a035b4d.js +1 -0
- package/dist/assets/suno.a4b7c2f5.js +1 -0
- package/dist/assets/suno.a97e5071.js +1 -0
- package/dist/assets/suno.bbe8ca37.js +1 -0
- package/dist/assets/suno.c58238aa.js +1 -0
- package/dist/assets/suno.d53e5541.js +1 -0
- package/dist/assets/suno.d691ae52.js +1 -0
- package/dist/assets/suno.f97804b7.js +1 -0
- package/dist/assets/suno.f97a600d.js +1 -0
- package/dist/assets/suno.fd4df750.js +1 -0
- package/dist/assets/suno.fd90b840.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/index.036ae81b.js +0 -1
- package/dist/assets/index.07cf3b0e.js +0 -1
- package/dist/assets/index.278292bf.js +0 -1
- package/dist/assets/index.28d58a7b.js +0 -1
- package/dist/assets/index.2a39408d.js +0 -1
- package/dist/assets/index.30a90caa.js +0 -1
- package/dist/assets/index.541a2b6d.js +0 -1
- package/dist/assets/index.5da7d24f.js +0 -1
- package/dist/assets/index.5f88bc5e.js +0 -1
- package/dist/assets/index.65fb42e2.js +0 -1
- package/dist/assets/index.8a155dc3.js +0 -1
- package/dist/assets/index.96d19284.js +0 -1
- package/dist/assets/index.ac214d3f.js +0 -1
- package/dist/assets/index.b0d434c2.js +0 -1
- package/dist/assets/index.c7a2c12d.js +0 -1
- package/dist/assets/index.d14c7109.js +0 -1
- package/dist/assets/index.e5b43820.js +0 -1
- package/dist/assets/suno.0261cb50.js +0 -1
- package/dist/assets/suno.0e6e7fe7.js +0 -1
- package/dist/assets/suno.1bc7ab8f.js +0 -1
- package/dist/assets/suno.413f1f22.js +0 -1
- package/dist/assets/suno.492639a2.js +0 -1
- package/dist/assets/suno.4a43af7e.js +0 -1
- package/dist/assets/suno.541a7588.js +0 -1
- package/dist/assets/suno.608ead51.js +0 -1
- package/dist/assets/suno.8783b63e.js +0 -1
- package/dist/assets/suno.8a131c6a.js +0 -1
- package/dist/assets/suno.a395d895.js +0 -1
- package/dist/assets/suno.a5341dd0.js +0 -1
- package/dist/assets/suno.ac937fe2.js +0 -1
- package/dist/assets/suno.b8b4ef97.js +0 -1
- package/dist/assets/suno.c4f9340d.js +0 -1
- package/dist/assets/suno.d4e03009.js +0 -1
- package/dist/assets/suno.fe3ea104.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,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))Ne.call(t,n)&&fe(e,n,t[n]);if(he)for(var n of he(t))Ae.call(t,n)&&fe(e,n,t[n]);return e},f=(e,t)=>Ce(e,Se(t));import{K as Ee,L as Q,V as Te,M as $e,P as xe,N as Ve}from"./vendor-others.de6317ed.js";import{an as re}from"./vendor-fortawesome.1cce8f50.js";import{_ as k,ay as ve,V as ae,B as De,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,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))Ne.call(t,n)&&fe(e,n,t[n]);if(he)for(var n of he(t))Ae.call(t,n)&&fe(e,n,t[n]);return e},f=(e,t)=>Ce(e,Se(t));import{K as Ee,L as Q,V as Te,M as $e,P as xe,N as Ve}from"./vendor-others.de6317ed.js";import{an as re}from"./vendor-fortawesome.1cce8f50.js";import{_ as k,ay as ve,V as ae,B as De,az as je}from"./index.51b4aed7.js";import{P as Le,l as ce,w as Fe,x as Ue,T as ge,N as ne,s as ue,X as de,Z as Ge,_ as ye,$ as we,u as Re,d as ze,f as Me,e as Oe,S as ke,t as qe,C as Be,R as We,a0 as He,a1 as Ke,a2 as Xe,M as Y}from"./vendor-element-plus.efc1b383.js";import{H as b,al as u,o as r,e as _,S as w,f as a,I as te,V as l,M as g,U as v,W as Z,ai as se,L as P,av as be,O as pe,T as J,m as U,u as y,A as Pe,s as Ye,R as Ze,P as Je}from"./vendor-@vue.34786d41.js";import{A as Qe,i as et}from"./Status.a33ad639.js";import{I as ie}from"./InfoIcon.23e9d3f1.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const tt=b({name:"LayoutSuno",components:{ElDrawer:Le,ElButton:ce,FontAwesomeIcon:re},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}}}),st={class:"main"},ot={class:"config"},nt={class:"result"},it={class:"preview"};function at(e,t,n,s,c,d){const i=u("font-awesome-icon"),p=u("el-button"),h=u("el-drawer");return r(),_("div",st,[w(" \u6700\u5DE6\u4FA7\u914D\u7F6E\u680F "),a("div",ot,[te(e.$slots,"config",{},void 0,!0)]),w(" \u4E2D\u95F4\u6B4C\u66F2\u5217\u8868\u680F "),a("div",nt,[te(e.$slots,"result",{},void 0,!0)]),w(" \u6700\u53F3\u8FB9\u6B4C\u66F2\u9884\u89C8\u680F "),a("div",it,[te(e.$slots,"preview",{},void 0,!0)]),l(p,{round:"",class:"menu",onClick:t[0]||(t[0]=$=>e.drawer=!0)},{default:g(()=>[l(i,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),l(h,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=$=>e.drawer=$),"with-header":!1,size:"340px",class:"drawer"},{default:g(()=>[te(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"]),w(` <el-drawer v-model="isPlaying" :with-header="false" size="340px" class="preview_drawer">
|
|
2
2
|
<slot name="preview" />
|
|
3
3
|
</el-drawer> `)])}var lt=k(tt,[["render",at],["__scopeId","data-v-0621513c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Suno.vue"]]);const rt=b({name:"VersionSelector",components:{ElSelect:Fe,ElOption:Ue,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)}}),ct={class:"field"},ut={class:"title"};function dt(e,t,n,s,c,d){const i=u("el-switch"),p=u("el-option"),h=u("el-select");return r(),_("div",ct,[a("h2",ut,v(e.$t("suno.name.type")),1),l(i,{modelValue:e.custom,"onUpdate:modelValue":t[0]||(t[0]=$=>e.custom=$),class:"value"},null,8,["modelValue"]),l(h,{modelValue:e.model,"onUpdate:modelValue":t[1]||(t[1]=$=>e.model=$),class:"value",placeholder:e.$t("suno.placeholder.select")},{default:g(()=>[(r(!0),_(Z,null,se(e.options,$=>(r(),P(p,{key:$.value,label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var pt=k(rt,[["render",dt],["__scopeId","data-v-6d5f21aa"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/TypeSelector.vue"]]);const _t="",mt=b({name:"PromptInput",components:{ElInput:ne,InfoIcon:ie},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=_t)}}),ht={class:"field"},ft={class:"box"},vt={class:"title"};function $t(e,t,n,s,c,d){const i=u("info-icon"),p=u("el-input");return r(),_("div",ht,[a("div",ft,[a("h2",vt,v(e.$t("suno.name.prompt")),1),l(i,{content:e.$t("suno.description.prompt"),class:"info"},null,8,["content"])]),l(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 gt=k(mt,[["render",$t],["__scopeId","data-v-11b65236"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/PromptInput.vue"]]);const yt="",wt=b({name:"LyricInput",components:{ElInput:ne,InfoIcon:ie},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=yt)}}),kt={class:"field"},bt={class:"box"},Pt={class:"title"};function It(e,t,n,s,c,d){var h;const i=u("info-icon"),p=u("el-input");return r(),_("div",kt,[a("div",bt,[a("h2",Pt,v(e.$t("suno.name.lyrics")),1),l(i,{content:e.$t("suno.description.lyrics"),class:"info"},null,8,["content"])]),((h=e.config)==null?void 0:h.action)!=="extend"?(r(),P(p,{key:0,modelValue:e.lyric,"onUpdate:modelValue":t[0]||(t[0]=$=>e.lyric=$),rows:3,type:"textarea",class:"lyrics",placeholder:e.$t("suno.placeholder.lyrics"),maxlength:3e3,"show-word-limit":""},null,8,["modelValue","placeholder"])):(r(),P(p,{key:1,modelValue:e.lyric,"onUpdate:modelValue":t[1]||(t[1]=$=>e.lyric=$),rows:3,type:"textarea",class:"lyrics",placeholder:e.$t("suno.placeholder.extend.lyrics"),maxlength:3e3,"show-word-limit":""},null,8,["modelValue","placeholder"]))])}var Ct=k(wt,[["render",It],["__scopeId","data-v-b47f1748"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/LyricInput.vue"]]);const St=b({name:"StyleInput",components:{ElInput:ne,InfoIcon:ie},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}}}),Nt={class:"field"},At={class:"title-container"},Et={class:"title"};function Tt(e,t,n,s,c,d){const i=u("info-icon"),p=u("el-input");return r(),_("div",Nt,[a("div",At,[a("h2",Et,v(e.$t("suno.name.style")),1),l(i,{content:e.$t("suno.description.style"),class:"info"},null,8,["content"])]),l(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 xt=k(St,[["render",Tt],["__scopeId","data-v-075e574a"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/StyleInput.vue"]]);const Vt="",Dt=b({name:"TitleInput",components:{ElInput:ne,InfoIcon:ie},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=Vt)}}),jt={class:"field"},Lt={class:"title-container"},Ft={class:"title"};function Ut(e,t,n,s,c,d){const i=u("info-icon"),p=u("el-input");return r(),_("div",jt,[a("div",Lt,[a("h2",Ft,v(e.$t("suno.name.title")),1),l(i,{content:e.$t("suno.description.title"),class:"info"},null,8,["content"])]),l(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 Gt=k(Dt,[["render",Ut],["__scopeId","data-v-f9bac2fa"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/TitleInput.vue"]]);function oe(e){const t=Math.floor(e)%60;e=Math.floor(e/60);const n=e%60,s=n<10?`0${n}`:n,c=t<10?`0${t}`:t;return s+":"+c}const Rt=b({name:"ExtendFromInput",components:{ElImage:ue,ElIcon:de,ElInputNumber:Ge,VideoPlay:ye,VideoPause:we},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,n;e<0?this.value=0:e>((t=this.audio)==null?void 0:t.duration)?this.value=(n=this.audio)==null?void 0:n.duration:this.value=e},useFormatDuring:oe,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,n,s;((s=(n=(t=this.$store.state)==null?void 0:t.suno)==null?void 0:n.audio)==null?void 0:s.id)!==e.id&&this.onPlay(f(m({},e),{progress:0}))}}}),zt={class:"field"},Mt={class:"box"},Ot={class:"title"},qt={class:"input-wrapper"},Bt={class:"task"},Wt={class:"left"},Ht={key:2,class:"duration"},Kt={class:"info"},Xt={class:"title"},Yt={class:"style"};function Zt(e,t,n,s,c,d){var C,I,S,N,A,o,j,V,D,F,L,G,R,z,M,O,q,B,W,H,K,X,E,_e,me;const i=u("el-input-number"),p=u("el-image"),h=u("video-pause"),$=u("el-icon"),T=u("video-play"),x=be("loading");return r(),_("div",zt,[a("div",Mt,[a("h2",Ot,v(e.$t("suno.name.extend")),1),a("div",qt,[l(i,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=ee=>e.value=ee),class:"value",min:0,max:(C=e.audio)==null?void 0:C.duration,controls:!1,placeholder:e.$t("suno.placeholder.extend.continue_at"),onChange:e.handleChange},null,8,["modelValue","max","placeholder","onChange"])])]),a("div",Bt,[a("div",{class:"audio",onClick:t[3]||(t[3]=ee=>e.onClick(e.audio))},[pe((r(),_("div",Wt,[l(p,{src:(I=e.audio)==null?void 0:I.image_url,class:"cover",fit:"cover"},null,8,["src"]),((S=e.audio)==null?void 0:S.audio_url)&&((o=(A=(N=e.$store.state)==null?void 0:N.suno)==null?void 0:A.audio)==null?void 0:o.id)===e.audio.id&&((D=(V=(j=e.$store.state)==null?void 0:j.suno)==null?void 0:V.audio)==null?void 0:D.state)==="playing"?(r(),_("div",{key:0,class:"overlay",onClick:t[1]||(t[1]=ee=>e.onPause(e.audio))},[l($,null,{default:g(()=>[l(h)]),_:1})])):w("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")?(r(),_("div",{key:1,class:"overlay",onClick:t[2]||(t[2]=ee=>e.onPlay(e.audio))},[l($,null,{default:g(()=>[l(T)]),_:1})])):w("v-if",!0),(H=e.audio)!=null&&H.duration?(r(),_("div",Ht,v(e.useFormatDuring((K=e.audio)==null?void 0:K.duration)),1)):w("v-if",!0)])),[[x,!((X=e.audio)!=null&&X.audio_url)||!((E=e.audio)!=null&&E.video_url)]]),a("div",Kt,[a("h2",Xt,v((_e=e.audio)==null?void 0:_e.title),1),a("p",Yt,v((me=e.audio)==null?void 0:me.style),1)])])])])}var Jt=k(Rt,[["render",Zt],["__scopeId","data-v-040b76e5"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/ExtendFromInput.vue"]]);const Qt=!1,es=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=Qt)}}),ts={class:"field"},ss={class:"title inline-block"};function os(e,t,n,s,c,d){const i=u("el-switch");return r(),_("div",ts,[l(i,{modelValue:e.instrumental,"onUpdate:modelValue":t[0]||(t[0]=p=>e.instrumental=p),class:"value mr-2"},null,8,["modelValue"]),a("h2",ss,v(e.$t("suno.name.instrumental")),1)])}var ns=k(es,[["render",os],["__scopeId","data-v-78764cec"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/InstrumentSwitch.vue"]]);const is=b({name:"PresetPanel",components:{TypeSelector:pt,PromptInput:gt,LyricInput:Ct,InstrumentSwitch:ns,StyleInput:xt,TitleInput:Gt,ExtendFromInput:Jt,FontAwesomeIcon:re,ElButton:ce},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),as={class:"panel"},ls={class:"config"},rs={class:"actions"};function cs(e,t,n,s,c,d){var N,A,o,j,V,D;const i=u("type-selector"),p=u("instrument-switch"),h=u("prompt-input"),$=u("lyric-input"),T=u("style-input"),x=u("title-input"),C=u("extend-from-input"),I=u("font-awesome-icon"),S=u("el-button");return r(),_("div",as,[a("div",ls,[l(i,{class:"mb-4"}),l(p,{class:"mb-4 instrument"}),(N=e.config)!=null&&N.custom?w("v-if",!0):(r(),P(h,{key:0,class:"mb-4"})),((A=e.config)==null?void 0:A.custom)&&!e.config.instrumental?(r(),P($,{key:1,class:"mb-4"})):w("v-if",!0),(o=e.config)!=null&&o.custom?(r(),P(T,{key:2,class:"mb-4"})):w("v-if",!0),(j=e.config)!=null&&j.custom?(r(),P(x,{key:3,class:"mb-4"})):w("v-if",!0),((V=e.config)==null?void 0:V.action)==="extend"?(r(),P(C,{key:4,class:"mb-4"})):w("v-if",!0),a("div",rs,[((D=e.config)==null?void 0:D.action)!=="extend"?(r(),P(S,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:g(()=>[l(I,{icon:"fa-solid fa-magic",class:"mr-2"}),J(" "+v(e.$t("suno.button.generate")),1)]),_:1},8,["onClick"])):(r(),P(S,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:g(()=>[l(I,{icon:"fa-solid fa-magic",class:"mr-2"}),J(" "+v(e.$t("suno.button.extend")),1)]),_:1},8,["onClick"]))])])])}var us=k(is,[["render",cs],["__scopeId","data-v-38bb3c66"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/ConfigPanel.vue"]]);const ds=b({name:"TaskPreview",components:{ElImage:ue,ElIcon:de,ElTooltip:Re,ElButton:ce,FontAwesomeIcon:re,VideoPlay:ye,VideoPause:we,ElDropdown:ze,ElDropdownMenu:Me,ElDropdownItem:Oe},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,n,s,c,d;let e=[];return Array.isArray((n=(t=this.modelValue)==null?void 0:t.response)==null?void 0:n.data)&&((d=(c=(s=this.modelValue)==null?void 0:s.response)==null?void 0:c.data)==null||d.forEach(i=>{let p=i;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:oe,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,n,s;((s=(n=(t=this.$store.state)==null?void 0:t.suno)==null?void 0:n.audio)==null?void 0:s.id)!==e.id&&this.onPlay(f(m({},e),{progress:0}))},onExtend(e,t){var n;e.stopPropagation(),console.log("on extend"),console.debug("set config",t),this.$store.commit("suno/setConfig",f(m({},(n=this.$store.state.suno)==null?void 0:n.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",t);const s=new URL(t).pathname,c=s.substring(s.lastIndexOf("/")+1);console.log("on preview",c),fetch(t).then(d=>d.blob()).then(d=>{Ee.exports.saveAs(d,c)})},onPreview(e,t){e.stopPropagation(),console.log("on preview",t),window.open(t,"_blank")}}}),ps={class:"task"},_s=["onClick"],ms={class:"left"},hs=["onClick"],fs=["onClick"],vs={key:2,class:"duration"},$s={class:"info"},gs={class:"title"},ys={class:"style"},ws={class:"right"},ks={class:"el-dropdown-link"};function bs(e,t,n,s,c,d){const i=u("el-image"),p=u("video-pause"),h=u("el-icon"),$=u("video-play"),T=u("el-button"),x=u("font-awesome-icon"),C=u("el-tooltip"),I=u("el-dropdown-item"),S=u("el-dropdown-menu"),N=u("el-dropdown"),A=be("loading");return r(),_("div",ps,[(r(!0),_(Z,null,se(e.audios,(o,j)=>{var V,D,F,L,G,R,z,M,O,q,B,W,H,K,X;return r(),_("div",{key:j,class:"audio",onClick:E=>e.onClick(o)},[pe((r(),_("div",ms,[l(i,{src:o==null?void 0:o.image_url,class:"cover",fit:"cover"},null,8,["src"]),(o==null?void 0:o.audio_url)&&((F=(D=(V=e.$store.state)==null?void 0:V.suno)==null?void 0:D.audio)==null?void 0:F.id)===o.id&&((R=(G=(L=e.$store.state)==null?void 0:L.suno)==null?void 0:G.audio)==null?void 0:R.state)==="playing"?(r(),_("div",{key:0,class:"overlay",onClick:E=>e.onPause(o)},[l(h,null,{default:g(()=>[l(p)]),_:1})],8,hs)):w("v-if",!0),(o==null?void 0:o.audio_url)&&(((O=(M=(z=e.$store.state)==null?void 0:z.suno)==null?void 0:M.audio)==null?void 0:O.id)!==o.id||((W=(B=(q=e.$store.state)==null?void 0:q.suno)==null?void 0:B.audio)==null?void 0:W.id)===o.id&&((X=(K=(H=e.$store.state)==null?void 0:H.suno)==null?void 0:K.audio)==null?void 0:X.state)==="paused")?(r(),_("div",{key:1,class:"overlay",onClick:E=>e.onPlay(o)},[l(h,null,{default:g(()=>[l($)]),_:1})],8,fs)):w("v-if",!0),o!=null&&o.duration?(r(),_("div",vs,v(e.useFormatDuring(o==null?void 0:o.duration)),1)):w("v-if",!0)])),[[A,!(o!=null&&o.audio_url)||!(o!=null&&o.video_url)]]),a("div",$s,[a("h2",gs,v(o==null?void 0:o.title),1),a("p",ys,v(o==null?void 0:o.style),1)]),a("div",ws,[(o==null?void 0:o.audio_url)&&(o==null?void 0:o.video_url)?(r(),P(T,{key:0,size:"small",round:"",onClick:E=>e.onExtend(E,o)},{default:g(()=>[J(v(e.$t("suno.button.extend")),1)]),_:2},1032,["onClick"])):w("v-if",!0),l(C,{effect:"dark",content:e.$t("suno.button.video"),placement:"top"},{default:g(()=>[o!=null&&o.video_url?(r(),P(x,{key:0,icon:"fa-solid fa-clapperboard",class:"icon icon-preview",onClick:E=>e.onPreview(E,o==null?void 0:o.video_url)},null,8,["onClick"])):w("v-if",!0)]),_:2},1032,["content"]),l(N,null,{dropdown:g(()=>[l(S,null,{default:g(()=>[o!=null&&o.video_url?(r(),P(I,{key:0,onClick:E=>e.onDownload(E,o==null?void 0:o.video_url)},{default:g(()=>[J(v(e.$t("suno.button.download_video")),1)]),_:2},1032,["onClick"])):w("v-if",!0),o!=null&&o.audio_url?(r(),P(I,{key:1,onClick:E=>e.onDownload(E,o==null?void 0:o.audio_url)},{default:g(()=>[J(v(e.$t("suno.button.download_audio")),1)]),_:2},1032,["onClick"])):w("v-if",!0)]),_:2},1024)]),default:g(()=>[a("span",ks,[l(C,{effect:"dark",content:e.$t("suno.button.download"),placement:"top"},{default:g(()=>[(o==null?void 0:o.audio_url)||(o==null?void 0:o.video_url)?(r(),P(x,{key:0,icon:"fa-solid fa-download",class:"icon icon-download"})):w("v-if",!0)]),_:2},1032,["content"])])]),_:2},1024)])],8,_s)}),128))])}var Ps=k(ds,[["render",bs],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/task/Preview.vue"]]);const Is={class:"player-slider"},Cs=b({setup(e){const t=Q(),n=U({get:()=>{var i,p;return(p=(i=t.state.suno)==null?void 0:i.audio)==null?void 0:p.progress},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:i}))}),s=U({get:()=>{var i,p;return(p=(i=t.state.suno)==null?void 0:i.audio)==null?void 0:p.duration},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{duration:i}))}),c=()=>{},d=i=>t.dispatch("suno/setAudio",f(m({},t.state.suno.audio),{progress:i}));return(i,p)=>(r(),_("div",Is,[l(y(ke),{modelValue:y(n),"onUpdate:modelValue":p[0]||(p[0]=h=>Pe(n)?n.value=h:null),"show-tooltip":!1,min:0,max:y(s),onChange:d,onInput:c},null,8,["modelValue","max"])]))}});var Ss=k(Cs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerSlider.vue"]]),Ns="/assets/disk.4907c891.png";const As={class:"flex player-song"},Es=["src"],Ts={class:"ml-2 text-xs flex flex-col justify-between"},xs={class:"w-52 2xl:w-96 cursor-pointer truncate"},Vs={class:"flex"},Ds={class:"ml-2 text-dc"},js=b({setup(e){const t=Q(),n=U({get:()=>t.state.suno.audio,set:s=>t.commit("suno/setAudio",s)});return Ye(n,(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,i,p;return r(),_("div",As,[a("img",{alt:"",class:"w-11 h-11 rounded",src:((d=y(n))==null?void 0:d.image_url)||y(Ns)},null,8,Es),a("div",Ts,[a("div",xs,[a("div",Vs,[a("span",null,v(((i=y(n))==null?void 0:i.title)||"Music"),1),a("span",Ds,"- "+v(((p=y(n))==null?void 0:p.style)||"SmallRuralDog"),1)])])])])}}});var Ls=k(js,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerSong.vue"]]);const Fs={class:"flex justify-end items-center gap-x-2.5"},Us={class:"text-xs"},Gs=b({setup(e){const t=Q(),n=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)=>(r(),_("div",Fs,[a("span",Us,v(y(oe)(y(n)))+" / "+v(y(oe)(y(s))),1)]))}});var Rs=k(Gs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerAction.vue"]]);const zs=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,n)=>(r(),P(Ze(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 le=k(zs,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/IconPark.vue"]]);const Ms={class:"player-volume flex flex-col items-center pt-2"},Os={class:"text-sm mt-3"},qs={class:"mt-2"},Bs=b({setup(e){const t=Q(),n=U({get:()=>{var i;return(i=t.state.suno.audio)==null?void 0:i.volume},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{volume:i}))}),s=U({get:()=>{var i;return(i=t.state.suno.audio)==null?void 0:i.muted},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{muted:i}))}),c=()=>t.dispatch("suno/toggleMuted"),d=i=>t.dispatch("suno/setVolume",i);return(i,p)=>(r(),_("div",Ms,[a("div",null,[l(y(ke),{modelValue:y(n),"onUpdate:modelValue":p[0]||(p[0]=h=>Pe(n)?n.value=h:null),vertical:"",height:"100px","show-tooltip":!1,max:100,min:0,size:"small",disabled:y(s),onInput:d},null,8,["modelValue","disabled"])]),a("div",Os,v(y(n)),1),a("div",qs,[l(le,{icon:y(s)?y(Te):y($e),size:"16",theme:"filled",class:"hover-text",onClick:c},null,8,["icon"])])]))}});var Ws=k(Bs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerVolumeSlider.vue"]]);const Hs={class:"flex items-center justify-center gap-x-3"},Ks=b({setup(e){const t=Q(),n=()=>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 i;return r(),_("div",Hs,[l(le,{icon:((i=y(s))==null?void 0:i.state)==="playing"?y(xe):y(Ve),size:"45",theme:"filled",class:"control",onClick:n},null,8,["icon"]),l(y(qe),{placement:"top",width:"50px"},{reference:g(()=>[l(le,{icon:y($e),size:"20","stroke-width":3,class:"hover-text"},null,8,["icon"])]),default:g(()=>[l(Ws)]),_:1})])}}});var Xs=k(Ks,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerController.vue"]]);const Ys={class:"flex flex-col items-stretch h-20"},Zs={class:"flex grow px-5 items-center"},Js={class:"flex-1"},Qs={class:"flex-1"},eo={class:"flex-1"},to=b({setup(e){return(t,n)=>(r(),_("div",Ys,[l(Ss),a("div",Zs,[a("div",Js,[l(Ls)]),a("div",Qs,[l(Xs)]),a("div",eo,[l(Rs)])])]))}});var so=k(to,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/Player.vue"]]);const oo=b({name:"RecentPanel",components:{TaskPreview:Ps,ElSkeleton:Be,ElSkeletonItem:We,Player:so},data(){return{job:0}},computed:{tasks(){var e,t,n,s;return f(m({},(e=this.$store.state.suno)==null?void 0:e.tasks),{items:(s=(n=(t=this.$store.state.suno)==null?void 0:t.tasks)==null?void 0:n.items)==null?void 0:s.slice().reverse()})}}}),no={class:"panel recent"},io={key:0,class:"tasks"},ao={class:"left"},lo={class:"main"},ro={key:1,class:"tasks"},co={key:2,class:"description"},uo={class:"flex-1 flex flex-col"},po={class:"h-20"};function _o(e,t,n,s,c,d){var T,x,C,I,S,N,A,o,j,V,D,F;const i=u("el-skeleton-item"),p=u("el-skeleton"),h=u("task-preview"),$=u("player");return r(),_(Z,null,[a("div",no,[((T=e.tasks)==null?void 0:T.items)===void 0?(r(),_("div",io,[(r(),_(Z,null,se(3,L=>a("div",{key:L,class:"task placeholder"},[a("div",ao,[l(p,{animated:""},{template:g(()=>[l(i,{variant:"image",class:"avatar"})]),_:1})]),a("div",lo,[l(p,{animated:""},{template:g(()=>[l(i,{variant:"p",class:"title"}),l(i,{variant:"text",style:{"margin-right":"16px"}}),l(i,{variant:"text",style:{width:"80%"}})]),_:1})])])),64))])):((C=(x=e.tasks)==null?void 0:x.items)==null?void 0:C.length)&&((S=(I=e.tasks)==null?void 0:I.items)==null?void 0:S.length)>0?(r(),_("div",ro,[(r(!0),_(Z,null,se((N=e.tasks)==null?void 0:N.items,(L,G)=>(r(),P(h,{key:G,"model-value":L,class:"preview"},null,8,["model-value"]))),128))])):w("v-if",!0),((o=(A=e.tasks)==null?void 0:A.items)==null?void 0:o.length)===0?(r(),_("p",co,v(e.$t("suno.message.noTasks")),1)):w("v-if",!0)]),pe(a("div",uo,[a("div",po,[l($)])],512),[[Je,!!((F=(D=(V=(j=e.$store)==null?void 0:j.state)==null?void 0:V.suno)==null?void 0:D.audio)!=null&&F.object)]])],64)}var mo=k(oo,[["render",_o],["__scopeId","data-v-9a683526"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/RecentPanel.vue"]]);const ho=b({name:"TaskPreview",components:{ElScrollbar:He,IconPicture:Ke,ElImage:ue,ElAvatar:Xe,ElIcon:de},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}}}),fo={key:0,class:"card"},vo={class:"image-container"},$o={class:"image-slot"},go={class:"title"},yo={class:"content"},wo={class:"artist"},ko={class:"style"},bo={class:"time"},Po={class:"lyrics"},Io={key:1,class:"gradient-background"};function Co(e,t,n,s,c,d){const i=u("icon-picture"),p=u("el-icon"),h=u("el-image"),$=u("el-avatar"),T=u("el-scrollbar");return r(),P(T,{class:"right-panel"},{default:g(()=>{var x,C,I,S,N,A,o;return[(x=e.audio)!=null&&x.object?(r(),_("div",fo,[a("div",vo,[l(h,{src:e.audio.image_url,fit:"cover"},{error:g(()=>[a("div",$o,[l(p,null,{default:g(()=>[l(i)]),_:1})])]),_:1},8,["src"]),a("h2",go,v((C=e.audio)==null?void 0:C.title),1)]),a("div",yo,[a("div",wo,[l($,{size:30,src:(I=e.audio)==null?void 0:I.image_url},null,8,["src"]),a("span",null,v((S=e.audio)==null?void 0:S.prompt),1)]),a("p",ko,v((N=e.audio)==null?void 0:N.style),1),a("p",bo,v(e.$dayjs.format((A=e.audio)==null?void 0:A.created_at)),1),a("div",Po,[a("p",null,v((o=e.audio)==null?void 0:o.lyric),1)])])])):(r(),_("div",Io))]}),_:1})}var So=k(ho,[["render",Co],["__scopeId","data-v-19e67a48"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/PreviewPanel.vue"]]);const No="https://webhook.acedata.cloud/suno",Ao=b({name:"SunoIndex",components:{Layout:lt,ApplicationStatus:Qe,ConfigPanel:us,RecentPanel:mo,PreviewPanel:So},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)===ae.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===ae.Request},needApply(){return this.$store.state.suno.status.getApplications===ae.Success&&!this.application},application(){return this.$store.state.suno.application},tasks(){return this.$store.state.suno.tasks}},watch:{tasks:{handler(e,t){var n,s;((n=e==null?void 0:e.items)==null?void 0:n.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(){De.create({application:this.application}).then(({data:e})=>{this.application=e,Y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,n;((n=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:n.code)===et&&Y.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 n;const e=f(m({},this.config),{callback_url:No}),t=(n=this.credential)==null?void 0:n.token;if(!t){console.error("no token specified");return}Y.info(this.$t("suno.message.startingTask")),je.audio(e,{token:t}).then(()=>{Y.success(this.$t("suno.message.startTaskSuccess"))}).catch(s=>{var c,d,i;Y.error(((i=(d=(c=s==null?void 0:s.response)==null?void 0:c.data)==null?void 0:d.error)==null?void 0:i.message)||this.$t("suno.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function Eo(e,t,n,s,c,d){const i=u("config-panel"),p=u("application-status"),h=u("recent-panel"),$=u("preview-panel"),T=u("layout");return r(),P(T,null,{config:g(()=>[l(i,{onGenerate:e.onGenerateAudio},null,8,["onGenerate"])]),result:g(()=>[l(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"]),l(h,{class:"panel recent"})]),preview:g(()=>[l($)]),_:1})}var zo=k(Ao,[["render",Eo],["__scopeId","data-v-11d62c6c"],["__file","/home/runner/work/Nexior/Nexior/src/pages/suno/Index.vue"]]);export{zo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{an as c}from"./vendor-fortawesome.1cce8f50.js";import{_ as r}from"./index.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{an as c}from"./vendor-fortawesome.1cce8f50.js";import{_ as r}from"./index.51b4aed7.js";import{u as a}from"./vendor-element-plus.efc1b383.js";import{H as s,al as o,o as p,L as _,M as i,V as m}from"./vendor-@vue.34786d41.js";const f=s({name:"InfoIcon",components:{FontAwesomeIcon:c,ElTooltip:a},props:{content:{type:String,required:!0}}});function l(e,d,u,I,v,x){const n=o("font-awesome-icon"),t=o("el-tooltip");return p(),_(t,{effect:"dark",content:e.content,placement:"top"},{default:i(()=>[m(n,{icon:"fa-solid fa-info",class:"icon icon-rotate"})]),_:1},8,["content"])}var C=r(f,[["render",l],["__scopeId","data-v-43d426ab"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/InfoIcon.vue"]]);export{C as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{P as b}from"./Pagination.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{P as b}from"./Pagination.2594dfab.js";import{C as w}from"./CopyToClipboard.c791184c.js";import{_ as y,a9 as $}from"./index.51b4aed7.js";import{i as C,h as I,y as D,A as k,r as E}from"./vendor-element-plus.efc1b383.js";import{H as F,al as s,av as P,L as _,M as t,o as u,V as a,f as n,U as i,O as N}from"./vendor-@vue.34786d41.js";import"./vendor-fortawesome.1cce8f50.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const q=F({name:"ConsoleDistributionInvitees",components:{Pagination:b,CopyToClipboard:w,ElRow:C,ElCol:I,ElTable:D,ElTableColumn:k,ElCard:E},data(){return{invitees:[],loading:!1,total:void 0,limit:10}},computed:{redirect(){return this.$route.query.redirect},page(){var e;return parseInt(((e=this.$route.query.page)==null?void 0:e.toString())||"1")}},watch:{page:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{onPageChange(e){var p;this.$router.push({name:(p=this.$route.name)==null?void 0:p.toString(),query:{page:e}})},onFetchData(){this.loading=!0,Promise.all([this.onFetchInvitees()]).finally(()=>{this.loading=!1})},async onFetchInvitees(){const{data:e}=await $.getInvitees({limit:this.limit,offset:(this.page-1)*this.limit,ordering:"-created_at"});this.invitees=e.items,this.total=e.count}}}),B={class:"title"},S={class:"key"},T={class:"copy"},V={class:"description"},j={class:"description"},z={class:"description"},O={class:"created-at"},A={class:"pagination m-v-lg"};function H(e,p,J,L,M,R){const d=s("el-col"),c=s("el-row"),m=s("copy-to-clipboard"),l=s("el-table-column"),h=s("el-table"),f=s("el-card"),g=s("pagination"),v=P("loading");return u(),_(c,{class:"panel"},{default:t(()=>[a(d,{span:24},{default:t(()=>[a(c,null,{default:t(()=>[a(d,{span:24},{default:t(()=>[n("h2",B,i(e.$t("common.title.invitee")),1)]),_:1})]),_:1}),a(c,null,{default:t(()=>[a(d,{span:24},{default:t(()=>[a(f,{shadow:"hover"},{default:t(()=>[N((u(),_(h,{data:e.invitees,stripe:""},{default:t(()=>[a(l,{prop:"id",label:e.$t("user.field.id"),"class-name":"text-center",width:"350px"},{default:t(o=>[n("span",S,i(o.row.id),1),n("span",T,[a(m,{content:o.row.id},null,8,["content"])])]),_:1},8,["label"]),a(l,{label:e.$t("user.field.username"),width:"300px"},{default:t(o=>{var r;return[n("span",V,i((r=o.row)==null?void 0:r.username),1)]}),_:1},8,["label"]),a(l,{label:e.$t("user.field.email"),width:"300px"},{default:t(o=>{var r;return[n("span",j,i((r=o.row)==null?void 0:r.email),1)]}),_:1},8,["label"]),a(l,{label:e.$t("user.field.nickname"),width:"200px"},{default:t(o=>[n("span",z,i(o.row.nickname),1)]),_:1},8,["label"]),a(l,{label:e.$t("user.field.dateJoined")},{default:t(o=>[n("span",O,i(e.$dayjs.format(o.row.date_joined)),1)]),_:1},8,["label"])]),_:1},8,["data"])),[[v,e.loading]])]),_:1})]),_:1})]),_:1}),a(c,null,{default:t(()=>[a(d,{span:10,offset:14},{default:t(()=>[n("div",A,[a(g,{"current-page":e.page,"page-size":e.limit,total:e.total,onChange:e.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}var ee=y(q,[["render",H],["__scopeId","data-v-7cfed024"],["__file","/home/runner/work/Nexior/Nexior/src/pages/distribution/Invitees.vue"]]);export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var N=Object.defineProperty,B=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var y=(e,t,n)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&y(e,n,t[n]);if(I)for(var n of I(t))R.call(t,n)&&y(e,n,t[n]);return e},$=(e,t)=>B(e,O(t));var k=(e,t,n)=>(y(e,typeof t!="symbol"?t+"":t,n),n);import"./vendor-others.de6317ed.js";import{I as z}from"./credential.26787c24.js";import{P as j}from"./Pagination.
|
|
1
|
+
var N=Object.defineProperty,B=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var y=(e,t,n)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&y(e,n,t[n]);if(I)for(var n of I(t))R.call(t,n)&&y(e,n,t[n]);return e},$=(e,t)=>B(e,O(t));var k=(e,t,n)=>(y(e,typeof t!="symbol"?t+"":t,n),n);import"./vendor-others.de6317ed.js";import{I as z}from"./credential.26787c24.js";import{P as j}from"./Pagination.2594dfab.js";import{x as F,_ as H,B as M}from"./index.51b4aed7.js";import{C as W}from"./CopyToClipboard.c791184c.js";import{b as G,y as J,w as K,x as Q,i as X,h as Y,A as Z,r as x}from"./vendor-element-plus.efc1b383.js";import{H as U,al as i,av as ee,L as f,M as l,o as u,V as o,f as r,U as s,e as b,ai as v,W as w,O as te,T as ae,S as ne}from"./vendor-@vue.34786d41.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";import"./vendor-fortawesome.1cce8f50.js";class le{constructor(){k(this,"key","usage/apis")}async getAll(t){return await F.get(`/${this.key}/`,{params:t})}async get(t){return await F.get(`/${this.key}/${t}`)}}const oe=new le;const ie=U({name:"ConsoleUsageList",components:{Pagination:j,ElTag:G,ElTable:J,ElSelect:K,ElOption:Q,CopyToClipboard:W,ElRow:X,ElCol:Y,ElTableColumn:Z,ElCard:x},data(){var e,t;return{applicationId:(e=this.$route.query.application_id)==null?void 0:e.toString(),apiId:(t=this.$route.query.api_id)==null?void 0:t.toString(),applications:[],credentialType:z,apiUsages:[],loading:!1,total:void 0,limit:15}},computed:{redirect(){var e;return(e=this.$route.query)==null?void 0:e.redirect},page(){var e;return parseInt(((e=this.$route.query.page)==null?void 0:e.toString())||"1")},apis(){return this.applications.filter(e=>this.applicationId?e.id===this.applicationId:!0).map(e=>{var t;return(t=e.service)==null?void 0:t.apis}).flat()}},watch:{page:{handler(){this.onFetchApiUsages()}},type:{handler(){this.onFetchApiUsages()}}},mounted(){this.onFetchApplications(),this.onFetchApiUsages()},methods:{async onApiChange(e){var t;await this.$router.push({name:(t=this.$route.name)==null?void 0:t.toString(),query:$(m({},this.$route.query),{api_id:e})}),this.onFetchApiUsages()},async onApplicationChange(e){var t;await this.$router.push({name:(t=this.$route.name)==null?void 0:t.toString(),query:$(m({},this.$route.query),{application_id:e})}),this.onFetchApiUsages()},onPageChange(e){var t;this.$router.push({name:(t=this.$route.name)==null?void 0:t.toString(),query:$(m({},this.$route.query),{page:e})})},getRemainingAmount(e){var n,d;if(e.remaining_amount===void 0||e.remaining_amount===null)return"";const t=this.$t(`service.unit.${(n=e==null?void 0:e.service)==null?void 0:n.unit}s`);return`${(d=e.remaining_amount)==null?void 0:d.toFixed(6)} ${t}`},getUsedAmount(e){var n,d;if(e.used_amount===void 0||e.used_amount===null)return"";const t=this.$t(`service.unit.${(n=e==null?void 0:e.service)==null?void 0:n.unit}s`);return`${(d=e.used_amount)==null?void 0:d.toFixed(6)} ${t}`},getDeductedAmount(e){var n,d;if((e==null?void 0:e.deducted_amount)===void 0||(e==null?void 0:e.deducted_amount)===null)return"";const t=this.$t(`service.unit.${(n=e==null?void 0:e.service)==null?void 0:n.unit}s`);return`${(d=e.deducted_amount)==null?void 0:d.toFixed(6)} ${t}`},onFetchApplications(){M.getAll({limit:100,offset:0,user_id:this.$store.getters.user.id,ordering:"-created_at"}).then(({data:e})=>{this.applications=e.items,this.total=e.count}).catch(()=>{})},onFetchApiUsages(){this.loading=!0,oe.getAll(m(m({limit:this.limit,offset:(this.page-1)*this.limit,user_id:this.$store.getters.user.id,ordering:"-created_at"},this.applicationId?{application_id:this.applicationId}:{}),this.apiId?{api_id:this.apiId}:{})).then(({data:e})=>{this.apiUsages=e.items,this.loading=!1,this.total=e.count}).catch(()=>{this.loading=!1})}}}),se={class:"title"},re={class:"inline-block mr-3"},de={class:"inline-block mr-3"},ue={class:"key"},pe={key:0,class:"copy"},ce={class:"created-at"},he={class:"pagination"};function me(e,t,n,d,_e,ge){const V=i("help-entry"),h=i("el-col"),_=i("el-row"),C=i("el-option"),A=i("el-select"),p=i("el-table-column"),q=i("el-tag"),E=i("copy-to-clipboard"),S=i("el-table"),T=i("el-card"),D=i("pagination"),L=ee("loading");return u(),f(_,{class:"panel"},{default:l(()=>[o(V,{class:"help"}),o(h,{span:24},{default:l(()=>[o(_,null,{default:l(()=>[o(h,{span:24},{default:l(()=>[r("h2",se,s(e.$t("common.title.allUsages")),1)]),_:1})]),_:1}),o(_,null,{default:l(()=>[o(h,{md:8,sm:12,class:"mb-4"},{default:l(()=>[r("span",re,s(e.$t("usage.field.application")),1),o(A,{modelValue:e.applicationId,"onUpdate:modelValue":t[0]||(t[0]=a=>e.applicationId=a),placeholder:e.$t("usage.field.application"),clearable:"",onChange:e.onApplicationChange},{default:l(()=>[(u(!0),b(w,null,v(e.applications,a=>{var c;return u(),f(C,{key:a.id,label:(c=a.service)==null?void 0:c.title,value:a==null?void 0:a.id},null,8,["label","value"])}),128))]),_:1},8,["modelValue","placeholder","onChange"])]),_:1}),o(h,{md:8,sm:12,class:"mb-4"},{default:l(()=>[r("span",de,s(e.$t("usage.field.api")),1),o(A,{modelValue:e.apiId,"onUpdate:modelValue":t[1]||(t[1]=a=>e.apiId=a),placeholder:e.$t("usage.field.api"),clearable:"",onChange:e.onApiChange},{default:l(()=>[(u(!0),b(w,null,v(e.apis,a=>(u(),f(C,{key:a==null?void 0:a.id,label:a==null?void 0:a.title,value:a==null?void 0:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),_:1}),o(_,null,{default:l(()=>[o(h,{span:24},{default:l(()=>[o(T,{shadow:"hover"},{default:l(()=>[te((u(),f(S,{data:e.apiUsages,stripe:"","table-layout":"fixed","empty-text":e.$t("common.message.noData")},{default:l(()=>[o(p,{label:e.$t("application.field.name"),width:"160px"},{default:l(a=>{var c,g;return[r("span",null,s((g=(c=a.row)==null?void 0:c.api)==null?void 0:g.title),1)]}),_:1},8,["label"]),o(p,{label:e.$t("usage.field.statusCode"),width:"120px"},{default:l(a=>[r("span",null,s(a.row.status_code),1)]),_:1},8,["label"]),o(p,{prop:"remaining_amount",label:e.$t("usage.field.remainingAmount"),width:"160px","class-name":"text-center"},{default:l(a=>[r("span",null,s(e.getRemainingAmount(a.row)),1)]),_:1},8,["label"]),o(p,{prop:"deducted_amount",label:e.$t("usage.field.deductedAmount"),width:"150px","class-name":"text-center"},{default:l(a=>[r("span",null,s(e.getDeductedAmount(a.row)),1)]),_:1},8,["label"]),o(p,{prop:"metadata",label:e.$t("usage.field.metadata"),width:"200px","class-name":"text-center"},{default:l(a=>[(u(!0),b(w,null,v(a.row.metadata,(c,g)=>(u(),f(q,{key:g,class:"mb-2"},{default:l(()=>[ae(s(g)+": "+s(c),1)]),_:2},1024))),128))]),_:1},8,["label"]),o(p,{prop:"trace_id",label:e.$t("application.field.traceId"),width:"200px","class-name":"text-center"},{default:l(a=>[r("span",ue,s(a.row.trace_id),1),a.row.trace_id?(u(),b("span",pe,[o(E,{content:a.row.trace_id,class:"inline-block"},null,8,["content"])])):ne("v-if",!0)]),_:1},8,["label"]),o(p,{label:e.$t("usage.field.createdAt"),width:"200px"},{default:l(a=>[r("span",ce,s(e.$dayjs.format(a.row.created_at)),1)]),_:1},8,["label"])]),_:1},8,["data","empty-text"])),[[L,e.loading]])]),_:1})]),_:1})]),_:1}),o(_,null,{default:l(()=>[o(h,null,{default:l(()=>[r("div",he,[o(D,{"current-page":e.page,"page-size":e.limit,total:e.total,onChange:e.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}var Ve=H(ie,[["render",me],["__scopeId","data-v-1d3a6fa8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/usage/List.vue"]]);export{Ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{o as E}from"./order.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{o as E}from"./order.13b62dce.js";import{P as O}from"./Pagination.2594dfab.js";import{C as I}from"./CopyToClipboard.c791184c.js";import{O as P}from"./order.aa35b6fb.js";import{_ as N}from"./index.51b4aed7.js";import{g as A}from"./price.e0aed40d.js";import{i as F,h as L,y as T,A as B,l as V,b as z,r as H}from"./vendor-element-plus.efc1b383.js";import{H as q,al as s,av as M,L as m,M as t,o as l,V as a,f as n,U as r,O as R,e as u,T as d,S as j}from"./vendor-@vue.34786d41.js";import"./vendor-fortawesome.1cce8f50.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const G=q({name:"ConsoleOrderList",components:{Pagination:O,CopyToClipboard:I,ElRow:F,ElCol:L,ElTable:T,ElTableColumn:B,ElButton:V,ElTag:z,ElCard:H},data(){return{OrderState:P,orders:[],loading:!1,total:void 0,limit:Math.floor((window.innerHeight-300)/50)}},computed:{redirect(){return this.$route.query.redirect},page(){var e;return parseInt(((e=this.$route.query.page)==null?void 0:e.toString())||"1")}},watch:{page:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{getPriceString:A,onPageChange(e){var h;this.$router.push({name:(h=this.$route.name)==null?void 0:h.toString(),query:{page:e}})},onFetchData(){this.loading=!0,E.getAll({ordering:"-created_at",limit:this.limit,offset:(this.page-1)*this.limit,user_id:this.$store.getters.user.id}).then(({data:e})=>{this.orders=e.items,this.loading=!1,this.total=e.count}).catch(()=>{this.loading=!1})}}}),U={class:"title"},X={class:"key"},J={class:"copy"},K={class:"price"},Q={key:0},W={key:1,class:"state state-paid"},Y={key:2,class:"state state-finished"},Z={key:3,class:"state state-expired"},x={key:4,class:"state state-failed"},ee={class:"description"},te={class:"created-at"},ae={class:"float-right"},oe={class:"pagination"};function re(e,h,se,le,ne,ie){const _=s("el-col"),f=s("el-row"),k=s("copy-to-clipboard"),p=s("el-table-column"),c=s("el-tag"),g=s("el-button"),v=s("el-table"),C=s("el-card"),S=s("pagination"),D=M("loading");return l(),m(f,{class:"panel"},{default:t(()=>[a(_,{span:24},{default:t(()=>[a(f,null,{default:t(()=>[a(_,{span:24},{default:t(()=>[n("h2",U,r(e.$t("common.title.allOrders")),1)]),_:1})]),_:1}),a(f,null,{default:t(()=>[a(_,{span:24},{default:t(()=>[a(C,{shadow:"hover"},{default:t(()=>[R((l(),m(v,{data:e.orders,stripe:""},{default:t(()=>[a(p,{prop:"id",label:e.$t("order.field.id"),"class-name":"text-center",width:"350px"},{default:t(o=>[n("span",X,r(o.row.id),1),n("span",J,[a(k,{content:o.row.id},null,8,["content"])])]),_:1},8,["label"]),a(p,{label:e.$t("order.field.price"),width:"100px"},{default:t(o=>{var i;return[n("span",K,r(e.getPriceString({value:(i=o.row)==null?void 0:i.price})),1)]}),_:1},8,["label"]),a(p,{prop:"state",label:e.$t("order.field.state"),"class-name":"text-center",width:"150px"},{default:t(o=>{var i,w,y,$,b;return[o.row.state===((i=e.OrderState)==null?void 0:i.PENDING)?(l(),u("span",Q,[a(c,{type:"info",class:"mx-1",effect:"dark"},{default:t(()=>[d(r(e.$t("order.state.pending")),1)]),_:1})])):o.row.state===((w=e.OrderState)==null?void 0:w.PAID)?(l(),u("span",W,[a(c,{type:"success",class:"mx-1",effect:"dark"},{default:t(()=>[d(r(e.$t("order.state.paid")),1)]),_:1})])):o.row.state===((y=e.OrderState)==null?void 0:y.FINISHED)?(l(),u("span",Y,[a(c,{type:"success",class:"mx-1",effect:"dark"},{default:t(()=>[d(r(e.$t("order.state.finished")),1)]),_:1})])):o.row.state===(($=e.OrderState)==null?void 0:$.EXPIRED)?(l(),u("span",Z,[a(c,{type:"warning",class:"mx-1",effect:"dark"},{default:t(()=>[d(r(e.$t("order.state.expired")),1)]),_:1})])):o.row.state===((b=e.OrderState)==null?void 0:b.FAILED)?(l(),u("span",x,[a(c,{type:"danger",class:"mx-1",effect:"dark"},{default:t(()=>[d(r(e.$t("order.state.failed")),1)]),_:1})])):j("v-if",!0)]}),_:1},8,["label"]),a(p,{label:e.$t("order.field.description"),width:"300px"},{default:t(o=>[n("span",ee,r(o.row.description),1)]),_:1},8,["label"]),a(p,{label:e.$t("order.field.createdAt"),width:"180px"},{default:t(o=>[n("span",te,r(e.$dayjs.format(o.row.created_at)),1)]),_:1},8,["label"]),a(p,{fixed:"right","min-width":"120px"},{default:t(o=>[n("div",ae,[o.row.state!==e.OrderState.PAID||o.row.state!==e.OrderState.FINISHED?(l(),m(g,{key:0,type:"primary",size:"small",round:"",onClick:i=>e.$router.push({name:"console-order-detail",params:{id:o.row.id}})},{default:t(()=>[d(r(e.$t("order.button.continuePay")),1)]),_:2},1032,["onClick"])):(l(),m(g,{key:1,size:"small",round:"",onClick:i=>e.$router.push({name:"console-order-detail",params:{id:o.row.id}})},{default:t(()=>[d(r(e.$t("order.button.checkDetail")),1)]),_:2},1032,["onClick"]))])]),_:1})]),_:1},8,["data"])),[[D,e.loading]])]),_:1})]),_:1})]),_:1}),a(f,null,{default:t(()=>[a(_,null,{default:t(()=>[n("div",oe,[a(S,{"current-page":e.page,"page-size":e.limit,total:e.total,onChange:e.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}var be=N(G,[["render",re],["__scopeId","data-v-388af89b"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/order/List.vue"]]);export{be as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var B=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var b=(e,a,o)=>a in e?B(e,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[a]=o,w=(e,a)=>{for(var o in a||(a={}))L.call(a,o)&&b(e,o,a[o]);if(v)for(var o of v(a))S.call(a,o)&&b(e,o,a[o]);return e},C=(e,a)=>N(e,D(a));import"./vendor-others.de6317ed.js";import{_ as U,I as A,z as R,A as x,B as F}from"./index.
|
|
1
|
+
var B=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var b=(e,a,o)=>a in e?B(e,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[a]=o,w=(e,a)=>{for(var o in a||(a={}))L.call(a,o)&&b(e,o,a[o]);if(v)for(var o of v(a))S.call(a,o)&&b(e,o,a[o]);return e},C=(e,a)=>N(e,D(a));import"./vendor-others.de6317ed.js";import{_ as U,I as A,z as R,A as x,B as F}from"./index.51b4aed7.js";import{I as V}from"./credential.26787c24.js";import{P as q}from"./Pagination.2594dfab.js";import{C as z}from"./CopyToClipboard.c791184c.js";import{y as M,i as j,l as G,h as H,b as X,A as J,r as K}from"./vendor-element-plus.efc1b383.js";import{H as Q,al as r,av as W,L as c,M as n,o as _,V as i,f as u,U as s,O as Y,T as y,S as g,e as Z}from"./vendor-@vue.34786d41.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";import"./vendor-fortawesome.1cce8f50.js";const ee=Q({name:"ConsoleApplicationList",components:{Pagination:q,CopyToClipboard:z,ElTable:M,ElRow:j,ElButton:G,ElCol:H,ElTag:X,ElTableColumn:J,ElCard:K},data(){return{credentialType:V,applications:[],loading:!1,total:void 0,buying:!1,limit:10,form:{amount:1},active:{service:void 0,application:void 0}}},computed:{redirect(){var e;return(e=this.$route.query)==null?void 0:e.redirect},page(){var e;return parseInt(((e=this.$route.query.page)==null?void 0:e.toString())||"1")}},watch:{page:{handler(){this.onFetchData()}},type:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{onBuyMore(e){e.type===A.USAGE?this.$router.push({name:R,params:{id:e.id}}):e.type===A.PERIOD&&this.$router.push({name:x,params:{id:e.id}})},onPageChange(e){var a;this.$router.push({name:(a=this.$route.name)==null?void 0:a.toString(),query:C(w({},this.$route.query),{page:e})})},onFetchData(){this.loading=!0,F.getAll({limit:this.limit,offset:(this.page-1)*this.limit,user_id:this.$store.getters.user.id,ordering:"-created_at"}).then(({data:e})=>{this.applications=e.items,this.loading=!1,this.total=e.count}).catch(()=>{this.loading=!1})},getRemainingAmount(e){var o,m;if(e.remaining_amount===void 0||e.remaining_amount===null)return"";const a=this.$t(`service.unit.${(o=e==null?void 0:e.service)==null?void 0:o.unit}s`);return`${(m=e.remaining_amount)==null?void 0:m.toFixed(6)} ${a}`},getUsedAmount(e){var o,m;if(e.used_amount===void 0||e.used_amount===null)return"";const a=this.$t(`service.unit.${(o=e==null?void 0:e.service)==null?void 0:o.unit}s`);return`${(m=e.used_amount)==null?void 0:m.toFixed(6)} ${a}`}}}),te={class:"title"},ae={class:"copy"},ne={key:0,class:"expired-at"},oe={class:"float-right"},ie={class:"pagination"};function le(e,a,o,m,re,se){const h=r("el-col"),f=r("el-row"),E=r("copy-to-clipboard"),p=r("el-table-column"),$=r("el-tag"),T=r("el-button"),I=r("el-table"),k=r("el-card"),O=r("pagination"),P=W("loading");return _(),c(f,{class:"panel"},{default:n(()=>[i(h,{span:24},{default:n(()=>[i(f,null,{default:n(()=>[i(h,{span:24},{default:n(()=>[u("h2",te,s(e.$t("common.title.allApplications")),1)]),_:1})]),_:1}),i(f,null,{default:n(()=>[i(h,{span:24},{default:n(()=>[i(k,{shadow:"hover"},{default:n(()=>[Y((_(),c(I,{data:e.applications,stripe:"","table-layout":"fixed","empty-text":e.$t("common.message.noData")},{default:n(()=>[i(p,{prop:"id",label:e.$t("application.field.id"),width:"280px","class-name":"text-center"},{default:n(t=>{var l;return[u("span",null,s(t.row.id),1),u("span",ae,[i(E,{content:(l=t==null?void 0:t.row)==null?void 0:l.id,class:"inline-block"},null,8,["content"])])]}),_:1},8,["label"]),i(p,{label:e.$t("application.field.type"),width:"80px"},{default:n(t=>{var l,d;return[((l=t.row)==null?void 0:l.type)==="Period"?(_(),c($,{key:0,type:"success"},{default:n(()=>[y(s(e.$t("application.type.period")),1)]),_:1})):g("v-if",!0),((d=t.row)==null?void 0:d.type)==="Usage"?(_(),c($,{key:1,type:"primary"},{default:n(()=>[y(s(e.$t("application.type.usage")),1)]),_:1})):g("v-if",!0)]}),_:1},8,["label"]),i(p,{label:e.$t("application.field.name"),width:"180px"},{default:n(t=>{var l,d;return[u("span",null,s((d=(l=t.row)==null?void 0:l.service)==null?void 0:d.title),1)]}),_:1},8,["label"]),i(p,{prop:"remaining_amount",label:e.$t("application.field.remainingAmount"),width:"160px","class-name":"text-center"},{default:n(t=>[u("span",null,s(e.getRemainingAmount(t.row)),1)]),_:1},8,["label"]),i(p,{prop:"used_amount",label:e.$t("application.field.usedAmount"),width:"160px","class-name":"text-center"},{default:n(t=>[u("span",null,s(e.getUsedAmount(t.row)),1)]),_:1},8,["label"]),i(p,{label:e.$t("application.field.expiredAt"),width:"200px"},{default:n(t=>[t.row.expired_at?(_(),Z("span",ne,s(e.$dayjs.format(t.row.expired_at)),1)):g("v-if",!0)]),_:1},8,["label"]),i(p,{fixed:"right",width:"120px"},{default:n(t=>{var l,d;return[u("div",oe,[((l=t==null?void 0:t.row)==null?void 0:l.type)==="Period"||((d=t==null?void 0:t.row)==null?void 0:d.type)==="Usage"?(_(),c(T,{key:0,type:"primary",round:"",size:"small",onClick:de=>e.onBuyMore(t==null?void 0:t.row)},{default:n(()=>[y(s(e.$t("application.button.buyMore")),1)]),_:2},1032,["onClick"])):g("v-if",!0)])]}),_:1})]),_:1},8,["data","empty-text"])),[[P,e.loading]])]),_:1})]),_:1})]),_:1}),i(f,null,{default:n(()=>[i(h,null,{default:n(()=>[u("div",ie,[i(O,{"current-page":e.page,"page-size":e.limit,total:e.total,onChange:e.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}var be=U(ee,[["render",le],["__scopeId","data-v-31a091d9"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/application/List.vue"]]);export{be as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{_ as r}from"./index.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{_ as r}from"./index.51b4aed7.js";import{H as e}from"./vendor-@vue.34786d41.js";import"./vendor-element-plus.efc1b383.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";import"./vendor-fortawesome.1cce8f50.js";const o=e({name:"AuthLogin",data(){var t;return{redirect:(t=this.$route.query.redirect)==null?void 0:t.toString()}},async mounted(){this.$store.state.token.access?this.$router.push(this.redirect||"/"):this.$store.dispatch("login")}});var u=r(o,[["__file","/home/runner/work/Nexior/Nexior/src/pages/auth/Login.vue"]]);export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{N as i}from"./Navigator.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{N as i}from"./Navigator.1e9e4580.js";import{_ as a}from"./index.51b4aed7.js";import{H as s,al as o,e as m,V as e,o as _}from"./vendor-@vue.34786d41.js";import"./vendor-element-plus.efc1b383.js";import"./vendor-fortawesome.1cce8f50.js";import"./DarkSelector.7591d459.js";import"./vendor-vue-dark-switch.9acc6f91.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const p=s({name:"LayoutMain",components:{Navigator:i},data(){return{mobile:window.innerWidth<768}},mounted(){window.addEventListener("resize",()=>{this.mobile=window.innerWidth<768})}}),c={class:"wrapper"};function d(r,l,u,v,w,f){const t=o("router-view"),n=o("navigator");return _(),m("div",c,[e(t,{class:"main"}),e(n,{class:"navigator",direction:r.mobile?"row":"column"},null,8,["direction"])])}var C=a(p,[["render",d],["__scopeId","data-v-63155678"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Main.vue"]]);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{L as S}from"./Chatdoc.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{L as S}from"./Chatdoc.44d48efa.js";import{l as D,E as N,O as L,X as z,Y as B,M as p,y as M,b as T,A as F}from"./vendor-element-plus.efc1b383.js";import{K as P,_ as k,V as w}from"./index.51b4aed7.js";import{H as E,al as l,o as n,e as b,V as s,M as o,Q as K,L as m,S as h,f as c,U as a,T as d,W as O,av as R,O as j}from"./vendor-@vue.34786d41.js";import{A as q}from"./Status.a33ad639.js";import"./vendor-fortawesome.1cce8f50.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const H=E({name:"UploadDocument",components:{ElButton:D,ElDialog:N,ElUpload:L,ElIcon:z,UploadFilled:B},data(){return{dialogVisible:!1,fileList:[],learning:!1,uploadUrl:P()+"/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})}},async mounted(){},methods:{onExceed(){p.warning(this.$t("chatdoc.message.uploadDocumentsExceed"))},onError(){p.error(this.$t("chatdoc.message.uploadDocumentsError"))},async onSuccess(){p.success(this.$t("chatdoc.message.uploadDocumentsSuccess")),p.info(this.$t("chatdoc.message.startCreateDocument")),this.learning=!0,this.$store.dispatch("chatdoc/createDocument",{repositoryId:this.$route.params.repositoryId,fileUrl:this.urls[0],fileName:this.fileList[0].name}).then(()=>{p.success(this.$t("chatdoc.message.createDocumentSuccess")),this.dialogVisible=!1,this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.$route.params.repositoryId}),this.$store.dispatch("chatdoc/getApplications")}).catch(()=>{p.error(this.$t("chatdoc.message.createDocumentError"))}).finally(()=>{this.fileList=[],this.learning=!1})}}}),Q={key:1,class:"el-upload__text"},W={key:2};function X(e,t,_,$,C,I){const v=l("upload-filled"),y=l("el-icon"),r=l("el-upload"),f=l("el-dialog"),g=l("el-button");return n(),b(O,null,[s(f,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=u=>e.dialogVisible=u)},{default:o(()=>[s(r,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=u=>e.fileList=u),accept:".docx,.doc,.pdf,.txt,.csv,.enex,.epub,.eml,.html,.htm,.shtml,.md,.odt,.ppt,.pptx,.txt",drag:"",class:K({upload:!0}),name:"file","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:o(()=>[e.learning?h("v-if",!0):(n(),m(y,{key:0,class:"el-icon--upload"},{default:o(()=>[s(v)]),_:1})),e.learning?h("v-if",!0):(n(),b("div",Q,[c("p",null,a(e.$t("chatdoc.message.dragOrClickToUpload")),1),c("p",null,a(e.$t("chatdoc.message.supportedFiles")),1)])),e.learning?(n(),b("div",W,a(e.$t("chatdoc.message.learningDocument")),1)):h("v-if",!0)]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),_:1},8,["modelValue"]),s(g,{type:"primary",round:"",onClick:t[2]||(t[2]=u=>e.dialogVisible=!0)},{default:o(()=>[d(a(e.$t("chatdoc.button.uploadDocuments")),1)]),_:1})],64)}var Y=k(H,[["render",X],["__scopeId","data-v-4a88fdfb"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/UploadDocument.vue"]]);const G=E({name:"ChatdocKnowledge",components:{Layout:S,ElButton:D,ElTable:M,ElTag:T,ApplicationStatus:q,ElTableColumn:F,UploadDocument:Y},data(){return{loading:!1,repositoryId:this.$route.params.repositoryId.toString()}},computed:{repository(){var e,t,_;return(_=(t=(e=this.$store.state)==null?void 0:e.chatdoc)==null?void 0:t.repositories)==null?void 0:_.find($=>$.id===this.repositoryId)},documents(){var e;return(e=this.repository)==null?void 0:e.documents},needApply(){return this.$store.state.chatdoc.status.getApplications===w.Success&&!this.application},service(){return this.$store.state.chatdoc.service},application(){return this.$store.state.chatdoc.application},initializing(){return this.$store.state.chatdoc.status.getApplications===w.Request}},async mounted(){console.log("start get documents"),this.loading=!0,this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.repositoryId}).then(()=>{this.loading=!1}).catch(()=>{this.loading=!1})},methods:{onDelete(e){this.$store.dispatch("chatdoc/deleteDocument",{id:e}).then(()=>{p.success(this.$t("chatdoc.message.deleteDocumentSuccess")),this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.repositoryId})})},onPreview(e){window.open(e,"_blank")}}}),J={class:"wrapper"},Z={class:"title"},x={class:"introduction"},ee={class:"status"},te={class:"operations"},oe={class:"documents"};function se(e,t,_,$,C,I){const v=l("application-status"),y=l("upload-document"),r=l("el-table-column"),f=l("el-tag"),g=l("el-button"),u=l("el-table"),U=l("layout"),V=R("loading");return n(),m(U,null,{chatdoc:o(()=>[c("div",J,[c("div",Z,a(e.$t("chatdoc.title.manage")),1),c("div",x,a(e.$t("chatdoc.message.introductionForKnowledge")),1),c("div",ee,[s(v,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:t[0]||(t[0]=i=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),c("div",te,[s(y)]),c("div",oe,[j((n(),m(u,{data:e.documents,border:""},{default:o(()=>[s(r,{prop:"id",label:"ID"}),s(r,{prop:"file_name",label:e.$t("chatdoc.field.fileName")},null,8,["label"]),s(r,{label:e.$t("chatdoc.field.fileExtension"),width:"100px"},{default:o(i=>[d(a(i.row.file_name.split(".").pop()),1)]),_:1},8,["label"]),s(r,{label:e.$t("chatdoc.field.createdAt"),width:"200px"},{default:o(i=>[d(a(i.row.created_at?e.$dayjs.format(i.row.created_at):""),1)]),_:1},8,["label"]),s(r,{label:e.$t("chatdoc.field.state"),width:"180px"},{default:o(i=>[i.row.state==="processing"?(n(),m(f,{key:0,type:"info"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateProcessing")),1)]),_:1})):h("v-if",!0),i.row.state==="failed"?(n(),m(f,{key:1,type:"danger"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateFailed")),1)]),_:1})):h("v-if",!0),i.row.state==="completed"?(n(),m(f,{key:2,type:"success"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateCompleted")),1)]),_:1})):h("v-if",!0)]),_:1},8,["label"]),s(r,null,{default:o(i=>[s(g,{type:"primary",round:"",size:"small",onClick:A=>e.onPreview(i.row.file_url)},{default:o(()=>[d(a(e.$t("common.button.preview")),1)]),_:2},1032,["onClick"]),s(g,{type:"danger",round:"",size:"small",onClick:A=>e.onDelete(i.row.id)},{default:o(()=>[d(a(e.$t("common.button.delete")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,e.loading]])])])]),_:1})}var me=k(G,[["render",se],["__scopeId","data-v-69ae9518"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Manage.vue"]]);export{me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty,v=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var i=(o,e,r)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,d=(o,e)=>{for(var r in e||(e={}))f.call(e,r)&&i(o,r,e[r]);if(c)for(var r of c(e))g.call(e,r)&&i(o,r,e[r]);return o},_=(o,e)=>v(o,h(e));import{I as w}from"./vendor-others.de6317ed.js";import{m as k}from"./vendor-markdown.f1450088.js";import{Z as y,$ as M,_ as p}from"./index.
|
|
1
|
+
var m=Object.defineProperty,v=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var i=(o,e,r)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,d=(o,e)=>{for(var r in e||(e={}))f.call(e,r)&&i(o,r,e[r]);if(c)for(var r of c(e))g.call(e,r)&&i(o,r,e[r]);return o},_=(o,e)=>v(o,h(e));import{I as w}from"./vendor-others.de6317ed.js";import{m as k}from"./vendor-markdown.f1450088.js";import{Z as y,$ as M,_ as p}from"./index.51b4aed7.js";import{H as u,m as x,ah as b,al as E,av as $,O as q,o as L,L as R}from"./vendor-@vue.34786d41.js";import"./vendor-highlight.js.6ee9ffbc.js";const S=async o=>{const e=(await y(()=>import("./vendor-highlight.js.6ee9ffbc.js"),["assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css"])).default;console.debug("highlight.js loaded"),o.querySelectorAll("pre code").forEach(n=>{var s,a;const t=document.createElement("button");t.innerHTML=M.global.t("common.button.copy").toString(),t.addEventListener("click",()=>{w(n.innerText)}),(s=n.parentElement)!=null&&s.querySelector("button")||(a=n.parentElement)==null||a.prepend(t),e.highlightBlock(n)})},T=u({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,default:()=>({}),required:!1}},setup(o,{attrs:e}){const r=new k(o.options),n=x(()=>{const t=o.source;return r==null?void 0:r.render(t)});return()=>b("div",_(d({},e),{innerHTML:n.value}))}});var C=p(T,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/VueMarkdown.vue"]]);const I=u({name:"ApiCode",directives:{highlight:S},components:{VueMarkdown:C},props:{content:{type:String,required:!1,default:""}},data(){},watch:{}});function N(o,e,r,n,t,s){const a=E("vue-markdown"),l=$("highlight");return q((L(),R(a,{source:o.content,class:"markdown-body"},null,8,["source"])),[[l]])}var j=p(I,[["render",N],["__scopeId","data-v-8173dc94"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/MarkdownRenderer.vue"]]);export{j as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as ee}from"./vendor-others.de6317ed.js";import{an as G}from"./vendor-fortawesome.1cce8f50.js";import{D as te,L as oe}from"./DarkSelector.6dddfe8c.js";import{_ as U,h as Z,j as Y,k as se,l as j,m as z,n as ne,o as F,p as ae,q as J,r as ie,t as P,u as re,v as Q,R as le,w as ce,b as ue}from"./index.32a639f4.js";import{H as D,o as m,e as E,al as f,L as I,M as s,I as de,V as t,T as W,U as S,S as T,f as _,W as me,ai as pe,Q as K,aK as fe,aL as _e}from"./vendor-@vue.34786d41.js";import{s as he,t as ve,j as $e,k as ke,l as ge,u as Ee}from"./vendor-element-plus.efc1b383.js";const be=D({emits:["click"],computed:{dark(){return ee("THEME")==="dark"},url(){var e;return(e=this.$store.state.site)==null?void 0:e.favicon}}}),Ne=["src"];function ye(e,o,r,l,u,h){return m(),E("img",{src:e.url,class:"logo tiny",onClick:o[0]||(o[0]=d=>e.$emit("click"))},null,8,Ne)}var Te=U(be,[["render",ye],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LogoTiny.vue"]]);const Ce=D({name:"HelpEntry",components:{ElImage:he,ElPopover:ve,ElMenu:$e,ElMenuItem:ke,FontAwesomeIcon:G},computed:{site(){return this.$store.state.site}},methods:{onJoin(){var e,o,r,l;window.open((l=(r=(o=(e=this.$store.state.site)==null?void 0:e.features)==null?void 0:o.support)==null?void 0:r.discord)==null?void 0:l.url,"_blank")},onProfit(){this.$router.push({name:Z})}}}),Oe={class:"flex"},Re={class:"flex-1 text-center"};function we(e,o,r,l,u,h){const d=f("font-awesome-icon"),a=f("el-menu-item"),i=f("el-image"),c=f("el-popover"),b=f("el-menu");return m(),I(c,{placement:"bottom",width:200,trigger:"hover","popper-style":{padding:"10px"}},{reference:s(()=>[de(e.$slots,"main",{},void 0,!0)]),default:s(()=>[t(b,{collapse:!1,class:"menu"},{default:s(()=>{var $,k,n,g;return[t(c,{width:350,trigger:"hover"},{reference:s(()=>{var p,v,N,y,C,O,R,w;return[((y=(N=(v=(p=e.site)==null?void 0:p.features)==null?void 0:v.support)==null?void 0:N.wechat)==null?void 0:y.enabled)&&((w=(R=(O=(C=e.site)==null?void 0:C.features)==null?void 0:O.support)==null?void 0:R.wechat)==null?void 0:w.qr)?(m(),I(a,{key:0,index:"1"},{title:s(()=>[W(S(e.$t("common.message.addWeChat")),1)]),default:s(()=>[t(d,{icon:"fa-brands fa-weixin",class:"mr-2"})]),_:1})):T("v-if",!0)]}),default:s(()=>{var p,v,N,y;return[_("div",Oe,[_("div",Re,[t(i,{src:(y=(N=(v=(p=e.site)==null?void 0:p.features)==null?void 0:v.support)==null?void 0:N.wechat)==null?void 0:y.qr},null,8,["src"])])])]}),_:1}),(g=(n=(k=($=e.site)==null?void 0:$.features)==null?void 0:k.support)==null?void 0:n.discord)!=null&&g.enabled?(m(),I(a,{key:0,index:"2",onClick:e.onJoin},{title:s(()=>[W(S(e.$t("common.message.joinDiscord")),1)]),default:s(()=>[t(d,{icon:"fa-brands fa-discord",class:"mr-2"})]),_:1},8,["onClick"])):T("v-if",!0)]}),_:1})]),_:3})}var Ie=U(Ce,[["render",we],["__scopeId","data-v-a4fb3806"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/HelpEntry.vue"]]);const Se=D({name:"Navigator",components:{ElButton:ge,HelpEntry:Ie,LogoTiny:Te,DarkSelector:te,ElTooltip:Ee,LocaleSelector:oe,FontAwesomeIcon:G},props:{direction:{type:String,default:"column"}},data(){return{operating:{dark:!1,locale:!1},activeIndex:this.$route.name}},computed:{links(){var o,r,l,u,h,d,a,i,c,b,$,k,n,g,p,v,N,y,C,O,R,w,H,L,A,M,V,X,q,B;const e=[];return(h=(u=(l=(r=(o=this.$store)==null?void 0:o.state)==null?void 0:r.site)==null?void 0:l.features)==null?void 0:u.chat)!=null&&h.enabled&&e.push({route:{name:Y},displayName:this.$t("common.nav.chat"),icon:"fa-regular fa-comment",routes:[se,Y]}),(b=(c=(i=(a=(d=this.$store)==null?void 0:d.state)==null?void 0:a.site)==null?void 0:i.features)==null?void 0:c.midjourney)!=null&&b.enabled&&e.push({route:{name:j},displayName:this.$t("common.nav.midjourney"),icon:"fa-solid fa-palette",routes:[j]}),(p=(g=(n=(k=($=this.$store)==null?void 0:$.state)==null?void 0:k.site)==null?void 0:n.features)==null?void 0:g.qrart)!=null&&p.enabled&&e.push({route:{name:z},displayName:this.$t("common.nav.qrart"),icon:"fa-solid fa-qrcode",routes:[z,ne]}),(O=(C=(y=(N=(v=this.$store)==null?void 0:v.state)==null?void 0:N.site)==null?void 0:y.features)==null?void 0:C.suno)!=null&&O.enabled&&e.push({route:{name:F},displayName:this.$t("common.nav.suno"),icon:"fa-solid fa-music",routes:[F,ae]}),(A=(L=(H=(w=(R=this.$store)==null?void 0:R.state)==null?void 0:w.site)==null?void 0:H.features)==null?void 0:L.luma)!=null&&A.enabled&&e.push({route:{name:J},displayName:this.$t("common.nav.luma"),icon:"fa-solid fa-film",routes:[J,ie]}),(B=(q=(X=(V=(M=this.$store)==null?void 0:M.state)==null?void 0:V.site)==null?void 0:X.features)==null?void 0:q.headshots)!=null&&B.enabled&&e.push({route:{name:P},displayName:this.$t("common.nav.headshots"),icon:"fa-solid fa-id-card",routes:[P,re]}),this.direction==="row"&&e.push({route:{name:Q},displayName:this.$t("common.nav.profile"),icon:"fa-solid fa-user",routes:[Q]}),e},authenticated(){return!!this.$store.state.token.access},showSite(){var e,o,r,l,u;return(u=(r=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:r.admins)==null?void 0:u.includes((l=this.$store.getters.user)==null?void 0:l.id)},showSupport(){var e,o,r,l,u,h,d,a,i,c,b,$,k,n,g,p,v;return((u=(l=(r=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:r.features)==null?void 0:l.support)==null?void 0:u.enabled)&&(((b=(c=(i=(a=(d=(h=this.$store)==null?void 0:h.state)==null?void 0:d.site)==null?void 0:a.features)==null?void 0:i.support)==null?void 0:c.discord)==null?void 0:b.enabled)||((v=(p=(g=(n=(k=($=this.$store)==null?void 0:$.state)==null?void 0:k.site)==null?void 0:n.features)==null?void 0:g.support)==null?void 0:p.wechat)==null?void 0:v.enabled))},showDistribution(){var e,o,r,l,u,h,d,a,i;return!((l=(r=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:r.distribution)!=null&&l.force_inviter_id)||((u=this.$store.getters.user)==null?void 0:u.id)===((i=(a=(d=(h=this.$store)==null?void 0:h.state)==null?void 0:d.site)==null?void 0:a.distribution)==null?void 0:i.force_inviter_id)}},methods:{onHome(){this.$router.push({name:le})},onSite(){this.$router.push({name:ce})},onDistribution(){this.$router.push({name:Z})},async onLogout(){await this.$store.dispatch("logout")},onConsole(){this.$router.push({name:ue})}}}),x=e=>(fe("data-v-a43dbcba"),e=e(),_e(),e),Ue=["direction"],De={class:"top"},He={key:0},Le=["onClick"],Ae={class:"description"},Me=x(()=>_("div",{class:"middle"},null,-1)),Ve={class:"bottom"},Xe={key:0,class:"link"},qe={class:"link"},Be={class:"link"},Ye=x(()=>_("i",{class:"icon"},[_("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},[_("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)),je={class:"link"},ze={key:1,class:"link"},Fe={key:2,class:"link"},Je={key:3,class:"link"};function Pe(e,o,r,l,u,h){const d=f("logo-tiny"),a=f("font-awesome-icon"),i=f("el-button"),c=f("el-tooltip"),b=f("help-entry"),$=f("dark-selector"),k=f("locale-selector");return m(),E("div",{direction:e.direction,class:"navigator"},[_("div",De,[e.direction==="column"?(m(),E("div",He,[t(d,{onClick:e.onHome},null,8,["onClick"])])):T("v-if",!0),(m(!0),E(me,null,pe(e.links,(n,g)=>(m(),E("div",{key:g,class:K({link:!0,active:n.routes.includes(e.$route.name)})},[e.direction==="column"?(m(),I(c,{key:0,effect:"dark",content:n.displayName,placement:"right"},{default:s(()=>[t(i,{class:K({button:!0,active:n.routes.includes(e.$route.name)}),onClick:p=>e.$router.push(n.route)},{default:s(()=>[t(a,{icon:n.icon},null,8,["icon"])]),_:2},1032,["class","onClick"])]),_:2},1032,["content"])):(m(),E("div",{key:1,class:"cursor-pointer",onClick:p=>e.$router.push(n.route)},[t(a,{icon:n.icon},null,8,["icon"]),_("p",Ae,S(n.displayName),1)],8,Le))],2))),128))]),Me,_("div",Ve,[e.showSupport?(m(),E("div",Xe,[t(b,null,{main:s(()=>[t(i,{class:"button"},{default:s(()=>[t(a,{icon:"fa-solid fa-question"})]),_:1})]),_:1})])):T("v-if",!0),_("div",qe,[t(c,{effect:"dark",content:e.$t("common.nav.darkMode"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:o[0]||(o[0]=n=>e.operating.dark=!0)},{default:s(()=>[t(a,{icon:"fa-solid fa-moon"})]),_:1})]),_:1},8,["content"]),t($,{visible:e.operating.dark,onClose:o[1]||(o[1]=n=>e.operating.dark=!1)},null,8,["visible"])]),_("div",Be,[t(c,{effect:"dark",content:e.$t("common.nav.locale"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:o[2]||(o[2]=n=>e.operating.locale=!0)},{default:s(()=>[Ye]),_:1})]),_:1},8,["content"]),t(k,{visible:e.operating.locale,onClose:o[3]||(o[3]=n=>e.operating.locale=!1)},null,8,["visible"])]),_("div",je,[t(c,{effect:"dark",content:e.$t("common.nav.console"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onConsole},{default:s(()=>[t(a,{icon:"fa-solid fa-compass"})]),_:1},8,["onClick"])]),_:1},8,["content"])]),e.showSite?(m(),E("div",ze,[t(c,{effect:"dark",content:e.$t("common.nav.site"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onSite},{default:s(()=>[t(a,{icon:"fa-solid fa-gear"})]),_:1},8,["onClick"])]),_:1},8,["content"])])):T("v-if",!0),e.showDistribution?(m(),E("div",Fe,[t(c,{effect:"dark",content:e.$t("common.nav.distribution"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onDistribution},{default:s(()=>[t(a,{icon:"fa-solid fa-coins"})]),_:1},8,["onClick"])]),_:1},8,["content"])])):T("v-if",!0),e.authenticated?(m(),E("div",Je,[t(c,{effect:"dark",content:e.$t("common.nav.logOut"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onLogout},{default:s(()=>[t(a,{icon:"fa-solid fa-arrow-right-from-bracket"})]),_:1},8,["onClick"])]),_:1},8,["content"])])):T("v-if",!0)])],8,Ue)}var et=U(Se,[["render",Pe],["__scopeId","data-v-a43dbcba"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Navigator.vue"]]);export{et as N};
|
|
1
|
+
import{D as ee}from"./vendor-others.de6317ed.js";import{an as G}from"./vendor-fortawesome.1cce8f50.js";import{D as te,L as oe}from"./DarkSelector.7591d459.js";import{_ as U,h as Z,j as Y,k as se,l as j,m as z,n as ne,o as F,p as ae,q as J,r as ie,t as P,u as re,v as Q,R as le,w as ce,b as ue}from"./index.51b4aed7.js";import{H as D,o as m,e as E,al as f,L as I,M as s,I as de,V as t,T as W,U as S,S as T,f as _,W as me,ai as pe,Q as K,aK as fe,aL as _e}from"./vendor-@vue.34786d41.js";import{s as he,t as ve,j as $e,k as ke,l as ge,u as Ee}from"./vendor-element-plus.efc1b383.js";const be=D({emits:["click"],computed:{dark(){return ee("THEME")==="dark"},url(){var e;return(e=this.$store.state.site)==null?void 0:e.favicon}}}),Ne=["src"];function ye(e,o,r,l,u,h){return m(),E("img",{src:e.url,class:"logo tiny",onClick:o[0]||(o[0]=d=>e.$emit("click"))},null,8,Ne)}var Te=U(be,[["render",ye],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LogoTiny.vue"]]);const Ce=D({name:"HelpEntry",components:{ElImage:he,ElPopover:ve,ElMenu:$e,ElMenuItem:ke,FontAwesomeIcon:G},computed:{site(){return this.$store.state.site}},methods:{onJoin(){var e,o,r,l;window.open((l=(r=(o=(e=this.$store.state.site)==null?void 0:e.features)==null?void 0:o.support)==null?void 0:r.discord)==null?void 0:l.url,"_blank")},onProfit(){this.$router.push({name:Z})}}}),Oe={class:"flex"},Re={class:"flex-1 text-center"};function we(e,o,r,l,u,h){const d=f("font-awesome-icon"),a=f("el-menu-item"),i=f("el-image"),c=f("el-popover"),b=f("el-menu");return m(),I(c,{placement:"bottom",width:200,trigger:"hover","popper-style":{padding:"10px"}},{reference:s(()=>[de(e.$slots,"main",{},void 0,!0)]),default:s(()=>[t(b,{collapse:!1,class:"menu"},{default:s(()=>{var $,k,n,g;return[t(c,{width:350,trigger:"hover"},{reference:s(()=>{var p,v,N,y,C,O,R,w;return[((y=(N=(v=(p=e.site)==null?void 0:p.features)==null?void 0:v.support)==null?void 0:N.wechat)==null?void 0:y.enabled)&&((w=(R=(O=(C=e.site)==null?void 0:C.features)==null?void 0:O.support)==null?void 0:R.wechat)==null?void 0:w.qr)?(m(),I(a,{key:0,index:"1"},{title:s(()=>[W(S(e.$t("common.message.addWeChat")),1)]),default:s(()=>[t(d,{icon:"fa-brands fa-weixin",class:"mr-2"})]),_:1})):T("v-if",!0)]}),default:s(()=>{var p,v,N,y;return[_("div",Oe,[_("div",Re,[t(i,{src:(y=(N=(v=(p=e.site)==null?void 0:p.features)==null?void 0:v.support)==null?void 0:N.wechat)==null?void 0:y.qr},null,8,["src"])])])]}),_:1}),(g=(n=(k=($=e.site)==null?void 0:$.features)==null?void 0:k.support)==null?void 0:n.discord)!=null&&g.enabled?(m(),I(a,{key:0,index:"2",onClick:e.onJoin},{title:s(()=>[W(S(e.$t("common.message.joinDiscord")),1)]),default:s(()=>[t(d,{icon:"fa-brands fa-discord",class:"mr-2"})]),_:1},8,["onClick"])):T("v-if",!0)]}),_:1})]),_:3})}var Ie=U(Ce,[["render",we],["__scopeId","data-v-a4fb3806"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/HelpEntry.vue"]]);const Se=D({name:"Navigator",components:{ElButton:ge,HelpEntry:Ie,LogoTiny:Te,DarkSelector:te,ElTooltip:Ee,LocaleSelector:oe,FontAwesomeIcon:G},props:{direction:{type:String,default:"column"}},data(){return{operating:{dark:!1,locale:!1},activeIndex:this.$route.name}},computed:{links(){var o,r,l,u,h,d,a,i,c,b,$,k,n,g,p,v,N,y,C,O,R,w,H,L,A,M,V,X,q,B;const e=[];return(h=(u=(l=(r=(o=this.$store)==null?void 0:o.state)==null?void 0:r.site)==null?void 0:l.features)==null?void 0:u.chat)!=null&&h.enabled&&e.push({route:{name:Y},displayName:this.$t("common.nav.chat"),icon:"fa-regular fa-comment",routes:[se,Y]}),(b=(c=(i=(a=(d=this.$store)==null?void 0:d.state)==null?void 0:a.site)==null?void 0:i.features)==null?void 0:c.midjourney)!=null&&b.enabled&&e.push({route:{name:j},displayName:this.$t("common.nav.midjourney"),icon:"fa-solid fa-palette",routes:[j]}),(p=(g=(n=(k=($=this.$store)==null?void 0:$.state)==null?void 0:k.site)==null?void 0:n.features)==null?void 0:g.qrart)!=null&&p.enabled&&e.push({route:{name:z},displayName:this.$t("common.nav.qrart"),icon:"fa-solid fa-qrcode",routes:[z,ne]}),(O=(C=(y=(N=(v=this.$store)==null?void 0:v.state)==null?void 0:N.site)==null?void 0:y.features)==null?void 0:C.suno)!=null&&O.enabled&&e.push({route:{name:F},displayName:this.$t("common.nav.suno"),icon:"fa-solid fa-music",routes:[F,ae]}),(A=(L=(H=(w=(R=this.$store)==null?void 0:R.state)==null?void 0:w.site)==null?void 0:H.features)==null?void 0:L.luma)!=null&&A.enabled&&e.push({route:{name:J},displayName:this.$t("common.nav.luma"),icon:"fa-solid fa-film",routes:[J,ie]}),(B=(q=(X=(V=(M=this.$store)==null?void 0:M.state)==null?void 0:V.site)==null?void 0:X.features)==null?void 0:q.headshots)!=null&&B.enabled&&e.push({route:{name:P},displayName:this.$t("common.nav.headshots"),icon:"fa-solid fa-id-card",routes:[P,re]}),this.direction==="row"&&e.push({route:{name:Q},displayName:this.$t("common.nav.profile"),icon:"fa-solid fa-user",routes:[Q]}),e},authenticated(){return!!this.$store.state.token.access},showSite(){var e,o,r,l,u;return(u=(r=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:r.admins)==null?void 0:u.includes((l=this.$store.getters.user)==null?void 0:l.id)},showSupport(){var e,o,r,l,u,h,d,a,i,c,b,$,k,n,g,p,v;return((u=(l=(r=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:r.features)==null?void 0:l.support)==null?void 0:u.enabled)&&(((b=(c=(i=(a=(d=(h=this.$store)==null?void 0:h.state)==null?void 0:d.site)==null?void 0:a.features)==null?void 0:i.support)==null?void 0:c.discord)==null?void 0:b.enabled)||((v=(p=(g=(n=(k=($=this.$store)==null?void 0:$.state)==null?void 0:k.site)==null?void 0:n.features)==null?void 0:g.support)==null?void 0:p.wechat)==null?void 0:v.enabled))},showDistribution(){var e,o,r,l,u,h,d,a,i;return!((l=(r=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:r.distribution)!=null&&l.force_inviter_id)||((u=this.$store.getters.user)==null?void 0:u.id)===((i=(a=(d=(h=this.$store)==null?void 0:h.state)==null?void 0:d.site)==null?void 0:a.distribution)==null?void 0:i.force_inviter_id)}},methods:{onHome(){this.$router.push({name:le})},onSite(){this.$router.push({name:ce})},onDistribution(){this.$router.push({name:Z})},async onLogout(){await this.$store.dispatch("logout")},onConsole(){this.$router.push({name:ue})}}}),x=e=>(fe("data-v-a43dbcba"),e=e(),_e(),e),Ue=["direction"],De={class:"top"},He={key:0},Le=["onClick"],Ae={class:"description"},Me=x(()=>_("div",{class:"middle"},null,-1)),Ve={class:"bottom"},Xe={key:0,class:"link"},qe={class:"link"},Be={class:"link"},Ye=x(()=>_("i",{class:"icon"},[_("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},[_("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)),je={class:"link"},ze={key:1,class:"link"},Fe={key:2,class:"link"},Je={key:3,class:"link"};function Pe(e,o,r,l,u,h){const d=f("logo-tiny"),a=f("font-awesome-icon"),i=f("el-button"),c=f("el-tooltip"),b=f("help-entry"),$=f("dark-selector"),k=f("locale-selector");return m(),E("div",{direction:e.direction,class:"navigator"},[_("div",De,[e.direction==="column"?(m(),E("div",He,[t(d,{onClick:e.onHome},null,8,["onClick"])])):T("v-if",!0),(m(!0),E(me,null,pe(e.links,(n,g)=>(m(),E("div",{key:g,class:K({link:!0,active:n.routes.includes(e.$route.name)})},[e.direction==="column"?(m(),I(c,{key:0,effect:"dark",content:n.displayName,placement:"right"},{default:s(()=>[t(i,{class:K({button:!0,active:n.routes.includes(e.$route.name)}),onClick:p=>e.$router.push(n.route)},{default:s(()=>[t(a,{icon:n.icon},null,8,["icon"])]),_:2},1032,["class","onClick"])]),_:2},1032,["content"])):(m(),E("div",{key:1,class:"cursor-pointer",onClick:p=>e.$router.push(n.route)},[t(a,{icon:n.icon},null,8,["icon"]),_("p",Ae,S(n.displayName),1)],8,Le))],2))),128))]),Me,_("div",Ve,[e.showSupport?(m(),E("div",Xe,[t(b,null,{main:s(()=>[t(i,{class:"button"},{default:s(()=>[t(a,{icon:"fa-solid fa-question"})]),_:1})]),_:1})])):T("v-if",!0),_("div",qe,[t(c,{effect:"dark",content:e.$t("common.nav.darkMode"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:o[0]||(o[0]=n=>e.operating.dark=!0)},{default:s(()=>[t(a,{icon:"fa-solid fa-moon"})]),_:1})]),_:1},8,["content"]),t($,{visible:e.operating.dark,onClose:o[1]||(o[1]=n=>e.operating.dark=!1)},null,8,["visible"])]),_("div",Be,[t(c,{effect:"dark",content:e.$t("common.nav.locale"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:o[2]||(o[2]=n=>e.operating.locale=!0)},{default:s(()=>[Ye]),_:1})]),_:1},8,["content"]),t(k,{visible:e.operating.locale,onClose:o[3]||(o[3]=n=>e.operating.locale=!1)},null,8,["visible"])]),_("div",je,[t(c,{effect:"dark",content:e.$t("common.nav.console"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onConsole},{default:s(()=>[t(a,{icon:"fa-solid fa-compass"})]),_:1},8,["onClick"])]),_:1},8,["content"])]),e.showSite?(m(),E("div",ze,[t(c,{effect:"dark",content:e.$t("common.nav.site"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onSite},{default:s(()=>[t(a,{icon:"fa-solid fa-gear"})]),_:1},8,["onClick"])]),_:1},8,["content"])])):T("v-if",!0),e.showDistribution?(m(),E("div",Fe,[t(c,{effect:"dark",content:e.$t("common.nav.distribution"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onDistribution},{default:s(()=>[t(a,{icon:"fa-solid fa-coins"})]),_:1},8,["onClick"])]),_:1},8,["content"])])):T("v-if",!0),e.authenticated?(m(),E("div",Je,[t(c,{effect:"dark",content:e.$t("common.nav.logOut"),placement:"right"},{default:s(()=>[t(i,{class:"button",onClick:e.onLogout},{default:s(()=>[t(a,{icon:"fa-solid fa-arrow-right-from-bracket"})]),_:1},8,["onClick"])]),_:1},8,["content"])])):T("v-if",!0)])],8,Ue)}var et=U(Se,[["render",Pe],["__scopeId","data-v-a43dbcba"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Navigator.vue"]]);export{et as N};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{_ as n}from"./index.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{_ as n}from"./index.51b4aed7.js";import{B as o}from"./vendor-element-plus.efc1b383.js";import{H as t,al as r,o as i,L as s}from"./vendor-@vue.34786d41.js";const p=t({name:"Pagination",components:{ElPagination:o},props:{total:{type:Number,required:!1,default:void 0},currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0}},emits:["change"],data(){return{loaded:!1}},mounted(){setTimeout(()=>{this.loaded=!0},1e3)},methods:{onPageChange(e){!this.loaded||this.$emit("change",e)}}});function u(e,g,m,l,c,d){const a=r("el-pagination");return i(),s(a,{class:"mt-3 mb-3",background:"","hide-on-single-page":!1,layout:"prev, pager, next","current-page":e.currentPage,total:e.total,"page-size":e.pageSize,onCurrentChange:e.onPageChange},null,8,["current-page","total","page-size","onCurrentChange"])}var v=n(p,[["render",u],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Pagination.vue"]]);export{v as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.de6317ed.js";import{L as o}from"./Chatdoc.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{L as o}from"./Chatdoc.44d48efa.js";import{_ as e}from"./index.51b4aed7.js";import{H as r,al as n,L as a,M as s,o as c,T as i}from"./vendor-@vue.34786d41.js";import"./vendor-element-plus.efc1b383.js";import"./vendor-fortawesome.1cce8f50.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const m=r({name:"ChatdocSetting",components:{Layout:o},data(){return{}},async mounted(){},methods:{}}),p=i(" Setting ");function _(d,u,f,l,h,x){const t=n("layout");return c(),a(t,null,{chatdoc:s(()=>[p]),_:1})}var N=e(m,[["render",_],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Setting.vue"]]);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var z=Object.defineProperty;var j=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>(j(e,typeof t!="symbol"?t+"":t,n),n);import"./vendor-others.de6317ed.js";import{x as E,K as F,_ as R,I as Q,z as G,B as H}from"./index.
|
|
1
|
+
var z=Object.defineProperty;var j=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var L=(e,t,n)=>(j(e,typeof t!="symbol"?t+"":t,n),n);import"./vendor-others.de6317ed.js";import{x as E,K as F,_ as R,I as Q,z as G,B as H}from"./index.51b4aed7.js";import{E as q,G as K,H as W,D as X,Q as Y,l as A,M as O,y as J,A as Z,C as x,R as ee}from"./vendor-element-plus.efc1b383.js";import{H as w,al as s,o as a,L as k,M as r,f as c,V as o,T as b,U as i,e as d,W as te,ai as ie,S as h}from"./vendor-@vue.34786d41.js";const ne="duplication",Pe="api_error",Se="bad_request",Be="used_up",Ue="unknown",Ie="canceled",Ve="timeout",Me="content_too_large",Le="too_many_requests",qe="not_applied";class se{constructor(){L(this,"key","credentials")}async getAll(t){return await E.get(`/${this.key}/`,{params:t})}async get(t){return await E.get(`/${this.key}/${t}`)}async create(t){return await E.post(`/${this.key}/`,t)}async delete(t){return await E.delete(`/${this.key}/${t}`)}}const oe=new se;const ae=w({name:"ApplicationConfirm",components:{ElDialog:q,ElDescriptions:K,ElDescriptionsItem:W,ElDivider:X,ElCheckbox:Y,ElButton:A},props:{service:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible","apply"],data(){return{checked:!0}},watch:{},methods:{getBaseUrlPlatform:F,onApply(){if(!this.checked){O.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),le={class:"content"},re={class:"policy"},pe={class:"policy-title"},ce=["href"];function de(e,t,n,u,m,D){const _=s("el-descriptions-item"),v=s("el-descriptions"),f=s("el-divider"),$=s("el-checkbox"),p=s("el-button"),y=s("el-dialog");return a(),k(y,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:t[1]||(t[1]=l=>e.$emit("update:visible",!1))},{default:r(()=>[c("div",le,[o(v,{column:1},{default:r(()=>[o(_,{label:e.$t("application.field.name")},{default:r(()=>{var l;return[b(i((l=e.service)==null?void 0:l.title),1)]}),_:1},8,["label"]),o(_,{label:e.$t("application.field.freeAmount")},{default:r(()=>{var l,g;return[c("span",null,i((l=e.service)==null?void 0:l.free_amount)+" "+i(e.$t(`service.unit.${(g=e.service)==null?void 0:g.unit}`)),1)]}),_:1},8,["label"])]),_:1}),o(f,{class:"my-2"}),c("div",re,[o($,{modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=l=>e.checked=l),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),c("span",pe,i(e.$t("application.message.readPolicy")),1),c("a",{class:"policy-title highlight",target:"_blank",href:e.getBaseUrlPlatform()+"/terms"}," \xA0"+i(e.$t("application.message.policy")),9,ce)]),o(p,{round:"",type:"primary",onClick:e.onApply},{default:r(()=>[b(i(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var ue=R(ae,[["render",de],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const me=w({name:"ApiPrice",components:{ElTable:J,ElTableColumn:Z,ElDialog:q,ElButton:A},props:{price:{type:Object,required:!0}},data(){return{visible:!1}},computed:{data(){var e;return((e=this.price)==null?void 0:e.data)||[]},columns(){var e;return(e=this.price)==null?void 0:e.columns},spans(){var e;return(e=this.price)==null?void 0:e.spans}},methods:{cellStyle(){return{"font-weight":"bold","text-align":"center"}},spanMethod({row:e,column:t,rowIndex:n,columnIndex:u}){if(this.spans){for(const m of this.spans)if(n===m[0]&&u===m[1])return[m[2],m[3]]}return[1,1]}}});function _e(e,t,n,u,m,D){const _=s("el-table-column"),v=s("el-table"),f=s("el-dialog"),$=s("el-button");return a(),d("div",null,[o(f,{modelValue:e.visible,"onUpdate:modelValue":t[0]||(t[0]=p=>e.visible=p),center:"",width:"80%"},{default:r(()=>[o(v,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:r(()=>[(a(!0),d(te,null,ie(e.columns,(p,y)=>(a(),k(_,{key:y,prop:p.key,label:p.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),o($,{round:"",size:"small",onClick:t[1]||(t[1]=p=>e.visible=!0)},{default:r(()=>[b(i(e.$t("service.button.pricing")),1)]),_:1})])}var fe=R(me,[["render",_e],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const ye=w({name:"ApplicationStatus",components:{ElButton:A,ApplicationConfirm:ue,ElSkeleton:x,ElSkeletonItem:ee,ApiPrice:fe},props:{application:{type:Object,required:!0},initializing:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},service:{type:Object,required:!0},needApply:{type:Boolean,default:!1}},emits:["apply","refresh","applied","update:application"],data(){return{confirming:this.needApply,applicationType:Q}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},mounted(){var e,t;this.application&&!((t=(e=this.application)==null?void 0:e.credentials)!=null&&t.find(n=>n.host===window.location.origin))&&(console.debug("create extra credential"),this.onCreateCredential(this.application))},methods:{onBuyMore(e){this.$router.push({name:G,params:{id:e.id}})},onCreateCredential(e){oe.create({application_id:e==null?void 0:e.id,host:window.location.origin}).then(()=>{setTimeout(()=>{this.$emit("refresh")},2e3),this.confirming=!1}).finally(()=>{this.$emit("applied")})},onApply(){var e;H.create({service_id:(e=this.service)==null?void 0:e.id}).then(({data:t})=>{O.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(t)}).catch(t=>{var n,u;((u=(n=t==null?void 0:t.response)==null?void 0:n.data)==null?void 0:u.code)===ne&&O.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),he={class:"element"},ve={key:0},$e={key:1,class:"status"},ge={key:0,class:"info"},be={key:1,class:"info"},Ee={class:"actions"},ke={key:2,class:"text-center info"},Ce={class:"mr-2"},Oe={class:"ml-1"};function Re(e,t,n,u,m,D){var y,l,g,N,T,P,S,B,U,I,V,M;const _=s("el-skeleton-item"),v=s("el-skeleton"),f=s("el-button"),$=s("api-price"),p=s("application-confirm");return a(),d("div",he,[e.initializing&&e.application===void 0?(a(),d("div",ve,[o(v,{rows:1,class:"text-center"},{template:r(()=>[o(_,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(a(),d("div",$e,[e.application.type==="Period"?(a(),d("span",ge,i(e.$t("common.message.expiredAt"))+": "+i(e.$dayjs.format(e.application.expired_at)),1)):h("v-if",!0),e.application.type==="Usage"?(a(),d("span",be,i(e.$t("common.message.remainingAmount"))+": "+i((l=(y=e.application)==null?void 0:y.remaining_amount)==null?void 0:l.toFixed(6))+" "+i(e.$t("service.unit."+((N=(g=e.application)==null?void 0:g.service)==null?void 0:N.unit)+"s")),1)):h("v-if",!0),c("span",Ee,[o(f,{round:"",size:"small",type:"primary",class:"mr-1",onClick:t[0]||(t[0]=C=>e.onBuyMore(e.application))},{default:r(()=>[b(i(e.$t("common.button.buyMore")),1)]),_:1}),e.showPrice&&((B=(S=(P=(T=e.application)==null?void 0:T.service)==null?void 0:P.apis)==null?void 0:S[0])==null?void 0:B.price)?(a(),k($,{key:0,class:"price inline-block",price:(M=(V=(I=(U=e.application)==null?void 0:U.service)==null?void 0:I.apis)==null?void 0:V[0])==null?void 0:M.price},null,8,["price"])):h("v-if",!0)])])):h("v-if",!0),e.needApply&&e.service?(a(),d("div",ke,[c("span",Ce,i(e.$t("chat.message.notApplied")),1),c("span",null,[o(f,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:t[1]||(t[1]=C=>e.confirming=!0)},{default:r(()=>[b(i(e.$t("common.button.apply")),1)]),_:1})]),c("span",Oe,i(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(a(),k(p,{key:0,modelValue:e.confirming,"onUpdate:modelValue":t[2]||(t[2]=C=>e.confirming=C),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):h("v-if",!0)])):h("v-if",!0)])}var ze=R(ye,[["render",Re],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{ze as A,Ue as E,Ie as a,qe as b,Me as c,Le as d,Ve as e,Se as f,Pe as g,Be as h,ne as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{x as r}from"./index.
|
|
1
|
+
var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{x as r}from"./index.51b4aed7.js";class o{constructor(){e(this,"key","distribution-histories")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const b=new o;class l{constructor(){e(this,"key","distribution-statuses")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}async initialize(){return await r.post(`/${this.key}/initialize/`)}}const h=new l;class c{constructor(){e(this,"key","distribution-levels")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const k=new c;class u{constructor(){e(this,"key","shorturl")}async create(t){return await r.post(`/${this.key}`,{content:t})}}const w=new u;export{k as a,b,h as d,w as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"title.chat":{message:"AI \u041F\u0438\u0442\u0430\u045A\u0430 \u0438 \u041E\u0434\u0433\u043E\u0432\u043E\u0440\u0438",description:"AI \u041F\u0438\u0442\u0430\u045A\u0430 \u0438 \u041E\u0434\u0433\u043E\u0432\u043E\u0440\u0438 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.midjourney":{message:"AI \u041A\u0440\u0435\u0438\u0440\u0430\u045A\u0435 \u0421\u043B\u0438\u043A\u0430",description:"AI \u041A\u0440\u0435\u0438\u0440\u0430\u045A\u0435 \u0421\u043B\u0438\u043A\u0430 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.qrart":{message:"AI \u0423\u043C\u0435\u0442\u043D\u0438\u0447\u043A\u0438 QR \u043A\u043E\u0434",description:"AI \u0423\u043C\u0435\u0442\u043D\u0438\u0447\u043A\u0438 QR \u043A\u043E\u0434 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.suno":{message:"AI \u041C\u0443\u0437\u0438\u043A\u0430",description:"AI \u041C\u0443\u0437\u0438\u043A\u0430 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.luma":{message:"AI \u0412\u0438\u0434\u0435\u043E",description:"AI \u0412\u0438\u0434\u0435\u043E \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.headshots":{message:"AI \u041F\u043E\u0440\u0442\u0440\u0435\u0442\u0438",description:"AI \u041F\u043E\u0440\u0442\u0440\u0435\u0442\u0438 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.comments":{message:"\u041A\u043E\u043C\u0435\u043D\u0442\u0430\u0440\u0438 \u041A\u043B\u0438\u0458\u0435\u043D\u0430\u0442\u0430",description:"\u041A\u043E\u043C\u0435\u043D\u0442\u0430\u0440\u0438 \u041A\u043B\u0438\u0458\u0435\u043D\u0430\u0442\u0430 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"title.introduction":{message:"\u041D\u0430\u0448\u0430 \u0423\u0441\u043B\u0443\u0433\u0430",description:"\u0423\u0432\u043E\u0434 \u0443 \u0441\u0430\u0458\u0442"},"subtitle.banner":{message:"AI \u041E\u043C\u043E\u0433\u0443\u045B\u0430\u0432\u0430, \u043F\u043E\u0442\u043F\u0443\u043D\u043E \u043F\u043E\u0431\u043E\u0459\u0448\u0430\u0432\u0430 \u0432\u0430\u0448\u0443 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442.",description:"\u041F\u043E\u0434\u043D\u0430\u0441\u043B\u043E\u0432 \u0441\u0430\u0458\u0442\u0430"},"subtitle.chat":{message:"\u041F\u043E\u0434\u0440\u0436\u0430\u0432\u0430 \u0432\u0438\u0448\u0435 \u043C\u043E\u0434\u0435\u043B\u0430 \u043F\u0438\u0442\u0430\u045A\u0430 \u0438 \u043E\u0434\u0433\u043E\u0432\u043E\u0440\u0430, \u0441\u0430 \u043C\u043E\u0433\u0443\u045B\u043D\u043E\u0448\u045B\u0443 \u043F\u043E\u0432\u0435\u0437\u0438\u0432\u0430\u045A\u0430 \u043D\u0430 \u0438\u043D\u0442\u0435\u0440\u043D\u0435\u0442, \u0441\u043F\u043E\u0441\u043E\u0431\u0430\u043D \u0434\u0430 \u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430 \u0441\u043B\u0438\u043A\u0435, \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442e \u0438 \u0432\u0438\u0434\u0435\u043E \u0441\u0430\u0434\u0440\u0436\u0430\u0458\u0435.",description:"AI \u041F\u0438\u0442\u0430\u045A\u0430 \u0438 \u041E\u0434\u0433\u043E\u0432\u043E\u0440\u0438 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"subtitle.midjourney":{message:"\u041F\u043E\u0432\u0435\u0436\u0435 \u0441\u0430 \u043D\u0430\u0458\u043D\u043E\u0432\u0438\u0458\u0438\u043C Midjourney \u043C\u043E\u0434\u0435\u043B\u043E\u043C, \u0458\u0435\u0434\u0430\u043D \u043A\u043B\u0438\u043A \u0437\u0430 \u0433\u0435\u043D\u0435\u0440\u0438\u0441\u0430\u045A\u0435 \u0441\u043B\u0438\u043A\u0430 \u0443 \u0440\u0430\u0437\u043B\u0438\u0447\u0438\u0442\u0438\u043C \u0441\u0442\u0438\u043B\u043E\u0432\u0438\u043C\u0430 \u0438 \u043A\u043E\u043D\u0442\u0438\u043D\u0443\u0438\u0440\u0430\u043D\u043E \u043F\u043E\u0434\u0435\u0448\u0430\u0432\u0430\u045A\u0435.",description:"AI \u041A\u0440\u0435\u0438\u0440\u0430\u045A\u0435 \u0421\u043B\u0438\u043A\u0430 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"subtitle.qrart":{message:"\u041F\u043E\u0434\u0440\u0436\u0430\u0432\u0430 \u0440\u0430\u0437\u043B\u0438\u0447\u0438\u0442\u0435 \u0441\u0442\u0438\u043B\u043E\u0432\u0435 \u0443\u043C\u0435\u0442\u043D\u0438\u0447\u043A\u0438\u0445 QR \u043A\u043E\u0434\u043E\u0432\u0430, \u043E\u043C\u043E\u0433\u0443\u045B\u0430\u0432\u0430 \u0443\u0447\u0438\u0442\u0430\u0432\u0430\u045A\u0435 \u043F\u043E\u0441\u0442\u043E\u0458\u0435\u045B\u0438\u0445 QR \u043A\u043E\u0434\u043E\u0432\u0430, \u043B\u0430\u043A\u043E \u0438\u0445 \u0443\u043C\u0435\u0442\u043D\u0438\u0447\u043A\u0438 \u043E\u0431\u0440\u0430\u0434\u0438\u0442\u0438 \u0438 \u0441\u0442\u0432\u043E\u0440\u0438\u0442\u0438 \u0458\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u0435 \u0432\u0438\u0437\u0443\u0435\u043B\u043D\u0435 \u0435\u0444\u0435\u043A\u0442\u0435.",description:"AI \u0423\u043C\u0435\u0442\u043D\u0438\u0447\u043A\u0438 QR \u043A\u043E\u0434 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"subtitle.suno":{message:"\u041F\u043E\u0434\u0440\u0436\u0430\u0432\u0430 \u0440\u0430\u0437\u043B\u0438\u0447ite \u0441\u0442\u0438\u043B\u043E\u0432\u0435 \u043C\u0443\u0437\u0438\u043A\u0435, \u043B\u0430\u043A\u043E \u0433\u0435\u043D\u0435\u0440\u0438\u0448\u0435 \u043C\u0443\u0437\u0438\u043A\u0443 \u043F\u043E \u0432\u0430\u0448oj \u0436\u0435\u0459\u0438 \u0438 \u043F\u043E\u0434\u0440\u0436\u0430\u0432\u0430 \u0444\u043B\u0435\u043A\u0441\u0438\u0431\u0438\u043B\u043D\u0435 \u043E\u043F\u0446\u0438\u0458\u0435 \u043F\u0440\u043E\u0448\u0438\u0440\u0435\u045A\u0430 \u0434\u0443\u0436\u0438\u043D\u0435.",description:"AI \u041C\u0443\u0437\u0438\u043A\u0430 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"subtitle.luma":{message:"\u041F\u043E\u0432\u0435\u0436\u0435 \u0441\u0430 \u043D\u0430\u0458\u043D\u043E\u0432\u0438\u0458\u0438\u043C Luma \u043C\u043E\u0434\u0435\u043B\u043E\u043C, \u0458\u0435\u0434\u0430\u043D \u043A\u043B\u0438\u043A \u0437\u0430 \u0433\u0435\u043D\u0435\u0440\u0438\u0441\u0430\u045A\u0435 \u043F\u0440\u0438\u043B\u0430\u0433\u043E\u0452\u0435\u043D\u0438\u0445 \u0432\u0438\u0434\u0435\u0430 \u0438 \u043F\u043E\u0434\u0440\u0436\u0430\u0432\u0430 \u0444\u043B\u0435\u043A\u0441\u0438\u0431\u0438\u043B\u043D\u0435 \u043E\u043F\u0446\u0438\u0458\u0435 \u043F\u0440\u043E\u0448\u0438\u0440\u0435\u045A\u0430 \u0432\u0438\u0434\u0435\u043E \u0441\u0430\u0434\u0440\u0436\u0430\u0458\u0430.",description:"AI \u0412\u0438\u0434\u0435\u043E \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"subtitle.comments":{message:"\u0414\u0440\u0430\u0433\u043E \u043D\u0430\u043C \u0458\u0435 \u0448\u0442\u043E \u0441\u043C\u043E \u043C\u043E\u0433\u043B\u0438 \u0434\u0430 \u043F\u043E\u043C\u043E\u0433\u043D\u0435\u043C\u043E \u0442\u0438\u043C \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0438\u043C\u0430 \u043A\u043E\u0458\u0438 \u0441\u0443 \u043D\u0430\u043C \u0434\u0430\u043B\u0438 \u0432\u0438\u0441\u043E\u043A\u0435 \u043E\u0446\u0435\u043D\u0435 \u0437\u0430 \u043D\u0430\u0448\u0435 \u0443\u0441\u043B\u0443\u0433\u0435.",description:"\u041A\u043E\u043C\u0435\u043D\u0442\u0430\u0440\u0438 \u041A\u043B\u0438\u0458\u0435\u043D\u0430\u0442\u0430 \u043F\u043E\u0433\u043B\u0430\u0432\u0459\u0435 \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435"},"subtitle.introduction":{message:"\u041F\u0440\u0443\u0436\u0430\u043C\u043E \u0441\u0432\u0435\u043E\u0431\u0443\u0445\u0432\u0430\u0442\u043D\u0435 AI \u0443\u0441\u043B\u0443\u0433\u0435, \u0443\u043A\u0459\u0443\u0447\u0443\u0458\u0443\u045B\u0438 \u043F\u0438\u0442\u0430\u045A\u0430 \u0438 \u043E\u0434\u0433\u043E\u0432\u043E\u0440\u0435, \u0441\u043B\u0438\u043A\u0435, QR \u043A\u043E\u0434\u043E\u0432\u0435, \u043C\u0443\u0437\u0438\u043A\u0443 \u0438 \u0434\u0440\u0443\u0433\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u0458\u0435, \u0437\u0430\u0434\u043E\u0432\u043E\u0459\u0430\u0432\u0430\u0458\u0443\u045B\u0438 \u0432\u0430\u0448\u0435 \u0440\u0430\u0437\u043D\u043E\u0432\u0440\u0441\u043D\u0435 \u043F\u043E\u0442\u0440\u0435\u0431\u0435.",description:"\u0423\u0432\u043E\u0434 \u0443 \u0441\u0430\u0458\u0442"},"button.try":{message:"\u041F\u043E\u0447\u043D\u0438 \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",description:"\u0422\u0435\u043A\u0441\u0442 \u0443\u043D\u0443\u0442\u0430\u0440 dugmeta"},"button.testEnv":{message:"\u0422\u0435\u0441\u0442\u043D\u0430 \u0441\u0440\u0435\u0434\u0438\u043D\u0430",description:"\u0422\u0430\u0441\u0442\u0435\u0440 \u0437\u0430 \u0442\u0435\u0441\u0442\u043D\u0443 \u0441\u0440\u0435\u0434\u0438\u043D\u0443"},"customers.name1":{message:"\u0424\u0440\u0435\u043D\u043A",description:"\u0418\u043C\u0435 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.job1":{message:"\u0421\u043E\u0444\u0442\u0432\u0435\u0440\u0441\u043A\u0438 \u0438\u043D\u0436\u0435\u045A\u0435\u0440",description:"\u041F\u043E\u0437\u0438\u0446\u0438\u0458\u0430 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.comment1":{message:"\u041E\u0432\u0430 \u0438\u043D\u0442\u0435\u0433\u0440\u0438\u0441\u0430\u043D\u0430 \u0443\u0441\u043B\u0443\u0433\u0430 \u0458\u0435 \u043D\u0435\u0432\u0435\u0440\u043E\u0432\u0430\u0442\u043D\u043E \u0443\u0434\u043E\u0431\u043D\u0430, \u043C\u043E\u0433\u0443 \u0434\u0430 \u043A\u043E\u0440\u0438\u0441\u0442\u0438\u043C \u043C\u043D\u043E\u0433\u0435 AI \u0430\u043B\u0430\u0442\u0435 \u043D\u0430 \u0458\u0435\u0434\u043D\u043E\u0458 \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0438, \u0441\u0458\u0430\u0458\u043D\u043E!",description:"\u041A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.name2":{message:"\u0408\u0430\u043A\u043E\u0431",description:"\u0418\u043C\u0435 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.job2":{message:"\u041F\u0440\u043E\u0458\u0435\u043A\u0442 \u043C\u0435\u043D\u0430\u045F\u0435\u0440",description:"\u041F\u043E\u0437\u0438\u0446\u0438\u0458\u0430 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.comment2":{message:"\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430 \u0458\u0435 \u0432\u0435\u043E\u043C\u0430 \u043A\u043E\u0440\u0438\u0441\u043D\u0430, \u043A\u0432\u0430\u043B\u0438\u0442\u0435\u0442 \u0443\u0441\u043B\u0443\u0433\u0430 \u0458\u0435 \u043E\u0434\u043B\u0438\u0447\u0430\u043D, \u0438 \u0443 \u0432\u0435\u043B\u0438\u043A\u043E\u0458 \u043C\u0435\u0440\u0438 \u043C\u0438 \u0458\u0435 \u043E\u0441\u043B\u043E\u0431\u043E\u0434\u0438\u043B\u0430 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442.",description:"\u041A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.name3":{message:"\u041B\u0430\u0440\u0438",description:"\u0418\u043C\u0435 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.job3":{message:"\u0414\u0438\u0437\u0430\u0439\u043D\u0435\u0440",description:"\u041F\u043E\u0437\u0438\u0446\u0438\u0458\u0430 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"},"customers.comment3":{message:"\u0418\u043C\u0430 \u043F\u0440\u0435\u0432\u0438\u0448\u0435 AI \u043F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0438, \u0430\u043B\u0438 \u043E\u0432\u0430 \u0458\u0435 \u0437\u0430\u0438\u0441\u0442\u0430 \u043B\u0430\u043A\u0430 \u0437\u0430 \u0443\u043F\u043E\u0442\u0440\u0435\u0431\u0443 \u0438 \u0440\u0430\u0437\u0443\u043C\u043D\u0430 \u0446\u0435\u043D\u0430, \u043D\u0430\u0434\u0430\u043C \u0441\u0435 \u0434\u0430 \u045B\u0435 \u043F\u043E\u0441\u0442\u0430\u0442\u0438 \u0458\u043E\u0448 \u0431\u043E\u0459\u0430!",description:"\u041A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u043A\u043B\u0438\u0458\u0435\u043D\u0442\u0430"}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"title.chat":{message:"AI Q&A",description:"AI Q&A section title"},"title.midjourney":{message:"AI Painting",description:"AI Painting section title"},"title.qrart":{message:"AI Art QR Code",description:"AI Art QR Code section title"},"title.suno":{message:"AI Music",description:"AI Music section title"},"title.luma":{message:"AI Video",description:"AI Video section title"},"title.headshots":{message:"AI ID Photo",description:"AI ID Photo section title"},"title.comments":{message:"Customer Reviews",description:"Customer Reviews section title"},"title.introduction":{message:"Our Services",description:"Site introduction"},"subtitle.banner":{message:"AI powered, significantly enhancing your productivity.",description:"Site subtitle"},"subtitle.chat":{message:"Supports multiple Q&A models with online capabilities, recognizing various content such as images, files, and videos.",description:"AI Q&A section subtitle"},"subtitle.midjourney":{message:"Integrates with the latest Midjourney model, generating various styles of images with one click and continuous fine-tuning.",description:"AI Painting section subtitle"},"subtitle.qrart":{message:"Supports various artistic QR code styles, allowing for the upload of existing QR codes to easily create unique artistic effects.",description:"AI Art QR Code section subtitle"},"subtitle.suno":{message:"Supports various music styles, easily generating the music you want, with flexible length expansion options.",description:"AI Music section subtitle"},"subtitle.luma":{message:"Integrates with the latest Luma model, generating custom videos with one click and supporting flexible video expansion options.",description:"AI Video section subtitle"},"subtitle.comments":{message:"We are pleased to assist these customers, who have given high praise for our services.",description:"Customer Reviews section subtitle"},"subtitle.introduction":{message:"We provide a one-stop AI service, including Q&A, painting, QR codes, music, and more to meet your diverse needs.",description:"Site introduction"},"button.try":{message:"Start for Free",description:"Content inside the text"},"button.testEnv":{message:"Test Environment",description:"Test environment button"},"customers.name1":{message:"Frank",description:"Customer's name"},"customers.job1":{message:"Software Engineer",description:"Customer's job title"},"customers.comment1":{message:"This integrated service is incredibly convenient; I can use various AI tools on one platform. It's amazing!",description:"Customer's comment"},"customers.name2":{message:"Jacob",description:"Customer's name"},"customers.job2":{message:"Product Manager",description:"Customer's job title"},"customers.comment2":{message:"The platform is very user-friendly, the service quality is excellent, and it has significantly freed up my productivity.",description:"Customer's comment"},"customers.name3":{message:"Larry",description:"Customer's name"},"customers.job3":{message:"Designer",description:"Customer's job title"},"customers.comment3":{message:"There are so many AI platforms, but this one is truly easy to use and reasonably priced. I hope it can get even better!",description:"Customer's comment"}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={"title.chat":{message:"KI Fragen und Antworten",description:"AI \u95EE\u7B54\u7AE0\u8282\u6807\u9898"},"title.midjourney":{message:"KI Kunst",description:"AI\u7ED8\u753B\u7AE0\u8282\u6807\u9898"},"title.qrart":{message:"KI Kunst QR-Code",description:"AI \u827A\u672F\u4E8C\u7EF4\u7801\u7AE0\u8282\u6807\u9898"},"title.suno":{message:"KI Musik",description:"AI \u97F3\u4E50\u7AE0\u8282\u6807\u9898"},"title.luma":{message:"KI Video",description:"AI \u89C6\u9891\u7AE0\u8282\u6807\u9898"},"title.headshots":{message:"KI Passbilder",description:"AI \u8BC1\u4EF6\u7167\u7AE0\u8282\u6807\u9898"},"title.comments":{message:"Kundenbewertungen",description:"\u5BA2\u6237\u8BC4\u4EF7\u7AE0\u8282\u6807\u9898"},"title.introduction":{message:"Unsere Dienstleistungen",description:"\u7AD9\u70B9\u7B80\u4ECB"},"subtitle.banner":{message:"KI-gest\xFCtzt, um Ihre Produktivit\xE4t umfassend zu steigern.",description:"\u7AD9\u70B9\u526F\u6807\u9898"},"subtitle.chat":{message:"Unterst\xFCtzt verschiedene Frage-Antwort-Modelle, hat Netzwerkfunktionen und kann Bilder, Dateien und Videos erkennen.",description:"AI \u95EE\u7B54\u7AE0\u8282\u6807\u9898"},"subtitle.midjourney":{message:"Anbindung an das neueste Midjourney-Modell, einmaliges Generieren von Bildern in verschiedenen Stilen und kontinuierliche Feinabstimmung.",description:"AI\u7ED8\u753B\u7AE0\u8282\u6807\u9898"},"subtitle.qrart":{message:"Unterst\xFCtzt verschiedene Kunst QR-Code-Stile, erlaubt das Hochladen bestehender QR-Codes und verwandelt sie einfach in Kunstwerke f\xFCr einzigartige visuelle Effekte.",description:"AI \u827A\u672F\u4E8C\u7EF4\u7801\u7AE0\u8282\u6807\u9898"},"subtitle.suno":{message:"Unterst\xFCtzt verschiedene Musikstile, mit einfacher Generierung der gew\xFCnschten Musik und flexiblen L\xE4ngenerweiterungsoptionen.",description:"AI \u97F3\u4E50\u7AE0\u8282\u6807\u9898"},"subtitle.luma":{message:"Anbindung an das neueste Luma-Modell, einmaliges Generieren von benutzerdefinierten Videos und Unterst\xFCtzung flexibler Videoerweiterungsoptionen.",description:"AI \u97F3\u4E50\u7AE0\u8282\u6807\u9898"},"subtitle.comments":{message:"Wir freuen uns, diesen Kunden geholfen zu haben, die unsere Dienstleistungen hoch bewertet haben.",description:"\u5BA2\u6237\u8BC4\u4EF7\u7AE0\u8282\u6807\u9898"},"subtitle.introduction":{message:"Wir bieten einen umfassenden KI-Service, der Funktionen wie Fragen-Antworten, Kunst, QR-Codes, Musik und vieles mehr umfasst und Ihre vielf\xE4ltigen Bed\xFCrfnisse erf\xFCllt.",description:"\u7AD9\u70B9\u7B80\u4ECB"},"button.try":{message:"Kostenlos starten",description:"\u6587\u5B57\u91CC\u9762\u7684\u5185\u5BB9"},"button.testEnv":{message:"Testumgebung",description:"\u6D4B\u8BD5\u73AF\u5883\u6309\u94AE"},"customers.name1":{message:"Frank",description:"\u5BA2\u6237\u7684\u59D3\u540D"},"customers.job1":{message:"Software Engineer",description:"\u5BA2\u6237\u7684\u804C\u4F4D"},"customers.comment1":{message:"Dieser integrierte Service ist einfach fantastisch, ich kann verschiedene KI-Tools auf einer Plattform nutzen, wirklich gro\xDFartig!",description:"\u5BA2\u6237\u7684\u8BC4\u8BBA"},"customers.name2":{message:"Jacob",description:"\u5BA2\u6237\u7684\u59D3\u540D"},"customers.job2":{message:"Produktmanager",description:"\u5BA2\u6237\u7684\u804C\u4F4D"},"customers.comment2":{message:"Die Plattform ist sehr benutzerfreundlich, die Servicequalit\xE4t ist hervorragend und hat meine Produktivit\xE4t enorm gesteigert.",description:"\u5BA2\u6237\u7684\u8BC4\u8BBA"},"customers.name3":{message:"Larry",description:"\u5BA2\u6237\u7684\u59D3\u540D"},"customers.job3":{message:"Designer",description:"\u5BA2\u6237\u7684\u804C\u4F4D"},"customers.comment3":{message:"Es gibt viele KI-Plattformen, aber diese ist wirklich einfach zu bedienen und preiswert. Ich hoffe, sie wird noch besser!",description:"\u5BA2\u6237\u7684\u8BC4\u8BBA"}};export{e as default};
|