@acedatacloud/nexior 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/assets/{Auth.dc0f8198.js → Auth.eb29fecd.js} +1 -1
  2. package/dist/assets/{Callback.c84fb6fc.js → Callback.bce756e7.js} +1 -1
  3. package/dist/assets/{Chatdoc.881bdb8d.js → Chatdoc.2bb8cda8.js} +1 -1
  4. package/dist/assets/{Console.a63ee771.js → Console.6f0786f8.js} +1 -1
  5. package/dist/assets/{Conversation.430407d2.js → Conversation.25d261b6.js} +1 -1
  6. package/dist/assets/{Conversation.0eb95938.js → Conversation.759ee12a.js} +1 -1
  7. package/dist/assets/{CopyToClipboard.aee8f89c.js → CopyToClipboard.8ebe33f6.js} +1 -1
  8. package/dist/assets/{Detail.e40da8b9.js → Detail.818f0f0f.js} +1 -1
  9. package/dist/assets/{EditArray.f4e1d8d3.js → EditArray.d15327ac.js} +1 -1
  10. package/dist/assets/{Extra.13d1c29e.js → Extra.0d9481ce.js} +1 -1
  11. package/dist/assets/{History.0908b85e.js → History.6dca5230.js} +1 -1
  12. package/dist/assets/{ImagePreview.54c0d919.js → ImagePreview.ea09ed5a.js} +1 -1
  13. package/dist/assets/{Index.1328d83c.js → Index.2cd1e2e3.js} +1 -1
  14. package/dist/assets/{Index.620d6fa4.js → Index.3c3f4fc1.js} +1 -1
  15. package/dist/assets/{Index.aa0c72cd.js → Index.42e8374d.js} +1 -1
  16. package/dist/assets/{Index.133c8f72.js → Index.69a9fb96.js} +1 -1
  17. package/dist/assets/{Index.490f668c.js → Index.6d6821d7.js} +1 -1
  18. package/dist/assets/{Index.b7f01e56.js → Index.7ee208d3.js} +1 -1
  19. package/dist/assets/{Index.ab801808.js → Index.81276373.js} +1 -1
  20. package/dist/assets/{Index.68b099af.js → Index.8a860c6b.js} +1 -1
  21. package/dist/assets/{Index.87260201.js → Index.a1a6a08f.js} +1 -1
  22. package/dist/assets/{Index.95af3227.js → Index.c7a00d2d.js} +1 -1
  23. package/dist/assets/{Index.208ada82.js → Index.ccacec38.js} +1 -1
  24. package/dist/assets/{Index.21d09fc4.js → Index.d8f1673b.js} +1 -1
  25. package/dist/assets/{Index.52de416f.js → Index.e988e706.js} +1 -1
  26. package/dist/assets/{InfoIcon.14b5afde.js → InfoIcon.1ef9ef71.js} +1 -1
  27. package/dist/assets/{Invitees.410a019d.js → Invitees.263d89e3.js} +1 -1
  28. package/dist/assets/{List.b24921db.js → List.11b23cd7.js} +1 -1
  29. package/dist/assets/{List.fa9a32f3.js → List.c31ec3d1.js} +1 -1
  30. package/dist/assets/{List.c488a4c6.js → List.f3eb857a.js} +1 -1
  31. package/dist/assets/{Login.3c14fed5.js → Login.9ed2b526.js} +1 -1
  32. package/dist/assets/{Main.f96fd729.js → Main.0008686f.js} +1 -1
  33. package/dist/assets/{Manage.68c3411c.js → Manage.780d1470.js} +1 -1
  34. package/dist/assets/{MarkdownRenderer.c3398df9.js → MarkdownRenderer.257f3d63.js} +1 -1
  35. package/dist/assets/{Navigator.e1dcc3e1.js → Navigator.87c585b8.js} +1 -1
  36. package/dist/assets/{Pagination.d881f818.js → Pagination.3b90ea43.js} +1 -1
  37. package/dist/assets/{Setting.50591e0a.js → Setting.541358e7.js} +1 -1
  38. package/dist/assets/{Status.eedcb19a.js → Status.d10547c8.js} +1 -1
  39. package/dist/assets/{Subscribe.8f0b1021.js → Subscribe.f1acca46.js} +1 -1
  40. package/dist/assets/{distribution.e3b109ee.js → distribution.bb1d0ed8.js} +1 -1
  41. package/dist/assets/{index.531671ec.js → index.d28a66ae.js} +3 -3
  42. package/dist/assets/{order.9dbff1b5.js → order.6d451728.js} +1 -1
  43. package/dist/assets/{price.37afa6c7.js → price.e1faf3aa.js} +1 -1
  44. package/dist/index.html +1 -1
  45. package/package.json +1 -1
