import{A as e,D as t,G as n,H as r,I as i,K as a,M as o,St as s,T as c,Tt as l,W as u,_ as d,b as f,dt as p,et as m,f as h,nt as g,pt as _,v,vt as y,w as b,x,z as S}from"./vue.runtime.esm-bundler-gHHLlCcd.js";import{T as C,a as w,t as T}from"./backend-BIDAMQu4.js";import{Ct as E,D,Tt as O,an as k,dt as A,en as j,in as M,it as N,nt as P,on as F,pt as I,r as L,rn as R,rt as z,t as B,tn as V,w as H}from"./_plugin-vue_export-helper-BgFcNt9i.js";import{p as U,t as W}from"./Input-CzZwXnLY.js";import{t as G}from"./get-slot-Dnpg1BDa.js";import{t as ee}from"./Tooltip-AUgbrayK.js";import{t as te}from"./InputNumber-DZsPB95N.js";import{t as K}from"./Tag-CvUoUP6f.js";import{t as q}from"./Spin-0UC-HobP.js";import{a as J}from"./index-BBxzgjes.js";var Y=V(`radio`,`
 line-height: var(--n-label-line-height);
 outline: none;
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 align-items: flex-start;
 flex-wrap: nowrap;
 font-size: var(--n-font-size);
 word-break: break-word;
`,[M(`checked`,[R(`dot`,`
 background-color: var(--n-color-active);
 `)]),R(`dot-wrapper`,`
 position: relative;
 flex-shrink: 0;
 flex-grow: 0;
 width: var(--n-radio-size);
 `),V(`radio-input`,`
 position: absolute;
 border: 0;
 width: 0;
 height: 0;
 opacity: 0;
 margin: 0;
 `),R(`dot`,`
 position: absolute;
 top: 50%;
 left: 0;
 transform: translateY(-50%);
 height: var(--n-radio-size);
 width: var(--n-radio-size);
 background: var(--n-color);
 box-shadow: var(--n-box-shadow);
 border-radius: 50%;
 transition:
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `,[j(`&::before`,`
 content: "";
 opacity: 0;
 position: absolute;
 left: 4px;
 top: 4px;
 height: calc(100% - 8px);
 width: calc(100% - 8px);
 border-radius: 50%;
 transform: scale(.8);
 background: var(--n-dot-color-active);
 transition: 
 opacity .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 transform .3s var(--n-bezier);
 `),M(`checked`,{boxShadow:`var(--n-box-shadow-active)`},[j(`&::before`,`
 opacity: 1;
 transform: scale(1);
 `)])]),R(`label`,`
 color: var(--n-text-color);
 padding: var(--n-label-padding);
 font-weight: var(--n-label-font-weight);
 display: inline-block;
 transition: color .3s var(--n-bezier);
 `),k(`disabled`,`
 cursor: pointer;
 `,[j(`&:hover`,[R(`dot`,{boxShadow:`var(--n-box-shadow-hover)`})]),M(`focus`,[j(`&:not(:active)`,[R(`dot`,{boxShadow:`var(--n-box-shadow-focus)`})])])]),M(`disabled`,`
 cursor: not-allowed;
 `,[R(`dot`,{boxShadow:`var(--n-box-shadow-disabled)`,backgroundColor:`var(--n-color-disabled)`},[j(`&::before`,{backgroundColor:`var(--n-dot-color-disabled)`}),M(`checked`,`
 opacity: 1;
 `)]),R(`label`,{color:`var(--n-text-color-disabled)`}),V(`radio-input`,`
 cursor: not-allowed;
 `)])]),X={name:String,value:{type:[String,Number,Boolean],default:`on`},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Z=E(`n-radio-group`);function Q(e){let t=o(Z,null),{mergedClsPrefixRef:n,mergedComponentPropsRef:r}=N(e),i=P(e,{mergedSize(n){let{size:i}=e;if(i!==void 0)return i;if(t){let{mergedSizeRef:{value:e}}=t;if(e!==void 0)return e}return n?n.mergedSize.value:r?.value?.Radio?.size||`medium`},mergedDisabled(n){return!!(e.disabled||t?.disabledRef.value||n?.disabled.value)}}),{mergedSizeRef:a,mergedDisabledRef:s}=i,c=_(null),l=_(null),u=_(e.defaultChecked),d=U(y(e,`checked`),u),f=O(()=>t?t.valueRef.value===e.value:d.value),p=O(()=>{let{name:n}=e;if(n!==void 0)return n;if(t)return t.nameRef.value}),m=_(!1);function h(){if(t){let{doUpdateValue:n}=t,{value:r}=e;I(n,r)}else{let{onUpdateChecked:t,"onUpdate:checked":n}=e,{nTriggerFormInput:r,nTriggerFormChange:a}=i;t&&I(t,!0),n&&I(n,!0),r(),a(),u.value=!0}}function g(){s.value||f.value||h()}function v(){g(),c.value&&(c.value.checked=f.value)}function b(){m.value=!1}function x(){m.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:n,inputRef:c,labelRef:l,mergedName:p,mergedDisabled:s,renderSafeChecked:f,focus:m,mergedSize:a,handleRadioInputChange:v,handleRadioInputBlur:b,handleRadioInputFocus:x}}var ne=t({name:`Radio`,props:Object.assign(Object.assign({},H.props),X),setup(e){let t=Q(e),n=H(`Radio`,`-radio`,Y,J,e,t.mergedClsPrefix),r=d(()=>{let{mergedSize:{value:e}}=t,{common:{cubicBezierEaseInOut:r},self:{boxShadow:i,boxShadowActive:a,boxShadowDisabled:o,boxShadowFocus:s,boxShadowHover:c,color:l,colorDisabled:u,colorActive:d,textColor:f,textColorDisabled:p,dotColorActive:m,dotColorDisabled:h,labelPadding:g,labelLineHeight:_,labelFontWeight:v,[F(`fontSize`,e)]:y,[F(`radioSize`,e)]:b}}=n.value;return{"--n-bezier":r,"--n-label-line-height":_,"--n-label-font-weight":v,"--n-box-shadow":i,"--n-box-shadow-active":a,"--n-box-shadow-disabled":o,"--n-box-shadow-focus":s,"--n-box-shadow-hover":c,"--n-color":l,"--n-color-active":d,"--n-color-disabled":u,"--n-dot-color-active":m,"--n-dot-color-disabled":h,"--n-font-size":y,"--n-radio-size":b,"--n-text-color":f,"--n-text-color-disabled":p,"--n-label-padding":g}}),{inlineThemeDisabled:i,mergedClsPrefixRef:a,mergedRtlRef:o}=N(e),s=D(`Radio`,o,a),c=i?z(`radio`,d(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:i?void 0:r,themeClass:c?.themeClass,onRender:c?.onRender})},render(){let{$slots:t,mergedClsPrefix:n,onRender:r,label:i}=this;return r?.(),e(`label`,{class:[`${n}-radio`,this.themeClass,this.rtlEnabled&&`${n}-radio--rtl`,this.mergedDisabled&&`${n}-radio--disabled`,this.renderSafeChecked&&`${n}-radio--checked`,this.focus&&`${n}-radio--focus`],style:this.cssVars},e(`div`,{class:`${n}-radio__dot-wrapper`},`\xA0`,e(`div`,{class:[`${n}-radio__dot`,this.renderSafeChecked&&`${n}-radio__dot--checked`]}),e(`input`,{ref:`inputRef`,type:`radio`,class:`${n}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur})),A(t.default,t=>!t&&!i?null:e(`div`,{ref:`labelRef`,class:`${n}-radio__label`},t||i)))}}),re=V(`radio-group`,`
 display: inline-block;
 font-size: var(--n-font-size);
`,[R(`splitor`,`
 display: inline-block;
 vertical-align: bottom;
 width: 1px;
 transition:
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier);
 background: var(--n-button-border-color);
 `,[M(`checked`,{backgroundColor:`var(--n-button-border-color-active)`}),M(`disabled`,{opacity:`var(--n-opacity-disabled)`})]),M(`button-group`,`
 white-space: nowrap;
 height: var(--n-height);
 line-height: var(--n-height);
 `,[V(`radio-button`,{height:`var(--n-height)`,lineHeight:`var(--n-height)`}),R(`splitor`,{height:`var(--n-height)`})]),V(`radio-button`,`
 vertical-align: bottom;
 outline: none;
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 display: inline-block;
 box-sizing: border-box;
 padding-left: 14px;
 padding-right: 14px;
 white-space: nowrap;
 transition:
 background-color .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 border-color .3s var(--n-bezier),
 color .3s var(--n-bezier);
 background: var(--n-button-color);
 color: var(--n-button-text-color);
 border-top: 1px solid var(--n-button-border-color);
 border-bottom: 1px solid var(--n-button-border-color);
 `,[V(`radio-input`,`
 pointer-events: none;
 position: absolute;
 border: 0;
 border-radius: inherit;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 opacity: 0;
 z-index: 1;
 `),R(`state-border`,`
 z-index: 1;
 pointer-events: none;
 position: absolute;
 box-shadow: var(--n-button-box-shadow);
 transition: box-shadow .3s var(--n-bezier);
 left: -1px;
 bottom: -1px;
 right: -1px;
 top: -1px;
 `),j(`&:first-child`,`
 border-top-left-radius: var(--n-button-border-radius);
 border-bottom-left-radius: var(--n-button-border-radius);
 border-left: 1px solid var(--n-button-border-color);
 `,[R(`state-border`,`
 border-top-left-radius: var(--n-button-border-radius);
 border-bottom-left-radius: var(--n-button-border-radius);
 `)]),j(`&:last-child`,`
 border-top-right-radius: var(--n-button-border-radius);
 border-bottom-right-radius: var(--n-button-border-radius);
 border-right: 1px solid var(--n-button-border-color);
 `,[R(`state-border`,`
 border-top-right-radius: var(--n-button-border-radius);
 border-bottom-right-radius: var(--n-button-border-radius);
 `)]),k(`disabled`,`
 cursor: pointer;
 `,[j(`&:hover`,[R(`state-border`,`
 transition: box-shadow .3s var(--n-bezier);
 box-shadow: var(--n-button-box-shadow-hover);
 `),k(`checked`,{color:`var(--n-button-text-color-hover)`})]),M(`focus`,[j(`&:not(:active)`,[R(`state-border`,{boxShadow:`var(--n-button-box-shadow-focus)`})])])]),M(`checked`,`
 background: var(--n-button-color-active);
 color: var(--n-button-text-color-active);
 border-color: var(--n-button-border-color-active);
 `),M(`disabled`,`
 cursor: not-allowed;
 opacity: var(--n-opacity-disabled);
 `)])]);function ie(t,n,r){let i=[],a=!1;for(let o=0;o<t.length;++o){let s=t[o],c=s.type?.name;c===`RadioButton`&&(a=!0);let l=s.props;if(c!==`RadioButton`){i.push(s);continue}if(o===0)i.push(s);else{let t=i[i.length-1].props,a=n===t.value,o=t.disabled,c=n===l.value,u=l.disabled,d=(a?2:0)+ +!o,f=(c?2:0)+ +!u,p={[`${r}-radio-group__splitor--disabled`]:o,[`${r}-radio-group__splitor--checked`]:a},m={[`${r}-radio-group__splitor--disabled`]:u,[`${r}-radio-group__splitor--checked`]:c},h=d<f?m:p;i.push(e(`div`,{class:[`${r}-radio-group__splitor`,h]}),s)}}return{children:i,isButtonGroup:a}}var ae=t({name:`RadioGroup`,props:Object.assign(Object.assign({},H.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(e){let t=_(null),{mergedSizeRef:r,mergedDisabledRef:i,nTriggerFormChange:a,nTriggerFormInput:o,nTriggerFormBlur:s,nTriggerFormFocus:c}=P(e),{mergedClsPrefixRef:l,inlineThemeDisabled:u,mergedRtlRef:f}=N(e),p=H(`Radio`,`-radio-group`,re,J,e,l),m=_(e.defaultValue),h=U(y(e,`value`),m);function g(t){let{onUpdateValue:n,"onUpdate:value":r}=e;n&&I(n,t),r&&I(r,t),m.value=t,a(),o()}function v(e){let{value:n}=t;n&&(n.contains(e.relatedTarget)||c())}function b(e){let{value:n}=t;n&&(n.contains(e.relatedTarget)||s())}n(Z,{mergedClsPrefixRef:l,nameRef:y(e,`name`),valueRef:h,disabledRef:i,mergedSizeRef:r,doUpdateValue:g});let x=D(`Radio`,f,l),S=d(()=>{let{value:e}=r,{common:{cubicBezierEaseInOut:t},self:{buttonBorderColor:n,buttonBorderColorActive:i,buttonBorderRadius:a,buttonBoxShadow:o,buttonBoxShadowFocus:s,buttonBoxShadowHover:c,buttonColor:l,buttonColorActive:u,buttonTextColor:d,buttonTextColorActive:f,buttonTextColorHover:m,opacityDisabled:h,[F(`buttonHeight`,e)]:g,[F(`fontSize`,e)]:_}}=p.value;return{"--n-font-size":_,"--n-bezier":t,"--n-button-border-color":n,"--n-button-border-color-active":i,"--n-button-border-radius":a,"--n-button-box-shadow":o,"--n-button-box-shadow-focus":s,"--n-button-box-shadow-hover":c,"--n-button-color":l,"--n-button-color-active":u,"--n-button-text-color":d,"--n-button-text-color-hover":m,"--n-button-text-color-active":f,"--n-height":g,"--n-opacity-disabled":h}}),C=u?z(`radio-group`,d(()=>r.value[0]),S,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:l,mergedValue:h,handleFocusout:b,handleFocusin:v,cssVars:u?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender}},render(){var t;let{mergedValue:n,mergedClsPrefix:r,handleFocusin:i,handleFocusout:a}=this,{children:o,isButtonGroup:s}=ie(C(G(this)),n,r);return(t=this.onRender)==null||t.call(this),e(`div`,{onFocusin:i,onFocusout:a,ref:`selfElRef`,class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,s&&`${r}-radio-group--button-group`],style:this.cssVars},o)}}),oe={class:`config-page`},se={class:`config-form`},ce={class:`form-row`},le={class:`form-row`},ue={class:`form-row`},de={class:`form-row`},fe={class:`form-row`},pe={class:`form-row`},me={class:`form-row`},he={class:`form-row`},ge={class:`form-row`},_e={class:`form-row`},ve={key:4,class:`form-row`},ye={class:`service-row`},be={class:`service-btns`},xe={class:`form-row`},Se={class:`form-row`},Ce={class:`service-row`},we={class:`service-btns`},Te={class:`service-btns`},Ee={key:2,class:`form-hint`},De={key:5,class:`form-row`},Oe={class:`form-row`},ke={class:`form-label`},Ae={class:`form-row`},je={class:`clip-hint`},Me={class:`form-row`},Ne={class:`form-row`},Pe={class:`form-row`},$={class:`personalize-form`},Fe={class:`form-row`},Ie={class:`form-row`},Le={class:`avatar-section`},Re={key:0,class:`avatar-preview`},ze=[`src`],Be={class:`form-row`},Ve={class:`form-row`},He={class:`quick-commands`},Ue=[`onClick`],We={class:`dialog-footer`},Ge=B(t({name:`settings`,__name:`index`,setup(e){let t=p({wordService:0,wordAliAk:``,wordAliAI:``,titleService:0,titleAliAk:``,titleAliAI:``,maxService:`0`,maxAk:``,siliService:`0`,siliKey:``,qttsService:`0`,qttsKey:``,voiceModelType:`1`,videoServiceType:`video_sync`,batchSize:8,videoClipEncoder:`libx264`,dashscopeKey:``,minimaxKey:``,minimaxGroupId:``,myAiApiKey:``,myAiAppId:``,myAiName:`我的AI助手`,myAiAvatar:``,myAiDescription:``,myAiQuickCommands:[]}),n=p({v1_voice_status:``,v2_voice_status:``,v3_voice_status:``,video_sync_status:``,video_pro_status:``,pending_voice_service_type:``,pending_video_service_type:``}),o=_(``),d=_(!0),y=_(!1),C=_(!1),E=p({appName:`我的AI助手`,appAvatar:``,appDescription:``,quickCommands:[``,``,``]});function D(e){return n.pending_voice_service_type===e?`starting`:n[`${e}_status`]===`open`?`open`:`close`}function O(e){let t=D(e);return t===`starting`?`启动中`:t===`open`?`已启动`:`未启动`}function k(e){let t=D(e);return t===`starting`?`warning`:t===`open`?`success`:`default`}function A(e){return n.pending_video_service_type===e?`starting`:n[`${e}_status`]===`open`?`open`:`close`}function j(e){let t=A(e);return t===`starting`?`启动中`:t===`open`?`已启动`:`未启动`}function M(e){let t=A(e);return t===`starting`?`warning`:t===`open`?`success`:`default`}async function N(){try{let e=await T({url:`/algorithm/status/`});e.data?.data&&Object.assign(n,e.data.data),sessionStorage.setItem(`project_service_status`,JSON.stringify(n))}catch{}}async function P(){try{let e=(await T({url:`/config/?key=api`})).data?.data;e&&(t.wordService=[0,1].includes(Number(e.wordService))?Number(e.wordService):0,t.titleService=[0,1].includes(Number(e.titleService))?Number(e.titleService):0,t.wordAliAk=e.wordAliAk||``,t.wordAliAI=e.wordAliAI||``,t.titleAliAk=e.titleAliAk||``,t.titleAliAI=e.titleAliAI||``,t.maxAk=e.maxAk||``,t.voiceModelType=e.voiceModelType||`1`,t.videoServiceType=[`video_sync`,`video_pro`,`cloud_wan`].includes(e.videoServiceType)?e.videoServiceType:`video_sync`,t.batchSize=Number(e.batchSize)||8,t.videoClipEncoder=e.videoClipEncoder===`h264_nvenc`?`h264_nvenc`:`libx264`,t.dashscopeKey=e.dashscopeKey||``,t.minimaxKey=e.minimaxKey||``,t.minimaxGroupId=e.minimaxGroupId||``,t.myAiApiKey=e.myAiApiKey||``,t.myAiAppId=e.myAiAppId||``,t.myAiName=e.myAiName||`我的AI助手`,t.myAiAvatar=e.myAiAvatar||``,t.myAiDescription=e.myAiDescription||``,t.myAiQuickCommands=e.myAiQuickCommands||[])}catch{}}let F=null;function I(){d.value||(F&&clearTimeout(F),F=setTimeout(()=>R(),700))}async function R(){try{await T({url:`/config/`,method:`POST`,data:{key:`api`,value:{...t}}}),sessionStorage.setItem(`userApiData`,JSON.stringify(t))}catch{}}function z(){F&&=(clearTimeout(F),null),d.value||R()}async function B(e){y.value=!0;try{let t=[`v1_voice`,`v2_voice`,`v3_voice`].includes(e),r=e===`video_sync`||e===`video_pro`;if(await N(),t&&n[`${e}_status`]===`open`){window.$message?.warning(`服务已启用`);return}if(r&&n[`${e}_status`]===`open`){window.$message?.warning(`服务已启用`);return}e===`video_sync`&&n.video_pro_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`video_pro`}}),n.video_pro_status=`close`),e===`video_pro`&&n.video_sync_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`video_sync`}}),n.video_sync_status=`close`),e===`v1_voice`&&(n.v2_voice_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`v2_voice`}}),n.v2_voice_status=`close`),n.v3_voice_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`v3_voice`}}),n.v3_voice_status=`close`)),e===`v2_voice`&&(n.v1_voice_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`v1_voice`}}),n.v1_voice_status=`close`),n.v3_voice_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`v3_voice`}}),n.v3_voice_status=`close`)),e===`v3_voice`&&(n.v1_voice_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`v1_voice`}}),n.v1_voice_status=`close`),n.v2_voice_status===`open`&&(await T({url:`/algorithm/stop/`,method:`POST`,data:{type:`v2_voice`}}),n.v2_voice_status=`close`));let i=await T({url:`/algorithm/start/`,method:`POST`,data:{type:e}});i?.data?.code===0||i.success?(await N(),window.$message?.success(`操作成功`)):window.$message?.error(i?.data?.message||`操作失败`)}catch(e){window.$message?.error(e?.message||`操作失败`)}finally{y.value=!1}}async function V(e){y.value=!0;try{if(await N(),n[`${e}_status`]===`close`){window.$message?.warning(`服务已关闭`);return}let t=await T({url:`/algorithm/stop/`,method:`POST`,data:{type:e}});t?.data?.code===0||t.success?(await N(),window.$message?.success(`操作成功`)):window.$message?.error(t?.data?.message||`操作失败`)}catch(e){window.$message?.error(e?.message||`操作失败`)}finally{y.value=!1}}function H(){E.appName=t.myAiName||`我的AI助手`,E.appAvatar=t.myAiAvatar||``,E.appDescription=t.myAiDescription||``,E.quickCommands=t.myAiQuickCommands.length>0?[...t.myAiQuickCommands]:[``,``,``],C.value=!0}function U(){let e=document.createElement(`input`);e.type=`file`,e.accept=`image/*`,e.onchange=e=>{let t=e.target.files?.[0];if(!t)return;if(t.size>2*1024*1024){window.$message?.warning(`图片大小不能超过2MB`);return}let n=new FileReader;n.onload=()=>{E.appAvatar=n.result},n.readAsDataURL(t)},e.click()}function G(){if(!E.appName.trim()){window.$message?.warning(`请输入应用名称`);return}t.myAiName=E.appName,t.myAiAvatar=E.appAvatar,t.myAiDescription=E.appDescription,t.myAiQuickCommands=E.quickCommands.filter(e=>e.trim()),C.value=!1,window.$message?.success(`个性化配置已保存`)}function J(){E.quickCommands.length<3?E.quickCommands.push(``):window.$message?.warning(`最多添加3个快捷指令`)}function Y(e){E.quickCommands.length>1?E.quickCommands.splice(e,1):window.$message?.warning(`至少保留一个快捷指令`)}return r(async()=>{await Promise.all([P(),N()]),await i(),d.value=!1}),S(()=>{z()}),m(()=>({...t}),I,{deep:!0}),(e,n)=>{let r=ne,i=ae,d=W,p=K,m=L,_=ee,S=te,T=q,D=w;return u(),x(`div`,oe,[c(T,{show:y.value,description:`操作中...`},{default:g(()=>[v(`div`,se,[n[70]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`文案生成与改写`)],-1),v(`div`,ce,[n[30]||=v(`span`,{class:`form-label`},`云服务选择`,-1),c(i,{value:t.wordService,"onUpdate:value":n[0]||=e=>t.wordService=e,class:`radio-group`},{default:g(()=>[c(r,{value:0},{default:g(()=>[...n[27]||=[b(`系统自带`,-1)]]),_:1}),c(r,{value:1},{default:g(()=>[...n[28]||=[b(`阿里云`,-1)]]),_:1}),c(r,{value:3},{default:g(()=>[...n[29]||=[b(`字节跳动`,-1)]]),_:1})]),_:1},8,[`value`])]),t.wordService===1||t.wordService===3?(u(),x(h,{key:0},[v(`div`,le,[n[31]||=v(`span`,{class:`form-label`},`API_KEY`,-1),c(d,{value:t.wordAliAk,"onUpdate:value":n[1]||=e=>t.wordAliAk=e,class:`form-input`,placeholder:`请输入阿里云API_KEY`},null,8,[`value`])]),v(`div`,ue,[n[32]||=v(`span`,{class:`form-label`},`APP_ID`,-1),c(d,{value:t.wordAliAI,"onUpdate:value":n[2]||=e=>t.wordAliAI=e,class:`form-input`,placeholder:`请输入阿里云APP_ID`},null,8,[`value`])])],64)):f(``,!0),n[71]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`标题话题生成`)],-1),v(`div`,de,[n[36]||=v(`span`,{class:`form-label`},`云服务选择`,-1),c(i,{value:t.titleService,"onUpdate:value":n[3]||=e=>t.titleService=e,class:`radio-group`},{default:g(()=>[c(r,{value:0},{default:g(()=>[...n[33]||=[b(`系统自带`,-1)]]),_:1}),c(r,{value:1},{default:g(()=>[...n[34]||=[b(`阿里云`,-1)]]),_:1}),c(r,{value:3},{default:g(()=>[...n[35]||=[b(`字节跳动`,-1)]]),_:1})]),_:1},8,[`value`])]),t.titleService===1||t.titleService===3?(u(),x(h,{key:1},[v(`div`,fe,[n[37]||=v(`span`,{class:`form-label`},`API_KEY`,-1),c(d,{value:t.titleAliAk,"onUpdate:value":n[4]||=e=>t.titleAliAk=e,class:`form-input`,placeholder:`请输入阿里云API_KEY`},null,8,[`value`])]),v(`div`,pe,[n[38]||=v(`span`,{class:`form-label`},`APP_ID`,-1),c(d,{value:t.titleAliAI,"onUpdate:value":n[5]||=e=>t.titleAliAI=e,class:`form-input`,placeholder:`请输入阿里云APP_ID`},null,8,[`value`])])],64)):f(``,!0),n[72]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`音频服务配置`)],-1),v(`div`,me,[n[42]||=v(`span`,{class:`form-label`},`声音模型选择`,-1),c(i,{value:t.voiceModelType,"onUpdate:value":n[6]||=e=>t.voiceModelType=e,class:`radio-group`},{default:g(()=>[c(r,{value:`1`,class:s({"voice-highlight":o.value===`1`})},{default:g(()=>[...n[39]||=[b(`本地声音算法V1`,-1)]]),_:1},8,[`class`]),c(r,{value:`5`},{default:g(()=>[...n[40]||=[b(`云声音克隆(CosyVoice)`,-1)]]),_:1}),c(r,{value:`4`},{default:g(()=>[...n[41]||=[b(`MiniMax`,-1)]]),_:1})]),_:1},8,[`value`])]),t.voiceModelType===`4`?(u(),x(h,{key:2},[v(`div`,he,[n[43]||=v(`span`,{class:`form-label`},`API_KEY`,-1),c(d,{value:t.maxAk,"onUpdate:value":n[7]||=e=>t.maxAk=e,type:`password`,"show-password-on":`click`,class:`form-input`,placeholder:`请输入MiniMax API_KEY`},null,8,[`value`])]),v(`div`,ge,[n[44]||=v(`span`,{class:`form-label`},`GroupId`,-1),c(d,{value:t.minimaxGroupId,"onUpdate:value":n[8]||=e=>t.minimaxGroupId=e,class:`form-input`,placeholder:`请输入MiniMax GroupId`},null,8,[`value`])])],64)):t.voiceModelType===`5`?(u(),x(h,{key:3},[n[46]||=v(`div`,{class:`form-row`},[v(`span`,{class:`form-label`},`云端说明`),v(`span`,{class:`form-hint`},`无需显卡，云端克隆你上传的声音。需填写你自己的 DashScope Key（按用量计费，走你自己的额度）。`)],-1),v(`div`,_e,[n[45]||=v(`span`,{class:`form-label`},`DashScope Key`,-1),c(d,{value:t.dashscopeKey,"onUpdate:value":n[9]||=e=>t.dashscopeKey=e,type:`password`,"show-password-on":`click`,class:`form-input`,placeholder:`请填写你自己的 DashScope API Key`},null,8,[`value`])])],64)):(u(),x(`div`,ve,[n[49]||=v(`span`,{class:`form-label`},`音频服务`,-1),v(`div`,ye,[c(p,{type:k(`v1_voice`),size:`small`},{default:g(()=>[b(l(O(`v1_voice`)),1)]),_:1},8,[`type`]),v(`div`,be,[c(m,{size:`tiny`,type:`primary`,onClick:n[10]||=e=>B(`v1_voice`)},{default:g(()=>[...n[47]||=[b(`启动`,-1)]]),_:1}),c(m,{size:`tiny`,onClick:n[11]||=e=>V(`v1_voice`)},{default:g(()=>[...n[48]||=[b(`关闭`,-1)]]),_:1})])])])),n[73]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`视频服务配置`)],-1),v(`div`,xe,[n[53]||=v(`span`,{class:`form-label`},`视频服务选择`,-1),c(i,{value:t.videoServiceType,"onUpdate:value":n[12]||=e=>t.videoServiceType=e,class:`radio-group`},{default:g(()=>[c(r,{value:`video_sync`},{default:g(()=>[...n[50]||=[b(`免训练数字人视频服务`,-1)]]),_:1}),c(r,{value:`video_pro`},{default:g(()=>[...n[51]||=[b(`训练数字人视频服务`,-1)]]),_:1}),c(r,{value:`cloud_wan`},{default:g(()=>[...n[52]||=[b(`云端-通义万相(阿里)`,-1)]]),_:1})]),_:1},8,[`value`])]),v(`div`,Se,[n[58]||=v(`span`,{class:`form-label`},`视频服务`,-1),v(`div`,Ce,[t.videoServiceType===`video_sync`?(u(),x(h,{key:0},[c(p,{type:M(`video_sync`),size:`small`},{default:g(()=>[b(l(j(`video_sync`)),1)]),_:1},8,[`type`]),v(`div`,we,[c(m,{size:`tiny`,type:`primary`,onClick:n[13]||=e=>B(`video_sync`)},{default:g(()=>[...n[54]||=[b(`启动`,-1)]]),_:1}),c(m,{size:`tiny`,onClick:n[14]||=e=>V(`video_sync`)},{default:g(()=>[...n[55]||=[b(`关闭`,-1)]]),_:1})])],64)):t.videoServiceType===`video_pro`?(u(),x(h,{key:1},[c(p,{type:M(`video_pro`),size:`small`},{default:g(()=>[b(l(j(`video_pro`)),1)]),_:1},8,[`type`]),v(`div`,Te,[c(m,{size:`tiny`,type:`primary`,onClick:n[15]||=e=>B(`video_pro`)},{default:g(()=>[...n[56]||=[b(`启动`,-1)]]),_:1}),c(m,{size:`tiny`,onClick:n[16]||=e=>V(`video_pro`)},{default:g(()=>[...n[57]||=[b(`关闭`,-1)]]),_:1})])],64)):(u(),x(`span`,Ee,`云端生成，无需显卡。素材经中转上传至云端厂商，按用量计费。`))])]),t.videoServiceType===`cloud_wan`?(u(),x(`div`,De,[n[59]||=v(`span`,{class:`form-label`},`DashScope Key`,-1),c(d,{value:t.dashscopeKey,"onUpdate:value":n[17]||=e=>t.dashscopeKey=e,type:`password`,"show-password-on":`click`,class:`form-input`,placeholder:`请填写你自己的 DashScope API Key`},null,8,[`value`])])):f(``,!0),n[74]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`数字人视频服务配置`)],-1),v(`div`,Oe,[v(`span`,ke,[n[62]||=b(` 数字人批处理数 `,-1),c(_,{trigger:`hover`},{trigger:g(()=>[...n[60]||=[v(`span`,{class:`tooltip-icon`},`?`,-1)]]),default:g(()=>[n[61]||=b(` 根据显存大小调整 `,-1)]),_:1})]),c(S,{value:t.batchSize,"onUpdate:value":n[18]||=e=>t.batchSize=e,min:1,max:32,step:1,size:`small`,style:{width:`100px`}},null,8,[`value`])]),n[75]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`视频剪辑配置`)],-1),v(`div`,Ae,[n[65]||=v(`span`,{class:`form-label`},`剪辑模式选择`,-1),v(`div`,null,[c(i,{value:t.videoClipEncoder,"onUpdate:value":n[19]||=e=>t.videoClipEncoder=e,class:`radio-group`},{default:g(()=>[c(r,{value:`libx264`},{default:g(()=>[...n[63]||=[b(`普通剪辑`,-1)]]),_:1}),c(r,{value:`h264_nvenc`},{default:g(()=>[...n[64]||=[b(`快速剪辑`,-1)]]),_:1})]),_:1},8,[`value`]),v(`p`,je,l(t.videoClipEncoder===`h264_nvenc`?`会占用 GPU 资源，可加快剪辑速度。`:`仅占用 CPU 资源。`),1)])]),n[76]||=v(`div`,{class:`section-title`},[v(`span`,{class:`section-bar`}),v(`span`,{class:`section-text`},`我的AI配置`)],-1),v(`div`,Me,[n[66]||=v(`span`,{class:`form-label`},`API_KEY`,-1),c(d,{value:t.myAiApiKey,"onUpdate:value":n[20]||=e=>t.myAiApiKey=e,class:`form-input`,placeholder:`请输入API_KEY`},null,8,[`value`])]),v(`div`,Ne,[n[67]||=v(`span`,{class:`form-label`},`APP_ID`,-1),c(d,{value:t.myAiAppId,"onUpdate:value":n[21]||=e=>t.myAiAppId=e,class:`form-input`,placeholder:`请输入APP_ID`},null,8,[`value`])]),v(`div`,Pe,[n[69]||=v(`span`,{class:`form-label`},null,-1),c(m,{type:`primary`,size:`small`,onClick:H},{default:g(()=>[...n[68]||=[b(`个性化配置`,-1)]]),_:1})])])]),_:1},8,[`show`]),c(D,{show:C.value,"onUpdate:show":n[26]||=e=>C.value=e,title:`个性化配置`,preset:`card`,style:{width:`600px`,maxWidth:`calc(100vw - 32px)`},"mask-closable":!1},{footer:g(()=>[v(`div`,We,[c(m,{onClick:n[25]||=e=>C.value=!1},{default:g(()=>[...n[83]||=[b(`取消`,-1)]]),_:1}),c(m,{type:`primary`,onClick:G},{default:g(()=>[...n[84]||=[b(`保存`,-1)]]),_:1})])]),default:g(()=>[v(`div`,$,[v(`div`,Fe,[n[77]||=v(`span`,{class:`form-label`},`应用名称`,-1),c(d,{value:E.appName,"onUpdate:value":n[22]||=e=>E.appName=e,placeholder:`请输入应用名称`,maxlength:`20`,"show-count":``,style:{width:`300px`}},null,8,[`value`])]),v(`div`,Ie,[n[79]||=v(`span`,{class:`form-label`},`应用头像`,-1),v(`div`,Le,[c(m,{size:`small`,onClick:U},{default:g(()=>[...n[78]||=[b(`上传图片`,-1)]]),_:1}),E.appAvatar?(u(),x(`div`,Re,[v(`img`,{src:E.appAvatar,alt:`预览`},null,8,ze),v(`span`,{class:`remove-avatar`,onClick:n[23]||=e=>E.appAvatar=``},`×`)])):f(``,!0)])]),v(`div`,Be,[n[80]||=v(`span`,{class:`form-label`},`应用简介`,-1),c(d,{value:E.appDescription,"onUpdate:value":n[24]||=e=>E.appDescription=e,type:`textarea`,placeholder:`请输入应用简介（200字以内）`,rows:3,maxlength:`200`,"show-count":``,style:{width:`300px`}},null,8,[`value`])]),v(`div`,Ve,[n[82]||=v(`span`,{class:`form-label`},`快捷指令`,-1),v(`div`,He,[(u(!0),x(h,null,a(E.quickCommands,(e,t)=>(u(),x(`div`,{key:t,class:`quick-cmd-row`},[c(d,{value:E.quickCommands[t],"onUpdate:value":e=>E.quickCommands[t]=e,placeholder:`请输入快捷指令 ${t+1}（50字以内）`,maxlength:`50`,"show-count":``,style:{width:`280px`}},null,8,[`value`,`onUpdate:value`,`placeholder`]),E.quickCommands.length>1?(u(),x(`span`,{key:0,class:`delete-icon`,onClick:e=>Y(t)},`×`,8,Ue)):f(``,!0)]))),128)),c(m,{size:`small`,text:``,type:`primary`,onClick:J},{default:g(()=>[...n[81]||=[b(`+ 添加指令`,-1)]]),_:1})])])])]),_:1},8,[`show`])])}}}),[[`__scopeId`,`data-v-f0a42f32`]]);export{Ge as default};