@acedatacloud/nexior 3.8.1 → 3.9.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.
- package/dist/assets/{Auth.817042f1.js → Auth.b7a99f2b.js} +1 -1
- package/dist/assets/{Callback.dac9499e.js → Callback.61010670.js} +1 -1
- package/dist/assets/{Console.5c756b88.css → Console.c5a5dbc8.css} +1 -1
- package/dist/assets/{Console.e53c08f2.js → Console.daf310f1.js} +1 -1
- package/dist/assets/Conversation.8c12b339.js +1 -0
- package/dist/assets/{CopyToClipboard.9a7d0eb5.js → CopyToClipboard.2bd47880.js} +1 -1
- package/dist/assets/{Detail.c6180471.css → Detail.98c6a517.css} +1 -1
- package/dist/assets/{Detail.3ee22b15.js → Detail.c7d74c2c.js} +1 -1
- package/dist/assets/{EditArray.dfdf77cd.js → EditArray.84dcde4d.js} +1 -1
- package/dist/assets/{Extra.8ae37a97.css → Extra.bbb29fc7.css} +1 -1
- package/dist/assets/Extra.dd94961e.js +1 -0
- package/dist/assets/{FilePreview.1f9b8ddf.js → FilePreview.dc669922.js} +1 -1
- package/dist/assets/{History.9fc30c32.css → History.13351b79.css} +1 -1
- package/dist/assets/{History.d14dd7a7.js → History.7f4a3661.js} +1 -1
- package/dist/assets/{ImagePreview.3fb18fec.js → ImagePreview.61c59dc0.js} +1 -1
- package/dist/assets/{ImageWrapper.a98f8106.js → ImageWrapper.cdf360d6.js} +1 -1
- package/dist/assets/{Index.ffd151d2.js → Index.035b53bc.js} +1 -1
- package/dist/assets/{Index.223eceed.js → Index.16e1d77b.js} +1 -1
- package/dist/assets/{Index.3357f539.js → Index.2bc25c40.js} +2 -2
- package/dist/assets/{Index.dc37f422.js → Index.379b7da4.js} +1 -1
- package/dist/assets/{Index.c8c622e4.js → Index.43806c70.js} +1 -1
- package/dist/assets/{Index.2621752d.js → Index.4d2caf51.js} +1 -1
- package/dist/assets/{Index.edc58803.js → Index.50d007fc.js} +1 -1
- package/dist/assets/{Index.a8112020.css → Index.5e60c1f9.css} +1 -1
- package/dist/assets/{Index.c807458d.js → Index.c207bae0.js} +1 -1
- package/dist/assets/{Index.11f603c1.js → Index.c56e43a2.js} +1 -1
- package/dist/assets/Index.ce4b30a9.js +1 -0
- package/dist/assets/{Index.f89ce050.js → Index.d3d0b0b9.js} +1 -1
- package/dist/assets/{Index.ec2cfab9.js → Index.dad003eb.js} +1 -1
- package/dist/assets/{InfoIcon.2141f56b.js → InfoIcon.d7af8081.js} +1 -1
- package/dist/assets/{Invitees.0568a6f7.css → Invitees.3226fb22.css} +1 -1
- package/dist/assets/{Invitees.56d5594f.js → Invitees.44fdc7c0.js} +1 -1
- package/dist/assets/List.2ba9f680.js +1 -0
- package/dist/assets/List.4c319fb5.js +1 -0
- package/dist/assets/{List.f8805050.css → List.7a35b0d1.css} +1 -1
- package/dist/assets/{List.6e2820e9.css → List.9bf4db0e.css} +1 -1
- package/dist/assets/{List.6fb0becb.js → List.b3c9ba59.js} +1 -1
- package/dist/assets/{List.b9ed2f01.css → List.d51988d3.css} +1 -1
- package/dist/assets/{Login.a4150fc6.js → Login.cb5bec07.js} +1 -1
- package/dist/assets/Main.03bf3025.css +1 -0
- package/dist/assets/Main.a7e550c3.js +1 -0
- package/dist/assets/{Navigator.421fc502.js → Navigator.0a582246.js} +1 -1
- package/dist/assets/{NoTasks.60547158.js → NoTasks.a8c6fc1d.js} +1 -1
- package/dist/assets/{Pagination.2c1efc73.js → Pagination.1d64e8f6.js} +1 -1
- package/dist/assets/Status.43b4c3d7.js +1 -0
- package/dist/assets/Status.4e21b43a.css +1 -0
- package/dist/assets/{Subscribe.0bc25580.js → Subscribe.019d1202.js} +1 -1
- package/dist/assets/{Subscribe.7bc86667.css → Subscribe.e024d864.css} +1 -1
- package/dist/assets/{VideoPlayer.64f0dce1.js → VideoPlayer.bcff1065.js} +1 -1
- package/dist/assets/application.1c376fb1.js +1 -0
- package/dist/assets/common.a2831719.js +1 -0
- package/dist/assets/{distribution.1bd2a738.js → distribution.7e66d80f.js} +1 -1
- package/dist/assets/index.f5a81d59.js +2 -0
- package/dist/assets/luma.0b01cbf9.js +1 -0
- package/dist/assets/luma.1a9adde0.js +1 -0
- package/dist/assets/luma.1d3abb9d.js +1 -0
- package/dist/assets/luma.2751dee2.js +1 -0
- package/dist/assets/luma.2b9cbd4f.js +1 -0
- package/dist/assets/luma.4a07224e.js +1 -0
- package/dist/assets/luma.4f3580b7.js +1 -0
- package/dist/assets/luma.8c5e98c5.js +1 -0
- package/dist/assets/luma.8d6947cc.js +1 -0
- package/dist/assets/luma.9426ea53.js +1 -0
- package/dist/assets/luma.9e7986b1.js +1 -0
- package/dist/assets/luma.a2996d44.js +1 -0
- package/dist/assets/luma.be98df9a.js +1 -0
- package/dist/assets/luma.cffe7cb5.js +1 -0
- package/dist/assets/luma.ea6a9bf6.js +1 -0
- package/dist/assets/luma.eee80c1d.js +1 -0
- package/dist/assets/luma.fc0c5cbb.js +1 -0
- package/dist/assets/{order.6a6aeec2.js → order.8669fbf9.js} +1 -1
- package/dist/assets/{price.967f8780.js → price.e9aa5d45.js} +1 -1
- package/dist/assets/{vendor-@vue.77dbb81d.js → vendor-@vue.ddcf0365.js} +1 -1
- package/dist/assets/{vendor-element-plus.c621637c.js → vendor-element-plus.e3d8a038.js} +2 -2
- package/dist/assets/{vendor-fortawesome.69508e20.js → vendor-fortawesome.2b4acb38.js} +1 -1
- package/dist/assets/{vendor-markdown.80bdb044.js → vendor-markdown.0185da35.js} +1 -1
- package/dist/assets/{vendor-others.497786c5.js → vendor-others.c752dc81.js} +1 -1
- package/dist/assets/{vendor-qrcode.44a9e66b.js → vendor-qrcode.b1bdae55.js} +1 -1
- package/dist/index.html +7 -7
- package/package.json +1 -1
- package/dist/assets/Conversation.19c570dc.js +0 -1
- package/dist/assets/Extra.d2296085.js +0 -1
- package/dist/assets/Index.a8c855d6.js +0 -1
- package/dist/assets/List.ae695803.js +0 -1
- package/dist/assets/List.bc6a1a80.js +0 -1
- package/dist/assets/Main.1968e108.css +0 -1
- package/dist/assets/Main.baa43c5a.js +0 -1
- package/dist/assets/Status.4688cb27.css +0 -1
- package/dist/assets/Status.6c1095c5.js +0 -1
- package/dist/assets/application.018a63de.js +0 -1
- package/dist/assets/common.3fa9e2ae.js +0 -1
- package/dist/assets/index.57238893.js +0 -2
- package/dist/assets/luma.0a2d1bc5.js +0 -1
- package/dist/assets/luma.0e37bf0d.js +0 -1
- package/dist/assets/luma.18e6d08f.js +0 -1
- package/dist/assets/luma.31f6450b.js +0 -1
- package/dist/assets/luma.3d28b187.js +0 -1
- package/dist/assets/luma.4a08cf42.js +0 -1
- package/dist/assets/luma.52656c21.js +0 -1
- package/dist/assets/luma.68816b5a.js +0 -1
- package/dist/assets/luma.90f454c9.js +0 -1
- package/dist/assets/luma.992755c1.js +0 -1
- package/dist/assets/luma.a2c4798b.js +0 -1
- package/dist/assets/luma.baf56472.js +0 -1
- package/dist/assets/luma.ce424894.js +0 -1
- package/dist/assets/luma.d078b9c2.js +0 -1
- package/dist/assets/luma.e617a083.js +0 -1
- package/dist/assets/luma.e7b2fcf0.js +0 -1
- package/dist/assets/luma.eb9a8302.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./vendor-others.
|
|
1
|
+
import"./vendor-others.c752dc81.js";import{H as Ka,m as O,s as gn,ah as Re}from"./vendor-@vue.ddcf0365.js";function ue(a,e){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),n.push.apply(n,t)}return n}function u(a){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ue(Object(n),!0).forEach(function(t){C(a,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function za(a){return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},za(a)}function hn(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function me(a,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function yn(a,e,n){return e&&me(a.prototype,e),n&&me(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}function C(a,e,n){return e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n,a}function Za(a,e){return kn(a)||zn(a,e)||Fe(a,e)||Mn()}function fa(a){return xn(a)||wn(a)||Fe(a)||Cn()}function xn(a){if(Array.isArray(a))return Ta(a)}function kn(a){if(Array.isArray(a))return a}function wn(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function zn(a,e){var n=a==null?null:typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var t=[],r=!0,i=!1,o,s;try{for(n=n.call(a);!(r=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw s}}return t}}function Fe(a,e){if(!!a){if(typeof a=="string")return Ta(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ta(a,e)}}function Ta(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=a[n];return t}function Cn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve=function(){},Qa={},De={},je=null,$e={mark:ve,measure:ve};try{typeof window!="undefined"&&(Qa=window),typeof document!="undefined"&&(De=document),typeof MutationObserver!="undefined"&&(je=MutationObserver),typeof performance!="undefined"&&($e=performance)}catch{}var Hn=Qa.navigator||{},de=Hn.userAgent,pe=de===void 0?"":de,$=Qa,x=De,be=je,ma=$e;$.document;var F=!!x.documentElement&&!!x.head&&typeof x.addEventListener=="function"&&typeof x.createElement=="function",Ye=~pe.indexOf("MSIE")||~pe.indexOf("Trident/"),va,da,pa,ba,ga,_="___FONT_AWESOME___",Ra=16,Ue="fa",Be="svg-inline--fa",G="data-fa-i2svg",Fa="data-fa-pseudo-element",An="data-fa-pseudo-element-pending",Ja="data-prefix",ae="data-icon",ge="fontawesome-i2svg",Ln="async",Sn=["HTML","HEAD","STYLE","SCRIPT"],We=function(){try{return!1}catch{return!1}}(),y="classic",k="sharp",ee=[y,k];function la(a){return new Proxy(a,{get:function(n,t){return t in n?n[t]:n[y]}})}var ra=la((va={},C(va,y,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),C(va,k,{fa:"solid",fass:"solid","fa-solid":"solid"}),va)),ia=la((da={},C(da,y,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),C(da,k,{solid:"fass"}),da)),oa=la((pa={},C(pa,y,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),C(pa,k,{fass:"fa-solid"}),pa)),Nn=la((ba={},C(ba,y,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),C(ba,k,{"fa-solid":"fass"}),ba)),On=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Ge="fa-layers-text",Pn=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,En=la((ga={},C(ga,y,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),C(ga,k,{900:"fass"}),ga)),Xe=[1,2,3,4,5,6,7,8,9,10],Vn=Xe.concat([11,12,13,14,15,16,17,18,19,20]),In=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],B={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},sa=new Set;Object.keys(ia[y]).map(sa.add.bind(sa));Object.keys(ia[k]).map(sa.add.bind(sa));var _n=[].concat(ee,fa(sa),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",B.GROUP,B.SWAP_OPACITY,B.PRIMARY,B.SECONDARY]).concat(Xe.map(function(a){return"".concat(a,"x")})).concat(Vn.map(function(a){return"w-".concat(a)})),ea=$.FontAwesomeConfig||{};function Tn(a){var e=x.querySelector("script["+a+"]");if(e)return e.getAttribute(a)}function Rn(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(x&&typeof x.querySelector=="function"){var Fn=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Fn.forEach(function(a){var e=Za(a,2),n=e[0],t=e[1],r=Rn(Tn(n));r!=null&&(ea[t]=r)})}var qe={styleDefault:"solid",familyDefault:"classic",cssPrefix:Ue,replacementClass:Be,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ea.familyPrefix&&(ea.cssPrefix=ea.familyPrefix);var Q=u(u({},qe),ea);Q.autoReplaceSvg||(Q.observeMutations=!1);var m={};Object.keys(qe).forEach(function(a){Object.defineProperty(m,a,{enumerable:!0,set:function(n){Q[a]=n,na.forEach(function(t){return t(m)})},get:function(){return Q[a]}})});Object.defineProperty(m,"familyPrefix",{enumerable:!0,set:function(e){Q.cssPrefix=e,na.forEach(function(n){return n(m)})},get:function(){return Q.cssPrefix}});$.FontAwesomeConfig=m;var na=[];function Dn(a){return na.push(a),function(){na.splice(na.indexOf(a),1)}}var j=Ra,I={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function jn(a){if(!(!a||!F)){var e=x.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=a;for(var n=x.head.childNodes,t=null,r=n.length-1;r>-1;r--){var i=n[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(t=i)}return x.head.insertBefore(e,t),a}}var $n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ca(){for(var a=12,e="";a-- >0;)e+=$n[Math.random()*62|0];return e}function J(a){for(var e=[],n=(a||[]).length>>>0;n--;)e[n]=a[n];return e}function ne(a){return a.classList?J(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Ke(a){return"".concat(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Yn(a){return Object.keys(a||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(Ke(a[n]),'" ')},"").trim()}function La(a){return Object.keys(a||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(a[n].trim(),";")},"")}function te(a){return a.size!==I.size||a.x!==I.x||a.y!==I.y||a.rotate!==I.rotate||a.flipX||a.flipY}function Un(a){var e=a.transform,n=a.containerWidth,t=a.iconWidth,r={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(e.x*32,", ").concat(e.y*32,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),c={transform:"".concat(i," ").concat(o," ").concat(s)},l={transform:"translate(".concat(t/2*-1," -256)")};return{outer:r,inner:c,path:l}}function Bn(a){var e=a.transform,n=a.width,t=n===void 0?Ra:n,r=a.height,i=r===void 0?Ra:r,o=a.startCentered,s=o===void 0?!1:o,c="";return s&&Ye?c+="translate(".concat(e.x/j-t/2,"em, ").concat(e.y/j-i/2,"em) "):s?c+="translate(calc(-50% + ".concat(e.x/j,"em), calc(-50% + ").concat(e.y/j,"em)) "):c+="translate(".concat(e.x/j,"em, ").concat(e.y/j,"em) "),c+="scale(".concat(e.size/j*(e.flipX?-1:1),", ").concat(e.size/j*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var Wn=`:root, :host {
|
|
4
4
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as ve,W as Pe,X as Re,Z as ze,_ as ke,$ as Oe,a0 as de,a1 as xe,a2 as De,a3 as me,a4 as te}from"./vendor-others.
|
|
1
|
+
import{V as ve,W as Pe,X as Re,Z as ze,_ as ke,$ as Oe,a0 as de,a1 as xe,a2 as De,a3 as me,a4 as te}from"./vendor-others.c752dc81.js";function Fe(e){return Object.prototype.toString.call(e)}function ee(e){return Fe(e)==="[object String]"}const Le=Object.prototype.hasOwnProperty;function $e(e,n){return Le.call(e,n)}function W(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(t){e[t]=r[t]})}}),e}function ge(e,n,r){return[].concat(e.slice(0,n),r,e.slice(n+1))}function ne(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function H(e){if(e>65535){e-=65536;const n=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(n,r)}return String.fromCharCode(e)}const _e=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Be=/&([a-z#][a-z0-9]{1,31});/gi,je=new RegExp(_e.source+"|"+Be.source,"gi"),qe=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ne(e,n){if(n.charCodeAt(0)===35&&qe.test(n)){const t=n[1].toLowerCase()==="x"?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return ne(t)?H(t):e}const r=ke(e);return r!==e?r:e}function Ze(e){return e.indexOf("\\")<0?e:e.replace(_e,"$1")}function D(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(je,function(n,r,t){return r||Ne(n,t)})}const Ue=/[&<>"]/,He=/[&<>"]/g,We={"&":"&","<":"<",">":">",'"':"""};function Ge(e){return We[e]}function R(e){return Ue.test(e)?e.replace(He,Ge):e}const Qe=/[.?*+^$[\]\\(){}|-]/g;function Ve(e){return e.replace(Qe,"\\$&")}function A(e){switch(e){case 9:case 32:return!0}return!1}function $(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function B(e){return ve.test(e)||Pe.test(e)}function j(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}const Je={mdurl:Re,ucmicro:ze};var Xe=Object.freeze(Object.defineProperty({__proto__:null,lib:Je,assign:W,isString:ee,has:$e,unescapeMd:Ze,unescapeAll:D,isValidEntityCode:ne,fromCodePoint:H,escapeHtml:R,arrayReplaceAt:ge,isSpace:A,isWhiteSpace:$,isMdAsciiPunct:j,isPunctChar:B,escapeRE:Ve,normalizeReference:G},Symbol.toStringTag,{value:"Module"}));function Ye(e,n,r){let t,o,i,l;const c=e.posMax,s=e.pos;for(e.pos=n+1,t=1;e.pos<c;){if(i=e.src.charCodeAt(e.pos),i===93&&(t--,t===0)){o=!0;break}if(l=e.pos,e.md.inline.skipToken(e),i===91){if(l===e.pos-1)t++;else if(r)return e.pos=s,-1}}let f=-1;return o&&(f=e.pos),e.pos=s,f}function Ke(e,n,r){let t,o=n;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<r;){if(t=e.charCodeAt(o),t===10||t===60)return i;if(t===62)return i.pos=o+1,i.str=D(e.slice(n+1,o)),i.ok=!0,i;if(t===92&&o+1<r){o+=2;continue}o++}return i}let l=0;for(;o<r&&(t=e.charCodeAt(o),!(t===32||t<32||t===127));){if(t===92&&o+1<r){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(t===40&&(l++,l>32))return i;if(t===41){if(l===0)break;l--}o++}return n===o||l!==0||(i.str=D(e.slice(n,o)),i.pos=o,i.ok=!0),i}function en(e,n,r,t){let o,i=n;const l={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(t)l.str=t.str,l.marker=t.marker;else{if(i>=r)return l;let c=e.charCodeAt(i);if(c!==34&&c!==39&&c!==40)return l;n++,i++,c===40&&(c=41),l.marker=c}for(;i<r;){if(o=e.charCodeAt(i),o===l.marker)return l.pos=i+1,l.str+=D(e.slice(n,i)),l.ok=!0,l;if(o===40&&l.marker===41)return l;o===92&&i+1<r&&i++,i++}return l.can_continue=!0,l.str+=D(e.slice(n,i)),l}var nn=Object.freeze(Object.defineProperty({__proto__:null,parseLinkLabel:Ye,parseLinkDestination:Ke,parseLinkTitle:en},Symbol.toStringTag,{value:"Module"}));const I={};I.code_inline=function(e,n,r,t,o){const i=e[n];return"<code"+o.renderAttrs(i)+">"+R(i.content)+"</code>"};I.code_block=function(e,n,r,t,o){const i=e[n];return"<pre"+o.renderAttrs(i)+"><code>"+R(e[n].content)+`</code></pre>
|
|
2
2
|
`};I.fence=function(e,n,r,t,o){const i=e[n],l=i.info?D(i.info).trim():"";let c="",s="";if(l){const h=l.split(/(\s+)/g);c=h[0],s=h.slice(2).join("")}let f;if(r.highlight?f=r.highlight(i.content,c,s)||R(i.content):f=R(i.content),f.indexOf("<pre")===0)return f+`
|
|
3
3
|
`;if(l){const h=i.attrIndex("class"),p=i.attrs?i.attrs.slice():[];h<0?p.push(["class",r.langPrefix+c]):(p[h]=p[h].slice(),p[h][1]+=" "+r.langPrefix+c);const k={attrs:p};return`<pre><code${o.renderAttrs(k)}>${f}</code></pre>
|
|
4
4
|
`}return`<pre><code${o.renderAttrs(i)}>${f}</code></pre>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aH as k4,ah as vr,U as If,q as yr,t as w4,z as x4,r as mn,m as zt,s as xn,n as Hr,A as j4,aI as xl,V as ft,a5 as am,a2 as jl,G as S4,u as Co,_ as A4,H as Pf,p as Js,v as _4}from"./vendor-@vue.
|
|
1
|
+
import{aH as k4,ah as vr,U as If,q as yr,t as w4,z as x4,r as mn,m as zt,s as xn,n as Hr,A as j4,aI as xl,V as ft,a5 as am,a2 as jl,G as S4,u as Co,_ as A4,H as Pf,p as Js,v as _4}from"./vendor-@vue.ddcf0365.js";import{g as Lf,c as dn}from"./vendor-element-plus.e3d8a038.js";import{i as rm}from"./vendor-markdown.0185da35.js";/**
|
|
2
2
|
* vue v3.5.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a5 as Mt,a6 as Pt,a7 as Rt}from"./vendor-others.
|
|
1
|
+
import{a5 as Mt,a6 as Pt,a7 as Rt}from"./vendor-others.c752dc81.js";import{H as Lt,r as Ut,s as Dt,ah as Ft}from"./vendor-@vue.ddcf0365.js";var K={},kt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},dt={},I={};let it;const zt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];I.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};I.getSymbolTotalCodewords=function(e){return zt[e]};I.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};I.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');it=e};I.isKanjiModeEnabled=function(){return typeof it!="undefined"};I.toSJIS=function(e){return it(e)};var $={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+i)}}t.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})($);function ht(){this.buffer=[],this.length=0}ht.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let i=0;i<e;i++)this.putBit((t>>>e-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Vt=ht;function J(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}J.prototype.set=function(t,e,i,r){const n=t*this.size+e;this.data[n]=i,r&&(this.reservedBit[n]=!0)};J.prototype.get=function(t,e){return this.data[t*this.size+e]};J.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i};J.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Ht=J,mt={};(function(t){const e=I.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*n-2))*2,a=[o-7];for(let u=1;u<n-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},t.getPositions=function(r){const n=[],o=t.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||n.push([o[a],o[u]]);return n}})(mt);var wt={};const Kt=I.getSymbolSize,lt=7;wt.getPositions=function(e){const i=Kt(e);return[[0,0],[i-lt,0],[0,i-lt]]};var yt={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const o=n.size;let s=0,a=0,u=0,c=null,l=null;for(let p=0;p<o;p++){a=u=0,c=l=null;for(let m=0;m<o;m++){let g=n.get(p,m);g===c?a++:(a>=5&&(s+=e.N1+(a-5)),c=g,a=1),g=n.get(m,p),g===l?u++:(u>=5&&(s+=e.N1+(u-5)),l=g,u=1)}a>=5&&(s+=e.N1+(a-5)),u>=5&&(s+=e.N1+(u-5))}return s},t.getPenaltyN2=function(n){const o=n.size;let s=0;for(let a=0;a<o-1;a++)for(let u=0;u<o-1;u++){const c=n.get(a,u)+n.get(a,u+1)+n.get(a+1,u)+n.get(a+1,u+1);(c===4||c===0)&&s++}return s*e.N2},t.getPenaltyN3=function(n){const o=n.size;let s=0,a=0,u=0;for(let c=0;c<o;c++){a=u=0;for(let l=0;l<o;l++)a=a<<1&2047|n.get(c,l),l>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|n.get(l,c),l>=10&&(u===1488||u===93)&&s++}return s*e.N3},t.getPenaltyN4=function(n){let o=0;const s=n.data.length;for(let u=0;u<s;u++)o+=n.data[u];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function i(r,n,o){switch(r){case t.Patterns.PATTERN000:return(n+o)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(n+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return n*o%2+n*o%3===0;case t.Patterns.PATTERN110:return(n*o%2+n*o%3)%2===0;case t.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,o){const s=o.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)o.isReserved(u,a)||o.xor(u,a,i(n,u,a))},t.getBestMask=function(n,o){const s=Object.keys(t.Patterns).length;let a=0,u=1/0;for(let c=0;c<s;c++){o(c),t.applyMask(c,n);const l=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(c,n),l<u&&(u=l,a=c)}return a}})(yt);var j={};const R=$,O=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],v=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];j.getBlocksCount=function(e,i){switch(i){case R.L:return O[(e-1)*4+0];case R.M:return O[(e-1)*4+1];case R.Q:return O[(e-1)*4+2];case R.H:return O[(e-1)*4+3];default:return}};j.getTotalCodewordsCount=function(e,i){switch(i){case R.L:return v[(e-1)*4+0];case R.M:return v[(e-1)*4+1];case R.Q:return v[(e-1)*4+2];case R.H:return v[(e-1)*4+3];default:return}};var Et={},G={};const V=new Uint8Array(512),_=new Uint8Array(256);(function(){let e=1;for(let i=0;i<255;i++)V[i]=e,_[e]=i,e<<=1,e&256&&(e^=285);for(let i=255;i<512;i++)V[i]=V[i-255]})();G.log=function(e){if(e<1)throw new Error("log("+e+")");return _[e]};G.exp=function(e){return V[e]};G.mul=function(e,i){return e===0||i===0?0:V[_[e]+_[i]]};(function(t){const e=G;t.mul=function(r,n){const o=new Uint8Array(r.length+n.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<n.length;a++)o[s+a]^=e.mul(r[s],n[a]);return o},t.mod=function(r,n){let o=new Uint8Array(r);for(;o.length-n.length>=0;){const s=o[0];for(let u=0;u<n.length;u++)o[u]^=e.mul(n[u],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let o=0;o<r;o++)n=t.mul(n,new Uint8Array([1,e.exp(o)]));return n}})(Et);const Ct=Et;function st(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}st.prototype.initialize=function(e){this.degree=e,this.genPoly=Ct.generateECPolynomial(this.degree)};st.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(e.length+this.degree);i.set(e);const r=Ct.mod(i,this.genPoly),n=this.degree-r.length;if(n>0){const o=new Uint8Array(this.degree);return o.set(r,n),o}return r};var Jt=st,Bt={},L={},ut={};ut.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var b={};const pt="[0-9]+",Ot="[A-Z $%*+\\-./:]+";let H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");const vt="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
|
|
2
2
|
]))+`;b.KANJI=new RegExp(H,"g");b.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");b.BYTE=new RegExp(vt,"g");b.NUMERIC=new RegExp(pt,"g");b.ALPHANUMERIC=new RegExp(Ot,"g");const _t=new RegExp("^"+H+"$"),Yt=new RegExp("^"+pt+"$"),$t=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");b.testKanji=function(e){return _t.test(e)};b.testNumeric=function(e){return Yt.test(e)};b.testAlphanumeric=function(e){return $t.test(e)};(function(t){const e=ut,i=b;t.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return i.testNumeric(o)?t.NUMERIC:i.testAlphanumeric(o)?t.ALPHANUMERIC:i.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+n)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}})(L);(function(t){const e=I,i=j,r=$,n=L,o=ut,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=e.getBCHDigit(s);function u(m,g,y){for(let E=1;E<=40;E++)if(g<=t.getCapacity(E,y,m))return E}function c(m,g){return n.getCharCountIndicator(m,g)+4}function l(m,g){let y=0;return m.forEach(function(E){y+=c(E.mode,g)+E.getBitsLength()}),y}function p(m,g){for(let y=1;y<=40;y++)if(l(m,y)<=t.getCapacity(y,g,n.MIXED))return y}t.from=function(g,y){return o.isValid(g)?parseInt(g,10):y},t.getCapacity=function(g,y,E){if(!o.isValid(g))throw new Error("Invalid QR Code version");typeof E=="undefined"&&(E=n.BYTE);const N=e.getSymbolTotalCodewords(g),h=i.getTotalCodewordsCount(g,y),w=(N-h)*8;if(E===n.MIXED)return w;const d=w-c(E,g);switch(E){case n.NUMERIC:return Math.floor(d/10*3);case n.ALPHANUMERIC:return Math.floor(d/11*2);case n.KANJI:return Math.floor(d/13);case n.BYTE:default:return Math.floor(d/8)}},t.getBestVersionForData=function(g,y){let E;const N=r.from(y,r.M);if(Array.isArray(g)){if(g.length>1)return p(g,N);if(g.length===0)return 1;E=g[0]}else E=g;return u(E.mode,E.getLength(),N)},t.getEncodedBits=function(g){if(!o.isValid(g)||g<7)throw new Error("Invalid QR Code version");let y=g<<12;for(;e.getBCHDigit(y)-a>=0;)y^=s<<e.getBCHDigit(y)-a;return g<<12|y}})(Bt);var At={};const et=I,Nt=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,jt=1<<14|1<<12|1<<10|1<<4|1<<1,ft=et.getBCHDigit(Nt);At.getEncodedBits=function(e,i){const r=e.bit<<3|i;let n=r<<10;for(;et.getBCHDigit(n)-ft>=0;)n^=Nt<<et.getBCHDigit(n)-ft;return(r<<10|n)^jt};var It={};const Gt=L;function U(t){this.mode=Gt.NUMERIC,this.data=t.toString()}U.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(e){let i,r,n;for(i=0;i+3<=this.data.length;i+=3)r=this.data.substr(i,3),n=parseInt(r,10),e.put(n,10);const o=this.data.length-i;o>0&&(r=this.data.substr(i),n=parseInt(r,10),e.put(n,o*3+1))};var Qt=U;const qt=L,W=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D(t){this.mode=qt.ALPHANUMERIC,this.data=t}D.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(e){let i;for(i=0;i+2<=this.data.length;i+=2){let r=W.indexOf(this.data[i])*45;r+=W.indexOf(this.data[i+1]),e.put(r,11)}this.data.length%2&&e.put(W.indexOf(this.data[i]),6)};var Wt=D;const Xt=Mt,Zt=L;function F(t){this.mode=Zt.BYTE,typeof t=="string"&&(t=Xt(t)),this.data=new Uint8Array(t)}F.getBitsLength=function(e){return e*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)};var xt=F;const te=L,ee=I;function k(t){this.mode=te.KANJI,this.data=t}k.getBitsLength=function(e){return e*13};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let i=ee.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
3
3
|
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),t.put(i,13)}};var ne=k;(function(t){const e=L,i=Qt,r=Wt,n=xt,o=ne,s=b,a=I,u=Pt.exports;function c(h){return unescape(encodeURIComponent(h)).length}function l(h,w,d){const f=[];let C;for(;(C=h.exec(d))!==null;)f.push({data:C[0],index:C.index,mode:w,length:C[0].length});return f}function p(h){const w=l(s.NUMERIC,e.NUMERIC,h),d=l(s.ALPHANUMERIC,e.ALPHANUMERIC,h);let f,C;return a.isKanjiModeEnabled()?(f=l(s.BYTE,e.BYTE,h),C=l(s.KANJI,e.KANJI,h)):(f=l(s.BYTE_KANJI,e.BYTE,h),C=[]),w.concat(d,f,C).sort(function(A,S){return A.index-S.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function m(h,w){switch(w){case e.NUMERIC:return i.getBitsLength(h);case e.ALPHANUMERIC:return r.getBitsLength(h);case e.KANJI:return o.getBitsLength(h);case e.BYTE:return n.getBitsLength(h)}}function g(h){return h.reduce(function(w,d){const f=w.length-1>=0?w[w.length-1]:null;return f&&f.mode===d.mode?(w[w.length-1].data+=d.data,w):(w.push(d),w)},[])}function y(h){const w=[];for(let d=0;d<h.length;d++){const f=h[d];switch(f.mode){case e.NUMERIC:w.push([f,{data:f.data,mode:e.ALPHANUMERIC,length:f.length},{data:f.data,mode:e.BYTE,length:f.length}]);break;case e.ALPHANUMERIC:w.push([f,{data:f.data,mode:e.BYTE,length:f.length}]);break;case e.KANJI:w.push([f,{data:f.data,mode:e.BYTE,length:c(f.data)}]);break;case e.BYTE:w.push([{data:f.data,mode:e.BYTE,length:c(f.data)}])}}return w}function E(h,w){const d={},f={start:{}};let C=["start"];for(let B=0;B<h.length;B++){const A=h[B],S=[];for(let P=0;P<A.length;P++){const T=A[P],z=""+B+P;S.push(z),d[z]={node:T,lastCount:0},f[z]={};for(let q=0;q<C.length;q++){const M=C[q];d[M]&&d[M].node.mode===T.mode?(f[M][z]=m(d[M].lastCount+T.length,T.mode)-m(d[M].lastCount,T.mode),d[M].lastCount+=T.length):(d[M]&&(d[M].lastCount=T.length),f[M][z]=m(T.length,T.mode)+4+e.getCharCountIndicator(T.mode,w))}}C=S}for(let B=0;B<C.length;B++)f[C[B]].end=0;return{map:f,table:d}}function N(h,w){let d;const f=e.getBestModeForData(h);if(d=e.from(w,f),d!==e.BYTE&&d.bit<f.bit)throw new Error('"'+h+'" cannot be encoded with mode '+e.toString(d)+`.
|
|
4
4
|
Suggested mode is: `+e.toString(f));switch(d===e.KANJI&&!a.isKanjiModeEnabled()&&(d=e.BYTE),d){case e.NUMERIC:return new i(h);case e.ALPHANUMERIC:return new r(h);case e.KANJI:return new o(h);case e.BYTE:return new n(h)}}t.fromArray=function(w){return w.reduce(function(d,f){return typeof f=="string"?d.push(N(f,null)):f.data&&d.push(N(f.data,f.mode)),d},[])},t.fromString=function(w,d){const f=p(w,a.isKanjiModeEnabled()),C=y(f),B=E(C,d),A=u.find_path(B.map,"start","end"),S=[];for(let P=1;P<A.length-1;P++)S.push(B.table[A[P]].node);return t.fromArray(g(S))},t.rawSplit=function(w){return t.fromArray(p(w,a.isKanjiModeEnabled()))}})(It);const Q=I,X=$,re=Vt,oe=Ht,ie=mt,se=wt,nt=yt,rt=j,ue=Jt,Y=Bt,ae=At,ce=L,Z=It;function le(t,e){const i=t.size,r=se.getPositions(e);for(let n=0;n<r.length;n++){const o=r[n][0],s=r[n][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||i<=o+a))for(let u=-1;u<=7;u++)s+u<=-1||i<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(o+a,s+u,!0,!0):t.set(o+a,s+u,!1,!0))}}function fe(t){const e=t.size;for(let i=8;i<e-8;i++){const r=i%2===0;t.set(i,6,r,!0),t.set(6,i,r,!0)}}function ge(t,e){const i=ie.getPositions(e);for(let r=0;r<i.length;r++){const n=i[r][0],o=i[r][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?t.set(n+s,o+a,!0,!0):t.set(n+s,o+a,!1,!0)}}function de(t,e){const i=t.size,r=Y.getEncodedBits(e);let n,o,s;for(let a=0;a<18;a++)n=Math.floor(a/3),o=a%3+i-8-3,s=(r>>a&1)===1,t.set(n,o,s,!0),t.set(o,n,s,!0)}function x(t,e,i){const r=t.size,n=ae.getEncodedBits(e,i);let o,s;for(o=0;o<15;o++)s=(n>>o&1)===1,o<6?t.set(o,8,s,!0):o<8?t.set(o+1,8,s,!0):t.set(r-15+o,8,s,!0),o<8?t.set(8,r-o-1,s,!0):o<9?t.set(8,15-o-1+1,s,!0):t.set(8,15-o-1,s,!0);t.set(r-8,8,1,!0)}function he(t,e){const i=t.size;let r=-1,n=i-1,o=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(n,a-u)){let c=!1;s<e.length&&(c=(e[s]>>>o&1)===1),t.set(n,a-u,c),o--,o===-1&&(s++,o=7)}if(n+=r,n<0||i<=n){n-=r,r=-r;break}}}function me(t,e,i){const r=new re;i.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),ce.getCharCountIndicator(u.mode,t)),u.write(r)});const n=Q.getSymbolTotalCodewords(t),o=rt.getTotalCodewordsCount(t,e),s=(n-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const a=(s-r.getLengthInBits())/8;for(let u=0;u<a;u++)r.put(u%2?17:236,8);return we(r,t,e)}function we(t,e,i){const r=Q.getSymbolTotalCodewords(e),n=rt.getTotalCodewordsCount(e,i),o=r-n,s=rt.getBlocksCount(e,i),a=r%s,u=s-a,c=Math.floor(r/s),l=Math.floor(o/s),p=l+1,m=c-l,g=new ue(m);let y=0;const E=new Array(s),N=new Array(s);let h=0;const w=new Uint8Array(t.buffer);for(let A=0;A<s;A++){const S=A<u?l:p;E[A]=w.slice(y,y+S),N[A]=g.encode(E[A]),y+=S,h=Math.max(h,S)}const d=new Uint8Array(r);let f=0,C,B;for(C=0;C<h;C++)for(B=0;B<s;B++)C<E[B].length&&(d[f++]=E[B][C]);for(C=0;C<m;C++)for(B=0;B<s;B++)d[f++]=N[B][C];return d}function ye(t,e,i,r){let n;if(Array.isArray(t))n=Z.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){const l=Z.rawSplit(t);c=Y.getBestVersionForData(l,i)}n=Z.fromString(t,c||40)}else throw new Error("Invalid data");const o=Y.getBestVersionForData(n,i);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(`
|
package/dist/index.html
CHANGED
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
s.parentNode.insertBefore(hm, s);
|
|
17
17
|
})();
|
|
18
18
|
</script>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index.
|
|
20
|
-
<link rel="modulepreload" href="/assets/vendor-@vue.
|
|
21
|
-
<link rel="modulepreload" href="/assets/vendor-element-plus.
|
|
22
|
-
<link rel="modulepreload" href="/assets/vendor-markdown.
|
|
23
|
-
<link rel="modulepreload" href="/assets/vendor-others.
|
|
19
|
+
<script type="module" crossorigin src="/assets/index.f5a81d59.js"></script>
|
|
20
|
+
<link rel="modulepreload" href="/assets/vendor-@vue.ddcf0365.js">
|
|
21
|
+
<link rel="modulepreload" href="/assets/vendor-element-plus.e3d8a038.js">
|
|
22
|
+
<link rel="modulepreload" href="/assets/vendor-markdown.0185da35.js">
|
|
23
|
+
<link rel="modulepreload" href="/assets/vendor-others.c752dc81.js">
|
|
24
24
|
<link rel="modulepreload" href="/assets/vendor-axios.168e6950.js">
|
|
25
|
-
<link rel="modulepreload" href="/assets/vendor-qrcode.
|
|
26
|
-
<link rel="modulepreload" href="/assets/vendor-fortawesome.
|
|
25
|
+
<link rel="modulepreload" href="/assets/vendor-qrcode.b1bdae55.js">
|
|
26
|
+
<link rel="modulepreload" href="/assets/vendor-fortawesome.2b4acb38.js">
|
|
27
27
|
<link rel="stylesheet" href="/assets/vendor-others.7742907f.css">
|
|
28
28
|
<link rel="stylesheet" href="/assets/index.ae7f4dce.css">
|
|
29
29
|
</head>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ce}from"./vendor-axios.168e6950.js";import{a9 as ue,al as te,am as he}from"./vendor-others.497786c5.js";import{Q as me,_ as q,T as G,U as oe,V as ne,W as B,X as pe,Y as ge,Z as _e,$ as fe,a0 as ye,a1 as Y,a2 as A,L as $e,D as ve,a3 as ae,a4 as j,a5 as Z,a6 as x,N as z,a7 as H,a8 as W,a9 as we,aa as ke,ab as Ce}from"./index.57238893.js";import{H as I,o as n,e as h,m as Ee,ah as be,al as d,av as ie,O as T,L as g,M as w,V as p,f as c,R as k,U as M,ai as L,as as J,$ as O,S as K,T as S,P as N,W as Q,aw as Se,a0 as Re,I as ee}from"./vendor-@vue.77dbb81d.js";import{M as qe}from"./vendor-markdown.80bdb044.js";import"./vendor-highlight.js.6ee9ffbc.js";import{C as De}from"./CopyToClipboard.9a7d0eb5.js";import{ar as U}from"./vendor-fortawesome.69508e20.js";import{s as X,I as Ie,u as re,m as Ge,t as le,x as Ne,y as se,h as Ae,i as Oe,j as Te,H as Me,S as Le}from"./vendor-element-plus.c621637c.js";import{F as de}from"./FilePreview.1f9b8ddf.js";import{I as Ue}from"./ImagePreview.3fb18fec.js";import"./vendor-qrcode.44a9e66b.js";const Ve=async e=>{const s=(await ue(()=>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(r=>{var u,i;const a=document.createElement("button");a.innerHTML=me.global.t("common.button.copy").toString(),a.addEventListener("click",()=>{te(r.innerText)}),(u=r.parentElement)!=null&&u.querySelector("button")||(i=r.parentElement)==null||i.prepend(a),s.highlightBlock(r)})};const Pe=I({name:"AnsweringMark",data(){return{}},computed:{conversationId(){var e,s;return(s=(e=this.$route.params)==null?void 0:e.id)==null?void 0:s.toString()}}}),Fe={class:"mark"};function He(e,s,o,r,a,u){return n(),h("div",Fe)}var Be=q(Pe,[["render",He],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/AnsweringMark.vue"]]);const je=I({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,default:()=>({}),required:!1}},setup(e,{attrs:s}){const o=new qe({...e.options,html:!0}).use(he,{delimiters:"all",throwOnError:!1,errorColor:"#cc0000",mathFence:!0}),r=Ee(()=>{const a=e.source;return o==null?void 0:o.render(a).replace(/<think>/g,'<div class="think">').replace(/<\/think>/g,"</div>")});return()=>be("div",{...s,innerHTML:r.value})}});var We=q(je,[["__file","/home/runner/work/Nexior/Nexior/src/components/common/VueMarkdown.vue"]]);const Ke=I({name:"ApiCode",directives:{highlight:Ve},components:{VueMarkdown:We},props:{content:{type:String,required:!1,default:""}},data(){},watch:{}});function ze(e,s,o,r,a,u){const i=d("vue-markdown"),m=ie("highlight");return T((n(),g(i,{source:e.content,class:"markdown-body"},null,8,["source"])),[[m]])}var Qe=q(Ke,[["render",ze],["__scopeId","data-v-8173dc94"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/MarkdownRenderer.vue"]]);const Je=I({name:"CopyToClipboard",components:{FontAwesomeIcon:U,ElTooltip:X},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:["restart"],data(){return{copied:!1}},methods:{onRestart(){this.$emit("restart")}}});function Xe(e,s,o,r,a,u){const i=d("font-awesome-icon"),m=d("el-tooltip");return n(),g(m,{effect:"dark",content:e.$t("common.button.restart"),placement:"bottom"},{default:w(()=>[p(i,{icon:"fa-solid fa-sync",class:"icon-sync",onClick:e.onRestart},null,8,["onClick"])]),_:1},8,["content"])}var Ye=q(Je,[["render",Xe],["__scopeId","data-v-18116778"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/RestartToGenerate.vue"]]);const Ze=I({name:"EditMessage",components:{FontAwesomeIcon:U,ElTooltip:X},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:["click"],data(){return{copied:!1}},methods:{onEdit(){this.$emit("click")}}});function xe(e,s,o,r,a,u){const i=d("font-awesome-icon"),m=d("el-tooltip");return n(),h("span",null,[p(m,{effect:"dark",content:e.$t("common.button.restart"),placement:"bottom"},{default:w(()=>[p(i,{icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:e.onEdit},null,8,["onClick"])]),_:1},8,["content"])])}var es=q(Ze,[["render",xe],["__scopeId","data-v-5c26bf56"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/EditMessage.vue"]]);const ss=I({name:"Message",components:{EditMessage:es,CopyToClipboard:De,RestartToGenerate:Ye,AnsweringMark:Be,MarkdownRenderer:Qe,ElAlert:Ie,FilePreview:de,ElButton:re,ElImage:Ge,ElInput:le},props:{messages:{type:Array,required:!1,default:()=>[]},message:{type:Object,required:!0},application:{type:Object,required:!0}},emits:["stop","edit","restart"],data(){return{copied:!1,isEditing:!1,questionValue:this.message.content,messageState:G}},computed:{modelGroup(){return this.$store.state.chat.modelGroup},errorText(){var e,s,o;if(console.debug("error",this.message.error),!(!this.message.error||!((e=this.message.error)!=null&&e.code))){if((s=this.message.error)!=null&&s.message)return this.message.error.message;switch((o=this.message.error)==null?void 0:o.code){case Y:return this.$t("chat.message.errorUsedUp");case ye:return this.$t("chat.message.errorApiError");case fe:return this.$t("chat.message.errorBadRequest");case _e:return this.$t("chat.message.errorTimeout");case ge:return this.$t("chat.message.errorTooManyRequests");case pe:return this.$t("chat.message.errorContentTooLarge");case B:return this.$t("chat.message.errorNotApplied");case ne:return;case oe:default:return this.$t("chat.message.errorUnknown")}}},showBuyMore(){var e;return this.message.role===A&&((e=this.message.error)==null?void 0:e.code)===Y}},watch:{},methods:{startEditing(){this.isEditing=!0,this.questionValue=this.message.content,console.debug("start to get answer",this.message)},cancelEdit(){this.isEditing=!1},onRestart(){this.$emit("restart",this.message)},onEdit(){this.isEditing=!1,this.onSubmit()},onSubmit(){this.$emit("edit",this.message,this.questionValue)},onCopy(){te(this.message.content.toString(),{debug:!0}),this.copied=!0,setTimeout(()=>{this.copied=!1},3e3)},onBuyMore(){var e;this.$router.push({name:$e,params:{id:(e=this.application)==null?void 0:e.id}})}}}),ts=["role"],os={class:"author"},ns={key:0,class:"main"},as={initial:{opacity:0,y:5},enter:{opacity:1,y:0,scale:1},delay:300,duration:400,layout:!0,transition:{enter:{delay:.3,duration:.5},layout:{duration:.4,easing:"ease-in-out"}},class:"content"},is={key:0,class:"message-content"},rs={key:1},ls=["src"],ds={key:1,class:"edits"},cs={class:"flex justify-end"},us={class:"operations"};function hs(e,s,o,r,a,u){var R;const i=d("el-image"),m=d("markdown-renderer"),y=d("file-preview"),$=d("el-input"),l=d("el-button"),t=d("answering-mark"),C=d("edit-message"),b=d("copy-to-clipboard"),_=d("restart-to-generate"),f=d("el-alert"),D=ie("motion");return n(),h("div",{class:N({message:!0,[e.message.role]:!0}),role:e.message.role},[c("div",os,[e.message.role==="assistant"?(n(),g(i,{key:0,src:e.modelGroup.icon,fit:"cover",class:"avatar"},null,8,["src"])):k("v-if",!0)]),e.errorText?(n(),g(f,{key:1,class:"error",title:e.errorText,type:"error",closable:!1},null,8,["title"])):(n(),h("div",ns,[T((n(),h("div",as,[e.isEditing?(n(),h("div",ds,[p($,{modelValue:e.questionValue,"onUpdate:modelValue":s[0]||(s[0]=v=>e.questionValue=v),type:"textarea",class:"mb-2",onKeydown:J(O(e.onEdit,["exact","prevent"]),["enter"])},null,8,["modelValue","onKeydown"]),c("div",cs,[p(l,{round:"",onClick:e.cancelEdit},{default:w(()=>[K(S(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),p(l,{type:"primary",class:"btn-confirm",round:"",onClick:e.onEdit},{default:w(()=>[K(S(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])])):(n(),h("div",is,[Array.isArray(e.message.content)?(n(),h("div",rs,[(n(!0),h(M,null,L(e.message.content,(v,V)=>{var P,F;return n(),h("div",{key:V},[v.type==="image_url"?(n(),h("img",{key:0,src:typeof(v==null?void 0:v.image_url)=="string"?v.image_url:(P=v.image_url)==null?void 0:P.url,fit:"cover",class:"image"},null,8,ls)):k("v-if",!0),v.file_url?(n(),g(y,{key:1,name:typeof(v==null?void 0:v.file_url)=="string"?v.file_url:(F=v.file_url)==null?void 0:F.url,percentage:0,closable:!1,class:"mt-2"},null,8,["name"])):k("v-if",!0),v.type==="text"?(n(),g(m,{key:V,content:v.text},null,8,["content"])):k("v-if",!0)])}),128))])):(n(),g(m,{key:0,content:(R=e.message)==null?void 0:R.content},null,8,["content"]))])),e.message.state===e.messageState.PENDING?(n(),g(t,{key:2})):k("v-if",!0)])),[[D]]),c("div",us,[e.message.role==="user"&&!e.isEditing&&!Array.isArray(e.message.content)?(n(),g(C,{key:0,class:"btn-edit",onClick:e.startEditing},null,8,["onClick"])):k("v-if",!0),!Array.isArray(e.message.content)&&(e.message.state===e.messageState.FINISHED||e.message.state===e.messageState.FAILED)?(n(),g(b,{key:1,content:e.message.content,class:"btn-copy"},null,8,["content"])):k("v-if",!0),!Array.isArray(e.message.content)&&(e.message.state===e.messageState.FINISHED||e.message.state===e.messageState.FAILED)&&e.message.role==="assistant"&&e.message===e.messages[e.messages.length-1]?(n(),g(_,{key:2,class:"btn-restart",messages:e.messages,onRestart:e.onRestart},null,8,["messages","onRestart"])):k("v-if",!0)])])),e.showBuyMore?(n(),g(l,{key:2,round:"",type:"primary",class:"btn btn-buy",size:"small",onClick:e.onBuyMore},{default:w(()=>[K(S(e.$t("common.button.buyMore")),1)]),_:1},8,["onClick"])):k("v-if",!0)],10,ts)}var ms=q(ss,[["render",hs],["__scopeId","data-v-f0476f80"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Message.vue"]]);const ps=I({name:"Composer",components:{FilePreview:de,ImagePreview:Ue,ElTooltip:X,FontAwesomeIcon:U,ElUpload:Ne},props:{disabled:{type:Boolean,required:!1,default:!1},references:{type:Array,required:!1,default:()=>[]},question:{type:String,required:!0}},emits:["update:question","update:references","submit","stop"],data(){return{inputHeight:"35px",questionValue:this.question,fileList:[],uploadUrl:ve()+"/api/v1/files/"}},computed:{model(){return this.$store.state.chat.model},modelGroup(){return this.$store.state.chat.modelGroup},headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var s;return(s=e==null?void 0:e.response)==null?void 0:s.file_url})}},watch:{urls(e){console.debug("File URLs:",e),e.length>0&&this.$emit("update:references",e)},questionValue(e){this.$emit("update:question",e)},question(e){e!==this.questionValue&&(this.questionValue=e)},references(e){console.debug("References updated:",e),e.length===0&&(this.fileList=[])}},methods:{isImageUrl:ae,adjustTextareaHeight(){this.$nextTick(()=>{const e=this.$refs.textarea;e&&(e.style.height="35px",e.style.height=e.scrollHeight+"px")})},onSubmit(){!this.question||this.$emit("submit")},onStop(){this.$emit("stop")},onProgress(e,s){console.debug("File upload progress:",s.name,e.loaded,e.total)},onExceed(){se.warning(this.$t("chat.message.uploadReferencesExceed"))},onError(){se.error(this.$t("chat.message.uploadReferencesError"))}}}),gs={class:"composer"},_s={class:"tools"},fs=["disabled","placeholder"];function ys(e,s,o,r,a,u){const i=d("image-preview"),m=d("file-preview"),y=d("font-awesome-icon"),$=d("el-tooltip"),l=d("el-upload");return n(),h("div",gs,[c("div",_s,[p(l,{"file-list":e.fileList,"onUpdate:fileList":s[0]||(s[0]=t=>e.fileList=t),class:N({upload:!0,disabled:!e.model.isFileSupported||e.disabled}),disabled:!e.model.isFileSupported||e.disabled,name:"file",limit:10,multiple:!0,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,"on-progress":e.onProgress,headers:e.headers},{file:w(({file:t})=>{var C;return[e.isImageUrl(t.name)?(n(),g(i,{key:0,url:t.url||((C=t.response)==null?void 0:C.file_url),name:t.name,percentage:t.percentage,onRemove:b=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,["url","name","percentage","onRemove"])):(n(),g(m,{key:1,name:t.name,percentage:t.percentage,onRemove:b=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,["name","percentage","onRemove"]))]}),default:w(()=>[p($,{class:"box-item",effect:"dark",content:e.$t("chat.message.uploadFile"),placement:"bottom"},{default:w(()=>[c("span",{class:N({btn:!0,"btn-upload":!0,disabled:!e.model.isFileSupported||e.disabled})},[p(y,{icon:"fa-solid fa-plus",class:"icon icon-attachment"})],2)]),_:1},8,["content"])]),_:1},8,["file-list","class","disabled","action","on-exceed","on-error","on-progress","headers"])]),T(c("span",{class:N({btn:!0,"btn-send":!0,disabled:!e.questionValue}),onClick:s[1]||(s[1]=(...t)=>e.onSubmit&&e.onSubmit(...t))},[p(y,{icon:"fa-solid fa-location-arrow",class:"icon icon-send"})],2),[[Q,!e.disabled]]),T(c("span",{class:N({btn:!0,"btn-stop":!0,disabled:!e.disabled}),onClick:s[2]||(s[2]=(...t)=>e.onStop&&e.onStop(...t))},[p(y,{icon:"fa-solid fa-stop",class:"icon icon-stop"})],2),[[Q,e.disabled]]),T(c("textarea",{ref:"textarea","onUpdate:modelValue":s[3]||(s[3]=t=>e.questionValue=t),disabled:e.disabled,class:"input",placeholder:e.$t("chat.message.newMessagePlaceholder"),style:Re({height:e.inputHeight}),onKeydown:s[4]||(s[4]=J(O((...t)=>e.onSubmit&&e.onSubmit(...t),["exact","prevent"]),["enter"])),onInput:s[5]||(s[5]=(...t)=>e.adjustTextareaHeight&&e.adjustTextareaHeight(...t))},null,44,fs),[[Se,e.questionValue]])])}var $s=q(ps,[["render",ys],["__scopeId","data-v-a443d292"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Composer.vue"]]);const vs=I({name:"ModelSelector",components:{ElDropdown:Ae,ElDropdownMenu:Oe,ElDropdownItem:Te,FontAwesomeIcon:U},emits:["update:modelValue","select","model-group-changed","model-changed"],data(){return{options:[j,Z,x]}},computed:{model(){return console.log("model",this.$store.state.chat.model),this.$store.state.chat.model},modelGroup(){var e;return((e=this.$route.meta)==null?void 0:e.modelGroup)||j}},watch:{modelGroup(e){console.debug("modelGroup from route changed",e),this.$store.dispatch("chat/setModelGroup",e),this.$store.dispatch("chat/setModel",e.models[0])}},mounted(){console.debug("ModelSelector mounted, checking model group");const s=[j,Z,x].find(o=>o.name===this.modelGroup.name);console.debug("Found model group:",s),s&&(this.$store.dispatch("chat/setModelGroup",s),this.$store.dispatch("chat/setModel",s.models[0]))},methods:{onModelGroupChange(e){this.$store.dispatch("chat/setModelGroup",e),this.$emit("model-group-changed",e)},onModelChange(e){this.$store.dispatch("chat/setModel",e),this.$emit("model-changed",e)}}}),ws={class:"selector"},ks={class:"flex justify-center mr-1"},Cs={class:"icon"},Es=["src"],bs={class:"name"},Ss={class:"angle"},Rs={class:"item"},qs={class:"icon"},Ds=["src"],Is={class:"info"},Gs={class:"name"},Ns={class:"description"},As={class:"flex justify-center"},Os={class:"name"},Ts={class:"angle"},Ms={class:"item"},Ls={class:"info"},Us={key:0,class:"name"},Vs={key:1,class:"description"};function Ps(e,s,o,r,a,u){const i=d("font-awesome-icon"),m=d("el-dropdown-item"),y=d("el-dropdown-menu"),$=d("el-dropdown");return n(),h("div",ws,[T(p($,{trigger:"click","popper-class":"popper"},{dropdown:w(()=>[p(y,null,{default:w(()=>[(n(!0),h(M,null,L(e.options,(l,t)=>(n(),g(m,{key:t,onClick:C=>e.onModelGroupChange(l)},{default:w(()=>[c("div",Rs,[c("div",qs,[c("img",{src:l.icon},null,8,Ds)]),c("div",Is,[c("p",Gs,S(l.getDisplayName()),1),c("p",Ns,S(l.getDescription()),1)])])]),_:2},1032,["onClick"]))),128))]),_:1})]),default:w(()=>{var l;return[c("div",ks,[c("span",Cs,[c("img",{src:e.modelGroup.icon},null,8,Es)]),c("span",bs,S((l=e.modelGroup)==null?void 0:l.getDisplayName()),1),c("span",Ss,[p(i,{icon:"fa-solid fa-angle-down"})])])]}),_:1},512),[[Q,!1]]),p($,{trigger:"click","popper-class":"popper"},{dropdown:w(()=>[e.modelGroup&&e.modelGroup.models?(n(),g(y,{key:0},{default:w(()=>[(n(!0),h(M,null,L(e.modelGroup.models,(l,t)=>(n(),g(m,{key:t,onClick:C=>e.onModelChange(l)},{default:w(()=>[c("div",Ms,[c("div",Ls,[l.getDisplayName?(n(),h("p",Us,S(l.getDisplayName()),1)):k("v-if",!0),l.getDescription?(n(),h("p",Vs,S(l.getDescription()),1)):k("v-if",!0)])])]),_:2},1032,["onClick"]))),128))]),_:1})):k("v-if",!0)]),default:w(()=>{var l;return[c("div",As,[c("span",Os,S((l=e.model)==null?void 0:l.getDisplayName()),1),c("span",Ts,[p(i,{icon:"fa-solid fa-angle-down"})])])]}),_:1})])}var Fs=q(vs,[["render",Ps],["__scopeId","data-v-358d65be"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/ModelSelector.vue"]]);const Hs={},Bs={class:"disclaimer"};function js(e,s){return n(),h("p",Bs,S(e.$t("chat.message.howToUse")),1)}var Ws=q(Hs,[["render",js],["__scopeId","data-v-42e751f2"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Disclaimer.vue"]]);const Ks=I({name:"SidePanel",components:{ElInput:le,FontAwesomeIcon:U,ElSkeleton:Me},props:{},emits:["change-conversation"],computed:{modelGroup(){return this.$store.state.chat.modelGroup},conversationId(){var e,s,o;return console.debug("conversationId in side",(e=this.$route.params)==null?void 0:e.id),(o=(s=this.$route.params)==null?void 0:s.id)==null?void 0:o.toString()},conversations(){let e=this.$store.state.chat.conversations;return console.debug("conversations",e),console.debug("modelGroup",this.modelGroup),e=e==null?void 0:e.filter(s=>{var o,r;return s.model&&((r=(o=this.modelGroup.models)==null?void 0:o.map(a=>a.name))==null?void 0:r.includes(s.model))}),console.debug("filtered conversations",e),e},conversationGroups(){var u,i,m,y,$,l,t,C,b;const e=new Date;e.setHours(0,0,0,0);const s=new Date(e);s.setDate(s.getDate()-1);const o=new Date(e);o.setDate(o.getDate()-e.getDay());const r=new Date(o);r.setDate(r.getDate()-7);const a=(u=this.conversations)==null?void 0:u.reduce((_,f)=>{const D=new Date(f.updated_at*1e3);return D>=e?_.today.push(f):D>=s?_.yesterday.push(f):D>=o?_.thisWeek.push(f):_.earlier.push(f),_},{today:[],yesterday:[],thisWeek:[],earlier:[]});return{...((i=a==null?void 0:a.today)==null?void 0:i.length)>0?{today:(m=a==null?void 0:a.today)==null?void 0:m.sort((_,f)=>f.updated_at-_.updated_at)}:{},...((y=a==null?void 0:a.yesterday)==null?void 0:y.length)>0?{yesterday:($=a==null?void 0:a.yesterday)==null?void 0:$.sort((_,f)=>f.updated_at-_.updated_at)}:{},...((l=a==null?void 0:a.thisWeek)==null?void 0:l.length)>0?{thisWeek:(t=a==null?void 0:a.thisWeek)==null?void 0:t.sort((_,f)=>f.updated_at-_.updated_at)}:{},...((C=a==null?void 0:a.earlier)==null?void 0:C.length)>0?{earlier:(b=a==null?void 0:a.earlier)==null?void 0:b.sort((_,f)=>f.updated_at-_.updated_at)}:{}}},application(){return this.$store.state.chat.application},loading(){return this.$store.state.chat.status.getConversations===z.Request},token(){var e,s;return(s=(e=this.$store.state.chat)==null?void 0:e.credential)==null?void 0:s.token}},watch:{modelGroup(){var s;console.debug("modelGroup changed, refreshing conversations");const e=(s=this.conversations)==null?void 0:s[0];e&&this.$emit("change-conversation",e.id)}},methods:{async onNewConversation(){console.debug("onNewConversation from side panel"),this.$emit("change-conversation",void 0)},async onConfirm(e){const s=this.token;if(!s){console.error("Token is not found");return}(e==null?void 0:e.deleting)&&e.id?(await H.deleteConversation(e.id,{token:s}),await this.$store.dispatch("chat/getConversations")):e!=null&&e.editing?(await H.updateConversation(e,{token:s}),await this.$store.dispatch("chat/getConversations")):e.editing=!0},onClickConversation(e){console.debug("onClickConversation in side panel",e),this.$emit("change-conversation",e)}}}),zs={class:"panel"},Qs={key:1,class:"conversations"},Js={class:"icons"},Xs={class:"title"},Ys={class:"key"},Zs=["onClick"],xs={class:"title"},et={key:0},st={key:1},tt={key:2},ot={class:"operations"};function nt(e,s,o,r,a,u){const i=d("el-skeleton"),m=d("font-awesome-icon"),y=d("el-input");return n(),h("div",zs,[e.loading&&e.conversationGroups===void 0?(n(),g(i,{key:0})):(n(),h("div",Qs,[c("div",{class:"conversation",onClick:s[0]||(s[0]=(...$)=>e.onNewConversation&&e.onNewConversation(...$))},[c("div",Js,[p(m,{icon:"fa-solid fa-plus",class:"icon"})]),c("div",Xs,S(e.$t("chat.message.startNewChat")),1)]),(n(!0),h(M,null,L(e.conversationGroups,($,l)=>(n(),h("div",{key:l,class:"group"},[c("div",Ys,S(e.$t(`chat.group.${l}`)),1),(n(!0),h(M,null,L($,(t,C)=>{var b,_,f,D;return n(),h("div",{key:C,class:N({conversation:!0,active:t.id===e.conversationId}),onClick:R=>e.onClickConversation(t.id)},[c("div",xs,[t!=null&&t.deleting?(n(),h("span",et,S(`${e.$t("chat.message.confirmDelete")}?`),1)):t!=null&&t.editing?(n(),h("span",st,[p(y,{modelValue:t.title,"onUpdate:modelValue":R=>t.title=R,onKeydown:J(R=>e.onConfirm(t),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])])):(t==null?void 0:t.title)||(t==null?void 0:t.messages)?(n(),h("span",tt,S((t==null?void 0:t.title)||((_=(b=t==null?void 0:t.messages)==null?void 0:b[(t==null?void 0:t.messages.length)-1])==null?void 0:_.content)||((D=(f=t==null?void 0:t.messages)==null?void 0:f[0])==null?void 0:D.content)),1)):k("v-if",!0)]),c("div",ot,[!(t!=null&&t.editing)&&!t.deleting?(n(),g(m,{key:0,icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:O(R=>t.editing=!0,["stop"])},null,8,["onClick"])):k("v-if",!0),!(t!=null&&t.editing)&&!t.deleting?(n(),g(m,{key:1,icon:"fa-solid fa-trash",class:"icon icon-delete",onClick:O(R=>t.deleting=!0,["stop"])},null,8,["onClick"])):k("v-if",!0),(t==null?void 0:t.editing)||t.deleting?(n(),g(m,{key:2,icon:"fa-solid fa-check",class:"icon icon-confirm",onClick:O(R=>e.onConfirm(t),["stop"])},null,8,["onClick"])):k("v-if",!0),(t==null?void 0:t.editing)||t.deleting?(n(),g(m,{key:3,icon:"fa-solid fa-xmark",class:"icon icon-cancel",onClick:O(R=>{t.editing=!1,t.deleting=!1},["stop"])},null,8,["onClick"])):k("v-if",!0)])],10,Zs)}),128))]))),128))]))])}var at=q(Ks,[["render",nt],["__scopeId","data-v-d866c834"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/SidePanel.vue"]]);const it=I({name:"LayoutChat",components:{SidePanel:at,ElDrawer:Le,ElButton:re,FontAwesomeIcon:U},emits:["change-conversation"],data(){return{drawer:!1}},methods:{onChangeConversation(e){console.debug("onChangeConversation in layout",e),this.$emit("change-conversation",e)}}}),rt={class:"main"},lt={class:"side"},dt={class:"chat"};function ct(e,s,o,r,a,u){const i=d("side-panel"),m=d("font-awesome-icon"),y=d("el-button"),$=d("el-drawer");return n(),h("div",rt,[c("div",lt,[ee(e.$slots,"side",{},()=>[p(i,{onChangeConversation:e.onChangeConversation},null,8,["onChangeConversation"])],!0)]),c("div",dt,[ee(e.$slots,"chat",{},void 0,!0)]),p(y,{round:"",class:"menu",onClick:s[0]||(s[0]=l=>e.drawer=!0)},{default:w(()=>[p(m,{icon:"fa-solid fa-bars",class:"icon-menu"})]),_:1}),p($,{modelValue:e.drawer,"onUpdate:modelValue":s[1]||(s[1]=l=>e.drawer=l),"with-header":!1,size:"290px",class:"drawer"},{default:w(()=>[p(i)]),_:1},8,["modelValue"])])}var ut=q(it,[["render",ct],["__scopeId","data-v-8d7a06d2"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Chat.vue"]]);const ht=I({name:"ChatConversation",components:{Composer:$s,Disclaimer:Ws,ModelSelector:Fs,Message:ms,Layout:ut},data(){var e,s;return{drawer:!1,question:"",references:[],upload:!1,answering:!1,canceler:void 0,messages:((s=(e=this.$store.state.chat.conversations)==null?void 0:e.find(o=>{var r;return o.id===((r=this.$route.params.id)==null?void 0:r.toString())}))==null?void 0:s.messages)||[]}},computed:{modelGroup(){return this.$store.state.chat.modelGroup},model(){return this.$store.state.chat.model},conversationId(){var e;return(e=this.$route.params.id)==null?void 0:e.toString()},conversation(){var e;return(e=this.$store.state.chat.conversations)==null?void 0:e.find(s=>s.id===this.conversationId)},service(){return this.$store.state.chat.service},application(){return this.$store.state.chat.application},applications(){return this.$store.state.chat.applications},credential(){var e;return(e=this.$store.state.chat)==null?void 0:e.credential},needApply(){return this.$store.state.chat.status.getApplications===z.Success&&!this.application},conversations(){return this.$store.state.chat.conversations},initializing(){return this.$store.state.chat.status.getApplications===z.Request}},watch:{async references(e){console.log("references changed",e)},async modelGroup(e){console.debug("modelGroup changed",e)},async conversationId(e){console.debug("conversationId changed",e)}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onGetConversations()},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("chat/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("chat/getApplications"),console.debug("end onGetApplication")},async onGetConversations(){console.debug("start onGetConversations"),await this.$store.dispatch("chat/getConversations"),console.debug("end onGetConversations")},async onDraft(e){this.question=e,this.onSubmit()},async onStop(){this.canceler&&(this.canceler.abort(),this.answering=!1)},async onRestart(e){var m,y,$,l,t,C,b,_,f,D,R,v,V,P,F;const s=this.messages.findIndex(E=>E===e),o=this.messages[s-1];let r=[];if(s!==-1){if(r=this.messages.slice(0,s-1),this.messages=this.messages.slice(0,s),this.references=[],typeof o.content=="string")this.question=o.content;else if(Array.isArray(o.content))for(let E=0;E<(o==null?void 0:o.content.length);E++)o.content[E].type==="image_url"&&(typeof((y=(m=o==null?void 0:o.content)==null?void 0:m[E])==null?void 0:y.image_url)=="string"?this.references.push((l=($=o==null?void 0:o.content)==null?void 0:$[E])==null?void 0:l.image_url):this.references.push((b=(C=(t=o==null?void 0:o.content)==null?void 0:t[E])==null?void 0:C.image_url)==null?void 0:b.url)),o.content[E].type==="file_url"&&(typeof((f=(_=o==null?void 0:o.content)==null?void 0:_[E])==null?void 0:f.file_url)=="string"?this.references.push((R=(D=o==null?void 0:o.content)==null?void 0:D[E])==null?void 0:R.file_url):this.references.push((P=(V=(v=o==null?void 0:o.content)==null?void 0:v[E])==null?void 0:V.file_url)==null?void 0:P.url)),o.content[E].type==="text"&&(this.question=o.content[E].text)}console.debug("onRestart!",this.question,JSON.stringify(this.references));const a=(F=this.credential)==null?void 0:F.token,u=this.question;if(!a||!u){console.error("no token or endpoint or question"),this.messages.push({error:{code:B},role:A,state:G.FAILED});return}let i=this.conversationId;H.updateConversation({id:this.conversationId,messages:r},{token:a}).then(async()=>{await this.$store.dispatch("chat/setConversation",{id:i,messages:this.messages}),console.debug("finished update conversation",this.messages),console.debug("onRestart",this.question),await this.onRequest()}).catch(E=>{this.handleRequestError(E)})},async onEdit(e,s){var u;const o=this.messages.findIndex(i=>i===e);o!==-1&&(this.messages=this.messages.slice(0,o)),this.question=s;const r=(u=this.credential)==null?void 0:u.token;if(!r){console.error("no token or endpoint or question"),this.messages.push({error:{code:B},role:A,state:G.FAILED});return}let a=this.conversationId;H.updateConversation({id:this.conversationId,messages:this.messages},{token:r}).then(async()=>{await this.$store.dispatch("chat/setConversation",{id:a,messages:this.messages}),console.debug("finished update conversation",this.messages),this.messages.push({content:this.question,role:W}),console.debug("onEdit",this.question),await this.onRequest()}).catch(i=>{this.handleRequestError(i)})},async onNewConversation(){this.$router.push({params:{id:""}}),this.messages=[],this.question="",this.references=[]},async onRestoreConversation(e){var u;console.debug("onRestoreConversation id",e),this.$router.push({...this.$route,params:{id:e}});const s=(u=this.conversations)==null?void 0:u.find(i=>i.id===e),o=s==null?void 0:s.model;console.debug("conversation model",o);const r=we.find(i=>i.name===o);console.debug("target model",r);const a=ke.find(i=>i.name===(r==null?void 0:r.modelGroup));console.debug("target model group",a),this.$store.dispatch("chat/setModelGroup",a),this.$store.dispatch("chat/setModel",r),this.messages=(s==null?void 0:s.messages)||[],this.onScrollDown()},async onChangeConversation(e){console.log("onChangeConversation in conversation",e),await this.onStop(),e?this.onRestoreConversation(e):this.onNewConversation()},async onSubmit(){if(this.references.length>0){let e=[];e.push({type:"text",text:this.question});for(let s=0;s<this.references.length;s++)ae(this.references[s])?e.push({type:"image_url",image_url:this.references[s]}):e.push({type:"file_url",file_url:this.references[s]});this.messages.push({content:e,role:W})}else this.messages.push({content:this.question,role:W});console.debug("onSubmit",this.question,this.references),await this.onRequest()},async onRequest(){var a;console.debug("start to get answer",this.messages);const e=(a=this.credential)==null?void 0:a.token,s=this.question,o=this.references;if(console.debug("validated",s,o),this.question="",this.references=[],!e||!s){console.error("no token or endpoint or question"),this.messages.push({error:{code:B},role:A,state:G.FAILED});return}let r=this.conversationId;this.messages.push({content:"",role:A,state:G.PENDING}),console.debug("start to get answer",this.messages),this.onScrollDown(),this.answering=!0,this.canceler=new AbortController,H.chatConversation({question:s,model:this.model.name,references:o,id:this.conversationId,stateful:!0},{token:e,stream:u=>{console.debug("stream response",u);const i=this.messages[this.messages.length-1];this.messages[this.messages.length-1]={role:A,content:u.answer,state:(i==null?void 0:i.state)!==G.FINISHED?G.ANSWERING:i==null?void 0:i.state},r=u==null?void 0:u.id},signal:this.canceler.signal}).then(async()=>{console.debug("finished fetch answer",this.messages),this.messages[this.messages.length-1].state=G.FINISHED,console.debug("finished fetch answer",JSON.stringify(this.messages)),await this.$store.dispatch("chat/setConversation",{id:r,messages:this.messages}),this.answering=!1,r&&await this.$router.push({params:{id:r}}),this.onScrollDown(),await this.$store.dispatch("chat/getConversations"),await this.$store.dispatch("chat/getApplications")}).catch(u=>{this.handleRequestError(u)})},async handleRequestError(e){if(console.error("error happened",e),this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].state=G.FAILED),e.name==="AbortError"){console.error("aborted");return}else e instanceof Ce?(console.debug("BaseError",e),this.messages[this.messages.length-1].error={code:e.code,message:e.detail}):ce.isCancel(e)?this.messages[this.messages.length-1].error={code:ne}:this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error={code:oe});this.answering=!1},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".messages");!e||!this.messages||this.messages.length===0||(e.scrollTop=e==null?void 0:e.scrollHeight)},0)}}}),mt={key:0,class:"messages"},pt={class:"starter"};function gt(e,s,o,r,a,u){const i=d("model-selector"),m=d("message"),y=d("composer"),$=d("disclaimer"),l=d("layout");return n(),g(l,{onChangeConversation:s[4]||(s[4]=t=>e.onChangeConversation(t))},{chat:w(()=>[p(i,{class:"selector",onModelGroupChanged:s[0]||(s[0]=t=>e.onChangeConversation(void 0))}),c("div",{class:N({dialogue:!0,empty:e.messages.length===0})},[e.messages.length>0?(n(),h("div",mt,[(n(!0),h(M,null,L(e.messages,(t,C)=>(n(),g(m,{key:C,message:t,messages:e.messages,question:e.question,application:e.application,class:"message","onUpdate:question":s[1]||(s[1]=b=>e.question=b),onEdit:e.onEdit,onRestart:e.onRestart},null,8,["message","messages","question","application","onEdit","onRestart"]))),128))])):k("v-if",!0),c("div",pt,[p(y,{question:e.question,"onUpdate:question":s[2]||(s[2]=t=>e.question=t),disabled:e.answering,references:e.references,"onUpdate:references":s[3]||(s[3]=t=>e.references=t),onSubmit:e.onSubmit,onStop:e.onStop},null,8,["question","disabled","references","onSubmit","onStop"]),p($,{class:"disclaimer"})])],2)]),_:1})}var qt=q(ht,[["render",gt],["__scopeId","data-v-3ab2fb26"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chat/Conversation.vue"]]);export{qt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.497786c5.js";import{I as G}from"./api.f60246f3.js";import{_ as A,H,J as Q,K as X}from"./index.57238893.js";import{g as F}from"./price.967f8780.js";import{H as R,o as t,e as l,T as s,U as B,ai as T,S as y,R as f,al as d,L as $,M as i,V as n,f as V,O as W,P as J,W as j}from"./vendor-@vue.77dbb81d.js";import{o as Y}from"./order.6a6aeec2.js";import{H as Z,A as x,B as ee,F as ae,n as te,o as ie,u as se,l as re,L as ne,M as oe,y as le}from"./vendor-element-plus.c621637c.js";import"./vendor-markdown.80bdb044.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.44a9e66b.js";import"./vendor-fortawesome.69508e20.js";const ce=R({name:"ApiPrice",props:{price:{type:Number,required:!1,default:0},unit:{type:String,required:!1,default:void 0},start:{type:Boolean,required:!1,default:!1}},methods:{getPriceString:F}}),pe={class:"price-text"},ue={key:0,class:"unfree"},de={key:1,class:"free"};function fe(e,a,p,_,b,E){return t(),l("div",pe,[e.price>0?(t(),l("span",ue,s(e.getPriceString({value:e.price}))+" "+s(e.unit?` / ${e.unit}`:"")+s(e.start?e.$t("common.message.startPrice"):""),1)):(t(),l("span",de,s(e.$t("common.message.free")),1))])}var he=A(ce,[["render",fe],["__scopeId","data-v-d195ccd6"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/Price.vue"]]);const me=R({name:"ServiceEstimation",components:{},props:{service:{type:Object,required:!0},package:{type:Object,required:!0}},methods:{getPriceString:F}}),_e={class:"estimation"},ge={key:0,class:"item"},ve={key:0},ke={key:1},$e={key:2},ye={key:0},be={key:1};function Ee(e,a,p,_,b,E){var h;return t(),l("div",_e,[(t(!0),l(B,null,T((h=e.service)==null?void 0:h.apis,(u,v)=>(t(),l("div",{key:v},[(t(!0),l(B,null,T(u==null?void 0:u.estimation,(c,S)=>{var g,P;return t(),l("div",{key:S,class:"items"},[((g=e.package)==null?void 0:g.amount)&&(c==null?void 0:c.cost)?(t(),l("p",ge,[y(" \u2248 "+s(c.name)+" "+s(Math.round(e.package.amount/c.cost))+" "+s(e.$t("api.unit.count"))+" ",1),e.package.price>0?(t(),l("span",ve," - "+s(e.getPriceString({value:e.package.price/(e.package.amount/c.cost),fractionDigits:3})+" / "+e.$t("api.unit.count")),1)):f("v-if",!0),c.remark?(t(),l("span",ke," ("+s(c.remark)+") ",1)):f("v-if",!0),((P=c==null?void 0:c.comparisons)==null?void 0:P.length)>0?(t(),l("span",$e," - ")):f("v-if",!0),(t(!0),l(B,null,T(c==null?void 0:c.comparisons,(o,O)=>{var C,N;return t(),l("span",{key:O,class:"comparison"},[(o==null?void 0:o.value)<0?(t(),l("i",ye,s(e.$t("api.message.cheaperThan").replace("$[[value]]",(C=o==null?void 0:o.target)==null?void 0:C.toString()))+" "+s(Math.abs(o==null?void 0:o.value)*100)+"% ",1)):f("v-if",!0),(o==null?void 0:o.value)>0?(t(),l("i",be,s(e.$t("api.message.moreExpensiveThan").replace("$[[value]]",(N=o==null?void 0:o.target)==null?void 0:N.toString()))+" "+s(Math.abs(o==null?void 0:o.value)*100)+"% ",1)):f("v-if",!0)])}),128))])):f("v-if",!0)])}),128))]))),128))])}var Se=A(me,[["render",Ee],["__scopeId","data-v-10c89755"],["__file","/home/runner/work/Nexior/Nexior/src/components/service/Estimation.vue"]]);const Ce=R({name:"ConsoleApplicationBuy",components:{ElSkeleton:Z,ElRow:x,ElCol:ee,ElCard:ae,ElForm:te,ElFormItem:ie,ElButton:se,ElDivider:re,ElRadioGroup:ne,ElRadioButton:oe,Price:he,ServiceEstimation:Se},data(){return{lang:this.$i18n.locale,application:void 0,loading:!1,type:G.USAGE,form:{packageId:void 0,amount:void 0},creating:!1}},computed:{applicationId(){var e,a;return(a=(e=this.$route.params)==null?void 0:e.id)==null?void 0:a.toString()},id(){var e,a;return(a=(e=this.$route.params)==null?void 0:e.id)==null?void 0:a.toString()},price(){var e,a,p;return((a=(e=this.application)==null?void 0:e.service)==null?void 0:a.price)&&this.form.amount?this.form.amount*((p=this.application.service)==null?void 0:p.price):0},packages(){var e,a,p;return(p=(a=(e=this.application)==null?void 0:e.service)==null?void 0:a.packages)==null?void 0:p.filter(_=>_.type===G.USAGE)},package(){if(this.packages&&this.form.packageId){const e=this.packages.filter(a=>a.id===this.form.packageId);if(e.length>0)return e[0]}}},mounted(){this.onFetchApplication()},methods:{getDiscount(e){var a,p,_;return this.packages&&this.packages.length>0?(a=this.lang)!=null&&a.startsWith("zh")?(10*(e==null?void 0:e.price)/(e==null?void 0:e.amount)/(this.packages[0].price/((p=this.packages[0])==null?void 0:p.amount))).toFixed(1)+"\u6298":Math.round(100-100*(e==null?void 0:e.price)/(e==null?void 0:e.amount)/(this.packages[0].price/((_=this.packages[0])==null?void 0:_.amount)))+"% OFF":""},onSubscribe(){this.$router.push({name:H,params:this.$route.params})},getPriceString:F,onFetchApplication(){this.loading=!0,Q.get(this.id).then(({data:e})=>{var a,p;this.application=e,this.loading=!1,this.form.packageId=(p=(a=this.packages)==null?void 0:a[0])==null?void 0:p.id}).catch(()=>{this.loading=!1})},onChangeType(){this.$router.push({name:H,params:this.$route.params})},onCreateOrder(){var a,p,_,b,E,h,u,v;if(!((a=this.application)!=null&&a.id))return;this.creating=!0;const e=this.$t(`service.unit.${(_=(p=this.application)==null?void 0:p.service)==null?void 0:_.unit}s`);Y.create({application_id:(b=this.application)==null?void 0:b.id,amount:(E=this.package)==null?void 0:E.amount,...this.form.packageId!=="custom"&&this.package?{package_id:this.package.id}:{},description:`${(u=(h=this.application)==null?void 0:h.service)==null?void 0:u.title} x ${(v=this.package)==null?void 0:v.amount} ${e}`}).then(({data:c})=>{this.creating=!1;const S=c;this.$router.push({name:X,params:{id:S.id}})}).catch(()=>{le.error(this.$t("order.message.createFailed")),this.creating=!1})}}}),Ie={class:"title"},Pe={key:0,class:"ml-2"},Oe={key:1,class:J({price:!0,free:!0})};function Ne(e,a,p,_,b,E){const h=d("el-col"),u=d("el-row"),v=d("el-radio-button"),c=d("el-radio-group"),S=d("el-skeleton"),g=d("el-form-item"),P=d("service-estimation"),o=d("price"),O=d("el-divider"),C=d("el-button"),N=d("el-form"),K=d("el-card");return t(),$(u,{class:"panel"},{default:i(()=>[n(h,{span:24},{default:i(()=>[n(u,null,{default:i(()=>[n(h,{span:24},{default:i(()=>[V("h2",Ie,s(e.$t("common.title.buyMore")),1)]),_:1})]),_:1}),n(u,null,{default:i(()=>[n(h,{span:24},{default:i(()=>[n(K,{shadow:"hover"},{default:i(()=>[W(n(u,null,{default:i(()=>[n(h,{class:"text-center"},{default:i(()=>[e.applicationId?(t(),$(c,{key:0,modelValue:e.type,"onUpdate:modelValue":a[0]||(a[0]=w=>e.type=w),size:"large",class:"mb-4",onChange:e.onChangeType},{default:i(()=>[n(v,{label:"Period"},{default:i(()=>[y(s(e.$t("application.type.period")),1)]),_:1}),n(v,{label:"Usage"},{default:i(()=>[y(s(e.$t("application.type.usage")),1)]),_:1})]),_:1},8,["modelValue","onChange"])):f("v-if",!0)]),_:1})]),_:1},512),[[j,!1]]),n(u,null,{default:i(()=>[n(h,{span:16,offset:4},{default:i(()=>[e.loading?(t(),$(S,{key:0})):e.application?(t(),$(N,{key:1,"label-width":"100px"},{default:i(()=>{var w,U,D,M,L,q;return[n(g,{label:e.$t("application.field.service")},{default:i(()=>{var r,m;return[y(s((m=(r=e.application)==null?void 0:r.service)==null?void 0:m.title),1)]}),_:1},8,["label"]),n(g,{label:e.$t("application.field.package"),class:"mb-0"},{default:i(()=>[e.packages?(t(),$(c,{key:0,modelValue:e.form.packageId,"onUpdate:modelValue":a[1]||(a[1]=r=>e.form.packageId=r)},{default:i(()=>[(t(!0),l(B,null,T(e.packages,(r,m)=>(t(),$(v,{key:m,label:r.id,class:"mb-2"},{default:i(()=>{var k,I;return[W(V("span",{class:"corner"},s(e.getDiscount(r)),513),[[j,m!==0]]),y(" "+s(r.amount)+" "+s(e.$t(`service.unit.${(I=(k=e.application)==null?void 0:k.service)==null?void 0:I.unit}s`)),1)]}),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])):f("v-if",!0)]),_:1},8,["label"]),((U=(w=e.application)==null?void 0:w.service)==null?void 0:U.apis)&&((q=(L=(M=(D=e.application)==null?void 0:D.service)==null?void 0:M.apis)==null?void 0:L.map(r=>r==null?void 0:r.estimation).filter(r=>!!r))==null?void 0:q.length)>0?(t(),$(g,{key:0},{default:i(()=>{var r;return[(r=e.application)!=null&&r.service?(t(),$(P,{key:0,service:e.application.service,package:e.package},null,8,["service","package"])):f("v-if",!0)]}),_:1})):f("v-if",!0),n(g,{label:e.$t("service.field.price")},{default:i(()=>{var r,m,k,I,z;return[n(o,{price:(r=e.package)==null?void 0:r.price},null,8,["price"]),e.package?(t(),l("span",Pe,"("+s(e.getPriceString({value:((m=e.package)==null?void 0:m.price)/((k=e.package)==null?void 0:k.amount)})+" / "+e.$t(`service.unit.${(z=(I=e.application)==null?void 0:I.service)==null?void 0:z.unit}`))+") ",1)):f("v-if",!0)]}),_:1},8,["label"]),n(O,{"border-style":"dashed"}),n(g,{label:e.$t("application.field.shouldPayPrice")},{default:i(()=>{var r,m,k;return[e.package?(t(),l("span",{key:0,class:J({price:!0,unfree:((r=e.package)==null?void 0:r.price)>0,free:((m=e.package)==null?void 0:m.price)===0})},s(e.getPriceString({value:(k=e.package)==null?void 0:k.price})),3)):(t(),l("span",Oe," $ 0 "))]}),_:1},8,["label"]),n(g,null,{default:i(()=>[n(C,{type:"primary",size:"large",class:"btn-create",loading:e.creating,round:"",onClick:e.onCreateOrder},{default:i(()=>[y(s(e.$t("application.button.createOrder")),1)]),_:1},8,["loading","onClick"])]),_:1}),n(O,{"border-style":"dashed"}),n(g,{label:""},{default:i(()=>[V("span",null,s(e.$t("console.message.doNotWantExtra")),1),n(C,{type:"primary",class:"btn btn-subscribe",round:"",size:"small",onClick:e.onSubscribe},{default:i(()=>[y(s(e.$t("console.message.subscribe")),1)]),_:1},8,["onClick"])]),_:1})]}),_:1})):f("v-if",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}var qe=A(Ce,[["render",Ne],["__scopeId","data-v-3eeec565"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/application/Extra.vue"]]);export{qe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.497786c5.js";import{ar as F}from"./vendor-fortawesome.69508e20.js";import{_ as w,aP as ee,aQ as te,N as oe,aR as se,a1 as ne}from"./index.57238893.js";import{S as ae,u as Y,N as le,O as re,U as ie,V as ce,t as ue,m as de,I as pe,y as E}from"./vendor-element-plus.c621637c.js";import{H as x,al as n,o as c,e as m,f as l,I as R,V as o,M as g,T as i,U,ai as L,L as D,S as $,R as k,P as M}from"./vendor-@vue.77dbb81d.js";import{I as Z}from"./InfoIcon.2141f56b.js";import{C as me}from"./CopyToClipboard.9a7d0eb5.js";import{I as fe}from"./ImageWrapper.a98f8106.js";import{B as _e,N as he}from"./NoTasks.60547158.js";import"./vendor-markdown.80bdb044.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.44a9e66b.js";const ve=x({name:"LayoutFlux",components:{ElDrawer:ae,ElButton:Y,FontAwesomeIcon:F},data(){return{drawer:!1}}}),$e={class:"main"},ge={class:"config"},be={class:"result"};function ke(e,t,a,r,f,h){const u=n("font-awesome-icon"),d=n("el-button"),s=n("el-drawer");return c(),m("div",$e,[l("div",ge,[R(e.$slots,"config",{},void 0,!0)]),l("div",be,[R(e.$slots,"result",{},void 0,!0)]),o(d,{round:"",class:"menu",onClick:t[0]||(t[0]=p=>e.drawer=!0)},{default:g(()=>[o(u,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),o(s,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=p=>e.drawer=p),"with-header":!1,size:"340px",class:"drawer"},{default:g(()=>[R(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var we=w(ve,[["render",ke],["__scopeId","data-v-324e8ab0"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Flux.vue"]]);const xe=x({name:"ModelSelector",components:{ElSelect:le,ElOption:re},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:"flux-schnell",label:"flux-schnell"},{value:"flux-dev",label:"flux-dev"},{value:"flux-pro",label:"flux-pro"},{value:"flux-pro-1.1",label:"flux-pro-1.1"},{value:"flux-pro-1.1-ultra",label:"flux-pro-1.1-ultra"},{value:"flux-kontext-pro",label:"flux-kontext-pro"},{value:"flux-kontext-max",label:"flux-kontext-max"}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.flux)==null?void 0:e.config)==null?void 0:t.model},set(e){this.$store.commit("flux/setConfig",{...this.$store.state.flux.config,model:e})}}},mounted(){this.value||(this.value=ee)}}),ye={class:"field"},Ve={class:"title font-bold"};function Ie(e,t,a,r,f,h){const u=n("el-option"),d=n("el-select");return c(),m("div",ye,[l("h2",Ve,i(e.$t("flux.name.model")),1),o(d,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=s=>e.value=s),class:"value",placeholder:e.$t("flux.placeholder.select")},{default:g(()=>[(c(!0),m(U,null,L(e.options,s=>(c(),D(u,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Te=w(xe,[["render",Ie],["__scopeId","data-v-8a0bbbfe"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/ModelSelector.vue"]]);const Se=x({name:"CountSelector",components:{ElSlider:ie,InfoIcon:Z,ElInputNumber:ce},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.flux)==null?void 0:e.config)==null?void 0:t.count},set(e){var t;console.debug("set count",e),this.$store.commit("flux/setConfig",{...(t=this.$store.state.flux)==null?void 0:t.config,count:e})}}},mounted(){this.value||(this.value=te)}}),Ne={class:"flex justify-between"},Ce={class:"flex justify-start items-center"},Pe={class:"text-sm font-bold"},Ge={class:"flex justify-end items-center"},Ae={class:"w-full"};function Ee(e,t,a,r,f,h){const u=n("info-icon"),d=n("el-input-number"),s=n("el-slider");return c(),m("div",null,[l("div",Ne,[l("div",Ce,[l("span",Pe,i(e.$t("flux.name.numbers")),1),o(u,{content:e.$t("flux.description.numbers")},null,8,["content"])]),l("div",Ge,[o(d,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=p=>e.value=p),"controls-position":"right"},null,8,["modelValue"])])]),l("div",Ae,[o(s,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=p=>e.value=p),min:1,max:4,step:1},null,8,["modelValue"])])])}var Ue=w(Se,[["render",Ee],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/CountSelector.vue"]]);const De="",Re=x({name:"PromptInput",components:{ElInput:ue,InfoIcon:Z},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.flux)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("flux/setConfig",{...(t=this.$store.state.flux)==null?void 0:t.config,prompt:e})}}},mounted(){this.value||(this.value=De)}}),Fe={class:"field"},Le={class:"box"},Me={class:"title font-bold"};function je(e,t,a,r,f,h){const u=n("info-icon"),d=n("el-input");return c(),m("div",Fe,[l("div",Le,[l("h2",Me,i(e.$t("flux.name.prompt")),1),o(u,{content:e.$t("flux.description.prompt"),class:"info"},null,8,["content"])]),o(d,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=s=>e.prompt=s),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("flux.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Oe=w(Re,[["render",je],["__scopeId","data-v-76c331df"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/PromptInput.vue"]]);const Be=x({name:"PresetPanel",components:{ElButton:Y,FontAwesomeIcon:F,PromptInput:Oe,ModelSelector:Te,CountSelector:Ue},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.flux)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),qe={class:"panel"},He={class:"config"},ze={class:"actions"};function Xe(e,t,a,r,f,h){const u=n("prompt-input"),d=n("model-selector"),s=n("count-selector"),p=n("font-awesome-icon"),v=n("el-button");return c(),m("div",qe,[l("div",He,[o(u,{class:"mb-4"}),o(d,{class:"mb-4"}),o(s,{class:"mb-4"}),l("div",ze,[o(v,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:g(()=>[o(p,{icon:"fa-solid fa-magic",class:"mr-2"}),$(" "+i(e.$t("flux.button.generate")),1)]),_:1},8,["onClick"])])])])}var Ke=w(Be,[["render",Xe],["__scopeId","data-v-707be6ac"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/ConfigPanel.vue"]]);const Qe=x({name:"TaskPreview",components:{ElImage:de,CopyToClipboard:me,FontAwesomeIcon:F,ElAlert:pe,ImageWrapper:fe},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.flux)==null?void 0:e.application},config(){var e;return(e=this.$store.state.flux)==null?void 0:e.config},images(){var a,r,f,h,u,d,s;let e=[];const t=(r=(a=this.modelValue)==null?void 0:a.request)==null?void 0:r.action;return Array.isArray((h=(f=this.modelValue)==null?void 0:f.response)==null?void 0:h.data)&&((s=(d=(u=this.modelValue)==null?void 0:u.response)==null?void 0:d.data)==null||s.forEach(p=>{let v=p;t&&(v.action=t),e.push(v)})),e}},methods:{onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onOpenImage(e){window.open(e,"_blank")}}}),We={class:"preview"},Je={class:"left"},Ye={class:"main"},Ze={class:"bot"},et={class:"datetime"},tt={class:"info"},ot={key:0,class:"prompt mt-2"},st={key:0},nt={key:0,class:M({content:!0,failed:!0})},at={class:"flex justify-start items-center gap-4 w-full overflow-x-auto"},lt={class:"mb-2"},rt={class:"mb-2"},it={key:1,class:M({content:!0})},ct={class:"mb-2"},ut={class:"mb-4"},dt={class:"mb-2"},pt={key:2,class:M({content:!0})},mt={class:"mb-2"};function ft(e,t,a,r,f,h){var y,V,I,T,S,N,G,A,j,O,B;const u=n("el-image"),d=n("image-wrapper"),s=n("font-awesome-icon"),p=n("copy-to-clipboard"),v=n("el-alert");return c(),m("div",We,[l("div",Je,[o(u,{src:"https://cdn.acedata.cloud/ogm2oa.png",class:"avatar"})]),l("div",Ye,[l("div",Ze,[$(i(e.$t("flux.name.fluxBot"))+" ",1),l("span",et,i(e.$dayjs.format(""+new Date(parseFloat((((y=e.modelValue)==null?void 0:y.created_at)||"").toString())*1e3))),1)]),l("div",tt,[(I=(V=e.modelValue)==null?void 0:V.request)!=null&&I.prompt?(c(),m("p",ot,[$(i((S=(T=e.modelValue)==null?void 0:T.request)==null?void 0:S.prompt)+" ",1),(N=e.modelValue)!=null&&N.response?k("v-if",!0):(c(),m("span",st," - ("+i(e.$t("flux.status.pending"))+") ",1))])):k("v-if",!0)]),k(" Display success message "),((A=(G=e.modelValue)==null?void 0:G.response)==null?void 0:A.success)===!0?(c(),m("div",nt,[l("div",at,[(c(!0),m(U,null,L(e.images,(_,b)=>(c(),D(d,{key:b,src:_==null?void 0:_.image_url,"raw-src":_==null?void 0:_.image_url,"model-value":_},null,8,["src","raw-src","model-value"]))),128))]),o(v,{closable:!1,class:"mt-2 success"},{default:g(()=>{var _,b,C,P;return[l("p",lt,[o(s,{icon:"fa-solid fa-hashtag",class:"mr-1"}),$(" "+i(e.$t("flux.name.model"))+": "+i((b=(_=e.modelValue)==null?void 0:_.request)==null?void 0:b.model),1)]),l("p",rt,[o(s,{icon:"fa-solid fa-magic",class:"mr-1"}),$(" "+i(e.$t("flux.name.taskId"))+": "+i((C=e.modelValue)==null?void 0:C.id)+" ",1),o(p,{content:(P=e.modelValue)==null?void 0:P.id,class:"btn-copy inline-block"},null,8,["content"])])]}),_:1})])):k("v-if",!0),k(" Display error message "),((O=(j=e.modelValue)==null?void 0:j.response)==null?void 0:O.success)===!1?(c(),m("div",it,[o(v,{closable:!1,class:"failure"},{template:g(()=>[o(s,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),$(" "+i(e.$t("flux.name.failure")),1)]),default:g(()=>{var _,b,C,P,q,H,z,X,K,Q,W,J;return[l("p",ct,[o(s,{icon:"fa-solid fa-magic",class:"mr-1"}),$(" "+i(e.$t("flux.name.taskId"))+": "+i((_=e.modelValue)==null?void 0:_.id)+" ",1),o(p,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),l("p",ut,[o(s,{icon:"fa-solid fa-circle-info",class:"mr-1"}),$(" "+i(e.$t("flux.name.failureReason"))+": "+i((q=(P=(C=e.modelValue)==null?void 0:C.response)==null?void 0:P.error)==null?void 0:q.message)+" ",1),o(p,{content:(X=(z=(H=e.modelValue)==null?void 0:H.response)==null?void 0:z.error)==null?void 0:X.message,class:"btn-copy"},null,8,["content"])]),l("p",dt,[o(s,{icon:"fa-solid fa-hashtag",class:"mr-1"}),$(" "+i(e.$t("flux.name.traceId"))+": "+i((Q=(K=e.modelValue)==null?void 0:K.response)==null?void 0:Q.trace_id)+" ",1),o(p,{content:(J=(W=e.modelValue)==null?void 0:W.response)==null?void 0:J.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):k("v-if",!0),(B=e.modelValue)!=null&&B.response?k("v-if",!0):(c(),m("div",pt,[o(v,{closable:!1,class:"info"},{template:g(()=>[o(s,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),$(" "+i(e.$t("flux.name.failure")),1)]),default:g(()=>{var _,b;return[l("p",mt,[o(s,{icon:"fa-solid fa-magic",class:"mr-1"}),$(" "+i(e.$t("flux.name.taskId"))+": "+i((_=e.modelValue)==null?void 0:_.id)+" ",1),o(p,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})]))])])}var _t=w(Qe,[["render",ft],["__scopeId","data-v-bb276cb8"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/task/Preview.vue"]]);const ht=x({name:"RecentPanel",components:{TaskPreview:_t,BotPlaceholder:_e,NoTasks:he},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){var e,t,a,r;return{...(e=this.$store.state.flux)==null?void 0:e.tasks,items:(r=(a=(t=this.$store.state.flux)==null?void 0:t.tasks)==null?void 0:a.items)==null?void 0:r.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),vt={key:0},$t={key:1,class:"tasks h-full w-full overflow-y-auto"},gt={key:2};function bt(e,t,a,r,f,h){var p,v,y,V,I,T,S,N;const u=n("bot-placeholder"),d=n("task-preview"),s=n("no-tasks");return c(),m(U,null,[((p=e.tasks)==null?void 0:p.items)===void 0?(c(),m("div",vt,[o(u)])):((y=(v=e.tasks)==null?void 0:v.items)==null?void 0:y.length)&&((I=(V=e.tasks)==null?void 0:V.items)==null?void 0:I.length)>0?(c(),m("div",$t,[(c(!0),m(U,null,L((T=e.tasks)==null?void 0:T.items,(G,A)=>(c(),D(d,{key:A,"model-value":G},null,8,["model-value"]))),128))])):k("v-if",!0),((N=(S=e.tasks)==null?void 0:S.items)==null?void 0:N.length)===0?(c(),m("div",gt,[o(s)])):k("v-if",!0)],64)}var kt=w(ht,[["render",bt],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/RecentPanel.vue"]]);const wt="https://webhook.acedata.cloud/flux",xt=x({name:"FluxIndex",components:{ConfigPanel:Ke,Layout:we,RecentPanel:kt},data(){return{task:void 0,job:0,timer:void 0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.flux)==null?void 0:e.status)==null?void 0:t.getApplications)===oe.Request},credential(){var e;return(e=this.$store.state.flux)==null?void 0:e.credential},config(){var e;return(e=this.$store.state.flux)==null?void 0:e.config},application(){var e;return(e=this.$store.state.flux)==null?void 0:e.application},tasks(){var e;return(e=this.$store.state.flux)==null?void 0:e.tasks}},watch:{tasks:{handler(e,t){var a,r;((a=e==null?void 0:e.items)==null?void 0:a.length)>((r=t==null?void 0:t.items)==null?void 0:r.length)&&console.debug("new tasks detected")},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job),clearInterval(this.timer)},methods:{async onReachTop(){var e,t,a;console.debug("reached top"),await this.onGetTasks({createdAtMax:(a=(t=(e=this.tasks)==null?void 0:e.items)==null?void 0:t[0])==null?void 0:a.created_at})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("flux/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("flux/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".tasks");e&&(e.scrollTop=e.scrollHeight)},1e3)},async onGetTasks(e){if(this.loading){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:t=5,createdAtMin:a,createdAtMax:r}=e||{};console.debug("limit",t,"createdAtMin",a,"createdAtMax",r),await this.$store.dispatch("flux/getTasks",{limit:t,createdAtMin:a,createdAtMax:r})},async onGenerate(){var a;const e={...this.config,callback_url:wt},t=(a=this.credential)==null?void 0:a.token;if(!t){console.error("no token specified");return}E.info(this.$t("flux.message.startingTask")),se.generate(e,{token:t}).then(()=>{E.success(this.$t("flux.message.startTaskSuccess"))}).catch(r=>{var h,u,d;const f=(h=r==null?void 0:r.response)==null?void 0:h.data;((u=f==null?void 0:f.error)==null?void 0:u.code)===ne?E.error(this.$t("flux.message.usedUp")):E.error(this.$t("flux.message.startTaskFailed")+((d=f==null?void 0:f.error)==null?void 0:d.message))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function yt(e,t,a,r,f,h){const u=n("config-panel"),d=n("recent-panel"),s=n("layout");return c(),D(s,null,{config:g(()=>[o(u,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:g(()=>[o(d,{onReachTop:e.onReachTop},null,8,["onReachTop"])]),_:1})}var Rt=w(xt,[["render",yt],["__file","/home/runner/work/Nexior/Nexior/src/pages/flux/Index.vue"]]);export{Rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.497786c5.js";import{_ as E,H as B,J as T}from"./index.57238893.js";import{I as D}from"./credential.26787c24.js";import{P as N}from"./Pagination.2c1efc73.js";import{C as P}from"./CopyToClipboard.9a7d0eb5.js";import{C as x,A as F,u as I,B as L,b as S,D as O,F as R}from"./vendor-element-plus.c621637c.js";import{H as U,al as i,av as V,L as c,M as a,o as _,V as n,f as s,T as l,O as q,S as y,R as g,e as M}from"./vendor-@vue.77dbb81d.js";import"./vendor-markdown.80bdb044.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.44a9e66b.js";import"./vendor-fortawesome.69508e20.js";const z=U({name:"ConsoleApplicationList",components:{Pagination:N,CopyToClipboard:P,ElTable:x,ElRow:F,ElButton:I,ElCol:L,ElTag:S,ElTableColumn:O,ElCard:R},data(){return{credentialType:D,applications:[],loading:!1,total:void 0,buying:!1,limit:10,form:{amount:1},active:{service:void 0,application:void 0}}},computed:{redirect(){var e;return(e=this.$route.query)==null?void 0:e.redirect},page(){var e;return parseInt(((e=this.$route.query.page)==null?void 0:e.toString())||"1")}},watch:{page:{handler(){this.onFetchData()}},type:{handler(){this.onFetchData()}}},mounted(){this.onFetchData()},methods:{onBuyMore(e){this.$router.push({name:B,params:{id:e.id}})},onPageChange(e){var d;this.$router.push({name:(d=this.$route.name)==null?void 0:d.toString(),query:{...this.$route.query,page:e}})},onFetchData(){this.loading=!0,T.getAll({limit:this.limit,offset:(this.page-1)*this.limit,user_id:this.$store.getters.user.id,ordering:"-created_at"}).then(({data:e})=>{this.applications=e.items,this.loading=!1,this.total=e.count}).catch(()=>{this.loading=!1})},getRemainingAmount(e){var p,m;if(e.remaining_amount===void 0||e.remaining_amount===null)return"";const d=this.$t(`service.unit.${(p=e==null?void 0:e.service)==null?void 0:p.unit}s`);return`${(m=e.remaining_amount)==null?void 0:m.toFixed(6)} ${d}`},getUsedAmount(e){var p,m;if(e.used_amount===void 0||e.used_amount===null)return"";const d=this.$t(`service.unit.${(p=e==null?void 0:e.service)==null?void 0:p.unit}s`);return`${(m=e.used_amount)==null?void 0:m.toFixed(6)} ${d}`}}}),H={class:"title"},j={class:"copy"},J={key:0,class:"expired-at"},G={class:"float-right"},K={class:"pagination"};function Q(e,d,p,m,W,X){const f=i("el-col"),h=i("el-row"),$=i("copy-to-clipboard"),u=i("el-table-column"),v=i("el-tag"),b=i("el-button"),w=i("el-table"),C=i("el-card"),k=i("pagination"),A=V("loading");return _(),c(h,{class:"panel"},{default:a(()=>[n(f,{span:24},{default:a(()=>[n(h,null,{default:a(()=>[n(f,{span:24},{default:a(()=>[s("h2",H,l(e.$t("common.title.allApplications")),1)]),_:1})]),_:1}),n(h,null,{default:a(()=>[n(f,{span:24},{default:a(()=>[n(C,{shadow:"hover"},{default:a(()=>[q((_(),c(w,{data:e.applications,stripe:"","table-layout":"fixed","empty-text":e.$t("common.message.noData")},{default:a(()=>[n(u,{prop:"id",label:e.$t("application.field.id"),width:"280px","class-name":"text-center"},{default:a(t=>{var o;return[s("span",null,l(t.row.id),1),s("span",j,[n($,{content:(o=t==null?void 0:t.row)==null?void 0:o.id,class:"inline-block"},null,8,["content"])])]}),_:1},8,["label"]),n(u,{label:e.$t("application.field.type"),width:"80px"},{default:a(t=>{var o,r;return[((o=t.row)==null?void 0:o.type)==="Period"?(_(),c(v,{key:0,type:"success",effect:"dark"},{default:a(()=>[y(l(e.$t("application.type.period")),1)]),_:1})):g("v-if",!0),((r=t.row)==null?void 0:r.type)==="Usage"?(_(),c(v,{key:1,effect:"dark"},{default:a(()=>[y(l(e.$t("application.type.usage")),1)]),_:1})):g("v-if",!0)]}),_:1},8,["label"]),n(u,{label:e.$t("application.field.name"),width:"180px"},{default:a(t=>{var o,r;return[s("span",null,l((r=(o=t.row)==null?void 0:o.service)==null?void 0:r.title),1)]}),_:1},8,["label"]),n(u,{prop:"remaining_amount",label:e.$t("application.field.remainingAmount"),width:"160px","class-name":"text-center"},{default:a(t=>[s("span",null,l(e.getRemainingAmount(t.row)),1)]),_:1},8,["label"]),n(u,{prop:"used_amount",label:e.$t("application.field.usedAmount"),width:"160px","class-name":"text-center"},{default:a(t=>[s("span",null,l(e.getUsedAmount(t.row)),1)]),_:1},8,["label"]),n(u,{label:e.$t("application.field.expiredAt"),width:"200px"},{default:a(t=>[t.row.expired_at?(_(),M("span",J,l(e.$dayjs.format(t.row.expired_at)),1)):g("v-if",!0)]),_:1},8,["label"]),n(u,{fixed:"right",width:"120px"},{default:a(t=>{var o,r;return[s("div",G,[((o=t==null?void 0:t.row)==null?void 0:o.type)==="Period"||((r=t==null?void 0:t.row)==null?void 0:r.type)==="Usage"?(_(),c(b,{key:0,type:"primary",round:"",size:"small",onClick:Y=>e.onBuyMore(t==null?void 0:t.row)},{default:a(()=>[y(l(e.$t("application.button.buyMore")),1)]),_:2},1032,["onClick"])):g("v-if",!0)])]}),_:1})]),_:1},8,["data","empty-text"])),[[A,e.loading]])]),_:1})]),_:1})]),_:1}),n(h,null,{default:a(()=>[n(f,null,{default:a(()=>[s("div",K,[n(k,{"current-page":e.page,"page-size":e.limit,total:e.total,onChange:e.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}var ue=E(z,[["render",Q],["__scopeId","data-v-31a091d9"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/application/List.vue"]]);export{ue as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var S=Object.defineProperty;var T=(e,t,o)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var w=(e,t,o)=>(T(e,typeof t!="symbol"?t+"":t,o),o);import"./vendor-others.497786c5.js";import{I as D}from"./credential.26787c24.js";import{E as C,_ as N,J as L}from"./index.57238893.js";import{P as O}from"./Pagination.2c1efc73.js";import{C as B}from"./CopyToClipboard.9a7d0eb5.js";import{b as P,C as R,N as z,O as j,A as H,B as J,D as M,F as G}from"./vendor-element-plus.c621637c.js";import{H as K,al as i,av as Q,L as g,M as n,o as u,V as l,f as r,T as s,e as f,ai as $,U as b,O as W,S as X,R as Y}from"./vendor-@vue.77dbb81d.js";import"./vendor-markdown.80bdb044.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.44a9e66b.js";import"./vendor-fortawesome.69508e20.js";class Z{constructor(){w(this,"key","usage/apis")}async getAll(t){return await C.get(`/${this.key}/`,{params:t})}async get(t){return await C.get(`/${this.key}/${t}`)}}const x=new Z;const U=K({name:"ConsoleUsageList",components:{Pagination:O,ElTag:P,ElTable:R,ElSelect:z,ElOption:j,CopyToClipboard:B,ElRow:H,ElCol:J,ElTableColumn:M,ElCard:G},data(){var e,t;return{applicationId:(e=this.$route.query.application_id)==null?void 0:e.toString(),apiId:(t=this.$route.query.api_id)==null?void 0:t.toString(),applications:[],credentialType:D,apiUsages:[],loading:!1,total:void 0,limit:15}},computed:{redirect(){var e;return(e=this.$route.query)==null?void 0:e.redirect},page(){var e;return parseInt(((e=this.$route.query.page)==null?void 0:e.toString())||"1")},apis(){return this.applications.filter(e=>this.applicationId?e.id===this.applicationId:!0).map(e=>{var t;return(t=e.service)==null?void 0:t.apis}).flat()}},watch:{page:{handler(){this.onFetchApiUsages()}},type:{handler(){this.onFetchApiUsages()}}},mounted(){this.onFetchApplications(),this.onFetchApiUsages()},methods:{async onApiChange(e){var t;await this.$router.push({name:(t=this.$route.name)==null?void 0:t.toString(),query:{...this.$route.query,api_id:e}}),this.onFetchApiUsages()},async onApplicationChange(e){var t;await this.$router.push({name:(t=this.$route.name)==null?void 0:t.toString(),query:{...this.$route.query,application_id:e}}),this.onFetchApiUsages()},onPageChange(e){var t;this.$router.push({name:(t=this.$route.name)==null?void 0:t.toString(),query:{...this.$route.query,page:e}})},getRemainingAmount(e){var o,d;if(e.remaining_amount===void 0||e.remaining_amount===null)return"";const t=this.$t(`service.unit.${(o=e==null?void 0:e.service)==null?void 0:o.unit}s`);return`${(d=e.remaining_amount)==null?void 0:d.toFixed(6)} ${t}`},getUsedAmount(e){var o,d;if(e.used_amount===void 0||e.used_amount===null)return"";const t=this.$t(`service.unit.${(o=e==null?void 0:e.service)==null?void 0:o.unit}s`);return`${(d=e.used_amount)==null?void 0:d.toFixed(6)} ${t}`},getDeductedAmount(e){var o,d;if((e==null?void 0:e.deducted_amount)===void 0||(e==null?void 0:e.deducted_amount)===null)return"";const t=this.$t(`service.unit.${(o=e==null?void 0:e.service)==null?void 0:o.unit}s`);return`${(d=e.deducted_amount)==null?void 0:d.toFixed(6)} ${t}`},onFetchApplications(){L.getAll({limit:100,offset:0,user_id:this.$store.getters.user.id,ordering:"-created_at"}).then(({data:e})=>{this.applications=e.items,this.total=e.count}).catch(()=>{})},onFetchApiUsages(){this.loading=!0,x.getAll({limit:this.limit,offset:(this.page-1)*this.limit,user_id:this.$store.getters.user.id,ordering:"-created_at",...this.applicationId?{application_id:this.applicationId}:{},...this.apiId?{api_id:this.apiId}:{}}).then(({data:e})=>{this.apiUsages=e.items,this.loading=!1,this.total=e.count}).catch(()=>{this.loading=!1})}}}),ee={class:"title"},te={class:"inline-block mr-3"},ae={class:"inline-block mr-3"},ne={class:"key"},le={key:0,class:"copy"},oe={class:"created-at"},ie={class:"pagination"};function se(e,t,o,d,re,de){const A=i("help-entry"),h=i("el-col"),m=i("el-row"),y=i("el-option"),v=i("el-select"),p=i("el-table-column"),I=i("el-tag"),k=i("copy-to-clipboard"),F=i("el-table"),V=i("el-card"),q=i("pagination"),E=Q("loading");return u(),g(m,{class:"panel"},{default:n(()=>[l(A,{class:"help"}),l(h,{span:24},{default:n(()=>[l(m,null,{default:n(()=>[l(h,{span:24},{default:n(()=>[r("h2",ee,s(e.$t("common.title.allUsages")),1)]),_:1})]),_:1}),l(m,null,{default:n(()=>[l(h,{md:8,sm:12,class:"mb-4"},{default:n(()=>[r("span",te,s(e.$t("usage.field.application")),1),l(v,{modelValue:e.applicationId,"onUpdate:modelValue":t[0]||(t[0]=a=>e.applicationId=a),placeholder:e.$t("usage.field.application"),clearable:"",onChange:e.onApplicationChange},{default:n(()=>[(u(!0),f(b,null,$(e.applications,a=>{var c;return u(),g(y,{key:a.id,label:(c=a.service)==null?void 0:c.title,value:a==null?void 0:a.id},null,8,["label","value"])}),128))]),_:1},8,["modelValue","placeholder","onChange"])]),_:1}),l(h,{md:8,sm:12,class:"mb-4"},{default:n(()=>[r("span",ae,s(e.$t("usage.field.api")),1),l(v,{modelValue:e.apiId,"onUpdate:modelValue":t[1]||(t[1]=a=>e.apiId=a),placeholder:e.$t("usage.field.api"),clearable:"",onChange:e.onApiChange},{default:n(()=>[(u(!0),f(b,null,$(e.apis,a=>(u(),g(y,{key:a==null?void 0:a.id,label:a==null?void 0:a.title,value:a==null?void 0:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","onChange"])]),_:1})]),_:1}),l(m,null,{default:n(()=>[l(h,{span:24},{default:n(()=>[l(V,{shadow:"hover"},{default:n(()=>[W((u(),g(F,{data:e.apiUsages,stripe:"","table-layout":"fixed","empty-text":e.$t("common.message.noData")},{default:n(()=>[l(p,{label:e.$t("application.field.name"),width:"160px"},{default:n(a=>{var c,_;return[r("span",null,s((_=(c=a.row)==null?void 0:c.api)==null?void 0:_.title),1)]}),_:1},8,["label"]),l(p,{label:e.$t("usage.field.statusCode"),width:"120px"},{default:n(a=>[r("span",null,s(a.row.status_code),1)]),_:1},8,["label"]),l(p,{prop:"remaining_amount",label:e.$t("usage.field.remainingAmount"),width:"160px","class-name":"text-center"},{default:n(a=>[r("span",null,s(e.getRemainingAmount(a.row)),1)]),_:1},8,["label"]),l(p,{prop:"deducted_amount",label:e.$t("usage.field.deductedAmount"),width:"150px","class-name":"text-center"},{default:n(a=>[r("span",null,s(e.getDeductedAmount(a.row)),1)]),_:1},8,["label"]),l(p,{prop:"metadata",label:e.$t("usage.field.metadata"),width:"200px","class-name":"text-center"},{default:n(a=>[(u(!0),f(b,null,$(a.row.metadata,(c,_)=>(u(),g(I,{key:_,class:"mb-2"},{default:n(()=>[X(s(_)+": "+s(c),1)]),_:2},1024))),128))]),_:1},8,["label"]),l(p,{prop:"trace_id",label:e.$t("application.field.traceId"),width:"200px","class-name":"text-center"},{default:n(a=>[r("span",ne,s(a.row.trace_id),1),a.row.trace_id?(u(),f("span",le,[l(k,{content:a.row.trace_id,class:"inline-block"},null,8,["content"])])):Y("v-if",!0)]),_:1},8,["label"]),l(p,{label:e.$t("usage.field.createdAt"),width:"200px"},{default:n(a=>[r("span",oe,s(e.$dayjs.format(a.row.created_at)),1)]),_:1},8,["label"])]),_:1},8,["data","empty-text"])),[[E,e.loading]])]),_:1})]),_:1})]),_:1}),l(m,null,{default:n(()=>[l(h,null,{default:n(()=>[r("div",ie,[l(q,{"current-page":e.page,"page-size":e.limit,total:e.total,onChange:e.onPageChange},null,8,["current-page","page-size","total","onChange"])])]),_:1})]),_:1})]),_:1})]),_:1})}var we=N(U,[["render",se],["__scopeId","data-v-1d3a6fa8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/console/usage/List.vue"]]);export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.wrapper[data-v-63155678]{width:100%;height:100%;display:flex;flex-direction:row-reverse;overflow:hidden}.wrapper .navigator[data-v-63155678]{height:100%;border-right:1px solid var(--el-border-color)}.wrapper .main[data-v-63155678]{height:100%;width:calc(100% - 60px);flex:1}@media (max-width: 767px){.wrapper[data-v-63155678]{width:100%;height:100%;display:flex;flex-direction:column}.wrapper .main[data-v-63155678]{height:calc(100% - 60px);width:100%;flex:1}.wrapper .navigator[data-v-63155678]{width:100%;height:60px}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.497786c5.js";import{N as u}from"./Navigator.421fc502.js";import{A as d}from"./Status.6c1095c5.js";import{_ as h,N as i,J as v,O as $}from"./index.57238893.js";import{y as o}from"./vendor-element-plus.c621637c.js";import{H as f,al as s,e as g,V as n,L as N,R as y,o as r}from"./vendor-@vue.77dbb81d.js";import"./vendor-markdown.80bdb044.js";import"./vendor-fortawesome.69508e20.js";import"./EditArray.dfdf77cd.js";import"./CopyToClipboard.9a7d0eb5.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.44a9e66b.js";const _=f({name:"LayoutMain",components:{Navigator:u,ApplicationStatus:d},data(){return{mobile:window.innerWidth<768}},computed:{appName(){return this.$route.meta.appName},initializing(){var t;return((t=this.$store.state[this.appName])==null?void 0:t.status.getApplications)===i.Request},needApply(){var t;return((t=this.$store.state[this.appName])==null?void 0:t.status.getApplications)===i.Success&&!this.application},application(){var t;return(t=this.$store.state[this.appName])==null?void 0:t.application},applications(){var t;return(t=this.$store.state[this.appName])==null?void 0:t.applications},loading(){var t,e;return((e=(t=this.$store.state[this.appName])==null?void 0:t.status)==null?void 0:e.getApplications)===i.Request},service(){var t;return(t=this.$store.state[this.appName])==null?void 0:t.service}},mounted(){window.addEventListener("resize",()=>{this.mobile=window.innerWidth<768})},methods:{onApply(){v.create({application:this.application}).then(({data:t})=>{this.application=t,o.success(this.$t("application.message.applySuccessfully"))}).catch(t=>{var e,a;((a=(e=t==null?void 0:t.response)==null?void 0:e.data)==null?void 0:a.code)===$&&o.error(this.$t("application.message.alreadyApplied"))})}}}),A={class:"wrapper"};function w(t,e,a,R,k,z){const l=s("router-view"),c=s("navigator"),m=s("application-status");return r(),g("div",A,[n(l,{class:"main"}),n(c,{class:"navigator",direction:t.mobile?"row":"column"},null,8,["direction"]),t.application?(r(),N(m,{key:0,class:"fixed right-2 top-2",application:t.application,applications:t.applications,initializing:t.initializing,"show-price":!1,authenticated:!!t.$store.state.token.access,service:t.service,"need-apply":t.needApply,onSelect:e[0]||(e[0]=p=>t.$store.dispatch(`${t.appName}/setApplication`,p)),onRefresh:e[1]||(e[1]=p=>t.$store.dispatch(`${t.appName}/getApplications`)),onApply:t.onApply},null,8,["application","applications","initializing","authenticated","service","need-apply","onApply"])):y("v-if",!0)])}var W=h(_,[["render",w],["__scopeId","data-v-63155678"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Main.vue"]]);export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.content[data-v-666cd2fe]{padding:10px 40px}.content .policy[data-v-666cd2fe]{margin-bottom:10px}.content .policy .policy-checkbox[data-v-666cd2fe]{margin-right:10px!important}.content .policy .policy-title[data-v-666cd2fe]{font-size:12px;position:relative;bottom:3px}.content .policy .policy-title.highlight[data-v-666cd2fe]{color:var(--el-color-primary);cursor:pointer;text-decoration:none}.table[data-v-4600b314]{width:80%;max-width:1200px}.info[data-v-7ffaebbd]{font-size:13px;color:var(--el-text-color-primary);text-align:center;line-height:28px}.subtitle[data-v-7ffaebbd]{font-size:12px;color:var(--el-text-color-secondary)}.element[data-v-2941d97e]{margin-bottom:10px}.shimmer[data-v-2941d97e]{width:300px;margin:auto}.status[data-v-2941d97e]{display:block;width:-moz-fit-content;width:fit-content;margin:auto}.status .el-icon[data-v-2941d97e]{position:relative;top:.2em}.status .el-dropdown[data-v-2941d97e]{line-height:20px}.applications .item[data-v-2941d97e]{cursor:pointer;padding:20px;background-color:var(--el-bg-color);border-radius:15px;border:1px solid var(--el-border-color-lighter);display:flex;align-items:center;gap:20px}.applications .item .icon[data-v-2941d97e]{visibility:hidden}.applications .item.active .icon[data-v-2941d97e]{visibility:visible}.applications .item[data-v-2941d97e]:hover{background-color:var(--el-bg-color-page)}.applications .item .icon[data-v-2941d97e]{color:var(--el-color-white);font-size:20px;background-color:var(--el-color-primary);border-radius:50%;padding:5px}.actions[data-v-2941d97e]{margin:0 5px;display:inline-block}@media (max-width: 767px){.actions[data-v-2941d97e]{display:block;margin:5px auto 0;width:-moz-fit-content;width:fit-content}}.actions .el-button[data-v-2941d97e],.btn-apply[data-v-2941d97e]{border-radius:20px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.497786c5.js";import{D as G,_ as A,I as W,H as X,P as Y,J as Z,O as x}from"./index.57238893.js";import{E as S,J as j,K as q,l as ee,P as te,u as B,y as P,C as oe,D as ie,b as ne,Q as le,H as ae,R as se,k as pe}from"./vendor-element-plus.c621637c.js";import{H as C,al as o,o as a,L as f,M as n,f as c,V as i,S as m,T as l,e as v,U as z,ai as F,R as h,P as re,$ as ce}from"./vendor-@vue.77dbb81d.js";import{C as de}from"./CopyToClipboard.9a7d0eb5.js";import{ar as ue}from"./vendor-fortawesome.69508e20.js";const me=C({name:"ApplicationConfirm",components:{ElDialog:S,ElDescriptions:j,ElDescriptionsItem:q,ElDivider:ee,ElCheckbox:te,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:G,onApply(){if(!this.checked){P.error(this.$t("application.message.notAgreePolicy"));return}this.$emit("apply")}}}),fe={class:"content"},_e={class:"policy"},ye={class:"policy-title"},ve=["href"];function he(e,t,d,g,w,I){const r=o("el-descriptions-item"),b=o("el-descriptions"),_=o("el-divider"),$=o("el-checkbox"),s=o("el-button"),u=o("el-dialog");return a(),f(u,{"model-value":e.visible,width:"500px",title:e.$t("application.message.confirmApplying"),center:"",onClose:t[1]||(t[1]=p=>e.$emit("update:visible",!1))},{default:n(()=>[c("div",fe,[i(b,{column:1},{default:n(()=>[i(r,{label:e.$t("application.field.name")},{default:n(()=>{var p;return[m(l((p=e.service)==null?void 0:p.title),1)]}),_:1},8,["label"]),i(r,{label:e.$t("application.field.freeAmount")},{default:n(()=>{var p,k;return[c("span",null,l((p=e.service)==null?void 0:p.free_amount)+" "+l(e.$t(`service.unit.${(k=e.service)==null?void 0:k.unit}`)),1)]}),_:1},8,["label"])]),_:1}),i(_,{class:"my-2"}),c("div",_e,[i($,{modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=p=>e.checked=p),size:"large",class:"policy-checkbox"},null,8,["modelValue"]),c("span",ye,l(e.$t("application.message.readPolicy")),1),c("a",{class:"policy-title highlight",target:"_blank",href:e.getBaseUrlPlatform()+"/terms"}," \xA0"+l(e.$t("application.message.policy")),9,ve)]),i(s,{round:"",type:"primary",onClick:e.onApply},{default:n(()=>[m(l(e.$t("common.button.apply")),1)]),_:1},8,["onClick"])])]),_:1},8,["model-value","title"])}var be=A(me,[["render",he],["__scopeId","data-v-666cd2fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Confirm.vue"]]);const $e=C({name:"ApiPrice",components:{ElTable:oe,ElTableColumn:ie,ElDialog:S,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({rowIndex:e,columnIndex:t}){if(this.spans){for(const d of this.spans)if(e===d[0]&&t===d[1])return[d[2],d[3]]}return[1,1]}}});function ke(e,t,d,g,w,I){const r=o("el-table-column"),b=o("el-table"),_=o("el-dialog"),$=o("el-button");return a(),v("div",null,[i(_,{modelValue:e.visible,"onUpdate:modelValue":t[0]||(t[0]=s=>e.visible=s),center:"",width:"80%"},{default:n(()=>[i(b,{data:e.data,stripe:"","span-method":e.spanMethod,"header-cell-style":e.cellStyle,"cell-style":e.cellStyle},{default:n(()=>[(a(!0),v(z,null,F(e.columns,(s,u)=>(a(),f(r,{key:u,prop:s.key,label:s.label},null,8,["prop","label"]))),128))]),_:1},8,["data","span-method","header-cell-style","cell-style"])]),_:1},8,["modelValue"]),i($,{round:"",size:"small",onClick:t[1]||(t[1]=s=>e.visible=!0)},{default:n(()=>[m(l(e.$t("service.button.pricing")),1)]),_:1})])}var ge=A($e,[["render",ke],["__scopeId","data-v-4600b314"],["__file","/home/runner/work/Nexior/Nexior/src/components/api/Price.vue"]]);const Ae=C({name:"ApplicationInfo",components:{ElTag:ne,CopyToClipboard:de,ElDescriptions:j,ElDescriptionsItem:q},props:{application:{type:Object,required:!0},showType:{type:Boolean,default:!1},showId:{type:Boolean,default:!1}}});function Ce(e,t,d,g,w,I){const r=o("el-descriptions-item"),b=o("copy-to-clipboard"),_=o("el-tag"),$=o("el-descriptions");return a(),f($,{column:1,class:"flex flex-col"},{default:n(()=>[i(r,{label:e.$t("application.field.serviceName")},{default:n(()=>{var s;return[m(l((s=e.application.service)==null?void 0:s.title),1)]}),_:1},8,["label"]),i(r,{label:e.$t("application.field.id")},{default:n(()=>[c("span",null,l(e.application.id),1),e.application.id?(a(),f(b,{key:0,content:e.application.id},null,8,["content"])):h("v-if",!0)]),_:1},8,["label"]),i(r,{label:e.$t("application.field.type")},{default:n(()=>[e.application.type==="Period"?(a(),f(_,{key:0,effect:"dark",round:""},{default:n(()=>[m(l(e.$t("application.type.period")),1)]),_:1})):h("v-if",!0),e.application.type==="Usage"?(a(),f(_,{key:1,effect:"dark",round:""},{default:n(()=>[m(l(e.$t("application.type.usage")),1)]),_:1})):h("v-if",!0)]),_:1},8,["label"]),e.application.type==="Period"?(a(),f(r,{key:0,label:e.$t("application.field.expiredAt")},{default:n(()=>[m(l(e.$dayjs.format(e.application.expired_at)),1)]),_:1},8,["label"])):h("v-if",!0),i(r,{label:e.$t("application.field.remainingAmount")},{default:n(()=>{var s,u,p,k;return[m(l((u=(s=e.application)==null?void 0:s.remaining_amount)==null?void 0:u.toFixed(6))+" "+l(e.$t("service.unit."+((k=(p=e.application)==null?void 0:p.service)==null?void 0:k.unit)+"s")),1)]}),_:1},8,["label"])]),_:1})}var we=A(Ae,[["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,Check:le,ElDialog:S,FontAwesomeIcon:ue,ApplicationInfo:we,ApplicationConfirm:be,ElSkeleton:ae,ElSkeletonItem:se,ApiPrice:ge,ElIcon:pe},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{showInfo:!1,confirming:this.needApply,applicationType:W}},computed:{authenticated(){return!!this.$store.state.token.access},user(){return this.$store.state.user}},watch:{needApply(e){e&&(this.confirming=e)}},methods:{onBuyMore(e){const t=this.$router.resolve({name:X,params:{id:e.id}}).href;window.open(t,"_blank")},onCreateCredential(e){Y.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;Z.create({service_id:(e=this.service)==null?void 0:e.id}).then(({data:t})=>{P.success(this.$t("application.message.applySuccessfully")),this.onCreateCredential(t)}).catch(t=>{var d,g;((g=(d=t==null?void 0:t.response)==null?void 0:d.data)==null?void 0:g.code)===x&&P.error(this.$t("application.message.alreadyApplied")),this.confirming=!1})}}}),Ee={class:"element"},Pe={key:0},Se={key:1,class:"status"},Be={class:"text-left mb-4"},Ve={class:"applications flex flex-col gap-2 mb-6"},Ne=["onClick"],Oe={class:"actions"},Te={key:0,class:"text-center info"},Ue={class:"mr-2"},De={class:"ml-1"};function Me(e,t,d,g,w,I){const r=o("el-skeleton-item"),b=o("el-skeleton"),_=o("check"),$=o("el-icon"),s=o("application-info"),u=o("el-button"),p=o("api-price"),k=o("el-dialog"),L=o("font-awesome-icon"),H=o("el-tooltip"),J=o("application-confirm");return a(),v("div",Ee,[i(k,{modelValue:e.showInfo,"onUpdate:modelValue":t[1]||(t[1]=y=>e.showInfo=y),width:"600px"},{default:n(()=>{var y,V,N,O,T,U,D,M;return[e.initializing&&e.application===void 0?(a(),v("div",Pe,[i(b,{rows:1,class:"text-center"},{template:n(()=>[i(r,{variant:"p",class:"shimmer"})]),_:1})])):e.application?(a(),v("div",Se,[c("p",Be,l(e.$t("application.message.applicationSelection")),1),c("div",Ve,[(a(!0),v(z,null,F(e.applications,(E,K)=>{var R;return a(),v("div",{key:K,class:re({item:!0,active:((R=e.application)==null?void 0:R.id)===E.id}),onClick:Q=>e.onSelectApplication(E)},[i($,{class:"icon"},{default:n(()=>[i(_)]),_:1}),i(s,{application:E,"show-type":!0,"show-id":!0},null,8,["application"]),i(u,{round:"",type:"primary",onClick:t[0]||(t[0]=ce(Q=>e.onBuyMore(e.application),["stop"]))},{default:n(()=>[m(l(e.$t("common.button.buyMore")),1)]),_:1})],10,Ne)}),128))]),c("span",Oe,[e.showPrice&&((O=(N=(V=(y=e.application)==null?void 0:y.service)==null?void 0:V.apis)==null?void 0:N[0])==null?void 0:O.price)?(a(),f(p,{key:0,class:"price inline-block",price:(M=(D=(U=(T=e.application)==null?void 0:T.service)==null?void 0:U.apis)==null?void 0:D[0])==null?void 0:M.price},null,8,["price"])):h("v-if",!0)])])):h("v-if",!0)]}),_:1},8,["modelValue"]),i(H,{effect:"dark",placement:"top-start"},{default:n(()=>[i(u,{circle:"",onClick:t[2]||(t[2]=y=>e.showInfo=!0)},{default:n(()=>[i(L,{icon:"fa-solid fa-wallet",class:"icon"})]),_:1})]),_:1}),e.needApply&&e.service?(a(),v("div",Te,[c("span",Ue,l(e.$t("chat.message.notApplied")),1),c("span",null,[i(u,{round:"",type:"primary",class:"btn btn-apply",size:"small",onClick:t[3]||(t[3]=y=>e.confirming=!0)},{default:n(()=>[m(l(e.$t("common.button.apply")),1)]),_:1})]),c("span",De,l(e.$t("chat.message.tryForFree")),1),e.service&&e.authenticated?(a(),f(J,{key:0,modelValue:e.confirming,"onUpdate:modelValue":t[4]||(t[4]=y=>e.confirming=y),modelModifiers:{visible:!0},service:e.service,onApply:e.onApply},null,8,["modelValue","service","onApply"])):h("v-if",!0)])):h("v-if",!0)])}var He=A(Ie,[["render",Me],["__scopeId","data-v-2941d97e"],["__file","/home/runner/work/Nexior/Nexior/src/components/application/Status.vue"]]);export{He as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={"type.period":{message:"\u5468\u671F",description:"\u670D\u52A1\u7684\u5468\u671F\u3002"},"type.usage":{message:"\u989D\u5EA6",description:"\u670D\u52A1\u7684\u989D\u5EA6\u3002"},"field.expiredAt":{message:"\u8FC7\u671F\u65F6\u95F4",description:"\u7533\u8BF7\u7684\u8FC7\u671F\u65F6\u95F4\u3002"},"button.goDocument":{message:"\u6587\u6863",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u6587\u6863\u9875\u9762\u3002"},"button.goCredentials":{message:"\u51ED\u636E",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u51ED\u636E\u9875\u9762\u3002"},"button.buyMore":{message:"\u8D2D\u4E70\u66F4\u591A",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u8D2D\u4E70\u66F4\u591A\u9875\u9762\u3002"},"button.createOrder":{message:"\u521B\u5EFA\u8BA2\u5355",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u521B\u5EFA\u8BA2\u5355\u9875\u9762\u3002"},"button.custom":{message:"\u81EA\u5B9A\u4E49",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u81EA\u5B9A\u4E49\u9875\u9762\u3002"},"button.query":{message:"\u67E5\u8BE2",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u67E5\u8BE2\u9875\u9762\u3002"},"button.usage":{message:"\u4F7F\u7528\u8BB0\u5F55",description:"\u6309\u94AE\u6587\u672C\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5C06\u8F6C\u5230\u4F7F\u7528\u8BB0\u5F55\u9875\u9762\u3002"},"field.serviceName":{message:"\u670D\u52A1\u540D\u79F0",description:"\u670D\u52A1\u7684\u540D\u79F0\u3002"},"field.application":{message:"\u7533\u8BF7",description:"\u670D\u52A1\u7684\u7533\u8BF7\u3002"},"field.status":{message:"\u72B6\u6001",description:"\u7533\u8BF7\u7684\u72B6\u6001\u3002"},"field.id":{message:"\u7533\u8BF7ID",description:"\u7533\u8BF7\u7684ID\u3002"},"field.remainingAmount":{message:"\u5269\u4F59\u989D\u5EA6",description:"\u7533\u8BF7\u7684\u5269\u4F59\u989D\u5EA6\u3002"},"field.usedAmount":{message:"\u5DF2\u4F7F\u7528\u989D\u5EA6",description:"\u7533\u8BF7\u7684\u5DF2\u4F7F\u7528\u989D\u5EA6\u3002"},"field.apiKey":{message:"API\u5BC6\u94A5",description:"API\u5BC6\u94A5\u3002"},"field.service":{message:"\u670D\u52A1",description:"\u7533\u8BF7\u7684\u670D\u52A1\u3002"},"field.operation":{message:"\u64CD\u4F5C",description:"\u7533\u8BF7\u7684\u64CD\u4F5C\u3002"},"field.amount":{message:"\u6570\u91CF",description:"\u7533\u8BF7\u7684\u6570\u91CF\u3002"},"field.traceId":{message:"\u8DDF\u8E2AID",description:"API\u670D\u52A1\u7684\u7533\u8BF7\u7684\u4E00\u4E2AAPI\u8C03\u7528\u7684\u8DDF\u8E2AID\uFF0C\u4E0D\u8981\u7FFB\u8BD1\uFF0C\u4FDD\u6301\u4E3A'\u8DDF\u8E2AID'\u3002"},"field.shouldPayPrice":{message:"\u6700\u7EC8\u4EF7\u683C",description:"\u7533\u8BF7\u7684\u6700\u7EC8\u4EF7\u683C\u3002"},"field.api":{message:"API",description:"\u8FD9\u662F\u4E00\u79CD\u5728\u7EBF\u670D\u52A1\uFF0C\u5F62\u5F0F\u662F\u901A\u8FC7API\u5411\u7528\u6237\u63D0\u4F9B\u670D\u52A1\u3002"},"field.proxy":{message:"\u4EE3\u7406",description:"\u8FD9\u662F\u4E00\u79CD\u5728\u7EBF\u670D\u52A1\uFF0C\u5F62\u5F0F\u662F\u901A\u8FC7HTTP\u4EE3\u7406\uFF08\u7528\u4E8E\u4F20\u8F93\u6570\u636E\uFF09\u5411\u7528\u6237\u63D0\u4F9B\u670D\u52A1\u3002"},"field.credential":{message:"\u51ED\u636E",description:"\u7533\u8BF7\u7684\u51ED\u636E\u3002"},"field.name":{message:"\u540D\u79F0",description:"\u7533\u8BF7\u7684\u540D\u79F0\u3002"},"field.package":{message:"\u5957\u9910",description:"\u5957\u9910\u8868\u793A\u4E0D\u540C\u7684\u4EF7\u683C\u5957\u9910\uFF0C\u6BD4\u5982100\u7F8E\u5143\u53EF\u83B7\u5F9710000\u79EF\u5206\uFF0C200\u7F8E\u5143\u53EF\u83B7\u5F9720000\u79EF\u5206\u3002"},"field.type":{message:"\u7C7B\u578B",description:"\u7533\u8BF7\u7684\u7C7B\u578B\u3002"},"field.freeAmount":{message:"\u514D\u8D39\u6570\u91CF",description:"\u7533\u8BF7\u7684\u514D\u8D39\u6570\u91CF\u3002"},"field.extraPrice":{message:"\u4EF7\u683C",description:"\u7528\u6237\u5E94\u652F\u4ED8\u7684\u7533\u8BF7\u7684\u989D\u5916\u4EF7\u683C\u3002"},"message.alreadyApplied":{message:"\u60A8\u5DF2\u7ECF\u7533\u8BF7\u4E86\u6B64\u670D\u52A1\uFF0C\u8BF7\u67E5\u770B\u63A7\u5236\u53F0",description:"\u5F53\u7528\u6237\u5DF2\u7ECF\u7533\u8BF7\u4E86\u6B64\u670D\u52A1\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.applySuccessfully":{message:"\u7533\u8BF7\u6210\u529F",description:"\u5F53\u7528\u6237\u6210\u529F\u7533\u8BF7\u4E86\u6B64\u670D\u52A1\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.notApplied":{message:"\u60A8\u5C1A\u672A\u7533\u8BF7\u6B64\u670D\u52A1\uFF0C\u8BF7\u5728\u4F7F\u7528\u4E4B\u524D\u7533\u8BF7\u8BE5\u670D\u52A1",description:"\u5F53\u7528\u6237\u5C1A\u672A\u7533\u8BF7\u6B64\u670D\u52A1\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.yourApplication":{message:"\u60A8\u7684\u7533\u8BF7",description:"\u5F53\u7528\u6237\u7684\u7533\u8BF7\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.unverified":{message:"\u60A8\u9700\u8981\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u540E\u624D\u80FD\u7533\u8BF7\u6B64\u670D\u52A1",description:"\u5F53\u7528\u6237\u5C1A\u672A\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.goVerify":{message:"\u524D\u5F80\u5B9E\u540D\u8BA4\u8BC1",description:"\u5F53\u7528\u6237\u5C1A\u672A\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.requiredParameter":{message:"\u5FC5\u586B\u53C2\u6570",description:"\u5F53\u7528\u6237\u5C1A\u672A\u8F93\u5165\u5FC5\u586B\u53C2\u6570\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.example":{message:"\u793A\u4F8B",description:"\u5F53\u7528\u6237\u5C1A\u672A\u8F93\u5165\u5FC5\u586B\u53C2\u6570\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.applicationSelection":{message:"\u4EE5\u4E0B\u662F\u60A8\u5F53\u524D\u7533\u8BF7\u6216\u8D2D\u4E70\u7684\u5957\u9910\uFF0C\u60A8\u53EF\u4EE5\u4EFB\u9009\u4E00\u4E2A\u5957\u9910\u6765\u7EE7\u7EED\u4F7F\u7528\u670D\u52A1\u3002",description:"\u5F53\u7528\u6237\u9700\u8981\u9009\u62E9\u4E00\u4E2A\u7533\u8BF7\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.createCredentialSuccessfully":{message:"\u6210\u529F\u521B\u5EFA\u51ED\u636E",description:"\u5F53\u7528\u6237\u6210\u529F\u521B\u5EFA\u51ED\u636E\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.readPolicy":{message:"\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F",description:"\u5F53\u7528\u6237\u5DF2\u9605\u8BFB\u5E76\u540C\u610F\u653F\u7B56\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.policy":{message:"\u6570\u636E\u6280\u672F\u670D\u52A1\u4F7F\u7528\u534F\u8BAE",description:"\u5F53\u7528\u6237\u5DF2\u9605\u8BFB\u5E76\u540C\u610F\u653F\u7B56\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.notAgreePolicy":{message:"\u60A8\u5C1A\u672A\u540C\u610F\u6570\u636E\u6280\u672F\u670D\u52A1\u4F7F\u7528\u534F\u8BAE",description:"\u5F53\u7528\u6237\u5C1A\u672A\u540C\u610F\u653F\u7B56\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.confirmApplying":{message:"\u786E\u8BA4\u670D\u52A1\u7533\u8BF7",description:"\u5F53\u7528\u6237\u786E\u8BA4\u670D\u52A1\u7533\u8BF7\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.rotateCredential":{message:"\u91CD\u7F6E\u5BC6\u94A5",description:"\u5F53\u7528\u6237\u91CD\u7F6E\u5BC6\u94A5\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.rotateCredentialConfirm":{message:"\u60A8\u786E\u5B9A\u8981\u91CD\u7F6E\u5BC6\u94A5\u5417\uFF1F\u91CD\u7F6E\u540E\u5C06\u65E0\u6CD5\u6062\u590D",description:"\u5F53\u7528\u6237\u786E\u8BA4\u91CD\u7F6E\u5BC6\u94A5\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.idDoesNotExist":{message:"\u7533\u8BF7\u4E0D\u5B58\u5728",description:"\u5F53\u7533\u8BF7\u4E0D\u5B58\u5728\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.rotateCredentialSuccessfully":{message:"\u5BC6\u94A5\u91CD\u7F6E\u6210\u529F",description:"\u5F53\u5BC6\u94A5\u91CD\u7F6E\u6210\u529F\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.rotateCredentialFailed":{message:"\u5BC6\u94A5\u91CD\u7F6E\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u5904\u7406",description:"\u5F53\u5BC6\u94A5\u91CD\u7F6E\u5931\u8D25\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.updateFailed":{message:"\u4FEE\u6539\u5931\u8D25",description:"\u5F53\u4FEE\u6539\u5931\u8D25\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"message.updateSuccessfully":{message:"\u4FEE\u6539\u6210\u529F",description:"\u5F53\u4FEE\u6539\u6210\u529F\u65F6\u5411\u7528\u6237\u663E\u793A\u7684\u6D88\u606F\u3002"},"title.buyService":{message:"\u8D2D\u4E70\u670D\u52A1",description:"\u5F53\u7528\u6237\u60F3\u8981\u8D2D\u4E70\u670D\u52A1\u65F6\u9875\u9762\u7684\u6807\u9898\u3002"},"title.applicationRemainingCount":{message:"\u4FEE\u6539\u6570\u91CF",description:"\u5F53\u7528\u6237\u60F3\u8981\u4FEE\u6539\u7533\u8BF7\u6570\u91CF\u65F6\u9875\u9762\u7684\u6807\u9898\u3002"},"title.manageApplication":{message:"\u7533\u8BF7\u7BA1\u7406",description:"\u5F53\u7528\u6237\u60F3\u8981\u7BA1\u7406\u7533\u8BF7\u65F6\u9875\u9762\u7684\u6807\u9898\u3002"}};export{e as default};
|