@acedatacloud/nexior 2.11.29 → 2.11.30

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.
Files changed (76) hide show
  1. package/dist/assets/{Auth.c901494d.js → Auth.6a224945.js} +1 -1
  2. package/dist/assets/{Buy.38959b35.js → Buy.05fafbb7.js} +1 -1
  3. package/dist/assets/{Buy.0eb6205f.js → Buy.d37be932.js} +1 -1
  4. package/dist/assets/{Callback.4bad71a3.js → Callback.13ca10d8.js} +1 -1
  5. package/dist/assets/{Chatdoc.1a6196ee.js → Chatdoc.868278a6.js} +1 -1
  6. package/dist/assets/{Console.82a6327f.js → Console.19026c6d.js} +1 -1
  7. package/dist/assets/{Conversation.40030a82.js → Conversation.734429ea.js} +1 -1
  8. package/dist/assets/{Conversation.658cd06c.js → Conversation.ffade8cb.js} +1 -1
  9. package/dist/assets/{CopyToClipboard.d4a8fc6a.js → CopyToClipboard.6a100945.js} +1 -1
  10. package/dist/assets/{DarkSelector.1951b9ef.js → DarkSelector.a102c4b3.js} +1 -1
  11. package/dist/assets/{Detail.61e347ab.js → Detail.af8cbc20.js} +1 -1
  12. package/dist/assets/{History.53f7a59b.js → History.7921f443.js} +1 -1
  13. package/dist/assets/{Index.f7bbf803.js → Index.02039fa3.js} +1 -1
  14. package/dist/assets/{Index.4dbc47b2.js → Index.047f701e.js} +1 -1
  15. package/dist/assets/{Index.59c9bff7.js → Index.6208ab81.js} +1 -1
  16. package/dist/assets/{Index.b8975431.js → Index.8e92874f.js} +1 -1
  17. package/dist/assets/{Index.e4b44a18.js → Index.989fd117.js} +1 -1
  18. package/dist/assets/{Index.0e99d268.js → Index.9ab2287d.js} +1 -1
  19. package/dist/assets/{Index.f6deb172.js → Index.b33c5e63.js} +1 -1
  20. package/dist/assets/{Index.25b6187d.js → Index.ca017b78.js} +1 -1
  21. package/dist/assets/{Index.8f0e6289.js → Index.e573c3e7.js} +1 -1
  22. package/dist/assets/{Index.a5ea46f0.js → Index.ea1dafbc.js} +1 -1
  23. package/dist/assets/{Index.ee1fcbce.js → Index.ff6778e1.js} +1 -1
  24. package/dist/assets/{InfoIcon.9b9ec7c5.js → InfoIcon.66804e86.js} +1 -1
  25. package/dist/assets/{Invitees.273a283d.js → Invitees.47b8ee5b.js} +1 -1
  26. package/dist/assets/{List.7ca91c71.js → List.46dc612d.js} +1 -1
  27. package/dist/assets/{List.f213fe7d.js → List.664efd59.js} +1 -1
  28. package/dist/assets/{List.4cb0c3ce.js → List.df99f4af.js} +1 -1
  29. package/dist/assets/{Login.be11d88d.js → Login.807f9b19.js} +1 -1
  30. package/dist/assets/{Main.935f36d5.js → Main.7ecdf8ee.js} +1 -1
  31. package/dist/assets/{Manage.b902bddd.js → Manage.1a8224d6.js} +1 -1
  32. package/dist/assets/{MarkdownRenderer.3944eadd.js → MarkdownRenderer.7c34f678.js} +1 -1
  33. package/dist/assets/{Navigator.37134a99.js → Navigator.0b969b34.js} +1 -1
  34. package/dist/assets/{Pagination.2876be64.js → Pagination.4947ec48.js} +1 -1
  35. package/dist/assets/{Setting.da01a00c.js → Setting.3851c136.js} +1 -1
  36. package/dist/assets/{Status.d33b475e.js → Status.67cbacaf.js} +1 -1
  37. package/dist/assets/{distribution.3a8d7753.js → distribution.45dc7af7.js} +1 -1
  38. package/dist/assets/index.0542cd26.js +1 -0
  39. package/dist/assets/index.1a15ffa9.js +1 -0
  40. package/dist/assets/index.2f2bd2f0.js +1 -0
  41. package/dist/assets/index.37465f4e.js +1 -0
  42. package/dist/assets/index.391197bf.js +1 -0
  43. package/dist/assets/index.3dcc9f0d.js +1 -0
  44. package/dist/assets/index.63b639eb.js +1 -0
  45. package/dist/assets/index.815395c4.js +1 -0
  46. package/dist/assets/index.86722d1a.js +1 -0
  47. package/dist/assets/index.8677a92c.js +1 -0
  48. package/dist/assets/{index.b34f03e4.js → index.87b1fa1b.js} +2 -2
  49. package/dist/assets/index.93a0aa5d.js +1 -0
  50. package/dist/assets/index.b44a7261.js +1 -0
  51. package/dist/assets/index.c087482b.js +1 -0
  52. package/dist/assets/index.db83989d.js +1 -0
  53. package/dist/assets/index.e0fe452a.js +1 -0
  54. package/dist/assets/index.f13c8e0d.js +1 -0
  55. package/dist/assets/index.f964e456.js +1 -0
  56. package/dist/assets/{order.ee359822.js → order.8b502d72.js} +1 -1
  57. package/dist/assets/{price.359d41c8.js → price.471a6541.js} +1 -1
  58. package/dist/index.html +1 -1
  59. package/package.json +1 -1
  60. package/dist/assets/index.22fdfd19.js +0 -1
  61. package/dist/assets/index.30a27d8d.js +0 -1
  62. package/dist/assets/index.4459fc2f.js +0 -1
  63. package/dist/assets/index.79cb6cc4.js +0 -1
  64. package/dist/assets/index.7e9285e8.js +0 -1
  65. package/dist/assets/index.8814d650.js +0 -1
  66. package/dist/assets/index.9188158c.js +0 -1
  67. package/dist/assets/index.95dd5d61.js +0 -1
  68. package/dist/assets/index.aee09acd.js +0 -1
  69. package/dist/assets/index.b745b187.js +0 -1
  70. package/dist/assets/index.c60fc17d.js +0 -1
  71. package/dist/assets/index.cff63a3f.js +0 -1
  72. package/dist/assets/index.d35b5c14.js +0 -1
  73. package/dist/assets/index.d5b5117d.js +0 -1
  74. package/dist/assets/index.de9c199d.js +0 -1
  75. package/dist/assets/index.f63da6d3.js +0 -1
  76. package/dist/assets/index.feb83200.js +0 -1
