@acedatacloud/nexior 1.9.1 → 1.10.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 (69) hide show
  1. package/dist/assets/Auth.a3080d43.js +1 -0
  2. package/dist/assets/Buy.1ae7bd2d.js +1 -0
  3. package/dist/assets/Callback.30e36ae4.js +1 -0
  4. package/dist/assets/{Chatdoc.1cba5073.js → Chatdoc.b051942b.js} +1 -1
  5. package/dist/assets/Console.61846bc2.js +1 -0
  6. package/dist/assets/Conversation.474d36f0.js +1 -0
  7. package/dist/assets/Conversation.af5b2448.js +1 -0
  8. package/dist/assets/{CopyToClipboard.2a676bdf.js → CopyToClipboard.de4a0d29.js} +1 -1
  9. package/dist/assets/{DarkSelector.44a1e203.js → DarkSelector.5cdf004e.js} +1 -1
  10. package/dist/assets/{Detail.2d0dfdb6.js → Detail.6e91dcab.js} +1 -1
  11. package/dist/assets/{HelpEntry.87900777.js → HelpEntry.0bbde634.js} +1 -1
  12. package/dist/assets/History.96eddc48.js +1 -0
  13. package/dist/assets/Index.2a0825c4.js +1 -0
  14. package/dist/assets/Index.4096d133.js +1 -0
  15. package/dist/assets/Index.6df44b6e.js +1 -0
  16. package/dist/assets/Index.a2253d61.js +1 -0
  17. package/dist/assets/Index.b1c78dd7.js +1 -0
  18. package/dist/assets/Index.f9603014.js +1 -0
  19. package/dist/assets/InfoIcon.2a7ed9be.js +1 -0
  20. package/dist/assets/Invitees.25f81f40.js +1 -0
  21. package/dist/assets/List.0048978c.js +1 -0
  22. package/dist/assets/List.28fe8370.js +1 -0
  23. package/dist/assets/List.e68bc610.js +1 -0
  24. package/dist/assets/Login.e5a69f1f.js +1 -0
  25. package/dist/assets/Main.b8bfb5a5.js +1 -0
  26. package/dist/assets/Manage.b24ee467.js +1 -0
  27. package/dist/assets/Navigator.10599156.js +1 -0
  28. package/dist/assets/{Pagination.f03a0118.js → Pagination.b258bbd5.js} +1 -1
  29. package/dist/assets/Setting.7637df52.js +1 -0
  30. package/dist/assets/{Status.5f2f1eb6.js → Status.46c21bb1.js} +2 -2
  31. package/dist/assets/{distribution.504b3173.js → distribution.071e01d0.js} +1 -1
  32. package/dist/assets/index.3f81502c.css +1 -0
  33. package/dist/assets/index.5834f7b9.js +3 -0
  34. package/dist/assets/{order.562a793b.js → order.258a211f.js} +1 -1
  35. package/dist/assets/{vendor-@vue.203c03b9.js → vendor-@vue.8e552cf2.js} +1 -1
  36. package/dist/assets/{vendor-element-plus.29467883.js → vendor-element-plus.97860c23.js} +2 -2
  37. package/dist/assets/{vendor-fortawesome.772f62dc.js → vendor-fortawesome.46d238d8.js} +1 -1
  38. package/dist/assets/{vendor-markdown.19dcf171.js → vendor-markdown.8e590d23.js} +1 -1
  39. package/dist/assets/{vendor-others.06ae4200.js → vendor-others.6e08baf0.js} +40 -40
  40. package/dist/assets/{vendor-qrcode.66c169c9.js → vendor-qrcode.08878953.js} +1 -1
  41. package/dist/assets/{vendor-vue-dark-switch.c915bfe5.js → vendor-vue-dark-switch.38123453.js} +1 -1
  42. package/dist/index.html +6 -7
  43. package/package.json +1 -1
  44. package/dist/assets/Auth.62018af9.js +0 -1
  45. package/dist/assets/Buy.be674342.js +0 -1
  46. package/dist/assets/Callback.97416c69.js +0 -1
  47. package/dist/assets/Console.9c9a76f2.js +0 -1
  48. package/dist/assets/Conversation.0fc50e5c.js +0 -1
  49. package/dist/assets/Conversation.bdbdc0ac.js +0 -1
  50. package/dist/assets/History.e469a793.js +0 -1
  51. package/dist/assets/Index.502a58a8.js +0 -1
  52. package/dist/assets/Index.951876bc.js +0 -1
  53. package/dist/assets/Index.add58976.js +0 -1
  54. package/dist/assets/Index.cfea5087.js +0 -1
  55. package/dist/assets/Index.eb4f21de.js +0 -1
  56. package/dist/assets/Index.ffec0a43.js +0 -1
  57. package/dist/assets/InfoIcon.59bdffbb.js +0 -1
  58. package/dist/assets/Invitees.e517d370.js +0 -1
  59. package/dist/assets/List.07b196b9.js +0 -1
  60. package/dist/assets/List.5ac7e79b.js +0 -1
  61. package/dist/assets/List.ce8977ce.js +0 -1
  62. package/dist/assets/Login.6d4cc077.js +0 -1
  63. package/dist/assets/Main.46fba56b.js +0 -1
  64. package/dist/assets/Manage.7e6b0277.js +0 -1
  65. package/dist/assets/Navigator.551f9e72.js +0 -1
  66. package/dist/assets/Setting.b0b5e7d4.js +0 -1
  67. package/dist/assets/index.503da6da.css +0 -1
  68. package/dist/assets/index.84e5def0.js +0 -3
  69. /package/dist/assets/{vendor-highlight.js.6ee9ffbc.js → vendor-highlight.js.19da0c9f.js} +0 -0
