System.register(["./index-legacy.js"],(function(e,t){"use strict";var o;return{setters:[e=>{o=e.d}],execute:function(){e("Q",((e,...t)=>new Promise(((o,r)=>{e(...t,(e=>{o(e)}))}))));const t=function(e){let t=e.toLowerCase(),o="";if(/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)){if(4===t.length){let e="#";for(var r=1;r<4;r+=1)e+=t.slice(r,r+1).concat(t.slice(r,r+1));t=e}const e=[];for(r=1;r<7;r+=2)e.push(parseInt("0x"+t.slice(r,r+2)));return o="rgb("+e.join(",")+")",{rgb:o,rgbStr:e.join(","),r:e[0],g:e[1],b:e[2]}}return o="无效",{rgb:o}},r=[{assistantId:5,index:-1},{assistantId:6,index:-1}];e("u",o({id:"global",state:()=>({chatQWeb:null,activityColor:"",loadTranslations:{},AssistantType:{UOS_AI:1,UOS_SYSTEM_ASSISTANT:2,DEEPIN_SYSTEM_ASSISTANT:3,PERSONAL_KNOWLEDGE_ASSISTANT:4,AI_WRITING_ASSISTANT:5,AI_TEXT_PROCESSING_ASSISTANT:6,AI_TRANSLATION_ASSISTANT:7,PLUGIN_ASSISTANT:256},SendArg:{SendDocFileOutline:1},ChatAction:{ChatNone:-1,ChatTextPlain:0,ChatFunctionCall:1,ChatText2Image:2,ChatTextThink:3,ChatToolUse:4,AgentReasonTitle:5,AgentReasoning:6,AgentAction:7,ChatOutline:8,ChatDocCard:9,ChatGuessYouWant:10,ChatReference:11},ExtentionType:{None:0,Conversation:1,DocSummary:2,WordSelectionLable:3,PerView:4,PromptTag:5,PictureId:6,LikeOrNot:7,FunctionButton:8,McpBtnStatus:9,KnowledgeBaseBtnStatus:10,Outline:11,WritingResource:12},DocParsingFileType:{Doc:0,Image:1},DocFileCategory:{LocalMaterial:0,FileOutline:1},ToolUseStatus:{Calling:0,Completed:1,Failed:2,Canceled:3},ConversionMode:{Normal:0,Private:1},ConversationModeStatus:0,DeepSeek_Uos_Free:81,Uos_Free:82,IsDeepThink:!0,IsSearchOnline:!1,IsOpenMcpServer:!1,IsOpenKnowledgeBase:!1,DefaultAgentName:"default-agent",IsInstallUOSAiAgent:!1,LastModel:-1,IsShowNonOfficialModelTip:!1,IsGotFreeCredits:!0,IsEnableAdvancedCssFeatures:!1,IsSimplifiedChinese:!0,IsEnableMcp:!1,FontSize:14,DocParsingStatusType:{Success:0,FileCountError:1,SuffixError:2,NoDocError:3,ExceedSize:4,ImageExceedSize:5},DocParserError:{Success:0,ParsingFailed:1,NoTextError:2,NoTextExtracted:3},QuestionAiAction:1,LikeOrNot:{NONE:-1,LIKE:1,DISLIKE:2,EMPTY:3},CurrentAssistantFunctionButtonActiveIndex:r,LogLevel:{DEBUG:0,INFO:1,WARN:2,CRITICAL:3},TitleStatus:{InProgress:0,Completed:1,Failed:2}}),getters:{},actions:{updateActivityColor(e){console.log(e),this.activityColor=e;const o=t(e).rgbStr;document.body.style.setProperty("--activityColor",e),document.body.style.setProperty("--boxShadow",`rgba(${o},0.3)`),document.body.style.setProperty("--borderColor",`rgba(${o},0.2)`),document.body.style.setProperty("--backgroundColor",`rgba(${o},0.1)`),document.body.style.setProperty("--activityColorHover",`rgba(${o},0.9)`),document.body.style.setProperty("--activityColorPromptTag",`rgba(${o},0.15)`),document.body.style.setProperty("--activityAddNewConversationBtnBgNormal",`rgba(${o},0.1)`),document.body.style.setProperty("--activityAddNewConversationBtnBgHover",`rgba(${o},0.15)`),document.body.style.setProperty("--activityAddNewConversationBtnBgActive",`rgba(${o},0.2)`),document.body.style.setProperty("--activityMcpserverAddConfirmbtnBg",`linear-gradient(rgba(${o}, 1) 0%, rgba(${o}, 1) 100%)`),document.body.style.setProperty("--activityColorPrivateModeInputBackgroundColor",`rgba(${o},0.08)`),document.body.style.setProperty("--baseOutlineGenContentboxShadow",`rgba(${o},0.4)`),document.body.style.setProperty("--outlineDraggingItemBg",`rgba(${o},0.15)`),document.body.style.setProperty("--outlineDraggingItemShadow",`rgba(${o},0.3)`)},updateTheme(e){const o=2===e?"dark":"light";document.querySelector("html").setAttribute("class",o);const r=t(this.activityColor).rgbStr;2==e?(document.body.style.setProperty("--activityColorPromptTag",`rgba(${r},0.12)`),document.body.style.setProperty("--globalScrollbar-boxShadow","rgba(0, 0, 0, 0.2) 0 0 0 0.5px, rgba(0, 0, 0, 0.2) 0 0 0 0.5px, rgba(255, 255, 255, 0.05) 0 0 0 0.5px inset, rgba(255, 255, 255, 0.05) 0 0 0 0.5px")):(document.body.style.setProperty("--activityColorPromptTag",`rgba(${r},0.15)`),document.body.style.setProperty("--globalScrollbar-boxShadow","rgba(0, 0, 0, 0.05) 0 0 0 1px, rgba(0, 0, 0, 0.05) 0 0 10px 0"))},updateFont(e,t){console.log("pixelSize : ",t),this.FontSize=t,document.documentElement.style.fontSize=t+"px",document.documentElement.style.fontFamily=e,document.body.style.setProperty("--font-family",e)},updateMainContentBackgroundColor(e){console.log("updateMainContentBackgroundColor : ",e),document.body.style.setProperty("--main-content-background-color",e)}}}))}}}));