@@ -1 +1 @@
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.b34f03e4.js";import{an as L}from"./vendor-fortawesome.1cce8f50.js";import{L as j,D as q}from"./DarkSelector.1951b9ef.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
+ 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.87b1fa1b.js";import{an as L}from"./vendor-fortawesome.1cce8f50.js";import{L as j,D as q}from"./DarkSelector.a102c4b3.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,3 +1,3 @@
1
- var Ie=Object.defineProperty,Ce=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var fe=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))Ne.call(t,n)&&fe(e,n,t[n]);if(he)for(var n of he(t))Ae.call(t,n)&&fe(e,n,t[n]);return e},f=(e,t)=>Ce(e,Se(t));import{K as Ee,L as Q,V as Te,M as $e,P as xe,N as Ve}from"./vendor-others.de6317ed.js";import{an as re}from"./vendor-fortawesome.1cce8f50.js";import{_ as k,ay as ve,V as ae,B as De,az as je}from"./index.b34f03e4.js";import{P as Le,l as ce,w as Fe,x as Ue,T as ge,N as ne,s as ue,X as de,Z as Ge,_ as ye,$ as we,u as Re,d as ze,f as Me,e as Oe,S as ke,t as qe,C as Be,R as We,a0 as He,a1 as Ke,a2 as Xe,M as Y}from"./vendor-element-plus.efc1b383.js";import{H as b,al as u,o as r,e as _,S as w,f as a,I as te,V as l,M as g,U as v,W as Z,ai as se,L as P,av as be,O as pe,T as J,m as U,u as y,A as Pe,s as Ye,R as Ze,P as Je}from"./vendor-@vue.34786d41.js";import{A as Qe,i as et}from"./Status.d33b475e.js";import{I as ie}from"./InfoIcon.9b9ec7c5.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const tt=b({name:"LayoutSuno",components:{ElDrawer:Le,ElButton:ce,FontAwesomeIcon:re},data(){return{drawer:!1,preview:!1}},computed:{isPlaying(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.player)==null?void 0:t.isPlaying}}}),st={class:"main"},ot={class:"config"},nt={class:"result"},it={class:"preview"};function at(e,t,n,s,c,d){const i=u("font-awesome-icon"),p=u("el-button"),h=u("el-drawer");return r(),_("div",st,[w(" \u6700\u5DE6\u4FA7\u914D\u7F6E\u680F "),a("div",ot,[te(e.$slots,"config",{},void 0,!0)]),w(" \u4E2D\u95F4\u6B4C\u66F2\u5217\u8868\u680F "),a("div",nt,[te(e.$slots,"result",{},void 0,!0)]),w(" \u6700\u53F3\u8FB9\u6B4C\u66F2\u9884\u89C8\u680F "),a("div",it,[te(e.$slots,"preview",{},void 0,!0)]),l(p,{round:"",class:"menu",onClick:t[0]||(t[0]=$=>e.drawer=!0)},{default:g(()=>[l(i,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),l(h,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=$=>e.drawer=$),"with-header":!1,size:"340px",class:"drawer"},{default:g(()=>[te(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"]),w(` <el-drawer v-model="isPlaying" :with-header="false" size="340px" class="preview_drawer">
1
+ var Ie=Object.defineProperty,Ce=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var fe=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))Ne.call(t,n)&&fe(e,n,t[n]);if(he)for(var n of he(t))Ae.call(t,n)&&fe(e,n,t[n]);return e},f=(e,t)=>Ce(e,Se(t));import{K as Ee,L as Q,V as Te,M as $e,P as xe,N as Ve}from"./vendor-others.de6317ed.js";import{an as re}from"./vendor-fortawesome.1cce8f50.js";import{_ as k,ay as ve,V as ae,B as De,az as je}from"./index.87b1fa1b.js";import{P as Le,l as ce,w as Fe,x as Ue,T as ge,N as ne,s as ue,X as de,Z as Ge,_ as ye,$ as we,u as Re,d as ze,f as Me,e as Oe,S as ke,t as qe,C as Be,R as We,a0 as He,a1 as Ke,a2 as Xe,M as Y}from"./vendor-element-plus.efc1b383.js";import{H as b,al as u,o as r,e as _,S as w,f as a,I as te,V as l,M as g,U as v,W as Z,ai as se,L as P,av as be,O as pe,T as J,m as U,u as y,A as Pe,s as Ye,R as Ze,P as Je}from"./vendor-@vue.34786d41.js";import{A as Qe,i as et}from"./Status.67cbacaf.js";import{I as ie}from"./InfoIcon.66804e86.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.39cf5eae.js";const tt=b({name:"LayoutSuno",components:{ElDrawer:Le,ElButton:ce,FontAwesomeIcon:re},data(){return{drawer:!1,preview:!1}},computed:{isPlaying(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.player)==null?void 0:t.isPlaying}}}),st={class:"main"},ot={class:"config"},nt={class:"result"},it={class:"preview"};function at(e,t,n,s,c,d){const i=u("font-awesome-icon"),p=u("el-button"),h=u("el-drawer");return r(),_("div",st,[w(" \u6700\u5DE6\u4FA7\u914D\u7F6E\u680F "),a("div",ot,[te(e.$slots,"config",{},void 0,!0)]),w(" \u4E2D\u95F4\u6B4C\u66F2\u5217\u8868\u680F "),a("div",nt,[te(e.$slots,"result",{},void 0,!0)]),w(" \u6700\u53F3\u8FB9\u6B4C\u66F2\u9884\u89C8\u680F "),a("div",it,[te(e.$slots,"preview",{},void 0,!0)]),l(p,{round:"",class:"menu",onClick:t[0]||(t[0]=$=>e.drawer=!0)},{default:g(()=>[l(i,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),l(h,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=$=>e.drawer=$),"with-header":!1,size:"340px",class:"drawer"},{default:g(()=>[te(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"]),w(` <el-drawer v-model="isPlaying" :with-header="false" size="340px" class="preview_drawer">
2
2
  <slot name="preview" />
3
3
  </el-drawer> `)])}var lt=k(tt,[["render",at],["__scopeId","data-v-0621513c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Suno.vue"]]);const rt=b({name:"VersionSelector",components:{ElSelect:Fe,ElOption:Ue,ElSwitch:ge},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{label:this.$t("suno.model.model1"),value:"chirp-v2-xxl-alpha"},{label:this.$t("suno.model.model2"),value:"chirp-v3-0"},{label:this.$t("suno.model.model3"),value:"chirp-v3-5"}]}},computed:{custom:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{custom:e}))}},model:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.model},set(e){var t;console.debug("set model",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{model:e}))}}},mounted(){this.model||(console.debug("set default type",ve),this.model=ve)}}),ct={class:"field"},ut={class:"title"};function dt(e,t,n,s,c,d){const i=u("el-switch"),p=u("el-option"),h=u("el-select");return r(),_("div",ct,[a("h2",ut,v(e.$t("suno.name.type")),1),l(i,{modelValue:e.custom,"onUpdate:modelValue":t[0]||(t[0]=$=>e.custom=$),class:"value"},null,8,["modelValue"]),l(h,{modelValue:e.model,"onUpdate:modelValue":t[1]||(t[1]=$=>e.model=$),class:"value",placeholder:e.$t("suno.placeholder.select")},{default:g(()=>[(r(!0),_(Z,null,se(e.options,$=>(r(),P(p,{key:$.value,label:$.label,value:$.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var pt=k(rt,[["render",dt],["__scopeId","data-v-6d5f21aa"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/TypeSelector.vue"]]);const _t="",mt=b({name:"PromptInput",components:{ElInput:ne,InfoIcon:ie},data(){return{}},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=_t)}}),ht={class:"field"},ft={class:"box"},vt={class:"title"};function $t(e,t,n,s,c,d){const i=u("info-icon"),p=u("el-input");return r(),_("div",ht,[a("div",ft,[a("h2",vt,v(e.$t("suno.name.prompt")),1),l(i,{content:e.$t("suno.description.prompt"),class:"info"},null,8,["content"])]),l(p,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=h=>e.prompt=h),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("suno.placeholder.prompt"),maxlength:200,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var gt=k(mt,[["render",$t],["__scopeId","data-v-11b65236"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/PromptInput.vue"]]);const yt="",wt=b({name:"LyricInput",components:{ElInput:ne,InfoIcon:ie},data(){return{}},computed:{lyric:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.lyric},set(e){var t;console.debug("set lyric",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{lyric:e}))}},config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}},mounted(){this.value||(this.value=yt)}}),kt={class:"field"},bt={class:"box"},Pt={class:"title"};function It(e,t,n,s,c,d){var h;const i=u("info-icon"),p=u("el-input");return r(),_("div",kt,[a("div",bt,[a("h2",Pt,v(e.$t("suno.name.lyrics")),1),l(i,{content:e.$t("suno.description.lyrics"),class:"info"},null,8,["content"])]),((h=e.config)==null?void 0:h.action)!=="extend"?(r(),P(p,{key:0,modelValue:e.lyric,"onUpdate:modelValue":t[0]||(t[0]=$=>e.lyric=$),rows:3,type:"textarea",class:"lyrics",placeholder:e.$t("suno.placeholder.lyrics"),maxlength:3e3,"show-word-limit":""},null,8,["modelValue","placeholder"])):(r(),P(p,{key:1,modelValue:e.lyric,"onUpdate:modelValue":t[1]||(t[1]=$=>e.lyric=$),rows:3,type:"textarea",class:"lyrics",placeholder:e.$t("suno.placeholder.extend.lyrics"),maxlength:3e3,"show-word-limit":""},null,8,["modelValue","placeholder"]))])}var Ct=k(wt,[["render",It],["__scopeId","data-v-b47f1748"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/LyricInput.vue"]]);const St=b({name:"StyleInput",components:{ElInput:ne,InfoIcon:ie},data(){return{}},computed:{style:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.style},set(e){var t;console.debug("set style",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{style:e}))}},config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}}}),Nt={class:"field"},At={class:"title-container"},Et={class:"title"};function Tt(e,t,n,s,c,d){const i=u("info-icon"),p=u("el-input");return r(),_("div",Nt,[a("div",At,[a("h2",Et,v(e.$t("suno.name.style")),1),l(i,{content:e.$t("suno.description.style"),class:"info"},null,8,["content"])]),l(p,{modelValue:e.style,"onUpdate:modelValue":t[0]||(t[0]=h=>e.style=h),rows:3,type:"textarea",class:"style",placeholder:e.$t("suno.placeholder.style"),maxlength:120,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var xt=k(St,[["render",Tt],["__scopeId","data-v-075e574a"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/StyleInput.vue"]]);const Vt="",Dt=b({name:"TitleInput",components:{ElInput:ne,InfoIcon:ie},data(){return{}},computed:{title:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.title},set(e){var t;console.debug("set title",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{title:e}))}},instrumental:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.instrumental},set(e){var t;console.debug("set instrumental",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{instrumental:e}))}}},mounted(){this.value||(this.value=Vt)}}),jt={class:"field"},Lt={class:"title-container"},Ft={class:"title"};function Ut(e,t,n,s,c,d){const i=u("info-icon"),p=u("el-input");return r(),_("div",jt,[a("div",Lt,[a("h2",Ft,v(e.$t("suno.name.title")),1),l(i,{content:e.$t("suno.description.title"),class:"info"},null,8,["content"])]),l(p,{modelValue:e.title,"onUpdate:modelValue":t[0]||(t[0]=h=>e.title=h),rows:3,type:"textarea",class:"title",placeholder:e.$t("suno.placeholder.title"),maxlength:80,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Gt=k(Dt,[["render",Ut],["__scopeId","data-v-f9bac2fa"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/TitleInput.vue"]]);function oe(e){const t=Math.floor(e)%60;e=Math.floor(e/60);const n=e%60,s=n<10?`0${n}`:n,c=t<10?`0${t}`:t;return s+":"+c}const Rt=b({name:"ExtendFromInput",components:{ElImage:ue,ElIcon:de,ElInputNumber:Ge,VideoPlay:ye,VideoPause:we},data(){return{}},computed:{audio(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.audio},value:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.continue_at},set(e){var t;console.debug("set continue_at",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{continue_at:e?parseInt(e):void 0}))}}},mounted(){this.value||(this.value=void 0)},methods:{handleChange(e){var t,n;e<0?this.value=0:e>((t=this.audio)==null?void 0:t.duration)?this.value=(n=this.audio)==null?void 0:n.duration:this.value=e},useFormatDuring:oe,onPlay(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"playing"})),console.log("on play")},onPause(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"paused"})),console.log("on pause")},onClick(e){var t,n,s;((s=(n=(t=this.$store.state)==null?void 0:t.suno)==null?void 0:n.audio)==null?void 0:s.id)!==e.id&&this.onPlay(f(m({},e),{progress:0}))}}}),zt={class:"field"},Mt={class:"box"},Ot={class:"title"},qt={class:"input-wrapper"},Bt={class:"task"},Wt={class:"left"},Ht={key:2,class:"duration"},Kt={class:"info"},Xt={class:"title"},Yt={class:"style"};function Zt(e,t,n,s,c,d){var C,I,S,N,A,o,j,V,D,F,L,G,R,z,M,O,q,B,W,H,K,X,E,_e,me;const i=u("el-input-number"),p=u("el-image"),h=u("video-pause"),$=u("el-icon"),T=u("video-play"),x=be("loading");return r(),_("div",zt,[a("div",Mt,[a("h2",Ot,v(e.$t("suno.name.extend")),1),a("div",qt,[l(i,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=ee=>e.value=ee),class:"value",min:0,max:(C=e.audio)==null?void 0:C.duration,controls:!1,placeholder:e.$t("suno.placeholder.extend.continue_at"),onChange:e.handleChange},null,8,["modelValue","max","placeholder","onChange"])])]),a("div",Bt,[a("div",{class:"audio",onClick:t[3]||(t[3]=ee=>e.onClick(e.audio))},[pe((r(),_("div",Wt,[l(p,{src:(I=e.audio)==null?void 0:I.image_url,class:"cover",fit:"cover"},null,8,["src"]),((S=e.audio)==null?void 0:S.audio_url)&&((o=(A=(N=e.$store.state)==null?void 0:N.suno)==null?void 0:A.audio)==null?void 0:o.id)===e.audio.id&&((D=(V=(j=e.$store.state)==null?void 0:j.suno)==null?void 0:V.audio)==null?void 0:D.state)==="playing"?(r(),_("div",{key:0,class:"overlay",onClick:t[1]||(t[1]=ee=>e.onPause(e.audio))},[l($,null,{default:g(()=>[l(h)]),_:1})])):w("v-if",!0),((F=e.audio)==null?void 0:F.audio_url)&&(((R=(G=(L=e.$store.state)==null?void 0:L.suno)==null?void 0:G.audio)==null?void 0:R.id)!==e.audio.id||((O=(M=(z=e.$store.state)==null?void 0:z.suno)==null?void 0:M.audio)==null?void 0:O.id)===e.audio.id&&((W=(B=(q=e.$store.state)==null?void 0:q.suno)==null?void 0:B.audio)==null?void 0:W.state)==="paused")?(r(),_("div",{key:1,class:"overlay",onClick:t[2]||(t[2]=ee=>e.onPlay(e.audio))},[l($,null,{default:g(()=>[l(T)]),_:1})])):w("v-if",!0),(H=e.audio)!=null&&H.duration?(r(),_("div",Ht,v(e.useFormatDuring((K=e.audio)==null?void 0:K.duration)),1)):w("v-if",!0)])),[[x,!((X=e.audio)!=null&&X.audio_url)||!((E=e.audio)!=null&&E.video_url)]]),a("div",Kt,[a("h2",Xt,v((_e=e.audio)==null?void 0:_e.title),1),a("p",Yt,v((me=e.audio)==null?void 0:me.style),1)])])])])}var Jt=k(Rt,[["render",Zt],["__scopeId","data-v-040b76e5"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/ExtendFromInput.vue"]]);const Qt=!1,es=b({name:"InstrumentSwitch",components:{ElSwitch:ge},data(){return{}},computed:{instrumental:{get(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.config)==null?void 0:t.instrumental},set(e){var t;console.debug("set instrumental",e),this.$store.commit("suno/setConfig",f(m({},(t=this.$store.state.suno)==null?void 0:t.config),{instrumental:e}))}}},mounted(){this.instrumental===void 0&&(this.instrumental=Qt)}}),ts={class:"field"},ss={class:"title inline-block"};function os(e,t,n,s,c,d){const i=u("el-switch");return r(),_("div",ts,[l(i,{modelValue:e.instrumental,"onUpdate:modelValue":t[0]||(t[0]=p=>e.instrumental=p),class:"value mr-2"},null,8,["modelValue"]),a("h2",ss,v(e.$t("suno.name.instrumental")),1)])}var ns=k(es,[["render",os],["__scopeId","data-v-78764cec"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/config/InstrumentSwitch.vue"]]);const is=b({name:"PresetPanel",components:{TypeSelector:pt,PromptInput:gt,LyricInput:Ct,InstrumentSwitch:ns,StyleInput:xt,TitleInput:Gt,ExtendFromInput:Jt,FontAwesomeIcon:re,ElButton:ce},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.suno)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),as={class:"panel"},ls={class:"config"},rs={class:"actions"};function cs(e,t,n,s,c,d){var N,A,o,j,V,D;const i=u("type-selector"),p=u("instrument-switch"),h=u("prompt-input"),$=u("lyric-input"),T=u("style-input"),x=u("title-input"),C=u("extend-from-input"),I=u("font-awesome-icon"),S=u("el-button");return r(),_("div",as,[a("div",ls,[l(i,{class:"mb-4"}),l(p,{class:"mb-4 instrument"}),(N=e.config)!=null&&N.custom?w("v-if",!0):(r(),P(h,{key:0,class:"mb-4"})),((A=e.config)==null?void 0:A.custom)&&!e.config.instrumental?(r(),P($,{key:1,class:"mb-4"})):w("v-if",!0),(o=e.config)!=null&&o.custom?(r(),P(T,{key:2,class:"mb-4"})):w("v-if",!0),(j=e.config)!=null&&j.custom?(r(),P(x,{key:3,class:"mb-4"})):w("v-if",!0),((V=e.config)==null?void 0:V.action)==="extend"?(r(),P(C,{key:4,class:"mb-4"})):w("v-if",!0),a("div",rs,[((D=e.config)==null?void 0:D.action)!=="extend"?(r(),P(S,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:g(()=>[l(I,{icon:"fa-solid fa-magic",class:"mr-2"}),J(" "+v(e.$t("suno.button.generate")),1)]),_:1},8,["onClick"])):(r(),P(S,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:g(()=>[l(I,{icon:"fa-solid fa-magic",class:"mr-2"}),J(" "+v(e.$t("suno.button.extend")),1)]),_:1},8,["onClick"]))])])])}var us=k(is,[["render",cs],["__scopeId","data-v-38bb3c66"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/ConfigPanel.vue"]]);const ds=b({name:"TaskPreview",components:{ElImage:ue,ElIcon:de,ElTooltip:Re,ElButton:ce,FontAwesomeIcon:re,VideoPlay:ye,VideoPause:we,ElDropdown:ze,ElDropdownMenu:Me,ElDropdownItem:Oe},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{task(){var e;return(e=this.$store.state.suno)==null?void 0:e.tasks},audios(){var t,n,s,c,d;let e=[];return Array.isArray((n=(t=this.modelValue)==null?void 0:t.response)==null?void 0:n.data)&&((d=(c=(s=this.modelValue)==null?void 0:s.response)==null?void 0:c.data)==null||d.forEach(i=>{let p=i;e.push(p)})),console.log("audios",e),e},application(){var e;return(e=this.$store.state.suno)==null?void 0:e.application},active(){var e,t;return(t=(e=this.$store.state.suno)==null?void 0:e.tasks)==null?void 0:t.active}},methods:{useFormatDuring:oe,onPlay(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"playing"})),console.log("on play")},onPause(e){this.$store.dispatch("suno/setAudio",f(m(m({},this.$store.state.suno.audio),e),{state:"paused"})),console.log("on pause")},onClick(e){var t,n,s;((s=(n=(t=this.$store.state)==null?void 0:t.suno)==null?void 0:n.audio)==null?void 0:s.id)!==e.id&&this.onPlay(f(m({},e),{progress:0}))},onExtend(e,t){var n;e.stopPropagation(),console.log("on extend"),console.debug("set config",t),this.$store.commit("suno/setConfig",f(m({},(n=this.$store.state.suno)==null?void 0:n.config),{model:t.model,custom:!0,instrumental:!1,style:t.style,action:"extend",audio:t,audio_id:t.id,continue_at:t.duration}))},onDownload(e,t){e.stopPropagation(),console.log("on download",t);const s=new URL(t).pathname,c=s.substring(s.lastIndexOf("/")+1);console.log("on preview",c),fetch(t).then(d=>d.blob()).then(d=>{Ee.exports.saveAs(d,c)})},onPreview(e,t){e.stopPropagation(),console.log("on preview",t),window.open(t,"_blank")}}}),ps={class:"task"},_s=["onClick"],ms={class:"left"},hs=["onClick"],fs=["onClick"],vs={key:2,class:"duration"},$s={class:"info"},gs={class:"title"},ys={class:"style"},ws={class:"right"},ks={class:"el-dropdown-link"};function bs(e,t,n,s,c,d){const i=u("el-image"),p=u("video-pause"),h=u("el-icon"),$=u("video-play"),T=u("el-button"),x=u("font-awesome-icon"),C=u("el-tooltip"),I=u("el-dropdown-item"),S=u("el-dropdown-menu"),N=u("el-dropdown"),A=be("loading");return r(),_("div",ps,[(r(!0),_(Z,null,se(e.audios,(o,j)=>{var V,D,F,L,G,R,z,M,O,q,B,W,H,K,X;return r(),_("div",{key:j,class:"audio",onClick:E=>e.onClick(o)},[pe((r(),_("div",ms,[l(i,{src:o==null?void 0:o.image_url,class:"cover",fit:"cover"},null,8,["src"]),(o==null?void 0:o.audio_url)&&((F=(D=(V=e.$store.state)==null?void 0:V.suno)==null?void 0:D.audio)==null?void 0:F.id)===o.id&&((R=(G=(L=e.$store.state)==null?void 0:L.suno)==null?void 0:G.audio)==null?void 0:R.state)==="playing"?(r(),_("div",{key:0,class:"overlay",onClick:E=>e.onPause(o)},[l(h,null,{default:g(()=>[l(p)]),_:1})],8,hs)):w("v-if",!0),(o==null?void 0:o.audio_url)&&(((O=(M=(z=e.$store.state)==null?void 0:z.suno)==null?void 0:M.audio)==null?void 0:O.id)!==o.id||((W=(B=(q=e.$store.state)==null?void 0:q.suno)==null?void 0:B.audio)==null?void 0:W.id)===o.id&&((X=(K=(H=e.$store.state)==null?void 0:H.suno)==null?void 0:K.audio)==null?void 0:X.state)==="paused")?(r(),_("div",{key:1,class:"overlay",onClick:E=>e.onPlay(o)},[l(h,null,{default:g(()=>[l($)]),_:1})],8,fs)):w("v-if",!0),o!=null&&o.duration?(r(),_("div",vs,v(e.useFormatDuring(o==null?void 0:o.duration)),1)):w("v-if",!0)])),[[A,!(o!=null&&o.audio_url)||!(o!=null&&o.video_url)]]),a("div",$s,[a("h2",gs,v(o==null?void 0:o.title),1),a("p",ys,v(o==null?void 0:o.style),1)]),a("div",ws,[(o==null?void 0:o.audio_url)&&(o==null?void 0:o.video_url)?(r(),P(T,{key:0,size:"small",round:"",onClick:E=>e.onExtend(E,o)},{default:g(()=>[J(v(e.$t("suno.button.extend")),1)]),_:2},1032,["onClick"])):w("v-if",!0),l(C,{effect:"dark",content:e.$t("suno.button.video"),placement:"top"},{default:g(()=>[o!=null&&o.video_url?(r(),P(x,{key:0,icon:"fa-solid fa-clapperboard",class:"icon icon-preview",onClick:E=>e.onPreview(E,o==null?void 0:o.video_url)},null,8,["onClick"])):w("v-if",!0)]),_:2},1032,["content"]),l(N,null,{dropdown:g(()=>[l(S,null,{default:g(()=>[o!=null&&o.video_url?(r(),P(I,{key:0,onClick:E=>e.onDownload(E,o==null?void 0:o.video_url)},{default:g(()=>[J(v(e.$t("suno.button.download_video")),1)]),_:2},1032,["onClick"])):w("v-if",!0),o!=null&&o.audio_url?(r(),P(I,{key:1,onClick:E=>e.onDownload(E,o==null?void 0:o.audio_url)},{default:g(()=>[J(v(e.$t("suno.button.download_audio")),1)]),_:2},1032,["onClick"])):w("v-if",!0)]),_:2},1024)]),default:g(()=>[a("span",ks,[l(C,{effect:"dark",content:e.$t("suno.button.download"),placement:"top"},{default:g(()=>[(o==null?void 0:o.audio_url)||(o==null?void 0:o.video_url)?(r(),P(x,{key:0,icon:"fa-solid fa-download",class:"icon icon-download"})):w("v-if",!0)]),_:2},1032,["content"])])]),_:2},1024)])],8,_s)}),128))])}var Ps=k(ds,[["render",bs],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/task/Preview.vue"]]);const Is={class:"player-slider"},Cs=b({setup(e){const t=Q(),n=U({get:()=>{var i,p;return(p=(i=t.state.suno)==null?void 0:i.audio)==null?void 0:p.progress},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:i}))}),s=U({get:()=>{var i,p;return(p=(i=t.state.suno)==null?void 0:i.audio)==null?void 0:p.duration},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{duration:i}))}),c=()=>{},d=i=>t.dispatch("suno/setAudio",f(m({},t.state.suno.audio),{progress:i}));return(i,p)=>(r(),_("div",Is,[l(y(ke),{modelValue:y(n),"onUpdate:modelValue":p[0]||(p[0]=h=>Pe(n)?n.value=h:null),"show-tooltip":!1,min:0,max:y(s),onChange:d,onInput:c},null,8,["modelValue","max"])]))}});var Ss=k(Cs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerSlider.vue"]]),Ns="/assets/disk.4907c891.png";const As={class:"flex player-song"},Es=["src"],Ts={class:"ml-2 text-xs flex flex-col justify-between"},xs={class:"w-52 2xl:w-96 cursor-pointer truncate"},Vs={class:"flex"},Ds={class:"ml-2 text-dc"},js=b({setup(e){const t=Q(),n=U({get:()=>t.state.suno.audio,set:s=>t.commit("suno/setAudio",s)});return Ye(n,(s,c)=>{if((s==null?void 0:s.audio_url)!==(c==null?void 0:c.audio_url)){console.log("audio changed",s),s.object&&(console.log("111",s.object),s.object.pause(),delete s.object);const d=new Audio(s.audio_url);s.state==="playing"?d.play():d.pause(),d.addEventListener("loadedmetadata",()=>{d.currentTime=0,d.addEventListener("timeupdate",()=>{t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:d.currentTime}))})}),t.commit("suno/setAudio",f(m({},t.state.suno.audio),{object:d}))}else if((s==null?void 0:s.progress)!==(c==null?void 0:c.progress)&&Math.abs(s.progress-s.object.currentTime)>2){console.log("progress changed",s.progress);const d=t.state.suno.audio;d.object&&(d.object.currentTime=d.progress)}else(s==null?void 0:s.state)!==(c==null?void 0:c.state)&&(console.log("state changed",s.state),s.object&&(s.state==="playing"?s.object.play():s.object.pause()));(s==null?void 0:s.volume)!==(c==null?void 0:c.volume)&&(console.log("volume changed",s.volume),s.object&&(s.object.volume=s.volume/100))}),(s,c)=>{var d,i,p;return r(),_("div",As,[a("img",{alt:"",class:"w-11 h-11 rounded",src:((d=y(n))==null?void 0:d.image_url)||y(Ns)},null,8,Es),a("div",Ts,[a("div",xs,[a("div",Vs,[a("span",null,v(((i=y(n))==null?void 0:i.title)||"Music"),1),a("span",Ds,"- "+v(((p=y(n))==null?void 0:p.style)||"SmallRuralDog"),1)])])])])}}});var Ls=k(js,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerSong.vue"]]);const Fs={class:"flex justify-end items-center gap-x-2.5"},Us={class:"text-xs"},Gs=b({setup(e){const t=Q(),n=U({get:()=>{var c,d;return(d=(c=t.state.suno)==null?void 0:c.audio)==null?void 0:d.progress},set:c=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{progress:c}))}),s=U({get:()=>{var c,d;return(d=(c=t.state.suno)==null?void 0:c.audio)==null?void 0:d.duration},set:c=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{duration:c}))});return(c,d)=>(r(),_("div",Fs,[a("span",Us,v(y(oe)(y(n)))+" / "+v(y(oe)(y(s))),1)]))}});var Rs=k(Gs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerAction.vue"]]);const zs=b({props:{icon:{type:null,required:!0},theme:{type:String,required:!1},size:{type:[Number,String],required:!1},spin:{type:Boolean,required:!1},fill:{type:[String,Array],required:!1},strokeLinecap:{type:String,required:!1},strokeLinejoin:{type:String,required:!1},strokeWidth:{type:Number,required:!1}},setup(e){return(t,n)=>(r(),P(Ze(e.icon),{theme:e.theme,size:e.size,spin:e.spin,fill:e.fill,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,"stroke-width":e.strokeWidth},null,8,["theme","size","spin","fill","stroke-linecap","stroke-linejoin","stroke-width"]))}});var le=k(zs,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/IconPark.vue"]]);const Ms={class:"player-volume flex flex-col items-center pt-2"},Os={class:"text-sm mt-3"},qs={class:"mt-2"},Bs=b({setup(e){const t=Q(),n=U({get:()=>{var i;return(i=t.state.suno.audio)==null?void 0:i.volume},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{volume:i}))}),s=U({get:()=>{var i;return(i=t.state.suno.audio)==null?void 0:i.muted},set:i=>t.commit("suno/setAudio",f(m({},t.state.suno.audio),{muted:i}))}),c=()=>t.dispatch("suno/toggleMuted"),d=i=>t.dispatch("suno/setVolume",i);return(i,p)=>(r(),_("div",Ms,[a("div",null,[l(y(ke),{modelValue:y(n),"onUpdate:modelValue":p[0]||(p[0]=h=>Pe(n)?n.value=h:null),vertical:"",height:"100px","show-tooltip":!1,max:100,min:0,size:"small",disabled:y(s),onInput:d},null,8,["modelValue","disabled"])]),a("div",Os,v(y(n)),1),a("div",qs,[l(le,{icon:y(s)?y(Te):y($e),size:"16",theme:"filled",class:"hover-text",onClick:c},null,8,["icon"])])]))}});var Ws=k(Bs,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerVolumeSlider.vue"]]);const Hs={class:"flex items-center justify-center gap-x-3"},Ks=b({setup(e){const t=Q(),n=()=>t.dispatch("suno/setAudio",f(m({},t.state.suno.audio),{state:t.state.suno.audio.state==="playing"?"paused":"playing"})),s=U(()=>t.state.suno.audio);return(c,d)=>{var i;return r(),_("div",Hs,[l(le,{icon:((i=y(s))==null?void 0:i.state)==="playing"?y(xe):y(Ve),size:"45",theme:"filled",class:"control",onClick:n},null,8,["icon"]),l(y(qe),{placement:"top",width:"50px"},{reference:g(()=>[l(le,{icon:y($e),size:"20","stroke-width":3,class:"hover-text"},null,8,["icon"])]),default:g(()=>[l(Ws)]),_:1})])}}});var Xs=k(Ks,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/PlayerController.vue"]]);const Ys={class:"flex flex-col items-stretch h-20"},Zs={class:"flex grow px-5 items-center"},Js={class:"flex-1"},Qs={class:"flex-1"},eo={class:"flex-1"},to=b({setup(e){return(t,n)=>(r(),_("div",Ys,[l(Ss),a("div",Zs,[a("div",Js,[l(Ls)]),a("div",Qs,[l(Xs)]),a("div",eo,[l(Rs)])])]))}});var so=k(to,[["__file","/home/runner/work/Nexior/Nexior/src/components/suno/player/Player.vue"]]);const oo=b({name:"RecentPanel",components:{TaskPreview:Ps,ElSkeleton:Be,ElSkeletonItem:We,Player:so},data(){return{job:0}},computed:{tasks(){var e,t,n,s;return f(m({},(e=this.$store.state.suno)==null?void 0:e.tasks),{items:(s=(n=(t=this.$store.state.suno)==null?void 0:t.tasks)==null?void 0:n.items)==null?void 0:s.slice().reverse()})}}}),no={class:"panel recent"},io={key:0,class:"tasks"},ao={class:"left"},lo={class:"main"},ro={key:1,class:"tasks"},co={key:2,class:"description"},uo={class:"flex-1 flex flex-col"},po={class:"h-20"};function _o(e,t,n,s,c,d){var T,x,C,I,S,N,A,o,j,V,D,F;const i=u("el-skeleton-item"),p=u("el-skeleton"),h=u("task-preview"),$=u("player");return r(),_(Z,null,[a("div",no,[((T=e.tasks)==null?void 0:T.items)===void 0?(r(),_("div",io,[(r(),_(Z,null,se(3,L=>a("div",{key:L,class:"task placeholder"},[a("div",ao,[l(p,{animated:""},{template:g(()=>[l(i,{variant:"image",class:"avatar"})]),_:1})]),a("div",lo,[l(p,{animated:""},{template:g(()=>[l(i,{variant:"p",class:"title"}),l(i,{variant:"text",style:{"margin-right":"16px"}}),l(i,{variant:"text",style:{width:"80%"}})]),_:1})])])),64))])):((C=(x=e.tasks)==null?void 0:x.items)==null?void 0:C.length)&&((S=(I=e.tasks)==null?void 0:I.items)==null?void 0:S.length)>0?(r(),_("div",ro,[(r(!0),_(Z,null,se((N=e.tasks)==null?void 0:N.items,(L,G)=>(r(),P(h,{key:G,"model-value":L,class:"preview"},null,8,["model-value"]))),128))])):w("v-if",!0),((o=(A=e.tasks)==null?void 0:A.items)==null?void 0:o.length)===0?(r(),_("p",co,v(e.$t("suno.message.noTasks")),1)):w("v-if",!0)]),pe(a("div",uo,[a("div",po,[l($)])],512),[[Je,!!((F=(D=(V=(j=e.$store)==null?void 0:j.state)==null?void 0:V.suno)==null?void 0:D.audio)!=null&&F.object)]])],64)}var mo=k(oo,[["render",_o],["__scopeId","data-v-9a683526"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/RecentPanel.vue"]]);const ho=b({name:"TaskPreview",components:{ElScrollbar:He,IconPicture:Ke,ElImage:ue,ElAvatar:Xe,ElIcon:de},data(){return{showCloseIcon:!0}},computed:{audio(){var e;return(e=this.$store.state.suno)==null?void 0:e.audio}},methods:{closeCard(){this.showCloseIcon=!this.showCloseIcon}}}),fo={key:0,class:"card"},vo={class:"image-container"},$o={class:"image-slot"},go={class:"title"},yo={class:"content"},wo={class:"artist"},ko={class:"style"},bo={class:"time"},Po={class:"lyrics"},Io={key:1,class:"gradient-background"};function Co(e,t,n,s,c,d){const i=u("icon-picture"),p=u("el-icon"),h=u("el-image"),$=u("el-avatar"),T=u("el-scrollbar");return r(),P(T,{class:"right-panel"},{default:g(()=>{var x,C,I,S,N,A,o;return[(x=e.audio)!=null&&x.object?(r(),_("div",fo,[a("div",vo,[l(h,{src:e.audio.image_url,fit:"cover"},{error:g(()=>[a("div",$o,[l(p,null,{default:g(()=>[l(i)]),_:1})])]),_:1},8,["src"]),a("h2",go,v((C=e.audio)==null?void 0:C.title),1)]),a("div",yo,[a("div",wo,[l($,{size:30,src:(I=e.audio)==null?void 0:I.image_url},null,8,["src"]),a("span",null,v((S=e.audio)==null?void 0:S.prompt),1)]),a("p",ko,v((N=e.audio)==null?void 0:N.style),1),a("p",bo,v(e.$dayjs.format((A=e.audio)==null?void 0:A.created_at)),1),a("div",Po,[a("p",null,v((o=e.audio)==null?void 0:o.lyric),1)])])])):(r(),_("div",Io))]}),_:1})}var So=k(ho,[["render",Co],["__scopeId","data-v-19e67a48"],["__file","/home/runner/work/Nexior/Nexior/src/components/suno/PreviewPanel.vue"]]);const No="https://webhook.acedata.cloud/suno",Ao=b({name:"SunoIndex",components:{Layout:lt,ApplicationStatus:Qe,ConfigPanel:us,RecentPanel:mo,PreviewPanel:So},data(){return{task:void 0,job:0,timer:void 0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.suno)==null?void 0:e.status)==null?void 0:t.getApplications)===ae.Request},service(){return this.$store.state.suno.service},credential(){return this.$store.state.suno.credential},config(){return this.$store.state.suno.config},initializing(){return this.$store.state.suno.status.getApplications===ae.Request},needApply(){return this.$store.state.suno.status.getApplications===ae.Success&&!this.application},application(){return this.$store.state.suno.application},tasks(){return this.$store.state.suno.tasks}},watch:{tasks:{handler(e,t){var n,s;((n=e==null?void 0:e.items)==null?void 0:n.length)>((s=t==null?void 0:t.items)==null?void 0:s.length)&&(console.debug("new tasks detected"),this.onScrollDown())},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job),clearInterval(this.timer)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("suno/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplications"),await this.$store.dispatch("suno/getApplications"),console.debug("end onGetApplications"),await this.onGetTasks()},onApply(){De.create({application:this.application}).then(({data:e})=>{this.application=e,Y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,n;((n=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:n.code)===et&&Y.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},1e3)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("suno/getTasks",{limit:30,offset:0})},async onGenerateAudio(){var n;const e=f(m({},this.config),{callback_url:No}),t=(n=this.credential)==null?void 0:n.token;if(!t){console.error("no token specified");return}Y.info(this.$t("suno.message.startingTask")),je.audio(e,{token:t}).then(()=>{Y.success(this.$t("suno.message.startTaskSuccess"))}).catch(s=>{var c,d,i;Y.error(((i=(d=(c=s==null?void 0:s.response)==null?void 0:c.data)==null?void 0:d.error)==null?void 0:i.message)||this.$t("suno.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function Eo(e,t,n,s,c,d){const i=u("config-panel"),p=u("application-status"),h=u("recent-panel"),$=u("preview-panel"),T=u("layout");return r(),P(T,null,{config:g(()=>[l(i,{onGenerate:e.onGenerateAudio},null,8,["onGenerate"])]),result:g(()=>[l(p,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),l(h,{class:"panel recent"})]),preview:g(()=>[l($)]),_:1})}var zo=k(Ao,[["render",Eo],["__scopeId","data-v-11d62c6c"],["__file","/home/runner/work/Nexior/Nexior/src/pages/suno/Index.vue"]]);export{zo as default};
@@ -1,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.de6317ed.js";import{an as B}from"./vendor-fortawesome.1cce8f50.js";import{_ as w,K as de,V as j,B as pe,ax as ue}from"./index.b34f03e4.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 O,m as ke}from"./vendor-@vue.34786d41.js";import{I as we}from"./InfoIcon.9b9ec7c5.js";import{A as Ie,i as Ve,h as Se}from"./Status.d33b475e.js";import{C as Ce}from"./CopyToClipboard.d4a8fc6a.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 Oe(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 je=w(Ae,[["render",Oe],["__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:O({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:je,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:O({content:!0,failed:!0})},ys={class:"image-wrapper"},bs={class:"description"},ks={key:1,class:O({content:!0})},ws={class:"description"},Is={class:"description"},Vs={class:"description"},Ss={key:2,class:O({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/isxyfw.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 j,B as pe,ax as ue}from"./index.87b1fa1b.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 O,m as ke}from"./vendor-@vue.34786d41.js";import{I as we}from"./InfoIcon.66804e86.js";import{A as Ie,i as Ve,h as Se}from"./Status.67cbacaf.js";import{C as Ce}from"./CopyToClipboard.6a100945.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 Oe(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 je=w(Ae,[["render",Oe],["__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:O({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:je,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:O({content:!0,failed:!0})},ys={class:"image-wrapper"},bs={class:"description"},ks={key:1,class:O({content:!0})},ws={class:"description"},Is={class:"description"},Vs={class:"description"},Ss={key:2,class:O({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/isxyfw.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' ||