@@ -1,4 +1,4 @@
1
- var J=Object.defineProperty,X=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var P=(e,n,t)=>n in e?J(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Q=(e,n)=>{for(var t in n||(n={}))x.call(n,t)&&P(e,t,n[t]);if(G)for(var t of G(n))ee.call(n,t)&&P(e,t,n[t]);return e},W=(e,n)=>X(e,Z(n));var Y=(e,n,t)=>(P(e,typeof n!="symbol"?n+"":n,t),t);import{H as ne}from"./vendor-others.06ae4200.js";import{v as O,L as te,M as oe,_ as g,w as ie,x as se}from"./index.84e5def0.js";import{I as K}from"./application.ea1e2a72.js";import{m as ae}from"./vendor-markdown.19dcf171.js";import{H as b,m as le,ah as re,al as o,av as pe,O as ce,o as c,L as $,M as d,V as l,f as u,T as A,U as i,e as h,W as de,ai as ue,S as C}from"./vendor-@vue.203c03b9.js";import"./vendor-highlight.js.6ee9ffbc.js";import{E as T,y as me,A as _e,w as ye,N as fe,e as I,G as N,l as ve,m as he,u as $e,O as ge}from"./vendor-element-plus.29467883.js";const be="duplication",rn="api_error",pn="bad_request",cn="used_up",dn="unknown",un="canceled",mn="timeout",_n="content_too_large",yn="too_many_requests",fn="not_applied";class ke{constructor(){Y(this,"key","credentials")}async getAll(n){return await O.get(`/${this.key}/`,{params:n})}async get(n){return await O.get(`/${this.key}/${n}`)}async create(n){return await O.post(`/${this.key}/`,n)}async delete(n){return await O.delete(`/${this.key}/${n}`)}}const Ee=new ke,Ae=async e=>{const n=(await te(()=>import("./vendor-highlight.js.6ee9ffbc.js"),["assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css"])).default;console.debug("highlight.js loaded"),e.querySelectorAll("pre code").forEach(s=>{var y,p;const a=document.createElement("button");a.innerHTML=oe.global.t("common.button.copy").toString(),a.addEventListener("click",()=>{ne(s.innerText)}),(y=s.parentElement)!=null&&y.querySelector("button")||(p=s.parentElement)==null||p.prepend(a),n.highlightBlock(s)})},we=b({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,default:()=>({}),required:!1}},setup(e,{attrs:n}){const t=new ae(e.options),s=le(()=>{const a=e.source;return t==null?void 0:t.render(a)});return()=>re("div",W(Q({},n),{innerHTML:s.value}))}});var Oe=g(we,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/VueMarkdown.vue"]]);const Ce=b({name:"ApiCode",directives:{highlight:Ae},components:{VueMarkdown:Oe},props:{content:{type:String,required:!1,default:""}},data(){},watch:{}});function Re(e,n,t,s,a,y){const p=o("vue-markdown"),m=pe("highlight");return ce((c(),$(p,{source:e.content,class:"markdown-body"},null,8,["source"])),[[m]])}var Pe=g(Ce,[["render",Re],["__scopeId","data-v-8173dc94"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/MarkdownRenderer.vue"]]),Ne=`**\u7279\u522B\u63D0\u9192\uFF1A\u7528\u6237\u5728\u786E\u8BA4\u7B7E\u7F72\u672C\u670D\u52A1\u6761\u6B3E\u4E4B\u524D\uFF0C\u8BF7\u52A1\u5FC5\u4ED4\u7EC6\u9605\u8BFB\u672C\u670D\u52A1\u6761\u6B3E\u4E4B\u5168\u90E8\u5185\u5BB9\uFF0C\u5C24\u5176\u662F\u4EE5\u7C97\u4F53\u6807\u6CE8\u7684\u542B\u6709\u514D\u9664\u6216\u9650\u5236\u7528\u6237\u8D23\u4EFB\u7684\u5185\u5BB9\u3002\u77E5\u6570\u4E91\uFF08\u5317\u4EAC\u9759\u89C5\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8\u65D7\u4E0B\u4EA7\u54C1\uFF09\u4EC5\u4E3A\u5B8C\u6210\u6CE8\u518C\u5E76\u63D0\u4EA4\u670D\u52A1\u5F00\u901A\u7533\u8BF7\u7684\u7528\u6237\u63D0\u4F9B API\u3001\u4EE3\u7406\u3001\u6570\u636E\u6280\u672F\u670D\u52A1\uFF08\u4EE5\u4E0B\u79F0\u201C\u672C\u670D\u52A1\u201D\uFF09\uFF0C\u4E00\u65E6\u7528\u6237\u70B9\u51FB\u300C\u7ACB\u5373\u7533\u8BF7\u300D\u6309\u94AE\u5E76\u52FE\u9009\u540C\u610F\u672C\u534F\u8BAE\uFF0C\u5373\u89C6\u4E3A\u7528\u6237\u5DF2\u5145\u5206\u7406\u89E3\u672C\u534F\u8BAE\u6240\u6709\u6761\u6B3E\u7684\u542B\u4E49\u53CA\u5145\u5206\u63A5\u53D7\u76F8\u5E94\u7684\u6CD5\u5F8B\u540E\u679C\uFF0C\u63A5\u53D7\u4EE5\u6570\u636E\u7535\u6587\u5F62\u5F0F\u8BA2\u7ACB\u672C\u670D\u52A1\u6761\u6B3E\u5E76\u63A5\u53D7\u672C\u670D\u52A1\u6B3E\u7EA6\u675F\u3002\u5982\u679C\u7528\u6237\u4E0D\u540C\u610F\u672C\u670D\u52A1\u6761\u6B3E\uFF0C\u6216\u8005\u65E0\u6CD5\u51C6\u786E\u7406\u89E3\u672C\u670D\u6761\u6B3E\u5185\u5BB9\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u540E\u7EED\u64CD\u4F5C\u3002**
1
+ var J=Object.defineProperty,X=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var P=(e,n,t)=>n in e?J(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,K=(e,n)=>{for(var t in n||(n={}))x.call(n,t)&&P(e,t,n[t]);if(G)for(var t of G(n))ee.call(n,t)&&P(e,t,n[t]);return e},Q=(e,n)=>X(e,Z(n));var W=(e,n,t)=>(P(e,typeof n!="symbol"?n+"":n,t),t);import{H as ne}from"./vendor-others.6e08baf0.js";import{J as te,K as oe,t as O,_ as g,u as ie,v as se}from"./index.5834f7b9.js";import{I as Y}from"./application.ea1e2a72.js";import{m as ae}from"./vendor-markdown.8e590d23.js";import{H as b,m as le,ah as re,al as o,av as pe,O as ce,o as c,L as $,M as d,V as l,f as u,T as A,U as i,e as h,W as de,ai as ue,S as C}from"./vendor-@vue.8e552cf2.js";import"./vendor-highlight.js.19da0c9f.js";import{f as T,y as me,A as _e,w as ye,N as fe,d as I,G as N,l as ve,m as he,u as $e,O as ge}from"./vendor-element-plus.97860c23.js";const be="duplication",rn="api_error",pn="bad_request",cn="used_up",dn="unknown",un="canceled",mn="timeout",_n="content_too_large",yn="too_many_requests",fn="not_applied",ke=async e=>{const n=(await te(()=>import("./vendor-highlight.js.19da0c9f.js"),["assets/vendor-highlight.js.19da0c9f.js","assets/vendor-highlight.js.4e8df926.css"])).default;console.debug("highlight.js loaded"),e.querySelectorAll("pre code").forEach(s=>{var y,p;const a=document.createElement("button");a.innerHTML=oe.global.t("common.button.copy").toString(),a.addEventListener("click",()=>{ne(s.innerText)}),(y=s.parentElement)!=null&&y.querySelector("button")||(p=s.parentElement)==null||p.prepend(a),n.highlightBlock(s)})};class Ee{constructor(){W(this,"key","credentials")}async getAll(n){return await O.get(`/${this.key}/`,{params:n})}async get(n){return await O.get(`/${this.key}/${n}`)}async create(n){return await O.post(`/${this.key}/`,n)}async delete(n){return await O.delete(`/${this.key}/${n}`)}}const Ae=new Ee,we=b({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,default:()=>({}),required:!1}},setup(e,{attrs:n}){const t=new ae(e.options),s=le(()=>{const a=e.source;return t==null?void 0:t.render(a)});return()=>re("div",Q(K({},n),{innerHTML:s.value}))}});var Oe=g(we,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/VueMarkdown.vue"]]);const Ce=b({name:"ApiCode",directives:{highlight:ke},components:{VueMarkdown:Oe},props:{content:{type:String,required:!1,default:""}},data(){},watch:{}});function Re(e,n,t,s,a,y){const p=o("vue-markdown"),m=pe("highlight");return ce((c(),$(p,{source:e.content,class:"markdown-body"},null,8,["source"])),[[m]])}var Pe=g(Ce,[["render",Re],["__scopeId","data-v-8173dc94"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/MarkdownRenderer.vue"]]),Ne=`**\u7279\u522B\u63D0\u9192\uFF1A\u7528\u6237\u5728\u786E\u8BA4\u7B7E\u7F72\u672C\u670D\u52A1\u6761\u6B3E\u4E4B\u524D\uFF0C\u8BF7\u52A1\u5FC5\u4ED4\u7EC6\u9605\u8BFB\u672C\u670D\u52A1\u6761\u6B3E\u4E4B\u5168\u90E8\u5185\u5BB9\uFF0C\u5C24\u5176\u662F\u4EE5\u7C97\u4F53\u6807\u6CE8\u7684\u542B\u6709\u514D\u9664\u6216\u9650\u5236\u7528\u6237\u8D23\u4EFB\u7684\u5185\u5BB9\u3002\u77E5\u6570\u4E91\uFF08\u5317\u4EAC\u9759\u89C5\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8\u65D7\u4E0B\u4EA7\u54C1\uFF09\u4EC5\u4E3A\u5B8C\u6210\u6CE8\u518C\u5E76\u63D0\u4EA4\u670D\u52A1\u5F00\u901A\u7533\u8BF7\u7684\u7528\u6237\u63D0\u4F9B API\u3001\u4EE3\u7406\u3001\u6570\u636E\u6280\u672F\u670D\u52A1\uFF08\u4EE5\u4E0B\u79F0\u201C\u672C\u670D\u52A1\u201D\uFF09\uFF0C\u4E00\u65E6\u7528\u6237\u70B9\u51FB\u300C\u7ACB\u5373\u7533\u8BF7\u300D\u6309\u94AE\u5E76\u52FE\u9009\u540C\u610F\u672C\u534F\u8BAE\uFF0C\u5373\u89C6\u4E3A\u7528\u6237\u5DF2\u5145\u5206\u7406\u89E3\u672C\u534F\u8BAE\u6240\u6709\u6761\u6B3E\u7684\u542B\u4E49\u53CA\u5145\u5206\u63A5\u53D7\u76F8\u5E94\u7684\u6CD5\u5F8B\u540E\u679C\uFF0C\u63A5\u53D7\u4EE5\u6570\u636E\u7535\u6587\u5F62\u5F0F\u8BA2\u7ACB\u672C\u670D\u52A1\u6761\u6B3E\u5E76\u63A5\u53D7\u672C\u670D\u52A1\u6B3E\u7EA6\u675F\u3002\u5982\u679C\u7528\u6237\u4E0D\u540C\u610F\u672C\u670D\u52A1\u6761\u6B3E\uFF0C\u6216\u8005\u65E0\u6CD5\u51C6\u786E\u7406\u89E3\u672C\u670D\u6761\u6B3E\u5185\u5BB9\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u540E\u7EED\u64CD\u4F5C\u3002**
2
2
 
