@acedatacloud/nexior 2.11.26 → 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.fba00bc9.js → Auth.40a20b94.js} +1 -1
- package/dist/assets/{Buy.cab460dd.js → Buy.1b0648bd.js} +1 -1
- package/dist/assets/{Buy.bf617c6e.js → Buy.eb724672.js} +1 -1
- package/dist/assets/Callback.c1291352.js +1 -0
- package/dist/assets/{Chatdoc.42355bed.js → Chatdoc.44d48efa.js} +1 -1
- package/dist/assets/{Console.f7842665.js → Console.3906a29f.js} +1 -1
- package/dist/assets/{Conversation.966835dc.js → Conversation.2fdf296a.js} +1 -1
- package/dist/assets/{Conversation.5a5a0f85.js → Conversation.9fbadc0e.js} +1 -1
- package/dist/assets/{CopyToClipboard.cb70f6d1.js → CopyToClipboard.c791184c.js} +1 -1
- package/dist/assets/{DarkSelector.c24f69bb.js → DarkSelector.7591d459.js} +1 -1
- package/dist/assets/{Detail.a4d10b8e.js → Detail.b851f6b5.js} +1 -1
- package/dist/assets/{History.710c3b79.js → History.843c06cf.js} +1 -1
- package/dist/assets/{Index.39093804.js → Index.0e5ec606.js} +1 -1
- package/dist/assets/Index.424de694.js +1 -0
- package/dist/assets/{Index.6c2c55c7.js → Index.4448632e.js} +1 -1
- package/dist/assets/{Index.9498266f.js → Index.481b142e.js} +1 -1
- package/dist/assets/{Index.fcd5a7fa.js → Index.56595b28.js} +1 -1
- package/dist/assets/{Index.5f4c052d.js → Index.8e96fcac.js} +1 -1
- package/dist/assets/{Index.8544caed.js → Index.9baa1ca9.js} +1 -1
- package/dist/assets/{Index.6ddc6d6b.js → Index.ae61e3d2.js} +1 -1
- package/dist/assets/{Index.65f5afb0.js → Index.c5619d45.js} +1 -1
- package/dist/assets/{Index.efccde33.js → Index.ccfe3426.js} +1 -1
- package/dist/assets/Index.ee6edbeb.js +3 -0
- package/dist/assets/{InfoIcon.ac0ec619.js → InfoIcon.23e9d3f1.js} +1 -1
- package/dist/assets/{Invitees.ec75effd.js → Invitees.d5f9137c.js} +1 -1
- package/dist/assets/{List.22e3bbc6.js → List.010f1de6.js} +1 -1
- package/dist/assets/{List.dfb1ed0c.js → List.1f0c3249.js} +1 -1
- package/dist/assets/{List.51070687.js → List.cd16db78.js} +1 -1
- package/dist/assets/Login.092bc738.js +1 -0
- package/dist/assets/{Main.c85a1b03.js → Main.e4b68130.js} +1 -1
- package/dist/assets/{Manage.075de898.js → Manage.14283477.js} +1 -1
- package/dist/assets/{MarkdownRenderer.46407948.js → MarkdownRenderer.a8c8a400.js} +1 -1
- package/dist/assets/{Navigator.eb351a66.js → Navigator.1e9e4580.js} +1 -1
- package/dist/assets/{Pagination.60d85127.js → Pagination.2594dfab.js} +1 -1
- package/dist/assets/Setting.29a244f8.js +1 -0
- package/dist/assets/{Status.5405912d.js → Status.a33ad639.js} +1 -1
- package/dist/assets/{distribution.c4190e75.js → distribution.7c7a6d0d.js} +1 -1
- package/dist/assets/index.22fdfd19.js +1 -0
- package/dist/assets/index.2ed211ee.js +1 -0
- package/dist/assets/index.30a27d8d.js +1 -0
- package/dist/assets/index.4459fc2f.js +1 -0
- package/dist/assets/{index.daadea41.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.5673ca62.js → order.13b62dce.js} +1 -1
- package/dist/assets/{price.bb43bde7.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.c6e5b9f4.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/assets/{vendor-@vue.853aef6d.js → vendor-@vue.34786d41.js} +1 -1
- package/dist/assets/{vendor-element-plus.ddf5f024.js → vendor-element-plus.efc1b383.js} +1 -1
- package/dist/assets/{vendor-fortawesome.f1998e53.js → vendor-fortawesome.1cce8f50.js} +1 -1
- package/dist/assets/{vendor-markdown.c803ccc3.js → vendor-markdown.f1450088.js} +1 -1
- package/dist/assets/{vendor-others.4f34a866.js → vendor-others.de6317ed.js} +29 -29
- package/dist/assets/{vendor-qrcode.452c7ca7.js → vendor-qrcode.39cf5eae.js} +1 -1
- package/dist/assets/{vendor-vue-dark-switch.88f0eab0.js → vendor-vue-dark-switch.9acc6f91.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +3 -1
- package/dist/assets/Callback.99d34bf9.js +0 -1
- package/dist/assets/Index.3443451a.js +0 -3
- package/dist/assets/Index.461d0559.js +0 -1
- package/dist/assets/Login.523b728b.js +0 -1
- package/dist/assets/Setting.6305ba57.js +0 -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.c2ae460f.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.b2c3a4bb.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ce=Object.defineProperty,ue=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var q=(e,t,r)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))pe.call(t,r)&&q(e,r,t[r]);if(P)for(var r of P(t))_e.call(t,r)&&q(e,r,t[r]);return e},Z=(e,t)=>ue(e,me(t));import{D as I,C as ee}from"./vendor-others.de6317ed.js";import{g as oe,_ as w,S as he,s as fe,i as ve,R as ke,a as ge,b as we,c as j}from"./index.51b4aed7.js";import{h as Le,C as xe,a as W}from"./vendor-vue-dark-switch.9acc6f91.js";import{H as b,al as a,o as s,L as d,e as E,V as o,M as n,W as Ae,ai as Ee,T as g,U as _,aK as be,aL as Ce,f as h,av as ye,O as p,S as k}from"./vendor-@vue.34786d41.js";import{d as te,e as ne,f as Ie,h as ae,i as re,j as Oe,k as Ve,l as Se,m as Ue,n as se,o as Ne,p as Te,q as $e}from"./vendor-element-plus.efc1b383.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";import"./vendor-fortawesome.1cce8f50.js";var Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAAMFBMVEX///+3t7f4+Pi8vLzAwMDExMTS0tLIyMjk5OTz8/PY2NjOzs7u7u7d3d3p6enh4eFVKkJDAAAIfUlEQVR4nNVd15akOAylyRRQ9f9/O02BZJtgBQszfR/2zPahsJCvguVUFJYop35ux66pq6r6+fn9T910bTv3U2najBXK9zw2PxE07fz+n0Qf+raOyetL3g9PS7vgzRUYULfvZyXuR5nAgLF/SuK3UuJN7gf0PbyErDiieuU1zKmLyFJ3Y9u+vmh//V9dXT/b5VN3f+HbFq82nGivHH6999Vv8rC7P+NFzfBlF56xvl/sEy1Xbc8mZ9m3R7bcrO0jl+vXJH7J0YY78UvYKNuDjpWNTQd9tzd5ks9ePUm92u877WMlp4dhR+Y2OYkYdh3XmKclc9iATVwoXyFLZouXIobuBpEXlK+QcYbK7gOF2NpMaN2Vmfdr71LGirAbW5N3lr4F1rckC0GQbQw6cqrM1XACvzOr5EjT+2q+L24Vk6/sRGL7no6t5un9eQE+7JG4r+wk3+e9iGfXwzyeZHLjzDGFt0fEBB564ymOeRwzCg8dHaZ9kx8NZGZ8+UyOv0bSW3o9q5Tac5+0luajjGfqpsT2krIuTeaKZGQf4UUIKpx6xFbo2nGD9HSlpJZAGfSQILVjV02Z4CQsJhD2UdbcJ/dwyRfpNvozwaLo4q/0nMhLIrMThJSZZ4EhiJd6Ugti43SvzCTlPKnZmUNZMV+u4cYKwp85XlfcTBi/s6Z+MZ2LxADhGZzUDU9m5zjIr0woQhLxasAHWS7E9TgZU/Z1EBEIjbzxQYYxOudOxu73qTBcUGEaIzqD1hi96W6JTgzRoDSI/UhmITP7yUPFSYqaagD1R4wJkP8VnT8nTwVQqnauN06QjvtCvYt2IL3Zm/Uk9jjDz0RmMLggwx3SOuIUSniGpJv3bAJo1SAFr9mKH8aI+LqkI0RFtoIh9/L76Cc8GLCDoxxSjyAHgxxFYSEzJ18Ggly4YHQHnCQ2LRoCGINXQirim0JYUJpDatf/p24PP4mVwSblSg6MEhDGuzNVg6J5o8nEvAPAGZiAfk5MDRXNqxcmx/AVHPMprx8G1TEHwOzqTByseTgoDRxYDT6akSh9YSMzr6aLidOeTGCj3EqDkdC8GU9Q9c6voYlyJzxy0sOxOnRs8C3sQpSR92DOO4EDCXkAzoA935bPTy8AIgTBCIIyvyZsExF/uM2Byfk9A7VafuksfdyygFmJcc35NZ7tT5xUYMNwJYcI/FouGP7xOyT1YBOh+aVcsCHHBWCHZHLTxOfxF6ZA8HP82P7ASv4BJj5PMNMO/g3+H9ghqrtnGm4hIJLAd7byVxg5asGCA+AH2N2meYHvKPxZmQRIGtyMaOMweC/ZXJJJdJE0CF27Bm0oK8kWLKSWHxeILB8s7xN8gmxFi0VIFAkNqd5KiI3S7JBqJ7Ssycb70vAL2LAofMiE9hkBrQvX4OTXNLS4eGpwA8KlaxaGKHOy4OWWcSVoXSZz9ohYYLaxpB8bv4V2aFGeFiYOvqTb74V2mHkQ8IXjBKhMuKrMJIoLOQlmVGIiIlyPmXdguwJ6d8J/CZ1H0m4iB1Gr4D569HjCZalPaNoxeWtd5jKf4TRkpy30syh3KbLXPVZsWdIIQUK6dO8Jl+dkbUB6GfRranwIWx3hUzeVi5fRmggtDA6b/dWO3ELkLiF4QldqoXOPxhe8QOjt57LUpXhguGUhtEUFUtq9EBzUQluQWrphIV1oA1JLm0R6VFqh0z21eH30XmjFdofbF14dgC5PG1zS0w9pjuYFF2UYL9KHiXJGYhhXJkwLEk1RvrEMZVWmpgvSVC1XtEtNlYOAL1JYrdESOg3lcGtFQsVGs+Nu++msHdiu0BNEQQ5vYKssIWxQx3JNc1AqnbTFmg3qSoKmYz0mb//S7QDU1k5Vdu+VSnUFyA3aBES1ca9zkqb4PPVQUUVG74OVRfUNSqencXh+UR1sUnfqgy6+qLrVn75QThRt0I26VG0FU4dbRNfE1ULpqVVBIZBTN/kJ0PBDxY6QEbpp5v27JFCxI5xm1k3oIxT+Q+Wowgl93dIJhHzqVrW5erd0QrdIxUE8wFXxcL9IBXSlSRcLuSnq3NR+OZBq4ZWD1FXr8sn9wivVEjcPwtVuKtd6XOKmWUzoQeY/dCczHBcTKpZtnr2QB104gN70ukm+QNaHzBJV7DhbIAt/040ERMMXnbUDAwOtgvZVsUo0KaCi9Omib/SCqleKhE7KSsNIIt7IkFXoi40MSBrNO28X+ooHOKxWqPpuoVHRh7FDo3+pyHsorOZyG5R0w5kPUZmJffYFIrLhTLi1DzFJT0X+aWaZ3JGtfcJNlCvesTOuIpAcLBrdRIms5g4s+jFlM0PFPYY6ul1VtDG4PJzwqQHnGGpKKlA1fVKN0VqxX31Tx1DjOTBXaRFvs3vaWdkniPIEF3hdGgEmxpev0VpeHNf8ZuiROMBhet0hMch9qkogR2wXbeSojHI22jd5ifp1cLbY9dHB8NWhJCbOgkYzBxpFzxH3wu74F++ro8ckWsM7a5l7/IuzVnAxJX1MojGQ3shHslKCPPimY+b+jYfmU0qONPIOj5rzK9lDi33OyQttVpEaglXXMFoabQVmqny3QxaBW4opM3o4CtwDJazWGZtAUMi12ONkAtGMrNGS/1QI5yb+CxciLmc8EwoDKEokefK6CBKPRf47Mj/MEIujvv+MzA/6kKQLCR7y18q5Y8AjiWryrR1T9uwp/RqJ3YUdGWBxYUeR2RzN7gThn6ifCrtLaA7X/dwG4xtusvg+24uVihzKtr/Cqrh7OFPdcVlYcXItmyHS7x67ROwyxxTceAHegqsLHVOQ4WLH00sdE5DhUsev2IbaznR95gKrCnDGi0oXDOmTRrmvhP3i712+u+LvXXO84u9dKL2Cf3V33X7+i6u7N/y5S9IdvOvoF0G/19GP9tfR/wPQ21eEI8clLwAAAABJRU5ErkJggg==";const Fe=b({components:{DarkSwitch:Le},emits:["update:dark"],computed:{dark(){return I("THEME")==="dark"},switchValue(){return xe.value}},watch:{switchValue(e){console.log("switchValue",e),this.setCookie(e)},dark(e){document.documentElement.classList.toggle("dark",e),this.setCookie(this.dark)}},mounted(){console.log("dark selector mounted"),this.dark?(W(!0),document.documentElement.classList.add("dark")):(W(!1),document.documentElement.classList.remove("dark"))},methods:{setCookie(e){ee("THEME",e?"dark":"light",{path:"/",domain:oe()})}}});function He(e,t,r,L,f,x){const i=a("dark-switch");return s(),d(i,{class:"switch","dark-background":"#333","light-background":"#fff"})}var Be=w(Fe,[["render",He],["__file","/home/runner/work/Nexior/Nexior/src/components/common/DarkSelector2.vue"]]);const Ge=b({name:"LanguageSelector",components:{ElDropdown:te,ElDropdownItem:ne,ElDropdownMenu:Ie},data(){return{locales:he}},methods:{async onSelectLocale(e){this.$router.push({query:Z(K({},this.$route.query),{locale:void 0})}),await fe(e),this.setCookie(e),window.location.reload()},setCookie(e){ee("LOCALE",e,{path:"/",domain:oe()})}}}),Je=e=>(be("data-v-716b17bb"),e=e(),Ce(),e),ze=Je(()=>h("i",{class:"icon"},[h("svg",{preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},[h("path",{fill:"currentColor",d:"m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"})])],-1));function Me(e,t,r,L,f,x){const i=a("el-dropdown-item"),c=a("el-dropdown-menu"),l=a("el-dropdown");return s(),E("div",null,[o(l,{"max-height":"700",trigger:"click",onCommand:e.onSelectLocale},{dropdown:n(()=>[o(c,null,{default:n(()=>[(s(!0),E(Ae,null,Ee(e.locales,(v,A)=>(s(),d(i,{key:A,command:v.value},{default:n(()=>[g(_(v.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n(()=>[ze]),_:1},8,["onCommand"])])}var De=w(Ge,[["render",Me],["__scopeId","data-v-716b17bb"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LanguageSelector.vue"]]);const Qe={emits:["click"],data(){return{url1:"https://cdn.acedata.cloud/logo.png/thumb_450x_",url2:"https://cdn.acedata.cloud/logo2.png/thumb_450x_",dark:I("THEME")==="dark",url:"",isOfficial:ve(),interval:void 0}},watch:{dark(){this.updateUrl()}},mounted(){this.interval=window.setInterval(this.checkCookie,500),this.updateUrl()},unmounted(){this.interval&&clearInterval(this.interval)},methods:{checkCookie(){this.dark=I("THEME")==="dark"},updateUrl(){var e;this.isOfficial?this.url=this.dark?this.url2:this.url1:this.url=((e=this.$store.state.site)==null?void 0:e.logo)||""}}},Ye=["src"];function Xe(e,t,r,L,f,x){return s(),E("img",{src:f.url,class:"logo",onClick:t[0]||(t[0]=i=>e.$emit("click"))},null,8,Ye)}var Pe=w(Qe,[["render",Xe],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Logo.vue"]]);const qe=b({name:"TopHeader",components:{ElCol:ae,Logo:Pe,ElRow:re,DarkSelector:Be,ElDropdown:te,ElMenu:Oe,ElMenuItem:Ve,ElDropdownItem:ne,ElButton:Se,ElSubMenu:Ue,LanguageSelector:De},data(){return{defaultAvatar:Re}},computed:{site(){var e;return(e=this.$store.state)==null?void 0:e.site},dark(){var e;return(e=this.$store.getters)==null?void 0:e.dark},active(){var e,t;return(t=(e=this.$route.matched)==null?void 0:e[0])==null?void 0:t.path},user(){var e;return(e=this.$store.getters)==null?void 0:e.user},authenticated(){var e;return(e=this.$store.getters)==null?void 0:e.authenticated}},methods:{openTab(e){window.open(e,"_blank")},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:ke})},onLogin(){this.$router.push({name:ge})},onProfile(){const e=j();window.open(`${e}/user/profile`,"_blank")},onVerify(){const e=j();window.open(`${e}/user/verify`,"_blank")},onConsole(){this.$router.push({name:we})},async onLogout(){this.$store.dispatch("logout")}}}),Ke={key:0,class:"mt-4 pr-10"},Ze={key:1,class:"float-right"},je=["src"];function We(e,t,r,L,f,x){const i=a("logo"),c=a("el-col"),l=a("el-menu-item"),v=a("el-sub-menu"),A=a("el-menu"),y=a("el-button"),C=a("language-selector"),O=a("dark-selector"),V=a("el-dropdown-item"),le=a("el-dropdown-menu"),ie=a("el-dropdown"),de=a("el-row"),u=ye("t");return s(),d(de,{class:"header"},{default:n(()=>[o(c,{md:4,xs:24},{default:n(()=>[o(i,{onClick:e.onHome},null,8,["onClick"])]),_:1}),o(c,{md:16,xs:13},{default:n(()=>[o(A,{"default-active":e.active,mode:"horizontal",class:"menu",ellipsis:!0,onSelect:e.onSelect},{default:n(()=>[o(v,{index:1},{title:n(()=>[g(_(e.$t("common.nav.products")),1)]),default:n(()=>{var m,S,U,N,T,$,R,F,H,B,G,J,z,M,D,Q,Y,X;return[(U=(S=(m=e.site)==null?void 0:m.features)==null?void 0:S.chat)!=null&&U.enabled?p((s(),d(l,{key:0,index:"/chat"},null,512)),[[u,"index.title.chat"]]):k("v-if",!0),($=(T=(N=e.site)==null?void 0:N.features)==null?void 0:T.midjourney)!=null&&$.enabled?p((s(),d(l,{key:1,index:"/midjourney"},null,512)),[[u,"index.title.midjourney"]]):k("v-if",!0),(H=(F=(R=e.site)==null?void 0:R.features)==null?void 0:F.qrart)!=null&&H.enabled?p((s(),d(l,{key:2,index:"/qrart"},null,512)),[[u,"index.title.qrart"]]):k("v-if",!0),(J=(G=(B=e.site)==null?void 0:B.features)==null?void 0:G.suno)!=null&&J.enabled?p((s(),d(l,{key:3,index:"/suno"},null,512)),[[u,"index.title.suno"]]):k("v-if",!0),(D=(M=(z=e.site)==null?void 0:z.features)==null?void 0:M.luma)!=null&&D.enabled?p((s(),d(l,{key:4,index:"/luma"},null,512)),[[u,"index.title.luma"]]):k("v-if",!0),(X=(Y=(Q=e.site)==null?void 0:Q.features)==null?void 0:Y.headshots)!=null&&X.enabled?p((s(),d(l,{key:5,index:"/headshots"},null,512)),[[u,"index.title.headshots"]]):k("v-if",!0)]}),_:1}),p(o(l,{onRoute:void 0,onClick:t[0]||(t[0]=m=>e.openTab("https://platform.acedata.cloud"))},null,512),[[u,"common.nav.apiPlatform"]]),p(o(l,{onRoute:void 0,onClick:t[1]||(t[1]=m=>e.openTab("https://platform.acedata.cloud/support"))},null,512),[[u,"common.nav.support"]]),p(o(l,{index:"/distribution"},null,512),[[u,"common.nav.referral"]])]),_:1},8,["default-active","onSelect"])]),_:1}),o(c,{md:4,xs:11},{default:n(()=>[e.authenticated?(s(),E("div",Ze,[o(O),o(C,{class:"locale"}),h("div",{class:"console",onClick:t[2]||(t[2]=(...m)=>e.onConsole&&e.onConsole(...m))},_(e.$t("common.button.console")),1),o(ie,{trigger:"click"},{dropdown:n(()=>[o(le,null,{default:n(()=>[o(V,{onClick:e.onProfile},{default:n(()=>[g(_(e.$t("common.button.profile")),1)]),_:1},8,["onClick"]),o(V,{onClick:e.onLogout},{default:n(()=>[g(_(e.$t("common.button.logout")),1)]),_:1},8,["onClick"])]),_:1})]),default:n(()=>{var m;return[h("img",{src:((m=e.user)==null?void 0:m.avatar)||e.defaultAvatar,class:"avatar"},null,8,je)]}),_:1})])):(s(),E("div",Ke,[o(y,{type:"primary",class:"float-right",size:"small",round:"",onClick:e.onLogin},{default:n(()=>[g(_(e.$t("common.button.login")),1)]),_:1},8,["onClick"]),o(C,{class:"locale float-right mr-4"}),o(O,{class:"float-right mr-4"})]))]),_:1})]),_:1})}var eo=w(qe,[["render",We],["__file","/home/runner/work/Nexior/Nexior/src/components/common/TopHeader.vue"]]);const oo=b({name:"BottomFooter",components:{ElContainer:se,ElRow:re,ElCol:ae},data(){return{}},computed:{},methods:{}}),to={href:"https://platform.acedata.cloud"};function no(e,t,r,L,f,x){const i=a("el-col"),c=a("el-row"),l=a("el-container");return s(),d(l,{id:"footer",class:"footer"},{default:n(()=>[o(c,{class:"w-full"},{default:n(()=>[o(i,{class:"container",span:18,offset:3},{default:n(()=>[o(c,null,{default:n(()=>[o(i,{span:24,class:"text-center"},{default:n(()=>[h("p",null,[h("a",to,_(e.$t("common.entity.website")),1),g(" \xA9 "+_(new Date().getFullYear())+" "+_(e.$t("common.entity.copyright")),1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var ao=w(oo,[["render",no],["__scopeId","data-v-5c0f0aec"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/BottomFooter.vue"]]);const ro=b({name:"LayoutIndex",components:{TopHeader:eo,BottomFooter:ao,ElContainer:se,ElMain:Ne,ElFooter:Te,ElHeader:$e}});function so(e,t,r,L,f,x){const i=a("top-header"),c=a("el-header"),l=a("router-view"),v=a("el-main"),A=a("bottom-footer"),y=a("el-footer"),C=a("el-container");return s(),d(C,{class:"wrapper"},{default:n(()=>[o(c,{class:"header"},{default:n(()=>[o(i)]),_:1}),o(v,{class:"main"},{default:n(()=>[o(l)]),_:1}),o(y,{class:"footer"},{default:n(()=>[o(A)]),_:1})]),_:1})}var vo=w(ro,[["render",so],["__scopeId","data-v-3deb56ba"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Index.vue"]]);export{vo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{an as M}from"./vendor-fortawesome.1cce8f50.js";import{_ as R}from"./index.51b4aed7.js";import{l as U,i as W,h as G,r as J,s as O}from"./vendor-element-plus.efc1b383.js";import{H as P,al as _,e as m,f as t,V as e,M as i,S as g,o as c,U as n,T as h,W as D,ai as H,L as K,aK as Q,aL as X}from"./vendor-@vue.34786d41.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const Y=P({name:"Index",components:{ElButton:U,ElRow:W,ElCol:G,ElCard:J,ElImage:O,FontAwesomeIcon:M},data(){return{comments:[{avatar:"https://cdn.acedata.cloud/avatar1.png",name:this.$t("index.customers.name1"),job:this.$t("index.customers.job1"),content:this.$t("index.customers.comment1")},{avatar:"https://cdn.acedata.cloud/avatar2.png",name:this.$t("index.customers.name2"),job:this.$t("index.customers.job2"),content:this.$t("index.customers.comment2")},{avatar:"https://cdn.acedata.cloud/avatar3.png",name:this.$t("index.customers.name3"),job:this.$t("index.customers.job3"),content:this.$t("index.customers.comment3")}]}},computed:{site(){return this.$store.state.site},capabilities(){var s,l,k,w,j,C,u,o,p,d,y,f,b,v,$;return[...(k=(l=(s=this.site)==null?void 0:s.features)==null?void 0:l.chat)!=null&&k.enabled?[{title:this.$t("index.title.chat"),subtitle:this.$t("index.subtitle.chat"),icon:"fa-regular fa-comment"}]:[],...(C=(j=(w=this.site)==null?void 0:w.features)==null?void 0:j.midjourney)!=null&&C.enabled?[{title:this.$t("index.title.midjourney"),subtitle:this.$t("index.subtitle.midjourney"),icon:"fa-solid fa-palette"}]:[],...(p=(o=(u=this.site)==null?void 0:u.features)==null?void 0:o.qrart)!=null&&p.enabled?[{title:this.$t("index.title.qrart"),subtitle:this.$t("index.subtitle.qrart"),icon:"fa-solid fa-qrcode"}]:[],...(f=(y=(d=this.site)==null?void 0:d.features)==null?void 0:y.suno)!=null&&f.enabled?[{title:this.$t("index.title.suno"),subtitle:this.$t("index.subtitle.suno"),icon:"fa-solid fa-music"}]:[],...($=(v=(b=this.site)==null?void 0:b.features)==null?void 0:v.luma)!=null&&$.enabled?[{title:this.$t("index.title.luma"),subtitle:this.$t("index.subtitle.luma"),icon:"fa-solid fa-film"}]:[]]}},mounted(){},methods:{}}),r=s=>(Q("data-v-d9c0303e"),s=s(),X(),s),Z={class:"wrapper"},tt={id:"banner"},st={class:"container"},et={class:"info"},it={class:"title"},nt={class:"subtitle"},ot={class:"operations"},at={id:"introduction"},lt={class:"container"},dt={class:"title"},ct={class:"subtitle"},rt={class:"icon-wrapper"},ut={class:"title"},mt={class:"subtitle"},_t={key:0,id:"chat",class:"block"},ht={class:"container"},pt=r(()=>t("img",{src:"https://cdn.acedata.cloud/axynds.png",class:"image desktop"},null,-1)),ft=r(()=>t("img",{src:"https://cdn.acedata.cloud/vds4i3.png",class:"image mobile"},null,-1)),bt={class:"title"},vt={class:"subtitle"},$t={key:1,id:"midjourney",class:"block"},gt={class:"container"},yt={class:"title"},xt={class:"subtitle"},kt=r(()=>t("img",{src:"https://cdn.acedata.cloud/uk86mz.png",class:"image desktop"},null,-1)),wt=r(()=>t("img",{src:"https://cdn.acedata.cloud/rvelwm.png",class:"image mobile"},null,-1)),jt={key:2,id:"qrart",class:"block"},Ct={class:"container"},It=r(()=>t("img",{src:"https://cdn.acedata.cloud/gyogar.png",class:"image desktop"},null,-1)),qt=r(()=>t("img",{src:"https://cdn.acedata.cloud/5kunm0.png",class:"image mobile"},null,-1)),Et={class:"title"},Nt={class:"subtitle"},Bt={key:3,id:"suno",class:"block"},St={class:"container"},Vt={class:"title"},Ft={class:"subtitle"},Lt=r(()=>t("img",{src:"https://cdn.acedata.cloud/2m8fn.png",class:"image desktop"},null,-1)),Tt=r(()=>t("img",{src:"https://cdn.acedata.cloud/23knvs.png",class:"image mobile"},null,-1)),zt={key:4,id:"luma",class:"block"},At={class:"container"},Dt=r(()=>t("img",{src:"https://cdn.acedata.cloud/6kop1g.png",class:"image desktop"},null,-1)),Ht=r(()=>t("img",{src:"https://cdn.acedata.cloud/3kcjny.png",class:"image mobile"},null,-1)),Kt={class:"title"},Mt={class:"subtitle"},Rt={id:"comments"},Ut={class:"container"},Wt={class:"title"},Gt={class:"subtitle"},Jt={class:"content"},Ot={class:"info"},Pt={class:"left"},Qt={class:"right"},Xt={class:"name"},Yt={class:"job"};function Zt(s,l,k,w,j,C){var b,v,$,I,q,E,N,B,S,V,F,L,T,z,A;const u=_("el-button"),o=_("el-col"),p=_("el-image"),d=_("el-row"),y=_("font-awesome-icon"),f=_("el-card");return c(),m("div",Z,[t("div",tt,[t("div",st,[e(d,null,{default:i(()=>[e(o,{md:12,xs:24,class:"left"},{default:i(()=>{var a;return[t("div",et,[t("h1",it,n((a=s.site)==null?void 0:a.title),1),t("h3",nt,n(s.$t("index.subtitle.banner")),1),t("div",ot,[e(u,{type:"primary",round:"",class:"btn-apply",onClick:l[0]||(l[0]=x=>s.$router.push({path:"/chat"}))},{default:i(()=>[h(n(s.$t("common.button.startForFree")),1)]),_:1})])])]}),_:1}),e(o,{md:12,xs:24,class:"right"},{default:i(()=>[e(p,{src:"https://cdn.acedata.cloud/illustration1.png",class:"brand"})]),_:1})]),_:1})])]),t("div",at,[t("div",lt,[e(d,{class:"mb-6"},{default:i(()=>[e(o,{span:24},{default:i(()=>[t("h2",dt,n(s.$t("index.title.introduction")),1),t("h5",ct,n(s.$t("index.subtitle.introduction")),1)]),_:1})]),_:1}),e(d,{gutter:15},{default:i(()=>[(c(!0),m(D,null,H(s.capabilities,(a,x)=>(c(),K(o,{key:x,md:6,xs:24,class:"mb-4"},{default:i(()=>[e(f,{class:"info text-center",shadow:"hover"},{default:i(()=>[t("div",rt,[e(y,{icon:a.icon,class:"icon"},null,8,["icon"])]),t("h2",ut,n(a.title),1),t("p",mt,n(a.subtitle),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})])]),($=(v=(b=s.site)==null?void 0:b.features)==null?void 0:v.chat)!=null&&$.enabled?(c(),m("div",_t,[t("div",ht,[e(d,null,{default:i(()=>[e(o,{md:16,xs:24,class:"preview"},{default:i(()=>[pt,ft]),_:1}),e(o,{md:8,xs:24,class:"info"},{default:i(()=>[t("h2",bt,n(s.$t("index.title.chat")),1),t("p",vt,n(s.$t("index.subtitle.chat")),1),e(u,{type:"primary",round:"",class:"btn-try",onClick:l[1]||(l[1]=a=>s.$router.push({path:"/chat"}))},{default:i(()=>[h(n(s.$t("index.button.try")),1)]),_:1})]),_:1})]),_:1})])])):g("v-if",!0),(E=(q=(I=s.site)==null?void 0:I.features)==null?void 0:q.midjourney)!=null&&E.enabled?(c(),m("div",$t,[t("div",gt,[e(d,null,{default:i(()=>[e(o,{md:8,xs:24,class:"info"},{default:i(()=>[t("h2",yt,n(s.$t("index.title.midjourney")),1),t("p",xt,n(s.$t("index.subtitle.midjourney")),1),e(u,{type:"primary",round:"",class:"btn-try",onClick:l[2]||(l[2]=a=>s.$router.push({path:"/midjourney"}))},{default:i(()=>[h(n(s.$t("index.button.try")),1)]),_:1})]),_:1}),e(o,{md:16,xs:24,class:"preview"},{default:i(()=>[kt,wt]),_:1})]),_:1})])])):g("v-if",!0),(S=(B=(N=s.site)==null?void 0:N.features)==null?void 0:B.qrart)!=null&&S.enabled?(c(),m("div",jt,[t("div",Ct,[e(d,null,{default:i(()=>[e(o,{md:16,xs:24,class:"preview"},{default:i(()=>[It,qt]),_:1}),e(o,{md:8,xs:24,class:"info"},{default:i(()=>[t("h2",Et,n(s.$t("index.title.qrart")),1),t("p",Nt,n(s.$t("index.subtitle.qrart")),1),e(u,{type:"primary",round:"",class:"btn-try",onClick:l[3]||(l[3]=a=>s.$router.push({path:"/qrart"}))},{default:i(()=>[h(n(s.$t("index.button.try")),1)]),_:1})]),_:1})]),_:1})])])):g("v-if",!0),(L=(F=(V=s.site)==null?void 0:V.features)==null?void 0:F.suno)!=null&&L.enabled?(c(),m("div",Bt,[t("div",St,[e(d,null,{default:i(()=>[e(o,{md:8,xs:24,class:"info"},{default:i(()=>[t("h2",Vt,n(s.$t("index.title.suno")),1),t("p",Ft,n(s.$t("index.subtitle.suno")),1),e(u,{type:"primary",round:"",class:"btn-try",onClick:l[4]||(l[4]=a=>s.$router.push({path:"/suno"}))},{default:i(()=>[h(n(s.$t("index.button.try")),1)]),_:1})]),_:1}),e(o,{md:16,xs:24,class:"preview"},{default:i(()=>[Lt,Tt]),_:1})]),_:1})])])):g("v-if",!0),(A=(z=(T=s.site)==null?void 0:T.features)==null?void 0:z.luma)!=null&&A.enabled?(c(),m("div",zt,[t("div",At,[e(d,null,{default:i(()=>[e(o,{md:16,xs:24,class:"preview"},{default:i(()=>[Dt,Ht]),_:1}),e(o,{md:8,xs:24,class:"info"},{default:i(()=>[t("h2",Kt,n(s.$t("index.title.luma")),1),t("p",Mt,n(s.$t("index.subtitle.luma")),1),e(u,{type:"primary",round:"",class:"btn-try",onClick:l[5]||(l[5]=a=>s.$router.push({path:"/luma"}))},{default:i(()=>[h(n(s.$t("index.button.try")),1)]),_:1})]),_:1})]),_:1})])])):g("v-if",!0),t("div",Rt,[t("div",Ut,[e(d,{class:"mb-6"},{default:i(()=>[e(o,{span:24},{default:i(()=>[t("h2",Wt,n(s.$t("index.title.comments")),1),t("h5",Gt,n(s.$t("index.subtitle.comments")),1)]),_:1})]),_:1}),e(d,{gutter:20,class:"main"},{default:i(()=>[(c(!0),m(D,null,H(s.comments,(a,x)=>(c(),K(o,{key:x,md:8,xs:24},{default:i(()=>[e(f,{shadow:"hover",class:"service","body-style":{padding:0}},{default:i(()=>[t("p",Jt,n(a.content),1),t("div",Ot,[t("div",Pt,[e(p,{class:"avatar",src:a.avatar},null,8,["src"])]),t("div",Qt,[t("div",Xt,n(a.name),1),t("div",Yt,n(a.job),1)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})])])])}var ls=R(Y,[["render",Zt],["__scopeId","data-v-d9c0303e"],["__file","/home/runner/work/Nexior/Nexior/src/pages/index/Index.vue"]]);export{ls as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{L as N}from"./Chatdoc.44d48efa.js";import{_ as y,V as g,aa as D}from"./index.51b4aed7.js";import{an as v}from"./vendor-fortawesome.1cce8f50.js";import{l as S,E as F,I as B,J as M,N as U,M as u,r as z,i as L,h as T,d as q,e as H,f as O}from"./vendor-element-plus.efc1b383.js";import{H as w,al as o,o as _,e as C,V as t,M as s,T as R,U as r,f as i,W as V,L as $,ai as G,S as J}from"./vendor-@vue.34786d41.js";import{A as K}from"./Status.a33ad639.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const W=w({name:"CreateRepository",components:{ElButton:S,ElDialog:F,ElForm:B,ElFormItem:M,ElInput:U,FontAwesomeIcon:v},data(){return{dialogVisible:!1,creating:!1,form:{name:"",description:""}}},computed:{},methods:{async onSubmit(){if(!this.form.name){u.error(this.$t("chatdoc.message.nameRequired"));return}this.creating=!0,this.$store.dispatch("chatdoc/createRepository",{name:this.form.name,description:this.form.description}).then(()=>{this.creating=!1,u.success(this.$t("chatdoc.message.createRepositorySuccess")),this.dialogVisible=!1,this.$store.dispatch("chatdoc/getRepositories")}).catch(()=>{this.creating=!1,u.error(this.$t("chatdoc.message.createRepositoryFailed"))})}}});function j(e,a,b,k,E,I){const p=o("el-input"),l=o("el-form-item"),d=o("el-button"),m=o("el-form"),h=o("el-dialog"),f=o("font-awesome-icon");return _(),C(V,null,[t(h,{modelValue:e.dialogVisible,"onUpdate:modelValue":a[2]||(a[2]=n=>e.dialogVisible=n),width:"400px"},{default:s(()=>[t(m,{ref:"form","label-width":"60px"},{default:s(()=>[t(l,{label:e.$t("chatdoc.field.name"),prop:e.form.name},{default:s(()=>[t(p,{modelValue:e.form.name,"onUpdate:modelValue":a[0]||(a[0]=n=>e.form.name=n),placeholder:e.$t("chatdoc.message.inputRepositoryName")},null,8,["modelValue","placeholder"])]),_:1},8,["label","prop"]),t(l,{label:e.$t("chatdoc.field.description"),prop:e.form.description},{default:s(()=>[t(p,{modelValue:e.form.description,"onUpdate:modelValue":a[1]||(a[1]=n=>e.form.description=n),placeholder:e.$t("chatdoc.message.inputRepositoryDescription")},null,8,["modelValue","placeholder"])]),_:1},8,["label","prop"]),t(l,null,{default:s(()=>[t(d,{type:"primary",round:"",onClick:e.onSubmit},{default:s(()=>[R(r(e.$t("common.button.create")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},512)]),_:1},8,["modelValue"]),i("button",{class:"btn btn-create",onClick:a[3]||(a[3]=n=>e.dialogVisible=!0)},[t(f,{icon:["fas","plus"]})])],64)}var P=y(W,[["render",j],["__scopeId","data-v-41eec665"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/CreateRepository.vue"]]);const Q=w({name:"ChatdocKnowledge",components:{Layout:N,ElCard:z,ElRow:L,ElCol:T,CreateRepository:P,FontAwesomeIcon:v,ElDropdown:q,ElDropdownItem:H,ElDropdownMenu:O,ApplicationStatus:K},data(){return{}},computed:{repositories(){return this.$store.state.chatdoc.repositories},needApply(){return this.$store.state.chatdoc.status.getApplications===g.Success&&!this.application},application(){return this.$store.state.chatdoc.application},service(){return this.$store.state.chatdoc.service},initializing(){return this.$store.state.chatdoc.status.getApplications===g.Request}},async mounted(){},methods:{onClick(e){this.$router.push({name:D,params:{repositoryId:e.id}})},onDelete(e){this.$store.dispatch("chatdoc/deleteRepository",{id:e}).then(()=>{u.success(this.$t("chatdoc.message.deleteRepositorySuccess")),this.$store.dispatch("chatdoc/getRepositories")})}}}),X={class:"wrapper"},Y={class:"title"},Z={class:"introduction"},x={class:"status"},ee={class:"operation"},oe={class:"name"},te={class:"id"},se={class:"description"};function ae(e,a,b,k,E,I){const p=o("application-status"),l=o("create-repository"),d=o("el-card"),m=o("el-col"),h=o("font-awesome-icon");o("el-dropdown-item"),o("el-dropdown-menu"),o("el-dropdown");const f=o("el-row"),n=o("layout");return _(),$(n,null,{chatdoc:s(()=>[i("div",X,[i("div",Y,r(e.$t("chatdoc.title.repositories")),1),i("div",Z,r(e.$t("chatdoc.message.introductionForRepository")),1),i("div",x,[t(p,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:a[0]||(a[0]=c=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),t(f,{class:"repositories",gutter:15},{default:s(()=>[t(m,{xl:4,md:6,sm:12,xs:24},{default:s(()=>[t(d,{class:"repository text-center",shadow:"hover",onClick:e.onCreate},{default:s(()=>[t(l),i("p",ee,r(e.$t("chatdoc.title.createRepository")),1)]),_:1},8,["onClick"])]),_:1}),(_(!0),C(V,null,G(e.repositories,(c,A)=>(_(),$(m,{key:A,xl:4,md:6,sm:12,xs:24},{default:s(()=>[t(d,{class:"repository",shadow:"hover",onClick:ie=>e.onClick(c)},{default:s(()=>[J("v-if",!0),i("h2",oe,r(c.name),1),i("p",te,[t(h,{icon:["fas","book"]}),R(" ID: "+r(c.id),1)]),i("p",se,r(c.description),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})])]),_:1})}var he=y(Q,[["render",ae],["__scopeId","data-v-52a67922"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Index.vue"]]);export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./vendor-others.
|
|
1
|
+
import"./vendor-others.de6317ed.js";import{h as O,_ as T,c as A,d as R,e as P,f as B,w as H,K as V,R as M}from"./index.51b4aed7.js";import{an as L}from"./vendor-fortawesome.1cce8f50.js";import{L as j,D as q}from"./DarkSelector.7591d459.js";import{s as D,E as X,t as z,j as F,k as J}from"./vendor-element-plus.efc1b383.js";import{H as U,al as s,o as g,L as E,M as p,V as a,T as N,U as I,S,f as r,e as C,a0 as W,W as G,ai as K,Q}from"./vendor-@vue.34786d41.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";import"./vendor-vue-dark-switch.9acc6f91.js";const Y=U({name:"HelpEntry",components:{ElImage:D,ElDialog:X,ElPopover:z,ElMenu:F,ElMenuItem:J,FontAwesomeIcon:L},props:{visible:{type:Boolean,default:!0}},emits:["close"],computed:{site(){return this.$store.state.site}},methods:{onJoin(){var e,t,n,i;window.open((i=(n=(t=(e=this.$store.state.site)==null?void 0:e.features)==null?void 0:t.support)==null?void 0:n.discord)==null?void 0:i.url,"_blank")},onProfit(){this.$router.push({name:O})}}}),Z={class:"flex"},ee={class:"flex-1 text-center"};function te(e,t,n,i,u,x){const m=s("font-awesome-icon"),l=s("el-menu-item"),f=s("el-image"),_=s("el-popover"),h=s("el-menu"),o=s("el-dialog");return g(),E(o,{"model-value":e.visible,width:200,class:"text-center",onClose:t[0]||(t[0]=c=>e.$emit("close"))},{default:p(()=>[a(h,{collapse:!1,class:"menu"},{default:p(()=>{var c,v,$,k;return[(k=($=(v=(c=e.site)==null?void 0:c.features)==null?void 0:v.support)==null?void 0:$.discord)!=null&&k.enabled?(g(),E(l,{key:0,index:"1",onClick:e.onJoin},{title:p(()=>[N(I(e.$t("common.message.joinDiscord")),1)]),default:p(()=>[a(m,{icon:"fa-brands fa-discord",class:"mr-2"})]),_:1},8,["onClick"])):S("v-if",!0),a(_,{width:350,trigger:"hover"},{reference:p(()=>{var d,w,b,y;return[(y=(b=(w=(d=e.site)==null?void 0:d.features)==null?void 0:w.support)==null?void 0:b.wechat)!=null&&y.enabled?(g(),E(l,{key:0,index:"2"},{title:p(()=>[N(I(e.$t("common.message.addWeChat")),1)]),default:p(()=>[a(m,{icon:"fa-brands fa-weixin",class:"mr-2"})]),_:1})):S("v-if",!0)]}),default:p(()=>{var d,w,b,y;return[r("div",Z,[r("div",ee,[a(f,{src:(y=(b=(w=(d=e.site)==null?void 0:d.features)==null?void 0:w.support)==null?void 0:b.wechat)==null?void 0:y.qr},null,8,["src"])])])]}),_:1})]}),_:1})]),_:1},8,["model-value"])}var oe=T(Y,[["render",te],["__scopeId","data-v-2800d84d"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/HelpDialog.vue"]]);const se=U({name:"ProfileIndex",components:{ElImage:D,HelpDialog:oe,FontAwesomeIcon:L,LocaleSelector:j,DarkSelector:q},data(){return{operating:{locale:!1,dark:!1,help:!1}}},computed:{user(){return this.$store.getters.user},showSupport(){var e,t,n,i,u,x,m,l,f,_,h,o,c,v,$,k,d;return((u=(i=(n=(t=(e=this.$store)==null?void 0:e.state)==null?void 0:t.site)==null?void 0:n.features)==null?void 0:i.support)==null?void 0:u.enabled)&&(((h=(_=(f=(l=(m=(x=this.$store)==null?void 0:x.state)==null?void 0:m.site)==null?void 0:l.features)==null?void 0:f.support)==null?void 0:_.discord)==null?void 0:h.enabled)||((d=(k=($=(v=(c=(o=this.$store)==null?void 0:o.state)==null?void 0:c.site)==null?void 0:v.features)==null?void 0:$.support)==null?void 0:k.wechat)==null?void 0:d.enabled))},showSite(){var e,t,n,i,u;return(u=(n=(t=(e=this.$store)==null?void 0:e.state)==null?void 0:t.site)==null?void 0:n.admins)==null?void 0:u.includes((i=this.$store.getters.user)==null?void 0:i.id)},links(){return[{key:"profile",text:this.$t("console.menu.userProfile"),href:`${A()}/user/profile`,icon:"fa-regular fa-user"},{key:"application-list",text:this.$t("console.menu.applicationList"),name:R,icon:"fa-solid fa-cube"},{key:"order-list",text:this.$t("console.menu.orderList"),name:P,icon:"fa-solid fa-store"},{key:"usage-list",text:this.$t("console.menu.usageList"),name:B,icon:"fa-solid fa-rotate-left"},{key:"distribution-index",text:this.$t("console.menu.distributionIndex"),name:O,icon:"fa-solid fa-coins"},...this.showSite?[{key:"site-index",text:this.$t("common.nav.site"),name:H,icon:"fa-solid fa-gear"}]:[],{key:"dark-setting",text:this.$t("common.nav.darkMode"),icon:"fa-solid fa-moon",callback:()=>{this.operating.dark=!0}},{key:"locale-setting",text:this.$t("common.nav.locale"),icon:"fa-solid fa-language",callback:()=>{this.operating.locale=!0}},{key:"developerPlatform",text:this.$t("console.menu.developerPlatform"),href:V(),icon:"fa-solid fa-laptop-code"},...this.showSupport?[{key:"support",text:this.$t("common.nav.support"),callback:()=>{this.operating.help=!0},icon:"fa-solid fa-question"}]:[],{key:"logout",text:this.$t("common.nav.logOut"),icon:"fa-solid fa-arrow-right-from-bracket",callback:async()=>{await this.$store.dispatch("resetAll"),await this.$store.dispatch("chat/resetAll"),await this.$store.dispatch("midjourney/resetAll"),await this.$store.dispatch("chatdoc/resetAll"),await this.$store.dispatch("qrart/resetAll"),await this.$store.dispatch("login")}}]}},methods:{onHome(){this.$router.push({name:M})},onNavigate(e){e.name?this.$router.push({name:e.name}):e.href?window.open(e.href,"_blank"):e.callback&&e.callback()}}}),ae={class:"profile"},ne={class:"info"},ie={class:"links"},re=["onClick"],le={class:"icon"},ce={class:"text"},de={class:"suffix"};function pe(e,t,n,i,u,x){const m=s("el-image"),l=s("font-awesome-icon"),f=s("locale-selector"),_=s("dark-selector"),h=s("help-dialog");return g(),C("div",ae,[r("div",ne,[a(m,{src:e.user.avatar,fit:"cover",class:"avatar"},null,8,["src"]),r("h2",null,I(e.user.username),1),r("div",{style:W({backgroundImage:"url("+e.user.avatar+")"}),class:"background"},null,4)]),r("div",ie,[(g(!0),C(G,null,K(e.links,(o,c)=>(g(),C("a",{key:c,class:Q({link:!0,active:e.$route.name===o.name}),onClick:v=>e.onNavigate(o)},[r("span",le,[a(l,{icon:o.icon,class:"text-sm"},null,8,["icon"])]),r("span",ce,I(o.text),1),r("span",de,[a(l,{icon:"fa-solid fa-chevron-right",class:"text-sm"})])],10,re))),128))]),a(f,{visible:e.operating.locale==!0,onClose:t[0]||(t[0]=o=>e.operating.locale=!1)},null,8,["visible"]),a(_,{visible:e.operating.dark==!0,onClose:t[1]||(t[1]=o=>e.operating.dark=!1)},null,8,["visible"]),a(h,{visible:e.operating.help==!0,onClose:t[2]||(t[2]=o=>e.operating.help=!1)},null,8,["visible"])])}var we=T(se,[["render",pe],["__scopeId","data-v-0a2212f8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/profile/Index.vue"]]);export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ue=Object.defineProperty,Ce=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ve=(e,t,o)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))Le.call(t,o)&&Ve(e,o,t[o]);if(ke)for(var o of ke(t))Ne.call(t,o)&&Ve(e,o,t[o]);return e},k=(e,t)=>Ce(e,Pe(t));import{J as Ee}from"./vendor-others.4f34a866.js";import{an as Q}from"./vendor-fortawesome.f1998e53.js";import{_ as V,at as Ae,au as Te,av as Ge,K as W,V as K,B as Re,aw as De}from"./index.daadea41.js";import{P as ze,l as D,T as X,O as Y,M as y,N as Oe,s as Fe,F as je,u as Be,C as qe,R as Me}from"./vendor-element-plus.ddf5f024.js";import{H as I,al as n,o as r,e as p,f as a,I as J,V as s,M as m,U as i,T as g,L as A,S as h,Q as H,W as Ie,ai as Se}from"./vendor-@vue.853aef6d.js";import{I as R}from"./InfoIcon.ac0ec619.js";import{A as He,i as Ke,h as Je}from"./Status.5405912d.js";import{C as Qe}from"./CopyToClipboard.cb70f6d1.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";const We=I({name:"LayoutLuma",components:{ElDrawer:ze,ElButton:D,FontAwesomeIcon:Q},data(){return{drawer:!1}}}),Xe={class:"main"},Ye={class:"config"},Ze={class:"result"};function xe(e,t,o,l,f,v){const c=n("font-awesome-icon"),u=n("el-button"),d=n("el-drawer");return r(),p("div",Xe,[a("div",Ye,[J(e.$slots,"config",{},void 0,!0)]),a("div",Ze,[J(e.$slots,"result",{},void 0,!0)]),s(u,{round:"",class:"menu",onClick:t[0]||(t[0]=_=>e.drawer=!0)},{default:m(()=>[s(c,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(d,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=_=>e.drawer=_),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[J(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var et=V(We,[["render",xe],["__scopeId","data-v-234cfb9c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Luma.vue"]]);const tt=I({name:"EnhancementSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.enhancement},set(e){var t;console.debug("set enhancement",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{enhancement:e}))}}},mounted(){this.value===void 0&&(this.value=Ae)}}),ot={class:"field"},st={class:"title"};function nt(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",ot,[a("h2",st,i(e.$t("luma.name.enhancement")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.enhancement"),class:"info"},null,8,["content"])])}var at=V(tt,[["render",nt],["__scopeId","data-v-175365a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EnhancementSelector.vue"]]);const lt=I({name:"CustomSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{custom:e}))}}},mounted(){this.value===void 0&&(this.value=Te)}}),it={class:"field"},rt={class:"title"};function ct(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",it,[a("h2",rt,i(e.$t("luma.name.custom")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.custom"),class:"info"},null,8,["content"])])}var ut=V(lt,[["render",ct],["__scopeId","data-v-5ac2addb"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/CustomSelector.vue"]]);const dt=I({name:"LoopSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.loop},set(e){var t;console.debug("set loop",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{loop:e}))}}},mounted(){this.value===void 0&&(this.value=Ge)}}),mt={class:"field"},pt={class:"title"};function _t(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",mt,[a("h2",pt,i(e.$t("luma.name.loop")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.loop"),class:"info"},null,8,["content"])])}var ft=V(dt,[["render",_t],["__scopeId","data-v-69cccd4e"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/LoopSelector.vue"]]);const ht=I({name:"ContentInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.end_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{end_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadEndImageExceed"))},onError(){y.error(this.$t("luma.message.uploadEndImageError"))},onSetEndImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{end_image_url:e}))},async onSuccess(){this.onSetEndImageUrl()}}}),vt={class:"field"},gt={class:"title"},$t={class:"upload-wrapper"};function yt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",vt,[a("h2",gt,i(e.$t("luma.name.endImageUrl")),1),a("div",$t,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadEndImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.endImageUrl"),class:"info"},null,8,["content"])])}var bt=V(ht,[["render",yt],["__scopeId","data-v-97900bb4"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EndImageUrlInput.vue"]]);const wt=I({name:"StartImageUrlInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.start_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{start_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadStartImageExceed"))},onError(){y.error(this.$t("luma.message.uploadStartImageError"))},async onRemove(){y.error(this.$t("luma.message.uploadStartImageError"))},onSetStartImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{start_image_url:e}))},async onSuccess(){this.onSetStartImageUrl()}}}),kt={class:"field"},Vt={class:"title"},It={class:"upload-wrapper"};function St(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",kt,[a("h2",Vt,i(e.$t("luma.name.startImageUrl")),1),a("div",It,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadStartImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])]),s(d,{content:e.$t("luma.description.startImageUrl"),class:"info"},null,8,["content"])])}var Et=V(wt,[["render",St],["__scopeId","data-v-5440a4bf"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/StartImageUrlInput.vue"]]);const Ut=I({name:"UploadVideo",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.video_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{video_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetVideoUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadVideoExceed"))},onError(){y.error(this.$t("luma.message.uploadVideoError"))},beforeUpload(e){const t=e.type==="video/mp4",o=e.size/1024/1024<10;return t?o?!0:(y.error(this.$t("luma.message.uploadVideoSizeExceed")),!1):(y.error(this.$t("luma.message.uploadVideoTypeFailed")),!1)},onSetVideoUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_url:e,action:"extend"}))},async onSuccess(){this.onSetVideoUrl()}}}),Ct={class:"field"},Pt={class:"title"},Lt={class:"upload-wrapper"};function Nt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",Ct,[a("h2",Pt,i(e.$t("luma.name.videoUrl")),1),a("div",Lt,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".mp4",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadVideoUrl")),1)]),_:1})]),_:1},8,["file-list","action","before-upload","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.videoUrl"),class:"info"},null,8,["content"])])}var At=V(Ut,[["render",Nt],["__scopeId","data-v-46c66c9f"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/UploadVideo.vue"]]);const Tt="",Gt=I({name:"PromptInput",components:{ElInput:Oe,InfoIcon:R},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=Tt)}}),Rt={class:"field"},Dt={class:"box"},zt={class:"title"};function Ot(e,t,o,l,f,v){const c=n("info-icon"),u=n("el-input");return r(),p("div",Rt,[a("div",Dt,[a("h2",zt,i(e.$t("luma.name.prompt")),1),s(c,{content:e.$t("luma.description.prompt"),class:"info"},null,8,["content"])]),s(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=d=>e.prompt=d),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("luma.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Ft=V(Gt,[["render",Ot],["__scopeId","data-v-19a7446b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/PromptInput.vue"]]);const jt=I({name:"ExtendFromInput",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}},computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}}}),Bt={class:"field"},qt={class:"box"},Mt={class:"title"},Ht={class:"task"},Kt=["data-poster"],Jt=["src"];function Qt(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",Bt,[a("div",qt,[a("h2",Mt,i(e.$t("luma.name.extend")),1)]),a("div",Ht,[a("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(u=e.config)==null?void 0:u.thumbnail_url},[a("source",{size:"1080",src:(d=e.config)==null?void 0:d.video_url,type:"video/mp4"},null,8,Jt)],8,Kt)]}),_:1},8,["options"])])])])}var Wt=V(jt,[["render",Qt],["__scopeId","data-v-1cefb16b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/ExtendFromInput.vue"]]);const Xt=I({name:"PresetPanel",components:{LoopSelector:ft,StartImageUrlInput:Et,EndImageUrlInput:bt,EnhancementSelector:at,ElButton:D,FontAwesomeIcon:Q,PromptInput:Ft,ExtendFromInput:Wt,CustomSelector:ut,UploadVideo:At},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Yt={class:"panel"},Zt={class:"config"},xt={class:"actions"};function eo(e,t,o,l,f,v){var N,U,G,z,O,F,j,B,q;const c=n("extend-from-input"),u=n("prompt-input"),d=n("custom-selector"),_=n("upload-video"),$=n("start-image-url-input"),E=n("end-image-url-input"),C=n("enhancement-selector"),T=n("loop-selector"),P=n("font-awesome-icon"),L=n("el-button");return r(),p("div",Yt,[a("div",Zt,[((N=e.config)==null?void 0:N.video_id)||((U=e.config)==null?void 0:U.video_url)?(r(),A(c,{key:0,class:"mb-4"})):h("v-if",!0),s(u,{class:"mb-4"}),(G=e.config)!=null&&G.video_id?h("v-if",!0):(r(),A(d,{key:1,class:"mb-4"})),(z=e.config)!=null&&z.custom?(r(),A(_,{key:2,class:"mb-4"})):h("v-if",!0),!(((O=e.config)==null?void 0:O.video_id)||((F=e.config)==null?void 0:F.video_url))&&!((j=e.config)!=null&&j.custom)?(r(),A($,{key:3,class:"mb-4"})):h("v-if",!0),s(E,{class:"mb-4"}),s(C,{class:"mb-4"}),s(T,{class:"mb-4"}),a("div",xt,[((B=e.config)==null?void 0:B.video_url)!==void 0||((q=e.config)==null?void 0:q.custom)?(r(),A(L,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.extend")),1)]),_:1},8,["onClick"])):(r(),A(L,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.generate")),1)]),_:1},8,["onClick"]))])])])}var to=V(Xt,[["render",eo],["__scopeId","data-v-951b4cc0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/ConfigPanel.vue"]]);const oo=I({name:"VideoPlayer",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),so=["data-poster"],no=["src"];function ao(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d,_,$;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(d=(u=e.modelValue)==null?void 0:u.response)==null?void 0:d.thumbnail_url},[a("source",{size:"1080",src:($=(_=e.modelValue)==null?void 0:_.response)==null?void 0:$.video_url,type:"video/mp4"},null,8,no)],8,so)]}),_:1},8,["options"])])}var lo=V(oo,[["render",ao],["__scopeId","data-v-759e400c"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/VideoPlayer.vue"]]);const io=I({name:"TaskPreview",components:{ElImage:Fe,CopyToClipboard:Qe,FontAwesomeIcon:Q,ElAlert:je,VideoPlayer:lo,ElTooltip:Be,ElButton:D},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.luma)==null?void 0:e.application},config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onExtend(e,t){var o;e.stopPropagation(),console.debug("set config",t),this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_id:t.video_id,prompt:t.prompt,action:"extend",thumbnail_url:t.thumbnail_url,video_url:t.video_url}))},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),l=o.searchParams.get("retry");if(!l)o.searchParams.set("retry","1");else if(parseInt(l)<2)o.searchParams.set("retry",(parseInt(l)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ro={class:"preview"},co={class:"left"},uo={class:"main"},mo={class:"bot"},po={class:"datetime"},_o={class:"info"},fo={key:0,class:"prompt mt-2"},ho={key:0},vo={key:1},go={key:0,class:H({content:!0,failed:!0})},$o={class:"image-wrapper"},yo={key:0,class:H({operations:!0,"mt-2":!0})},bo={class:"description"},wo={key:1,class:H({content:!0})},ko={class:"description"},Vo={class:"description"},Io={class:"description"},So={key:2,class:H({content:!0})},Eo={class:"description"};function Uo(e,t,o,l,f,v){var T,P,L,N,U,G,z,O,F,j,B,q,Z,x,ee,te,oe,se,ne,ae,le,ie,re,ce,ue,de,me,pe;const c=n("el-image"),u=n("VideoPlayer"),d=n("el-button"),_=n("el-tooltip"),$=n("font-awesome-icon"),E=n("copy-to-clipboard"),C=n("el-alert");return r(),p("div",ro,[a("div",co,[s(c,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),a("div",uo,[a("div",mo,[g(i(e.$t("luma.name.lumaBot"))+" ",1),a("span",po,i(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),a("div",_o,[(L=(P=e.modelValue)==null?void 0:P.request)!=null&&L.prompt?(r(),p("p",fo,[g(i((U=(N=e.modelValue)==null?void 0:N.request)==null?void 0:U.prompt)+" ",1),(G=e.modelValue)!=null&&G.response?h("v-if",!0):(r(),p("span",ho," - ("+i(e.$t("luma.status.pending"))+") ",1)),((F=(O=(z=e.modelValue)==null?void 0:z.response)==null?void 0:O.data)==null?void 0:F.state)==="processing"||((q=(B=(j=e.modelValue)==null?void 0:j.response)==null?void 0:B.data)==null?void 0:q.state)==="pending"||((ee=(x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.data)==null?void 0:ee.state)==="completed"?(r(),p("span",vo," - ("+i(e.$t("luma.status.processing"))+") ",1)):h("v-if",!0)])):h("v-if",!0)]),h(" Display success message "),((oe=(te=e.modelValue)==null?void 0:te.response)==null?void 0:oe.success)===!0?(r(),p("div",go,[a("div",$o,[s(u,{"model-value":e.modelValue},null,8,["model-value"])]),((se=e.modelValue)==null?void 0:se.response)&&!((ne=e.config)!=null&&ne.custom)?(r(),p("div",yo,[s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.extendVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=S=>{var b;return e.onExtend(S,(b=e.modelValue)==null?void 0:b.response)})},{default:m(()=>[g(i(e.$t("luma.button.extend")),1)]),_:1})]),_:1},8,["content"]),s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.downloadVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[1]||(t[1]=S=>{var b,M;return e.onDownload(S,(M=(b=e.modelValue)==null?void 0:b.response)==null?void 0:M.video_url)})},{default:m(()=>[g(i(e.$t("luma.button.download")),1)]),_:1})]),_:1},8,["content"])])):h("v-if",!0),s(C,{closable:!1,class:"mt-2 success"},{default:m(()=>{var S,b;return[a("p",bo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),((le=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:le.success)===!1?(r(),p("div",wo,[s(C,{closable:!1,class:"failure"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b,M,_e,fe,he,ve,ge,$e,ye,be,we;return[a("p",ko,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),a("p",Vo,[s($,{icon:"fa-solid fa-circle-info",class:"mr-1"}),g(" "+i(e.$t("luma.name.failureReason"))+": "+i((fe=(_e=(M=e.modelValue)==null?void 0:M.response)==null?void 0:_e.error)==null?void 0:fe.message)+" ",1),s(E,{content:(ge=(ve=(he=e.modelValue)==null?void 0:he.response)==null?void 0:ve.error)==null?void 0:ge.message,class:"btn-copy"},null,8,["content"])]),a("p",Io,[s($,{icon:"fa-solid fa-hashtag",class:"mr-1"}),g(" "+i(e.$t("luma.name.traceId"))+": "+i((ye=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:ye.trace_id)+" ",1),s(E,{content:(we=(be=e.modelValue)==null?void 0:be.response)==null?void 0:we.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),!((ie=e.modelValue)!=null&&ie.response)||((ue=(ce=(re=e.modelValue)==null?void 0:re.response)==null?void 0:ce.data)==null?void 0:ue.state)==="processing"||((pe=(me=(de=e.modelValue)==null?void 0:de.response)==null?void 0:me.data)==null?void 0:pe.state)==="pending"?(r(),p("div",So,[s(C,{closable:!1,class:"info"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b;return[a("p",Eo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0)])])}var Co=V(io,[["render",Uo],["__scopeId","data-v-077795a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/task/Preview.vue"]]);const Po=I({name:"RecentPanel",components:{TaskPreview:Co,ElSkeleton:qe,ElSkeletonItem:Me},data(){return{job:0}},computed:{tasks(){var e,t,o,l;return k(w({},(e=this.$store.state.luma)==null?void 0:e.tasks),{items:(l=(o=(t=this.$store.state.luma)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:l.slice().reverse()})}}}),Lo={class:"panel recent"},No={key:0,class:"tasks"},Ao={class:"left"},To={class:"main"},Go={key:1,class:"tasks"},Ro={key:2,class:"description"};function Do(e,t,o,l,f,v){var _,$,E,C,T,P,L,N;const c=n("el-skeleton-item"),u=n("el-skeleton"),d=n("task-preview");return r(),p("div",Lo,[((_=e.tasks)==null?void 0:_.items)===void 0?(r(),p("div",No,[(r(),p(Ie,null,Se(3,U=>a("div",{key:U,class:"task placeholder"},[a("div",Ao,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"image",class:"avatar"})]),_:1})]),a("div",To,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"p",class:"title"}),s(c,{variant:"image",class:"icon"})]),_:1})])])),64))])):((E=($=e.tasks)==null?void 0:$.items)==null?void 0:E.length)&&((T=(C=e.tasks)==null?void 0:C.items)==null?void 0:T.length)>0?(r(),p("div",Go,[(r(!0),p(Ie,null,Se((P=e.tasks)==null?void 0:P.items,(U,G)=>(r(),A(d,{key:G,"model-value":U,class:"preview"},null,8,["model-value"]))),128))])):h("v-if",!0),((N=(L=e.tasks)==null?void 0:L.items)==null?void 0:N.length)===0?(r(),p("p",Ro,i(e.$t("luma.message.noTasks")),1)):h("v-if",!0)])}var zo=V(Po,[["render",Do],["__scopeId","data-v-2f8302a7"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/RecentPanel.vue"]]);const Oo="https://webhook.acedata.cloud/luma",Fo=I({name:"LumaIndex",components:{ConfigPanel:to,Layout:et,ApplicationStatus:He,RecentPanel:zo},data(){return{task:void 0,job:0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.luma)==null?void 0:e.status)==null?void 0:t.getApplications)===K.Request},service(){return this.$store.state.luma.service},credential(){return this.$store.state.luma.credential},config(){return this.$store.state.luma.config},initializing(){return this.$store.state.luma.status.getApplications===K.Request},needApply(){return this.$store.state.luma.status.getApplications===K.Success&&!this.application},application(){return this.$store.state.luma.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("luma/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("luma/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){Re.create({application:this.application}).then(({data:e})=>{this.application=e,y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Ke&&y.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("luma/getTasks",{limit:30,offset:0})},async onGenerateVideo(){var o;const e=k(w({},this.config),{callback_url:Oo}),t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}y.info(this.$t("luma.message.startingTask")),De.generate(e,{token:t}).then(()=>{y.success(this.$t("luma.message.startTaskSuccess")),this.$store.commit("luma/setConfig",{config:void 0})}).catch(l=>{var v,c;const f=(v=l==null?void 0:l.response)==null?void 0:v.data;((c=f==null?void 0:f.error)==null?void 0:c.code)===Je?y.error(this.$t("luma.message.usedUp")):y.error(this.$t("luma.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function jo(e,t,o,l,f,v){const c=n("config-panel"),u=n("application-status"),d=n("recent-panel"),_=n("layout");return r(),A(_,null,{config:m(()=>[s(c,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:m(()=>[s(u,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),s(d,{class:"panel recent"}),h(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var xo=V(Fo,[["render",jo],["__scopeId","data-v-c45e0af8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/luma/Index.vue"]]);export{xo as default};
|
|
1
|
+
var Ue=Object.defineProperty,Ce=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ve=(e,t,o)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))Le.call(t,o)&&Ve(e,o,t[o]);if(ke)for(var o of ke(t))Ne.call(t,o)&&Ve(e,o,t[o]);return e},k=(e,t)=>Ce(e,Pe(t));import{J as Ee}from"./vendor-others.de6317ed.js";import{an as Q}from"./vendor-fortawesome.1cce8f50.js";import{_ as V,at as Ae,au as Te,av as Ge,K as W,V as K,B as Re,aw as De}from"./index.51b4aed7.js";import{P as ze,l as D,T as X,O as Y,M as y,N as Oe,s as Fe,F as je,u as Be,C as qe,R as Me}from"./vendor-element-plus.efc1b383.js";import{H as I,al as n,o as r,e as p,f as a,I as J,V as s,M as m,U as i,T as g,L as A,S as h,Q as H,W as Ie,ai as Se}from"./vendor-@vue.34786d41.js";import{I as R}from"./InfoIcon.23e9d3f1.js";import{A as He,i as Ke,h as Je}from"./Status.a33ad639.js";import{C as Qe}from"./CopyToClipboard.c791184c.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const We=I({name:"LayoutLuma",components:{ElDrawer:ze,ElButton:D,FontAwesomeIcon:Q},data(){return{drawer:!1}}}),Xe={class:"main"},Ye={class:"config"},Ze={class:"result"};function xe(e,t,o,l,f,v){const c=n("font-awesome-icon"),u=n("el-button"),d=n("el-drawer");return r(),p("div",Xe,[a("div",Ye,[J(e.$slots,"config",{},void 0,!0)]),a("div",Ze,[J(e.$slots,"result",{},void 0,!0)]),s(u,{round:"",class:"menu",onClick:t[0]||(t[0]=_=>e.drawer=!0)},{default:m(()=>[s(c,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(d,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=_=>e.drawer=_),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[J(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var et=V(We,[["render",xe],["__scopeId","data-v-234cfb9c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Luma.vue"]]);const tt=I({name:"EnhancementSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.enhancement},set(e){var t;console.debug("set enhancement",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{enhancement:e}))}}},mounted(){this.value===void 0&&(this.value=Ae)}}),ot={class:"field"},st={class:"title"};function nt(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",ot,[a("h2",st,i(e.$t("luma.name.enhancement")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.enhancement"),class:"info"},null,8,["content"])])}var at=V(tt,[["render",nt],["__scopeId","data-v-175365a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EnhancementSelector.vue"]]);const lt=I({name:"CustomSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{custom:e}))}}},mounted(){this.value===void 0&&(this.value=Te)}}),it={class:"field"},rt={class:"title"};function ct(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",it,[a("h2",rt,i(e.$t("luma.name.custom")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.custom"),class:"info"},null,8,["content"])])}var ut=V(lt,[["render",ct],["__scopeId","data-v-5ac2addb"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/CustomSelector.vue"]]);const dt=I({name:"LoopSelector",components:{ElSwitch:X,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.loop},set(e){var t;console.debug("set loop",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{loop:e}))}}},mounted(){this.value===void 0&&(this.value=Ge)}}),mt={class:"field"},pt={class:"title"};function _t(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",mt,[a("h2",pt,i(e.$t("luma.name.loop")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.loop"),class:"info"},null,8,["content"])])}var ft=V(dt,[["render",_t],["__scopeId","data-v-69cccd4e"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/LoopSelector.vue"]]);const ht=I({name:"ContentInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.end_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{end_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadEndImageExceed"))},onError(){y.error(this.$t("luma.message.uploadEndImageError"))},onSetEndImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{end_image_url:e}))},async onSuccess(){this.onSetEndImageUrl()}}}),vt={class:"field"},gt={class:"title"},$t={class:"upload-wrapper"};function yt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",vt,[a("h2",gt,i(e.$t("luma.name.endImageUrl")),1),a("div",$t,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadEndImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.endImageUrl"),class:"info"},null,8,["content"])])}var bt=V(ht,[["render",yt],["__scopeId","data-v-97900bb4"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EndImageUrlInput.vue"]]);const wt=I({name:"StartImageUrlInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.start_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{start_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadStartImageExceed"))},onError(){y.error(this.$t("luma.message.uploadStartImageError"))},async onRemove(){y.error(this.$t("luma.message.uploadStartImageError"))},onSetStartImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{start_image_url:e}))},async onSuccess(){this.onSetStartImageUrl()}}}),kt={class:"field"},Vt={class:"title"},It={class:"upload-wrapper"};function St(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",kt,[a("h2",Vt,i(e.$t("luma.name.startImageUrl")),1),a("div",It,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadStartImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])]),s(d,{content:e.$t("luma.description.startImageUrl"),class:"info"},null,8,["content"])])}var Et=V(wt,[["render",St],["__scopeId","data-v-5440a4bf"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/StartImageUrlInput.vue"]]);const Ut=I({name:"UploadVideo",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.video_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{video_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetVideoUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadVideoExceed"))},onError(){y.error(this.$t("luma.message.uploadVideoError"))},beforeUpload(e){const t=e.type==="video/mp4",o=e.size/1024/1024<10;return t?o?!0:(y.error(this.$t("luma.message.uploadVideoSizeExceed")),!1):(y.error(this.$t("luma.message.uploadVideoTypeFailed")),!1)},onSetVideoUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_url:e,action:"extend"}))},async onSuccess(){this.onSetVideoUrl()}}}),Ct={class:"field"},Pt={class:"title"},Lt={class:"upload-wrapper"};function Nt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",Ct,[a("h2",Pt,i(e.$t("luma.name.videoUrl")),1),a("div",Lt,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".mp4",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadVideoUrl")),1)]),_:1})]),_:1},8,["file-list","action","before-upload","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.videoUrl"),class:"info"},null,8,["content"])])}var At=V(Ut,[["render",Nt],["__scopeId","data-v-46c66c9f"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/UploadVideo.vue"]]);const Tt="",Gt=I({name:"PromptInput",components:{ElInput:Oe,InfoIcon:R},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=Tt)}}),Rt={class:"field"},Dt={class:"box"},zt={class:"title"};function Ot(e,t,o,l,f,v){const c=n("info-icon"),u=n("el-input");return r(),p("div",Rt,[a("div",Dt,[a("h2",zt,i(e.$t("luma.name.prompt")),1),s(c,{content:e.$t("luma.description.prompt"),class:"info"},null,8,["content"])]),s(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=d=>e.prompt=d),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("luma.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Ft=V(Gt,[["render",Ot],["__scopeId","data-v-19a7446b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/PromptInput.vue"]]);const jt=I({name:"ExtendFromInput",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}},computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}}}),Bt={class:"field"},qt={class:"box"},Mt={class:"title"},Ht={class:"task"},Kt=["data-poster"],Jt=["src"];function Qt(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",Bt,[a("div",qt,[a("h2",Mt,i(e.$t("luma.name.extend")),1)]),a("div",Ht,[a("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(u=e.config)==null?void 0:u.thumbnail_url},[a("source",{size:"1080",src:(d=e.config)==null?void 0:d.video_url,type:"video/mp4"},null,8,Jt)],8,Kt)]}),_:1},8,["options"])])])])}var Wt=V(jt,[["render",Qt],["__scopeId","data-v-1cefb16b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/ExtendFromInput.vue"]]);const Xt=I({name:"PresetPanel",components:{LoopSelector:ft,StartImageUrlInput:Et,EndImageUrlInput:bt,EnhancementSelector:at,ElButton:D,FontAwesomeIcon:Q,PromptInput:Ft,ExtendFromInput:Wt,CustomSelector:ut,UploadVideo:At},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Yt={class:"panel"},Zt={class:"config"},xt={class:"actions"};function eo(e,t,o,l,f,v){var N,U,G,z,O,F,j,B,q;const c=n("extend-from-input"),u=n("prompt-input"),d=n("custom-selector"),_=n("upload-video"),$=n("start-image-url-input"),E=n("end-image-url-input"),C=n("enhancement-selector"),T=n("loop-selector"),P=n("font-awesome-icon"),L=n("el-button");return r(),p("div",Yt,[a("div",Zt,[((N=e.config)==null?void 0:N.video_id)||((U=e.config)==null?void 0:U.video_url)?(r(),A(c,{key:0,class:"mb-4"})):h("v-if",!0),s(u,{class:"mb-4"}),(G=e.config)!=null&&G.video_id?h("v-if",!0):(r(),A(d,{key:1,class:"mb-4"})),(z=e.config)!=null&&z.custom?(r(),A(_,{key:2,class:"mb-4"})):h("v-if",!0),!(((O=e.config)==null?void 0:O.video_id)||((F=e.config)==null?void 0:F.video_url))&&!((j=e.config)!=null&&j.custom)?(r(),A($,{key:3,class:"mb-4"})):h("v-if",!0),s(E,{class:"mb-4"}),s(C,{class:"mb-4"}),s(T,{class:"mb-4"}),a("div",xt,[((B=e.config)==null?void 0:B.video_url)!==void 0||((q=e.config)==null?void 0:q.custom)?(r(),A(L,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.extend")),1)]),_:1},8,["onClick"])):(r(),A(L,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.generate")),1)]),_:1},8,["onClick"]))])])])}var to=V(Xt,[["render",eo],["__scopeId","data-v-951b4cc0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/ConfigPanel.vue"]]);const oo=I({name:"VideoPlayer",components:{VuePlyr:Ee},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),so=["data-poster"],no=["src"];function ao(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d,_,$;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(d=(u=e.modelValue)==null?void 0:u.response)==null?void 0:d.thumbnail_url},[a("source",{size:"1080",src:($=(_=e.modelValue)==null?void 0:_.response)==null?void 0:$.video_url,type:"video/mp4"},null,8,no)],8,so)]}),_:1},8,["options"])])}var lo=V(oo,[["render",ao],["__scopeId","data-v-759e400c"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/VideoPlayer.vue"]]);const io=I({name:"TaskPreview",components:{ElImage:Fe,CopyToClipboard:Qe,FontAwesomeIcon:Q,ElAlert:je,VideoPlayer:lo,ElTooltip:Be,ElButton:D},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.luma)==null?void 0:e.application},config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onExtend(e,t){var o;e.stopPropagation(),console.debug("set config",t),this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_id:t.video_id,prompt:t.prompt,action:"extend",thumbnail_url:t.thumbnail_url,video_url:t.video_url}))},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),l=o.searchParams.get("retry");if(!l)o.searchParams.set("retry","1");else if(parseInt(l)<2)o.searchParams.set("retry",(parseInt(l)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ro={class:"preview"},co={class:"left"},uo={class:"main"},mo={class:"bot"},po={class:"datetime"},_o={class:"info"},fo={key:0,class:"prompt mt-2"},ho={key:0},vo={key:1},go={key:0,class:H({content:!0,failed:!0})},$o={class:"image-wrapper"},yo={key:0,class:H({operations:!0,"mt-2":!0})},bo={class:"description"},wo={key:1,class:H({content:!0})},ko={class:"description"},Vo={class:"description"},Io={class:"description"},So={key:2,class:H({content:!0})},Eo={class:"description"};function Uo(e,t,o,l,f,v){var T,P,L,N,U,G,z,O,F,j,B,q,Z,x,ee,te,oe,se,ne,ae,le,ie,re,ce,ue,de,me,pe;const c=n("el-image"),u=n("VideoPlayer"),d=n("el-button"),_=n("el-tooltip"),$=n("font-awesome-icon"),E=n("copy-to-clipboard"),C=n("el-alert");return r(),p("div",ro,[a("div",co,[s(c,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),a("div",uo,[a("div",mo,[g(i(e.$t("luma.name.lumaBot"))+" ",1),a("span",po,i(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),a("div",_o,[(L=(P=e.modelValue)==null?void 0:P.request)!=null&&L.prompt?(r(),p("p",fo,[g(i((U=(N=e.modelValue)==null?void 0:N.request)==null?void 0:U.prompt)+" ",1),(G=e.modelValue)!=null&&G.response?h("v-if",!0):(r(),p("span",ho," - ("+i(e.$t("luma.status.pending"))+") ",1)),((F=(O=(z=e.modelValue)==null?void 0:z.response)==null?void 0:O.data)==null?void 0:F.state)==="processing"||((q=(B=(j=e.modelValue)==null?void 0:j.response)==null?void 0:B.data)==null?void 0:q.state)==="pending"||((ee=(x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.data)==null?void 0:ee.state)==="completed"?(r(),p("span",vo," - ("+i(e.$t("luma.status.processing"))+") ",1)):h("v-if",!0)])):h("v-if",!0)]),h(" Display success message "),((oe=(te=e.modelValue)==null?void 0:te.response)==null?void 0:oe.success)===!0?(r(),p("div",go,[a("div",$o,[s(u,{"model-value":e.modelValue},null,8,["model-value"])]),((se=e.modelValue)==null?void 0:se.response)&&!((ne=e.config)!=null&&ne.custom)?(r(),p("div",yo,[s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.extendVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=S=>{var b;return e.onExtend(S,(b=e.modelValue)==null?void 0:b.response)})},{default:m(()=>[g(i(e.$t("luma.button.extend")),1)]),_:1})]),_:1},8,["content"]),s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.downloadVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[1]||(t[1]=S=>{var b,M;return e.onDownload(S,(M=(b=e.modelValue)==null?void 0:b.response)==null?void 0:M.video_url)})},{default:m(()=>[g(i(e.$t("luma.button.download")),1)]),_:1})]),_:1},8,["content"])])):h("v-if",!0),s(C,{closable:!1,class:"mt-2 success"},{default:m(()=>{var S,b;return[a("p",bo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),((le=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:le.success)===!1?(r(),p("div",wo,[s(C,{closable:!1,class:"failure"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b,M,_e,fe,he,ve,ge,$e,ye,be,we;return[a("p",ko,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),a("p",Vo,[s($,{icon:"fa-solid fa-circle-info",class:"mr-1"}),g(" "+i(e.$t("luma.name.failureReason"))+": "+i((fe=(_e=(M=e.modelValue)==null?void 0:M.response)==null?void 0:_e.error)==null?void 0:fe.message)+" ",1),s(E,{content:(ge=(ve=(he=e.modelValue)==null?void 0:he.response)==null?void 0:ve.error)==null?void 0:ge.message,class:"btn-copy"},null,8,["content"])]),a("p",Io,[s($,{icon:"fa-solid fa-hashtag",class:"mr-1"}),g(" "+i(e.$t("luma.name.traceId"))+": "+i((ye=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:ye.trace_id)+" ",1),s(E,{content:(we=(be=e.modelValue)==null?void 0:be.response)==null?void 0:we.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),!((ie=e.modelValue)!=null&&ie.response)||((ue=(ce=(re=e.modelValue)==null?void 0:re.response)==null?void 0:ce.data)==null?void 0:ue.state)==="processing"||((pe=(me=(de=e.modelValue)==null?void 0:de.response)==null?void 0:me.data)==null?void 0:pe.state)==="pending"?(r(),p("div",So,[s(C,{closable:!1,class:"info"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var S,b;return[a("p",Eo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((S=e.modelValue)==null?void 0:S.id)+" ",1),s(E,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0)])])}var Co=V(io,[["render",Uo],["__scopeId","data-v-077795a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/task/Preview.vue"]]);const Po=I({name:"RecentPanel",components:{TaskPreview:Co,ElSkeleton:qe,ElSkeletonItem:Me},data(){return{job:0}},computed:{tasks(){var e,t,o,l;return k(w({},(e=this.$store.state.luma)==null?void 0:e.tasks),{items:(l=(o=(t=this.$store.state.luma)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:l.slice().reverse()})}}}),Lo={class:"panel recent"},No={key:0,class:"tasks"},Ao={class:"left"},To={class:"main"},Go={key:1,class:"tasks"},Ro={key:2,class:"description"};function Do(e,t,o,l,f,v){var _,$,E,C,T,P,L,N;const c=n("el-skeleton-item"),u=n("el-skeleton"),d=n("task-preview");return r(),p("div",Lo,[((_=e.tasks)==null?void 0:_.items)===void 0?(r(),p("div",No,[(r(),p(Ie,null,Se(3,U=>a("div",{key:U,class:"task placeholder"},[a("div",Ao,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"image",class:"avatar"})]),_:1})]),a("div",To,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"p",class:"title"}),s(c,{variant:"image",class:"icon"})]),_:1})])])),64))])):((E=($=e.tasks)==null?void 0:$.items)==null?void 0:E.length)&&((T=(C=e.tasks)==null?void 0:C.items)==null?void 0:T.length)>0?(r(),p("div",Go,[(r(!0),p(Ie,null,Se((P=e.tasks)==null?void 0:P.items,(U,G)=>(r(),A(d,{key:G,"model-value":U,class:"preview"},null,8,["model-value"]))),128))])):h("v-if",!0),((N=(L=e.tasks)==null?void 0:L.items)==null?void 0:N.length)===0?(r(),p("p",Ro,i(e.$t("luma.message.noTasks")),1)):h("v-if",!0)])}var zo=V(Po,[["render",Do],["__scopeId","data-v-2f8302a7"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/RecentPanel.vue"]]);const Oo="https://webhook.acedata.cloud/luma",Fo=I({name:"LumaIndex",components:{ConfigPanel:to,Layout:et,ApplicationStatus:He,RecentPanel:zo},data(){return{task:void 0,job:0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.luma)==null?void 0:e.status)==null?void 0:t.getApplications)===K.Request},service(){return this.$store.state.luma.service},credential(){return this.$store.state.luma.credential},config(){return this.$store.state.luma.config},initializing(){return this.$store.state.luma.status.getApplications===K.Request},needApply(){return this.$store.state.luma.status.getApplications===K.Success&&!this.application},application(){return this.$store.state.luma.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("luma/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("luma/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){Re.create({application:this.application}).then(({data:e})=>{this.application=e,y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Ke&&y.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("luma/getTasks",{limit:30,offset:0})},async onGenerateVideo(){var o;const e=k(w({},this.config),{callback_url:Oo}),t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}y.info(this.$t("luma.message.startingTask")),De.generate(e,{token:t}).then(()=>{y.success(this.$t("luma.message.startTaskSuccess")),this.$store.commit("luma/setConfig",{config:void 0})}).catch(l=>{var v,c;const f=(v=l==null?void 0:l.response)==null?void 0:v.data;((c=f==null?void 0:f.error)==null?void 0:c.code)===Je?y.error(this.$t("luma.message.usedUp")):y.error(this.$t("luma.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function jo(e,t,o,l,f,v){const c=n("config-panel"),u=n("application-status"),d=n("recent-panel"),_=n("layout");return r(),A(_,null,{config:m(()=>[s(c,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:m(()=>[s(u,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),s(d,{class:"panel recent"}),h(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var xo=V(Fo,[["render",jo],["__scopeId","data-v-c45e0af8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/luma/Index.vue"]]);export{xo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ie=Object.defineProperty,le=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var x=(e,i,u)=>i in e?ie(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,r=(e,i)=>{for(var u in i||(i={}))se.call(i,u)&&x(e,u,i[u]);if(Z)for(var u of Z(i))ne.call(i,u)&&x(e,u,i[u]);return e},p=(e,i)=>le(e,oe(i));import"./vendor-others.4f34a866.js";import{E as J,N as ee,l as R,X as P,a3 as Q,O as ae,M as z,b as de,D as re,i as ue,s as pe,h as me,r as fe,I as ce,T as ve,J as he}from"./vendor-element-plus.ddf5f024.js";import{_ as A,K as be,aA as ge}from"./index.daadea41.js";import{H as F,al as a,o as y,e as I,V as t,M as o,f as s,T as f,U as n,W as U,ai as te,L as q,as as $e,O as M,P as j,S as _e}from"./vendor-@vue.853aef6d.js";import{an as we}from"./vendor-fortawesome.f1998e53.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";const Ce=F({name:"EditText",components:{ElDialog:J,ElInput:ee,ElButton:R,ElIcon:P,Edit:Q},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue}},methods:{onCancel(){this.editing=!1},onConfirm(){this.$emit("confirm",this.value),this.editing=!1}}}),ke={class:"dialog-footer"};function ye(e,i,u,E,B,L){const C=a("el-input"),b=a("el-button"),c=a("el-dialog"),d=a("edit"),$=a("el-icon");return y(),I(U,null,[t(c,{modelValue:e.editing,"onUpdate:modelValue":i[1]||(i[1]=g=>e.editing=g),title:e.title,width:"400px"},{footer:o(()=>[s("span",ke,[t(b,{round:"",onClick:e.onCancel},{default:o(()=>[f(n(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),t(b,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[f(n(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",null,[t(C,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=g=>e.value=g),placeholder:e.placeholder},null,8,["modelValue","placeholder"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:i[2]||(i[2]=g=>e.editing=!0)},[t($,{class:"icon"},{default:o(()=>[t(d)]),_:1})])],64)}var Ve=A(Ce,[["render",ye],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditText.vue"]]);const Ee=F({name:"EditImage",components:{ElDialog:J,ElButton:R,FontAwesomeIcon:we,ElIcon:P,Edit:Q,ElUpload:ae},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},tip:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue,fileList:[],uploadUrl:be()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var i;return(i=e==null?void 0:e.response)==null?void 0:i.file_url})}},methods:{onCancel(){this.editing=!1},onConfirm(){var e;this.$emit("confirm",(e=this.urls)==null?void 0:e[0]),this.editing=!1},onExceed(){z.warning(this.$t("site.message.uploadImageExceed"))},onError(){z.error(this.$t("site.message.uploadImageError"))}}}),Ie={class:"el-upload__tip"},Se={class:"dialog-footer"};function Te(e,i,u,E,B,L){const C=a("font-awesome-icon"),b=a("el-button"),c=a("el-upload"),d=a("el-dialog"),$=a("edit"),g=a("el-icon");return y(),I(U,null,[t(d,{modelValue:e.editing,"onUpdate:modelValue":i[1]||(i[1]=m=>e.editing=m),title:e.title,width:"400px"},{footer:o(()=>[s("span",Se,[t(b,{round:"",onClick:e.onCancel},{default:o(()=>[f(n(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),t(b,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[f(n(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",null,[t(c,{"file-list":e.fileList,"onUpdate:file-list":i[0]||(i[0]=m=>e.fileList=m),name:"file",limit:5,multiple:!0,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{tip:o(()=>[s("div",Ie,n(e.tip),1)]),default:o(()=>[t(b,{round:"",type:"primary",class:"btn btn-upload"},{default:o(()=>[t(C,{icon:"fa-solid fa-upload",class:"icon mr-2"}),f(" "+n(e.$t("site.button.upload")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","headers"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:i[2]||(i[2]=m=>e.editing=!0)},[t(g,{class:"icon"},{default:o(()=>[t($)]),_:1})])],64)}var Ue=A(Ee,[["render",Te],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditImage.vue"]]);const Ne=F({name:"EditText",components:{ElDialog:J,ElInput:ee,ElButton:R,ElIcon:P,ElTag:de,Edit:Q},props:{modelValue:{type:Array,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0},tip:{type:String,default:void 0},min:{type:Number,default:void 0},minErrorMessage:{type:String,default:void 0}},emits:["confirm","cancel"],data(){return{inputVisible:!1,inputValue:"",editing:!1,value:JSON.parse(JSON.stringify(this.modelValue))}},methods:{onCancel(){this.editing=!1},onConfirm(){if(this.min!==void 0&&this.value.length<this.min){z.error(this.minErrorMessage);return}this.$emit("confirm",this.value),this.editing=!1},onClose(e){this.value.splice(this.value.indexOf(e),1)},onInputConfirm(){const e=this.inputValue;e&&this.value.push(e),this.inputVisible=!1,this.inputValue=""},onNewItem(){this.inputVisible=!0,this.$nextTick(()=>{this.$refs.input.focus()})}}}),De=f(" + "),qe={class:"block tip"},Ae={class:"dialog-footer"};function Fe(e,i,u,E,B,L){const C=a("el-tag"),b=a("el-input"),c=a("el-button"),d=a("el-dialog"),$=a("edit"),g=a("el-icon");return y(),I(U,null,[t(d,{modelValue:e.editing,"onUpdate:modelValue":i[1]||(i[1]=m=>e.editing=m),title:e.title,width:"400px"},{footer:o(()=>[s("span",Ae,[t(c,{round:"",onClick:e.onCancel},{default:o(()=>[f(n(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),t(c,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[f(n(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[(y(!0),I(U,null,te(e.value,(m,N)=>(y(),q(C,{key:N,closable:"",round:"",class:"mr-2 mb-2","disable-transitions":!1,onClose:S=>e.onClose(m)},{default:o(()=>[f(n(m),1)]),_:2},1032,["onClose"]))),128)),e.inputVisible?(y(),q(b,{key:0,ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":i[0]||(i[0]=m=>e.inputValue=m),class:"block",size:"small",onKeyup:$e(e.onInputConfirm,["enter"]),onBlur:e.onInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):(y(),q(c,{key:1,round:"",class:"block",size:"small",onClick:e.onNewItem},{default:o(()=>[De]),_:1},8,["onClick"])),s("span",qe,n(e.tip),1)]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:i[2]||(i[2]=m=>e.editing=!0)},[t(g,{class:"icon"},{default:o(()=>[t($)]),_:1})])],64)}var Be=A(Ne,[["render",Fe],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditArray.vue"]]);const Le=F({name:"SiteIndex",components:{EditText:Ve,EditImage:Ue,EditArray:Be,ElDivider:re,ElRow:ue,ElImage:pe,ElCol:me,ElCard:fe,ElForm:ce,ElSwitch:ve,ElFormItem:he},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var u;const i=r(r({},this.site),e);ge.update((u=this.site)==null?void 0:u.id,i).then(()=>{var E;console.debug("getSite for id",(E=this.site)==null?void 0:E.id),this.$store.dispatch("getSite")})}}}),Oe={class:"title"},Ke={class:"title"},Me={class:"block w-full"},je={class:"block tip"},ze={class:"block w-full"},Je={class:"block tip"},Re={class:"block w-full"},Pe={class:"block tip"},Qe={class:"block w-full"},We={class:"block tip"},He={class:"block w-full"},Xe={class:"block tip"},Ge={class:"title"},Ye={class:"block w-full"},Ze={class:"block tip"},xe={class:"block w-full"},et={class:"block tip"},tt={class:"title"},it={class:"block tip"},lt={class:"block tip"},ot={class:"title"},st={class:"w-full"},nt={class:"block tip w-full"},at={key:0},dt={class:"block w-full"},rt={class:"block w-full"};function ut(e,i,u,E,B,L){const C=a("el-col"),b=a("el-row"),c=a("el-divider"),d=a("el-form-item"),$=a("edit-text"),g=a("el-image"),m=a("edit-image"),N=a("edit-array"),S=a("el-form"),D=a("el-card"),O=a("el-switch");return y(),q(b,{class:"panel"},{default:o(()=>[t(C,{span:24},{default:o(()=>[t(b,null,{default:o(()=>[t(C,{span:24},{default:o(()=>[s("h2",Oe,n(e.$t("common.title.site")),1)]),_:1})]),_:1}),t(b,{gutter:15},{default:o(()=>[t(C,{md:12,xs:24},{default:o(()=>[t(D,{shadow:"hover",class:"mb-4"},{default:o(()=>[s("h4",Ke,n(e.$t("site.title.basicConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[t(d,{label:e.$t("site.field.origin")},{default:o(()=>[s("span",Me,n(e.site.origin),1),s("span",je,n(e.$t("site.message.originTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.title")},{default:o(()=>[s("span",ze,[f(n(e.site.title)+" ",1),t($,{"model-value":e.site.title,title:e.$t("site.title.editTitle"),placeholder:e.$t("site.placeholder.title"),onConfirm:i[0]||(i[0]=l=>e.onSave({title:l}))},null,8,["model-value","title","placeholder"])]),s("span",Je,n(e.$t("site.message.titleTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.logo")},{default:o(()=>[s("span",Re,[t(g,{src:e.site.logo,class:"logo"},null,8,["src"]),t(m,{"model-value":e.site.logo,title:e.$t("site.title.editLogo"),tip:e.$t("site.message.editLogoTip"),onConfirm:i[1]||(i[1]=l=>e.onSave({logo:l}))},null,8,["model-value","title","tip"])]),s("span",Pe,n(e.$t("site.message.logoTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.favicon")},{default:o(()=>[s("span",Qe,[t(g,{src:e.site.favicon,class:"favicon"},null,8,["src"]),t(m,{"model-value":e.site.favicon,title:e.$t("site.title.editFavicon"),tip:e.$t("site.message.editFaviconTip"),onConfirm:i[2]||(i[2]=l=>e.onSave({favicon:l}))},null,8,["model-value","title","tip"])]),s("span",We,n(e.$t("site.message.faviconTip")),1)]),_:1},8,["label"]),t(c,{"border-style":"dashed"}),t(d,{label:e.$t("site.field.admins")},{default:o(()=>{var l,v;return[s("span",He,[f(n((l=e.site.admins)==null?void 0:l.join(", "))+" ",1),t(N,{"model-value":((v=e.site)==null?void 0:v.admins)||[],title:e.$t("site.title.editAdmins"),placeholder:e.$t("site.placeholder.admins"),tip:e.$t("site.message.adminsTip2"),min:1,"min-error-message":e.$t("site.message.atLeastOneAdmin"),onConfirm:i[3]||(i[3]=k=>e.onSave({admins:k}))},null,8,["model-value","title","placeholder","tip","min-error-message"])]),s("span",Xe,n(e.$t("site.message.adminsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),t(D,{shadow:"hover"},{default:o(()=>[s("h4",Ge,n(e.$t("site.title.seoConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[t(d,{label:e.$t("site.field.description")},{default:o(()=>[s("span",Ye,[f(n(e.site.description)+" ",1),t($,{"model-value":e.site.description,title:e.$t("site.title.editDescription"),placeholder:e.$t("site.placeholder.description"),onConfirm:i[4]||(i[4]=l=>e.onSave({description:l}))},null,8,["model-value","title","placeholder"])]),s("span",Ze,n(e.$t("site.message.descriptionTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.keywords")},{default:o(()=>{var l,v;return[s("span",xe,[f(n((l=e.site.keywords)==null?void 0:l.join(", "))+" ",1),t(N,{"model-value":((v=e.site)==null?void 0:v.keywords)||[],title:e.$t("site.title.editKeywords"),placeholder:e.$t("site.placeholder.keywords"),tip:e.$t("site.message.keywordsTip2"),onConfirm:i[5]||(i[5]=k=>e.onSave({keywords:k}))},null,8,["model-value","title","placeholder","tip"])]),s("span",et,n(e.$t("site.message.keywordsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])]),_:1})]),_:1}),t(C,{md:12,xs:24},{default:o(()=>[t(D,{shadow:"hover",class:"mb-4"},{default:o(()=>[s("h4",tt,n(e.$t("site.title.distributionConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[t(d,{label:e.$t("site.field.distributionDefaultInviterId")},{default:o(()=>{var l,v;return[f(n((l=e.site.distribution)==null?void 0:l.default_inviter_id)+" ",1),t($,{"model-value":(v=e.site.distribution)==null?void 0:v.default_inviter_id,title:e.$t("site.title.editDistributionDefaultInviterId"),placeholder:e.$t("site.placeholder.editDistributionDefaultInviterId"),onConfirm:i[6]||(i[6]=k=>e.onSave({distribution:p(r({},e.site.distribution),{default_inviter_id:k})}))},null,8,["model-value","title","placeholder"]),s("span",it,n(e.$t("site.message.distributionDefaultInviterIdTip")),1)]}),_:1},8,["label"]),t(d,{label:e.$t("site.field.distributionForceInviterId")},{default:o(()=>{var l,v;return[f(n((l=e.site.distribution)==null?void 0:l.force_inviter_id)+" ",1),t($,{"model-value":(v=e.site.distribution)==null?void 0:v.force_inviter_id,title:e.$t("site.title.editDistributionForceInviterId"),placeholder:e.$t("site.placeholder.editDistributionForceInviterId"),onConfirm:i[7]||(i[7]=k=>e.onSave({distribution:p(r({},e.site.distribution),{force_inviter_id:k})}))},null,8,["model-value","title","placeholder"]),s("span",lt,n(e.$t("site.message.distributionForceInviterIdTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),t(D,{shadow:"hover"},{default:o(()=>[s("h4",ot,n(e.$t("site.title.featuresConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[(y(),I(U,null,te(["chat","midjourney","qrart","suno","luma","headshots","support"],(l,v)=>t(d,{key:v,label:e.$t("site.field.features"+l.charAt(0).toUpperCase()+l.slice(1))},{default:o(()=>{var k,W,H,X,G,Y;return[s("div",st,[t(O,{"model-value":((k=e.site.features[l])==null?void 0:k.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":h=>e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{enabled:h})})})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),s("span",nt,n(e.$t("site.message.features"+l.charAt(0).toUpperCase()+l.slice(1))),1),l==="support"?M((y(),I("div",at,[t(d,{label:"WeChat"},{default:o(()=>{var h,_;return[t(O,{"model-value":((_=(h=e.site.features[l])==null?void 0:h.wechat)==null?void 0:_.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":V=>{var w;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{wechat:p(r({},(w=e.site.features[l])==null?void 0:w.wechat),{enabled:V})})})})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),M(t(d,{label:e.$t("site.field.qr")},{default:o(()=>{var h,_,V,w;return[s("span",dt,[t(g,{src:(_=(h=e.site.features[l])==null?void 0:h.wechat)==null?void 0:_.qr},null,8,["src"]),t(m,{"model-value":(w=(V=e.site.features[l])==null?void 0:V.wechat)==null?void 0:w.qr,title:e.$t("site.title.editQR"),tip:e.$t("site.message.editQRTip"),onConfirm:K=>{var T;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{wechat:p(r({},(T=e.site.features[l])==null?void 0:T.wechat),{qr:K})})})})}},null,8,["model-value","title","tip","onConfirm"])])]}),_:2},1032,["label"]),[[j,(H=(W=e.site.features[l])==null?void 0:W.wechat)==null?void 0:H.enabled]]),t(d,{label:"Discord"},{default:o(()=>{var h,_;return[t(O,{"model-value":((_=(h=e.site.features[l])==null?void 0:h.discord)==null?void 0:_.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":V=>{var w;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{discord:p(r({},(w=e.site.features[l])==null?void 0:w.discord),{enabled:V})})})})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),M(t(d,{label:e.$t("site.field.url")},{default:o(()=>{var h,_,V,w;return[s("span",rt,[f(n((_=(h=e.site.features[l])==null?void 0:h.discord)==null?void 0:_.url)+" ",1),t($,{"model-value":(w=(V=e.site.features[l])==null?void 0:V.discord)==null?void 0:w.url,title:e.$t("site.title.editUrl"),placeholder:e.$t("site.placeholder.editUrl"),onConfirm:K=>{var T;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{discord:p(r({},(T=e.site.features[l])==null?void 0:T.discord),{url:K})})})})}},null,8,["model-value","title","placeholder","onConfirm"])])]}),_:2},1032,["label"]),[[j,(G=(X=e.site.features[l])==null?void 0:X.discord)==null?void 0:G.enabled]])],512)),[[j,(Y=e.site.features[l])==null?void 0:Y.enabled]]):_e("v-if",!0)]}),_:2},1032,["label"])),64))]),_:1},8,["model"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var $t=A(Le,[["render",ut],["__scopeId","data-v-262b806e"],["__file","/home/runner/work/Nexior/Nexior/src/pages/site/Index.vue"]]);export{$t as default};
|
|
1
|
+
var ie=Object.defineProperty,le=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var x=(e,i,u)=>i in e?ie(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,r=(e,i)=>{for(var u in i||(i={}))se.call(i,u)&&x(e,u,i[u]);if(Z)for(var u of Z(i))ne.call(i,u)&&x(e,u,i[u]);return e},p=(e,i)=>le(e,oe(i));import"./vendor-others.de6317ed.js";import{E as J,N as ee,l as R,X as P,a3 as Q,O as ae,M as z,b as de,D as re,i as ue,s as pe,h as me,r as fe,I as ce,T as ve,J as he}from"./vendor-element-plus.efc1b383.js";import{_ as A,K as be,aA as ge}from"./index.51b4aed7.js";import{H as F,al as a,o as y,e as I,V as t,M as o,f as s,T as f,U as n,W as U,ai as te,L as q,as as $e,O as M,P as j,S as _e}from"./vendor-@vue.34786d41.js";import{an as we}from"./vendor-fortawesome.1cce8f50.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const Ce=F({name:"EditText",components:{ElDialog:J,ElInput:ee,ElButton:R,ElIcon:P,Edit:Q},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue}},methods:{onCancel(){this.editing=!1},onConfirm(){this.$emit("confirm",this.value),this.editing=!1}}}),ke={class:"dialog-footer"};function ye(e,i,u,E,B,L){const C=a("el-input"),b=a("el-button"),c=a("el-dialog"),d=a("edit"),$=a("el-icon");return y(),I(U,null,[t(c,{modelValue:e.editing,"onUpdate:modelValue":i[1]||(i[1]=g=>e.editing=g),title:e.title,width:"400px"},{footer:o(()=>[s("span",ke,[t(b,{round:"",onClick:e.onCancel},{default:o(()=>[f(n(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),t(b,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[f(n(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",null,[t(C,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=g=>e.value=g),placeholder:e.placeholder},null,8,["modelValue","placeholder"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:i[2]||(i[2]=g=>e.editing=!0)},[t($,{class:"icon"},{default:o(()=>[t(d)]),_:1})])],64)}var Ve=A(Ce,[["render",ye],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditText.vue"]]);const Ee=F({name:"EditImage",components:{ElDialog:J,ElButton:R,FontAwesomeIcon:we,ElIcon:P,Edit:Q,ElUpload:ae},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},tip:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue,fileList:[],uploadUrl:be()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var i;return(i=e==null?void 0:e.response)==null?void 0:i.file_url})}},methods:{onCancel(){this.editing=!1},onConfirm(){var e;this.$emit("confirm",(e=this.urls)==null?void 0:e[0]),this.editing=!1},onExceed(){z.warning(this.$t("site.message.uploadImageExceed"))},onError(){z.error(this.$t("site.message.uploadImageError"))}}}),Ie={class:"el-upload__tip"},Se={class:"dialog-footer"};function Te(e,i,u,E,B,L){const C=a("font-awesome-icon"),b=a("el-button"),c=a("el-upload"),d=a("el-dialog"),$=a("edit"),g=a("el-icon");return y(),I(U,null,[t(d,{modelValue:e.editing,"onUpdate:modelValue":i[1]||(i[1]=m=>e.editing=m),title:e.title,width:"400px"},{footer:o(()=>[s("span",Se,[t(b,{round:"",onClick:e.onCancel},{default:o(()=>[f(n(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),t(b,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[f(n(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",null,[t(c,{"file-list":e.fileList,"onUpdate:file-list":i[0]||(i[0]=m=>e.fileList=m),name:"file",limit:5,multiple:!0,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{tip:o(()=>[s("div",Ie,n(e.tip),1)]),default:o(()=>[t(b,{round:"",type:"primary",class:"btn btn-upload"},{default:o(()=>[t(C,{icon:"fa-solid fa-upload",class:"icon mr-2"}),f(" "+n(e.$t("site.button.upload")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","headers"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:i[2]||(i[2]=m=>e.editing=!0)},[t(g,{class:"icon"},{default:o(()=>[t($)]),_:1})])],64)}var Ue=A(Ee,[["render",Te],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditImage.vue"]]);const Ne=F({name:"EditText",components:{ElDialog:J,ElInput:ee,ElButton:R,ElIcon:P,ElTag:de,Edit:Q},props:{modelValue:{type:Array,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0},tip:{type:String,default:void 0},min:{type:Number,default:void 0},minErrorMessage:{type:String,default:void 0}},emits:["confirm","cancel"],data(){return{inputVisible:!1,inputValue:"",editing:!1,value:JSON.parse(JSON.stringify(this.modelValue))}},methods:{onCancel(){this.editing=!1},onConfirm(){if(this.min!==void 0&&this.value.length<this.min){z.error(this.minErrorMessage);return}this.$emit("confirm",this.value),this.editing=!1},onClose(e){this.value.splice(this.value.indexOf(e),1)},onInputConfirm(){const e=this.inputValue;e&&this.value.push(e),this.inputVisible=!1,this.inputValue=""},onNewItem(){this.inputVisible=!0,this.$nextTick(()=>{this.$refs.input.focus()})}}}),De=f(" + "),qe={class:"block tip"},Ae={class:"dialog-footer"};function Fe(e,i,u,E,B,L){const C=a("el-tag"),b=a("el-input"),c=a("el-button"),d=a("el-dialog"),$=a("edit"),g=a("el-icon");return y(),I(U,null,[t(d,{modelValue:e.editing,"onUpdate:modelValue":i[1]||(i[1]=m=>e.editing=m),title:e.title,width:"400px"},{footer:o(()=>[s("span",Ae,[t(c,{round:"",onClick:e.onCancel},{default:o(()=>[f(n(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),t(c,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[f(n(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[(y(!0),I(U,null,te(e.value,(m,N)=>(y(),q(C,{key:N,closable:"",round:"",class:"mr-2 mb-2","disable-transitions":!1,onClose:S=>e.onClose(m)},{default:o(()=>[f(n(m),1)]),_:2},1032,["onClose"]))),128)),e.inputVisible?(y(),q(b,{key:0,ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":i[0]||(i[0]=m=>e.inputValue=m),class:"block",size:"small",onKeyup:$e(e.onInputConfirm,["enter"]),onBlur:e.onInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):(y(),q(c,{key:1,round:"",class:"block",size:"small",onClick:e.onNewItem},{default:o(()=>[De]),_:1},8,["onClick"])),s("span",qe,n(e.tip),1)]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:i[2]||(i[2]=m=>e.editing=!0)},[t(g,{class:"icon"},{default:o(()=>[t($)]),_:1})])],64)}var Be=A(Ne,[["render",Fe],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditArray.vue"]]);const Le=F({name:"SiteIndex",components:{EditText:Ve,EditImage:Ue,EditArray:Be,ElDivider:re,ElRow:ue,ElImage:pe,ElCol:me,ElCard:fe,ElForm:ce,ElSwitch:ve,ElFormItem:he},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var u;const i=r(r({},this.site),e);ge.update((u=this.site)==null?void 0:u.id,i).then(()=>{var E;console.debug("getSite for id",(E=this.site)==null?void 0:E.id),this.$store.dispatch("getSite")})}}}),Oe={class:"title"},Ke={class:"title"},Me={class:"block w-full"},je={class:"block tip"},ze={class:"block w-full"},Je={class:"block tip"},Re={class:"block w-full"},Pe={class:"block tip"},Qe={class:"block w-full"},We={class:"block tip"},He={class:"block w-full"},Xe={class:"block tip"},Ge={class:"title"},Ye={class:"block w-full"},Ze={class:"block tip"},xe={class:"block w-full"},et={class:"block tip"},tt={class:"title"},it={class:"block tip"},lt={class:"block tip"},ot={class:"title"},st={class:"w-full"},nt={class:"block tip w-full"},at={key:0},dt={class:"block w-full"},rt={class:"block w-full"};function ut(e,i,u,E,B,L){const C=a("el-col"),b=a("el-row"),c=a("el-divider"),d=a("el-form-item"),$=a("edit-text"),g=a("el-image"),m=a("edit-image"),N=a("edit-array"),S=a("el-form"),D=a("el-card"),O=a("el-switch");return y(),q(b,{class:"panel"},{default:o(()=>[t(C,{span:24},{default:o(()=>[t(b,null,{default:o(()=>[t(C,{span:24},{default:o(()=>[s("h2",Oe,n(e.$t("common.title.site")),1)]),_:1})]),_:1}),t(b,{gutter:15},{default:o(()=>[t(C,{md:12,xs:24},{default:o(()=>[t(D,{shadow:"hover",class:"mb-4"},{default:o(()=>[s("h4",Ke,n(e.$t("site.title.basicConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[t(d,{label:e.$t("site.field.origin")},{default:o(()=>[s("span",Me,n(e.site.origin),1),s("span",je,n(e.$t("site.message.originTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.title")},{default:o(()=>[s("span",ze,[f(n(e.site.title)+" ",1),t($,{"model-value":e.site.title,title:e.$t("site.title.editTitle"),placeholder:e.$t("site.placeholder.title"),onConfirm:i[0]||(i[0]=l=>e.onSave({title:l}))},null,8,["model-value","title","placeholder"])]),s("span",Je,n(e.$t("site.message.titleTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.logo")},{default:o(()=>[s("span",Re,[t(g,{src:e.site.logo,class:"logo"},null,8,["src"]),t(m,{"model-value":e.site.logo,title:e.$t("site.title.editLogo"),tip:e.$t("site.message.editLogoTip"),onConfirm:i[1]||(i[1]=l=>e.onSave({logo:l}))},null,8,["model-value","title","tip"])]),s("span",Pe,n(e.$t("site.message.logoTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.favicon")},{default:o(()=>[s("span",Qe,[t(g,{src:e.site.favicon,class:"favicon"},null,8,["src"]),t(m,{"model-value":e.site.favicon,title:e.$t("site.title.editFavicon"),tip:e.$t("site.message.editFaviconTip"),onConfirm:i[2]||(i[2]=l=>e.onSave({favicon:l}))},null,8,["model-value","title","tip"])]),s("span",We,n(e.$t("site.message.faviconTip")),1)]),_:1},8,["label"]),t(c,{"border-style":"dashed"}),t(d,{label:e.$t("site.field.admins")},{default:o(()=>{var l,v;return[s("span",He,[f(n((l=e.site.admins)==null?void 0:l.join(", "))+" ",1),t(N,{"model-value":((v=e.site)==null?void 0:v.admins)||[],title:e.$t("site.title.editAdmins"),placeholder:e.$t("site.placeholder.admins"),tip:e.$t("site.message.adminsTip2"),min:1,"min-error-message":e.$t("site.message.atLeastOneAdmin"),onConfirm:i[3]||(i[3]=k=>e.onSave({admins:k}))},null,8,["model-value","title","placeholder","tip","min-error-message"])]),s("span",Xe,n(e.$t("site.message.adminsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),t(D,{shadow:"hover"},{default:o(()=>[s("h4",Ge,n(e.$t("site.title.seoConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[t(d,{label:e.$t("site.field.description")},{default:o(()=>[s("span",Ye,[f(n(e.site.description)+" ",1),t($,{"model-value":e.site.description,title:e.$t("site.title.editDescription"),placeholder:e.$t("site.placeholder.description"),onConfirm:i[4]||(i[4]=l=>e.onSave({description:l}))},null,8,["model-value","title","placeholder"])]),s("span",Ze,n(e.$t("site.message.descriptionTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.keywords")},{default:o(()=>{var l,v;return[s("span",xe,[f(n((l=e.site.keywords)==null?void 0:l.join(", "))+" ",1),t(N,{"model-value":((v=e.site)==null?void 0:v.keywords)||[],title:e.$t("site.title.editKeywords"),placeholder:e.$t("site.placeholder.keywords"),tip:e.$t("site.message.keywordsTip2"),onConfirm:i[5]||(i[5]=k=>e.onSave({keywords:k}))},null,8,["model-value","title","placeholder","tip"])]),s("span",et,n(e.$t("site.message.keywordsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])]),_:1})]),_:1}),t(C,{md:12,xs:24},{default:o(()=>[t(D,{shadow:"hover",class:"mb-4"},{default:o(()=>[s("h4",tt,n(e.$t("site.title.distributionConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[t(d,{label:e.$t("site.field.distributionDefaultInviterId")},{default:o(()=>{var l,v;return[f(n((l=e.site.distribution)==null?void 0:l.default_inviter_id)+" ",1),t($,{"model-value":(v=e.site.distribution)==null?void 0:v.default_inviter_id,title:e.$t("site.title.editDistributionDefaultInviterId"),placeholder:e.$t("site.placeholder.editDistributionDefaultInviterId"),onConfirm:i[6]||(i[6]=k=>e.onSave({distribution:p(r({},e.site.distribution),{default_inviter_id:k})}))},null,8,["model-value","title","placeholder"]),s("span",it,n(e.$t("site.message.distributionDefaultInviterIdTip")),1)]}),_:1},8,["label"]),t(d,{label:e.$t("site.field.distributionForceInviterId")},{default:o(()=>{var l,v;return[f(n((l=e.site.distribution)==null?void 0:l.force_inviter_id)+" ",1),t($,{"model-value":(v=e.site.distribution)==null?void 0:v.force_inviter_id,title:e.$t("site.title.editDistributionForceInviterId"),placeholder:e.$t("site.placeholder.editDistributionForceInviterId"),onConfirm:i[7]||(i[7]=k=>e.onSave({distribution:p(r({},e.site.distribution),{force_inviter_id:k})}))},null,8,["model-value","title","placeholder"]),s("span",lt,n(e.$t("site.message.distributionForceInviterIdTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])]),_:1}),t(D,{shadow:"hover"},{default:o(()=>[s("h4",ot,n(e.$t("site.title.featuresConfig")),1),t(c),t(S,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:o(()=>[(y(),I(U,null,te(["chat","midjourney","qrart","suno","luma","headshots","support"],(l,v)=>t(d,{key:v,label:e.$t("site.field.features"+l.charAt(0).toUpperCase()+l.slice(1))},{default:o(()=>{var k,W,H,X,G,Y;return[s("div",st,[t(O,{"model-value":((k=e.site.features[l])==null?void 0:k.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":h=>e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{enabled:h})})})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),s("span",nt,n(e.$t("site.message.features"+l.charAt(0).toUpperCase()+l.slice(1))),1),l==="support"?M((y(),I("div",at,[t(d,{label:"WeChat"},{default:o(()=>{var h,_;return[t(O,{"model-value":((_=(h=e.site.features[l])==null?void 0:h.wechat)==null?void 0:_.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":V=>{var w;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{wechat:p(r({},(w=e.site.features[l])==null?void 0:w.wechat),{enabled:V})})})})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),M(t(d,{label:e.$t("site.field.qr")},{default:o(()=>{var h,_,V,w;return[s("span",dt,[t(g,{src:(_=(h=e.site.features[l])==null?void 0:h.wechat)==null?void 0:_.qr},null,8,["src"]),t(m,{"model-value":(w=(V=e.site.features[l])==null?void 0:V.wechat)==null?void 0:w.qr,title:e.$t("site.title.editQR"),tip:e.$t("site.message.editQRTip"),onConfirm:K=>{var T;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{wechat:p(r({},(T=e.site.features[l])==null?void 0:T.wechat),{qr:K})})})})}},null,8,["model-value","title","tip","onConfirm"])])]}),_:2},1032,["label"]),[[j,(H=(W=e.site.features[l])==null?void 0:W.wechat)==null?void 0:H.enabled]]),t(d,{label:"Discord"},{default:o(()=>{var h,_;return[t(O,{"model-value":((_=(h=e.site.features[l])==null?void 0:h.discord)==null?void 0:_.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":V=>{var w;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{discord:p(r({},(w=e.site.features[l])==null?void 0:w.discord),{enabled:V})})})})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),M(t(d,{label:e.$t("site.field.url")},{default:o(()=>{var h,_,V,w;return[s("span",rt,[f(n((_=(h=e.site.features[l])==null?void 0:h.discord)==null?void 0:_.url)+" ",1),t($,{"model-value":(w=(V=e.site.features[l])==null?void 0:V.discord)==null?void 0:w.url,title:e.$t("site.title.editUrl"),placeholder:e.$t("site.placeholder.editUrl"),onConfirm:K=>{var T;return e.onSave({features:p(r({},e.site.features),{[l]:p(r({},e.site.features[l]),{discord:p(r({},(T=e.site.features[l])==null?void 0:T.discord),{url:K})})})})}},null,8,["model-value","title","placeholder","onConfirm"])])]}),_:2},1032,["label"]),[[j,(G=(X=e.site.features[l])==null?void 0:X.discord)==null?void 0:G.enabled]])],512)),[[j,(Y=e.site.features[l])==null?void 0:Y.enabled]]):_e("v-if",!0)]}),_:2},1032,["label"])),64))]),_:1},8,["model"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var $t=A(Le,[["render",ut],["__scopeId","data-v-262b806e"],["__file","/home/runner/work/Nexior/Nexior/src/pages/site/Index.vue"]]);export{$t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ne=Object.defineProperty,ie=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var ae=(e,s,t)=>s in e?ne(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,b=(e,s)=>{for(var t in s||(s={}))re.call(s,t)&&ae(e,t,s[t]);if(te)for(var t of te(s))ce.call(s,t)&&ae(e,t,s[t]);return e},k=(e,s)=>ie(e,le(s));import"./vendor-others.4f34a866.js";import{an as B}from"./vendor-fortawesome.f1998e53.js";import{_ as w,K as de,V as O,B as pe,ax as ue}from"./index.daadea41.js";import{P as me,l as M,O as he,M as C,L as _e,K as ge,U as fe,V as ve,s as oe,F as $e,C as ye,R as be}from"./vendor-element-plus.ddf5f024.js";import{H as I,al as n,o,e as d,f as c,I as z,V as a,M as h,U as r,T as v,W as U,ai as G,L,S as f,Q as j,m as ke}from"./vendor-@vue.853aef6d.js";import{I as we}from"./InfoIcon.ac0ec619.js";import{A as Ie,i as Ve,h as Se}from"./Status.5405912d.js";import{C as Ce}from"./CopyToClipboard.cb70f6d1.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.452c7ca7.js";const Te=I({name:"LayoutHeadshots",components:{ElDrawer:me,ElButton:M,FontAwesomeIcon:B},data(){return{drawer:!1}}}),Ee={class:"main"},Pe={class:"config"},Ue={class:"result"};function Ge(e,s,t,l,_,g){const p=n("font-awesome-icon"),m=n("el-button"),i=n("el-drawer");return o(),d("div",Ee,[c("div",Pe,[z(e.$slots,"config",{},void 0,!0)]),c("div",Ue,[z(e.$slots,"result",{},void 0,!0)]),a(m,{round:"",class:"menu",onClick:s[0]||(s[0]=u=>e.drawer=!0)},{default:h(()=>[a(p,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),a(i,{modelValue:e.drawer,"onUpdate:modelValue":s[1]||(s[1]=u=>e.drawer=u),"with-header":!1,size:"340px",class:"drawer"},{default:h(()=>[z(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Ne=w(Te,[["render",Ge],["__scopeId","data-v-3e896eaa"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Headshots.vue"]]);const Ae=I({name:"ImageUrlsInput",components:{ElUpload:he,ElButton:M,InfoIcon:we},data(){return{fileList:[],uploadUrl:de()+"/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).replace("https://cdn.acedata.cloud","https://acedata-cdn.zhishuyun.com")})},value:{get(){var e,s;return(s=(e=this.$store.state.headshots)==null?void 0:e.config)==null?void 0:s.image_urls},set(e){var t;const s=this.urls;this.$store.commit("headshots/setConfig",k(b({},(t=this.$store.state.headshots)==null?void 0:t.config),{image_urls:s}))}}},mounted(){this.value||(this.value=void 0),this.onSetImageUrls()},methods:{onExceed(){C.warning(this.$t("headshots.message.uploadImageExceed"))},onError(){C.error(this.$t("headshots.message.uploadImageError"))},onSetImageUrls(){var s;const e=this.urls;this.$store.commit("headshots/setConfig",k(b({},(s=this.$store.state.headshots)==null?void 0:s.config),{image_urls:e}))},async onSuccess(){this.onSetImageUrls()}}}),Re={class:"field"},De={class:"title"},Le={class:"upload-wrapper"};function je(e,s,t,l,_,g){const p=n("el-button"),m=n("el-upload"),i=n("info-icon");return o(),d("div",Re,[c("h2",De,r(e.$t("headshots.name.endImageUrls")),1),c("div",Le,[a(m,{"file-list":e.fileList,"onUpdate:file-list":s[0]||(s[0]=u=>e.fileList=u),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!0,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:h(()=>[a(p,{size:"small",type:"primary",round:""},{default:h(()=>[v(r(e.$t("headshots.button.uploadImageUrls")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),a(i,{content:e.$t("headshots.description.endImageUrls"),class:"info"},null,8,["content"])])}var Oe=w(Ae,[["render",je],["__scopeId","data-v-69ae8722"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ImageUrlsInput.vue"]]);const ze="fast",Be=I({name:"ModeSelector",components:{ElRadioButton:_e,ElRadioGroup:ge},data(){return{options:[{label:this.$t("headshots.button.fast"),value:"fast"},{label:this.$t("headshots.button.relax"),value:"relax"}]}},computed:{value:{get(){var e;return(e=this.$store.state.headshots.config)==null?void 0:e.mode},set(e){console.debug("set mode",e),this.$store.commit("headshots/setConfig",k(b({},this.$store.state.headshots.config),{mode:e}))}}},mounted(){this.value||(this.value=ze)}}),Me={class:"field"},qe={class:"title"};function Fe(e,s,t,l,_,g){const p=n("el-radio-button"),m=n("el-radio-group");return o(),d("div",Me,[c("h2",qe,r(e.$t("headshots.name.mode")),1),a(m,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),size:"small",class:"mode"},{default:h(()=>[(o(!0),d(U,null,G(e.options,i=>(o(),L(p,{key:i.value,label:i.value},{default:h(()=>[v(r(i.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])}var He=w(Be,[["render",Fe],["__scopeId","data-v-5ec8e3d9"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ModeSelector.vue"]]);const Ke=I({name:"StylizeSelector",components:{ElTabs:fe,ElTabPane:ve,ElImage:oe},data(){return{tab:"styles",value:"",elements:{styles:{displayName:this.$t("headshots.styleCategory.styles"),items:[{image:"https://static.aipedias.com/aicamera/common/20241008/20241008202314260779439.png",label:this.$t("headshots.styleTag.malePportrait"),value:"male_portrait"},{image:"https://static.aipedias.com/aicamera/common/20241008/202410082022241e9755548.png",label:this.$t("headshots.styleTag.malePportrait2"),value:"male_portrait2"},{image:"https://static.aipedias.com/aicamera/common/20241101/20241101170130d78f66521.png",label:this.$t("headshots.styleTag.kindergarten"),value:"kindergarten"},{image:"https://static.aipedias.com/aicamera/common/20240923/20240923123233accf60398.webp",label:this.$t("headshots.styleTag.logoTshirt"),value:"logo_tshirt"},{image:"https://static.aipedias.com/aicamera/common/20241025/202410252012329472d0656.jpg",label:this.$t("headshots.styleTag.wedding"),value:"wedding"},{image:"https://static.aipedias.com/aicamera/common/20240915/20240915145045254931400.webp",label:this.$t("headshots.styleTag.businessPphoto"),value:"business_photo"},{image:"https://static.aipedias.com/aicamera/common/20240810/20240810194526040341795.jpg",label:this.$t("headshots.styleTag.bobSuit"),value:"bob_suit"},{image:"https://static.aipedias.com/aicamera/common/20240717/20240717152654e0b348173.webp",label:this.$t("headshots.styleTag.femalePortrait"),value:"female_portrait"}]}}}},watch:{value(e){var s;console.debug("set template",e),this.$store.commit("headshots/setConfig",k(b({},(s=this.$store.state.headshots)==null?void 0:s.config),{template:e}))}},mounted(){var e;this.value||(this.value=""),console.debug("set template",this.value),this.$store.commit("headshots/setConfig",k(b({},(e=this.$store.state.headshots)==null?void 0:e.config),{template:this.value}))},methods:{onToggle(e){var s;this.value===e?this.value="":this.value=e,console.debug("set template",this.value),this.$store.commit("headshots/setConfig",k(b({},(s=this.$store.state.headshots)==null?void 0:s.config),{template:this.value}))}}}),Qe={class:"field"},We=["onClick"],Je={class:"name"};function Xe(e,s,t,l,_,g){const p=n("el-image"),m=n("el-tab-pane"),i=n("el-tabs");return o(),d("div",Qe,[f(` <h2 class="title">{{ $t('headshots.field.elements') }}</h2> `),a(i,{modelValue:e.tab,"onUpdate:modelValue":s[0]||(s[0]=u=>e.tab=u)},{default:h(()=>[(o(!0),d(U,null,G(e.elements,(u,$)=>(o(),L(m,{key:$,label:u.displayName,name:$,class:"pane"},{default:h(()=>[(o(!0),d(U,null,G(u.items,(y,T)=>(o(),d("div",{key:T,class:j({item:!0,active:e.value===y.value}),onClick:E=>e.onToggle(y.value)},[a(p,{src:y.image,fit:"fill",class:"preview"},null,8,["src"]),c("span",Je,r(y.label),1)],10,We))),128))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])}var Ye=w(Ke,[["render",Xe],["__scopeId","data-v-7e0125ad"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ElementsSelector.vue"]]);const Ze=I({name:"PresetPanel",components:{ModeSelector:He,ImageUrlsInput:Oe,ElButton:M,FontAwesomeIcon:B,ElementsSelector:Ye},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.headshots)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),xe={class:"panel"},es={class:"config"},ss={class:"actions"};function ts(e,s,t,l,_,g){const p=n("elements-selector"),m=n("mode-selector"),i=n("image-urls-input"),u=n("font-awesome-icon"),$=n("el-button");return o(),d("div",xe,[c("div",es,[a(p,{class:"mb-4"}),a(m,{class:"mb-4"}),a(i,{class:"mb-4"}),c("div",ss,[a($,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:h(()=>[a(u,{icon:"fa-solid fa-magic",class:"mr-2"}),v(" "+r(e.$t("headshots.button.generate")),1)]),_:1},8,["onClick"])])])])}var as=w(Ze,[["render",ts],["__scopeId","data-v-6a264fac"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/ConfigPanel.vue"]]);const os=I({name:"ImageGallery",props:{modelValue:{type:Object,required:!0}},setup(e){return{images:ke(()=>{var l,_,g;return((g=(_=(l=e.modelValue)==null?void 0:l.response)==null?void 0:_.data)==null?void 0:g.slice(0,2))||[]}),viewImage:l=>{window.open(l,"_blank")}}}}),ns={class:"image-gallery"},is=["src"],ls=["onClick"];function rs(e,s,t,l,_,g){return o(),d("div",ns,[(o(!0),d(U,null,G(e.images,(p,m)=>(o(),d("div",{key:m,class:"image-container"},[c("img",{src:p.image_url,alt:"Image"},null,8,is),c("button",{class:"view-button",onClick:i=>e.viewImage(p.image_url)},r(e.$t("headshots.button.viewImage")),9,ls)]))),128))])}var cs=w(os,[["render",rs],["__scopeId","data-v-0187109d"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/ImageGallery.vue"]]);const ds=I({name:"TaskPreview",components:{ElImage:oe,CopyToClipboard:Ce,FontAwesomeIcon:B,ElAlert:$e,ImageGallery:cs},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.headshots)==null?void 0:e.application},config(){var e;return(e=this.$store.state.headshots)==null?void 0:e.config}},methods:{onDownload(e,s){e.stopPropagation(),console.log("on download"),window.open(s,"_blank")},onReload(e){const s=e.target,t=new URL(s.src),l=t.searchParams.get("retry");if(!l)t.searchParams.set("retry","1");else if(parseInt(l)<2)t.searchParams.set("retry",(parseInt(l)+1).toString());else return;s.src=t.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ps={class:"preview"},us={class:"left"},ms={class:"main"},hs={class:"bot"},_s={class:"datetime"},gs={class:"info"},fs={key:0,class:"prompt mt-2"},vs={key:0},$s={key:0,class:j({content:!0,failed:!0})},ys={class:"image-wrapper"},bs={class:"description"},ks={key:1,class:j({content:!0})},ws={class:"description"},Is={class:"description"},Vs={class:"description"},Ss={key:2,class:j({content:!0})},Cs={class:"description"};function Ts(e,s,t,l,_,g){var y,T,E,N,A,R,P,D,q,F,H;const p=n("el-image"),m=n("image-gallery"),i=n("font-awesome-icon"),u=n("copy-to-clipboard"),$=n("el-alert");return o(),d("div",ps,[c("div",us,[a(p,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),c("div",ms,[c("div",hs,[v(r(e.$t("headshots.name.headshotsBot"))+" ",1),c("span",_s,r(e.$dayjs.format(""+new Date(parseFloat(((y=e.modelValue)==null?void 0:y.created_at)||"")*1e3))),1)]),c("div",gs,[(E=(T=e.modelValue)==null?void 0:T.request)!=null&&E.template?(o(),d("p",fs,[v(r((A=(N=e.modelValue)==null?void 0:N.request)==null?void 0:A.template)+" ",1),(R=e.modelValue)!=null&&R.response?f("v-if",!0):(o(),d("span",vs," - ("+r(e.$t("headshots.status.pending"))+") ",1)),f(` <span
|
|
1
|
+
var ne=Object.defineProperty,ie=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var ae=(e,s,t)=>s in e?ne(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,b=(e,s)=>{for(var t in s||(s={}))re.call(s,t)&&ae(e,t,s[t]);if(te)for(var t of te(s))ce.call(s,t)&&ae(e,t,s[t]);return e},k=(e,s)=>ie(e,le(s));import"./vendor-others.de6317ed.js";import{an as B}from"./vendor-fortawesome.1cce8f50.js";import{_ as w,K as de,V as O,B as pe,ax as ue}from"./index.51b4aed7.js";import{P as me,l as M,O as he,M as C,L as _e,K as ge,U as fe,V as ve,s as oe,F as $e,C as ye,R as be}from"./vendor-element-plus.efc1b383.js";import{H as I,al as n,o,e as d,f as c,I as z,V as a,M as h,U as r,T as v,W as U,ai as G,L,S as f,Q as j,m as ke}from"./vendor-@vue.34786d41.js";import{I as we}from"./InfoIcon.23e9d3f1.js";import{A as Ie,i as Ve,h as Se}from"./Status.a33ad639.js";import{C as Ce}from"./CopyToClipboard.c791184c.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const Te=I({name:"LayoutHeadshots",components:{ElDrawer:me,ElButton:M,FontAwesomeIcon:B},data(){return{drawer:!1}}}),Ee={class:"main"},Pe={class:"config"},Ue={class:"result"};function Ge(e,s,t,l,_,g){const p=n("font-awesome-icon"),m=n("el-button"),i=n("el-drawer");return o(),d("div",Ee,[c("div",Pe,[z(e.$slots,"config",{},void 0,!0)]),c("div",Ue,[z(e.$slots,"result",{},void 0,!0)]),a(m,{round:"",class:"menu",onClick:s[0]||(s[0]=u=>e.drawer=!0)},{default:h(()=>[a(p,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),a(i,{modelValue:e.drawer,"onUpdate:modelValue":s[1]||(s[1]=u=>e.drawer=u),"with-header":!1,size:"340px",class:"drawer"},{default:h(()=>[z(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Ne=w(Te,[["render",Ge],["__scopeId","data-v-3e896eaa"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Headshots.vue"]]);const Ae=I({name:"ImageUrlsInput",components:{ElUpload:he,ElButton:M,InfoIcon:we},data(){return{fileList:[],uploadUrl:de()+"/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).replace("https://cdn.acedata.cloud","https://acedata-cdn.zhishuyun.com")})},value:{get(){var e,s;return(s=(e=this.$store.state.headshots)==null?void 0:e.config)==null?void 0:s.image_urls},set(e){var t;const s=this.urls;this.$store.commit("headshots/setConfig",k(b({},(t=this.$store.state.headshots)==null?void 0:t.config),{image_urls:s}))}}},mounted(){this.value||(this.value=void 0),this.onSetImageUrls()},methods:{onExceed(){C.warning(this.$t("headshots.message.uploadImageExceed"))},onError(){C.error(this.$t("headshots.message.uploadImageError"))},onSetImageUrls(){var s;const e=this.urls;this.$store.commit("headshots/setConfig",k(b({},(s=this.$store.state.headshots)==null?void 0:s.config),{image_urls:e}))},async onSuccess(){this.onSetImageUrls()}}}),Re={class:"field"},De={class:"title"},Le={class:"upload-wrapper"};function je(e,s,t,l,_,g){const p=n("el-button"),m=n("el-upload"),i=n("info-icon");return o(),d("div",Re,[c("h2",De,r(e.$t("headshots.name.endImageUrls")),1),c("div",Le,[a(m,{"file-list":e.fileList,"onUpdate:file-list":s[0]||(s[0]=u=>e.fileList=u),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!0,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:h(()=>[a(p,{size:"small",type:"primary",round:""},{default:h(()=>[v(r(e.$t("headshots.button.uploadImageUrls")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),a(i,{content:e.$t("headshots.description.endImageUrls"),class:"info"},null,8,["content"])])}var Oe=w(Ae,[["render",je],["__scopeId","data-v-69ae8722"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ImageUrlsInput.vue"]]);const ze="fast",Be=I({name:"ModeSelector",components:{ElRadioButton:_e,ElRadioGroup:ge},data(){return{options:[{label:this.$t("headshots.button.fast"),value:"fast"},{label:this.$t("headshots.button.relax"),value:"relax"}]}},computed:{value:{get(){var e;return(e=this.$store.state.headshots.config)==null?void 0:e.mode},set(e){console.debug("set mode",e),this.$store.commit("headshots/setConfig",k(b({},this.$store.state.headshots.config),{mode:e}))}}},mounted(){this.value||(this.value=ze)}}),Me={class:"field"},qe={class:"title"};function Fe(e,s,t,l,_,g){const p=n("el-radio-button"),m=n("el-radio-group");return o(),d("div",Me,[c("h2",qe,r(e.$t("headshots.name.mode")),1),a(m,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),size:"small",class:"mode"},{default:h(()=>[(o(!0),d(U,null,G(e.options,i=>(o(),L(p,{key:i.value,label:i.value},{default:h(()=>[v(r(i.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])}var He=w(Be,[["render",Fe],["__scopeId","data-v-5ec8e3d9"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ModeSelector.vue"]]);const Ke=I({name:"StylizeSelector",components:{ElTabs:fe,ElTabPane:ve,ElImage:oe},data(){return{tab:"styles",value:"",elements:{styles:{displayName:this.$t("headshots.styleCategory.styles"),items:[{image:"https://static.aipedias.com/aicamera/common/20241008/20241008202314260779439.png",label:this.$t("headshots.styleTag.malePportrait"),value:"male_portrait"},{image:"https://static.aipedias.com/aicamera/common/20241008/202410082022241e9755548.png",label:this.$t("headshots.styleTag.malePportrait2"),value:"male_portrait2"},{image:"https://static.aipedias.com/aicamera/common/20241101/20241101170130d78f66521.png",label:this.$t("headshots.styleTag.kindergarten"),value:"kindergarten"},{image:"https://static.aipedias.com/aicamera/common/20240923/20240923123233accf60398.webp",label:this.$t("headshots.styleTag.logoTshirt"),value:"logo_tshirt"},{image:"https://static.aipedias.com/aicamera/common/20241025/202410252012329472d0656.jpg",label:this.$t("headshots.styleTag.wedding"),value:"wedding"},{image:"https://static.aipedias.com/aicamera/common/20240915/20240915145045254931400.webp",label:this.$t("headshots.styleTag.businessPphoto"),value:"business_photo"},{image:"https://static.aipedias.com/aicamera/common/20240810/20240810194526040341795.jpg",label:this.$t("headshots.styleTag.bobSuit"),value:"bob_suit"},{image:"https://static.aipedias.com/aicamera/common/20240717/20240717152654e0b348173.webp",label:this.$t("headshots.styleTag.femalePortrait"),value:"female_portrait"}]}}}},watch:{value(e){var s;console.debug("set template",e),this.$store.commit("headshots/setConfig",k(b({},(s=this.$store.state.headshots)==null?void 0:s.config),{template:e}))}},mounted(){var e;this.value||(this.value=""),console.debug("set template",this.value),this.$store.commit("headshots/setConfig",k(b({},(e=this.$store.state.headshots)==null?void 0:e.config),{template:this.value}))},methods:{onToggle(e){var s;this.value===e?this.value="":this.value=e,console.debug("set template",this.value),this.$store.commit("headshots/setConfig",k(b({},(s=this.$store.state.headshots)==null?void 0:s.config),{template:this.value}))}}}),Qe={class:"field"},We=["onClick"],Je={class:"name"};function Xe(e,s,t,l,_,g){const p=n("el-image"),m=n("el-tab-pane"),i=n("el-tabs");return o(),d("div",Qe,[f(` <h2 class="title">{{ $t('headshots.field.elements') }}</h2> `),a(i,{modelValue:e.tab,"onUpdate:modelValue":s[0]||(s[0]=u=>e.tab=u)},{default:h(()=>[(o(!0),d(U,null,G(e.elements,(u,$)=>(o(),L(m,{key:$,label:u.displayName,name:$,class:"pane"},{default:h(()=>[(o(!0),d(U,null,G(u.items,(y,T)=>(o(),d("div",{key:T,class:j({item:!0,active:e.value===y.value}),onClick:E=>e.onToggle(y.value)},[a(p,{src:y.image,fit:"fill",class:"preview"},null,8,["src"]),c("span",Je,r(y.label),1)],10,We))),128))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])}var Ye=w(Ke,[["render",Xe],["__scopeId","data-v-7e0125ad"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ElementsSelector.vue"]]);const Ze=I({name:"PresetPanel",components:{ModeSelector:He,ImageUrlsInput:Oe,ElButton:M,FontAwesomeIcon:B,ElementsSelector:Ye},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.headshots)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),xe={class:"panel"},es={class:"config"},ss={class:"actions"};function ts(e,s,t,l,_,g){const p=n("elements-selector"),m=n("mode-selector"),i=n("image-urls-input"),u=n("font-awesome-icon"),$=n("el-button");return o(),d("div",xe,[c("div",es,[a(p,{class:"mb-4"}),a(m,{class:"mb-4"}),a(i,{class:"mb-4"}),c("div",ss,[a($,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:h(()=>[a(u,{icon:"fa-solid fa-magic",class:"mr-2"}),v(" "+r(e.$t("headshots.button.generate")),1)]),_:1},8,["onClick"])])])])}var as=w(Ze,[["render",ts],["__scopeId","data-v-6a264fac"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/ConfigPanel.vue"]]);const os=I({name:"ImageGallery",props:{modelValue:{type:Object,required:!0}},setup(e){return{images:ke(()=>{var l,_,g;return((g=(_=(l=e.modelValue)==null?void 0:l.response)==null?void 0:_.data)==null?void 0:g.slice(0,2))||[]}),viewImage:l=>{window.open(l,"_blank")}}}}),ns={class:"image-gallery"},is=["src"],ls=["onClick"];function rs(e,s,t,l,_,g){return o(),d("div",ns,[(o(!0),d(U,null,G(e.images,(p,m)=>(o(),d("div",{key:m,class:"image-container"},[c("img",{src:p.image_url,alt:"Image"},null,8,is),c("button",{class:"view-button",onClick:i=>e.viewImage(p.image_url)},r(e.$t("headshots.button.viewImage")),9,ls)]))),128))])}var cs=w(os,[["render",rs],["__scopeId","data-v-0187109d"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/ImageGallery.vue"]]);const ds=I({name:"TaskPreview",components:{ElImage:oe,CopyToClipboard:Ce,FontAwesomeIcon:B,ElAlert:$e,ImageGallery:cs},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.headshots)==null?void 0:e.application},config(){var e;return(e=this.$store.state.headshots)==null?void 0:e.config}},methods:{onDownload(e,s){e.stopPropagation(),console.log("on download"),window.open(s,"_blank")},onReload(e){const s=e.target,t=new URL(s.src),l=t.searchParams.get("retry");if(!l)t.searchParams.set("retry","1");else if(parseInt(l)<2)t.searchParams.set("retry",(parseInt(l)+1).toString());else return;s.src=t.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ps={class:"preview"},us={class:"left"},ms={class:"main"},hs={class:"bot"},_s={class:"datetime"},gs={class:"info"},fs={key:0,class:"prompt mt-2"},vs={key:0},$s={key:0,class:j({content:!0,failed:!0})},ys={class:"image-wrapper"},bs={class:"description"},ks={key:1,class:j({content:!0})},ws={class:"description"},Is={class:"description"},Vs={class:"description"},Ss={key:2,class:j({content:!0})},Cs={class:"description"};function Ts(e,s,t,l,_,g){var y,T,E,N,A,R,P,D,q,F,H;const p=n("el-image"),m=n("image-gallery"),i=n("font-awesome-icon"),u=n("copy-to-clipboard"),$=n("el-alert");return o(),d("div",ps,[c("div",us,[a(p,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),c("div",ms,[c("div",hs,[v(r(e.$t("headshots.name.headshotsBot"))+" ",1),c("span",_s,r(e.$dayjs.format(""+new Date(parseFloat(((y=e.modelValue)==null?void 0:y.created_at)||"")*1e3))),1)]),c("div",gs,[(E=(T=e.modelValue)==null?void 0:T.request)!=null&&E.template?(o(),d("p",fs,[v(r((A=(N=e.modelValue)==null?void 0:N.request)==null?void 0:A.template)+" ",1),(R=e.modelValue)!=null&&R.response?f("v-if",!0):(o(),d("span",vs," - ("+r(e.$t("headshots.status.pending"))+") ",1)),f(` <span
|
|
2
2
|
v-if="
|
|
3
3
|
modelValue?.response?.data?.state === 'processing' ||
|
|
4
4
|
modelValue?.response?.data?.state === 'pending' ||
|