HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy9.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(r,n,a,o){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return u(c,"_invoke",function(r,n,a){var o,l,u,s=0,c=a||[],f=!1,d={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return o=t,l=0,u=e,d.n=r,i}};function v(r,n){for(l=r,u=n,t=0;!f&&s&&!a&&t<c.length;t++){var a,o=c[t],v=d.p,p=o[2];r>3?(a=p===n)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=r<2&&v<o[1])?(l=0,d.v=n,d.n=o[1]):v<p&&(a=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,d.n=p,l=0))}if(a||r>1)return i;throw f=!0,n}return function(a,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&v(c,p),l=c,u=p;(t=l<2?e:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),v(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==i)break}catch(t){o=e,l=1,u=t}finally{s=1}}return{value:t,done:f}}}(r,a,o),!0),c}var i={};function s(){}function c(){}function f(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(u(t={},n,function(){return this}),t),v=f.prototype=s.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return c.prototype=f,u(v,"constructor",f),u(f,"constructor",c),c.displayName="GeneratorFunction",u(f,a,"GeneratorFunction"),u(v),u(v,a,"Generator"),u(v,n,function(){return this}),u(v,"toString",function(){return"[object Generator]"}),(l=function(){return{w:o,m:p}})()}function u(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}u=function(e,t,r,n){function o(t,r){u(e,t,function(e){return this._invoke(t,r,e)})}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},u(e,t,r,n)}function s(e,t,r,n,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,a)}function c(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){s(o,n,a,i,l,"next",e)}function l(e){s(o,n,a,i,l,"throw",e)}i(void 0)})}}System.register(["./index-legacy175.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./ai-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(e,n){"use strict";var a,i,u,s,f,d,v,p,y,h,m,g,b,w,k,_,x,j,A,O,S,I,C,P,W,T,E,V,G,F,U,B,D,M,z,L,N,J,q;return{setters:[function(e){a=e._},function(e){i=e.M,u=e.cZ,s=e.c,f=e.iA,d=e.iB,v=e.dp,p=e.a},function(e){y=e.c,h=e.r,m=e.o,g=e.j,b=e.k,w=e.q,k=e.F,_=e.B,x=e.e,j=e.v,A=e.L,O=e.s,S=e.y,I=e.x,C=e.bM,P=e.bk,W=e.z,T=e.g,E=e.R,V=e.J,G=e.K,F=e.ap,U=e.aI,B=e.p,D=e.C},function(e){M=e.h},function(e){z=e.k,L=e.l,N=e.m,J=e.n,q=e.o},null,null,null,null],execute:function(){var n={class:"flex flex-col h-full pt-[1rem]"},H={key:0,class:"flex-1"},K={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-[2rem]"},R={class:"flex justify-between items-start"},Z={class:"flex-1 flex flex-col"},$={key:1,class:"flex-1"},Q={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-[2rem]"},X=["onClick"],Y={class:"flex justify-between items-start"},ee={class:"text-[1.4rem] font-bold text-default mb-[1rem]"},te={class:"text-small text-secondary"},re={key:0,class:"w-[2rem] h-[2rem] bg-primary rounded-circle flex items-center justify-center text-white shrink-0"},ne={class:"flex justify-end mt-[3rem] gap-[1rem]"},ae=y({__name:"model-tab",setup:function(e){var r=h([]),a=h([]),u=h({}),s=h(!0),f=h(!1),d=h(!1),v=function(){var e=c(l().m(function e(){var t,n,o,c,f;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return s.value=!0,e.p=1,e.n=2,z({type:""});case 2:return n=e.v,(o=n.data).status&&null!==(t=o.data)&&void 0!==t&&t.config&&(u.value=o.data.config,a.value=o.data.config.models||[]),e.n=3,L();case 3:c=e.v,(f=c.data).status&&Array.isArray(f.data)&&(r.value=f.data.map(function(e){var t="其他";return e.startsWith("doubao")?t="字节跳动":e.startsWith("glm")?t="智谱AI":e.startsWith("deepseek")?t="DeepSeek":e.startsWith("kimi")?t="Moonshot":e.startsWith("gpt")||e.startsWith("o")?t="OpenAI":e.startsWith("claude")?t="Anthropic":e.startsWith("gemini")&&(t="Google"),{id:e,name:e,provider:t}})),e.n=5;break;case 4:e.p=4,e.v,i.error("加载配置失败");case 5:return e.p=5,s.value=!1,e.f(5);case 6:return e.a(2)}},e,null,[[1,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),p=function(){var e=c(l().m(function e(){var t,n;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return f.value=!0,e.p=1,e.n=2,L();case 2:t=e.v,(n=t.data).status&&Array.isArray(n.data)&&(r.value=n.data.map(function(e){var t="其他";return e.startsWith("doubao")?t="字节跳动":e.startsWith("glm")?t="智谱AI":e.startsWith("deepseek")?t="DeepSeek":e.startsWith("kimi")?t="Moonshot":e.startsWith("gpt")||e.startsWith("o")?t="OpenAI":e.startsWith("claude")?t="Anthropic":e.startsWith("gemini")&&(t="Google"),{id:e,name:e,provider:t}}),i.success("模型列表已刷新")),e.n=4;break;case 3:e.p=3,e.v,i.error("刷新模型列表失败");case 4:return e.p=4,f.value=!1,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),y=function(){var e=c(l().m(function e(){var t;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==a.value.length){e.n=1;break}return i.error("请至少选择一个模型"),e.a(2);case 1:return d.value=!0,e.p=2,t=o(o({},u.value),{},{models:a.value}),e.n=3,N({config:JSON.stringify(t)});case 3:e.v.status?(i.success("模型配置已保存"),u.value=t):i.error("保存失败"),e.n=5;break;case 4:e.p=4,e.v,i.error("保存配置失败");case 5:return e.p=5,d.value=!1,e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}();return m(function(){v()}),function(e,o){var i=C,l=P,u=W;return g(),b("div",n,[s.value?(g(),b("div",H,[w("div",K,[(g(),b(k,null,_(8,function(e){return w("div",{key:e,class:"border border-base rounded-base p-[1.6rem]"},[x(l,{animated:""},{template:j(function(){return[w("div",R,[w("div",Z,[x(i,{variant:"text",style:{width:"60%",height:"2rem"}}),x(i,{variant:"text",style:{width:"40%","margin-top":"1rem"}})]),x(i,{variant:"circle",style:{width:"2rem",height:"2rem"}})])]}),_:1})])}),64))])])):(g(),b("div",$,[w("div",Q,[(g(!0),b(k,null,_(r.value,function(e){return g(),b("div",{key:e.id,onClick:function(t){return function(e){var t=a.value.indexOf(e);t>-1?a.value.splice(t,1):a.value.push(e)}(e.id)},class:A(["border rounded-base p-[1.6rem] cursor-pointer relative transition-colors duration-200",a.value.includes(e.id)?"border-primary":"border-base hover:border-primary opacity-80"])},[w("div",Y,[w("div",null,[w("div",ee,O(e.name),1),w("div",te,O(e.provider),1)]),a.value.includes(e.id)?(g(),b("div",re,t(o[0]||(o[0]=[w("svg",{class:"w-[1.2rem] h-[1.2rem]",viewBox:"0 0 1024 1024",fill:"currentColor"},[w("path",{d:"M433.067 853.333c-14.934 0-29.867-6.4-40.534-17.066L98.133 541.867c-21.333-21.334-21.333-57.6 0-78.934s57.6-21.334 78.934 0l253.866 253.867L844.8 288c21.333-21.333 55.467-21.333 76.8 0 21.333 21.333 21.333 57.6 0 78.933L473.6 836.267c-10.667 10.666-25.6 17.066-40.533 17.066z"})],-1)])))):S("",!0)])],10,X)}),128))])])),w("div",ne,[x(u,{onClick:p,loading:f.value},{default:j(function(){return t(o[1]||(o[1]=[I("刷新模型列表",-1)]))}),_:1},8,["loading"]),x(u,{type:"primary",onClick:y,loading:d.value},{default:j(function(){return t(o[2]||(o[2]=[I("保存设置",-1)]))}),_:1},8,["loading"])])])}}}),oe={class:"flex flex-col h-full pt-[1rem]"},ie={class:"flex-1"},le={key:0,class:"tool-groups"},ue={class:"tool-group"},se={class:"tool-group-header"},ce={class:"tool-card-grid"},fe={key:1,class:"empty-skills"},de={key:2,class:"tool-groups"},ve=["onClick"],pe={class:"tool-group-left"},ye={class:"tool-group-name"},he={class:"tool-group-count"},me={class:"tool-card-grid"},ge=["onClick"],be={class:"tool-card-content"},we={class:"tool-card-title"},ke={class:"tool-card-name"},_e=["title"],xe=y({__name:"tool-tab",setup:function(e){var n=h([]),a=h(!1),o=h({}),u=T(function(){var e,t={},a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}(n.value);try{for(a.s();!(e=a.n()).done;){var o=e.value;t[o.category]||(t[o.category]=[]),t[o.category].push(o)}}catch(i){a.e(i)}finally{a.f()}return t});function s(e){return e.some(function(e){return e.show})}var f=function(){var e=c(l().m(function e(){var t,r,i,s,c,f;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return a.value=!0,e.p=1,e.n=2,J();case 2:i=e.v,s=null!==(t=null===(r=i.data)||void 0===r?void 0:r.data)&&void 0!==t?t:i.data,n.value=Array.isArray(s)?s:[],c=Object.keys(u.value),f={},c.forEach(function(e,t){f[e]=0!==t}),o.value=f,e.n=4;break;case 3:e.p=3,e.v;case 4:return e.p=4,a.value=!1,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();function d(){return(d=c(l().m(function e(t){var r,n,a;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return t._loading=!0,r=!t.show,e.p=1,e.n=2,q({tool_id:t.id,show:r?"True":"False"});case 2:(n=e.v).status?(t.show=r,i.success(r?"已开启":"已关闭")):i.error((null===(a=n.data)||void 0===a?void 0:a.data)||"操作失败"),e.n=4;break;case 3:e.p=3,e.v,i.error("操作失败");case 4:return e.p=4,t._loading=!1,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}))).apply(this,arguments)}function v(){return(v=c(l().m(function e(t,r){var n,a;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return r._loading=!0,e.p=1,e.n=2,q({tool_id:r.id,show:t?"True":"False"});case 2:(n=e.v).status?i.success(t?"已开启":"已关闭"):(r.show=!t,i.error((null===(a=n.data)||void 0===a?void 0:a.data)||"操作失败")),e.n=4;break;case 3:e.p=3,e.v,r.show=!t,i.error("操作失败");case 4:return e.p=4,r._loading=!1,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}))).apply(this,arguments)}function p(){return(p=c(l().m(function e(t,r){var n,a,o;return l().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=u.value[t]){e.n=1;break}return e.a(2);case 1:return n.forEach(function(e){e._loading=!0}),e.p=2,e.n=3,q({category:t,show:r?"True":"False"});case 3:(a=e.v).status?(n.forEach(function(e){e.show=r}),i.success(r?"已全部开启":"已全部关闭")):i.error((null===(o=a.data)||void 0===o?void 0:o.data)||"操作失败"),e.n=5;break;case 4:e.p=4,e.v,i.error("操作失败");case 5:return e.p=5,n.forEach(function(e){e._loading=!1}),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}))).apply(this,arguments)}return m(function(){f()}),function(e,r){var i=C,l=P,c=F;return g(),b("div",oe,[w("div",ie,[a.value?(g(),b("div",le,[w("div",ue,[w("div",se,[x(l,{animated:"",rows:0},{template:j(function(){return[x(i,{variant:"text",style:{width:"120px",height:"16px"}})]}),_:1})]),w("div",ce,[(g(),b(k,null,_(6,function(e){return w("div",{key:e,class:"tool-card"},[x(l,{animated:"",rows:2},{template:j(function(){return[x(i,{variant:"text",style:{width:"60%",height:"20px","margin-bottom":"12px"}}),x(i,{variant:"text",style:{width:"90%",height:"14px"}})]}),_:1})])}),64))])])])):n.value.length?(g(),b("div",de,[(g(!0),b(k,null,_(u.value,function(e,n){return g(),b("div",{key:n,class:"tool-group"},[w("div",{class:"tool-group-header",onClick:function(e){return function(e){o.value[e]=!o.value[e]}(n)}},[w("div",pe,[(g(),b("svg",{class:A(["collapse-chevron",{collapsed:o.value[n]}]),width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},t(r[1]||(r[1]=[w("polyline",{points:"6 9 12 15 18 9"},null,-1)])),2)),w("span",ye,O(n),1),w("span",he,O(e.filter(function(e){return e.show}).length)+"/"+O(e.length),1)]),x(c,{"model-value":s(e),style:{"--el-switch-on-color":"var(--el-color-primary)"},disabled:e.some(function(e){return e._loading}),onClick:r[0]||(r[0]=E(function(){},["stop"])),onChange:function(t){return function(e,t){return p.apply(this,arguments)}(n,!s(e))}},null,8,["model-value","disabled","onChange"])],8,ve),V(w("div",me,[(g(!0),b(k,null,_(e,function(e){return g(),b("div",{key:e.id,class:A(["tool-card",{"tool-card-active":e.show,"tool-card-loading":e._loading}]),onClick:function(t){return!e._loading&&function(e){return d.apply(this,arguments)}(e)}},[w("div",be,[w("div",we,[w("span",ke,O(e.name_cn||e.id),1)]),w("div",{class:"tool-card-desc",title:e.description},O(e.description),9,_e)]),x(c,{modelValue:e.show,"onUpdate:modelValue":function(t){return e.show=t},style:{"--el-switch-on-color":"var(--el-color-primary)"},disabled:e._loading,onChange:function(t){return function(e,t){return v.apply(this,arguments)}(Boolean(t),e)}},null,8,["modelValue","onUpdate:modelValue","disabled","onChange"])],10,ge)}),128))],512),[[G,!o.value[n]]])])}),128))])):(g(),b("div",fe," 暂无可用工具 "))])])}}}),je=u(xe,[["__scopeId","data-v-bdf1b3f8"]]),Ae={class:"flex flex-col h-full pt-[1rem]"},Oe={class:"flex-1"},Se={class:"setting-list"},Ie={class:"setting-row"},Ce={class:"setting-row"},Pe=y({__name:"assistant-tab",setup:function(e){var t=U(s()).panel,r=s().getGlobalInfo,n=h(!1),a=h(!1),o=h(!1),u=h(!1);m(function(){n.value=t.value.isShowCustomer,a.value=t.value.showAiTip});var v=function(){var e=c(l().m(function e(a){return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return o.value=!0,e.p=1,e.n=2,f();case 2:e.v.status?(t.value.isShowCustomer=a,i.success(a?"已开启AI助手":"已关闭AI助手")):(n.value=!a,i.error("操作失败")),r(),e.n=4;break;case 3:e.p=3,e.v,n.value=!a,i.error("操作失败");case 4:return e.p=4,o.value=!1,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=c(l().m(function e(n){return l().w(function(e){for(;;)switch(e.p=e.n){case 0:return u.value=!0,e.p=1,e.n=2,d();case 2:e.v.status?(t.value.showAiTip=n,i.success(n?"已开启AI提示":"已关闭AI提示"),r()):(a.value=!n,i.error("操作失败")),e.n=4;break;case 3:e.p=3,e.v,a.value=!n,i.error("操作失败");case 4:return e.p=4,u.value=!1,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(t){return e.apply(this,arguments)}}();return function(e,t){var r=F;return g(),b("div",Ae,[w("div",Oe,[w("div",Se,[w("div",Ie,[t[2]||(t[2]=w("span",{class:"setting-title"},"AI助手",-1)),x(r,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return n.value=e}),style:{"--el-switch-on-color":"var(--el-color-primary)"},loading:o.value,onChange:v},null,8,["modelValue","loading"]),t[3]||(t[3]=w("span",{class:"setting-desc"},"显示右下角AI助手",-1))]),w("div",Ce,[t[4]||(t[4]=w("span",{class:"setting-title"},"AI提示",-1)),x(r,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.value=e}),style:{"--el-switch-on-color":"var(--el-color-primary)"},loading:u.value,onChange:p},null,8,["modelValue","loading"]),t[5]||(t[5]=w("span",{class:"setting-desc"},"为面板中部分功能添加AI分析按钮",-1))])])])])}}}),We=u(Pe,[["__scopeId","data-v-89a3ca45"]]),Te={class:"setting-container h-full relative min-h-[50rem]"},Ee={class:"ai-install-restricted"},Ve={class:"action-buttons"},Ge={class:"rounded-base h-full"};e("default",u(y({__name:"index",setup:function(e){var r=s().payment,n=h(!1),o=v({type:"card",options:[].concat(t(r.value.bindUser?[{label:"AI模型",name:"model",lazy:!0,render:ae},{label:"可用工具",name:"tool",lazy:!0,render:je}]:[]),[{label:"AI助手设置",name:"assistant",lazy:!0,render:We}])}).BtTabs;return function(e,i){var l=p,u=a;return g(),b("div",Te,[B(r).bindUser||B(n)?S("",!0):(g(),D(u,{key:0,class:"ai-install-mask"},{content:j(function(){return[w("div",Ee,[w("span",{class:"svgtofont-el-close",onClick:i[0]||(i[0]=function(e){return n.value=!0})}),i[3]||(i[3]=w("div",{class:"warning-icon"},[w("i",{class:"svgtofont-el-warning text-warning !text-titleLarge"})],-1)),i[4]||(i[4]=w("h3",{class:"title"},"请先绑定宝塔账号",-1)),i[5]||(i[5]=w("p",{class:"instruction"},"使用AI功能需要先绑定宝塔账号,绑定后可享受更多服务",-1)),w("div",Ve,[x(l,{type:"primary",onClick:i[1]||(i[1]=function(){return B(M)()})},{default:j(function(){return t(i[2]||(i[2]=[I("立即绑定账号",-1)]))}),_:1})])])]}),_:1})),w("div",Ge,[x(B(o))])])}}}),[["__scopeId","data-v-da4d1432"]]))}}})}();