3
3
  ### \u670D\u52A1\u8303\u56F4
4
4
 
@@ -83,4 +83,4 @@ var J=Object.defineProperty,X=Object.defineProperties;var Z=Object.getOwnPropert
83
83
  2. \u5982\u672C\u534F\u8BAE\u7EA6\u5B9A\u7684\u6761\u6B3E\u4E0E\u7528\u6237\u548C\u77E5\u6570\u4E91\u7B7E\u8BA2\u7684\u7EB8\u8D28\u5408\u540C\u4E2D\u5404\u6761\u6B3E\u6709\u4E0D\u540C\u4E4B\u5904\uFF0C\u4EE5\u7EB8\u8D28\u5408\u540C\u4E3A\u51C6\uFF1B\u7EB8\u8D28\u5408\u540C\u6CA1\u6709\u7EA6\u5B9A\u7684\u4E8B\u9879\uFF0C\u4EE5\u7528\u6237\u5728\u6CE8\u518C\u77E5\u6570\u4E91\u8D26\u6237\u5E76\u4F7F\u7528\u77E5\u6570\u4E91\u4EA7\u54C1\u670D\u52A1\u8FC7\u7A0B\u4E2D\u540C\u610F\u7684\u5404\u9879\u5728\u7EBF\u89C4\u5219\u4E3A\u51C6\u3002