@@ -1 +1 @@
1
- import"./vendor-others.e28a6fa7.js";import{N as i}from"./Navigator.e1dcc3e1.js";import{_ as a}from"./index.531671ec.js";import{H as s,al as o,e as _,V as e,o as m}from"./vendor-@vue.8cef8b94.js";import"./vendor-element-plus.7eade167.js";import"./vendor-fortawesome.0d8f27df.js";import"./EditArray.f4e1d8d3.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const c=s({name:"LayoutMain",components:{Navigator:i},data(){return{mobile:window.innerWidth<768}},mounted(){window.addEventListener("resize",()=>{this.mobile=window.innerWidth<768})}}),p={class:"wrapper"};function d(n,l,u,v,w,f){const r=o("router-view"),t=o("navigator");return m(),_("div",p,[e(r,{class:"main"}),e(t,{class:"navigator",direction:n.mobile?"row":"column"},null,8,["direction"])])}var B=a(c,[["render",d],["__scopeId","data-v-63155678"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Main.vue"]]);export{B as default};
1
+ import"./vendor-others.e28a6fa7.js";import{N as i}from"./Navigator.87c585b8.js";import{_ as a}from"./index.d28a66ae.js";import{H as s,al as o,e as _,V as e,o as m}from"./vendor-@vue.8cef8b94.js";import"./vendor-element-plus.7eade167.js";import"./vendor-fortawesome.0d8f27df.js";import"./EditArray.d15327ac.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const c=s({name:"LayoutMain",components:{Navigator:i},data(){return{mobile:window.innerWidth<768}},mounted(){window.addEventListener("resize",()=>{this.mobile=window.innerWidth<768})}}),p={class:"wrapper"};function d(n,l,u,v,w,f){const r=o("router-view"),t=o("navigator");return m(),_("div",p,[e(r,{class:"main"}),e(t,{class:"navigator",direction:n.mobile?"row":"column"},null,8,["direction"])])}var B=a(c,[["render",d],["__scopeId","data-v-63155678"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Main.vue"]]);export{B as default};
@@ -1 +1 @@
1
- import"./vendor-others.e28a6fa7.js";import{L as S}from"./Chatdoc.881bdb8d.js";import{u as D,E as L,x as N,k as z,X as B,y as p,C as T,b as F,D as M}from"./vendor-element-plus.7eade167.js";import{A as P,_ as k,a0 as w}from"./index.531671ec.js";import{H as E,al as l,o as n,e as b,V as s,M as o,P as R,L as m,R as h,f as c,T as a,S as d,U as K,av as O,O as j}from"./vendor-@vue.8cef8b94.js";import{A as q}from"./Status.eedcb19a.js";import"./vendor-fortawesome.0d8f27df.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const H=E({name:"UploadDocument",components:{ElButton:D,ElDialog:L,ElUpload:N,ElIcon:z,UploadFilled:B},data(){return{dialogVisible:!1,fileList:[],learning:!1,uploadUrl:P()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})}},async mounted(){},methods:{onExceed(){p.warning(this.$t("chatdoc.message.uploadDocumentsExceed"))},onError(){p.error(this.$t("chatdoc.message.uploadDocumentsError"))},async onSuccess(){p.success(this.$t("chatdoc.message.uploadDocumentsSuccess")),p.info(this.$t("chatdoc.message.startCreateDocument")),this.learning=!0,this.$store.dispatch("chatdoc/createDocument",{repositoryId:this.$route.params.repositoryId,fileUrl:this.urls[0],fileName:this.fileList[0].name}).then(()=>{p.success(this.$t("chatdoc.message.createDocumentSuccess")),this.dialogVisible=!1,this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.$route.params.repositoryId}),this.$store.dispatch("chatdoc/getApplications")}).catch(()=>{p.error(this.$t("chatdoc.message.createDocumentError"))}).finally(()=>{this.fileList=[],this.learning=!1})}}}),X={key:1,class:"el-upload__text"},G={key:2};function J(e,t,_,$,C,I){const v=l("upload-filled"),y=l("el-icon"),r=l("el-upload"),f=l("el-dialog"),g=l("el-button");return n(),b(K,null,[s(f,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=u=>e.dialogVisible=u)},{default:o(()=>[s(r,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=u=>e.fileList=u),accept:".docx,.doc,.pdf,.txt,.csv,.enex,.epub,.eml,.html,.htm,.shtml,.md,.odt,.ppt,.pptx,.txt",drag:"",class:R({upload:!0}),name:"file","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:o(()=>[e.learning?h("v-if",!0):(n(),m(y,{key:0,class:"el-icon--upload"},{default:o(()=>[s(v)]),_:1})),e.learning?h("v-if",!0):(n(),b("div",X,[c("p",null,a(e.$t("chatdoc.message.dragOrClickToUpload")),1),c("p",null,a(e.$t("chatdoc.message.supportedFiles")),1)])),e.learning?(n(),b("div",G,a(e.$t("chatdoc.message.learningDocument")),1)):h("v-if",!0)]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),_:1},8,["modelValue"]),s(g,{type:"primary",round:"",onClick:t[2]||(t[2]=u=>e.dialogVisible=!0)},{default:o(()=>[d(a(e.$t("chatdoc.button.uploadDocuments")),1)]),_:1})],64)}var Q=k(H,[["render",J],["__scopeId","data-v-4a88fdfb"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/UploadDocument.vue"]]);const W=E({name:"ChatdocKnowledge",components:{Layout:S,ElButton:D,ElTable:T,ElTag:F,ApplicationStatus:q,ElTableColumn:M,UploadDocument:Q},data(){return{loading:!1,repositoryId:this.$route.params.repositoryId.toString()}},computed:{repository(){var e,t,_;return(_=(t=(e=this.$store.state)==null?void 0:e.chatdoc)==null?void 0:t.repositories)==null?void 0:_.find($=>$.id===this.repositoryId)},documents(){var e;return(e=this.repository)==null?void 0:e.documents},needApply(){return this.$store.state.chatdoc.status.getApplications===w.Success&&!this.application},service(){return this.$store.state.chatdoc.service},application(){return this.$store.state.chatdoc.application},initializing(){return this.$store.state.chatdoc.status.getApplications===w.Request}},async mounted(){console.log("start get documents"),this.loading=!0,this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.repositoryId}).then(()=>{this.loading=!1}).catch(()=>{this.loading=!1})},methods:{onDelete(e){this.$store.dispatch("chatdoc/deleteDocument",{id:e}).then(()=>{p.success(this.$t("chatdoc.message.deleteDocumentSuccess")),this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.repositoryId})})},onPreview(e){window.open(e,"_blank")}}}),Y={class:"wrapper"},Z={class:"title"},x={class:"introduction"},ee={class:"status"},te={class:"operations"},oe={class:"documents"};function se(e,t,_,$,C,I){const v=l("application-status"),y=l("upload-document"),r=l("el-table-column"),f=l("el-tag"),g=l("el-button"),u=l("el-table"),U=l("layout"),V=O("loading");return n(),m(U,null,{chatdoc:o(()=>[c("div",Y,[c("div",Z,a(e.$t("chatdoc.title.manage")),1),c("div",x,a(e.$t("chatdoc.message.introductionForKnowledge")),1),c("div",ee,[s(v,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:t[0]||(t[0]=i=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),c("div",te,[s(y)]),c("div",oe,[j((n(),m(u,{data:e.documents,border:""},{default:o(()=>[s(r,{prop:"id",label:"ID"}),s(r,{prop:"file_name",label:e.$t("chatdoc.field.fileName")},null,8,["label"]),s(r,{label:e.$t("chatdoc.field.fileExtension"),width:"100px"},{default:o(i=>[d(a(i.row.file_name.split(".").pop()),1)]),_:1},8,["label"]),s(r,{label:e.$t("chatdoc.field.createdAt"),width:"200px"},{default:o(i=>[d(a(i.row.created_at?e.$dayjs.format(i.row.created_at):""),1)]),_:1},8,["label"]),s(r,{label:e.$t("chatdoc.field.state"),width:"180px"},{default:o(i=>[i.row.state==="processing"?(n(),m(f,{key:0,type:"info"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateProcessing")),1)]),_:1})):h("v-if",!0),i.row.state==="failed"?(n(),m(f,{key:1,type:"danger"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateFailed")),1)]),_:1})):h("v-if",!0),i.row.state==="completed"?(n(),m(f,{key:2,type:"success"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateCompleted")),1)]),_:1})):h("v-if",!0)]),_:1},8,["label"]),s(r,null,{default:o(i=>[s(g,{type:"primary",round:"",size:"small",onClick:A=>e.onPreview(i.row.file_url)},{default:o(()=>[d(a(e.$t("common.button.preview")),1)]),_:2},1032,["onClick"]),s(g,{type:"danger",round:"",size:"small",onClick:A=>e.onDelete(i.row.id)},{default:o(()=>[d(a(e.$t("common.button.delete")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,e.loading]])])])]),_:1})}var me=k(W,[["render",se],["__scopeId","data-v-69ae9518"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Manage.vue"]]);export{me as default};
1
+ import"./vendor-others.e28a6fa7.js";import{L as S}from"./Chatdoc.2bb8cda8.js";import{u as D,E as L,x as N,k as z,X as B,y as p,C as T,b as F,D as M}from"./vendor-element-plus.7eade167.js";import{A as P,_ as k,a0 as w}from"./index.d28a66ae.js";import{H as E,al as l,o as n,e as b,V as s,M as o,P as R,L as m,R as h,f as c,T as a,S as d,U as K,av as O,O as j}from"./vendor-@vue.8cef8b94.js";import{A as q}from"./Status.d10547c8.js";import"./vendor-fortawesome.0d8f27df.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const H=E({name:"UploadDocument",components:{ElButton:D,ElDialog:L,ElUpload:N,ElIcon:z,UploadFilled:B},data(){return{dialogVisible:!1,fileList:[],learning:!1,uploadUrl:P()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})}},async mounted(){},methods:{onExceed(){p.warning(this.$t("chatdoc.message.uploadDocumentsExceed"))},onError(){p.error(this.$t("chatdoc.message.uploadDocumentsError"))},async onSuccess(){p.success(this.$t("chatdoc.message.uploadDocumentsSuccess")),p.info(this.$t("chatdoc.message.startCreateDocument")),this.learning=!0,this.$store.dispatch("chatdoc/createDocument",{repositoryId:this.$route.params.repositoryId,fileUrl:this.urls[0],fileName:this.fileList[0].name}).then(()=>{p.success(this.$t("chatdoc.message.createDocumentSuccess")),this.dialogVisible=!1,this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.$route.params.repositoryId}),this.$store.dispatch("chatdoc/getApplications")}).catch(()=>{p.error(this.$t("chatdoc.message.createDocumentError"))}).finally(()=>{this.fileList=[],this.learning=!1})}}}),X={key:1,class:"el-upload__text"},G={key:2};function J(e,t,_,$,C,I){const v=l("upload-filled"),y=l("el-icon"),r=l("el-upload"),f=l("el-dialog"),g=l("el-button");return n(),b(K,null,[s(f,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=u=>e.dialogVisible=u)},{default:o(()=>[s(r,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=u=>e.fileList=u),accept:".docx,.doc,.pdf,.txt,.csv,.enex,.epub,.eml,.html,.htm,.shtml,.md,.odt,.ppt,.pptx,.txt",drag:"",class:R({upload:!0}),name:"file","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:o(()=>[e.learning?h("v-if",!0):(n(),m(y,{key:0,class:"el-icon--upload"},{default:o(()=>[s(v)]),_:1})),e.learning?h("v-if",!0):(n(),b("div",X,[c("p",null,a(e.$t("chatdoc.message.dragOrClickToUpload")),1),c("p",null,a(e.$t("chatdoc.message.supportedFiles")),1)])),e.learning?(n(),b("div",G,a(e.$t("chatdoc.message.learningDocument")),1)):h("v-if",!0)]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),_:1},8,["modelValue"]),s(g,{type:"primary",round:"",onClick:t[2]||(t[2]=u=>e.dialogVisible=!0)},{default:o(()=>[d(a(e.$t("chatdoc.button.uploadDocuments")),1)]),_:1})],64)}var Q=k(H,[["render",J],["__scopeId","data-v-4a88fdfb"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/UploadDocument.vue"]]);const W=E({name:"ChatdocKnowledge",components:{Layout:S,ElButton:D,ElTable:T,ElTag:F,ApplicationStatus:q,ElTableColumn:M,UploadDocument:Q},data(){return{loading:!1,repositoryId:this.$route.params.repositoryId.toString()}},computed:{repository(){var e,t,_;return(_=(t=(e=this.$store.state)==null?void 0:e.chatdoc)==null?void 0:t.repositories)==null?void 0:_.find($=>$.id===this.repositoryId)},documents(){var e;return(e=this.repository)==null?void 0:e.documents},needApply(){return this.$store.state.chatdoc.status.getApplications===w.Success&&!this.application},service(){return this.$store.state.chatdoc.service},application(){return this.$store.state.chatdoc.application},initializing(){return this.$store.state.chatdoc.status.getApplications===w.Request}},async mounted(){console.log("start get documents"),this.loading=!0,this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.repositoryId}).then(()=>{this.loading=!1}).catch(()=>{this.loading=!1})},methods:{onDelete(e){this.$store.dispatch("chatdoc/deleteDocument",{id:e}).then(()=>{p.success(this.$t("chatdoc.message.deleteDocumentSuccess")),this.$store.dispatch("chatdoc/getDocuments",{repositoryId:this.repositoryId})})},onPreview(e){window.open(e,"_blank")}}}),Y={class:"wrapper"},Z={class:"title"},x={class:"introduction"},ee={class:"status"},te={class:"operations"},oe={class:"documents"};function se(e,t,_,$,C,I){const v=l("application-status"),y=l("upload-document"),r=l("el-table-column"),f=l("el-tag"),g=l("el-button"),u=l("el-table"),U=l("layout"),V=O("loading");return n(),m(U,null,{chatdoc:o(()=>[c("div",Y,[c("div",Z,a(e.$t("chatdoc.title.manage")),1),c("div",x,a(e.$t("chatdoc.message.introductionForKnowledge")),1),c("div",ee,[s(v,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:t[0]||(t[0]=i=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),c("div",te,[s(y)]),c("div",oe,[j((n(),m(u,{data:e.documents,border:""},{default:o(()=>[s(r,{prop:"id",label:"ID"}),s(r,{prop:"file_name",label:e.$t("chatdoc.field.fileName")},null,8,["label"]),s(r,{label:e.$t("chatdoc.field.fileExtension"),width:"100px"},{default:o(i=>[d(a(i.row.file_name.split(".").pop()),1)]),_:1},8,["label"]),s(r,{label:e.$t("chatdoc.field.createdAt"),width:"200px"},{default:o(i=>[d(a(i.row.created_at?e.$dayjs.format(i.row.created_at):""),1)]),_:1},8,["label"]),s(r,{label:e.$t("chatdoc.field.state"),width:"180px"},{default:o(i=>[i.row.state==="processing"?(n(),m(f,{key:0,type:"info"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateProcessing")),1)]),_:1})):h("v-if",!0),i.row.state==="failed"?(n(),m(f,{key:1,type:"danger"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateFailed")),1)]),_:1})):h("v-if",!0),i.row.state==="completed"?(n(),m(f,{key:2,type:"success"},{default:o(()=>[d(a(e.$t("chatdoc.field.stateCompleted")),1)]),_:1})):h("v-if",!0)]),_:1},8,["label"]),s(r,null,{default:o(i=>[s(g,{type:"primary",round:"",size:"small",onClick:A=>e.onPreview(i.row.file_url)},{default:o(()=>[d(a(e.$t("common.button.preview")),1)]),_:2},1032,["onClick"]),s(g,{type:"danger",round:"",size:"small",onClick:A=>e.onDelete(i.row.id)},{default:o(()=>[d(a(e.$t("common.button.delete")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,e.loading]])])])]),_:1})}var me=k(W,[["render",se],["__scopeId","data-v-69ae9518"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Manage.vue"]]);export{me as default};
@@ -1 +1 @@
1
- import{ad as _}from"./vendor-others.e28a6fa7.js";import{m as p}from"./vendor-markdown.4f590479.js";import{a6 as u,a7 as l,_ as c}from"./index.531671ec.js";import{H as i,m,ah as v,al as h,av as f,O as g,o as w,L as k}from"./vendor-@vue.8cef8b94.js";import"./vendor-highlight.js.6ee9ffbc.js";const y=async o=>{const t=(await u(()=>import("./vendor-highlight.js.6ee9ffbc.js"),["assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css"])).default;console.debug("highlight.js loaded"),o.querySelectorAll("pre code").forEach(e=>{var s,a;const r=document.createElement("button");r.innerHTML=l.global.t("common.button.copy").toString(),r.addEventListener("click",()=>{_(e.innerText)}),(s=e.parentElement)!=null&&s.querySelector("button")||(a=e.parentElement)==null||a.prepend(r),t.highlightBlock(e)})},M=i({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,default:()=>({}),required:!1}},setup(o,{attrs:t}){const n=new p(o.options),e=m(()=>{const r=o.source;return n==null?void 0:n.render(r)});return()=>v("div",{...t,innerHTML:e.value})}});var x=c(M,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/VueMarkdown.vue"]]);const b=i({name:"ApiCode",directives:{highlight:y},components:{VueMarkdown:x},props:{content:{type:String,required:!1,default:""}},data(){},watch:{}});function E(o,t,n,e,r,s){const a=h("vue-markdown"),d=f("highlight");return g((w(),k(a,{source:o.content,class:"markdown-body"},null,8,["source"])),[[d]])}var $=c(b,[["render",E],["__scopeId","data-v-8173dc94"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/MarkdownRenderer.vue"]]);export{$ as M};
1
+ import{ad as _}from"./vendor-others.e28a6fa7.js";import{m as p}from"./vendor-markdown.4f590479.js";import{a6 as u,a7 as l,_ as c}from"./index.d28a66ae.js";import{H as i,m,ah as v,al as h,av as f,O as g,o as w,L as k}from"./vendor-@vue.8cef8b94.js";import"./vendor-highlight.js.6ee9ffbc.js";const y=async o=>{const t=(await u(()=>import("./vendor-highlight.js.6ee9ffbc.js"),["assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css"])).default;console.debug("highlight.js loaded"),o.querySelectorAll("pre code").forEach(e=>{var s,a;const r=document.createElement("button");r.innerHTML=l.global.t("common.button.copy").toString(),r.addEventListener("click",()=>{_(e.innerText)}),(s=e.parentElement)!=null&&s.querySelector("button")||(a=e.parentElement)==null||a.prepend(r),t.highlightBlock(e)})},M=i({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,default:()=>({}),required:!1}},setup(o,{attrs:t}){const n=new p(o.options),e=m(()=>{const r=o.source;return n==null?void 0:n.render(r)});return()=>v("div",{...t,innerHTML:e.value})}});var x=c(M,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/VueMarkdown.vue"]]);const b=i({name:"ApiCode",directives:{highlight:y},components:{VueMarkdown:x},props:{content:{type:String,required:!1,default:""}},data(){},watch:{}});function E(o,t,n,e,r,s){const a=h("vue-markdown"),d=f("highlight");return g((w(),k(a,{source:o.content,class:"markdown-body"},null,8,["source"])),[[d]])}var $=c(b,[["render",E],["__scopeId","data-v-8173dc94"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/MarkdownRenderer.vue"]]);export{$ as M};
@@ -1 +1 @@
1
- import{a3 as Ie,a9 as Te}from"./vendor-others.e28a6fa7.js";import{_ as N,g as Ne,S as Ve,s as Fe,d as M,e as Ge,f as Me,h as fe,j as He,k as ve,l as Xe,m as ge,n as Je,o as $e,p as be,q as we,r as Be,t as ke,u as Ke,v as ye,w as Qe,x as Se,y as Ye,z as Ee,c as qe}from"./index.531671ec.js";import{H as O,o as c,e as g,al as o,L as T,M as n,V as t,S as b,T as d,f as l,ai as H,U as V,O as K,W as Q,R as L,P as Oe}from"./vendor-@vue.8cef8b94.js";import{ar as Ce,as as ze,at as Pe,au as je,av as Ze,ac as We}from"./vendor-fortawesome.0d8f27df.js";import{f as Ue,h as Y,i as q,j as z,k as Ae,l as Le,m as P,n as X,o as J,p as xe,E as et,q as tt,r as ot,s as st}from"./vendor-element-plus.7eade167.js";import{E as B,a as Re,b as De}from"./EditArray.f4e1d8d3.js";const it=O({emits:["click"],computed:{dark(){return Ie("THEME")==="dark"},url(){var e;return(e=this.$store.state.site)==null?void 0:e.favicon}}}),nt=["src"];function at(e,s,m,u,$,k){return c(),g("img",{src:e.url,class:"logo tiny",onClick:s[0]||(s[0]=a=>e.$emit("click"))},null,8,nt)}var lt=N(it,[["render",at],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LogoTiny.vue"]]),rt="data:image/png;base64,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";const dt=O({name:"UserAvatar",data(){return{defaultAvatar:rt}},computed:{user(){var e;return(e=this.$store.getters)==null?void 0:e.user}}}),ct=["src"];function mt(e,s,m,u,$,k){var a;return c(),g("img",{src:((a=e.user)==null?void 0:a.avatar)||e.defaultAvatar,class:"avatar"},null,8,ct)}var ut=N(dt,[["render",mt],["__scopeId","data-v-1dac1046"],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Avatar.vue"]]);const pt=O({name:"ThemeSelector",components:{ArrowDown:Ue,ElDropdown:Y,ElDropdownMenu:q,ElDropdownItem:z,ElIcon:Ae},data(){return{theme:"light"}},computed:{currentLabel(){return this.theme==="dark"?this.$t("common.theme.dark"):this.$t("common.theme.light")}},mounted(){this.theme=this.loadFromCookie(),this.applyTheme()},methods:{onSelect(e){this.theme=e,this.applyTheme()},applyTheme(){Te("THEME",this.theme,{path:"/",domain:Ne()}),this.theme==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},loadFromCookie(){return Ie("THEME")==="dark"?"dark":"light"}}}),_t={class:"el-dropdown-link"};function ht(e,s,m,u,$,k){const a=o("arrow-down"),p=o("el-icon"),h=o("el-dropdown-item"),_=o("el-dropdown-menu"),r=o("el-dropdown");return c(),T(r,{trigger:"click",onCommand:e.onSelect},{dropdown:n(()=>[t(_,null,{default:n(()=>[t(h,{command:"light"},{default:n(()=>[b(d(e.$t("common.theme.light")),1)]),_:1}),t(h,{command:"dark"},{default:n(()=>[b(d(e.$t("common.theme.dark")),1)]),_:1})]),_:1})]),default:n(()=>[l("span",_t,[b(d(e.currentLabel)+" ",1),t(p,{class:"el-icon--right"},{default:n(()=>[t(a)]),_:1})])]),_:1},8,["onCommand"])}var ft=N(pt,[["render",ht],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Theme.vue"]]);const vt=O({name:"LocaleSelector",components:{ElDropdown:Y,ElDropdownMenu:q,ElDropdownItem:z,ElIcon:Ae,ArrowDown:Ue},data(){return{locales:Ve}},computed:{value(){return this.$i18n.locale},currentLabel(){const e=this.locales.find(s=>s.value===this.value);return e?e.label:this.value}},methods:{async onSelectLocale(e){this.$router.push({query:{...this.$route.query,locale:void 0}}),await Fe(e),Te("LOCALE",e,{path:"/",domain:Ne()})}}}),gt={class:"el-dropdown-link"};function $t(e,s,m,u,$,k){const a=o("arrow-down"),p=o("el-icon"),h=o("el-dropdown-item"),_=o("el-dropdown-menu"),r=o("el-dropdown");return c(),T(r,{trigger:"click",onCommand:e.onSelectLocale},{dropdown:n(()=>[t(_,null,{default:n(()=>[(c(!0),g(V,null,H(e.locales,(f,i)=>(c(),T(h,{key:i,command:f.value},{default:n(()=>[b(d(f.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n(()=>[l("span",gt,[b(d(e.currentLabel)+" ",1),t(p,{class:"el-icon--right"},{default:n(()=>[t(a)]),_:1})])]),_:1},8,["onCommand"])}var bt=N(vt,[["render",$t],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Locale.vue"]]);const wt=O({name:"GeneralSettings",components:{ThemeSwitcher:ft,LocaleSwitcher:bt}}),kt={class:"flex justify-between items-center mb-4"},yt={class:"block mb-2 text-sm"},St={class:"flex justify-between items-center mb-4"},Et={class:"block mb-2 text-sm"};function It(e,s,m,u,$,k){const a=o("theme-switcher"),p=o("locale-switcher");return c(),g(V,null,[l("div",kt,[l("label",yt,d(e.$t("common.settings.theme")),1),t(a)]),l("div",St,[l("label",Et,d(e.$t("common.settings.language")),1),t(p)])],64)}var Tt=N(wt,[["render",It],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/General.vue"]]);const Nt=O({name:"SiteIndex",components:{EditText:B,EditImage:Re,EditArray:De,ElDivider:Le,ElImage:P,ElForm:X,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),Ot={class:"block w-full"},Ct={class:"block tip"},Ut={class:"block w-full"},At={class:"block tip"},Lt={class:"block w-full"},Rt={class:"block tip"},Dt={class:"block w-full"},Vt={class:"block tip"},Ft={class:"block w-full"},Gt={class:"block tip"};function Mt(e,s,m,u,$,k){const a=o("el-form-item"),p=o("edit-text"),h=o("el-image"),_=o("edit-image"),r=o("el-divider"),f=o("edit-array"),i=o("el-form");return c(),T(i,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[t(a,{label:e.$t("site.field.origin")},{default:n(()=>[l("span",Ot,d(e.site.origin),1),l("span",Ct,d(e.$t("site.message.originTip")),1)]),_:1},8,["label"]),t(a,{label:e.$t("site.field.title")},{default:n(()=>[l("span",Ut,[b(d(e.site.title)+" ",1),t(p,{"model-value":e.site.title,title:e.$t("site.title.editTitle"),placeholder:e.$t("site.placeholder.title"),onConfirm:s[0]||(s[0]=v=>e.onSave({title:v}))},null,8,["model-value","title","placeholder"])]),l("span",At,d(e.$t("site.message.titleTip")),1)]),_:1},8,["label"]),t(a,{label:e.$t("site.field.logo")},{default:n(()=>[l("span",Lt,[t(h,{src:e.site.logo,class:"logo"},null,8,["src"]),t(_,{"model-value":e.site.logo,title:e.$t("site.title.editLogo"),tip:e.$t("site.message.editLogoTip"),onConfirm:s[1]||(s[1]=v=>e.onSave({logo:v}))},null,8,["model-value","title","tip"])]),l("span",Rt,d(e.$t("site.message.logoTip")),1)]),_:1},8,["label"]),t(a,{label:e.$t("site.field.favicon")},{default:n(()=>[l("span",Dt,[t(h,{src:e.site.favicon,class:"favicon"},null,8,["src"]),t(_,{"model-value":e.site.favicon,title:e.$t("site.title.editFavicon"),tip:e.$t("site.message.editFaviconTip"),onConfirm:s[2]||(s[2]=v=>e.onSave({favicon:v}))},null,8,["model-value","title","tip"])]),l("span",Vt,d(e.$t("site.message.faviconTip")),1)]),_:1},8,["label"]),t(r,{"border-style":"dashed"}),t(a,{label:e.$t("site.field.admins")},{default:n(()=>{var v,C;return[l("span",Ft,[b(d((v=e.site.admins)==null?void 0:v.join(", "))+" ",1),t(f,{"model-value":((C=e.site)==null?void 0:C.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:s[3]||(s[3]=E=>e.onSave({admins:E}))},null,8,["model-value","title","placeholder","tip","min-error-message"])]),l("span",Gt,d(e.$t("site.message.adminsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])}var Ht=N(Nt,[["render",Mt],["__scopeId","data-v-e38df654"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Site.vue"]]);const Xt=O({name:"SettingSeo",components:{EditText:B,EditArray:De,ElForm:X,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),Jt={class:"block w-full"},Bt={class:"block tip"},Kt={class:"block w-full"},Qt={class:"block tip"};function Yt(e,s,m,u,$,k){const a=o("edit-text"),p=o("el-form-item"),h=o("edit-array"),_=o("el-form");return c(),T(_,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[t(p,{label:e.$t("site.field.description")},{default:n(()=>[l("span",Jt,[b(d(e.site.description)+" ",1),t(a,{"model-value":e.site.description,title:e.$t("site.title.editDescription"),placeholder:e.$t("site.placeholder.description"),onConfirm:s[0]||(s[0]=r=>e.onSave({description:r}))},null,8,["model-value","title","placeholder"])]),l("span",Bt,d(e.$t("site.message.descriptionTip")),1)]),_:1},8,["label"]),t(p,{label:e.$t("site.field.keywords")},{default:n(()=>{var r,f;return[l("span",Kt,[b(d((r=e.site.keywords)==null?void 0:r.join(", "))+" ",1),t(h,{"model-value":((f=e.site)==null?void 0:f.keywords)||[],title:e.$t("site.title.editKeywords"),placeholder:e.$t("site.placeholder.keywords"),tip:e.$t("site.message.keywordsTip2"),onConfirm:s[1]||(s[1]=i=>e.onSave({keywords:i}))},null,8,["model-value","title","placeholder","tip"])]),l("span",Qt,d(e.$t("site.message.keywordsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])}var qt=N(Xt,[["render",Yt],["__scopeId","data-v-57cb41c4"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Seo.vue"]]);const zt=O({name:"SiteIndex",components:{EditText:B,ElForm:X,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),Pt={class:"block tip"},jt={class:"block tip"};function Zt(e,s,m,u,$,k){const a=o("edit-text"),p=o("el-form-item"),h=o("el-form");return c(),T(h,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[t(p,{label:e.$t("site.field.distributionDefaultInviterId")},{default:n(()=>{var _,r;return[b(d((_=e.site.distribution)==null?void 0:_.default_inviter_id)+" ",1),t(a,{"model-value":(r=e.site.distribution)==null?void 0:r.default_inviter_id,title:e.$t("site.title.editDistributionDefaultInviterId"),placeholder:e.$t("site.placeholder.editDistributionDefaultInviterId"),onConfirm:s[0]||(s[0]=f=>e.onSave({distribution:{...e.site.distribution,default_inviter_id:f}}))},null,8,["model-value","title","placeholder"]),l("span",Pt,d(e.$t("site.message.distributionDefaultInviterIdTip")),1)]}),_:1},8,["label"]),t(p,{label:e.$t("site.field.distributionForceInviterId")},{default:n(()=>{var _,r;return[b(d((_=e.site.distribution)==null?void 0:_.force_inviter_id)+" ",1),t(a,{"model-value":(r=e.site.distribution)==null?void 0:r.force_inviter_id,title:e.$t("site.title.editDistributionForceInviterId"),placeholder:e.$t("site.placeholder.editDistributionForceInviterId"),onConfirm:s[1]||(s[1]=f=>e.onSave({distribution:{...e.site.distribution,force_inviter_id:f}}))},null,8,["model-value","title","placeholder"]),l("span",jt,d(e.$t("site.message.distributionForceInviterIdTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])}var Wt=N(zt,[["render",Zt],["__scopeId","data-v-4ed92693"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Distribution.vue"]]);const xt=O({name:"SiteIndex",components:{EditText:B,EditImage:Re,ElImage:P,ElForm:X,ElSwitch:xe,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),eo={class:"w-full"},to={class:"block tip w-full"},oo={key:0},so={class:"block w-full"},io={class:"block w-full"};function no(e,s,m,u,$,k){const a=o("el-switch"),p=o("el-form-item"),h=o("el-image"),_=o("edit-image"),r=o("edit-text"),f=o("el-form");return c(),T(f,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[(c(),g(V,null,H(["chatgpt","grok","deepseek","midjourney","qrart","suno","luma","pika","kling","flux","hailuo","headshots"],(i,v)=>t(p,{key:v,label:e.$t("site.field.features"+i.charAt(0).toUpperCase()+i.slice(1))},{default:n(()=>{var C,E,A,R,F,G;return[l("div",eo,[t(a,{"model-value":((C=e.site.features[i])==null?void 0:C.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":w=>e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],enabled:w}}})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),l("span",to,d(e.$t("site.message.features"+i.charAt(0).toUpperCase()+i.slice(1))),1),i==="support"?K((c(),g("div",oo,[t(p,{label:"WeChat"},{default:n(()=>{var w,y;return[t(a,{"model-value":((y=(w=e.site.features[i])==null?void 0:w.wechat)==null?void 0:y.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":I=>{var S;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],wechat:{...(S=e.site.features[i])==null?void 0:S.wechat,enabled:I}}}})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),K(t(p,{label:e.$t("site.field.qr")},{default:n(()=>{var w,y,I,S;return[l("span",so,[t(h,{src:(y=(w=e.site.features[i])==null?void 0:w.wechat)==null?void 0:y.qr},null,8,["src"]),t(_,{"model-value":(S=(I=e.site.features[i])==null?void 0:I.wechat)==null?void 0:S.qr,title:e.$t("site.title.editQR"),tip:e.$t("site.message.editQRTip"),onConfirm:D=>{var U;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],wechat:{...(U=e.site.features[i])==null?void 0:U.wechat,qr:D}}}})}},null,8,["model-value","title","tip","onConfirm"])])]}),_:2},1032,["label"]),[[Q,(A=(E=e.site.features[i])==null?void 0:E.wechat)==null?void 0:A.enabled]]),t(p,{label:"Discord"},{default:n(()=>{var w,y;return[t(a,{"model-value":((y=(w=e.site.features[i])==null?void 0:w.discord)==null?void 0:y.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":I=>{var S;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],discord:{...(S=e.site.features[i])==null?void 0:S.discord,enabled:I}}}})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),K(t(p,{label:e.$t("site.field.url")},{default:n(()=>{var w,y,I,S;return[l("span",io,[b(d((y=(w=e.site.features[i])==null?void 0:w.discord)==null?void 0:y.url)+" ",1),t(r,{"model-value":(S=(I=e.site.features[i])==null?void 0:I.discord)==null?void 0:S.url,title:e.$t("site.title.editUrl"),placeholder:e.$t("site.placeholder.editUrl"),onConfirm:D=>{var U;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],discord:{...(U=e.site.features[i])==null?void 0:U.discord,url:D}}}})}},null,8,["model-value","title","placeholder","onConfirm"])])]}),_:2},1032,["label"]),[[Q,(F=(R=e.site.features[i])==null?void 0:R.discord)==null?void 0:F.enabled]])],512)),[[Q,(G=e.site.features[i])==null?void 0:G.enabled]]):L("v-if",!0)]}),_:2},1032,["label"])),64))]),_:1},8,["model"])}var ao=N(xt,[["render",no],["__scopeId","data-v-7089d567"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Function.vue"]]);const lo=O({name:"UserSetting",components:{ElDialog:et,ElMenu:tt,ElMenuItem:ot,FontAwesomeIcon:Ce,GeneralSetting:Tt,SiteSetting:Ht,SeoSetting:qt,DistributionSetting:Wt,FunctionSetting:ao},props:{visible:{type:Boolean,default:!1}},emits:["update:visible"],data(){return{activeTab:"general",showSuggestions:!0,navItems:[{key:"general",label:this.$t("common.settings.general"),icon:ze},{key:"site",label:this.$t("common.settings.site"),icon:Pe},{key:"seo",label:this.$t("common.settings.seo"),icon:je},{key:"distribution",label:this.$t("common.settings.distribution"),icon:Ze},{key:"function",label:this.$t("common.settings.function"),icon:We}]}},computed:{currentTabTitle(){const e=this.navItems.find(s=>s.key===this.activeTab);return e?e.label:""},isSiteAdmin(){var e,s,m,u,$;return!!(($=(m=(s=(e=this.$store)==null?void 0:e.state)==null?void 0:s.site)==null?void 0:m.admins)!=null&&$.includes((u=this.$store.getters.user)==null?void 0:u.id))}},methods:{onClose(){this.$emit("update:visible",!1)}}}),ro={class:"flex settings"},co={class:"w-40 h-full border-r"},mo={class:"flex-1 p-6 overflow-y-auto"},uo={key:0},po={key:1},_o={key:2},ho={key:3},fo={key:4};function vo(e,s,m,u,$,k){const a=o("font-awesome-icon"),p=o("el-menu-item"),h=o("el-menu"),_=o("general-setting"),r=o("site-setting"),f=o("seo-setting"),i=o("distribution-setting"),v=o("function-setting"),C=o("el-dialog");return c(),T(C,{"model-value":e.visible,onClose:e.onClose},{default:n(()=>[l("div",ro,[l("aside",co,[t(h,{class:"border-r-0"},{default:n(()=>[(c(!0),g(V,null,H(e.navItems,(E,A)=>(c(),T(p,{key:A,index:E.key,class:Oe(["flex items-center px-2 cursor-pointer py-2",e.activeTab===E.key?"active":""]),onClick:R=>e.activeTab=E.key},{default:n(()=>[t(a,{icon:E.icon,class:"mr-2"},null,8,["icon"]),b(" "+d(E.label),1)]),_:2},1032,["index","class","onClick"]))),128))]),_:1})]),l("main",mo,[e.activeTab==="general"?(c(),g("div",uo,[t(_)])):e.activeTab==="site"&&e.isSiteAdmin?(c(),g("div",po,[t(r)])):e.activeTab==="seo"&&e.isSiteAdmin?(c(),g("div",_o,[t(f)])):e.activeTab==="distribution"&&e.isSiteAdmin?(c(),g("div",ho,[t(i)])):e.activeTab==="function"&&e.isSiteAdmin?(c(),g("div",fo,[t(v)])):L("v-if",!0)])])]),_:1},8,["model-value","onClose"])}var go=N(lo,[["render",vo],["__scopeId","data-v-17be4dfc"],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Setting.vue"]]);const $o=O({name:"UserCenter",components:{UserAvatar:ut,UserSetting:go,FontAwesomeIcon:Ce,ElDivider:Le,ElDropdownMenu:q,ElDropdownItem:z,ElDropdown:Y},data(){return{showMenu:!1,showSetting:!1}},computed:{user(){var e;return(e=this.$store.getters)==null?void 0:e.user}},mounted(){document.addEventListener("click",this.closeMenu)},unmounted(){document.removeEventListener("click",this.closeMenu)},methods:{toggleMenu(){this.showMenu=!this.showMenu},closeMenu(e){const s=e.target;this.$el.contains(s)||(this.showMenu=!1)},async onLogout(){await this.$store.dispatch("logout")},onConsole(){this.$router.push({name:Ge})},onDistribution(){this.$router.push({name:Me})},onSettings(){this.showSetting=!0}}}),bo={class:"center"},wo={key:0,class:"px-4 py-4 text-sm font-medium"};function ko(e,s,m,u,$,k){const a=o("user-avatar"),p=o("el-divider"),h=o("font-awesome-icon"),_=o("el-dropdown-item"),r=o("el-dropdown-menu"),f=o("el-dropdown"),i=o("user-setting");return c(),g(V,null,[l("div",bo,[t(f,{trigger:"click"},{dropdown:n(()=>{var v;return[e.user.email?(c(),g("div",wo,d((v=e.user)==null?void 0:v.email),1)):L("v-if",!0),e.user.email?(c(),T(p,{key:1,class:"mb-1 mt-1"})):L("v-if",!0),t(r,null,{default:n(()=>[t(_,{class:"py-2",onClick:e.onSettings},{default:n(()=>[t(h,{icon:"fa-solid fa-cog",class:"mr-1"}),b(" "+d(e.$t("common.nav.setting")),1)]),_:1},8,["onClick"]),t(_,{class:"py-2",onClick:e.onDistribution},{default:n(()=>[t(h,{icon:"fa-solid fa-coins",class:"mr-1"}),b(" "+d(e.$t("common.nav.distribution")),1)]),_:1},8,["onClick"]),t(_,{class:"py-2",onClick:e.onConsole},{default:n(()=>[t(h,{icon:"fa-solid fa-compass",class:"mr-1"}),b(" "+d(e.$t("common.nav.console")),1)]),_:1},8,["onClick"]),t(_,{class:"py-2",onClick:e.onLogout},{default:n(()=>[t(h,{icon:"fa-solid fa-arrow-right-from-bracket",class:"mr-1"}),b(" "+d(e.$t("common.nav.logOut")),1)]),_:1},8,["onClick"])]),_:1})]}),default:n(()=>[t(a,{class:"cursor-pointer"})]),_:1})]),t(i,{visible:e.showSetting,"onUpdate:visible":s[0]||(s[0]=v=>e.showSetting=v)},null,8,["visible"])],64)}var yo=N($o,[["render",ko],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Center.vue"]]);const So=O({name:"Navigator",components:{ElImage:P,LogoTiny:lt,ElTooltip:st,UserCenter:yo},props:{direction:{type:String,default:"column"}},data(){return{operating:{dark:!1,locale:!1},activeIndex:this.$route.name}},computed:{links(){var s,m,u,$,k,a,p,h,_,r,f,i,v,C,E,A,R,F,G,w,y,I,S,D,U,j,Z,W,x,ee,te,oe,se,ie,ne,ae,le,re,de,ce,me,ue,pe,_e,he;const e=[];return(k=($=(u=(m=(s=this.$store)==null?void 0:s.state)==null?void 0:m.site)==null?void 0:u.features)==null?void 0:$.chatgpt)!=null&&k.enabled&&e.push({route:{name:fe},displayName:this.$t("common.nav.chatgpt"),logo:"https://cdn.acedata.cloud/7dljuv.png",routes:[He,fe]}),(r=(_=(h=(p=(a=this.$store)==null?void 0:a.state)==null?void 0:p.site)==null?void 0:h.features)==null?void 0:_.deepseek)!=null&&r.enabled&&e.push({route:{name:ve},displayName:this.$t("common.nav.deepseek"),logo:"https://cdn.acedata.cloud/bc71ae.png",routes:[Xe,ve]}),(E=(C=(v=(i=(f=this.$store)==null?void 0:f.state)==null?void 0:i.site)==null?void 0:v.features)==null?void 0:C.grok)!=null&&E.enabled&&e.push({route:{name:ge},displayName:this.$t("common.nav.grok"),logo:"https://cdn.acedata.cloud/p1ge98.png",routes:[Je,ge]}),(w=(G=(F=(R=(A=this.$store)==null?void 0:A.state)==null?void 0:R.site)==null?void 0:F.features)==null?void 0:G.midjourney)!=null&&w.enabled&&e.push({route:{name:$e},displayName:this.$t("common.nav.midjourney"),logo:"https://cdn.acedata.cloud/wto43b.png",routes:[$e]}),(U=(D=(S=(I=(y=this.$store)==null?void 0:y.state)==null?void 0:I.site)==null?void 0:S.features)==null?void 0:D.flux)!=null&&U.enabled&&e.push({route:{name:be},displayName:this.$t("common.nav.flux"),logo:"https://cdn.acedata.cloud/ogm2oa.png",routes:[be]}),(ee=(x=(W=(Z=(j=this.$store)==null?void 0:j.state)==null?void 0:Z.site)==null?void 0:W.features)==null?void 0:x.suno)!=null&&ee.enabled&&e.push({route:{name:we},displayName:this.$t("common.nav.suno"),logo:"https://cdn.acedata.cloud/l3ffw7.jpg",routes:[we,Be]}),(ne=(ie=(se=(oe=(te=this.$store)==null?void 0:te.state)==null?void 0:oe.site)==null?void 0:se.features)==null?void 0:ie.luma)!=null&&ne.enabled&&e.push({route:{name:ke},displayName:this.$t("common.nav.luma"),logo:"https://cdn.acedata.cloud/ahjfwi.png",routes:[ke,Ke]}),(ce=(de=(re=(le=(ae=this.$store)==null?void 0:ae.state)==null?void 0:le.site)==null?void 0:re.features)==null?void 0:de.hailuo)!=null&&ce.enabled&&e.push({route:{name:ye},displayName:this.$t("common.nav.hailuo"),logo:"https://cdn.acedata.cloud/0qg4gp.png",routes:[ye,Qe]}),(he=(_e=(pe=(ue=(me=this.$store)==null?void 0:me.state)==null?void 0:ue.site)==null?void 0:pe.features)==null?void 0:_e.kling)!=null&&he.enabled&&e.push({route:{name:Se},displayName:this.$t("common.nav.kling"),logo:"https://cdn.acedata.cloud/qpbbbb.jpg",routes:[Se,Ye]}),this.direction==="row"&&e.push({route:{name:Ee},displayName:this.$t("common.nav.profile"),icon:"fa-solid fa-user",routes:[Ee]}),e},authenticated(){return!!this.$store.state.token.access}},methods:{onHome(){this.$router.push({name:qe})}}}),Eo=["direction"],Io={class:"top"},To={key:0},No={class:"bottom"};function Oo(e,s,m,u,$,k){const a=o("logo-tiny"),p=o("el-image"),h=o("el-tooltip"),_=o("user-center");return c(),g("div",{direction:e.direction,class:"navigator"},[l("div",Io,[e.direction==="column"?(c(),g("div",To,[t(a,{onClick:e.onHome},null,8,["onClick"])])):L("v-if",!0),(c(!0),g(V,null,H(e.links,(r,f)=>(c(),g("div",{key:f,class:Oe({link:!0,active:r.routes.includes(e.$route.name)})},[e.direction==="column"?(c(),T(h,{key:0,effect:"dark",content:r.displayName,placement:"right"},{default:n(()=>[r.logo?(c(),T(p,{key:0,src:r.logo,class:"avatar",onClick:i=>e.$router.push(r.route)},null,8,["src","onClick"])):L("v-if",!0)]),_:2},1032,["content"])):L("v-if",!0)],2))),128))]),l("div",No,[t(_)])],8,Eo)}var Vo=N(So,[["render",Oo],["__scopeId","data-v-a43dbcba"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Navigator.vue"]]);export{Vo as N};
1
+ import{a3 as Ie,a9 as Te}from"./vendor-others.e28a6fa7.js";import{_ as N,g as Ne,S as Ve,s as Fe,d as M,e as Ge,f as Me,h as fe,j as He,k as ve,l as Xe,m as ge,n as Je,o as $e,p as be,q as we,r as Be,t as ke,u as Ke,v as ye,w as Qe,x as Se,y as Ye,z as Ee,c as qe}from"./index.d28a66ae.js";import{H as O,o as c,e as g,al as o,L as T,M as n,V as t,S as b,T as d,f as l,ai as H,U as V,O as K,W as Q,R as L,P as Oe}from"./vendor-@vue.8cef8b94.js";import{ar as Ce,as as ze,at as Pe,au as je,av as Ze,ac as We}from"./vendor-fortawesome.0d8f27df.js";import{f as Ue,h as Y,i as q,j as z,k as Ae,l as Le,m as P,n as X,o as J,p as xe,E as et,q as tt,r as ot,s as st}from"./vendor-element-plus.7eade167.js";import{E as B,a as Re,b as De}from"./EditArray.d15327ac.js";const it=O({emits:["click"],computed:{dark(){return Ie("THEME")==="dark"},url(){var e;return(e=this.$store.state.site)==null?void 0:e.favicon}}}),nt=["src"];function at(e,s,m,u,$,k){return c(),g("img",{src:e.url,class:"logo tiny",onClick:s[0]||(s[0]=a=>e.$emit("click"))},null,8,nt)}var lt=N(it,[["render",at],["__file","/home/runner/work/Nexior/Nexior/src/components/common/LogoTiny.vue"]]),rt="data:image/png;base64,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";const dt=O({name:"UserAvatar",data(){return{defaultAvatar:rt}},computed:{user(){var e;return(e=this.$store.getters)==null?void 0:e.user}}}),ct=["src"];function mt(e,s,m,u,$,k){var a;return c(),g("img",{src:((a=e.user)==null?void 0:a.avatar)||e.defaultAvatar,class:"avatar"},null,8,ct)}var ut=N(dt,[["render",mt],["__scopeId","data-v-1dac1046"],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Avatar.vue"]]);const pt=O({name:"ThemeSelector",components:{ArrowDown:Ue,ElDropdown:Y,ElDropdownMenu:q,ElDropdownItem:z,ElIcon:Ae},data(){return{theme:"light"}},computed:{currentLabel(){return this.theme==="dark"?this.$t("common.theme.dark"):this.$t("common.theme.light")}},mounted(){this.theme=this.loadFromCookie(),this.applyTheme()},methods:{onSelect(e){this.theme=e,this.applyTheme()},applyTheme(){Te("THEME",this.theme,{path:"/",domain:Ne()}),this.theme==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},loadFromCookie(){return Ie("THEME")==="dark"?"dark":"light"}}}),_t={class:"el-dropdown-link"};function ht(e,s,m,u,$,k){const a=o("arrow-down"),p=o("el-icon"),h=o("el-dropdown-item"),_=o("el-dropdown-menu"),r=o("el-dropdown");return c(),T(r,{trigger:"click",onCommand:e.onSelect},{dropdown:n(()=>[t(_,null,{default:n(()=>[t(h,{command:"light"},{default:n(()=>[b(d(e.$t("common.theme.light")),1)]),_:1}),t(h,{command:"dark"},{default:n(()=>[b(d(e.$t("common.theme.dark")),1)]),_:1})]),_:1})]),default:n(()=>[l("span",_t,[b(d(e.currentLabel)+" ",1),t(p,{class:"el-icon--right"},{default:n(()=>[t(a)]),_:1})])]),_:1},8,["onCommand"])}var ft=N(pt,[["render",ht],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Theme.vue"]]);const vt=O({name:"LocaleSelector",components:{ElDropdown:Y,ElDropdownMenu:q,ElDropdownItem:z,ElIcon:Ae,ArrowDown:Ue},data(){return{locales:Ve}},computed:{value(){return this.$i18n.locale},currentLabel(){const e=this.locales.find(s=>s.value===this.value);return e?e.label:this.value}},methods:{async onSelectLocale(e){this.$router.push({query:{...this.$route.query,locale:void 0}}),await Fe(e),Te("LOCALE",e,{path:"/",domain:Ne()})}}}),gt={class:"el-dropdown-link"};function $t(e,s,m,u,$,k){const a=o("arrow-down"),p=o("el-icon"),h=o("el-dropdown-item"),_=o("el-dropdown-menu"),r=o("el-dropdown");return c(),T(r,{trigger:"click",onCommand:e.onSelectLocale},{dropdown:n(()=>[t(_,null,{default:n(()=>[(c(!0),g(V,null,H(e.locales,(f,i)=>(c(),T(h,{key:i,command:f.value},{default:n(()=>[b(d(f.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n(()=>[l("span",gt,[b(d(e.currentLabel)+" ",1),t(p,{class:"el-icon--right"},{default:n(()=>[t(a)]),_:1})])]),_:1},8,["onCommand"])}var bt=N(vt,[["render",$t],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Locale.vue"]]);const wt=O({name:"GeneralSettings",components:{ThemeSwitcher:ft,LocaleSwitcher:bt}}),kt={class:"flex justify-between items-center mb-4"},yt={class:"block mb-2 text-sm"},St={class:"flex justify-between items-center mb-4"},Et={class:"block mb-2 text-sm"};function It(e,s,m,u,$,k){const a=o("theme-switcher"),p=o("locale-switcher");return c(),g(V,null,[l("div",kt,[l("label",yt,d(e.$t("common.settings.theme")),1),t(a)]),l("div",St,[l("label",Et,d(e.$t("common.settings.language")),1),t(p)])],64)}var Tt=N(wt,[["render",It],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/General.vue"]]);const Nt=O({name:"SiteIndex",components:{EditText:B,EditImage:Re,EditArray:De,ElDivider:Le,ElImage:P,ElForm:X,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),Ot={class:"block w-full"},Ct={class:"block tip"},Ut={class:"block w-full"},At={class:"block tip"},Lt={class:"block w-full"},Rt={class:"block tip"},Dt={class:"block w-full"},Vt={class:"block tip"},Ft={class:"block w-full"},Gt={class:"block tip"};function Mt(e,s,m,u,$,k){const a=o("el-form-item"),p=o("edit-text"),h=o("el-image"),_=o("edit-image"),r=o("el-divider"),f=o("edit-array"),i=o("el-form");return c(),T(i,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[t(a,{label:e.$t("site.field.origin")},{default:n(()=>[l("span",Ot,d(e.site.origin),1),l("span",Ct,d(e.$t("site.message.originTip")),1)]),_:1},8,["label"]),t(a,{label:e.$t("site.field.title")},{default:n(()=>[l("span",Ut,[b(d(e.site.title)+" ",1),t(p,{"model-value":e.site.title,title:e.$t("site.title.editTitle"),placeholder:e.$t("site.placeholder.title"),onConfirm:s[0]||(s[0]=v=>e.onSave({title:v}))},null,8,["model-value","title","placeholder"])]),l("span",At,d(e.$t("site.message.titleTip")),1)]),_:1},8,["label"]),t(a,{label:e.$t("site.field.logo")},{default:n(()=>[l("span",Lt,[t(h,{src:e.site.logo,class:"logo"},null,8,["src"]),t(_,{"model-value":e.site.logo,title:e.$t("site.title.editLogo"),tip:e.$t("site.message.editLogoTip"),onConfirm:s[1]||(s[1]=v=>e.onSave({logo:v}))},null,8,["model-value","title","tip"])]),l("span",Rt,d(e.$t("site.message.logoTip")),1)]),_:1},8,["label"]),t(a,{label:e.$t("site.field.favicon")},{default:n(()=>[l("span",Dt,[t(h,{src:e.site.favicon,class:"favicon"},null,8,["src"]),t(_,{"model-value":e.site.favicon,title:e.$t("site.title.editFavicon"),tip:e.$t("site.message.editFaviconTip"),onConfirm:s[2]||(s[2]=v=>e.onSave({favicon:v}))},null,8,["model-value","title","tip"])]),l("span",Vt,d(e.$t("site.message.faviconTip")),1)]),_:1},8,["label"]),t(r,{"border-style":"dashed"}),t(a,{label:e.$t("site.field.admins")},{default:n(()=>{var v,C;return[l("span",Ft,[b(d((v=e.site.admins)==null?void 0:v.join(", "))+" ",1),t(f,{"model-value":((C=e.site)==null?void 0:C.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:s[3]||(s[3]=E=>e.onSave({admins:E}))},null,8,["model-value","title","placeholder","tip","min-error-message"])]),l("span",Gt,d(e.$t("site.message.adminsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])}var Ht=N(Nt,[["render",Mt],["__scopeId","data-v-e38df654"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Site.vue"]]);const Xt=O({name:"SettingSeo",components:{EditText:B,EditArray:De,ElForm:X,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),Jt={class:"block w-full"},Bt={class:"block tip"},Kt={class:"block w-full"},Qt={class:"block tip"};function Yt(e,s,m,u,$,k){const a=o("edit-text"),p=o("el-form-item"),h=o("edit-array"),_=o("el-form");return c(),T(_,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[t(p,{label:e.$t("site.field.description")},{default:n(()=>[l("span",Jt,[b(d(e.site.description)+" ",1),t(a,{"model-value":e.site.description,title:e.$t("site.title.editDescription"),placeholder:e.$t("site.placeholder.description"),onConfirm:s[0]||(s[0]=r=>e.onSave({description:r}))},null,8,["model-value","title","placeholder"])]),l("span",Bt,d(e.$t("site.message.descriptionTip")),1)]),_:1},8,["label"]),t(p,{label:e.$t("site.field.keywords")},{default:n(()=>{var r,f;return[l("span",Kt,[b(d((r=e.site.keywords)==null?void 0:r.join(", "))+" ",1),t(h,{"model-value":((f=e.site)==null?void 0:f.keywords)||[],title:e.$t("site.title.editKeywords"),placeholder:e.$t("site.placeholder.keywords"),tip:e.$t("site.message.keywordsTip2"),onConfirm:s[1]||(s[1]=i=>e.onSave({keywords:i}))},null,8,["model-value","title","placeholder","tip"])]),l("span",Qt,d(e.$t("site.message.keywordsTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])}var qt=N(Xt,[["render",Yt],["__scopeId","data-v-57cb41c4"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Seo.vue"]]);const zt=O({name:"SiteIndex",components:{EditText:B,ElForm:X,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),Pt={class:"block tip"},jt={class:"block tip"};function Zt(e,s,m,u,$,k){const a=o("edit-text"),p=o("el-form-item"),h=o("el-form");return c(),T(h,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[t(p,{label:e.$t("site.field.distributionDefaultInviterId")},{default:n(()=>{var _,r;return[b(d((_=e.site.distribution)==null?void 0:_.default_inviter_id)+" ",1),t(a,{"model-value":(r=e.site.distribution)==null?void 0:r.default_inviter_id,title:e.$t("site.title.editDistributionDefaultInviterId"),placeholder:e.$t("site.placeholder.editDistributionDefaultInviterId"),onConfirm:s[0]||(s[0]=f=>e.onSave({distribution:{...e.site.distribution,default_inviter_id:f}}))},null,8,["model-value","title","placeholder"]),l("span",Pt,d(e.$t("site.message.distributionDefaultInviterIdTip")),1)]}),_:1},8,["label"]),t(p,{label:e.$t("site.field.distributionForceInviterId")},{default:n(()=>{var _,r;return[b(d((_=e.site.distribution)==null?void 0:_.force_inviter_id)+" ",1),t(a,{"model-value":(r=e.site.distribution)==null?void 0:r.force_inviter_id,title:e.$t("site.title.editDistributionForceInviterId"),placeholder:e.$t("site.placeholder.editDistributionForceInviterId"),onConfirm:s[1]||(s[1]=f=>e.onSave({distribution:{...e.site.distribution,force_inviter_id:f}}))},null,8,["model-value","title","placeholder"]),l("span",jt,d(e.$t("site.message.distributionForceInviterIdTip")),1)]}),_:1},8,["label"])]),_:1},8,["model"])}var Wt=N(zt,[["render",Zt],["__scopeId","data-v-4ed92693"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Distribution.vue"]]);const xt=O({name:"SiteIndex",components:{EditText:B,EditImage:Re,ElImage:P,ElForm:X,ElSwitch:xe,ElFormItem:J},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){var m;const s={...this.site,...e};M.update((m=this.site)==null?void 0:m.id,s).then(()=>{var u;console.debug("getSite for id",(u=this.site)==null?void 0:u.id),this.$store.dispatch("getSite")})}}}),eo={class:"w-full"},to={class:"block tip w-full"},oo={key:0},so={class:"block w-full"},io={class:"block w-full"};function no(e,s,m,u,$,k){const a=o("el-switch"),p=o("el-form-item"),h=o("el-image"),_=o("edit-image"),r=o("edit-text"),f=o("el-form");return c(),T(f,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:n(()=>[(c(),g(V,null,H(["chatgpt","grok","deepseek","midjourney","qrart","suno","luma","pika","kling","flux","hailuo","headshots"],(i,v)=>t(p,{key:v,label:e.$t("site.field.features"+i.charAt(0).toUpperCase()+i.slice(1))},{default:n(()=>{var C,E,A,R,F,G;return[l("div",eo,[t(a,{"model-value":((C=e.site.features[i])==null?void 0:C.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":w=>e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],enabled:w}}})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),l("span",to,d(e.$t("site.message.features"+i.charAt(0).toUpperCase()+i.slice(1))),1),i==="support"?K((c(),g("div",oo,[t(p,{label:"WeChat"},{default:n(()=>{var w,y;return[t(a,{"model-value":((y=(w=e.site.features[i])==null?void 0:w.wechat)==null?void 0:y.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":I=>{var S;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],wechat:{...(S=e.site.features[i])==null?void 0:S.wechat,enabled:I}}}})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),K(t(p,{label:e.$t("site.field.qr")},{default:n(()=>{var w,y,I,S;return[l("span",so,[t(h,{src:(y=(w=e.site.features[i])==null?void 0:w.wechat)==null?void 0:y.qr},null,8,["src"]),t(_,{"model-value":(S=(I=e.site.features[i])==null?void 0:I.wechat)==null?void 0:S.qr,title:e.$t("site.title.editQR"),tip:e.$t("site.message.editQRTip"),onConfirm:D=>{var U;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],wechat:{...(U=e.site.features[i])==null?void 0:U.wechat,qr:D}}}})}},null,8,["model-value","title","tip","onConfirm"])])]}),_:2},1032,["label"]),[[Q,(A=(E=e.site.features[i])==null?void 0:E.wechat)==null?void 0:A.enabled]]),t(p,{label:"Discord"},{default:n(()=>{var w,y;return[t(a,{"model-value":((y=(w=e.site.features[i])==null?void 0:w.discord)==null?void 0:y.enabled)||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":I=>{var S;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],discord:{...(S=e.site.features[i])==null?void 0:S.discord,enabled:I}}}})}},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]}),_:2},1024),K(t(p,{label:e.$t("site.field.url")},{default:n(()=>{var w,y,I,S;return[l("span",io,[b(d((y=(w=e.site.features[i])==null?void 0:w.discord)==null?void 0:y.url)+" ",1),t(r,{"model-value":(S=(I=e.site.features[i])==null?void 0:I.discord)==null?void 0:S.url,title:e.$t("site.title.editUrl"),placeholder:e.$t("site.placeholder.editUrl"),onConfirm:D=>{var U;return e.onSave({features:{...e.site.features,[i]:{...e.site.features[i],discord:{...(U=e.site.features[i])==null?void 0:U.discord,url:D}}}})}},null,8,["model-value","title","placeholder","onConfirm"])])]}),_:2},1032,["label"]),[[Q,(F=(R=e.site.features[i])==null?void 0:R.discord)==null?void 0:F.enabled]])],512)),[[Q,(G=e.site.features[i])==null?void 0:G.enabled]]):L("v-if",!0)]}),_:2},1032,["label"])),64))]),_:1},8,["model"])}var ao=N(xt,[["render",no],["__scopeId","data-v-7089d567"],["__file","/home/runner/work/Nexior/Nexior/src/components/setting/Function.vue"]]);const lo=O({name:"UserSetting",components:{ElDialog:et,ElMenu:tt,ElMenuItem:ot,FontAwesomeIcon:Ce,GeneralSetting:Tt,SiteSetting:Ht,SeoSetting:qt,DistributionSetting:Wt,FunctionSetting:ao},props:{visible:{type:Boolean,default:!1}},emits:["update:visible"],data(){return{activeTab:"general",showSuggestions:!0,navItems:[{key:"general",label:this.$t("common.settings.general"),icon:ze},{key:"site",label:this.$t("common.settings.site"),icon:Pe},{key:"seo",label:this.$t("common.settings.seo"),icon:je},{key:"distribution",label:this.$t("common.settings.distribution"),icon:Ze},{key:"function",label:this.$t("common.settings.function"),icon:We}]}},computed:{currentTabTitle(){const e=this.navItems.find(s=>s.key===this.activeTab);return e?e.label:""},isSiteAdmin(){var e,s,m,u,$;return!!(($=(m=(s=(e=this.$store)==null?void 0:e.state)==null?void 0:s.site)==null?void 0:m.admins)!=null&&$.includes((u=this.$store.getters.user)==null?void 0:u.id))}},methods:{onClose(){this.$emit("update:visible",!1)}}}),ro={class:"flex settings"},co={class:"w-40 h-full border-r"},mo={class:"flex-1 p-6 overflow-y-auto"},uo={key:0},po={key:1},_o={key:2},ho={key:3},fo={key:4};function vo(e,s,m,u,$,k){const a=o("font-awesome-icon"),p=o("el-menu-item"),h=o("el-menu"),_=o("general-setting"),r=o("site-setting"),f=o("seo-setting"),i=o("distribution-setting"),v=o("function-setting"),C=o("el-dialog");return c(),T(C,{"model-value":e.visible,onClose:e.onClose},{default:n(()=>[l("div",ro,[l("aside",co,[t(h,{class:"border-r-0"},{default:n(()=>[(c(!0),g(V,null,H(e.navItems,(E,A)=>(c(),T(p,{key:A,index:E.key,class:Oe(["flex items-center px-2 cursor-pointer py-2",e.activeTab===E.key?"active":""]),onClick:R=>e.activeTab=E.key},{default:n(()=>[t(a,{icon:E.icon,class:"mr-2"},null,8,["icon"]),b(" "+d(E.label),1)]),_:2},1032,["index","class","onClick"]))),128))]),_:1})]),l("main",mo,[e.activeTab==="general"?(c(),g("div",uo,[t(_)])):e.activeTab==="site"&&e.isSiteAdmin?(c(),g("div",po,[t(r)])):e.activeTab==="seo"&&e.isSiteAdmin?(c(),g("div",_o,[t(f)])):e.activeTab==="distribution"&&e.isSiteAdmin?(c(),g("div",ho,[t(i)])):e.activeTab==="function"&&e.isSiteAdmin?(c(),g("div",fo,[t(v)])):L("v-if",!0)])])]),_:1},8,["model-value","onClose"])}var go=N(lo,[["render",vo],["__scopeId","data-v-17be4dfc"],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Setting.vue"]]);const $o=O({name:"UserCenter",components:{UserAvatar:ut,UserSetting:go,FontAwesomeIcon:Ce,ElDivider:Le,ElDropdownMenu:q,ElDropdownItem:z,ElDropdown:Y},data(){return{showMenu:!1,showSetting:!1}},computed:{user(){var e;return(e=this.$store.getters)==null?void 0:e.user}},mounted(){document.addEventListener("click",this.closeMenu)},unmounted(){document.removeEventListener("click",this.closeMenu)},methods:{toggleMenu(){this.showMenu=!this.showMenu},closeMenu(e){const s=e.target;this.$el.contains(s)||(this.showMenu=!1)},async onLogout(){await this.$store.dispatch("logout")},onConsole(){this.$router.push({name:Ge})},onDistribution(){this.$router.push({name:Me})},onSettings(){this.showSetting=!0}}}),bo={class:"center"},wo={key:0,class:"px-4 py-4 text-sm font-medium"};function ko(e,s,m,u,$,k){const a=o("user-avatar"),p=o("el-divider"),h=o("font-awesome-icon"),_=o("el-dropdown-item"),r=o("el-dropdown-menu"),f=o("el-dropdown"),i=o("user-setting");return c(),g(V,null,[l("div",bo,[t(f,{trigger:"click"},{dropdown:n(()=>{var v;return[e.user.email?(c(),g("div",wo,d((v=e.user)==null?void 0:v.email),1)):L("v-if",!0),e.user.email?(c(),T(p,{key:1,class:"mb-1 mt-1"})):L("v-if",!0),t(r,null,{default:n(()=>[t(_,{class:"py-2",onClick:e.onSettings},{default:n(()=>[t(h,{icon:"fa-solid fa-cog",class:"mr-1"}),b(" "+d(e.$t("common.nav.setting")),1)]),_:1},8,["onClick"]),t(_,{class:"py-2",onClick:e.onDistribution},{default:n(()=>[t(h,{icon:"fa-solid fa-coins",class:"mr-1"}),b(" "+d(e.$t("common.nav.distribution")),1)]),_:1},8,["onClick"]),t(_,{class:"py-2",onClick:e.onConsole},{default:n(()=>[t(h,{icon:"fa-solid fa-compass",class:"mr-1"}),b(" "+d(e.$t("common.nav.console")),1)]),_:1},8,["onClick"]),t(_,{class:"py-2",onClick:e.onLogout},{default:n(()=>[t(h,{icon:"fa-solid fa-arrow-right-from-bracket",class:"mr-1"}),b(" "+d(e.$t("common.nav.logOut")),1)]),_:1},8,["onClick"])]),_:1})]}),default:n(()=>[t(a,{class:"cursor-pointer"})]),_:1})]),t(i,{visible:e.showSetting,"onUpdate:visible":s[0]||(s[0]=v=>e.showSetting=v)},null,8,["visible"])],64)}var yo=N($o,[["render",ko],["__file","/home/runner/work/Nexior/Nexior/src/components/user/Center.vue"]]);const So=O({name:"Navigator",components:{ElImage:P,LogoTiny:lt,ElTooltip:st,UserCenter:yo},props:{direction:{type:String,default:"column"}},data(){return{operating:{dark:!1,locale:!1},activeIndex:this.$route.name}},computed:{links(){var s,m,u,$,k,a,p,h,_,r,f,i,v,C,E,A,R,F,G,w,y,I,S,D,U,j,Z,W,x,ee,te,oe,se,ie,ne,ae,le,re,de,ce,me,ue,pe,_e,he;const e=[];return(k=($=(u=(m=(s=this.$store)==null?void 0:s.state)==null?void 0:m.site)==null?void 0:u.features)==null?void 0:$.chatgpt)!=null&&k.enabled&&e.push({route:{name:fe},displayName:this.$t("common.nav.chatgpt"),logo:"https://cdn.acedata.cloud/7dljuv.png",routes:[He,fe]}),(r=(_=(h=(p=(a=this.$store)==null?void 0:a.state)==null?void 0:p.site)==null?void 0:h.features)==null?void 0:_.deepseek)!=null&&r.enabled&&e.push({route:{name:ve},displayName:this.$t("common.nav.deepseek"),logo:"https://cdn.acedata.cloud/bc71ae.png",routes:[Xe,ve]}),(E=(C=(v=(i=(f=this.$store)==null?void 0:f.state)==null?void 0:i.site)==null?void 0:v.features)==null?void 0:C.grok)!=null&&E.enabled&&e.push({route:{name:ge},displayName:this.$t("common.nav.grok"),logo:"https://cdn.acedata.cloud/p1ge98.png",routes:[Je,ge]}),(w=(G=(F=(R=(A=this.$store)==null?void 0:A.state)==null?void 0:R.site)==null?void 0:F.features)==null?void 0:G.midjourney)!=null&&w.enabled&&e.push({route:{name:$e},displayName:this.$t("common.nav.midjourney"),logo:"https://cdn.acedata.cloud/wto43b.png",routes:[$e]}),(U=(D=(S=(I=(y=this.$store)==null?void 0:y.state)==null?void 0:I.site)==null?void 0:S.features)==null?void 0:D.flux)!=null&&U.enabled&&e.push({route:{name:be},displayName:this.$t("common.nav.flux"),logo:"https://cdn.acedata.cloud/ogm2oa.png",routes:[be]}),(ee=(x=(W=(Z=(j=this.$store)==null?void 0:j.state)==null?void 0:Z.site)==null?void 0:W.features)==null?void 0:x.suno)!=null&&ee.enabled&&e.push({route:{name:we},displayName:this.$t("common.nav.suno"),logo:"https://cdn.acedata.cloud/l3ffw7.jpg",routes:[we,Be]}),(ne=(ie=(se=(oe=(te=this.$store)==null?void 0:te.state)==null?void 0:oe.site)==null?void 0:se.features)==null?void 0:ie.luma)!=null&&ne.enabled&&e.push({route:{name:ke},displayName:this.$t("common.nav.luma"),logo:"https://cdn.acedata.cloud/ahjfwi.png",routes:[ke,Ke]}),(ce=(de=(re=(le=(ae=this.$store)==null?void 0:ae.state)==null?void 0:le.site)==null?void 0:re.features)==null?void 0:de.hailuo)!=null&&ce.enabled&&e.push({route:{name:ye},displayName:this.$t("common.nav.hailuo"),logo:"https://cdn.acedata.cloud/0qg4gp.png",routes:[ye,Qe]}),(he=(_e=(pe=(ue=(me=this.$store)==null?void 0:me.state)==null?void 0:ue.site)==null?void 0:pe.features)==null?void 0:_e.kling)!=null&&he.enabled&&e.push({route:{name:Se},displayName:this.$t("common.nav.kling"),logo:"https://cdn.acedata.cloud/qpbbbb.jpg",routes:[Se,Ye]}),this.direction==="row"&&e.push({route:{name:Ee},displayName:this.$t("common.nav.profile"),icon:"fa-solid fa-user",routes:[Ee]}),e},authenticated(){return!!this.$store.state.token.access}},methods:{onHome(){this.$router.push({name:qe})}}}),Eo=["direction"],Io={class:"top"},To={key:0},No={class:"bottom"};function Oo(e,s,m,u,$,k){const a=o("logo-tiny"),p=o("el-image"),h=o("el-tooltip"),_=o("user-center");return c(),g("div",{direction:e.direction,class:"navigator"},[l("div",Io,[e.direction==="column"?(c(),g("div",To,[t(a,{onClick:e.onHome},null,8,["onClick"])])):L("v-if",!0),(c(!0),g(V,null,H(e.links,(r,f)=>(c(),g("div",{key:f,class:Oe({link:!0,active:r.routes.includes(e.$route.name)})},[e.direction==="column"?(c(),T(h,{key:0,effect:"dark",content:r.displayName,placement:"right"},{default:n(()=>[r.logo?(c(),T(p,{key:0,src:r.logo,class:"avatar",onClick:i=>e.$router.push(r.route)},null,8,["src","onClick"])):L("v-if",!0)]),_:2},1032,["content"])):L("v-if",!0)],2))),128))]),l("div",No,[t(_)])],8,Eo)}var Vo=N(So,[["render",Oo],["__scopeId","data-v-a43dbcba"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Navigator.vue"]]);export{Vo as N};
@@ -1 +1 @@
1
- import"./vendor-others.e28a6fa7.js";import{_ as n}from"./index.531671ec.js";import{G as o}from"./vendor-element-plus.7eade167.js";import{H as t,al as r,o as i,L as s}from"./vendor-@vue.8cef8b94.js";const p=t({name:"Pagination",components:{ElPagination:o},props:{total:{type:Number,required:!1,default:void 0},currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0}},emits:["change"],data(){return{loaded:!1}},mounted(){setTimeout(()=>{this.loaded=!0},1e3)},methods:{onPageChange(e){!this.loaded||this.$emit("change",e)}}});function u(e,g,m,l,c,d){const a=r("el-pagination");return i(),s(a,{class:"mt-3 mb-3",background:"","hide-on-single-page":!1,layout:"prev, pager, next","current-page":e.currentPage,total:e.total,"page-size":e.pageSize,onCurrentChange:e.onPageChange},null,8,["current-page","total","page-size","onCurrentChange"])}var v=n(p,[["render",u],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Pagination.vue"]]);export{v as P};
1
+ import"./vendor-others.e28a6fa7.js";import{_ as n}from"./index.d28a66ae.js";import{G as o}from"./vendor-element-plus.7eade167.js";import{H as t,al as r,o as i,L as s}from"./vendor-@vue.8cef8b94.js";const p=t({name:"Pagination",components:{ElPagination:o},props:{total:{type:Number,required:!1,default:void 0},currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0}},emits:["change"],data(){return{loaded:!1}},mounted(){setTimeout(()=>{this.loaded=!0},1e3)},methods:{onPageChange(e){!this.loaded||this.$emit("change",e)}}});function u(e,g,m,l,c,d){const a=r("el-pagination");return i(),s(a,{class:"mt-3 mb-3",background:"","hide-on-single-page":!1,layout:"prev, pager, next","current-page":e.currentPage,total:e.total,"page-size":e.pageSize,onCurrentChange:e.onPageChange},null,8,["current-page","total","page-size","onCurrentChange"])}var v=n(p,[["render",u],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Pagination.vue"]]);export{v as P};
@@ -1 +1 @@
1
- import"./vendor-others.e28a6fa7.js";import{L as e}from"./Chatdoc.881bdb8d.js";import{_ as r}from"./index.531671ec.js";import{H as n,al as a,L as s,M as i,o as m,S as p}from"./vendor-@vue.8cef8b94.js";import"./vendor-element-plus.7eade167.js";import"./vendor-fortawesome.0d8f27df.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const c=n({name:"ChatdocSetting",components:{Layout:e},data(){return{}},async mounted(){},methods:{}});function d(u,t,_,f,l,x){const o=a("layout");return m(),s(o,null,{chatdoc:i(()=>t[0]||(t[0]=[p(" Setting ")])),_:1})}var L=r(c,[["render",d],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Setting.vue"]]);export{L as default};
1
+ import"./vendor-others.e28a6fa7.js";import{L as e}from"./Chatdoc.2bb8cda8.js";import{_ as r}from"./index.d28a66ae.js";import{H as n,al as a,L as s,M as i,o as m,S as p}from"./vendor-@vue.8cef8b94.js";import"./vendor-element-plus.7eade167.js";import"./vendor-fortawesome.0d8f27df.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const c=n({name:"ChatdocSetting",components:{Layout:e},data(){return{}},async mounted(){},methods:{}});function d(u,t,_,f,l,x){const o=a("layout");return m(),s(o,null,{chatdoc:i(()=>t[0]||(t[0]=[p(" Setting ")])),_:1})}var L=r(c,[["render",d],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Setting.vue"]]);export{L as default};
@@ -1 +1 @@
1
- import"./vendor-others.e28a6fa7.js";import{A as H,_ as A,I as J,E as K,al as W,F as G,ad as Q}from"./index.531671ec.js";import{E as q,J as X,K as Y,l as Z,W as x,u as B,y as I,C as ee,D as te,b as oe,H as ne,V as ie,h as ae,i as se,j as le,f as pe,k as re}from"./vendor-element-plus.7eade167.js";import{H as C,al as o,o as n,L as _,M as a,f as d,V as s,S as f,T as i,e as r,U as S,ai as z,R as p}from"./vendor-@vue.8cef8b94.js";const ce=C({name:"ApplicationConfirm",components:{ElDialog:q,ElDescriptions:X,ElDescriptionsItem:Y,ElDivider:Z,ElCheckbox:x,ElButton:B},props:{service:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible","apply"],data(){return{checked:!0}},watch:{},methods:{getBaseUrlPlatform:H,onApply(){if(!this.checked){I.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),de={class:"content"},ue={class:"policy"},me={class:"policy-title"},_e=["href"];function fe(e,t,y,h,v,E){const u=o("el-descriptions-item"),$=o("el-descriptions"),m=o("el-divider"),b=o("el-checkbox"),l=o("el-button"),k=o("el-dialog");return n(),_(k,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:t[1]||(t[1]=c=>e.$emit("update:visible",!1))},{default:a(()=>[d("div",de,[s($,{column:1},{default:a(()=>[s(u,{label:e.$t("application.field.name")},{default:a(()=>{var c;return[f(i((c=e.service)==null?void 0:c.title),1)]}),_:1},8,["label"]),s(u,{label:e.$t("application.field.freeAmount")},{default:a(()=>{var c,w;return[d("span",null,i((c=e.service)==null?void 0:c.free_amount)+" "+i(e.$t(`service.unit.${(w=e.service)==null?void 0:w.unit}`)),1)]}),_:1},8,["label"])]),_:1}),s(m,{class:"my-2"}),d("div",ue,[s(b,{modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=c=>e.checked=c),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),d("span",me,i(e.$t("application.message.readPolicy")),1),d("a",{class:"policy-title highlight",target:"_blank",href:e.getBaseUrlPlatform()+"/terms"}," \xA0"+i(e.$t("application.message.policy")),9,_e)]),s(l,{round:"",type:"primary",onClick:e.onApply},{default:a(()=>[f(i(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var ye=A(ce,[["render",fe],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const he=C({name:"ApiPrice",components:{ElTable:ee,ElTableColumn:te,ElDialog:q,ElButton:B},props:{price:{type:Object,required:!0}},data(){return{visible:!1}},computed:{data(){var e;return((e=this.price)==null?void 0:e.data)||[]},columns(){var e;return(e=this.price)==null?void 0:e.columns},spans(){var e;return(e=this.price)==null?void 0:e.spans}},methods:{cellStyle(){return{"font-weight":"bold","text-align":"center"}},spanMethod({row:e,column:t,rowIndex:y,columnIndex:h}){if(this.spans){for(const v of this.spans)if(y===v[0]&&h===v[1])return[v[2],v[3]]}return[1,1]}}});function ve(e,t,y,h,v,E){const u=o("el-table-column"),$=o("el-table"),m=o("el-dialog"),b=o("el-button");return n(),r("div",null,[s(m,{modelValue:e.visible,"onUpdate:modelValue":t[0]||(t[0]=l=>e.visible=l),center:"",width:"80%"},{default:a(()=>[s($,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:a(()=>[(n(!0),r(S,null,z(e.columns,(l,k)=>(n(),_(u,{key:k,prop:l.key,label:l.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),s(b,{round:"",size:"small",onClick:t[1]||(t[1]=l=>e.visible=!0)},{default:a(()=>[f(i(e.$t("service.button.pricing")),1)]),_:1})])}var $e=A(he,[["render",ve],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const be=C({name:"ApplicationInfo",components:{ElTag:oe},props:{application:{type:Object,required:!0},showType:{type:Boolean,default:!1},showId:{type:Boolean,default:!1}}}),ge={key:0,class:"info"},ke={key:1,class:"subtitle"},we={key:1,type:"success",class:"info",effect:"dark"},Ae={key:1,class:"subtitle"};function Ce(e,t,y,h,v,E){var $,m,b,l;const u=o("el-tag");return n(),r(S,null,[e.application.type==="Period"?(n(),r("span",ge,[e.showType?(n(),_(u,{key:0,type:"primary",class:"mr-1",effect:"dark"},{default:a(()=>[f(i(e.$t("application.type.period")),1)]),_:1})):p("v-if",!0),f(" "+i(e.$t("common.message.expiredAt"))+": "+i(e.$dayjs.format(e.application.expired_at))+" ",1),e.showId?(n(),r("p",ke,"ID: "+i(e.application.id),1)):p("v-if",!0)])):p("v-if",!0),e.application.type==="Usage"?(n(),r("span",we,[e.showType?(n(),_(u,{key:0,class:"mr-1"},{default:a(()=>[f(i(e.$t("application.type.usage")),1)]),_:1})):p("v-if",!0),f(" "+i(e.$t("common.message.remainingAmount"))+": "+i((m=($=e.application)==null?void 0:$.remaining_amount)==null?void 0:m.toFixed(6))+" "+i(e.$t("service.unit."+((l=(b=e.application)==null?void 0:b.service)==null?void 0:l.unit)+"s"))+" ",1),e.showId?(n(),r("p",Ae,"ID: "+i(e.application.id),1)):p("v-if",!0)])):p("v-if",!0)],64)}var Ee=A(be,[["render",Ce],["__scopeId","data-v-7ffaebbd"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Info.vue"]]);const Ie=C({name:"ApplicationStatus",components:{ElButton:B,ApplicationInfo:Ee,ApplicationConfirm:ye,ElSkeleton:ne,ElSkeletonItem:ie,ApiPrice:$e,ElDropdown:ae,ElDropdownMenu:se,ElDropdownItem:le,ArrowDown:pe,ElIcon:re},props:{application:{type:Object,required:!0},applications:{type:Array,default:void 0},initializing:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},service:{type:Object,required:!0},needApply:{type:Boolean,default:!1}},emits:["apply","refresh","applied","update:application","select"],data(){return{confirming:this.needApply,applicationType:J}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},methods:{onBuyMore(e){this.$router.push({name:K,params:{id:e.id}})},onCreateCredential(e){W.create({application_id:e==null?void 0:e.id,host:window.location.origin}).then(()=>{setTimeout(()=>{this.$emit("refresh")},2e3),this.confirming=!1}).finally(()=>{this.$emit("applied")})},onSelectApplication(e){this.$emit("select",e)},onApply(){var e;G.create({service_id:(e=this.service)==null?void 0:e.id}).then(({data:t})=>{I.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(t)}).catch(t=>{var y,h;((h=(y=t==null?void 0:t.response)==null?void 0:y.data)==null?void 0:h.code)===Q&&I.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),Be={class:"element"},Se={key:0},Ne={key:1,class:"status"},Ve={class:"el-dropdown-link"},De={class:"actions"},Oe={key:2,class:"text-center info"},Pe={class:"mr-2"},Te={class:"ml-1"};function Ue(e,t,y,h,v,E){var V,D,O,P,T,U,M,j;const u=o("el-skeleton-item"),$=o("el-skeleton"),m=o("application-info"),b=o("arrow-down"),l=o("el-icon"),k=o("el-dropdown-item"),c=o("el-dropdown-menu"),w=o("el-dropdown"),N=o("el-button"),R=o("api-price"),F=o("application-confirm");return n(),r("div",Be,[e.initializing&&e.application===void 0?(n(),r("div",Se,[s($,{rows:1,class:"text-center"},{template:a(()=>[s(u,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(n(),r("div",Ne,[s(w,{onCommand:e.onSelectApplication},{dropdown:a(()=>[e.applications&&e.applications.length>0?(n(),_(c,{key:0},{default:a(()=>[(n(!0),r(S,null,z(e.applications,(g,L)=>(n(),_(k,{key:L,command:g},{default:a(()=>[s(m,{application:g,"show-type":!0,"show-id":!0},null,8,["application"])]),_:2},1032,["command"]))),128))]),_:1})):p("v-if",!0)]),default:a(()=>[d("span",Ve,[s(m,{application:e.application},null,8,["application"]),e.applications&&e.applications.length>0?(n(),_(l,{key:0,class:"el-icon--right ml-0"},{default:a(()=>[s(b)]),_:1})):p("v-if",!0)])]),_:1},8,["onCommand"]),d("span",De,[s(N,{round:"",size:"small",type:"primary",class:"mr-1",onClick:t[0]||(t[0]=g=>e.onBuyMore(e.application))},{default:a(()=>[f(i(e.$t("common.button.buyMore")),1)]),_:1}),e.showPrice&&((P=(O=(D=(V=e.application)==null?void 0:V.service)==null?void 0:D.apis)==null?void 0:O[0])==null?void 0:P.price)?(n(),_(R,{key:0,class:"price inline-block",price:(j=(M=(U=(T=e.application)==null?void 0:T.service)==null?void 0:U.apis)==null?void 0:M[0])==null?void 0:j.price},null,8,["price"])):p("v-if",!0)])])):p("v-if",!0),e.needApply&&e.service?(n(),r("div",Oe,[d("span",Pe,i(e.$t("chat.message.notApplied")),1),d("span",null,[s(N,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:t[1]||(t[1]=g=>e.confirming=!0)},{default:a(()=>[f(i(e.$t("common.button.apply")),1)]),_:1})]),d("span",Te,i(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(n(),_(F,{key:0,modelValue:e.confirming,"onUpdate:modelValue":t[2]||(t[2]=g=>e.confirming=g),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):p("v-if",!0)])):p("v-if",!0)])}var Re=A(Ie,[["render",Ue],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{Re as A};
1
+ import"./vendor-others.e28a6fa7.js";import{A as H,_ as A,I as J,E as K,al as W,F as G,ad as Q}from"./index.d28a66ae.js";import{E as q,J as X,K as Y,l as Z,W as x,u as B,y as I,C as ee,D as te,b as oe,H as ne,V as ie,h as ae,i as se,j as le,f as pe,k as re}from"./vendor-element-plus.7eade167.js";import{H as C,al as o,o as n,L as _,M as a,f as d,V as s,S as f,T as i,e as r,U as S,ai as z,R as p}from"./vendor-@vue.8cef8b94.js";const ce=C({name:"ApplicationConfirm",components:{ElDialog:q,ElDescriptions:X,ElDescriptionsItem:Y,ElDivider:Z,ElCheckbox:x,ElButton:B},props:{service:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible","apply"],data(){return{checked:!0}},watch:{},methods:{getBaseUrlPlatform:H,onApply(){if(!this.checked){I.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),de={class:"content"},ue={class:"policy"},me={class:"policy-title"},_e=["href"];function fe(e,t,y,h,v,E){const u=o("el-descriptions-item"),$=o("el-descriptions"),m=o("el-divider"),b=o("el-checkbox"),l=o("el-button"),k=o("el-dialog");return n(),_(k,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:t[1]||(t[1]=c=>e.$emit("update:visible",!1))},{default:a(()=>[d("div",de,[s($,{column:1},{default:a(()=>[s(u,{label:e.$t("application.field.name")},{default:a(()=>{var c;return[f(i((c=e.service)==null?void 0:c.title),1)]}),_:1},8,["label"]),s(u,{label:e.$t("application.field.freeAmount")},{default:a(()=>{var c,w;return[d("span",null,i((c=e.service)==null?void 0:c.free_amount)+" "+i(e.$t(`service.unit.${(w=e.service)==null?void 0:w.unit}`)),1)]}),_:1},8,["label"])]),_:1}),s(m,{class:"my-2"}),d("div",ue,[s(b,{modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=c=>e.checked=c),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),d("span",me,i(e.$t("application.message.readPolicy")),1),d("a",{class:"policy-title highlight",target:"_blank",href:e.getBaseUrlPlatform()+"/terms"}," \xA0"+i(e.$t("application.message.policy")),9,_e)]),s(l,{round:"",type:"primary",onClick:e.onApply},{default:a(()=>[f(i(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var ye=A(ce,[["render",fe],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const he=C({name:"ApiPrice",components:{ElTable:ee,ElTableColumn:te,ElDialog:q,ElButton:B},props:{price:{type:Object,required:!0}},data(){return{visible:!1}},computed:{data(){var e;return((e=this.price)==null?void 0:e.data)||[]},columns(){var e;return(e=this.price)==null?void 0:e.columns},spans(){var e;return(e=this.price)==null?void 0:e.spans}},methods:{cellStyle(){return{"font-weight":"bold","text-align":"center"}},spanMethod({row:e,column:t,rowIndex:y,columnIndex:h}){if(this.spans){for(const v of this.spans)if(y===v[0]&&h===v[1])return[v[2],v[3]]}return[1,1]}}});function ve(e,t,y,h,v,E){const u=o("el-table-column"),$=o("el-table"),m=o("el-dialog"),b=o("el-button");return n(),r("div",null,[s(m,{modelValue:e.visible,"onUpdate:modelValue":t[0]||(t[0]=l=>e.visible=l),center:"",width:"80%"},{default:a(()=>[s($,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:a(()=>[(n(!0),r(S,null,z(e.columns,(l,k)=>(n(),_(u,{key:k,prop:l.key,label:l.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),s(b,{round:"",size:"small",onClick:t[1]||(t[1]=l=>e.visible=!0)},{default:a(()=>[f(i(e.$t("service.button.pricing")),1)]),_:1})])}var $e=A(he,[["render",ve],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const be=C({name:"ApplicationInfo",components:{ElTag:oe},props:{application:{type:Object,required:!0},showType:{type:Boolean,default:!1},showId:{type:Boolean,default:!1}}}),ge={key:0,class:"info"},ke={key:1,class:"subtitle"},we={key:1,type:"success",class:"info",effect:"dark"},Ae={key:1,class:"subtitle"};function Ce(e,t,y,h,v,E){var $,m,b,l;const u=o("el-tag");return n(),r(S,null,[e.application.type==="Period"?(n(),r("span",ge,[e.showType?(n(),_(u,{key:0,type:"primary",class:"mr-1",effect:"dark"},{default:a(()=>[f(i(e.$t("application.type.period")),1)]),_:1})):p("v-if",!0),f(" "+i(e.$t("common.message.expiredAt"))+": "+i(e.$dayjs.format(e.application.expired_at))+" ",1),e.showId?(n(),r("p",ke,"ID: "+i(e.application.id),1)):p("v-if",!0)])):p("v-if",!0),e.application.type==="Usage"?(n(),r("span",we,[e.showType?(n(),_(u,{key:0,class:"mr-1"},{default:a(()=>[f(i(e.$t("application.type.usage")),1)]),_:1})):p("v-if",!0),f(" "+i(e.$t("common.message.remainingAmount"))+": "+i((m=($=e.application)==null?void 0:$.remaining_amount)==null?void 0:m.toFixed(6))+" "+i(e.$t("service.unit."+((l=(b=e.application)==null?void 0:b.service)==null?void 0:l.unit)+"s"))+" ",1),e.showId?(n(),r("p",Ae,"ID: "+i(e.application.id),1)):p("v-if",!0)])):p("v-if",!0)],64)}var Ee=A(be,[["render",Ce],["__scopeId","data-v-7ffaebbd"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Info.vue"]]);const Ie=C({name:"ApplicationStatus",components:{ElButton:B,ApplicationInfo:Ee,ApplicationConfirm:ye,ElSkeleton:ne,ElSkeletonItem:ie,ApiPrice:$e,ElDropdown:ae,ElDropdownMenu:se,ElDropdownItem:le,ArrowDown:pe,ElIcon:re},props:{application:{type:Object,required:!0},applications:{type:Array,default:void 0},initializing:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},service:{type:Object,required:!0},needApply:{type:Boolean,default:!1}},emits:["apply","refresh","applied","update:application","select"],data(){return{confirming:this.needApply,applicationType:J}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},methods:{onBuyMore(e){this.$router.push({name:K,params:{id:e.id}})},onCreateCredential(e){W.create({application_id:e==null?void 0:e.id,host:window.location.origin}).then(()=>{setTimeout(()=>{this.$emit("refresh")},2e3),this.confirming=!1}).finally(()=>{this.$emit("applied")})},onSelectApplication(e){this.$emit("select",e)},onApply(){var e;G.create({service_id:(e=this.service)==null?void 0:e.id}).then(({data:t})=>{I.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(t)}).catch(t=>{var y,h;((h=(y=t==null?void 0:t.response)==null?void 0:y.data)==null?void 0:h.code)===Q&&I.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),Be={class:"element"},Se={key:0},Ne={key:1,class:"status"},Ve={class:"el-dropdown-link"},De={class:"actions"},Oe={key:2,class:"text-center info"},Pe={class:"mr-2"},Te={class:"ml-1"};function Ue(e,t,y,h,v,E){var V,D,O,P,T,U,M,j;const u=o("el-skeleton-item"),$=o("el-skeleton"),m=o("application-info"),b=o("arrow-down"),l=o("el-icon"),k=o("el-dropdown-item"),c=o("el-dropdown-menu"),w=o("el-dropdown"),N=o("el-button"),R=o("api-price"),F=o("application-confirm");return n(),r("div",Be,[e.initializing&&e.application===void 0?(n(),r("div",Se,[s($,{rows:1,class:"text-center"},{template:a(()=>[s(u,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(n(),r("div",Ne,[s(w,{onCommand:e.onSelectApplication},{dropdown:a(()=>[e.applications&&e.applications.length>0?(n(),_(c,{key:0},{default:a(()=>[(n(!0),r(S,null,z(e.applications,(g,L)=>(n(),_(k,{key:L,command:g},{default:a(()=>[s(m,{application:g,"show-type":!0,"show-id":!0},null,8,["application"])]),_:2},1032,["command"]))),128))]),_:1})):p("v-if",!0)]),default:a(()=>[d("span",Ve,[s(m,{application:e.application},null,8,["application"]),e.applications&&e.applications.length>0?(n(),_(l,{key:0,class:"el-icon--right ml-0"},{default:a(()=>[s(b)]),_:1})):p("v-if",!0)])]),_:1},8,["onCommand"]),d("span",De,[s(N,{round:"",size:"small",type:"primary",class:"mr-1",onClick:t[0]||(t[0]=g=>e.onBuyMore(e.application))},{default:a(()=>[f(i(e.$t("common.button.buyMore")),1)]),_:1}),e.showPrice&&((P=(O=(D=(V=e.application)==null?void 0:V.service)==null?void 0:D.apis)==null?void 0:O[0])==null?void 0:P.price)?(n(),_(R,{key:0,class:"price inline-block",price:(j=(M=(U=(T=e.application)==null?void 0:T.service)==null?void 0:U.apis)==null?void 0:M[0])==null?void 0:j.price},null,8,["price"])):p("v-if",!0)])])):p("v-if",!0),e.needApply&&e.service?(n(),r("div",Oe,[d("span",Pe,i(e.$t("chat.message.notApplied")),1),d("span",null,[s(N,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:t[1]||(t[1]=g=>e.confirming=!0)},{default:a(()=>[f(i(e.$t("common.button.apply")),1)]),_:1})]),d("span",Te,i(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(n(),_(F,{key:0,modelValue:e.confirming,"onUpdate:modelValue":t[2]||(t[2]=g=>e.confirming=g),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):p("v-if",!0)])):p("v-if",!0)])}var Re=A(Ie,[["render",Ue],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{Re as A};
@@ -1 +1 @@
1
- import"./vendor-others.e28a6fa7.js";import{I as D}from"./api.f60246f3.js";import{_ as L,I as $,H as A,F as k,J as V,G as H}from"./index.531671ec.js";import{o as M}from"./order.9dbff1b5.js";import{g as W}from"./price.37afa6c7.js";import{ar as x}from"./vendor-fortawesome.0d8f27df.js";import{H as K,A as U,b as z,B as G,F as J,u as X,y as S}from"./vendor-element-plus.7eade167.js";import{H as Y,al as f,L as m,M as o,o as c,V as l,f as d,T as p,e as _,ai as P,P as j,S as b,R as T,U as F}from"./vendor-@vue.8cef8b94.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const q=Y({name:"ConsoleSubscriptionBuy",components:{ElSkeleton:K,ElRow:U,ElTag:z,ElCol:G,ElCard:J,FontAwesomeIcon:x,ElButton:X},data(){return{application:void 0,application2:void 0,type:$.PERIOD,services:[],loading:!1,creating:!1,subscription:void 0}},computed:{site(){return this.$store.getters.site},applicationId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.id)==null?void 0:t.toString()},subscriptions(){var t,r,h,u;const e=[{name:"WEEK",label:this.$t("console.subscription.weekly"),description:this.$t("console.subscription.weekly.description"),duration:604800},{name:"MONTH",label:this.$t("console.subscription.monthly"),description:this.$t("console.subscription.monthly.description"),duration:2592e3},{name:"YEAR",tag:this.$t("console.button.suggested"),label:this.$t("console.subscription.yearly"),description:this.$t("console.subscription.yearly.description"),duration:31536e3}];for(const i of e){console.log("item",i);const a=this.getPackages(i.duration);console.log("pkgs",a),a&&(i.price=a.reduce((s,g)=>s+g.price,0));for(const s of a)i.benefits||(i.benefits=[]),i.benefits.push({enabled:!0,content:`${(t=s==null?void 0:s.service)==null?void 0:t.title} - ${s.amount} `+this.$t("service.unit."+((r=s==null?void 0:s.service)==null?void 0:r.unit)+"s")});(h=i.benefits)==null||h.push({enabled:i.name!=="WEEK",content:this.$t("console.message.benefit1")}),(u=i.benefits)==null||u.push({enabled:i.name!=="WEEK",content:this.$t("console.message.benefit2")})}return e},service(){var e;return(e=this.application)==null?void 0:e.service},serviceIds(){return!this.application||!this.application.service?[]:[this.application.service.id]}},async mounted(){this.loading=!0,await this.onFetchApplication(),await this.onFetchApplication2(),await this.onCreateApplications(),this.loading=!1,this.subscription=this.subscriptions[2]},methods:{getPriceString:W,onBuyExtra(){this.$router.push({name:A,params:{id:this.applicationId}})},getPackages(e){let t=[];if(!this.service)return[];const h=[this.service].sort((u,i)=>this.serviceIds.indexOf(u.id)-this.serviceIds.indexOf(i.id));for(const u of h){const i=u.packages,a=i==null?void 0:i.find(s=>s.type===D.PERIOD&&s.duration===e);a&&t.push({...a,service:u})}return t},async onCreateApplications(){var t,r;const e=[];if(this.application2||e.push((r=(t=this.application)==null?void 0:t.service)==null?void 0:r.id),e.length>0){for(const h of e)await k.create({service_id:h,type:$.PERIOD});await this.onFetchApplication2()}},onChangeType(){console.log("onChangeType",this.type),this.$router.push({name:A,params:this.$route.params})},async onFetchServices(){const{data:e}=await V.getAll({id:this.serviceIds});this.services=e.items,console.debug("services",this.services)},async onFetchApplication(){const{data:e}=await k.get(this.applicationId);this.application=e,console.debug("application",this.application)},async onFetchApplication2(){var t;const{data:e}=await k.getAll({limit:100,offset:0,user_id:this.$store.getters.user.id,ordering:"-created_at",service_id:this.serviceIds,type:$.PERIOD});this.application2=(t=e.items)==null?void 0:t[0],console.debug("application2",this.application2)},onCreateOrder(e){var t;if(this.subscription=e,this.creating=!0,!this.application2||!this.application2.id){S.error(this.$t("console.message.applicationNotFound")),this.creating=!1;return}M.create({application_ids:[this.application2.id],package_ids:this.getPackages(e.duration).map(r=>r.id),description:((t=this.service)==null?void 0:t.title)+" - "+e.label}).then(({data:r})=>{this.creating=!1,this.$router.push({name:H,params:{id:r.id}})}).catch(()=>{S.error(this.$t("order.message.createFailed")),this.creating=!1})}}}),Q={class:"title"},Z={class:"introduction"},ee={class:"name"},te={class:"price"},se={class:"description"},ie={class:"benefits"},oe={class:"operations"},ae={key:2,class:"extra"};function ne(e,t,r,h,u,i){const a=f("el-col"),s=f("el-row"),g=f("el-skeleton"),N=f("el-tag"),E=f("font-awesome-icon"),C=f("el-button"),I=f("el-card");return c(),m(s,{class:"panel"},{default:o(()=>[l(a,{span:24},{default:o(()=>[l(s,null,{default:o(()=>[l(a,{span:24},{default:o(()=>[d("h2",Q,p(e.$t("common.title.buyMore")),1)]),_:1})]),_:1}),l(s,null,{default:o(()=>[l(a,{span:24},{default:o(()=>[l(I,{shadow:"hover",class:"card"},{default:o(()=>[l(s,null,{default:o(()=>[l(a,{span:16,offset:4},{default:o(()=>[d("p",Z,p(e.$t("console.subscription.title")),1),e.loading?(c(),m(g,{key:0})):(c(),m(s,{key:1,gutter:15,class:"subscriptions"},{default:o(()=>[(c(!0),_(F,null,P(e.subscriptions,(n,R)=>{var w;return c(),m(a,{key:R,xs:24,md:24/(((w=e.subscriptions)==null?void 0:w.length)||4)},{default:o(()=>{var O;return[l(I,{shadow:"hover",class:j({subscription:!0,active:((O=e.subscription)==null?void 0:O.name)===n.name}),onClick:v=>e.subscription=n},{default:o(()=>{var v;return[d("h4",ee,[b(p(n.label)+" ",1),n.tag?(c(),m(N,{key:0,type:"warning"},{default:o(()=>[b(p(n.tag),1)]),_:2},1024)):T("v-if",!0)]),d("h2",te,p(e.getPriceString({value:n.price})),1),d("p",se,p(n.description),1),d("div",ie,[(c(!0),_(F,null,P(n.benefits,(y,B)=>(c(),_("div",{key:B,class:"benefit"},[y.enabled?(c(),m(E,{key:0,icon:"fa-solid fa-check",class:"icon icon-check"})):(c(),m(E,{key:1,icon:"fa-solid fa-xmark",class:"icon icon-xmark"})),d("span",null,p(y.content),1)]))),128))]),d("div",oe,[l(C,{class:"btn btn-subscribe",type:((v=e.subscription)==null?void 0:v.name)===(n==null?void 0:n.name)?"primary":"",round:"",onClick:y=>e.onCreateOrder(n)},{default:o(()=>[b(p(e.$t("common.button.buy")),1)]),_:2},1032,["type","onClick"])])]}),_:2},1032,["class","onClick"])]}),_:2},1032,["md"])}),128))]),_:1})),e.loading?T("v-if",!0):(c(),_("div",ae,[d("span",null,p(e.$t("console.message.doNotWantSubscribe")),1),l(C,{type:"primary",class:"btn btn-extra",round:"",size:"small",onClick:e.onBuyExtra},{default:o(()=>[b(p(e.$t("console.message.buyExtra")),1)]),_:1},8,["onClick"])]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var be=L(q,[["render",ne],["__scopeId","data-v-56303b1f"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/application/Subscribe.vue"]]);export{be as default};
1
+ import"./vendor-others.e28a6fa7.js";import{I as D}from"./api.f60246f3.js";import{_ as L,I as $,H as A,F as k,J as V,G as H}from"./index.d28a66ae.js";import{o as M}from"./order.6d451728.js";import{g as W}from"./price.e1faf3aa.js";import{ar as x}from"./vendor-fortawesome.0d8f27df.js";import{H as K,A as U,b as z,B as G,F as J,u as X,y as S}from"./vendor-element-plus.7eade167.js";import{H as Y,al as f,L as m,M as o,o as c,V as l,f as d,T as p,e as _,ai as P,P as j,S as b,R as T,U as F}from"./vendor-@vue.8cef8b94.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const q=Y({name:"ConsoleSubscriptionBuy",components:{ElSkeleton:K,ElRow:U,ElTag:z,ElCol:G,ElCard:J,FontAwesomeIcon:x,ElButton:X},data(){return{application:void 0,application2:void 0,type:$.PERIOD,services:[],loading:!1,creating:!1,subscription:void 0}},computed:{site(){return this.$store.getters.site},applicationId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.id)==null?void 0:t.toString()},subscriptions(){var t,r,h,u;const e=[{name:"WEEK",label:this.$t("console.subscription.weekly"),description:this.$t("console.subscription.weekly.description"),duration:604800},{name:"MONTH",label:this.$t("console.subscription.monthly"),description:this.$t("console.subscription.monthly.description"),duration:2592e3},{name:"YEAR",tag:this.$t("console.button.suggested"),label:this.$t("console.subscription.yearly"),description:this.$t("console.subscription.yearly.description"),duration:31536e3}];for(const i of e){console.log("item",i);const a=this.getPackages(i.duration);console.log("pkgs",a),a&&(i.price=a.reduce((s,g)=>s+g.price,0));for(const s of a)i.benefits||(i.benefits=[]),i.benefits.push({enabled:!0,content:`${(t=s==null?void 0:s.service)==null?void 0:t.title} - ${s.amount} `+this.$t("service.unit."+((r=s==null?void 0:s.service)==null?void 0:r.unit)+"s")});(h=i.benefits)==null||h.push({enabled:i.name!=="WEEK",content:this.$t("console.message.benefit1")}),(u=i.benefits)==null||u.push({enabled:i.name!=="WEEK",content:this.$t("console.message.benefit2")})}return e},service(){var e;return(e=this.application)==null?void 0:e.service},serviceIds(){return!this.application||!this.application.service?[]:[this.application.service.id]}},async mounted(){this.loading=!0,await this.onFetchApplication(),await this.onFetchApplication2(),await this.onCreateApplications(),this.loading=!1,this.subscription=this.subscriptions[2]},methods:{getPriceString:W,onBuyExtra(){this.$router.push({name:A,params:{id:this.applicationId}})},getPackages(e){let t=[];if(!this.service)return[];const h=[this.service].sort((u,i)=>this.serviceIds.indexOf(u.id)-this.serviceIds.indexOf(i.id));for(const u of h){const i=u.packages,a=i==null?void 0:i.find(s=>s.type===D.PERIOD&&s.duration===e);a&&t.push({...a,service:u})}return t},async onCreateApplications(){var t,r;const e=[];if(this.application2||e.push((r=(t=this.application)==null?void 0:t.service)==null?void 0:r.id),e.length>0){for(const h of e)await k.create({service_id:h,type:$.PERIOD});await this.onFetchApplication2()}},onChangeType(){console.log("onChangeType",this.type),this.$router.push({name:A,params:this.$route.params})},async onFetchServices(){const{data:e}=await V.getAll({id:this.serviceIds});this.services=e.items,console.debug("services",this.services)},async onFetchApplication(){const{data:e}=await k.get(this.applicationId);this.application=e,console.debug("application",this.application)},async onFetchApplication2(){var t;const{data:e}=await k.getAll({limit:100,offset:0,user_id:this.$store.getters.user.id,ordering:"-created_at",service_id:this.serviceIds,type:$.PERIOD});this.application2=(t=e.items)==null?void 0:t[0],console.debug("application2",this.application2)},onCreateOrder(e){var t;if(this.subscription=e,this.creating=!0,!this.application2||!this.application2.id){S.error(this.$t("console.message.applicationNotFound")),this.creating=!1;return}M.create({application_ids:[this.application2.id],package_ids:this.getPackages(e.duration).map(r=>r.id),description:((t=this.service)==null?void 0:t.title)+" - "+e.label}).then(({data:r})=>{this.creating=!1,this.$router.push({name:H,params:{id:r.id}})}).catch(()=>{S.error(this.$t("order.message.createFailed")),this.creating=!1})}}}),Q={class:"title"},Z={class:"introduction"},ee={class:"name"},te={class:"price"},se={class:"description"},ie={class:"benefits"},oe={class:"operations"},ae={key:2,class:"extra"};function ne(e,t,r,h,u,i){const a=f("el-col"),s=f("el-row"),g=f("el-skeleton"),N=f("el-tag"),E=f("font-awesome-icon"),C=f("el-button"),I=f("el-card");return c(),m(s,{class:"panel"},{default:o(()=>[l(a,{span:24},{default:o(()=>[l(s,null,{default:o(()=>[l(a,{span:24},{default:o(()=>[d("h2",Q,p(e.$t("common.title.buyMore")),1)]),_:1})]),_:1}),l(s,null,{default:o(()=>[l(a,{span:24},{default:o(()=>[l(I,{shadow:"hover",class:"card"},{default:o(()=>[l(s,null,{default:o(()=>[l(a,{span:16,offset:4},{default:o(()=>[d("p",Z,p(e.$t("console.subscription.title")),1),e.loading?(c(),m(g,{key:0})):(c(),m(s,{key:1,gutter:15,class:"subscriptions"},{default:o(()=>[(c(!0),_(F,null,P(e.subscriptions,(n,R)=>{var w;return c(),m(a,{key:R,xs:24,md:24/(((w=e.subscriptions)==null?void 0:w.length)||4)},{default:o(()=>{var O;return[l(I,{shadow:"hover",class:j({subscription:!0,active:((O=e.subscription)==null?void 0:O.name)===n.name}),onClick:v=>e.subscription=n},{default:o(()=>{var v;return[d("h4",ee,[b(p(n.label)+" ",1),n.tag?(c(),m(N,{key:0,type:"warning"},{default:o(()=>[b(p(n.tag),1)]),_:2},1024)):T("v-if",!0)]),d("h2",te,p(e.getPriceString({value:n.price})),1),d("p",se,p(n.description),1),d("div",ie,[(c(!0),_(F,null,P(n.benefits,(y,B)=>(c(),_("div",{key:B,class:"benefit"},[y.enabled?(c(),m(E,{key:0,icon:"fa-solid fa-check",class:"icon icon-check"})):(c(),m(E,{key:1,icon:"fa-solid fa-xmark",class:"icon icon-xmark"})),d("span",null,p(y.content),1)]))),128))]),d("div",oe,[l(C,{class:"btn btn-subscribe",type:((v=e.subscription)==null?void 0:v.name)===(n==null?void 0:n.name)?"primary":"",round:"",onClick:y=>e.onCreateOrder(n)},{default:o(()=>[b(p(e.$t("common.button.buy")),1)]),_:2},1032,["type","onClick"])])]}),_:2},1032,["class","onClick"])]}),_:2},1032,["md"])}),128))]),_:1})),e.loading?T("v-if",!0):(c(),_("div",ae,[d("span",null,p(e.$t("console.message.doNotWantSubscribe")),1),l(C,{type:"primary",class:"btn btn-extra",round:"",size:"small",onClick:e.onBuyExtra},{default:o(()=>[b(p(e.$t("console.message.buyExtra")),1)]),_:1},8,["onClick"])]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var be=L(q,[["render",ne],["__scopeId","data-v-56303b1f"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/application/Subscribe.vue"]]);export{be as default};
@@ -1 +1 @@
1
- var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{B as r}from"./index.531671ec.js";class o{constructor(){e(this,"key","distribution-histories")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const b=new o;class l{constructor(){e(this,"key","distribution-statuses")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}async initialize(){return await r.post(`/${this.key}/initialize/`)}}const h=new l;class c{constructor(){e(this,"key","distribution-levels")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const k=new c;class u{constructor(){e(this,"key","shorturl")}async create(t){return await r.post(`/${this.key}`,{content:t})}}const w=new u;export{k as a,b,h as d,w as s};
1
+ var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{B as r}from"./index.d28a66ae.js";class o{constructor(){e(this,"key","distribution-histories")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const b=new o;class l{constructor(){e(this,"key","distribution-statuses")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}async initialize(){return await r.post(`/${this.key}/initialize/`)}}const h=new l;class c{constructor(){e(this,"key","distribution-levels")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const k=new c;class u{constructor(){e(this,"key","shorturl")}async create(t){return await r.post(`/${this.key}`,{content:t})}}const w=new u;export{k as a,b,h as d,w as s};