84
84
 
85
85
  \u672C\u534F\u8BAE\u66F4\u65B0\u65E5\u671F\uFF1A2023 \u5E74 3 \u6708 12 \u65E5
86
- `;const Te=b({name:"ApplicationPolicy",components:{ElDialog:T,MarkdownRenderer:Pe},props:{visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible"],data(){return{policyText:Ne}},methods:{}});function Ie(e,n,t,s,a,y){const p=o("markdown-renderer"),m=o("el-dialog");return c(),$(m,{class:"dialog-policy","model-value":e.visible,title:e.$t("application.message.policy"),width:"700px",onClose:n[0]||(n[0]=f=>e.$emit("update:visible",!1))},{default:d(()=>[l(p,{content:e.policyText},null,8,["content"])]),_:1},8,["model-value","title"])}var De=g(Te,[["render",Ie],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Policy.vue"]]);const Me=b({name:"ApplicationConfirm",components:{ElDialog:T,ElDescriptions:me,ElDescriptionsItem:_e,ElDivider:ye,ElCheckbox:fe,ElButton:I,ApplicationPolicy:De},props:{service:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible","apply"],data(){return{checked:!1,showPolicy:!1}},watch:{},methods:{onApply(){if(!this.checked){N.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),Se={class:"content"},Ve={class:"policy"},Be={class:"policy-title"};function Ue(e,n,t,s,a,y){const p=o("el-descriptions-item"),m=o("el-descriptions"),f=o("el-divider"),k=o("el-checkbox"),_=o("application-policy"),v=o("el-button"),w=o("el-dialog");return c(),$(w,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:n[3]||(n[3]=r=>e.$emit("update:visible",!1))},{default:d(()=>[u("div",Se,[l(m,{column:1},{default:d(()=>[l(p,{label:e.$t("application.field.name")},{default:d(()=>{var r;return[A(i((r=e.service)==null?void 0:r.title),1)]}),_:1},8,["label"]),l(p,{label:e.$t("application.field.freeAmount")},{default:d(()=>{var r,E;return[u("span",null,i((r=e.service)==null?void 0:r.free_amount)+" "+i(e.$t(`service.unit.${(E=e.service)==null?void 0:E.unit}`)),1)]}),_:1},8,["label"])]),_:1}),l(f,{class:"my-2"}),u("div",Ve,[l(k,{modelValue:e.checked,"onUpdate:modelValue":n[0]||(n[0]=r=>e.checked=r),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),u("span",Be,i(e.$t("application.message.readPolicy")),1),u("span",{class:"policy-title highlight",onClick:n[1]||(n[1]=r=>e.showPolicy=!0)}," \xA0"+i(e.$t("application.message.policy")),1),l(_,{modelValue:e.showPolicy,"onUpdate:modelValue":n[2]||(n[2]=r=>e.showPolicy=r),modelModifiers:{visible:!0}},null,8,["modelValue"])]),l(v,{round:"",type:"primary",onClick:e.onApply},{default:d(()=>[A(i(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var qe=g(Me,[["render",Ue],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const Le=b({name:"ApiPrice",components:{ElTable:ve,ElTableColumn:he,ElDialog:T,ElButton:I},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:n,rowIndex:t,columnIndex:s}){if(this.spans){for(const a of this.spans)if(t===a[0]&&s===a[1])return[a[2],a[3]]}return[1,1]}}});function je(e,n,t,s,a,y){const p=o("el-table-column"),m=o("el-table"),f=o("el-dialog"),k=o("el-button");return c(),h("div",null,[l(f,{modelValue:e.visible,"onUpdate:modelValue":n[0]||(n[0]=_=>e.visible=_),center:"",width:"80%"},{default:d(()=>[l(m,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:d(()=>[(c(!0),h(de,null,ue(e.columns,(_,v)=>(c(),$(p,{key:v,prop:_.key,label:_.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),l(k,{round:"",size:"small",onClick:n[1]||(n[1]=_=>e.visible=!0)},{default:d(()=>[A(i(e.$t("service.button.pricing")),1)]),_:1})])}var ze=g(Le,[["render",je],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const Fe=b({name:"ApplicationStatus",components:{ElButton:I,ApplicationConfirm:qe,ElSkeleton:$e,ElSkeletonItem:ge,ApiPrice:ze},props:{application:{type:Object,required:!0},initializing:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},service:{type:Object,required:!0},needApply:{type:Boolean,default:!1}},emits:["apply","refresh","applied","update:application"],data(){return{confirming:this.needApply,applicationType:K}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},mounted(){var e,n;this.application&&!((n=(e=this.application)==null?void 0:e.credentials)!=null&&n.find(t=>t.host===window.location.origin))&&(console.debug("create extra credential"),this.onCreateCredential(this.application))},methods:{onBuyMore(e){this.$router.push({name:ie,params:{id:e.id}})},onCreateCredential(e){Ee.create({application_id:e==null?void 0:e.id,host:window.location.origin}).then(()=>{setTimeout(()=>{this.$emit("refresh")},2e3),this.confirming=!1}).finally(()=>{this.$emit("applied")})},onApply(){var e;se.create({type:K.API,service_id:(e=this.service)==null?void 0:e.id}).then(({data:n})=>{N.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(n)}).catch(n=>{var t,s;((s=(t=n==null?void 0:n.response)==null?void 0:t.data)==null?void 0:s.code)===be&&N.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),He={class:"element"},Ge={key:0},Qe={key:1,class:"status"},We={class:"info"},Ye={class:"actions"},Ke={key:2,class:"text-center info"},Je={class:"mr-2"},Xe={class:"ml-1"};function Ze(e,n,t,s,a,y){var v,w,r,E,D,M,S,V,B,U,q,L,j,z,F,H;const p=o("el-skeleton-item"),m=o("el-skeleton"),f=o("el-button"),k=o("api-price"),_=o("application-confirm");return c(),h("div",He,[e.initializing&&e.application===void 0?(c(),h("div",Ge,[l(m,{rows:1,class:"text-center"},{template:d(()=>[l(p,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(c(),h("div",Qe,[u("span",We,i(e.$t("common.message.usedAmount"))+": "+i((w=(v=e.application)==null?void 0:v.used_amount)==null?void 0:w.toFixed(6))+" "+i(e.$t("service.unit."+((E=(r=e.application)==null?void 0:r.service)==null?void 0:E.unit)+"s"))+" "+i(e.$t("common.message.remainingAmount"))+": "+i((M=(D=e.application)==null?void 0:D.remaining_amount)==null?void 0:M.toFixed(6))+" "+i(e.$t("service.unit."+((V=(S=e.application)==null?void 0:S.service)==null?void 0:V.unit)+"s")),1),u("span",Ye,[l(f,{round:"",size:"small",type:"primary",class:"mr-1",onClick:n[0]||(n[0]=R=>e.onBuyMore(e.application))},{default:d(()=>[A(i(e.$t("common.button.buyMore")),1)]),_:1}),e.showPrice&&((L=(q=(U=(B=e.application)==null?void 0:B.service)==null?void 0:U.apis)==null?void 0:q[0])==null?void 0:L.price)?(c(),$(k,{key:0,class:"price inline-block",price:(H=(F=(z=(j=e.application)==null?void 0:j.service)==null?void 0:z.apis)==null?void 0:F[0])==null?void 0:H.price},null,8,["price"])):C("v-if",!0)])])):C("v-if",!0),e.needApply&&e.service?(c(),h("div",Ke,[u("span",Je,i(e.$t("chat.message.notApplied")),1),u("span",null,[l(f,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:n[1]||(n[1]=R=>e.confirming=!0)},{default:d(()=>[A(i(e.$t("common.button.apply")),1)]),_:1})]),u("span",Xe,i(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(c(),$(_,{key:0,modelValue:e.confirming,"onUpdate:modelValue":n[2]||(n[2]=R=>e.confirming=R),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):C("v-if",!0)])):C("v-if",!0)])}var vn=g(Fe,[["render",Ze],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{vn as A,dn as E,Pe as M,fn as a,_n as b,yn as c,mn as d,pn as e,rn as f,cn as g,un as h,be as i};
86
+ `;const Te=b({name:"ApplicationPolicy",components:{ElDialog:T,MarkdownRenderer:Pe},props:{visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible"],data(){return{policyText:Ne}},methods:{}});function Ie(e,n,t,s,a,y){const p=o("markdown-renderer"),m=o("el-dialog");return c(),$(m,{class:"dialog-policy","model-value":e.visible,title:e.$t("application.message.policy"),width:"700px",onClose:n[0]||(n[0]=f=>e.$emit("update:visible",!1))},{default:d(()=>[l(p,{content:e.policyText},null,8,["content"])]),_:1},8,["model-value","title"])}var De=g(Te,[["render",Ie],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Policy.vue"]]);const Se=b({name:"ApplicationConfirm",components:{ElDialog:T,ElDescriptions:me,ElDescriptionsItem:_e,ElDivider:ye,ElCheckbox:fe,ElButton:I,ApplicationPolicy:De},props:{service:{type:Object,required:!0},visible:{type:Boolean,required:!1,default:!1}},emits:["update:visible","apply"],data(){return{checked:!1,showPolicy:!1}},watch:{},methods:{onApply(){if(!this.checked){N.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),Me={class:"content"},Ve={class:"policy"},Be={class:"policy-title"};function Ue(e,n,t,s,a,y){const p=o("el-descriptions-item"),m=o("el-descriptions"),f=o("el-divider"),k=o("el-checkbox"),_=o("application-policy"),v=o("el-button"),w=o("el-dialog");return c(),$(w,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:n[3]||(n[3]=r=>e.$emit("update:visible",!1))},{default:d(()=>[u("div",Me,[l(m,{column:1},{default:d(()=>[l(p,{label:e.$t("application.field.name")},{default:d(()=>{var r;return[A(i((r=e.service)==null?void 0:r.title),1)]}),_:1},8,["label"]),l(p,{label:e.$t("application.field.freeAmount")},{default:d(()=>{var r,E;return[u("span",null,i((r=e.service)==null?void 0:r.free_amount)+" "+i(e.$t(`service.unit.${(E=e.service)==null?void 0:E.unit}`)),1)]}),_:1},8,["label"])]),_:1}),l(f,{class:"my-2"}),u("div",Ve,[l(k,{modelValue:e.checked,"onUpdate:modelValue":n[0]||(n[0]=r=>e.checked=r),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),u("span",Be,i(e.$t("application.message.readPolicy")),1),u("span",{class:"policy-title highlight",onClick:n[1]||(n[1]=r=>e.showPolicy=!0)}," \xA0"+i(e.$t("application.message.policy")),1),l(_,{modelValue:e.showPolicy,"onUpdate:modelValue":n[2]||(n[2]=r=>e.showPolicy=r),modelModifiers:{visible:!0}},null,8,["modelValue"])]),l(v,{round:"",type:"primary",onClick:e.onApply},{default:d(()=>[A(i(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var qe=g(Se,[["render",Ue],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const Le=b({name:"ApiPrice",components:{ElTable:ve,ElTableColumn:he,ElDialog:T,ElButton:I},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:n,rowIndex:t,columnIndex:s}){if(this.spans){for(const a of this.spans)if(t===a[0]&&s===a[1])return[a[2],a[3]]}return[1,1]}}});function je(e,n,t,s,a,y){const p=o("el-table-column"),m=o("el-table"),f=o("el-dialog"),k=o("el-button");return c(),h("div",null,[l(f,{modelValue:e.visible,"onUpdate:modelValue":n[0]||(n[0]=_=>e.visible=_),center:"",width:"80%"},{default:d(()=>[l(m,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:d(()=>[(c(!0),h(de,null,ue(e.columns,(_,v)=>(c(),$(p,{key:v,prop:_.key,label:_.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),l(k,{round:"",size:"small",onClick:n[1]||(n[1]=_=>e.visible=!0)},{default:d(()=>[A(i(e.$t("service.button.pricing")),1)]),_:1})])}var ze=g(Le,[["render",je],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const Fe=b({name:"ApplicationStatus",components:{ElButton:I,ApplicationConfirm:qe,ElSkeleton:$e,ElSkeletonItem:ge,ApiPrice:ze},props:{application:{type:Object,required:!0},initializing:{type:Boolean,default:!1},showPrice:{type:Boolean,default:!0},service:{type:Object,required:!0},needApply:{type:Boolean,default:!1}},emits:["apply","refresh","applied","update:application"],data(){return{confirming:this.needApply,applicationType:Y}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},mounted(){var e,n;this.application&&!((n=(e=this.application)==null?void 0:e.credentials)!=null&&n.find(t=>t.host===window.location.origin))&&(console.debug("create extra credential"),this.onCreateCredential(this.application))},methods:{onBuyMore(e){this.$router.push({name:ie,params:{id:e.id}})},onCreateCredential(e){Ae.create({application_id:e==null?void 0:e.id,host:window.location.origin}).then(()=>{setTimeout(()=>{this.$emit("refresh")},2e3),this.confirming=!1}).finally(()=>{this.$emit("applied")})},onApply(){var e;se.create({type:Y.API,service_id:(e=this.service)==null?void 0:e.id}).then(({data:n})=>{N.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(n)}).catch(n=>{var t,s;((s=(t=n==null?void 0:n.response)==null?void 0:t.data)==null?void 0:s.code)===be&&N.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),He={class:"element"},Ge={key:0},Ke={key:1,class:"status"},Qe={class:"info"},We={class:"actions"},Ye={key:2,class:"text-center info"},Je={class:"mr-2"},Xe={class:"ml-1"};function Ze(e,n,t,s,a,y){var v,w,r,E,D,S,M,V,B,U,q,L,j,z,F,H;const p=o("el-skeleton-item"),m=o("el-skeleton"),f=o("el-button"),k=o("api-price"),_=o("application-confirm");return c(),h("div",He,[e.initializing&&e.application===void 0?(c(),h("div",Ge,[l(m,{rows:1,class:"text-center"},{template:d(()=>[l(p,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(c(),h("div",Ke,[u("span",Qe,i(e.$t("common.message.usedAmount"))+": "+i((w=(v=e.application)==null?void 0:v.used_amount)==null?void 0:w.toFixed(6))+" "+i(e.$t("service.unit."+((E=(r=e.application)==null?void 0:r.service)==null?void 0:E.unit)+"s"))+" "+i(e.$t("common.message.remainingAmount"))+": "+i((S=(D=e.application)==null?void 0:D.remaining_amount)==null?void 0:S.toFixed(6))+" "+i(e.$t("service.unit."+((V=(M=e.application)==null?void 0:M.service)==null?void 0:V.unit)+"s")),1),u("span",We,[l(f,{round:"",size:"small",type:"primary",class:"mr-1",onClick:n[0]||(n[0]=R=>e.onBuyMore(e.application))},{default:d(()=>[A(i(e.$t("common.button.buyMore")),1)]),_:1}),e.showPrice&&((L=(q=(U=(B=e.application)==null?void 0:B.service)==null?void 0:U.apis)==null?void 0:q[0])==null?void 0:L.price)?(c(),$(k,{key:0,class:"price inline-block",price:(H=(F=(z=(j=e.application)==null?void 0:j.service)==null?void 0:z.apis)==null?void 0:F[0])==null?void 0:H.price},null,8,["price"])):C("v-if",!0)])])):C("v-if",!0),e.needApply&&e.service?(c(),h("div",Ye,[u("span",Je,i(e.$t("chat.message.notApplied")),1),u("span",null,[l(f,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:n[1]||(n[1]=R=>e.confirming=!0)},{default:d(()=>[A(i(e.$t("common.button.apply")),1)]),_:1})]),u("span",Xe,i(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(c(),$(_,{key:0,modelValue:e.confirming,"onUpdate:modelValue":n[2]||(n[2]=R=>e.confirming=R),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):C("v-if",!0)])):C("v-if",!0)])}var vn=g(Fe,[["render",Ze],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{vn as A,dn as E,Pe as M,fn as a,_n as b,yn as c,mn as d,pn as e,rn as f,cn as g,un as h,be as i};
@@ -1 +1 @@
1
- var a=Object.defineProperty;var n=(i,t,s)=>t in i?a(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(n(i,typeof t!="symbol"?t+"":t,s),s);import{v as r}from"./index.84e5def0.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 p=new l;class u{constructor(){e(this,"key","distribution-levels")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const d=new u;export{d as a,b,p as d};
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{t as r}from"./index.5834f7b9.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 p=new l;class u{constructor(){e(this,"key","distribution-levels")}async getAll(t){return await r.get(`/${this.key}/`,{params:t})}}const d=new u;export{d as a,b,p as d};