hermes-web-ui 0.6.40 → 0.6.41
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/client/assets/js/{AppSidebar-CaSVcbCW.js → AppSidebar-CNkSiv3l.js} +1 -1
- package/dist/client/assets/js/{ChannelsView-hdAXa1hf.js → ChannelsView-6rEo6RBl.js} +1 -1
- package/dist/client/assets/js/{ChatPanel-C6sX6idm.js → ChatPanel-ANAZWluc.js} +3 -3
- package/dist/client/assets/js/{ChatView-B68k_-D9.js → ChatView-DFcPsmRF.js} +1 -1
- package/dist/client/assets/js/{CodingAgentsView-CsIjwbXR.js → CodingAgentsView-CpIY0SHT.js} +1 -1
- package/dist/client/assets/js/{DefaultCredentialPrompt-BRhb4DOa.js → DefaultCredentialPrompt-DmNeotSW.js} +1 -1
- package/dist/client/assets/js/{DesktopBrowserPanel-BlBfS64w.js → DesktopBrowserPanel-CWjTU-3y.js} +1 -1
- package/dist/client/assets/js/{DesktopBrowserView-JukL0QuS.js → DesktopBrowserView-D9Qb3fIV.js} +1 -1
- package/dist/client/assets/js/{DesktopPetView-DWq4EiRU.js → DesktopPetView-B7REtC57.js} +1 -1
- package/dist/client/assets/js/{DesktopTitleBar-DphP4oa6.js → DesktopTitleBar-Dej_16hB.js} +1 -1
- package/dist/client/assets/js/{DevicesView-BFtrfqJs.js → DevicesView--d4HCkch.js} +1 -1
- package/dist/client/assets/js/{DocxFilePreview-CmVJ9Jxx.js → DocxFilePreview-BQz6WC7r.js} +2 -2
- package/dist/client/assets/js/{FileEditor-CdkNYp7b.js → FileEditor-BBegs-5i.js} +2 -2
- package/dist/client/assets/js/{FilePreview-CJrVRPRs.js → FilePreview-B7WqYvZs.js} +2 -2
- package/dist/client/assets/js/{FileRenameModal-mghyEXU4.js → FileRenameModal-82RkAZkd.js} +1 -1
- package/dist/client/assets/js/{FilesPanel-B9cKB5lX.js → FilesPanel-BHcg6CpC.js} +2 -2
- package/dist/client/assets/js/{FilesView-iKZu70E9.js → FilesView-Dl15WTar.js} +2 -2
- package/dist/client/assets/js/{GlobalAgentView-JZsss0gx.js → GlobalAgentView-dxEX611f.js} +1 -1
- package/dist/client/assets/js/{GlobalPendingActions-BRQIt5vl.js → GlobalPendingActions-CeK96C3G.js} +1 -1
- package/dist/client/assets/js/{GroupChatLinkView-CNrV8lnT.js → GroupChatLinkView-CJhI9DVE.js} +1 -1
- package/dist/client/assets/js/{GroupChatPanel-WK4zBasl.js → GroupChatPanel-CLa3s08V.js} +3 -3
- package/dist/client/assets/js/{GroupChatView-BlMUD1MW.js → GroupChatView-CUwvu-6F.js} +1 -1
- package/dist/client/assets/js/{HistoryMessageList-D8zoQ1Zs.js → HistoryMessageList-BdD8GJYM.js} +1 -1
- package/dist/client/assets/js/{HistoryView-Bpr8N2lC.js → HistoryView-Ro92tP5R.js} +1 -1
- package/dist/client/assets/js/{HtmlFilePreview-Bj3_-hMo.js → HtmlFilePreview-xYn7YtmC.js} +1 -1
- package/dist/client/assets/js/{JobsView-CZK26gTw.js → JobsView-BaNA1Yaa.js} +2 -2
- package/dist/client/assets/js/{JourneyView-BPUsLj4o.js → JourneyView-Bw-05mCF.js} +1 -1
- package/dist/client/assets/js/{KanbanView-B7d-2_z9.js → KanbanView-BYC32l2Q.js} +1 -1
- package/dist/client/assets/js/{LoginView-BpYyv831.js → LoginView-KrpCkwOr.js} +1 -1
- package/dist/client/assets/js/{LogsView-CabFHk0v.js → LogsView-Dgm4v5sN.js} +1 -1
- package/dist/client/assets/js/{MarkdownRenderer-CVtmHZwc.js → MarkdownRenderer-BIPowjr-.js} +3 -3
- package/dist/client/assets/js/{McpManagerView-C-ou8vf3.js → McpManagerView-DTtkUIvq.js} +1 -1
- package/dist/client/assets/js/{MemoryView-QGFW4iZo.js → MemoryView-BnL7xzux.js} +2 -2
- package/dist/client/assets/js/{MessageList-DZR-TFjD.js → MessageList-5tytzhb0.js} +3 -3
- package/dist/client/assets/js/{ModelsView-DiWdSWOW.js → ModelsView-ComCz0Ce.js} +1 -1
- package/dist/client/assets/js/{OutlinePanel-Dlr5svMY.js → OutlinePanel-CF_XPCRn.js} +1 -1
- package/dist/client/assets/js/{PageSidebarFooter-Bic1fUmG.js → PageSidebarFooter-dvLzcTIm.js} +1 -1
- package/dist/client/assets/js/{PdfFilePreview-Dkpan1ay.js → PdfFilePreview-COOAoJ4V.js} +2 -2
- package/dist/client/assets/js/{PerformanceView-LrZaED_Z.js → PerformanceView-D6dKifJh.js} +1 -1
- package/dist/client/assets/js/{PetdexView-Bv8RioGL.js → PetdexView-CmvzDYwf.js} +1 -1
- package/dist/client/assets/js/{PluginsView-CbtdIGlq.js → PluginsView-zJV9FE9c.js} +1 -1
- package/dist/client/assets/js/{PptxFilePreview-5if_GbU6.js → PptxFilePreview-dC4JxV6j.js} +2 -2
- package/dist/client/assets/js/{ProfileAvatar-DI9ciJxS.js → ProfileAvatar-C8xoALCI.js} +1 -1
- package/dist/client/assets/js/{ProfilesView-C-FSiKMU.js → ProfilesView-CxVxJRN_.js} +1 -1
- package/dist/client/assets/js/{ProviderConfigurationPrompt-BUoWC41Y.js → ProviderConfigurationPrompt-zwk1UwoP.js} +1 -1
- package/dist/client/assets/js/{SessionSearchModal-CEKvSihp.js → SessionSearchModal-DhwGsV-i.js} +1 -1
- package/dist/client/assets/js/{SettingRow-CSfiJmxx.js → SettingRow-DHqhLX3M.js} +1 -1
- package/dist/client/assets/js/{SettingsCircuitBadge-DHIEFyTR.js → SettingsCircuitBadge-CnWSfQZd.js} +1 -1
- package/dist/client/assets/js/{SettingsView-DbNJroV3.js → SettingsView-Cbroga25.js} +1 -1
- package/dist/client/assets/js/{SharedGroupChatView-CTYjqWcO.js → SharedGroupChatView-DXfqtQ33.js} +1 -1
- package/dist/client/assets/js/{SkillsUsageView-BqZ3GtfT.js → SkillsUsageView-C34i3lOQ.js} +1 -1
- package/dist/client/assets/js/{SkillsView-Bhla7821.js → SkillsView-DRG_1esx.js} +2 -2
- package/dist/client/assets/js/{SpreadsheetFilePreview-CGK8HDAx.js → SpreadsheetFilePreview-DRw4kIx5.js} +1 -1
- package/dist/client/assets/js/{TerminalPanel-CtBTLOwq.js → TerminalPanel-Da1nL9P8.js} +1 -1
- package/dist/client/assets/js/{TerminalView-BID7fupB.js → TerminalView-B6z-VaGq.js} +1 -1
- package/dist/client/assets/js/{ThemeView-Cx3ucIus.js → ThemeView-CAaJ9MH-.js} +1 -1
- package/dist/client/assets/js/{UsageView-ByGCsw7o.js → UsageView-B_hLsp0k.js} +1 -1
- package/dist/client/assets/js/{VersionPreviewView-DiAK1ind.js → VersionPreviewView-DKXL6anl.js} +1 -1
- package/dist/client/assets/js/{WebPet-CdIqrnp1.js → WebPet-BUvrfjpq.js} +1 -1
- package/dist/client/assets/js/{WorkflowView-DmBOhSuq.js → WorkflowView-r46Ap9FY.js} +1 -1
- package/dist/client/assets/js/{WorkspaceDiffPreview-dHIGp-9F.js → WorkspaceDiffPreview-EwZAE18F.js} +2 -2
- package/dist/client/assets/js/{abap-Dj8IFKiF.js → abap-C7gkFu-A.js} +1 -1
- package/dist/client/assets/js/{aiden0z-pptx-renderer.es-6vi5-jAN.js → aiden0z-pptx-renderer.es-DOpVaH_k.js} +1 -1
- package/dist/client/assets/js/{apex-C3INPUEt.js → apex-DZOtRowu.js} +1 -1
- package/dist/client/assets/js/{ar-Gk9y3ZfO.js → ar-8iThLSJQ.js} +1 -1
- package/dist/client/assets/js/architecture-7EHR7CIX-BrfhYGuP.js +1 -0
- package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DLZYeivB.js → architectureDiagram-3BPJPVTR-DEsTTzKd.js} +1 -1
- package/dist/client/assets/js/{auth-D1ZFqv22.js → auth-B52zm2Ir.js} +1 -1
- package/dist/client/assets/js/{azcli-UBzLhJq5.js → azcli-KxuicZQh.js} +1 -1
- package/dist/client/assets/js/{bat-P3O4jldt.js → bat-DfFP4HF-.js} +1 -1
- package/dist/client/assets/js/{bicep-DdQR9RxE.js → bicep-Co4bntVh.js} +1 -1
- package/dist/client/assets/js/{blockDiagram-GPEHLZMM-UWFo8sm5.js → blockDiagram-GPEHLZMM-NsxYeUKd.js} +1 -1
- package/dist/client/assets/js/{c4Diagram-AAUBKEIU-jgyj0wOb.js → c4Diagram-AAUBKEIU-D68asSzm.js} +1 -1
- package/dist/client/assets/js/{cameligo-Bb4ubW_C.js → cameligo-Xi0l_9Wr.js} +1 -1
- package/dist/client/assets/js/{chat-DdHii4Qz.js → chat-fUZW3YFa.js} +1 -1
- package/dist/client/assets/js/{chat-input-height-CSPwB9it.js → chat-input-height-lvFawuv9.js} +1 -1
- package/dist/client/assets/js/{chat-timestamp-DGQ8fmtT.js → chat-timestamp-4wWFcZWv.js} +1 -1
- package/dist/client/assets/js/{chunk-2J33WTMH-Br9OWF5a.js → chunk-2J33WTMH-CEU5sLIh.js} +1 -1
- package/dist/client/assets/js/{chunk-3OPIFGDE-Cb40LuI4.js → chunk-3OPIFGDE-DEhbKkCl.js} +1 -1
- package/dist/client/assets/js/{chunk-4BX2VUAB-jYtdiafd.js → chunk-4BX2VUAB-OIZUstuy.js} +1 -1
- package/dist/client/assets/js/{chunk-55IACEB6-CBtymeHY.js → chunk-55IACEB6-DQHKZCBG.js} +1 -1
- package/dist/client/assets/js/{chunk-5ZQYHXKU-yj9xqmex.js → chunk-5ZQYHXKU-BU3pQVVl.js} +1 -1
- package/dist/client/assets/js/{chunk-727SXJPM-er_5tB5X.js → chunk-727SXJPM-jj97gdnP.js} +1 -1
- package/dist/client/assets/js/{chunk-AQP2D5EJ-C4mDD6xK.js → chunk-AQP2D5EJ-jv-oWlkb.js} +1 -1
- package/dist/client/assets/js/{chunk-BSJP7CBP-QZesZe57.js → chunk-BSJP7CBP-DkKsepNF.js} +1 -1
- package/dist/client/assets/js/{chunk-CSCIHK7Q-5LH118bT.js → chunk-CSCIHK7Q-CLgoBoCF.js} +3 -3
- package/dist/client/assets/js/{chunk-FMBD7UC4-CQho6QZ5.js → chunk-FMBD7UC4-Bx1bCKUR.js} +1 -1
- package/dist/client/assets/js/{chunk-KSCS5N6A-DONM1Omv.js → chunk-KSCS5N6A-CZHZ6pBd.js} +1 -1
- package/dist/client/assets/js/{chunk-L5ZTLDWV-FN_zFWkp.js → chunk-L5ZTLDWV-dz9D3kOb.js} +1 -1
- package/dist/client/assets/js/{chunk-LZXEDZCA-CEEUVvpS.js → chunk-LZXEDZCA-CQiSQehC.js} +2 -2
- package/dist/client/assets/js/{chunk-ND2GUHAM-DWckpxQD.js → chunk-ND2GUHAM-mWODKb8v.js} +1 -1
- package/dist/client/assets/js/{chunk-NZK2D7GU-0mKZmkuV.js → chunk-NZK2D7GU-ivCkjCOR.js} +1 -1
- package/dist/client/assets/js/{chunk-O5CBEL6O-DIDAOkT_.js → chunk-O5CBEL6O-BRUisK47.js} +1 -1
- package/dist/client/assets/js/{chunk-QZHKN3VN-D3c-TMz-.js → chunk-QZHKN3VN-BHjgTrzY.js} +1 -1
- package/dist/client/assets/js/{chunk-WU5MYG2G-BZvSpwm4.js → chunk-WU5MYG2G-CNW1rcpL.js} +1 -1
- package/dist/client/assets/js/{chunk-XPW4576I-xdyJtk-s.js → chunk-XPW4576I-DP3dJbOu.js} +1 -1
- package/dist/client/assets/js/classDiagram-4FO5ZUOK-BVBBe3DQ.js +1 -0
- package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-DJUe3i9Y.js +1 -0
- package/dist/client/assets/js/{clipboard-DQ_A8ns-.js → clipboard-DHZFaAvO.js} +1 -1
- package/dist/client/assets/js/{clipboard-files-bDrcGKPe.js → clipboard-files-CBDy-02Y.js} +1 -1
- package/dist/client/assets/js/{clojure-ku7aCU1_.js → clojure-DuyGwS8X.js} +1 -1
- package/dist/client/assets/js/{coding-agents-DfHyBvky.js → coding-agents-BNTHD6kd.js} +1 -1
- package/dist/client/assets/js/{codingAgentProviders-BM18FAW9.js → codingAgentProviders-DM_ouxbL.js} +1 -1
- package/dist/client/assets/js/{coffee-DnRIdJlY.js → coffee-C5p7vzpa.js} +1 -1
- package/dist/client/assets/js/{completion-notification-XxjbntI8.js → completion-notification-CzdnhuX3.js} +1 -1
- package/dist/client/assets/js/{cose-bilkent-S5V4N54A-w891sIF1.js → cose-bilkent-S5V4N54A-De_ZdqY0.js} +1 -1
- package/dist/client/assets/js/{cpp-CN8i6ISX.js → cpp-II5hDbTe.js} +1 -1
- package/dist/client/assets/js/{csharp-B-fxig7O.js → csharp-D0POzSpv.js} +1 -1
- package/dist/client/assets/js/{csp-Bar9LGt4.js → csp-CwtuRkR3.js} +1 -1
- package/dist/client/assets/js/{css-DFtC5xZN.js → css-Dc2fJIqQ.js} +1 -1
- package/dist/client/assets/js/{cssMode-DH5XKKL2.js → cssMode-CC6jRvHF.js} +1 -1
- package/dist/client/assets/js/{cypher-BkJexWsv.js → cypher-DBcQoWDH.js} +1 -1
- package/dist/client/assets/js/{cytoscape.esm-BDsvr8Aq.js → cytoscape.esm-C9FMRqxM.js} +1 -1
- package/dist/client/assets/js/{dagre-BM42HDAG-BuT885pa.js → dagre-BM42HDAG-CvJIC410.js} +1 -1
- package/dist/client/assets/js/{dagre-BVUDh8Sh.js → dagre-BtgEsAtK.js} +1 -1
- package/dist/client/assets/js/{dart-B7W8hAtN.js → dart-Jf_Hmp2o.js} +1 -1
- package/dist/client/assets/js/{de-LDpd8WHJ.js → de-7hLSwCEx.js} +1 -1
- package/dist/client/assets/js/{defineProperty-DdPu4ZVv.js → defineProperty-DHkErCmG.js} +1 -1
- package/dist/client/assets/js/{desktop-browser-xrRFPNUg.js → desktop-browser-C6AhY0uu.js} +1 -1
- package/dist/client/assets/js/{diagram-2AECGRRQ-B1sSf-09.js → diagram-2AECGRRQ-CvPeU5Lm.js} +1 -1
- package/dist/client/assets/js/{diagram-5GNKFQAL-BffX22pf.js → diagram-5GNKFQAL-CBniYlkH.js} +1 -1
- package/dist/client/assets/js/{diagram-KO2AKTUF-D8QvpUpn.js → diagram-KO2AKTUF-C_yFaVRj.js} +1 -1
- package/dist/client/assets/js/{diagram-LMA3HP47-DkG7p3lQ.js → diagram-LMA3HP47-BzM1IxNe.js} +1 -1
- package/dist/client/assets/js/{diagram-OG6HWLK6-RjvNNvXM.js → diagram-OG6HWLK6-yvmf_3ax.js} +1 -1
- package/dist/client/assets/js/{dist-Bk0VKtV3.js → dist-BHzBn3v7.js} +1 -1
- package/dist/client/assets/js/{dockerfile-C4m7j8sy.js → dockerfile-J3d6ZPDJ.js} +1 -1
- package/dist/client/assets/js/{docx-preview-BpTW-GN7.js → docx-preview-Rqt8wMjQ.js} +1 -1
- package/dist/client/assets/js/{download-CX8EG48r.js → download-xhRMWMda.js} +1 -1
- package/dist/client/assets/js/{ecl-EHV358Ls.js → ecl-XnlT0p97.js} +1 -1
- package/dist/client/assets/js/{editor.api2-CnHBqh_d.js → editor.api2-ChO5nUQb.js} +1 -1
- package/dist/client/assets/js/{elixir-DLfp2Dwn.js → elixir-BEJbxH-B.js} +1 -1
- package/dist/client/assets/js/{en-D6VVFwFU.js → en-D2WSXgkM.js} +1 -1
- package/dist/client/assets/js/{erDiagram-TEJ5UH35-CLlLC6xx.js → erDiagram-TEJ5UH35-DZysD9r9.js} +1 -1
- package/dist/client/assets/js/{es-BIMLuyVP.js → es-B7Mq1P0U.js} +1 -1
- package/dist/client/assets/js/{esm-C8D4M0Yn.js → esm-DnZPPtmx.js} +1 -1
- package/dist/client/assets/js/eventmodeling-FCH6USID-vlE3-g2j.js +1 -0
- package/dist/client/assets/js/{file-preview-BvgwVZXh.js → file-preview-C417aixJ.js} +1 -1
- package/dist/client/assets/js/{files-CJkCqsUx.js → files-DjI-npgn.js} +1 -1
- package/dist/client/assets/js/{flow9-CtBaUnAi.js → flow9-j5XT_8TQ.js} +1 -1
- package/dist/client/assets/js/{flowDiagram-I6XJVG4X-VTRTPnqD.js → flowDiagram-I6XJVG4X-Dt5ZtyHz.js} +1 -1
- package/dist/client/assets/js/{fr-C2lf0cY2.js → fr-DvClrDOw.js} +1 -1
- package/dist/client/assets/js/{freemarker2-XLeMvhl_.js → freemarker2-BzCf_0SN.js} +1 -1
- package/dist/client/assets/js/{fsharp-Db0uaBQv.js → fsharp-ClU_Sdjr.js} +1 -1
- package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-CdKcIZ8_.js → ganttDiagram-6RSMTGT7-Bca3rPWi.js} +1 -1
- package/dist/client/assets/js/gitGraph-WXDBUCRP-Cyd4P6XH.js +1 -0
- package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-Bcuyw6fo.js → gitGraphDiagram-PVQCEYII-Co29qnTg.js} +1 -1
- package/dist/client/assets/js/{go-DwaTlB-B.js → go-D3iUyCM0.js} +1 -1
- package/dist/client/assets/js/{graphlib-vAI4Pw7R.js → graphlib-Bln6qd-Z.js} +1 -1
- package/dist/client/assets/js/{graphql-Cf2XhNJR.js → graphql-z8koqyyL.js} +1 -1
- package/dist/client/assets/js/{group-agent-avatar-CPehpiK0.js → group-agent-avatar-CwqtaKGw.js} +1 -1
- package/dist/client/assets/js/{group-chat-CY62vc77.js → group-chat-Buz8HP-N.js} +1 -1
- package/dist/client/assets/js/{group-chat-xkdjC2Jt.js → group-chat-CgFAwCtr.js} +1 -1
- package/dist/client/assets/js/{group-chat-agent-link-DdSNKasF.js → group-chat-agent-link-N5IFeN_j.js} +1 -1
- package/dist/client/assets/js/{handlebars-CNEKu_p8.js → handlebars-C_JvhUYs.js} +1 -1
- package/dist/client/assets/js/{hcl-6UZbq6h2.js → hcl-X7TzviIX.js} +1 -1
- package/dist/client/assets/js/{highlight-DwtBT6t1.js → highlight-C4yUBxwQ.js} +1 -1
- package/dist/client/assets/js/{html-DfSIHhKA.js → html-B-rCQB0N.js} +1 -1
- package/dist/client/assets/js/{htmlMode-iGw9-O-W.js → htmlMode-CAeEf_yf.js} +1 -1
- package/dist/client/assets/js/{index-DnjQJzX4.js → index-DN4SafrP.js} +5 -5
- package/dist/client/assets/js/info-J43DQDTF-B9tkQ2Sb.js +1 -0
- package/dist/client/assets/js/{infoDiagram-5YYISTIA-85450Zam.js → infoDiagram-5YYISTIA-BWQGayms.js} +1 -1
- package/dist/client/assets/js/{ini-8em8V_Af.js → ini-LTHHN4J-.js} +1 -1
- package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-BZ4az7UA.js → ishikawaDiagram-YF4QCWOH-Dhuplz_z.js} +1 -1
- package/dist/client/assets/js/{ja-C1bBXgr_.js → ja-D7BeX2_D.js} +1 -1
- package/dist/client/assets/js/{java-CP1MdIkO.js → java-BRFX-ya0.js} +1 -1
- package/dist/client/assets/js/{javascript-Cr8_LHYa.js → javascript-ZXiVmjXn.js} +1 -1
- package/dist/client/assets/js/{journeyDiagram-JHISSGLW-DGMB8Tgc.js → journeyDiagram-JHISSGLW-CJeatAU9.js} +1 -1
- package/dist/client/assets/js/{jsonMode-HCZ-1lFH.js → jsonMode-C6FcMe0o.js} +1 -1
- package/dist/client/assets/js/{jszip.min-BkR6b8DY.js → jszip.min-skZCUzWf.js} +1 -1
- package/dist/client/assets/js/{julia-DMTMxa5q.js → julia-Bph8N3CL.js} +1 -1
- package/dist/client/assets/js/{kanban-definition-UN3LZRKU-F5cH_RpB.js → kanban-definition-UN3LZRKU-tvWuOdSr.js} +1 -1
- package/dist/client/assets/js/{katex-CYbEJAbZ.js → katex-hSGJNERm.js} +1 -1
- package/dist/client/assets/js/{ko-qgOeHd8L.js → ko-BsVa-If_.js} +1 -1
- package/dist/client/assets/js/{kotlin-Blzus47W.js → kotlin-_c4-tPQp.js} +1 -1
- package/dist/client/assets/js/{less-DWCHpDyf.js → less-5oVo4jfQ.js} +1 -1
- package/dist/client/assets/js/{lexon-YXdlYGbJ.js → lexon-DE4YtGwF.js} +1 -1
- package/dist/client/assets/js/{liquid-DSQgvRwe.js → liquid-BGfieGMG.js} +1 -1
- package/dist/client/assets/js/{lspLanguageFeatures-0Hx2Vnc-.js → lspLanguageFeatures-DU_1H2uW.js} +1 -1
- package/dist/client/assets/js/{lua-Cyv3mTkg.js → lua-7WJSZJqD.js} +1 -1
- package/dist/client/assets/js/{m3-CPY3Ym7_.js → m3-gZlfoR19.js} +1 -1
- package/dist/client/assets/js/{markdown-DaPQ1nuG.js → markdown-BYF71orA.js} +1 -1
- package/dist/client/assets/js/{mdx-BqA6Xr9V.js → mdx-CunEIV3g.js} +1 -1
- package/dist/client/assets/js/{mermaid-parser.core-D4HRUOce.js → mermaid-parser.core-DU_SX15F.js} +3 -3
- package/dist/client/assets/js/{mermaid.core-w6kHmgOG.js → mermaid.core-8vsbhG5J.js} +3 -3
- package/dist/client/assets/js/{message-scroll-position-C5yRCyBU.js → message-scroll-position-C9_YO3pX.js} +2 -2
- package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-CnzhnJ7Z.js → mindmap-definition-RKZ34NQL-HPtlKqL1.js} +1 -1
- package/dist/client/assets/js/{mips-BfqBfLvN.js → mips-DXkvw9aZ.js} +1 -1
- package/dist/client/assets/js/{models-wrytxWnf.js → models-BILDy2sV.js} +1 -1
- package/dist/client/assets/js/{monaco.contribution-Bc-DesyO.js → monaco.contribution-DDqeHGl3.js} +2 -2
- package/dist/client/assets/js/{msdax-DgMip49g.js → msdax-BbHEBDvP.js} +1 -1
- package/dist/client/assets/js/{mysql-DPUvF1g2.js → mysql-7I1rlwh7.js} +1 -1
- package/dist/client/assets/js/{objective-c-BQ3llrPW.js → objective-c-Dk03REAv.js} +1 -1
- package/dist/client/assets/js/packet-YPE3B663-DlTFK3Wo.js +1 -0
- package/dist/client/assets/js/{pascal-bFWHV7MZ.js → pascal-BCfNkzYY.js} +1 -1
- package/dist/client/assets/js/{pascaligo-C8Qza2pK.js → pascaligo-D-DslS98.js} +1 -1
- package/dist/client/assets/js/{pdf-Cb7x495t.js → pdf-B_OYWxSy.js} +1 -1
- package/dist/client/assets/js/{pdf.worker.min-DDUKJ6cJ.js → pdf.worker.min--q2RLEHa.js} +1 -1
- package/dist/client/assets/js/{perl-x25gw0_p.js → perl-MUnuTclx.js} +1 -1
- package/dist/client/assets/js/{pets-BfRsvl7D.js → pets-D74G2jqA.js} +1 -1
- package/dist/client/assets/js/{pgsql-DAUcGeRq.js → pgsql-BxCBktNe.js} +1 -1
- package/dist/client/assets/js/{php-nri1eqb2.js → php-zp9UgH03.js} +1 -1
- package/dist/client/assets/js/pie-LRSECV5Y-BtnBGhFZ.js +1 -0
- package/dist/client/assets/js/{pieDiagram-4H26LBE5-4LODdtT_.js → pieDiagram-4H26LBE5-CG8_pcHr.js} +1 -1
- package/dist/client/assets/js/{pla-CHi5LWNL.js → pla-DGCtmYZC.js} +1 -1
- package/dist/client/assets/js/{postiats-Bk7jD0AA.js → postiats-DHSW8gnY.js} +1 -1
- package/dist/client/assets/js/{powerquery-UTqJ0Vs7.js → powerquery-BGsPEmJe.js} +1 -1
- package/dist/client/assets/js/{powershell-CuPY3Rqk.js → powershell-BItlb0hE.js} +1 -1
- package/dist/client/assets/js/{profiles-D-vlI-Ec.js → profiles-BK5JKD7h.js} +1 -1
- package/dist/client/assets/js/{protobuf-Be4AIz9j.js → protobuf-BIhm6JYx.js} +1 -1
- package/dist/client/assets/js/{pt-D7_udWb3.js → pt-BSORCDMm.js} +1 -1
- package/dist/client/assets/js/{pug-CZFx15Ey.js → pug-BtnM7KZj.js} +1 -1
- package/dist/client/assets/js/{python-BgRg6Ez6.js → python-DxzTx1Q_.js} +1 -1
- package/dist/client/assets/js/{qsharp-BiBiLhRS.js → qsharp-B_8MSfaB.js} +1 -1
- package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-g_q9-dXx.js → quadrantDiagram-W4KKPZXB-CsbkMYuV.js} +1 -1
- package/dist/client/assets/js/{r-DM7NVSbZ.js → r-kvKC59jk.js} +1 -1
- package/dist/client/assets/js/radar-GUYGQ44K-BTKMKX4G.js +1 -0
- package/dist/client/assets/js/{razor-CiWy0jCW.js → razor-BwZ0MkaL.js} +1 -1
- package/dist/client/assets/js/{redis-BR2LPmFL.js → redis-5j1U_i85.js} +1 -1
- package/dist/client/assets/js/{redshift-B0sdAV16.js → redshift-CX1dFLA1.js} +1 -1
- package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-EedCclad.js → requirementDiagram-4Y6WPE33-CKC7CQCX.js} +1 -1
- package/dist/client/assets/js/{restructuredtext-kQOBLN1M.js → restructuredtext-MV0-Naya.js} +1 -1
- package/dist/client/assets/js/{rough.esm-Dyx_2DON.js → rough.esm-CV1rL6PC.js} +1 -1
- package/dist/client/assets/js/{ru-CVQQmreT.js → ru-JsH6TKyg.js} +1 -1
- package/dist/client/assets/js/{ruby-CbdJXy6J.js → ruby-Bhyejf9X.js} +1 -1
- package/dist/client/assets/js/{rust-DZanYksk.js → rust-CR8d_FC1.js} +1 -1
- package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-DFC0nzsd.js → sankeyDiagram-5OEKKPKP-CKlqlvAe.js} +1 -1
- package/dist/client/assets/js/{sb-C5-WiqDZ.js → sb-hLW2EM2L.js} +1 -1
- package/dist/client/assets/js/{scala-Bk7i9nV-.js → scala-DVUhALEZ.js} +1 -1
- package/dist/client/assets/js/{scheme-CaZSWmJ2.js → scheme-BS6yNanr.js} +1 -1
- package/dist/client/assets/js/{scss-ByOYuc7K.js → scss-BfoRsElt.js} +1 -1
- package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-hWjPfqXt.js → sequenceDiagram-3UESZ5HK-CTimhD6H.js} +1 -1
- package/dist/client/assets/js/{session-browser-prefs-Br8OYA4_.js → session-browser-prefs-BT1woDux.js} +1 -1
- package/dist/client/assets/js/{sessions-iGK9S6zk.js → sessions-IkLKgnN6.js} +1 -1
- package/dist/client/assets/js/{settings-pbanANH0.js → settings-roYY6G3W.js} +1 -1
- package/dist/client/assets/js/{shell-Di0TEySc.js → shell-BO_Lyczz.js} +1 -1
- package/dist/client/assets/js/{skills-DC-UPcXj.js → skills-a5LPwmiT.js} +1 -1
- package/dist/client/assets/js/{solidity-BNTjAuuA.js → solidity-D3T2Ki4l.js} +1 -1
- package/dist/client/assets/js/{sophia-LY__8Yob.js → sophia-iJmIEvi8.js} +1 -1
- package/dist/client/assets/js/{sparql-CWnLfgGS.js → sparql-C2HCEExr.js} +1 -1
- package/dist/client/assets/js/{sql-B0ypQ9lR.js → sql-DM6_3GBc.js} +1 -1
- package/dist/client/assets/js/{src-BihFroE7.js → src-DD_TpJde.js} +1 -1
- package/dist/client/assets/js/{st-CqVFKTbZ.js → st-DSb39Fm5.js} +1 -1
- package/dist/client/assets/js/{stateDiagram-AJRCARHV-B7wEnYVe.js → stateDiagram-AJRCARHV-DwBGmBj6.js} +1 -1
- package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-5bNcwBne.js +1 -0
- package/dist/client/assets/js/{style-DDAg_jVj.js → style-B5xXhBlp.js} +1 -1
- package/dist/client/assets/js/{swift-B4ZZmDxc.js → swift-DrZYSZK3.js} +1 -1
- package/dist/client/assets/js/{systemverilog-zLt-O1mT.js → systemverilog-BAWNCaf6.js} +1 -1
- package/dist/client/assets/js/{tcl-DCSZmA-l.js → tcl-DY15ex6v.js} +1 -1
- package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BN_LfleE.js → timeline-definition-PNZ67QCA-B8xuIu6g.js} +1 -1
- package/dist/client/assets/js/treeView-BLDUP644-DvZPUnGM.js +1 -0
- package/dist/client/assets/js/treemap-LRROVOQU-Bis1djYh.js +1 -0
- package/dist/client/assets/js/{tsMode-BjUcuHrq.js → tsMode-BE8JCSCE.js} +1 -1
- package/dist/client/assets/js/{ttsHelpers-BLunFYsq.js → ttsHelpers-BLNiQExI.js} +1 -1
- package/dist/client/assets/js/{twig-CuJlVpUG.js → twig-BpHF_18K.js} +1 -1
- package/dist/client/assets/js/{typescript-De40YVFt.js → typescript-FQ3z9hVG.js} +1 -1
- package/dist/client/assets/js/{typespec-8QcsIc3c.js → typespec-BKvcn6aE.js} +1 -1
- package/dist/client/assets/js/{useSttSettings-B1-KXN44.js → useSttSettings-DHX06G8A.js} +1 -1
- package/dist/client/assets/js/{vb-DEGTdhxf.js → vb-B74ucE43.js} +1 -1
- package/dist/client/assets/js/{vennDiagram-CIIHVFJN-hL8ax7wF.js → vennDiagram-CIIHVFJN-DtEu04QR.js} +1 -1
- package/dist/client/assets/js/wardley-L42UT6IY-CD4dIN63.js +1 -0
- package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BIR-RA6Y.js → wardleyDiagram-YWT4CUSO-DdNKCPsp.js} +1 -1
- package/dist/client/assets/js/{wgsl-CmbiucmY.js → wgsl-DEf5Vdqv.js} +1 -1
- package/dist/client/assets/js/{workers-BgWBq4qY.js → workers-BbaiLVxx.js} +1 -1
- package/dist/client/assets/js/{workflow-socket-DZ9Ceffc.js → workflow-socket-DH402vxO.js} +1 -1
- package/dist/client/assets/js/{xml-SZLdwDmk.js → xml-zjE51I7v.js} +1 -1
- package/dist/client/assets/js/{xterm-D6CotCNH.js → xterm-Djy4rCx0.js} +1 -1
- package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-DHa486uP.js → xychartDiagram-2RQKCTM6-CKqN7g7r.js} +1 -1
- package/dist/client/assets/js/{yaml-CgQpCgM5.js → yaml-DabeGoTc.js} +1 -1
- package/dist/client/assets/js/{zh-BDlMioZr.js → zh-CI4-L3JY.js} +1 -1
- package/dist/client/assets/js/{zh-TW-DTbLWR1A.js → zh-TW-wYlj-uOZ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/openapi.json +1 -1
- package/package.json +9 -1
- package/dist/client/assets/js/architecture-7EHR7CIX-Cl4Qi40R.js +0 -1
- package/dist/client/assets/js/classDiagram-4FO5ZUOK-DC0BcY8x.js +0 -1
- package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BfDDH_fm.js +0 -1
- package/dist/client/assets/js/eventmodeling-FCH6USID-Bgzwnvkn.js +0 -1
- package/dist/client/assets/js/gitGraph-WXDBUCRP-CwFrpI3e.js +0 -1
- package/dist/client/assets/js/info-J43DQDTF-wMwkmIWM.js +0 -1
- package/dist/client/assets/js/packet-YPE3B663-DYmKXJOE.js +0 -1
- package/dist/client/assets/js/pie-LRSECV5Y-Dx0hbcjV.js +0 -1
- package/dist/client/assets/js/radar-GUYGQ44K-D-t-QJhi.js +0 -1
- package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CoMhBVvo.js +0 -1
- package/dist/client/assets/js/treeView-BLDUP644-CMJGhbWk.js +0 -1
- package/dist/client/assets/js/treemap-LRROVOQU-_j4KoVDh.js +0 -1
- package/dist/client/assets/js/wardley-L42UT6IY-BeOvmJoM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as Le,$i as d,$r as Ue,$t as N,A as Ie,Bi as Ne,Ci as Ve,D as Ee,Di as le,G as Be,Gi as Ge,Hi as s,Jr as Fe,Ki as Oe,M as pe,Mr as Je,Nr as ge,O as He,Pr as fe,Qr as Ae,Ri as Ke,Sa as a,Ti as h,Vr as We,Wi as se,Xr as qe,Z as Qe,Zi as Ze,_a as t,_i as e,_t as me,bi as p,ca as Xe,di as ve,dn as _e,dt as Ye,ea as he,ei as ue,fi as xe,gi as P,gt as Ce,i as De,ii as et,k as tt,ln as de,lt as at,mi as oe,n as we,ni as nt,pi as Re,r as Pe,ri as it,si as ie,sn as $e,t as ye,ua as B,vi as V,wi as C,ya as W,yi as y,zr as Me,zt as ze}from"./index-DnjQJzX4.js";import{a as rt,i as st,o as ot,r as Te,s as lt,t as je}from"./profiles-D-vlI-Ec.js";import{n as dt,t as be}from"./ProfileAvatar-DI9ciJxS.js";nt();Ae();ge();pe();Pe();ie();function ut(T){let o={};if(typeof window<"u")try{const n=window.localStorage.getItem(T);n&&(o=JSON.parse(n))}catch{o={}}const j=Xe({...o});function u(){typeof window>"u"||window.localStorage.setItem(T,JSON.stringify({...j}))}return{record:j,persist:u}}ie();var ct=["href","title","aria-current","onClick"],vt=le({__name:"RouteLinkItem",props:{to:{},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},title:{}},setup(T){const o=T;return(j,u)=>{const n=Oe("RouterLink");return s(),V(n,{to:o.to,custom:""},{default:d(m=>[e("a",{class:W(["route-link-item",{active:o.active??(o.exact?!!m?.isExactActive:!!m?.isActive)}]),href:m?.href||"#",title:o.title,"aria-current":o.active??(o.exact?!!m?.isExactActive:!!m?.isActive)?"page":void 0,onClick:m?.navigate},[Ge(j.$slots,"default")],10,ct)]),_:3},8,["to"])}}}),R=vt;ie();je();var _t={class:"model-selector"},ht={class:"model-label-row"},mt={class:"model-label"},pt=["disabled","title","aria-label"],gt=["title"],ft={class:"model-list"},wt=["onClick"],yt={class:"model-group-label"},kt={class:"model-group-count"},bt={class:"model-group-items"},xt=["title","onClick"],Ct={class:"model-item-label"},$t={class:"model-item-name"},Mt={key:0,class:"model-item-id"},St={key:0,class:"model-badge-preview"},Vt={key:1,class:"model-badge-disabled"},Bt={key:2,class:"model-badge-custom"},At=["title","onClick"],Dt={key:4,class:"model-check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},Rt={key:0,class:"model-empty"},Pt={class:"model-custom"},zt={class:"model-custom-row"},Tt={class:"model-custom-hint"},jt=le({__name:"ModelSelector",emits:["modal-show-change"],setup(T,{emit:o}){const j=o,{t:u}=fe(),n=De(),m=Te(),l=B(!1),k=B(""),F=B({}),M=B(""),z=B(""),E=P(()=>m.activeProfileName||"default"),U=P(()=>n.profileModelGroups.find(v=>v.profile===E.value)?.groups||[]),I=P(()=>(z.value=n.selectedProvider,U.value.map(v=>({label:v.label,value:v.provider})))),L=P(()=>U.value.map(v=>({...v,models:[...v.models,...(n.customModels[v.provider]||[]).filter(g=>!v.models.includes(g))]}))),Q=P(()=>L.value.some(v=>v.provider===n.selectedProvider&&v.models.includes(n.selectedModel))),q=P(()=>Q.value?n.displayModelName(n.selectedModel,n.selectedProvider):"");function G(v,g){return(n.customModels[g]||[]).includes(v)}async function O(v,g){await n.removeCustomModel(v,g)}function b(v){return typeof v=="string"?v.toLowerCase():""}const Z=P(()=>{const v=b(k.value).trim();return v?L.value.map(g=>({...g,models:g.models.filter(w=>{const D=n.displayModelName(w,g.provider);return b(w).includes(v)||b(D).includes(v)})})).filter(g=>g.models.length>0||b(g.label).includes(v)):L.value});function ee(v){F.value[v]=!F.value[v]}function te(v){return!!F.value[v]}function ae(v,g){U.value.find(w=>w.provider===g)?.model_meta?.[v]?.disabled||(n.switchModel(v,g),K(!1),k.value="")}function J(v,g){return n.displayModelName(v,g)}function X(v,g){return n.getModelAlias(v,g)}function H(){const v=M.value.trim();!v||!z.value||U.value.find(g=>g.provider===z.value)?.model_meta?.[v]?.disabled||(n.switchModel(v,z.value),K(!1),k.value="",M.value="")}function K(v){l.value=v,j("modal-show-change",v)}function A(){F.value={},k.value="",M.value="",z.value=n.selectedProvider,K(!0)}function i(v){K(v)}const S=B(!1);async function ne(){if(S.value)return;S.value=!0;const v=Date.now();try{await n.reloadModels({preserveSelection:!0})}finally{const g=Date.now()-v,w=600;g<w&&await new Promise(D=>setTimeout(D,w-g)),S.value=!1}}return(v,g)=>(s(),p("div",_t,[e("div",ht,[e("div",mt,a(t(u)("models.title")),1),e("button",{class:"model-refresh",type:"button",disabled:S.value,title:t(u)("models.refresh"),"aria-label":t(u)("models.refresh"),onClick:ne},[(s(),p("svg",{class:W({spinning:S.value}),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...g[3]||(g[3]=[e("polyline",{points:"23 4 23 10 17 10"},null,-1),e("polyline",{points:"1 20 1 14 7 14"},null,-1),e("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},null,-1)])],2))],8,pt)]),e("button",{class:"model-trigger",onClick:A},[e("span",{class:"model-name",title:t(n).selectedModel},a(q.value||"—"),9,gt),g[4]||(g[4]=e("svg",{class:"model-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"6 9 12 15 18 9"})],-1))]),h(t(me),{show:l.value,preset:"card",title:t(u)("models.title"),style:{width:"min(480px, calc(100vw - 32px))"},"mask-closable":!0,"onUpdate:show":i},{default:d(()=>[h(t($e),{value:k.value,"onUpdate:value":g[0]||(g[0]=w=>k.value=w),placeholder:t(u)("models.searchPlaceholder"),clearable:"",size:"small",class:"model-search"},null,8,["value","placeholder"]),e("div",ft,[(s(!0),p(oe,null,se(Z.value,w=>(s(),p("div",{key:w.provider,class:"model-group"},[e("div",{class:"model-group-header",onClick:D=>ee(w.provider)},[(s(),p("svg",{class:W(["model-group-arrow",{collapsed:te(w.provider)}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...g[5]||(g[5]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2)),e("span",yt,a(w.label),1),e("span",kt,a(w.models.length),1)],8,wt),he(e("div",bt,[(s(!0),p(oe,null,se(w.models,D=>(s(),p("div",{key:D,class:W(["model-item",{active:D===t(n).selectedModel&&w.provider===t(n).selectedProvider,disabled:!!w.model_meta?.[D]?.disabled}]),title:w.model_meta?.[D]?.disabled?t(u)("models.disabledTooltip"):"",onClick:ce=>ae(D,w.provider)},[e("span",Ct,[e("span",$t,a(J(D,w.provider)),1),X(D,w.provider)?(s(),p("span",Mt,a(t(u)("models.aliasCanonical",{model:D})),1)):y("",!0)]),w.model_meta?.[D]?.preview?(s(),p("span",St,a(t(u)("models.previewBadge")),1)):y("",!0),w.model_meta?.[D]?.disabled?(s(),p("span",Vt,a(t(u)("models.disabledBadge")),1)):y("",!0),G(D,w.provider)?(s(),p("span",Bt,a(t(u)("models.customBadge")),1)):y("",!0),G(D,w.provider)?(s(),p("button",{key:3,class:"model-custom-remove",type:"button",title:t(u)("models.removeCustomModel"),onClick:Re(ce=>O(D,w.provider),["stop"])}," × ",8,At)):y("",!0),D===t(n).selectedModel&&w.provider===t(n).selectedProvider?(s(),p("svg",Dt,[...g[6]||(g[6]=[e("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):y("",!0)],10,xt))),128))],512),[[ve,!te(w.provider)]])]))),128)),Z.value.length===0?(s(),p("div",Rt,a(k.value?"No results":"No models"),1)):y("",!0)]),e("div",Pt,[e("div",zt,[h(t(ze),{value:z.value,"onUpdate:value":g[1]||(g[1]=w=>z.value=w),options:I.value,size:"small",class:"model-custom-provider"},null,8,["value","options"]),h(t($e),{value:M.value,"onUpdate:value":g[2]||(g[2]=w=>M.value=w),placeholder:t(u)("models.customModelPlaceholder"),size:"small",class:"model-custom-input",onKeydown:xe(H,["enter"])},null,8,["value","placeholder"])]),e("div",Tt,a(t(u)("models.customModelHint")),1)])]),_:1},8,["show","title"])]))}});rt();we();var Lt=ye(jt,[["__scopeId","data-v-9c1adbea"]]);ie();pe();je();dt();ge();var Ut={class:"profile-selector"},It={class:"selector-label"},Nt={class:"profile-name"},Et={class:"profile-modal-header"},Gt={class:"profile-popover-title"},Ft={class:"profile-popover-name"},Ot={class:"profile-popover-subtitle"},Jt={class:"profile-runtime-list"},Ht={class:"profile-runtime-main"},Kt={class:"profile-runtime-info"},Wt={class:"profile-runtime-name-row"},qt={class:"profile-runtime-name"},Qt={key:0,class:"active-badge"},Zt={class:"runtime-status-grid"},Xt={class:"runtime-row compact"},Yt={class:"runtime-label"},ea={class:"runtime-row compact"},ta={class:"runtime-label"},aa={key:0,class:"runtime-detail"},na={class:"profile-runtime-actions"},ia={key:0,class:"avatar-editor"},ra={class:"avatar-editor-meta"},sa={class:"avatar-editor-name"},oa={class:"avatar-editor-hint"},la={class:"avatar-editor-actions"},da=le({__name:"ProfileSelector",emits:["modal-show-change"],setup(T,{emit:o}){const j=o,{t:u}=fe(),n=Ce(),m=Te(),l=P(()=>m.activeProfileName??""),k=P(()=>l.value||"default"),F=P(()=>m.profiles.find(_=>_.name===k.value)),M=B([]),z=B(!1),E=B(!1),U=B(!1),I=B(null),L=B(!1),Q=B(null),q=B({}),G=B({}),O=B({}),b=P(()=>new Map(M.value.map(_=>[_.profile,_])));let Z=0;function ee(_){E.value=_,j("modal-show-change",_)}async function te(_={}){const $=++Z;_.background||(z.value=M.value.length===0);try{const f=await st({refresh:!_.background});return $!==Z?!1:(M.value=f.profiles,!!f.refreshing)}catch{return M.value=[],!1}finally{$===Z&&(z.value=!1)}}function ae(){ee(!0),te().then(_=>{_&&J()})}function J(_=0){_>=12||typeof window>"u"||window.setTimeout(()=>{E.value&&te({background:!0}).then($=>{$&&J(_+1)})},_===0?700:1200)}function X(_){ee(_)}function H(_){I.value=_,U.value=!0}function K(){return`profile-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}async function A(_){if(I.value){L.value=!0;try{await m.updateAvatar(I.value.name,_),n.success(u("profiles.avatar.saveSuccess")),U.value=!1}catch($){n.error($?.message||u("profiles.avatar.saveFailed"))}finally{L.value=!1}}}async function i(){await A({type:"generated",seed:K()})}async function S(){if(I.value){L.value=!0;try{await m.deleteAvatar(I.value.name),n.success(u("profiles.avatar.resetSuccess")),U.value=!1}catch(_){n.error(_?.message||u("profiles.avatar.resetFailed"))}finally{L.value=!1}}}function ne(){Q.value?.click()}async function v(_){const $=_.target,f=$.files?.[0];if($.value="",!!f){if(!["image/png","image/jpeg","image/webp"].includes(f.type)){n.warning(u("profiles.avatar.invalidType"));return}if(f.size>1024*1024){n.warning(u("profiles.avatar.tooLarge"));return}await A({type:"image",dataUrl:await new Promise((re,r)=>{const x=new FileReader;x.onload=()=>re(String(x.result||"")),x.onerror=()=>r(x.error||new Error("Failed to read file")),x.readAsDataURL(f)})})}}function g(_){return _==null?u("profiles.runtime.checking"):u(_?"profiles.runtime.running":"profiles.runtime.stopped")}function w(_){return _==null?u("profiles.runtime.checking"):u(_?"profiles.runtime.active":"profiles.runtime.idle")}async function D(_){q.value={...q.value,[_]:!0};try{const $=await ot(_);b.value.get(_)&&(M.value=M.value.map(f=>f.profile===_?{...f,gateway:$}:f)),n.success(u("profiles.runtime.gatewayRestarted",{name:_}))}catch($){n.error($?.message||u("profiles.runtime.gatewayRestartFailed"))}finally{q.value={...q.value,[_]:!1}}}async function ce(_){G.value={...G.value,[_]:!0};try{const $=await lt(_);M.value=M.value.map(f=>f.profile===_?$:f),n.success(u("profiles.runtime.profileRestarted",{name:_}))}catch($){n.error($?.message||u("profiles.runtime.profileRestartFailed"))}finally{G.value={...G.value,[_]:!1}}}async function ke(_){if(_!==k.value){O.value={...O.value,[_]:!0};try{if(!await m.switchProfile(_))throw new Error(u("profiles.switchFailed"));n.success(u("profiles.switchSuccess",{name:_})),window.location.reload()}catch($){n.error($?.message||u("profiles.switchFailed"))}finally{O.value={...O.value,[_]:!1}}}}return Ne(()=>{m.profiles.length===0&&m.fetchProfiles()}),(_,$)=>(s(),p("div",Ut,[e("div",It,a(t(u)("sidebar.profiles")),1),e("div",{class:"profile-display","data-testid":"profile-selector-select",onClick:ae},[h(be,{class:"profile-avatar",name:k.value,avatar:F.value?.avatar,size:24},null,8,["name","avatar"]),e("span",Nt,a(k.value),1)]),h(t(me),{show:E.value,preset:"card",bordered:!1,style:{width:"720px",maxWidth:"calc(100vw - 32px)"},class:"profile-manager-modal","onUpdate:show":X},{header:d(()=>[e("div",Et,[e("div",Gt,[e("span",Ft,a(t(u)("sidebar.profiles")),1),e("span",Ot,a(t(u)("profiles.runtime.activeProfile",{name:k.value})),1)])])]),default:d(()=>[h(t(Be),{show:z.value,size:"small"},{default:d(()=>[e("div",Jt,[(s(!0),p(oe,null,se(t(m).profiles,f=>(s(),p("div",{key:f.name,class:W(["profile-runtime-item",{active:f.name===k.value}])},[e("div",Ht,[h(be,{class:"profile-runtime-avatar",name:f.name,avatar:f.avatar,size:34},null,8,["name","avatar"]),e("div",Kt,[e("div",Wt,[e("span",qt,a(f.name),1),f.name===k.value?(s(),p("span",Qt,a(t(u)("profiles.runtime.activeTag")),1)):y("",!0)]),e("div",Zt,[e("div",Xt,[e("span",Yt,a(t(u)("profiles.runtime.bridgeWorker")),1),e("span",{class:W(["runtime-value",{running:b.value.get(f.name)?.bridge.running}])},[$[1]||($[1]=e("span",{class:"runtime-dot"},null,-1)),C(" "+a(w(b.value.get(f.name)?.bridge.running)),1)],2)]),e("div",ea,[e("span",ta,a(t(u)("profiles.runtime.gateway")),1),e("span",{class:W(["runtime-value",{running:b.value.get(f.name)?.gateway.running}])},[$[2]||($[2]=e("span",{class:"runtime-dot"},null,-1)),C(" "+a(g(b.value.get(f.name)?.gateway.running)),1)],2)])]),!b.value.get(f.name)?.gateway.running&&(b.value.get(f.name)?.gateway.diagnostics?.reason||b.value.get(f.name)?.gateway.error)?(s(),p("div",aa,a(b.value.get(f.name)?.gateway.diagnostics?.reason||b.value.get(f.name)?.gateway.error),1)):y("",!0)])]),e("div",na,[h(t(N),{size:"small",type:"primary",onClick:re=>H(f)},{default:d(()=>[C(a(t(u)("profiles.avatar.customize")),1)]),_:1},8,["onClick"]),h(t(N),{size:"small",type:"primary",loading:q.value[f.name],onClick:re=>D(f.name)},{default:d(()=>[C(a(t(u)("profiles.runtime.restartGateway")),1)]),_:1},8,["loading","onClick"]),h(t(N),{size:"small",type:"primary",loading:G.value[f.name],onClick:re=>ce(f.name)},{default:d(()=>[C(a(t(u)("profiles.runtime.restartProfile")),1)]),_:1},8,["loading","onClick"]),h(t(N),{size:"small",type:"primary",disabled:f.name===k.value,loading:O.value[f.name],onClick:re=>ke(f.name)},{default:d(()=>[C(a(t(u)("profiles.runtime.switchProfile")),1)]),_:1},8,["disabled","loading","onClick"])])],2))),128))])]),_:1},8,["show"])]),_:1},8,["show"]),h(t(me),{show:U.value,"onUpdate:show":$[0]||($[0]=f=>U.value=f),preset:"card",title:t(u)("profiles.avatar.title"),bordered:!1,style:{width:"420px",maxWidth:"calc(100vw - 32px)"}},{default:d(()=>[I.value?(s(),p("div",ia,[h(be,{name:I.value.name,avatar:I.value.avatar,size:72},null,8,["name","avatar"]),e("div",ra,[e("div",sa,a(I.value.name),1),e("div",oa,a(t(u)("profiles.avatar.hint")),1)]),e("input",{ref_key:"fileInputRef",ref:Q,class:"avatar-file-input",type:"file",accept:"image/png,image/jpeg,image/webp",onChange:v},null,544),e("div",la,[h(t(N),{type:"primary",loading:L.value,onClick:ne},{default:d(()=>[C(a(t(u)("profiles.avatar.upload")),1)]),_:1},8,["loading"]),h(t(N),{type:"primary",loading:L.value,onClick:i},{default:d(()=>[C(a(t(u)("profiles.avatar.random")),1)]),_:1},8,["loading"]),h(t(N),{loading:L.value,onClick:S},{default:d(()=>[C(a(t(u)("profiles.avatar.reset")),1)]),_:1},8,["loading"])])])):y("",!0)]),_:1},8,["show","title"])]))}});we();var ua=ye(da,[["__scopeId","data-v-800ef502"]]);ie();ge();pe();var ca=le({__name:"LanguageSwitch",setup(T){const{locale:o}=fe(),j=[{label:"简体中文",value:"zh"},{label:"繁體中文",value:"zh-TW"},{label:"English",value:"en"},{label:"日本語",value:"ja"},{label:"한국어",value:"ko"},{label:"Français",value:"fr"},{label:"Español",value:"es"},{label:"Deutsch",value:"de"},{label:"Português",value:"pt"},{label:"Русский",value:"ru"},{label:"العربية",value:"ar"}];async function u(n){await Je(n)}return(n,m)=>(s(),V(t(ze),{value:t(o),options:j,size:"tiny","consistent-menu-width":!1,class:"language-switch input-sm","onUpdate:value":u},null,8,["value"]))}}),va=ca;ie();Ee();var _a={class:"theme-switch-container",style:{display:"flex",gap:"4px","align-items":"center"}},ha=["title"],ma={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},pa={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ga=["title"],fa={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wa={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ya=le({__name:"ThemeSwitch",setup(T){const{isDark:o,isComic:j,toggleBrightness:u,toggleStyle:n}=He();return(m,l)=>(s(),p("div",_a,[e("button",{class:"theme-switch",title:t(j)?"Ink style":"Comic style",onClick:l[0]||(l[0]=(...k)=>t(n)&&t(n)(...k))},[t(j)?(s(),p("svg",ma,[...l[2]||(l[2]=[e("path",{d:"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"},null,-1)])])):(s(),p("svg",pa,[...l[3]||(l[3]=[e("path",{d:"M12 3l1.5 5.5L19 10l-5.5 1.5L12 17l-1.5-5.5L5 10l5.5-1.5L12 3z"},null,-1)])]))],8,ha),e("button",{class:"theme-switch",title:t(o)?"Light mode":"Dark mode",onClick:l[1]||(l[1]=(...k)=>t(u)&&t(u)(...k))},[t(o)?(s(),p("svg",fa,[...l[4]||(l[4]=[Ve('<circle cx="12" cy="12" r="5" data-v-4c30f4bd></circle><line x1="12" y1="1" x2="12" y2="3" data-v-4c30f4bd></line><line x1="12" y1="21" x2="12" y2="23" data-v-4c30f4bd></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-4c30f4bd></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-4c30f4bd></line><line x1="1" y1="12" x2="3" y2="12" data-v-4c30f4bd></line><line x1="21" y1="12" x2="23" y2="12" data-v-4c30f4bd></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-4c30f4bd></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-4c30f4bd></line>',9)])])):(s(),p("svg",wa,[...l[5]||(l[5]=[e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"},null,-1)])]))],8,ga)]))}});Ie();we();var ka=ye(ya,[["__scopeId","data-v-4c30f4bd"]]);async function ba(){return ue("/api/hermes/runtime-versions")}async function xa(T){return ue("/api/hermes/runtime-versions/active-runtime",{method:"POST",body:JSON.stringify({version:T})})}async function Se(T){return ue("/api/hermes/runtime-versions/runtime-root",{method:"POST",body:JSON.stringify({directory:T})})}async function Ca(T,o){return ue("/api/hermes/runtime-versions/runtime/download",{method:"POST",body:JSON.stringify({version:T,source:o})})}async function $a(T){return ue(`/api/hermes/runtime-versions/runtime/${encodeURIComponent(T)}`,{method:"DELETE"})}async function Ma(){return ue("/api/hermes/runtime-versions/jobs")}ie();ge();pe();We();var Sa={class:"version-management"},Va={class:"version-section"},Ba={class:"section-heading"},Aa={class:"active-path stacked"},Da=["title"],Ra=["title"],Pa={class:"runtime-update-note"},za={class:"runtime-directory-control"},Ta={class:"runtime-directory-value"},ja=["title"],La={key:0,class:"runtime-directory-actions"},Ua={key:0,class:"runtime-directory-hint"},Ia={class:"version-list"},Na={class:"version-main"},Ea={class:"version-actions"},Ga={key:0,class:"empty-row"},Fa={key:2,class:"version-section"},Oa={class:"section-heading compact"},Ja={class:"job-list"},Ha={class:"job-main"},Ka={key:0,class:"job-progress"},Wa={key:1},qa=le({__name:"VersionManagementModal",props:{show:{type:Boolean}},emits:["update:show"],setup(T,{emit:o}){const j=T,u=o,{t:n}=fe(),m=Ce(),l=B(null),k=B([]),F=B(!1),M=B({}),z=B("");let E=null;const U=P(()=>typeof Me()?.selectRuntimeDirectory=="function"),I=P(()=>{const r=l.value?.hermes.defaultStorageDirectory,x=l.value?.hermes.pendingStorageDirectory||l.value?.hermes.storageDirectory;return!r||x===r}),L=P(()=>(l.value?.hermes.installed||[]).filter(r=>r.platform===l.value?.platform)),Q=P(()=>O([...l.value?.hermes.remoteVersions||[],...L.value.map(r=>r.version)])),q=P(()=>k.value.filter(r=>r.kind==="runtime"));Ze(()=>j.show,r=>{r?b():J()}),Ke(J);function G(r){u("update:show",r)}function O(r){return Array.from(new Set(r.map(x=>x.trim().replace(/^v/,"")).filter(Boolean))).sort((x,c)=>c.localeCompare(x,void 0,{numeric:!0}))}async function b(){F.value=!0,z.value="";try{await Promise.all([Z(),ee()]),X()&&ae()}catch(r){z.value=r instanceof Error?r.message:String(r)}finally{F.value=!1}}async function Z(){l.value=await ba()}async function ee(){k.value=(await Ma()).jobs}async function te(){try{const r=X();await ee(),r&&!X()?(J(),await Z()):X()||J()}catch{J()}}function ae(){E||(E=setInterval(()=>{te()},2e3))}function J(){E&&(clearInterval(E),E=null)}function X(){return q.value.some(r=>r.status==="queued"||r.status==="running")}function H(r){return L.value.find(x=>x.version===r)}function K(r,x){return k.value.find(c=>c.kind===r&&c.version===x.replace(/^v/,"")&&(c.status==="queued"||c.status==="running"))}function A(r){return r==="completed"?"success":r==="failed"?"error":r==="running"?"info":"warning"}function i(r){return r.status==="completed"||r.status==="failed"?n(`runtimeVersions.jobStatus.${r.status}`):n(`runtimeVersions.jobStageStatus.${r.stage}`)}function S(r){return r.startsWith("runtimeVersions.")?n(r):r}function ne(r,x){M.value={...M.value,[r]:x}}async function v(r,x){ne(r,!0);try{await x()}catch(c){m.error(c instanceof Error?c.message:String(c))}finally{ne(r,!1)}}function g(r){return n(r==="github"?"runtimeVersions.github":"runtimeVersions.cf")}function w(r){if(!r||r<=0)return"";const x=["B","KB","MB","GB"];let c=r,Y=0;for(;c>=1024&&Y<x.length-1;)c/=1024,Y+=1;return`${c>=10||Y===0?c.toFixed(0):c.toFixed(1)} ${x[Y]}`}function D(r){return r?.split("·")[0]?.trim()||"-"}function ce(r){return r.receivedBytes&&r.totalBytes?`${w(r.receivedBytes)} / ${w(r.totalBytes)}`:r.receivedBytes?w(r.receivedBytes):S(r.message)}async function ke(r,x){await v(`download-runtime-${x}-${r}`,async()=>{const c=await Ca(r,x);k.value=[c.job,...k.value.filter(Y=>Y.id!==c.job.id)],m.success(n("runtimeVersions.downloadStarted")),ae()})}async function _(r){await v(`activate-runtime-${r}`,async()=>{await xa(r),m.success(n("runtimeVersions.activateSuccess")),await b()})}async function $(){const r=Me()?.selectRuntimeDirectory;r&&await v("select-runtime-directory",async()=>{const x=await r(l.value?.hermes.pendingStorageDirectory||l.value?.hermes.storageDirectory||void 0);x&&(await Se(x),m.success(n("runtimeVersions.runtimeDirectorySaved")),await b())})}async function f(){const r=l.value?.hermes.defaultStorageDirectory;r&&await v("reset-runtime-directory",async()=>{await Se(r),m.success(n("runtimeVersions.runtimeDirectorySaved")),await b()})}async function re(r){await v(`delete-runtime-${r}`,async()=>{await $a(r),m.success(n("runtimeVersions.deleteRuntimeSuccess")),await b()})}return(r,x)=>(s(),V(t(Ye),{show:j.show,placement:"right",width:"min(860px, calc(100vw - 24px))","onUpdate:show":G},{default:d(()=>[h(t(at),{title:t(n)("runtimeVersions.title"),closable:""},{default:d(()=>[h(t(Be),{show:F.value},{default:d(()=>[e("div",Sa,[z.value?(s(),V(t(de),{key:0,type:"error",bordered:!1},{default:d(()=>[C(a(z.value),1)]),_:1})):y("",!0),l.value?.remoteError?(s(),V(t(de),{key:1,type:"warning",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.remoteLoadFailed"))+": "+a(l.value.remoteError),1)]),_:1})):y("",!0),e("section",Va,[e("div",Ba,[e("div",null,[e("h3",null,a(t(n)("runtimeVersions.runtimeTitle")),1),e("p",null,a(t(n)("runtimeVersions.platform"))+": "+a(l.value?.platform||"-"),1)]),h(t(N),{size:"small",secondary:"",onClick:b},{default:d(()=>[C(a(t(n)("runtimeVersions.refresh")),1)]),_:1})]),e("div",Aa,[e("span",{"data-testid":"active-hermes-agent-version",title:l.value?.hermes.agentVersion||""},a(t(n)("runtimeVersions.currentHermesAgentVersion"))+": "+a(D(l.value?.hermes.agentVersion)),9,Da),e("span",{"data-testid":"active-runtime-directory",title:l.value?.hermes.activeDirectory||""},a(t(n)("runtimeVersions.activeRuntimeDirectory"))+": "+a(l.value?.hermes.activeDirectory||"-"),9,Ra)]),h(t(de),{"data-testid":"runtime-cli-update-note",type:"info",bordered:!1},{default:d(()=>[e("div",Pa,[e("span",null,a(t(n)("runtimeVersions.cliUpdateDescription")),1),x[0]||(x[0]=e("code",null,"hermes-studio cli update",-1))])]),_:1}),e("div",za,[e("div",Ta,[e("strong",null,a(t(n)("runtimeVersions.runtimeDirectory")),1),e("span",{title:l.value?.hermes.storageDirectory||""},a(l.value?.hermes.storageDirectory||"-"),9,ja)]),U.value?(s(),p("div",La,[h(t(N),{"data-testid":"select-runtime-directory",size:"small",secondary:"",loading:M.value["select-runtime-directory"],onClick:$},{default:d(()=>[C(a(t(n)("runtimeVersions.chooseRuntimeDirectory")),1)]),_:1},8,["loading"]),h(t(N),{"data-testid":"reset-runtime-directory",size:"small",secondary:"",disabled:I.value,loading:M.value["reset-runtime-directory"],onClick:f},{default:d(()=>[C(a(t(n)("runtimeVersions.resetRuntimeDirectory")),1)]),_:1},8,["disabled","loading"])])):y("",!0)]),U.value?(s(),p("p",Ua,a(t(n)("runtimeVersions.runtimeDirectoryHint")),1)):y("",!0),l.value?.hermes.pendingStorageDirectory?(s(),V(t(de),{key:1,type:"info",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.runtimeMigrationPending",{directory:l.value.hermes.pendingStorageDirectory})),1)]),_:1})):y("",!0),l.value?.hermes.migrationError?(s(),V(t(de),{key:2,type:"error",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.runtimeMigrationFailed"))+": "+a(l.value.hermes.migrationError),1)]),_:1})):y("",!0),l.value?.hermes.activationError?(s(),V(t(de),{key:3,"data-testid":"runtime-activation-error",type:"error",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.runtimeActivationFailed"))+": "+a(l.value.hermes.activationError),1)]),_:1})):y("",!0),e("div",Ia,[(s(!0),p(oe,null,se(Q.value,c=>(s(),p("div",{key:`runtime-${c}`,class:"version-row"},[e("div",Na,[e("strong",null,a(c),1),H(c)?.active?(s(),V(t(_e),{key:0,size:"small",type:"success",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.active")),1)]),_:1})):H(c)?(s(),V(t(_e),{key:1,size:"small",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.installed")),1)]),_:1})):y("",!0),K("runtime",c)?(s(),V(t(_e),{key:2,size:"small",type:A(K("runtime",c).status),bordered:!1},{default:d(()=>[C(a(i(K("runtime",c))),1)]),_:2},1032,["type"])):y("",!0)]),e("div",Ea,[H(c)&&!H(c)?.active?(s(),V(t(N),{key:0,size:"small",secondary:"",loading:M.value[`activate-runtime-${c}`],onClick:Y=>_(c)},{default:d(()=>[C(a(t(n)("runtimeVersions.useVersion")),1)]),_:1},8,["loading","onClick"])):y("",!0),H(c)&&!H(c)?.active?(s(),V(t(Le),{key:1,onPositiveClick:Y=>re(c)},{trigger:d(()=>[h(t(N),{size:"small",type:"error",secondary:"",loading:M.value[`delete-runtime-${c}`]},{default:d(()=>[C(a(t(n)("runtimeVersions.deleteVersion")),1)]),_:1},8,["loading"])]),default:d(()=>[C(" "+a(t(n)("runtimeVersions.deleteRuntimeConfirm",{version:c})),1)]),_:2},1032,["onPositiveClick"])):y("",!0),H(c)?y("",!0):(s(),V(t(N),{key:2,size:"small",type:"primary",secondary:"",disabled:!!K("runtime",c),loading:M.value[`download-runtime-github-${c}`],onClick:Y=>ke(c,"github")},{default:d(()=>[C(a(t(n)("runtimeVersions.downloadGithub")),1)]),_:1},8,["disabled","loading","onClick"])),H(c)?y("",!0):(s(),V(t(N),{key:3,size:"small",type:"primary",secondary:"",disabled:!!K("runtime",c),loading:M.value[`download-runtime-cf-${c}`],onClick:Y=>ke(c,"cf")},{default:d(()=>[C(a(t(n)("runtimeVersions.downloadCf")),1)]),_:1},8,["disabled","loading","onClick"]))])]))),128)),Q.value.length===0?(s(),p("div",Ga,a(t(n)("runtimeVersions.noVersions")),1)):y("",!0)])]),q.value.length>0?(s(),p("section",Fa,[e("div",Oa,[e("h3",null,a(t(n)("runtimeVersions.downloadTasks")),1)]),e("div",Ja,[(s(!0),p(oe,null,se(q.value.slice(0,6),c=>(s(),p("div",{key:c.id,class:"job-row"},[e("div",Ha,[e("span",null,a(t(n)("runtimeVersions.runtimeTitle"))+" "+a(c.version)+" · "+a(g(c.source)),1),c.status==="running"||c.status==="queued"?(s(),p("div",Ka,[h(t(Qe),{type:"line",percentage:Math.round(c.percent||0),"show-indicator":typeof c.percent=="number",processing:c.status==="running"&&c.stage==="download"},null,8,["percentage","show-indicator","processing"]),e("small",null,a(ce(c)),1)])):y("",!0),c.error?(s(),p("small",Wa,a(c.error),1)):y("",!0)]),h(t(_e),{size:"small",type:A(c.status),bordered:!1},{default:d(()=>[C(a(i(c)),1)]),_:2},1032,["type"])]))),128))])])):y("",!0)])]),_:1},8,["show"])]),_:1},8,["title"])]),_:1},8,["show"]))}});we();var Qa=ye(qa,[["__scopeId","data-v-c978383d"]]),Za=[{version:"0.6.40",date:"2026-08-10",changes:["changelog.new_0_6_40_1","changelog.new_0_6_40_2","changelog.new_0_6_40_3","changelog.new_0_6_40_4","changelog.new_0_6_40_5","changelog.new_0_6_40_6","changelog.new_0_6_40_7","changelog.new_0_6_40_8","changelog.new_0_6_40_9","changelog.new_0_6_40_10","changelog.new_0_6_40_11","changelog.new_0_6_40_12","changelog.new_0_6_40_13"]},{version:"0.6.39",date:"2026-08-06",changes:["changelog.new_0_6_39_1","changelog.new_0_6_39_2","changelog.new_0_6_39_3","changelog.new_0_6_39_4","changelog.new_0_6_39_5","changelog.new_0_6_39_6","changelog.new_0_6_39_7","changelog.new_0_6_39_8"]},{version:"0.6.38",date:"2026-08-04",changes:["changelog.new_0_6_38_1","changelog.new_0_6_38_2"]},{version:"0.6.37",date:"2026-08-04",changes:["changelog.new_0_6_37_1","changelog.new_0_6_37_2","changelog.new_0_6_37_3","changelog.new_0_6_37_4","changelog.new_0_6_37_5","changelog.new_0_6_37_6","changelog.new_0_6_37_7","changelog.new_0_6_37_8","changelog.new_0_6_37_9","changelog.new_0_6_37_10","changelog.new_0_6_37_11","changelog.new_0_6_37_12","changelog.new_0_6_37_13"]},{version:"0.6.36",date:"2026-08-01",changes:["changelog.new_0_6_36_1","changelog.new_0_6_36_2","changelog.new_0_6_36_3","changelog.new_0_6_36_4","changelog.new_0_6_36_5","changelog.new_0_6_36_6","changelog.new_0_6_36_7","changelog.new_0_6_36_8","changelog.new_0_6_36_9","changelog.new_0_6_36_10","changelog.new_0_6_36_11","changelog.new_0_6_36_12","changelog.new_0_6_36_13","changelog.new_0_6_36_14","changelog.new_0_6_36_15","changelog.new_0_6_36_16"]},{version:"0.6.35",date:"2026-07-28",changes:["changelog.new_0_6_35_1"]},{version:"0.6.34",date:"2026-07-28",changes:["changelog.new_0_6_34_1","changelog.new_0_6_34_2","changelog.new_0_6_34_3","changelog.new_0_6_34_4","changelog.new_0_6_34_5","changelog.new_0_6_34_6","changelog.new_0_6_34_7","changelog.new_0_6_34_8","changelog.new_0_6_34_9"]},{version:"0.6.33",date:"2026-07-24",changes:["changelog.new_0_6_33_1","changelog.new_0_6_33_2","changelog.new_0_6_33_3","changelog.new_0_6_33_4","changelog.new_0_6_33_5","changelog.new_0_6_33_6","changelog.new_0_6_33_7","changelog.new_0_6_33_8","changelog.new_0_6_33_9"]},{version:"0.6.32",date:"2026-07-21",changes:["changelog.new_0_6_32_1","changelog.new_0_6_32_2","changelog.new_0_6_32_3","changelog.new_0_6_32_4","changelog.new_0_6_32_5","changelog.new_0_6_32_6","changelog.new_0_6_32_7","changelog.new_0_6_32_8","changelog.new_0_6_32_9","changelog.new_0_6_32_10"]}];ie();ge();pe();Pe();Ae();var Xa={class:"sidebar-nav"},Ya={class:"nav-group"},en={class:"nav-group-items"},tn={class:"nav-group"},an={class:"nav-group-items"},nn={class:"nav-group"},rn={class:"nav-group-items"},sn={class:"nav-group"},on={class:"nav-group-items"},ln={class:"sidebar-footer"},dn=["title"],un={class:"status-row"},cn={class:"status-text"},vn={class:"version-info"},_n=["onKeydown"],hn={class:"version-management-label"},mn={class:"version-update-label"},pn={class:"sidebar-top-actions"},gn=["title"],fn={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wn={key:0,points:"9 18 15 12 9 6"},yn={key:1,points:"15 18 9 12 15 6"},kn={class:"changelog-list"},bn={class:"changelog-version-header"},xn={class:"changelog-version-tag"},Cn={class:"changelog-date"},$n={class:"changelog-changes"},Mn={class:"docker-update-modal"},Sn={class:"docker-update-note"},Vn=le({__name:"AppSidebar",setup(T){const{t:o}=fe(),j=Ce(),u=it(),n=et(),m=De(),l=P(()=>u.name),k=P(()=>Ue()),F=P(()=>qe()),M=P(()=>window.hermesDesktop?.isDesktop===!0),z=B(!1),E=B(!1),U=B(!1),I=P(()=>m.isDocker);function L(A){return n.hasRoute(A)}const{record:Q,persist:q}=ut("hermes.sidebar.collapsedGroups");function G(A){return o(`sidebar.group${A}${m.sidebarCollapsed?"Short":""}`)}function O(A){Q[A]=!Q[A],q()}function b(A){return!!Q[A]}function Z(A){(A.target instanceof Element?A.target:null)?.closest(".route-link-item")&&typeof window<"u"&&window.matchMedia("(max-width: 768px)").matches&&m.closeSidebar()}async function ee(){await m.doUpdate()?j.success(o("sidebar.updateSuccess"),{duration:5e3}):j.error(o("sidebar.updateFailed"))}function te(){m.reloadClient()}async function ae(){const A=Fe();A&&await tt(A),localStorage.clear(),window.location.reload()}function J(){z.value=!0}function X(){E.value=!0}function H(){U.value=!0}function K(){if(I.value){H();return}ee()}return(A,i)=>(s(),p("aside",{class:W(["sidebar",{open:t(m).sidebarOpen,collapsed:t(m).sidebarCollapsed}]),onClick:Z},[e("nav",Xa,[e("div",Ya,[e("div",{class:"nav-group-label",onClick:i[0]||(i[0]=S=>O("agent"))},[e("span",null,a(G("Agent")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("agent")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[8]||(i[8]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",en,[h(R,{class:"nav-item",to:{name:"hermes.jobs"},active:l.value==="hermes.jobs"},{default:d(()=>[i[9]||(i[9]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e("line",{x1:"3",y1:"10",x2:"21",y2:"10"})],-1)),e("span",null,a(t(o)("sidebar.jobs")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.kanban"},active:l.value==="hermes.kanban"},{default:d(()=>[i[10]||(i[10]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"3",width:"5",height:"18",rx:"1"}),e("rect",{x:"10",y:"3",width:"5",height:"12",rx:"1"}),e("rect",{x:"17",y:"3",width:"5",height:"18",rx:"1"})],-1)),e("span",null,a(t(o)("sidebar.kanban")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.channels"},active:l.value==="hermes.channels"},{default:d(()=>[i[11]||(i[11]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})],-1)),e("span",null,a(t(o)("sidebar.channels")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.skills"},active:l.value==="hermes.skills"},{default:d(()=>[i[12]||(i[12]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polygon",{points:"12 2 2 7 12 12 22 7 12 2"}),e("polyline",{points:"2 17 12 22 22 17"}),e("polyline",{points:"2 12 12 17 22 12"})],-1)),e("span",null,a(t(o)("sidebar.skills")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.plugins"},active:l.value==="hermes.plugins"},{default:d(()=>[i[13]||(i[13]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l2.1-2.1a4 4 0 0 1-5.3 5.3l-7.8 7.8a2.1 2.1 0 0 1-3-3l7.8-7.8a4 4 0 0 1 5.3-5.3l-2.1 2.1z"}),e("path",{d:"M5 19l1-1"})],-1)),e("span",null,a(t(o)("sidebar.plugins")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.mcp"},active:l.value==="hermes.mcp"},{default:d(()=>[i[14]||(i[14]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M4 7V4h16v3"}),e("path",{d:"M9 20h6"}),e("path",{d:"M12 7v13"}),e("rect",{x:"4",y:"7",width:"16",height:"7",rx:"2"})],-1)),e("span",null,a(t(o)("sidebar.mcp")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.petdex"},active:l.value==="hermes.petdex"},{default:d(()=>[i[15]||(i[15]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 3l7 4v6c0 4-3 7-7 8-4-1-7-4-7-8V7l7-4z"}),e("path",{d:"M9 11h.01"}),e("path",{d:"M15 11h.01"}),e("path",{d:"M9.5 15c1.6 1.1 3.4 1.1 5 0"})],-1)),e("span",null,a(t(o)("sidebar.petdex")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.memory"},active:l.value==="hermes.memory"},{default:d(()=>[i[16]||(i[16]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M9 18h6"}),e("path",{d:"M10 22h4"}),e("path",{d:"M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z"})],-1)),e("span",null,a(t(o)("sidebar.memory")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.models"},active:l.value==="hermes.models"},{default:d(()=>[i[17]||(i[17]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"3"}),e("path",{d:"M12 1v4"}),e("path",{d:"M12 19v4"}),e("path",{d:"M1 12h4"}),e("path",{d:"M19 12h4"}),e("path",{d:"M4.22 4.22l2.83 2.83"}),e("path",{d:"M16.95 16.95l2.83 2.83"}),e("path",{d:"M4.22 19.78l2.83-2.83"}),e("path",{d:"M16.95 7.05l2.83-2.83"})],-1)),e("span",null,a(t(o)("sidebar.models")),1)]),_:1},8,["active"])],512),[[ve,!b("agent")]])]),e("div",tn,[e("div",{class:"nav-group-label",onClick:i[1]||(i[1]=S=>O("monitoring"))},[e("span",null,a(G("Monitoring")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("monitoring")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[18]||(i[18]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",an,[h(R,{class:"nav-item",to:{name:"hermes.logs"},active:l.value==="hermes.logs"},{default:d(()=>[i[19]||(i[19]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),e("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),e("polyline",{points:"10 9 9 9 8 9"})],-1)),e("span",null,a(t(o)("sidebar.logs")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.usage"},active:l.value==="hermes.usage"},{default:d(()=>[i[20]||(i[20]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"12",width:"4",height:"9",rx:"1"}),e("rect",{x:"10",y:"7",width:"4",height:"14",rx:"1"}),e("rect",{x:"17",y:"3",width:"4",height:"18",rx:"1"})],-1)),e("span",null,a(t(o)("sidebar.usage")),1)]),_:1},8,["active"]),k.value?(s(),V(R,{key:0,class:"nav-item",to:{name:"hermes.performance"},active:l.value==="hermes.performance"},{default:d(()=>[i[21]||(i[21]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})],-1)),e("span",null,a(t(o)("sidebar.performance")),1)]),_:1},8,["active"])):y("",!0),h(R,{class:"nav-item",to:{name:"hermes.journey"},active:l.value==="hermes.journey"},{default:d(()=>[i[22]||(i[22]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 3.5a8.5 8.5 0 1 0 8.5 8.5"}),e("path",{d:"M4.4 15.4c3.2 1.1 7.4.4 10.8-2.1 3.1-2.3 4.9-5.5 4.5-8.1"}),e("path",{d:"M6.3 6.6c2.5-.9 6.1-.4 9.2 1.5 3.2 2 5.2 5 5 7.6"}),e("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),e("circle",{cx:"19.5",cy:"4.5",r:"1.2",fill:"currentColor",stroke:"none"})],-1)),e("span",null,a(t(o)("sidebar.journey")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.skillsUsage"},active:l.value==="hermes.skillsUsage"},{default:d(()=>[i[23]||(i[23]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21.21 15.89A10 10 0 1 1 8.11 2.79"}),e("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})],-1)),e("span",null,a(t(o)("sidebar.skillsUsage")),1)]),_:1},8,["active"])],512),[[ve,!b("monitoring")]])]),e("div",nn,[e("div",{class:"nav-group-label",onClick:i[2]||(i[2]=S=>O("tools"))},[e("span",null,a(G("Tools")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("tools")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[24]||(i[24]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",rn,[M.value&&L("hermes.browser")?(s(),V(R,{key:0,class:"nav-item",to:{name:"hermes.browser"},active:l.value==="hermes.browser"},{default:d(()=>[i[25]||(i[25]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"9"}),e("path",{d:"M3 9h18"}),e("path",{d:"M9 3c-2 5-2 13 0 18"}),e("path",{d:"M15 3c2 5 2 13 0 18"})],-1)),e("span",null,a(t(o)("sidebar.browser")),1)]),_:1},8,["active"])):y("",!0),L("hermes.codingAgents")?(s(),V(R,{key:1,class:"nav-item",to:{name:"hermes.codingAgents"},active:l.value==="hermes.codingAgents"},{default:d(()=>[i[26]||(i[26]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"16 18 22 12 16 6"}),e("polyline",{points:"8 6 2 12 8 18"}),e("line",{x1:"12",y1:"20",x2:"14",y2:"4"})],-1)),e("span",null,a(t(o)("sidebar.codingAgents")),1)]),_:1},8,["active"])):y("",!0),L("hermes.versionPreview")&&k.value?(s(),V(R,{key:2,class:"nav-item",to:{name:"hermes.versionPreview"},active:l.value==="hermes.versionPreview"},{default:d(()=>[i[27]||(i[27]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e("polyline",{points:"7.5 4.21 12 6.81 16.5 4.21"}),e("polyline",{points:"7.5 19.79 7.5 14.6 3 12"}),e("polyline",{points:"21 12 16.5 14.6 16.5 19.79"}),e("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})],-1)),e("span",null,a(t(o)("sidebar.versionPreview")),1)]),_:1},8,["active"])):y("",!0),k.value?(s(),V(R,{key:3,class:"nav-item",to:{name:"hermes.devices"},active:l.value==="hermes.devices"},{default:d(()=>[i[28]||(i[28]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"4",width:"18",height:"12",rx:"2"}),e("path",{d:"M8 20h8"}),e("path",{d:"M12 16v4"}),e("path",{d:"M6 8h.01"}),e("path",{d:"M10 8h.01"})],-1)),e("span",null,a(t(o)("sidebar.devices")),1)]),_:1},8,["active"])):y("",!0)],512),[[ve,!b("tools")]])]),e("div",sn,[e("div",{class:"nav-group-label",onClick:i[3]||(i[3]=S=>O("system"))},[e("span",null,a(G("System")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("system")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[29]||(i[29]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",on,[h(R,{class:"nav-item",to:{name:"hermes.theme"},active:l.value==="hermes.theme"},{default:d(()=>[i[30]||(i[30]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"13.5",cy:"6.5",r:"2.5"}),e("circle",{cx:"17.5",cy:"10.5",r:"2.5"}),e("circle",{cx:"8.5",cy:"7.5",r:"2.5"}),e("path",{d:"M12 3a9 9 0 1 0 9 9c0-1.1-.9-2-2-2h-1.2a2.8 2.8 0 0 1-2.8-2.8V5c0-1.1-.9-2-2-2h-1z"})],-1)),e("span",null,a(t(o)("sidebar.theme")),1)]),_:1},8,["active"]),k.value?(s(),V(R,{key:0,class:"nav-item",to:{name:"hermes.profiles"},active:l.value==="hermes.profiles"},{default:d(()=>[i[31]||(i[31]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})],-1)),e("span",null,a(t(o)("sidebar.profiles")),1)]),_:1},8,["active"])):y("",!0),h(R,{class:"nav-item",to:{name:"hermes.settings"},active:l.value==="hermes.settings"},{default:d(()=>[i[32]||(i[32]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"3"}),e("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e("span",null,a(t(o)("sidebar.settings")),1)]),_:1},8,["active"])],512),[[ve,!b("system")]])])]),h(ua),h(Lt),e("div",ln,[e("button",{class:"nav-item logout-item",onClick:ae},[i[33]||(i[33]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),e("polyline",{points:"16 17 21 12 16 7"}),e("line",{x1:"21",y1:"12",x2:"9",y2:"12"})],-1)),e("span",null,a(t(o)("sidebar.logout")),1),F.value?(s(),p("span",{key:0,class:"logout-username",title:F.value},a(F.value),9,dn)):y("",!0)]),e("div",un,[e("div",{class:W(["status-indicator",{connected:t(m).connected,disconnected:!t(m).connected}])},[i[34]||(i[34]=e("span",{class:"status-dot"},null,-1)),e("span",cn,a(t(m).connected?t(o)("sidebar.connected"):t(o)("sidebar.disconnected")),1)],2),h(va)]),e("div",vn,[i[35]||(i[35]=Ve('<div class="version-links" data-v-a26892cd><a class="sidebar-footer-link" href="https://github.com/EKKOLearnAI/hermes-studio" target="_blank" rel="noopener noreferrer" title="GitHub" data-v-a26892cd><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" data-v-a26892cd><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" data-v-a26892cd></path></svg></a><a class="sidebar-footer-link" href="https://hermes-studio.ai/" target="_blank" rel="noopener noreferrer" title="Website" data-v-a26892cd><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-a26892cd><circle cx="12" cy="12" r="10" data-v-a26892cd></circle><line x1="2" y1="12" x2="22" y2="12" data-v-a26892cd></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" data-v-a26892cd></path></svg></a></div>',1)),e("span",{class:"version-text",role:"button",tabindex:"0",onClick:J,onKeydown:[xe(J,["enter"]),xe(Re(J,["prevent"]),["space"])]}," Studio v"+a(t(m).serverVersion||"0.1.0"),41,_n),h(ka)]),M.value?(s(),V(t(N),{key:0,type:"primary",size:"tiny",block:"",class:W(["update-btn version-management-btn",{"has-update":t(m).updateAvailable}]),onClick:X},{default:d(()=>[e("span",hn,[C(a(t(o)("sidebar.versionManagement"))+" ",1),e("span",mn,a(t(o)("sidebar.updateAvailableLabel")),1)])]),_:1},8,["class"])):y("",!0),t(m).clientOutdated?(s(),V(t(N),{key:1,type:"warning",size:"tiny",block:"",class:"update-btn",onClick:te},{default:d(()=>[C(a(t(o)("sidebar.reloadClientVersion",{version:t(m).serverVersion})),1)]),_:1})):t(m).updateAvailable?(s(),V(t(N),{key:2,type:"primary",size:"tiny",block:"",class:"update-btn",loading:!I.value&&t(m).updating,onClick:K},{default:d(()=>[C(a(!I.value&&t(m).updating?t(o)("sidebar.updating"):t(o)("sidebar.updateVersion",{version:t(m).latestVersion})),1)]),_:1},8,["loading"])):y("",!0)]),e("div",pn,[h(R,{class:"nav-item sidebar-return-tab",to:{name:"hermes.chat"},title:t(o)("sidebar.backToChat")},{default:d(()=>[i[36]||(i[36]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"15 18 9 12 15 6"}),e("line",{x1:"9",y1:"12",x2:"21",y2:"12"})],-1)),e("span",null,a(t(o)("sidebar.backToChat")),1)]),_:1},8,["title"]),e("button",{class:"collapse-btn",onClick:i[4]||(i[4]=S=>t(m).toggleSidebarCollapsed()),title:t(m).sidebarCollapsed?t(o)("sidebar.expand"):t(o)("sidebar.collapse")},[(s(),p("svg",fn,[t(m).sidebarCollapsed?(s(),p("polyline",wn)):(s(),p("polyline",yn))]))],8,gn)]),h(t(me),{show:z.value,"onUpdate:show":i[5]||(i[5]=S=>z.value=S),preset:"dialog",title:t(o)("sidebar.changelog"),style:{width:"520px"}},{default:d(()=>[e("div",kn,[(s(!0),p(oe,null,se(t(Za),S=>(s(),p("div",{key:S.version,class:"changelog-version-block"},[e("div",bn,[e("span",xn,"v"+a(S.version),1),e("span",Cn,a(S.date),1)]),e("ul",$n,[(s(!0),p(oe,null,se(S.changes,(ne,v)=>(s(),p("li",{key:v},a(t(o)(ne)),1))),128))])]))),128))])]),_:1},8,["show","title"]),M.value?(s(),V(Qa,{key:0,show:E.value,"onUpdate:show":i[6]||(i[6]=S=>E.value=S)},null,8,["show"])):y("",!0),h(t(me),{show:U.value,"onUpdate:show":i[7]||(i[7]=S=>U.value=S),preset:"dialog",title:t(o)("sidebar.dockerUpdateTitle"),style:{width:"480px"}},{default:d(()=>[e("div",Mn,[e("p",null,a(t(o)("sidebar.dockerUpdateGuide")),1),i[37]||(i[37]=e("div",{class:"docker-update-commands"},[e("code",{class:"docker-command"},"docker compose pull"),e("code",{class:"docker-command"},"docker compose up -d --force-recreate")],-1)),e("p",Sn,[h(t(_e),{size:"small",type:"info",bordered:!1},{default:d(()=>[C(a(t(o)("sidebar.dockerUpdateNote")),1)]),_:1})])])]),_:1},8,["show","title"])],2))}});we();var Wn=ye(Vn,[["__scopeId","data-v-a26892cd"]]);export{Wn as default};
|
|
1
|
+
import{$ as Le,$i as d,$r as Ue,$t as N,A as Ie,Bi as Ne,Ci as Ve,D as Ee,Di as le,G as Be,Gi as Ge,Hi as s,Jr as Fe,Ki as Oe,M as pe,Mr as Je,Nr as ge,O as He,Pr as fe,Qr as Ae,Ri as Ke,Sa as a,Ti as h,Vr as We,Wi as se,Xr as qe,Z as Qe,Zi as Ze,_a as t,_i as e,_t as me,bi as p,ca as Xe,di as ve,dn as _e,dt as Ye,ea as he,ei as ue,fi as xe,gi as P,gt as Ce,i as De,ii as et,k as tt,ln as de,lt as at,mi as oe,n as we,ni as nt,pi as Re,r as Pe,ri as it,si as ie,sn as $e,t as ye,ua as B,vi as V,wi as C,ya as W,yi as y,zr as Me,zt as ze}from"./index-DN4SafrP.js";import{a as rt,i as st,o as ot,r as Te,s as lt,t as je}from"./profiles-BK5JKD7h.js";import{n as dt,t as be}from"./ProfileAvatar-C8xoALCI.js";nt();Ae();ge();pe();Pe();ie();function ut(T){let o={};if(typeof window<"u")try{const n=window.localStorage.getItem(T);n&&(o=JSON.parse(n))}catch{o={}}const j=Xe({...o});function u(){typeof window>"u"||window.localStorage.setItem(T,JSON.stringify({...j}))}return{record:j,persist:u}}ie();var ct=["href","title","aria-current","onClick"],vt=le({__name:"RouteLinkItem",props:{to:{},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},title:{}},setup(T){const o=T;return(j,u)=>{const n=Oe("RouterLink");return s(),V(n,{to:o.to,custom:""},{default:d(m=>[e("a",{class:W(["route-link-item",{active:o.active??(o.exact?!!m?.isExactActive:!!m?.isActive)}]),href:m?.href||"#",title:o.title,"aria-current":o.active??(o.exact?!!m?.isExactActive:!!m?.isActive)?"page":void 0,onClick:m?.navigate},[Ge(j.$slots,"default")],10,ct)]),_:3},8,["to"])}}}),R=vt;ie();je();var _t={class:"model-selector"},ht={class:"model-label-row"},mt={class:"model-label"},pt=["disabled","title","aria-label"],gt=["title"],ft={class:"model-list"},wt=["onClick"],yt={class:"model-group-label"},kt={class:"model-group-count"},bt={class:"model-group-items"},xt=["title","onClick"],Ct={class:"model-item-label"},$t={class:"model-item-name"},Mt={key:0,class:"model-item-id"},St={key:0,class:"model-badge-preview"},Vt={key:1,class:"model-badge-disabled"},Bt={key:2,class:"model-badge-custom"},At=["title","onClick"],Dt={key:4,class:"model-check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},Rt={key:0,class:"model-empty"},Pt={class:"model-custom"},zt={class:"model-custom-row"},Tt={class:"model-custom-hint"},jt=le({__name:"ModelSelector",emits:["modal-show-change"],setup(T,{emit:o}){const j=o,{t:u}=fe(),n=De(),m=Te(),l=B(!1),k=B(""),F=B({}),M=B(""),z=B(""),E=P(()=>m.activeProfileName||"default"),U=P(()=>n.profileModelGroups.find(v=>v.profile===E.value)?.groups||[]),I=P(()=>(z.value=n.selectedProvider,U.value.map(v=>({label:v.label,value:v.provider})))),L=P(()=>U.value.map(v=>({...v,models:[...v.models,...(n.customModels[v.provider]||[]).filter(g=>!v.models.includes(g))]}))),Q=P(()=>L.value.some(v=>v.provider===n.selectedProvider&&v.models.includes(n.selectedModel))),q=P(()=>Q.value?n.displayModelName(n.selectedModel,n.selectedProvider):"");function G(v,g){return(n.customModels[g]||[]).includes(v)}async function O(v,g){await n.removeCustomModel(v,g)}function b(v){return typeof v=="string"?v.toLowerCase():""}const Z=P(()=>{const v=b(k.value).trim();return v?L.value.map(g=>({...g,models:g.models.filter(w=>{const D=n.displayModelName(w,g.provider);return b(w).includes(v)||b(D).includes(v)})})).filter(g=>g.models.length>0||b(g.label).includes(v)):L.value});function ee(v){F.value[v]=!F.value[v]}function te(v){return!!F.value[v]}function ae(v,g){U.value.find(w=>w.provider===g)?.model_meta?.[v]?.disabled||(n.switchModel(v,g),K(!1),k.value="")}function J(v,g){return n.displayModelName(v,g)}function X(v,g){return n.getModelAlias(v,g)}function H(){const v=M.value.trim();!v||!z.value||U.value.find(g=>g.provider===z.value)?.model_meta?.[v]?.disabled||(n.switchModel(v,z.value),K(!1),k.value="",M.value="")}function K(v){l.value=v,j("modal-show-change",v)}function A(){F.value={},k.value="",M.value="",z.value=n.selectedProvider,K(!0)}function i(v){K(v)}const S=B(!1);async function ne(){if(S.value)return;S.value=!0;const v=Date.now();try{await n.reloadModels({preserveSelection:!0})}finally{const g=Date.now()-v,w=600;g<w&&await new Promise(D=>setTimeout(D,w-g)),S.value=!1}}return(v,g)=>(s(),p("div",_t,[e("div",ht,[e("div",mt,a(t(u)("models.title")),1),e("button",{class:"model-refresh",type:"button",disabled:S.value,title:t(u)("models.refresh"),"aria-label":t(u)("models.refresh"),onClick:ne},[(s(),p("svg",{class:W({spinning:S.value}),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...g[3]||(g[3]=[e("polyline",{points:"23 4 23 10 17 10"},null,-1),e("polyline",{points:"1 20 1 14 7 14"},null,-1),e("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},null,-1)])],2))],8,pt)]),e("button",{class:"model-trigger",onClick:A},[e("span",{class:"model-name",title:t(n).selectedModel},a(q.value||"—"),9,gt),g[4]||(g[4]=e("svg",{class:"model-arrow",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"6 9 12 15 18 9"})],-1))]),h(t(me),{show:l.value,preset:"card",title:t(u)("models.title"),style:{width:"min(480px, calc(100vw - 32px))"},"mask-closable":!0,"onUpdate:show":i},{default:d(()=>[h(t($e),{value:k.value,"onUpdate:value":g[0]||(g[0]=w=>k.value=w),placeholder:t(u)("models.searchPlaceholder"),clearable:"",size:"small",class:"model-search"},null,8,["value","placeholder"]),e("div",ft,[(s(!0),p(oe,null,se(Z.value,w=>(s(),p("div",{key:w.provider,class:"model-group"},[e("div",{class:"model-group-header",onClick:D=>ee(w.provider)},[(s(),p("svg",{class:W(["model-group-arrow",{collapsed:te(w.provider)}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...g[5]||(g[5]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2)),e("span",yt,a(w.label),1),e("span",kt,a(w.models.length),1)],8,wt),he(e("div",bt,[(s(!0),p(oe,null,se(w.models,D=>(s(),p("div",{key:D,class:W(["model-item",{active:D===t(n).selectedModel&&w.provider===t(n).selectedProvider,disabled:!!w.model_meta?.[D]?.disabled}]),title:w.model_meta?.[D]?.disabled?t(u)("models.disabledTooltip"):"",onClick:ce=>ae(D,w.provider)},[e("span",Ct,[e("span",$t,a(J(D,w.provider)),1),X(D,w.provider)?(s(),p("span",Mt,a(t(u)("models.aliasCanonical",{model:D})),1)):y("",!0)]),w.model_meta?.[D]?.preview?(s(),p("span",St,a(t(u)("models.previewBadge")),1)):y("",!0),w.model_meta?.[D]?.disabled?(s(),p("span",Vt,a(t(u)("models.disabledBadge")),1)):y("",!0),G(D,w.provider)?(s(),p("span",Bt,a(t(u)("models.customBadge")),1)):y("",!0),G(D,w.provider)?(s(),p("button",{key:3,class:"model-custom-remove",type:"button",title:t(u)("models.removeCustomModel"),onClick:Re(ce=>O(D,w.provider),["stop"])}," × ",8,At)):y("",!0),D===t(n).selectedModel&&w.provider===t(n).selectedProvider?(s(),p("svg",Dt,[...g[6]||(g[6]=[e("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):y("",!0)],10,xt))),128))],512),[[ve,!te(w.provider)]])]))),128)),Z.value.length===0?(s(),p("div",Rt,a(k.value?"No results":"No models"),1)):y("",!0)]),e("div",Pt,[e("div",zt,[h(t(ze),{value:z.value,"onUpdate:value":g[1]||(g[1]=w=>z.value=w),options:I.value,size:"small",class:"model-custom-provider"},null,8,["value","options"]),h(t($e),{value:M.value,"onUpdate:value":g[2]||(g[2]=w=>M.value=w),placeholder:t(u)("models.customModelPlaceholder"),size:"small",class:"model-custom-input",onKeydown:xe(H,["enter"])},null,8,["value","placeholder"])]),e("div",Tt,a(t(u)("models.customModelHint")),1)])]),_:1},8,["show","title"])]))}});rt();we();var Lt=ye(jt,[["__scopeId","data-v-9c1adbea"]]);ie();pe();je();dt();ge();var Ut={class:"profile-selector"},It={class:"selector-label"},Nt={class:"profile-name"},Et={class:"profile-modal-header"},Gt={class:"profile-popover-title"},Ft={class:"profile-popover-name"},Ot={class:"profile-popover-subtitle"},Jt={class:"profile-runtime-list"},Ht={class:"profile-runtime-main"},Kt={class:"profile-runtime-info"},Wt={class:"profile-runtime-name-row"},qt={class:"profile-runtime-name"},Qt={key:0,class:"active-badge"},Zt={class:"runtime-status-grid"},Xt={class:"runtime-row compact"},Yt={class:"runtime-label"},ea={class:"runtime-row compact"},ta={class:"runtime-label"},aa={key:0,class:"runtime-detail"},na={class:"profile-runtime-actions"},ia={key:0,class:"avatar-editor"},ra={class:"avatar-editor-meta"},sa={class:"avatar-editor-name"},oa={class:"avatar-editor-hint"},la={class:"avatar-editor-actions"},da=le({__name:"ProfileSelector",emits:["modal-show-change"],setup(T,{emit:o}){const j=o,{t:u}=fe(),n=Ce(),m=Te(),l=P(()=>m.activeProfileName??""),k=P(()=>l.value||"default"),F=P(()=>m.profiles.find(_=>_.name===k.value)),M=B([]),z=B(!1),E=B(!1),U=B(!1),I=B(null),L=B(!1),Q=B(null),q=B({}),G=B({}),O=B({}),b=P(()=>new Map(M.value.map(_=>[_.profile,_])));let Z=0;function ee(_){E.value=_,j("modal-show-change",_)}async function te(_={}){const $=++Z;_.background||(z.value=M.value.length===0);try{const f=await st({refresh:!_.background});return $!==Z?!1:(M.value=f.profiles,!!f.refreshing)}catch{return M.value=[],!1}finally{$===Z&&(z.value=!1)}}function ae(){ee(!0),te().then(_=>{_&&J()})}function J(_=0){_>=12||typeof window>"u"||window.setTimeout(()=>{E.value&&te({background:!0}).then($=>{$&&J(_+1)})},_===0?700:1200)}function X(_){ee(_)}function H(_){I.value=_,U.value=!0}function K(){return`profile-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}async function A(_){if(I.value){L.value=!0;try{await m.updateAvatar(I.value.name,_),n.success(u("profiles.avatar.saveSuccess")),U.value=!1}catch($){n.error($?.message||u("profiles.avatar.saveFailed"))}finally{L.value=!1}}}async function i(){await A({type:"generated",seed:K()})}async function S(){if(I.value){L.value=!0;try{await m.deleteAvatar(I.value.name),n.success(u("profiles.avatar.resetSuccess")),U.value=!1}catch(_){n.error(_?.message||u("profiles.avatar.resetFailed"))}finally{L.value=!1}}}function ne(){Q.value?.click()}async function v(_){const $=_.target,f=$.files?.[0];if($.value="",!!f){if(!["image/png","image/jpeg","image/webp"].includes(f.type)){n.warning(u("profiles.avatar.invalidType"));return}if(f.size>1024*1024){n.warning(u("profiles.avatar.tooLarge"));return}await A({type:"image",dataUrl:await new Promise((re,r)=>{const x=new FileReader;x.onload=()=>re(String(x.result||"")),x.onerror=()=>r(x.error||new Error("Failed to read file")),x.readAsDataURL(f)})})}}function g(_){return _==null?u("profiles.runtime.checking"):u(_?"profiles.runtime.running":"profiles.runtime.stopped")}function w(_){return _==null?u("profiles.runtime.checking"):u(_?"profiles.runtime.active":"profiles.runtime.idle")}async function D(_){q.value={...q.value,[_]:!0};try{const $=await ot(_);b.value.get(_)&&(M.value=M.value.map(f=>f.profile===_?{...f,gateway:$}:f)),n.success(u("profiles.runtime.gatewayRestarted",{name:_}))}catch($){n.error($?.message||u("profiles.runtime.gatewayRestartFailed"))}finally{q.value={...q.value,[_]:!1}}}async function ce(_){G.value={...G.value,[_]:!0};try{const $=await lt(_);M.value=M.value.map(f=>f.profile===_?$:f),n.success(u("profiles.runtime.profileRestarted",{name:_}))}catch($){n.error($?.message||u("profiles.runtime.profileRestartFailed"))}finally{G.value={...G.value,[_]:!1}}}async function ke(_){if(_!==k.value){O.value={...O.value,[_]:!0};try{if(!await m.switchProfile(_))throw new Error(u("profiles.switchFailed"));n.success(u("profiles.switchSuccess",{name:_})),window.location.reload()}catch($){n.error($?.message||u("profiles.switchFailed"))}finally{O.value={...O.value,[_]:!1}}}}return Ne(()=>{m.profiles.length===0&&m.fetchProfiles()}),(_,$)=>(s(),p("div",Ut,[e("div",It,a(t(u)("sidebar.profiles")),1),e("div",{class:"profile-display","data-testid":"profile-selector-select",onClick:ae},[h(be,{class:"profile-avatar",name:k.value,avatar:F.value?.avatar,size:24},null,8,["name","avatar"]),e("span",Nt,a(k.value),1)]),h(t(me),{show:E.value,preset:"card",bordered:!1,style:{width:"720px",maxWidth:"calc(100vw - 32px)"},class:"profile-manager-modal","onUpdate:show":X},{header:d(()=>[e("div",Et,[e("div",Gt,[e("span",Ft,a(t(u)("sidebar.profiles")),1),e("span",Ot,a(t(u)("profiles.runtime.activeProfile",{name:k.value})),1)])])]),default:d(()=>[h(t(Be),{show:z.value,size:"small"},{default:d(()=>[e("div",Jt,[(s(!0),p(oe,null,se(t(m).profiles,f=>(s(),p("div",{key:f.name,class:W(["profile-runtime-item",{active:f.name===k.value}])},[e("div",Ht,[h(be,{class:"profile-runtime-avatar",name:f.name,avatar:f.avatar,size:34},null,8,["name","avatar"]),e("div",Kt,[e("div",Wt,[e("span",qt,a(f.name),1),f.name===k.value?(s(),p("span",Qt,a(t(u)("profiles.runtime.activeTag")),1)):y("",!0)]),e("div",Zt,[e("div",Xt,[e("span",Yt,a(t(u)("profiles.runtime.bridgeWorker")),1),e("span",{class:W(["runtime-value",{running:b.value.get(f.name)?.bridge.running}])},[$[1]||($[1]=e("span",{class:"runtime-dot"},null,-1)),C(" "+a(w(b.value.get(f.name)?.bridge.running)),1)],2)]),e("div",ea,[e("span",ta,a(t(u)("profiles.runtime.gateway")),1),e("span",{class:W(["runtime-value",{running:b.value.get(f.name)?.gateway.running}])},[$[2]||($[2]=e("span",{class:"runtime-dot"},null,-1)),C(" "+a(g(b.value.get(f.name)?.gateway.running)),1)],2)])]),!b.value.get(f.name)?.gateway.running&&(b.value.get(f.name)?.gateway.diagnostics?.reason||b.value.get(f.name)?.gateway.error)?(s(),p("div",aa,a(b.value.get(f.name)?.gateway.diagnostics?.reason||b.value.get(f.name)?.gateway.error),1)):y("",!0)])]),e("div",na,[h(t(N),{size:"small",type:"primary",onClick:re=>H(f)},{default:d(()=>[C(a(t(u)("profiles.avatar.customize")),1)]),_:1},8,["onClick"]),h(t(N),{size:"small",type:"primary",loading:q.value[f.name],onClick:re=>D(f.name)},{default:d(()=>[C(a(t(u)("profiles.runtime.restartGateway")),1)]),_:1},8,["loading","onClick"]),h(t(N),{size:"small",type:"primary",loading:G.value[f.name],onClick:re=>ce(f.name)},{default:d(()=>[C(a(t(u)("profiles.runtime.restartProfile")),1)]),_:1},8,["loading","onClick"]),h(t(N),{size:"small",type:"primary",disabled:f.name===k.value,loading:O.value[f.name],onClick:re=>ke(f.name)},{default:d(()=>[C(a(t(u)("profiles.runtime.switchProfile")),1)]),_:1},8,["disabled","loading","onClick"])])],2))),128))])]),_:1},8,["show"])]),_:1},8,["show"]),h(t(me),{show:U.value,"onUpdate:show":$[0]||($[0]=f=>U.value=f),preset:"card",title:t(u)("profiles.avatar.title"),bordered:!1,style:{width:"420px",maxWidth:"calc(100vw - 32px)"}},{default:d(()=>[I.value?(s(),p("div",ia,[h(be,{name:I.value.name,avatar:I.value.avatar,size:72},null,8,["name","avatar"]),e("div",ra,[e("div",sa,a(I.value.name),1),e("div",oa,a(t(u)("profiles.avatar.hint")),1)]),e("input",{ref_key:"fileInputRef",ref:Q,class:"avatar-file-input",type:"file",accept:"image/png,image/jpeg,image/webp",onChange:v},null,544),e("div",la,[h(t(N),{type:"primary",loading:L.value,onClick:ne},{default:d(()=>[C(a(t(u)("profiles.avatar.upload")),1)]),_:1},8,["loading"]),h(t(N),{type:"primary",loading:L.value,onClick:i},{default:d(()=>[C(a(t(u)("profiles.avatar.random")),1)]),_:1},8,["loading"]),h(t(N),{loading:L.value,onClick:S},{default:d(()=>[C(a(t(u)("profiles.avatar.reset")),1)]),_:1},8,["loading"])])])):y("",!0)]),_:1},8,["show","title"])]))}});we();var ua=ye(da,[["__scopeId","data-v-800ef502"]]);ie();ge();pe();var ca=le({__name:"LanguageSwitch",setup(T){const{locale:o}=fe(),j=[{label:"简体中文",value:"zh"},{label:"繁體中文",value:"zh-TW"},{label:"English",value:"en"},{label:"日本語",value:"ja"},{label:"한국어",value:"ko"},{label:"Français",value:"fr"},{label:"Español",value:"es"},{label:"Deutsch",value:"de"},{label:"Português",value:"pt"},{label:"Русский",value:"ru"},{label:"العربية",value:"ar"}];async function u(n){await Je(n)}return(n,m)=>(s(),V(t(ze),{value:t(o),options:j,size:"tiny","consistent-menu-width":!1,class:"language-switch input-sm","onUpdate:value":u},null,8,["value"]))}}),va=ca;ie();Ee();var _a={class:"theme-switch-container",style:{display:"flex",gap:"4px","align-items":"center"}},ha=["title"],ma={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},pa={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ga=["title"],fa={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wa={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ya=le({__name:"ThemeSwitch",setup(T){const{isDark:o,isComic:j,toggleBrightness:u,toggleStyle:n}=He();return(m,l)=>(s(),p("div",_a,[e("button",{class:"theme-switch",title:t(j)?"Ink style":"Comic style",onClick:l[0]||(l[0]=(...k)=>t(n)&&t(n)(...k))},[t(j)?(s(),p("svg",ma,[...l[2]||(l[2]=[e("path",{d:"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"},null,-1)])])):(s(),p("svg",pa,[...l[3]||(l[3]=[e("path",{d:"M12 3l1.5 5.5L19 10l-5.5 1.5L12 17l-1.5-5.5L5 10l5.5-1.5L12 3z"},null,-1)])]))],8,ha),e("button",{class:"theme-switch",title:t(o)?"Light mode":"Dark mode",onClick:l[1]||(l[1]=(...k)=>t(u)&&t(u)(...k))},[t(o)?(s(),p("svg",fa,[...l[4]||(l[4]=[Ve('<circle cx="12" cy="12" r="5" data-v-4c30f4bd></circle><line x1="12" y1="1" x2="12" y2="3" data-v-4c30f4bd></line><line x1="12" y1="21" x2="12" y2="23" data-v-4c30f4bd></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-4c30f4bd></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-4c30f4bd></line><line x1="1" y1="12" x2="3" y2="12" data-v-4c30f4bd></line><line x1="21" y1="12" x2="23" y2="12" data-v-4c30f4bd></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-4c30f4bd></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-4c30f4bd></line>',9)])])):(s(),p("svg",wa,[...l[5]||(l[5]=[e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"},null,-1)])]))],8,ga)]))}});Ie();we();var ka=ye(ya,[["__scopeId","data-v-4c30f4bd"]]);async function ba(){return ue("/api/hermes/runtime-versions")}async function xa(T){return ue("/api/hermes/runtime-versions/active-runtime",{method:"POST",body:JSON.stringify({version:T})})}async function Se(T){return ue("/api/hermes/runtime-versions/runtime-root",{method:"POST",body:JSON.stringify({directory:T})})}async function Ca(T,o){return ue("/api/hermes/runtime-versions/runtime/download",{method:"POST",body:JSON.stringify({version:T,source:o})})}async function $a(T){return ue(`/api/hermes/runtime-versions/runtime/${encodeURIComponent(T)}`,{method:"DELETE"})}async function Ma(){return ue("/api/hermes/runtime-versions/jobs")}ie();ge();pe();We();var Sa={class:"version-management"},Va={class:"version-section"},Ba={class:"section-heading"},Aa={class:"active-path stacked"},Da=["title"],Ra=["title"],Pa={class:"runtime-update-note"},za={class:"runtime-directory-control"},Ta={class:"runtime-directory-value"},ja=["title"],La={key:0,class:"runtime-directory-actions"},Ua={key:0,class:"runtime-directory-hint"},Ia={class:"version-list"},Na={class:"version-main"},Ea={class:"version-actions"},Ga={key:0,class:"empty-row"},Fa={key:2,class:"version-section"},Oa={class:"section-heading compact"},Ja={class:"job-list"},Ha={class:"job-main"},Ka={key:0,class:"job-progress"},Wa={key:1},qa=le({__name:"VersionManagementModal",props:{show:{type:Boolean}},emits:["update:show"],setup(T,{emit:o}){const j=T,u=o,{t:n}=fe(),m=Ce(),l=B(null),k=B([]),F=B(!1),M=B({}),z=B("");let E=null;const U=P(()=>typeof Me()?.selectRuntimeDirectory=="function"),I=P(()=>{const r=l.value?.hermes.defaultStorageDirectory,x=l.value?.hermes.pendingStorageDirectory||l.value?.hermes.storageDirectory;return!r||x===r}),L=P(()=>(l.value?.hermes.installed||[]).filter(r=>r.platform===l.value?.platform)),Q=P(()=>O([...l.value?.hermes.remoteVersions||[],...L.value.map(r=>r.version)])),q=P(()=>k.value.filter(r=>r.kind==="runtime"));Ze(()=>j.show,r=>{r?b():J()}),Ke(J);function G(r){u("update:show",r)}function O(r){return Array.from(new Set(r.map(x=>x.trim().replace(/^v/,"")).filter(Boolean))).sort((x,c)=>c.localeCompare(x,void 0,{numeric:!0}))}async function b(){F.value=!0,z.value="";try{await Promise.all([Z(),ee()]),X()&&ae()}catch(r){z.value=r instanceof Error?r.message:String(r)}finally{F.value=!1}}async function Z(){l.value=await ba()}async function ee(){k.value=(await Ma()).jobs}async function te(){try{const r=X();await ee(),r&&!X()?(J(),await Z()):X()||J()}catch{J()}}function ae(){E||(E=setInterval(()=>{te()},2e3))}function J(){E&&(clearInterval(E),E=null)}function X(){return q.value.some(r=>r.status==="queued"||r.status==="running")}function H(r){return L.value.find(x=>x.version===r)}function K(r,x){return k.value.find(c=>c.kind===r&&c.version===x.replace(/^v/,"")&&(c.status==="queued"||c.status==="running"))}function A(r){return r==="completed"?"success":r==="failed"?"error":r==="running"?"info":"warning"}function i(r){return r.status==="completed"||r.status==="failed"?n(`runtimeVersions.jobStatus.${r.status}`):n(`runtimeVersions.jobStageStatus.${r.stage}`)}function S(r){return r.startsWith("runtimeVersions.")?n(r):r}function ne(r,x){M.value={...M.value,[r]:x}}async function v(r,x){ne(r,!0);try{await x()}catch(c){m.error(c instanceof Error?c.message:String(c))}finally{ne(r,!1)}}function g(r){return n(r==="github"?"runtimeVersions.github":"runtimeVersions.cf")}function w(r){if(!r||r<=0)return"";const x=["B","KB","MB","GB"];let c=r,Y=0;for(;c>=1024&&Y<x.length-1;)c/=1024,Y+=1;return`${c>=10||Y===0?c.toFixed(0):c.toFixed(1)} ${x[Y]}`}function D(r){return r?.split("·")[0]?.trim()||"-"}function ce(r){return r.receivedBytes&&r.totalBytes?`${w(r.receivedBytes)} / ${w(r.totalBytes)}`:r.receivedBytes?w(r.receivedBytes):S(r.message)}async function ke(r,x){await v(`download-runtime-${x}-${r}`,async()=>{const c=await Ca(r,x);k.value=[c.job,...k.value.filter(Y=>Y.id!==c.job.id)],m.success(n("runtimeVersions.downloadStarted")),ae()})}async function _(r){await v(`activate-runtime-${r}`,async()=>{await xa(r),m.success(n("runtimeVersions.activateSuccess")),await b()})}async function $(){const r=Me()?.selectRuntimeDirectory;r&&await v("select-runtime-directory",async()=>{const x=await r(l.value?.hermes.pendingStorageDirectory||l.value?.hermes.storageDirectory||void 0);x&&(await Se(x),m.success(n("runtimeVersions.runtimeDirectorySaved")),await b())})}async function f(){const r=l.value?.hermes.defaultStorageDirectory;r&&await v("reset-runtime-directory",async()=>{await Se(r),m.success(n("runtimeVersions.runtimeDirectorySaved")),await b()})}async function re(r){await v(`delete-runtime-${r}`,async()=>{await $a(r),m.success(n("runtimeVersions.deleteRuntimeSuccess")),await b()})}return(r,x)=>(s(),V(t(Ye),{show:j.show,placement:"right",width:"min(860px, calc(100vw - 24px))","onUpdate:show":G},{default:d(()=>[h(t(at),{title:t(n)("runtimeVersions.title"),closable:""},{default:d(()=>[h(t(Be),{show:F.value},{default:d(()=>[e("div",Sa,[z.value?(s(),V(t(de),{key:0,type:"error",bordered:!1},{default:d(()=>[C(a(z.value),1)]),_:1})):y("",!0),l.value?.remoteError?(s(),V(t(de),{key:1,type:"warning",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.remoteLoadFailed"))+": "+a(l.value.remoteError),1)]),_:1})):y("",!0),e("section",Va,[e("div",Ba,[e("div",null,[e("h3",null,a(t(n)("runtimeVersions.runtimeTitle")),1),e("p",null,a(t(n)("runtimeVersions.platform"))+": "+a(l.value?.platform||"-"),1)]),h(t(N),{size:"small",secondary:"",onClick:b},{default:d(()=>[C(a(t(n)("runtimeVersions.refresh")),1)]),_:1})]),e("div",Aa,[e("span",{"data-testid":"active-hermes-agent-version",title:l.value?.hermes.agentVersion||""},a(t(n)("runtimeVersions.currentHermesAgentVersion"))+": "+a(D(l.value?.hermes.agentVersion)),9,Da),e("span",{"data-testid":"active-runtime-directory",title:l.value?.hermes.activeDirectory||""},a(t(n)("runtimeVersions.activeRuntimeDirectory"))+": "+a(l.value?.hermes.activeDirectory||"-"),9,Ra)]),h(t(de),{"data-testid":"runtime-cli-update-note",type:"info",bordered:!1},{default:d(()=>[e("div",Pa,[e("span",null,a(t(n)("runtimeVersions.cliUpdateDescription")),1),x[0]||(x[0]=e("code",null,"hermes-studio cli update",-1))])]),_:1}),e("div",za,[e("div",Ta,[e("strong",null,a(t(n)("runtimeVersions.runtimeDirectory")),1),e("span",{title:l.value?.hermes.storageDirectory||""},a(l.value?.hermes.storageDirectory||"-"),9,ja)]),U.value?(s(),p("div",La,[h(t(N),{"data-testid":"select-runtime-directory",size:"small",secondary:"",loading:M.value["select-runtime-directory"],onClick:$},{default:d(()=>[C(a(t(n)("runtimeVersions.chooseRuntimeDirectory")),1)]),_:1},8,["loading"]),h(t(N),{"data-testid":"reset-runtime-directory",size:"small",secondary:"",disabled:I.value,loading:M.value["reset-runtime-directory"],onClick:f},{default:d(()=>[C(a(t(n)("runtimeVersions.resetRuntimeDirectory")),1)]),_:1},8,["disabled","loading"])])):y("",!0)]),U.value?(s(),p("p",Ua,a(t(n)("runtimeVersions.runtimeDirectoryHint")),1)):y("",!0),l.value?.hermes.pendingStorageDirectory?(s(),V(t(de),{key:1,type:"info",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.runtimeMigrationPending",{directory:l.value.hermes.pendingStorageDirectory})),1)]),_:1})):y("",!0),l.value?.hermes.migrationError?(s(),V(t(de),{key:2,type:"error",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.runtimeMigrationFailed"))+": "+a(l.value.hermes.migrationError),1)]),_:1})):y("",!0),l.value?.hermes.activationError?(s(),V(t(de),{key:3,"data-testid":"runtime-activation-error",type:"error",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.runtimeActivationFailed"))+": "+a(l.value.hermes.activationError),1)]),_:1})):y("",!0),e("div",Ia,[(s(!0),p(oe,null,se(Q.value,c=>(s(),p("div",{key:`runtime-${c}`,class:"version-row"},[e("div",Na,[e("strong",null,a(c),1),H(c)?.active?(s(),V(t(_e),{key:0,size:"small",type:"success",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.active")),1)]),_:1})):H(c)?(s(),V(t(_e),{key:1,size:"small",bordered:!1},{default:d(()=>[C(a(t(n)("runtimeVersions.installed")),1)]),_:1})):y("",!0),K("runtime",c)?(s(),V(t(_e),{key:2,size:"small",type:A(K("runtime",c).status),bordered:!1},{default:d(()=>[C(a(i(K("runtime",c))),1)]),_:2},1032,["type"])):y("",!0)]),e("div",Ea,[H(c)&&!H(c)?.active?(s(),V(t(N),{key:0,size:"small",secondary:"",loading:M.value[`activate-runtime-${c}`],onClick:Y=>_(c)},{default:d(()=>[C(a(t(n)("runtimeVersions.useVersion")),1)]),_:1},8,["loading","onClick"])):y("",!0),H(c)&&!H(c)?.active?(s(),V(t(Le),{key:1,onPositiveClick:Y=>re(c)},{trigger:d(()=>[h(t(N),{size:"small",type:"error",secondary:"",loading:M.value[`delete-runtime-${c}`]},{default:d(()=>[C(a(t(n)("runtimeVersions.deleteVersion")),1)]),_:1},8,["loading"])]),default:d(()=>[C(" "+a(t(n)("runtimeVersions.deleteRuntimeConfirm",{version:c})),1)]),_:2},1032,["onPositiveClick"])):y("",!0),H(c)?y("",!0):(s(),V(t(N),{key:2,size:"small",type:"primary",secondary:"",disabled:!!K("runtime",c),loading:M.value[`download-runtime-github-${c}`],onClick:Y=>ke(c,"github")},{default:d(()=>[C(a(t(n)("runtimeVersions.downloadGithub")),1)]),_:1},8,["disabled","loading","onClick"])),H(c)?y("",!0):(s(),V(t(N),{key:3,size:"small",type:"primary",secondary:"",disabled:!!K("runtime",c),loading:M.value[`download-runtime-cf-${c}`],onClick:Y=>ke(c,"cf")},{default:d(()=>[C(a(t(n)("runtimeVersions.downloadCf")),1)]),_:1},8,["disabled","loading","onClick"]))])]))),128)),Q.value.length===0?(s(),p("div",Ga,a(t(n)("runtimeVersions.noVersions")),1)):y("",!0)])]),q.value.length>0?(s(),p("section",Fa,[e("div",Oa,[e("h3",null,a(t(n)("runtimeVersions.downloadTasks")),1)]),e("div",Ja,[(s(!0),p(oe,null,se(q.value.slice(0,6),c=>(s(),p("div",{key:c.id,class:"job-row"},[e("div",Ha,[e("span",null,a(t(n)("runtimeVersions.runtimeTitle"))+" "+a(c.version)+" · "+a(g(c.source)),1),c.status==="running"||c.status==="queued"?(s(),p("div",Ka,[h(t(Qe),{type:"line",percentage:Math.round(c.percent||0),"show-indicator":typeof c.percent=="number",processing:c.status==="running"&&c.stage==="download"},null,8,["percentage","show-indicator","processing"]),e("small",null,a(ce(c)),1)])):y("",!0),c.error?(s(),p("small",Wa,a(c.error),1)):y("",!0)]),h(t(_e),{size:"small",type:A(c.status),bordered:!1},{default:d(()=>[C(a(i(c)),1)]),_:2},1032,["type"])]))),128))])])):y("",!0)])]),_:1},8,["show"])]),_:1},8,["title"])]),_:1},8,["show"]))}});we();var Qa=ye(qa,[["__scopeId","data-v-c978383d"]]),Za=[{version:"0.6.41",date:"2026-08-10",changes:["changelog.new_0_6_41_1"]},{version:"0.6.40",date:"2026-08-10",changes:["changelog.new_0_6_40_1","changelog.new_0_6_40_2","changelog.new_0_6_40_3","changelog.new_0_6_40_4","changelog.new_0_6_40_5","changelog.new_0_6_40_6","changelog.new_0_6_40_7","changelog.new_0_6_40_8","changelog.new_0_6_40_9","changelog.new_0_6_40_10","changelog.new_0_6_40_11","changelog.new_0_6_40_12","changelog.new_0_6_40_13"]},{version:"0.6.39",date:"2026-08-06",changes:["changelog.new_0_6_39_1","changelog.new_0_6_39_2","changelog.new_0_6_39_3","changelog.new_0_6_39_4","changelog.new_0_6_39_5","changelog.new_0_6_39_6","changelog.new_0_6_39_7","changelog.new_0_6_39_8"]},{version:"0.6.38",date:"2026-08-04",changes:["changelog.new_0_6_38_1","changelog.new_0_6_38_2"]},{version:"0.6.37",date:"2026-08-04",changes:["changelog.new_0_6_37_1","changelog.new_0_6_37_2","changelog.new_0_6_37_3","changelog.new_0_6_37_4","changelog.new_0_6_37_5","changelog.new_0_6_37_6","changelog.new_0_6_37_7","changelog.new_0_6_37_8","changelog.new_0_6_37_9","changelog.new_0_6_37_10","changelog.new_0_6_37_11","changelog.new_0_6_37_12","changelog.new_0_6_37_13"]},{version:"0.6.36",date:"2026-08-01",changes:["changelog.new_0_6_36_1","changelog.new_0_6_36_2","changelog.new_0_6_36_3","changelog.new_0_6_36_4","changelog.new_0_6_36_5","changelog.new_0_6_36_6","changelog.new_0_6_36_7","changelog.new_0_6_36_8","changelog.new_0_6_36_9","changelog.new_0_6_36_10","changelog.new_0_6_36_11","changelog.new_0_6_36_12","changelog.new_0_6_36_13","changelog.new_0_6_36_14","changelog.new_0_6_36_15","changelog.new_0_6_36_16"]},{version:"0.6.35",date:"2026-07-28",changes:["changelog.new_0_6_35_1"]},{version:"0.6.34",date:"2026-07-28",changes:["changelog.new_0_6_34_1","changelog.new_0_6_34_2","changelog.new_0_6_34_3","changelog.new_0_6_34_4","changelog.new_0_6_34_5","changelog.new_0_6_34_6","changelog.new_0_6_34_7","changelog.new_0_6_34_8","changelog.new_0_6_34_9"]},{version:"0.6.33",date:"2026-07-24",changes:["changelog.new_0_6_33_1","changelog.new_0_6_33_2","changelog.new_0_6_33_3","changelog.new_0_6_33_4","changelog.new_0_6_33_5","changelog.new_0_6_33_6","changelog.new_0_6_33_7","changelog.new_0_6_33_8","changelog.new_0_6_33_9"]},{version:"0.6.32",date:"2026-07-21",changes:["changelog.new_0_6_32_1","changelog.new_0_6_32_2","changelog.new_0_6_32_3","changelog.new_0_6_32_4","changelog.new_0_6_32_5","changelog.new_0_6_32_6","changelog.new_0_6_32_7","changelog.new_0_6_32_8","changelog.new_0_6_32_9","changelog.new_0_6_32_10"]}];ie();ge();pe();Pe();Ae();var Xa={class:"sidebar-nav"},Ya={class:"nav-group"},en={class:"nav-group-items"},tn={class:"nav-group"},an={class:"nav-group-items"},nn={class:"nav-group"},rn={class:"nav-group-items"},sn={class:"nav-group"},on={class:"nav-group-items"},ln={class:"sidebar-footer"},dn=["title"],un={class:"status-row"},cn={class:"status-text"},vn={class:"version-info"},_n=["onKeydown"],hn={class:"version-management-label"},mn={class:"version-update-label"},pn={class:"sidebar-top-actions"},gn=["title"],fn={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wn={key:0,points:"9 18 15 12 9 6"},yn={key:1,points:"15 18 9 12 15 6"},kn={class:"changelog-list"},bn={class:"changelog-version-header"},xn={class:"changelog-version-tag"},Cn={class:"changelog-date"},$n={class:"changelog-changes"},Mn={class:"docker-update-modal"},Sn={class:"docker-update-note"},Vn=le({__name:"AppSidebar",setup(T){const{t:o}=fe(),j=Ce(),u=it(),n=et(),m=De(),l=P(()=>u.name),k=P(()=>Ue()),F=P(()=>qe()),M=P(()=>window.hermesDesktop?.isDesktop===!0),z=B(!1),E=B(!1),U=B(!1),I=P(()=>m.isDocker);function L(A){return n.hasRoute(A)}const{record:Q,persist:q}=ut("hermes.sidebar.collapsedGroups");function G(A){return o(`sidebar.group${A}${m.sidebarCollapsed?"Short":""}`)}function O(A){Q[A]=!Q[A],q()}function b(A){return!!Q[A]}function Z(A){(A.target instanceof Element?A.target:null)?.closest(".route-link-item")&&typeof window<"u"&&window.matchMedia("(max-width: 768px)").matches&&m.closeSidebar()}async function ee(){await m.doUpdate()?j.success(o("sidebar.updateSuccess"),{duration:5e3}):j.error(o("sidebar.updateFailed"))}function te(){m.reloadClient()}async function ae(){const A=Fe();A&&await tt(A),localStorage.clear(),window.location.reload()}function J(){z.value=!0}function X(){E.value=!0}function H(){U.value=!0}function K(){if(I.value){H();return}ee()}return(A,i)=>(s(),p("aside",{class:W(["sidebar",{open:t(m).sidebarOpen,collapsed:t(m).sidebarCollapsed}]),onClick:Z},[e("nav",Xa,[e("div",Ya,[e("div",{class:"nav-group-label",onClick:i[0]||(i[0]=S=>O("agent"))},[e("span",null,a(G("Agent")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("agent")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[8]||(i[8]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",en,[h(R,{class:"nav-item",to:{name:"hermes.jobs"},active:l.value==="hermes.jobs"},{default:d(()=>[i[9]||(i[9]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e("line",{x1:"3",y1:"10",x2:"21",y2:"10"})],-1)),e("span",null,a(t(o)("sidebar.jobs")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.kanban"},active:l.value==="hermes.kanban"},{default:d(()=>[i[10]||(i[10]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"3",width:"5",height:"18",rx:"1"}),e("rect",{x:"10",y:"3",width:"5",height:"12",rx:"1"}),e("rect",{x:"17",y:"3",width:"5",height:"18",rx:"1"})],-1)),e("span",null,a(t(o)("sidebar.kanban")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.channels"},active:l.value==="hermes.channels"},{default:d(()=>[i[11]||(i[11]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})],-1)),e("span",null,a(t(o)("sidebar.channels")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.skills"},active:l.value==="hermes.skills"},{default:d(()=>[i[12]||(i[12]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polygon",{points:"12 2 2 7 12 12 22 7 12 2"}),e("polyline",{points:"2 17 12 22 22 17"}),e("polyline",{points:"2 12 12 17 22 12"})],-1)),e("span",null,a(t(o)("sidebar.skills")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.plugins"},active:l.value==="hermes.plugins"},{default:d(()=>[i[13]||(i[13]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l2.1-2.1a4 4 0 0 1-5.3 5.3l-7.8 7.8a2.1 2.1 0 0 1-3-3l7.8-7.8a4 4 0 0 1 5.3-5.3l-2.1 2.1z"}),e("path",{d:"M5 19l1-1"})],-1)),e("span",null,a(t(o)("sidebar.plugins")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.mcp"},active:l.value==="hermes.mcp"},{default:d(()=>[i[14]||(i[14]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M4 7V4h16v3"}),e("path",{d:"M9 20h6"}),e("path",{d:"M12 7v13"}),e("rect",{x:"4",y:"7",width:"16",height:"7",rx:"2"})],-1)),e("span",null,a(t(o)("sidebar.mcp")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.petdex"},active:l.value==="hermes.petdex"},{default:d(()=>[i[15]||(i[15]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 3l7 4v6c0 4-3 7-7 8-4-1-7-4-7-8V7l7-4z"}),e("path",{d:"M9 11h.01"}),e("path",{d:"M15 11h.01"}),e("path",{d:"M9.5 15c1.6 1.1 3.4 1.1 5 0"})],-1)),e("span",null,a(t(o)("sidebar.petdex")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.memory"},active:l.value==="hermes.memory"},{default:d(()=>[i[16]||(i[16]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M9 18h6"}),e("path",{d:"M10 22h4"}),e("path",{d:"M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z"})],-1)),e("span",null,a(t(o)("sidebar.memory")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.models"},active:l.value==="hermes.models"},{default:d(()=>[i[17]||(i[17]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"3"}),e("path",{d:"M12 1v4"}),e("path",{d:"M12 19v4"}),e("path",{d:"M1 12h4"}),e("path",{d:"M19 12h4"}),e("path",{d:"M4.22 4.22l2.83 2.83"}),e("path",{d:"M16.95 16.95l2.83 2.83"}),e("path",{d:"M4.22 19.78l2.83-2.83"}),e("path",{d:"M16.95 7.05l2.83-2.83"})],-1)),e("span",null,a(t(o)("sidebar.models")),1)]),_:1},8,["active"])],512),[[ve,!b("agent")]])]),e("div",tn,[e("div",{class:"nav-group-label",onClick:i[1]||(i[1]=S=>O("monitoring"))},[e("span",null,a(G("Monitoring")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("monitoring")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[18]||(i[18]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",an,[h(R,{class:"nav-item",to:{name:"hermes.logs"},active:l.value==="hermes.logs"},{default:d(()=>[i[19]||(i[19]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),e("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),e("polyline",{points:"10 9 9 9 8 9"})],-1)),e("span",null,a(t(o)("sidebar.logs")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.usage"},active:l.value==="hermes.usage"},{default:d(()=>[i[20]||(i[20]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"12",width:"4",height:"9",rx:"1"}),e("rect",{x:"10",y:"7",width:"4",height:"14",rx:"1"}),e("rect",{x:"17",y:"3",width:"4",height:"18",rx:"1"})],-1)),e("span",null,a(t(o)("sidebar.usage")),1)]),_:1},8,["active"]),k.value?(s(),V(R,{key:0,class:"nav-item",to:{name:"hermes.performance"},active:l.value==="hermes.performance"},{default:d(()=>[i[21]||(i[21]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})],-1)),e("span",null,a(t(o)("sidebar.performance")),1)]),_:1},8,["active"])):y("",!0),h(R,{class:"nav-item",to:{name:"hermes.journey"},active:l.value==="hermes.journey"},{default:d(()=>[i[22]||(i[22]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M12 3.5a8.5 8.5 0 1 0 8.5 8.5"}),e("path",{d:"M4.4 15.4c3.2 1.1 7.4.4 10.8-2.1 3.1-2.3 4.9-5.5 4.5-8.1"}),e("path",{d:"M6.3 6.6c2.5-.9 6.1-.4 9.2 1.5 3.2 2 5.2 5 5 7.6"}),e("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),e("circle",{cx:"19.5",cy:"4.5",r:"1.2",fill:"currentColor",stroke:"none"})],-1)),e("span",null,a(t(o)("sidebar.journey")),1)]),_:1},8,["active"]),h(R,{class:"nav-item",to:{name:"hermes.skillsUsage"},active:l.value==="hermes.skillsUsage"},{default:d(()=>[i[23]||(i[23]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21.21 15.89A10 10 0 1 1 8.11 2.79"}),e("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})],-1)),e("span",null,a(t(o)("sidebar.skillsUsage")),1)]),_:1},8,["active"])],512),[[ve,!b("monitoring")]])]),e("div",nn,[e("div",{class:"nav-group-label",onClick:i[2]||(i[2]=S=>O("tools"))},[e("span",null,a(G("Tools")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("tools")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[24]||(i[24]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",rn,[M.value&&L("hermes.browser")?(s(),V(R,{key:0,class:"nav-item",to:{name:"hermes.browser"},active:l.value==="hermes.browser"},{default:d(()=>[i[25]||(i[25]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"9"}),e("path",{d:"M3 9h18"}),e("path",{d:"M9 3c-2 5-2 13 0 18"}),e("path",{d:"M15 3c2 5 2 13 0 18"})],-1)),e("span",null,a(t(o)("sidebar.browser")),1)]),_:1},8,["active"])):y("",!0),L("hermes.codingAgents")?(s(),V(R,{key:1,class:"nav-item",to:{name:"hermes.codingAgents"},active:l.value==="hermes.codingAgents"},{default:d(()=>[i[26]||(i[26]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"16 18 22 12 16 6"}),e("polyline",{points:"8 6 2 12 8 18"}),e("line",{x1:"12",y1:"20",x2:"14",y2:"4"})],-1)),e("span",null,a(t(o)("sidebar.codingAgents")),1)]),_:1},8,["active"])):y("",!0),L("hermes.versionPreview")&&k.value?(s(),V(R,{key:2,class:"nav-item",to:{name:"hermes.versionPreview"},active:l.value==="hermes.versionPreview"},{default:d(()=>[i[27]||(i[27]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),e("polyline",{points:"7.5 4.21 12 6.81 16.5 4.21"}),e("polyline",{points:"7.5 19.79 7.5 14.6 3 12"}),e("polyline",{points:"21 12 16.5 14.6 16.5 19.79"}),e("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),e("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})],-1)),e("span",null,a(t(o)("sidebar.versionPreview")),1)]),_:1},8,["active"])):y("",!0),k.value?(s(),V(R,{key:3,class:"nav-item",to:{name:"hermes.devices"},active:l.value==="hermes.devices"},{default:d(()=>[i[28]||(i[28]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("rect",{x:"3",y:"4",width:"18",height:"12",rx:"2"}),e("path",{d:"M8 20h8"}),e("path",{d:"M12 16v4"}),e("path",{d:"M6 8h.01"}),e("path",{d:"M10 8h.01"})],-1)),e("span",null,a(t(o)("sidebar.devices")),1)]),_:1},8,["active"])):y("",!0)],512),[[ve,!b("tools")]])]),e("div",sn,[e("div",{class:"nav-group-label",onClick:i[3]||(i[3]=S=>O("system"))},[e("span",null,a(G("System")),1),(s(),p("svg",{class:W(["nav-group-arrow",{collapsed:b("system")}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...i[29]||(i[29]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))]),he(e("div",on,[h(R,{class:"nav-item",to:{name:"hermes.theme"},active:l.value==="hermes.theme"},{default:d(()=>[i[30]||(i[30]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"13.5",cy:"6.5",r:"2.5"}),e("circle",{cx:"17.5",cy:"10.5",r:"2.5"}),e("circle",{cx:"8.5",cy:"7.5",r:"2.5"}),e("path",{d:"M12 3a9 9 0 1 0 9 9c0-1.1-.9-2-2-2h-1.2a2.8 2.8 0 0 1-2.8-2.8V5c0-1.1-.9-2-2-2h-1z"})],-1)),e("span",null,a(t(o)("sidebar.theme")),1)]),_:1},8,["active"]),k.value?(s(),V(R,{key:0,class:"nav-item",to:{name:"hermes.profiles"},active:l.value==="hermes.profiles"},{default:d(()=>[i[31]||(i[31]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})],-1)),e("span",null,a(t(o)("sidebar.profiles")),1)]),_:1},8,["active"])):y("",!0),h(R,{class:"nav-item",to:{name:"hermes.settings"},active:l.value==="hermes.settings"},{default:d(()=>[i[32]||(i[32]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"3"}),e("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e("span",null,a(t(o)("sidebar.settings")),1)]),_:1},8,["active"])],512),[[ve,!b("system")]])])]),h(ua),h(Lt),e("div",ln,[e("button",{class:"nav-item logout-item",onClick:ae},[i[33]||(i[33]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),e("polyline",{points:"16 17 21 12 16 7"}),e("line",{x1:"21",y1:"12",x2:"9",y2:"12"})],-1)),e("span",null,a(t(o)("sidebar.logout")),1),F.value?(s(),p("span",{key:0,class:"logout-username",title:F.value},a(F.value),9,dn)):y("",!0)]),e("div",un,[e("div",{class:W(["status-indicator",{connected:t(m).connected,disconnected:!t(m).connected}])},[i[34]||(i[34]=e("span",{class:"status-dot"},null,-1)),e("span",cn,a(t(m).connected?t(o)("sidebar.connected"):t(o)("sidebar.disconnected")),1)],2),h(va)]),e("div",vn,[i[35]||(i[35]=Ve('<div class="version-links" data-v-a26892cd><a class="sidebar-footer-link" href="https://github.com/EKKOLearnAI/hermes-studio" target="_blank" rel="noopener noreferrer" title="GitHub" data-v-a26892cd><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" data-v-a26892cd><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" data-v-a26892cd></path></svg></a><a class="sidebar-footer-link" href="https://hermes-studio.ai/" target="_blank" rel="noopener noreferrer" title="Website" data-v-a26892cd><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-a26892cd><circle cx="12" cy="12" r="10" data-v-a26892cd></circle><line x1="2" y1="12" x2="22" y2="12" data-v-a26892cd></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" data-v-a26892cd></path></svg></a></div>',1)),e("span",{class:"version-text",role:"button",tabindex:"0",onClick:J,onKeydown:[xe(J,["enter"]),xe(Re(J,["prevent"]),["space"])]}," Studio v"+a(t(m).serverVersion||"0.1.0"),41,_n),h(ka)]),M.value?(s(),V(t(N),{key:0,type:"primary",size:"tiny",block:"",class:W(["update-btn version-management-btn",{"has-update":t(m).updateAvailable}]),onClick:X},{default:d(()=>[e("span",hn,[C(a(t(o)("sidebar.versionManagement"))+" ",1),e("span",mn,a(t(o)("sidebar.updateAvailableLabel")),1)])]),_:1},8,["class"])):y("",!0),t(m).clientOutdated?(s(),V(t(N),{key:1,type:"warning",size:"tiny",block:"",class:"update-btn",onClick:te},{default:d(()=>[C(a(t(o)("sidebar.reloadClientVersion",{version:t(m).serverVersion})),1)]),_:1})):t(m).updateAvailable?(s(),V(t(N),{key:2,type:"primary",size:"tiny",block:"",class:"update-btn",loading:!I.value&&t(m).updating,onClick:K},{default:d(()=>[C(a(!I.value&&t(m).updating?t(o)("sidebar.updating"):t(o)("sidebar.updateVersion",{version:t(m).latestVersion})),1)]),_:1},8,["loading"])):y("",!0)]),e("div",pn,[h(R,{class:"nav-item sidebar-return-tab",to:{name:"hermes.chat"},title:t(o)("sidebar.backToChat")},{default:d(()=>[i[36]||(i[36]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"15 18 9 12 15 6"}),e("line",{x1:"9",y1:"12",x2:"21",y2:"12"})],-1)),e("span",null,a(t(o)("sidebar.backToChat")),1)]),_:1},8,["title"]),e("button",{class:"collapse-btn",onClick:i[4]||(i[4]=S=>t(m).toggleSidebarCollapsed()),title:t(m).sidebarCollapsed?t(o)("sidebar.expand"):t(o)("sidebar.collapse")},[(s(),p("svg",fn,[t(m).sidebarCollapsed?(s(),p("polyline",wn)):(s(),p("polyline",yn))]))],8,gn)]),h(t(me),{show:z.value,"onUpdate:show":i[5]||(i[5]=S=>z.value=S),preset:"dialog",title:t(o)("sidebar.changelog"),style:{width:"520px"}},{default:d(()=>[e("div",kn,[(s(!0),p(oe,null,se(t(Za),S=>(s(),p("div",{key:S.version,class:"changelog-version-block"},[e("div",bn,[e("span",xn,"v"+a(S.version),1),e("span",Cn,a(S.date),1)]),e("ul",$n,[(s(!0),p(oe,null,se(S.changes,(ne,v)=>(s(),p("li",{key:v},a(t(o)(ne)),1))),128))])]))),128))])]),_:1},8,["show","title"]),M.value?(s(),V(Qa,{key:0,show:E.value,"onUpdate:show":i[6]||(i[6]=S=>E.value=S)},null,8,["show"])):y("",!0),h(t(me),{show:U.value,"onUpdate:show":i[7]||(i[7]=S=>U.value=S),preset:"dialog",title:t(o)("sidebar.dockerUpdateTitle"),style:{width:"480px"}},{default:d(()=>[e("div",Mn,[e("p",null,a(t(o)("sidebar.dockerUpdateGuide")),1),i[37]||(i[37]=e("div",{class:"docker-update-commands"},[e("code",{class:"docker-command"},"docker compose pull"),e("code",{class:"docker-command"},"docker compose up -d --force-recreate")],-1)),e("p",Sn,[h(t(_e),{size:"small",type:"info",bordered:!1},{default:d(()=>[C(a(t(o)("sidebar.dockerUpdateNote")),1)]),_:1})])])]),_:1},8,["show","title"])],2))}});we();var Wn=ye(Vn,[["__scopeId","data-v-a26892cd"]]);export{Wn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as r,$t as G,Bi as De,Di as Q,G as ze,Gi as Le,Hi as g,M as K,Nr as j,Pr as E,Sa as M,Ti as n,U as h,Vi as $e,Wi as We,Zi as Ne,_a as e,_i as U,bi as b,bt as Fe,ca as R,dn as Ge,gi as Qe,gt as Ke,ln as je,mi as z,n as J,si as O,sn as p,t as Z,ua as W,vi as X,wa as T,wi as V,ya as de,yi as k}from"./index-DnjQJzX4.js";import{r as Ee,t as Je}from"./profiles-D-vlI-Ec.js";import{c as Oe,d as Ze,l as Xe,n as Ue,p as Ye,r as ea,s as aa,t as He}from"./settings-pbanANH0.js";import{n as la,t as s}from"./SettingRow-CSfiJmxx.js";var ue,pe,me,ce,Se,fe=T((()=>{O(),K(),j(),ue={class:"platform-info"},pe=["innerHTML"],me={class:"platform-name"},ce={key:0,class:"platform-card-body"},Se=Q({__name:"PlatformCard",props:{platformKey:{},name:{},icon:{},config:{},credentials:{},exclusive:{type:Boolean}},setup(I){const v=I,_=W(!0),{t:A}=E(),a=Qe(()=>{const C=v.credentials;if(!C)return!1;if(v.platformKey==="matrix"){const x=C.extra||{},y=String(x.homeserver||"").trim(),q=String(C.token||"").trim(),P=String(x.user_id||"").trim(),H=String(x.password||"").trim();return!!(y&&(q||P&&H))}const S=["token","api_key","app_id","client_id","secret","app_secret","client_secret","access_token","bot_id","account_id","enabled"];return[C,C.extra].filter(Boolean).some(x=>S.some(y=>{const q=x[y];return q!=null&&q!==""&&q!==!1}))});return(C,S)=>(g(),b("div",{class:de(["platform-card",{configured:a.value}])},[U("div",{class:"platform-card-header",onClick:S[0]||(S[0]=x=>_.value=!_.value)},[U("div",ue,[U("span",{class:"platform-icon",innerHTML:I.icon},null,8,pe),U("span",me,M(I.name),1),n(e(Ge),{type:a.value?"success":"default",size:"small",round:""},{default:r(()=>[V(M(a.value?e(A)("common.configured"):e(A)("common.notConfigured")),1)]),_:1},8,["type"])]),U("span",{class:de(["expand-icon",{expanded:_.value}])},"▾",2)]),_.value?(g(),b("div",ce,[I.exclusive?(g(),X(e(je),{key:0,type:"warning","show-icon":!0,class:"exclusive-alert"},{default:r(()=>[V(M(e(A)("platform.exclusiveTokenWarning")),1)]),_:1})):k("",!0),Le(C.$slots,"default",{},void 0,!0)])):k("",!0)],2))}})})),ta=T((()=>{})),Me,na=T((()=>{fe(),fe(),ta(),J(),Me=Z(Se,[["__scopeId","data-v-23f12852"]])})),ve,ge,_e,he,be,Te,xe=T((()=>{O(),K(),j(),He(),Oe(),na(),la(),ve={class:"settings-section"},ge={class:"weixin-qr-section"},_e={key:1,class:"weixin-qr-loading"},he={key:2,class:"weixin-qr-hint"},be={class:"platform-actions"},Te=Q({__name:"PlatformSettings",setup(I){const v=Ue(),_=Ke(),A=Fe(),{t:a}=E(),C=R({}),S=R({}),x=R({}),y=R({}),q=R({}),P=R({});function H(i){return JSON.parse(JSON.stringify(i||{}))}function N(i,l){for(const[u,t]of Object.entries(l))t&&typeof t=="object"&&!Array.isArray(t)?i[u]=N({...i[u]||{}},t):i[u]=t;return i}function m(i){return x[i]||(x[i]=H(v[i])),x[i]}function d(i){return y[i]||(y[i]=H(B(i))),y[i]}function f(i,l){x[i]=N({...m(i)},l),q[i]=!0}function c(i,l){y[i]=N({...d(i)},l),P[i]=!0}function Y(i,l){return JSON.stringify(i||{})===JSON.stringify(l||{})}function ee(i){return!!q[i]&&!!x[i]&&!Y(x[i],v[i])}function ae(i){return!!P[i]&&!!y[i]&&!Y(y[i],B(i))}function le(i){return ee(i)||ae(i)}function o(i){return!!C[i]}function te(i){return!!S[i]}function ne(i){return v.platformCredentialStatus[i]===!0}function Ie(i,l){return i==="gateway_restart_failed"?a("platform.clearCredentialsGatewayRestartFailed"):i==="gateway_restart_disabled"?a("platform.clearCredentialsGatewayRestartDisabled"):l}async function Be(i){C[i]=!0;try{const l=ee(i),u=ae(i);l&&await v.saveSection(i,m(i),{restart:!u}),u&&(await Ze(i,d(i)),await v.fetchSettings()),x[i]=H(v[i]),y[i]=H(B(i)),q[i]=!1,P[i]=!1,_.success(a("settings.saved"))}catch(l){_.error(l?.message||a("settings.saveFailed"))}finally{C[i]=!1}}async function Re(i,l){if(le(i)){_.warning(a("platform.clearCredentialsUnsaved"));return}ne(i)&&A.warning({title:a("platform.clearCredentials"),content:a("platform.clearCredentialsConfirm",{name:l}),positiveText:a("platform.clearCredentials"),negativeText:a("common.cancel"),onPositiveClick:async()=>{S[i]=!0;try{const u=await ea(i);await v.fetchSettings(),x[i]=H(v[i]),y[i]=H(B(i)),q[i]=!1,P[i]=!1,u.warning?_.warning(Ie(u.warning.code,u.warning.message)):_.success(a("platform.credentialsCleared"))}catch(u){_.error(u?.message||a("platform.clearCredentialsFailed"))}finally{S[i]=!1}}})}function B(i){return v.platforms[i]||{}}function ie(i){return i===!0||i==="true"}const re=W(""),D=W(""),w=W("idle");let L=null;async function Ve(){w.value="loading",re.value="",D.value="",oe();try{const i=await aa();D.value=i.qrcode,re.value=i.qrcode_url,window.open(i.qrcode_url,"_blank"),w.value="waiting",$()}catch(i){w.value="error",_.error(i.message||a("platform.qrFetching"))}}function $(){D.value&&(L=setTimeout(async()=>{try{const i=await Xe(D.value);i.status==="wait"?$():i.status==="scaned"?(w.value="scaned",$()):i.status==="expired"?w.value="expired":i.status==="confirmed"&&(w.value="confirmed",await Ye({account_id:i.account_id,token:i.token,base_url:i.base_url}),await v.fetchSettings(),_.success(a("settings.saved")))}catch{$()}},3e3))}function oe(){L&&(clearTimeout(L),L=null)}$e(()=>{oe()});const se=[{key:"telegram",name:"Telegram",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.479.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>'},{key:"discord",name:"Discord",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"/></svg>'},{key:"slack",name:"Slack",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 0a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V5.042zm-1.27 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.27a2.527 2.527 0 0 1 2.523-2.52h6.313A2.528 2.528 0 0 1 24 18.956a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg>'},{key:"whatsapp",name:"WhatsApp",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>'},{key:"matrix",name:"Matrix",icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.48.324.448.217.786.619 1.017 1.205.24-.376.558-.702.956-.98.398-.277.872-.414 1.424-.414.41 0 .784.065 1.122.194.34.13.629.325.87.588.241.263.428.59.56.984.132.393.198.85.198 1.368v5.89h-2.49v-4.893c0-.268-.016-.525-.048-.77a1.627 1.627 0 00-.2-.63 1.028 1.028 0 00-.392-.426 1.294 1.294 0 00-.616-.134c-.277 0-.508.05-.693.15a1.043 1.043 0 00-.43.41 1.768 1.768 0 00-.214.616 4.15 4.15 0 00-.06.74v4.937H9.29v-4.937c0-.25-.01-.498-.032-.742a1.84 1.84 0 00-.166-.638.998.998 0 00-.363-.448 1.206 1.206 0 00-.624-.154c-.26 0-.483.048-.67.144a1.055 1.055 0 00-.436.402 1.744 1.744 0 00-.227.616 4.108 4.108 0 00-.063.74v4.937H5.21V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"/></svg>'},{key:"feishu",name:"Feishu",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6.59 3.41a2.25 2.25 0 0 1 3.182 0L13.5 7.14l-3.182 3.182L6.59 7.59a2.25 2.25 0 0 1 0-3.182zm5.303 5.303L15.075 5.53a2.25 2.25 0 0 1 3.182 3.182L15.075 11.894 11.893 8.713zM3.41 6.59a2.25 2.25 0 0 1 3.182 0l3.182 3.182-3.182 3.182a2.25 2.25 0 0 1-3.182-3.182L3.41 6.59zm5.303 5.303L11.894 15.075a2.25 2.25 0 0 1-3.182 3.182L5.53 15.075 8.713 11.893zm5.303-5.303L17.478 9.778a2.25 2.25 0 0 1-3.182 3.182L10.53 10.075l3.182-3.182 0 .023z"/></svg>'},{key:"dingtalk",name:"DingTalk",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M19.76 7.05c-.23-.52-.7-.9-1.26-1.02L5.35 3.2c-.77-.16-1.51.38-1.58 1.16-.22 2.55.17 5.4 1.13 7.66.97 2.29 2.52 4.11 4.45 4.82l-1.28 3.03c-.17.4.24.79.63.59l9.47-4.83c.34-.17.55-.52.55-.9v-3.12c.73-.4 1.22-1.17 1.22-2.06 0-.87-.08-1.73-.18-2.5zm-3.66 5.95-5.19 2.65.76-1.8c.12-.29-.03-.62-.33-.72-2.1-.73-3.56-3.54-3.95-6.73l9.27 2c.04.38.07.76.07 1.15 0 .45-.36.81-.81.81h-2.79c-.35 0-.63.28-.63.63s.28.63.63.63h2.97V13z"/></svg>'},{key:"qqbot",name:"QQBot",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C7.58 2 4 5.27 4 9.31c0 2.3 1.15 4.34 2.95 5.68-.13.58-.48 1.62-1.26 2.53-.24.28-.05.72.32.73 1.72.05 3.02-.68 3.69-1.15.72.16 1.49.25 2.3.25 4.42 0 8-3.27 8-7.31S16.42 2 12 2zm-3.2 7.63c-.63 0-1.14-.55-1.14-1.23s.51-1.23 1.14-1.23 1.14.55 1.14 1.23-.51 1.23-1.14 1.23zm6.4 0c-.63 0-1.14-.55-1.14-1.23s.51-1.23 1.14-1.23 1.14.55 1.14 1.23-.51 1.23-1.14 1.23zM5.5 20.5a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 0 1H6a.5.5 0 0 1-.5-.5z"/></svg>'},{key:"weixin",name:"Weixin",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178A1.17 1.17 0 014.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178 1.17 1.17 0 01-1.162-1.178c0-.651.52-1.18 1.162-1.18zm3.68 4.025c-3.694 0-6.69 2.462-6.69 5.496 0 3.034 2.996 5.496 6.69 5.496.753 0 1.477-.1 2.158-.28a.66.66 0 01.548.074l1.46.854a.25.25 0 00.127.041.224.224 0 00.221-.225c0-.055-.022-.109-.037-.162l-.298-1.131a.453.453 0 01.163-.509C21.81 18.613 22.77 16.973 22.77 15.512c0-3.034-2.996-5.496-6.69-5.496h.198zm-2.454 3.347c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902zm4.912 0c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902z"/></svg>'},{key:"wecom",name:"WeCom",icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178A1.17 1.17 0 014.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178 1.17 1.17 0 01-1.162-1.178c0-.651.52-1.18 1.162-1.18zm3.68 4.025c-3.694 0-6.69 2.462-6.69 5.496 0 3.034 2.996 5.496 6.69 5.496.753 0 1.477-.1 2.158-.28a.66.66 0 01.548.074l1.46.854a.25.25 0 00.127.041.224.224 0 00.221-.225c0-.055-.022-.109-.037-.162l-.298-1.131a.453.453 0 01.163-.509C21.81 18.613 22.77 16.973 22.77 15.512c0-3.034-2.996-5.496-6.69-5.496h.198zm-2.454 3.347c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902zm4.912 0c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902z"/></svg>'}];return Ne(()=>se.map(i=>({key:i.key,config:v[i.key],credentials:B(i.key)})),i=>{for(const l of i)q[l.key]||(x[l.key]=H(l.config)),P[l.key]||(y[l.key]=H(l.credentials))},{deep:!0,immediate:!0}),(i,l)=>(g(),b("section",ve,[(g(),b(z,null,We(se,u=>n(Me,{key:u.key,name:u.name,icon:u.icon,"platform-key":u.key,exclusive:u.exclusive,config:e(v)[u.key],credentials:B(u.key)},{default:r(()=>[u.key==="telegram"?(g(),b(z,{key:0},[n(s,{label:e(a)("platform.botToken"),hint:e(a)("platform.botTokenHint")},{default:r(()=>[n(e(p),{value:d("telegram").token||"",loading:o("telegram"),clearable:"",size:"small",class:"input-lg",placeholder:"123456:ABC-DEF...","onUpdate:value":l[0]||(l[0]=t=>c("telegram",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.proxyUrl"),hint:e(a)("platform.proxyUrlHint")},{default:r(()=>[n(e(p),{value:d("telegram").proxy||"",loading:o("telegram"),clearable:"",size:"small",class:"input-lg",placeholder:"socks5://127.0.0.1:7890","onUpdate:value":l[1]||(l[1]=t=>c("telegram",{proxy:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("telegram").require_mention,loading:o("telegram"),"onUpdate:value":l[2]||(l[2]=t=>f("telegram",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.reactions"),hint:e(a)("platform.reactionsHint")},{default:r(()=>[n(e(h),{value:m("telegram").reactions,loading:o("telegram"),"onUpdate:value":l[3]||(l[3]=t=>f("telegram",{reactions:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("telegram").free_response_chats||"",loading:o("telegram"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[4]||(l[4]=t=>f("telegram",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.mentionPatterns"),hint:e(a)("platform.mentionPatternsHint")},{default:r(()=>[n(e(p),{value:(m("telegram").mention_patterns||[]).join(", "),loading:o("telegram"),size:"small",placeholder:"pattern1, pattern2","onUpdate:value":l[5]||(l[5]=t=>f("telegram",{mention_patterns:t?t.split(",").map(F=>F.trim()):[]}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="discord"?(g(),b(z,{key:1},[n(s,{label:e(a)("platform.botToken"),hint:e(a)("platform.botTokenHint")},{default:r(()=>[n(e(p),{value:d("discord").token||"",loading:o("discord"),clearable:"",size:"small",class:"input-lg",placeholder:"Bot token...","onUpdate:value":l[6]||(l[6]=t=>c("discord",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.proxyUrl"),hint:e(a)("platform.proxyUrlHint")},{default:r(()=>[n(e(p),{value:d("discord").proxy||"",loading:o("discord"),clearable:"",size:"small",class:"input-lg",placeholder:"socks5://127.0.0.1:7890","onUpdate:value":l[7]||(l[7]=t=>c("discord",{proxy:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionChannel")},{default:r(()=>[n(e(h),{value:m("discord").require_mention,loading:o("discord"),"onUpdate:value":l[8]||(l[8]=t=>f("discord",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.autoThread"),hint:e(a)("platform.autoThreadHint")},{default:r(()=>[n(e(h),{value:m("discord").auto_thread,loading:o("discord"),"onUpdate:value":l[9]||(l[9]=t=>f("discord",{auto_thread:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.reactions"),hint:e(a)("platform.reactionsHint")},{default:r(()=>[n(e(h),{value:m("discord").reactions,loading:o("discord"),"onUpdate:value":l[10]||(l[10]=t=>f("discord",{reactions:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChannels"),hint:e(a)("platform.freeResponseChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").free_response_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[11]||(l[11]=t=>f("discord",{free_response_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowedChannels"),hint:e(a)("platform.allowedChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").allowed_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[12]||(l[12]=t=>f("discord",{allowed_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.ignoredChannels"),hint:e(a)("platform.ignoredChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").ignored_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[13]||(l[13]=t=>f("discord",{ignored_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.noThreadChannels"),hint:e(a)("platform.noThreadChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").no_thread_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[14]||(l[14]=t=>f("discord",{no_thread_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="slack"?(g(),b(z,{key:2},[n(s,{label:e(a)("platform.botToken"),hint:e(a)("platform.botTokenHint")},{default:r(()=>[n(e(p),{value:d("slack").token||"",loading:o("slack"),clearable:"",size:"small",class:"input-lg",placeholder:"xoxb-...","onUpdate:value":l[15]||(l[15]=t=>c("slack",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionChannel")},{default:r(()=>[n(e(h),{value:m("slack").require_mention,loading:o("slack"),"onUpdate:value":l[16]||(l[16]=t=>f("slack",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowBots"),hint:e(a)("platform.allowBotsHint")},{default:r(()=>[n(e(h),{value:m("slack").allow_bots,loading:o("slack"),"onUpdate:value":l[17]||(l[17]=t=>f("slack",{allow_bots:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChannels"),hint:e(a)("platform.freeResponseChannelsHint")},{default:r(()=>[n(e(p),{value:m("slack").free_response_channels||"",loading:o("slack"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[18]||(l[18]=t=>f("slack",{free_response_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="whatsapp"?(g(),b(z,{key:3},[n(s,{label:e(a)("platform.waEnabled"),hint:e(a)("platform.waEnabledHint")},{default:r(()=>[n(e(h),{value:d("whatsapp").enabled,loading:o("whatsapp"),"onUpdate:value":l[19]||(l[19]=t=>c("whatsapp",{enabled:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("whatsapp").require_mention,loading:o("whatsapp"),"onUpdate:value":l[20]||(l[20]=t=>f("whatsapp",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("whatsapp").free_response_chats||"",loading:o("whatsapp"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[21]||(l[21]=t=>f("whatsapp",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.mentionPatterns"),hint:e(a)("platform.mentionPatternsHint")},{default:r(()=>[n(e(p),{value:(m("whatsapp").mention_patterns||[]).join(", "),loading:o("whatsapp"),size:"small",placeholder:"pattern1, pattern2","onUpdate:value":l[22]||(l[22]=t=>f("whatsapp",{mention_patterns:t?t.split(",").map(F=>F.trim()):[]}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="matrix"?(g(),b(z,{key:4},[n(s,{label:e(a)("platform.accessToken"),hint:e(a)("platform.accessTokenHint")},{default:r(()=>[n(e(p),{value:d("matrix").token||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"syt_...","onUpdate:value":l[23]||(l[23]=t=>c("matrix",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.matrixUserId"),hint:e(a)("platform.matrixUserIdHint")},{default:r(()=>[n(e(p),{value:d("matrix").extra?.user_id||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"@hermes:example.org","onUpdate:value":l[24]||(l[24]=t=>c("matrix",{extra:{...d("matrix").extra,user_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.matrixPassword"),hint:e(a)("platform.matrixPasswordHint")},{default:r(()=>[n(e(p),{value:d("matrix").extra?.password||"",loading:o("matrix"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"Matrix password","onUpdate:value":l[25]||(l[25]=t=>c("matrix",{extra:{...d("matrix").extra,password:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.homeserver"),hint:e(a)("platform.homeserverHint")},{default:r(()=>[n(e(p),{value:d("matrix").extra?.homeserver||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"https://matrix.org","onUpdate:value":l[26]||(l[26]=t=>c("matrix",{extra:{...d("matrix").extra,homeserver:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.proxyUrl"),hint:e(a)("platform.proxyUrlHint")},{default:r(()=>[n(e(p),{value:d("matrix").proxy||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"socks5://127.0.0.1:7890","onUpdate:value":l[27]||(l[27]=t=>c("matrix",{proxy:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionRoom")},{default:r(()=>[n(e(h),{value:m("matrix").require_mention,loading:o("matrix"),"onUpdate:value":l[28]||(l[28]=t=>f("matrix",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.autoThread"),hint:e(a)("platform.autoThreadHintRoom")},{default:r(()=>[n(e(h),{value:m("matrix").auto_thread,loading:o("matrix"),"onUpdate:value":l[29]||(l[29]=t=>f("matrix",{auto_thread:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.dmMentionThreads"),hint:e(a)("platform.dmMentionThreadsHint")},{default:r(()=>[n(e(h),{value:m("matrix").dm_mention_threads,loading:o("matrix"),"onUpdate:value":l[30]||(l[30]=t=>f("matrix",{dm_mention_threads:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseRooms"),hint:e(a)("platform.freeResponseRoomsHint")},{default:r(()=>[n(e(p),{value:m("matrix").free_response_rooms||"",loading:o("matrix"),size:"small",placeholder:"room_id1,room_id2","onUpdate:value":l[31]||(l[31]=t=>f("matrix",{free_response_rooms:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="feishu"?(g(),b(z,{key:5},[n(s,{label:e(a)("platform.appId"),hint:e(a)("platform.appIdHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.app_id||"",loading:o("feishu"),clearable:"",size:"small",class:"input-lg",placeholder:"cli_...","onUpdate:value":l[32]||(l[32]=t=>c("feishu",{extra:{...d("feishu").extra,app_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.appSecret"),hint:e(a)("platform.appSecretHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.app_secret||"",loading:o("feishu"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"App Secret","onUpdate:value":l[33]||(l[33]=t=>c("feishu",{extra:{...d("feishu").extra,app_secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.encryptKey"),hint:e(a)("platform.encryptKeyHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.encrypt_key||"",loading:o("feishu"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"Encrypt Key","onUpdate:value":l[34]||(l[34]=t=>c("feishu",{extra:{...d("feishu").extra,encrypt_key:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.verificationToken"),hint:e(a)("platform.verificationTokenHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.verification_token||"",loading:o("feishu"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"Verification Token","onUpdate:value":l[35]||(l[35]=t=>c("feishu",{extra:{...d("feishu").extra,verification_token:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("feishu").require_mention,loading:o("feishu"),"onUpdate:value":l[36]||(l[36]=t=>f("feishu",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("feishu").free_response_chats||"",loading:o("feishu"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[37]||(l[37]=t=>f("feishu",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="dingtalk"?(g(),b(z,{key:6},[n(s,{label:e(a)("platform.clientId"),hint:e(a)("platform.clientIdHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").extra?.client_id||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"Client ID","onUpdate:value":l[38]||(l[38]=t=>c("dingtalk",{extra:{...d("dingtalk").extra,client_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.clientSecret"),hint:e(a)("platform.clientSecretHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").extra?.client_secret||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"Client Secret","onUpdate:value":l[39]||(l[39]=t=>c("dingtalk",{extra:{...d("dingtalk").extra,client_secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.cardTemplateId"),hint:e(a)("platform.cardTemplateIdHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").extra?.card_template_id||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"AI Card Template ID","onUpdate:value":l[40]||(l[40]=t=>c("dingtalk",{extra:{...d("dingtalk").extra,card_template_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowAllUsers"),hint:e(a)("platform.allowAllUsersHint")},{default:r(()=>[n(e(h),{value:ie(d("dingtalk").allow_all_users),loading:o("dingtalk"),"onUpdate:value":l[41]||(l[41]=t=>c("dingtalk",{allow_all_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowedUsers"),hint:e(a)("platform.allowedUsersHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").allowed_users||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"user_id1,user_id2","onUpdate:value":l[42]||(l[42]=t=>c("dingtalk",{allowed_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("dingtalk").require_mention,loading:o("dingtalk"),"onUpdate:value":l[43]||(l[43]=t=>f("dingtalk",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("dingtalk").free_response_chats||"",loading:o("dingtalk"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[44]||(l[44]=t=>f("dingtalk",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="qqbot"?(g(),b(z,{key:7},[n(s,{label:e(a)("platform.qqAppId"),hint:e(a)("platform.qqAppIdHint")},{default:r(()=>[n(e(p),{value:d("qqbot").extra?.app_id||"",loading:o("qqbot"),clearable:"",size:"small",class:"input-lg",placeholder:"App ID","onUpdate:value":l[45]||(l[45]=t=>c("qqbot",{extra:{...d("qqbot").extra,app_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.qqAppSecret"),hint:e(a)("platform.qqAppSecretHint")},{default:r(()=>[n(e(p),{value:d("qqbot").extra?.client_secret||"",loading:o("qqbot"),clearable:"",size:"small",class:"input-lg",placeholder:"App Secret","onUpdate:value":l[46]||(l[46]=t=>c("qqbot",{extra:{...d("qqbot").extra,client_secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowedUsers"),hint:e(a)("platform.allowedUsersHint")},{default:r(()=>[n(e(p),{value:d("qqbot").allowed_users||"",loading:o("qqbot"),clearable:"",size:"small",class:"input-lg",placeholder:"openid1,openid2","onUpdate:value":l[47]||(l[47]=t=>c("qqbot",{allowed_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowAllUsers"),hint:e(a)("platform.allowAllUsersHint")},{default:r(()=>[n(e(h),{value:ie(d("qqbot").allow_all_users),loading:o("qqbot"),"onUpdate:value":l[48]||(l[48]=t=>c("qqbot",{allow_all_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.qqMarkdown"),hint:e(a)("platform.qqMarkdownHint")},{default:r(()=>[n(e(h),{value:m("qqbot").extra?.markdown_support??!0,loading:o("qqbot"),"onUpdate:value":l[49]||(l[49]=t=>f("qqbot",{extra:{...m("qqbot").extra,markdown_support:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="weixin"?(g(),b(z,{key:8},[U("div",ge,[w.value==="idle"||w.value==="error"||w.value==="expired"||w.value==="confirmed"?(g(),X(e(G),{key:0,type:"primary",size:"small",onClick:Ve},{default:r(()=>[V(M(w.value==="confirmed"?e(a)("platform.qrRelogin"):e(a)("platform.qrLogin")),1)]),_:1})):k("",!0),w.value==="loading"?(g(),b("div",_e,[n(e(ze),{size:"small"}),U("span",null,M(e(a)("platform.qrFetching")),1)])):k("",!0),w.value==="waiting"||w.value==="scaned"?(g(),b("div",he,M(w.value==="scaned"?e(a)("platform.qrScanedHint"):e(a)("platform.qrScanHint")),1)):k("",!0)]),n(s,{label:e(a)("platform.weixinToken"),hint:e(a)("platform.weixinTokenHint")},{default:r(()=>[n(e(p),{value:d("weixin").token||"",loading:o("weixin"),clearable:"",size:"small",class:"input-lg",placeholder:"Token","onUpdate:value":l[50]||(l[50]=t=>c("weixin",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.accountId"),hint:e(a)("platform.accountIdHint")},{default:r(()=>[n(e(p),{value:d("weixin").extra?.account_id||"",loading:o("weixin"),clearable:"",size:"small",class:"input-lg",placeholder:"Account ID","onUpdate:value":l[51]||(l[51]=t=>c("weixin",{extra:{...d("weixin").extra,account_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="wecom"?(g(),b(z,{key:9},[n(s,{label:e(a)("platform.botId"),hint:e(a)("platform.botIdHint")},{default:r(()=>[n(e(p),{value:d("wecom").extra?.bot_id||"",loading:o("wecom"),clearable:"",size:"small",class:"input-lg",placeholder:"Bot ID","onUpdate:value":l[52]||(l[52]=t=>c("wecom",{extra:{...d("wecom").extra,bot_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.appSecret"),hint:e(a)("platform.wecomSecretHint")},{default:r(()=>[n(e(p),{value:d("wecom").extra?.secret||"",loading:o("wecom"),clearable:"",size:"small",class:"input-lg",placeholder:"Secret","onUpdate:value":l[53]||(l[53]=t=>c("wecom",{extra:{...d("wecom").extra,secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),U("div",be,[n(e(G),{type:"error",quaternary:"",size:"small",loading:te(u.key),disabled:o(u.key)||te(u.key)||!ne(u.key),onClick:t=>Re(u.key,u.name)},{default:r(()=>[V(M(e(a)("platform.clearCredentials")),1)]),_:1},8,["loading","disabled","onClick"]),n(e(G),{type:"primary",size:"small",loading:o(u.key),disabled:!le(u.key),onClick:t=>Be(u.key)},{default:r(()=>[V(M(e(a)("common.save")),1)]),_:1},8,["loading","disabled","onClick"])])]),_:2},1032,["name","icon","platform-key","exclusive","config","credentials"])),64))]))}})})),ia=T((()=>{})),Ae,ra=T((()=>{xe(),xe(),ia(),J(),Ae=Z(Te,[["__scopeId","data-v-b49d50a2"]])})),ke,we,ye,Ce,Pe,qe=T((()=>{O(),K(),j(),He(),Je(),ra(),ke={class:"channels-view"},we={class:"page-header"},ye={class:"header-title"},Ce={class:"channels-content"},Pe=Q({__name:"ChannelsView",setup(I){const v=Ue(),_=Ee(),{t:A}=E();async function a(){(!_.activeProfileName||_.profiles.length===0)&&await _.fetchProfiles(),await v.fetchSettings()}return De(()=>{a()}),(C,S)=>(g(),b("div",ke,[U("header",we,[U("h2",ye,M(e(A)("sidebar.channels")),1)]),U("div",Ce,[n(e(ze),{show:e(v).loading||e(v).saving,size:"large",description:e(A)("common.loading")},{default:r(()=>[e(v).loading?k("",!0):(g(),X(Ae,{key:0}))]),_:1},8,["show","description"])])]))}})})),oa=T((()=>{})),sa,da=T((()=>{qe(),qe(),oa(),J(),sa=Z(Pe,[["__scopeId","data-v-2a2475d5"]])}));da();export{sa as default};
|
|
1
|
+
import{$i as r,$t as G,Bi as De,Di as Q,G as ze,Gi as Le,Hi as g,M as K,Nr as j,Pr as E,Sa as M,Ti as n,U as h,Vi as $e,Wi as We,Zi as Ne,_a as e,_i as U,bi as b,bt as Fe,ca as R,dn as Ge,gi as Qe,gt as Ke,ln as je,mi as z,n as J,si as O,sn as p,t as Z,ua as W,vi as X,wa as T,wi as V,ya as de,yi as k}from"./index-DN4SafrP.js";import{r as Ee,t as Je}from"./profiles-BK5JKD7h.js";import{c as Oe,d as Ze,l as Xe,n as Ue,p as Ye,r as ea,s as aa,t as He}from"./settings-roYY6G3W.js";import{n as la,t as s}from"./SettingRow-DHqhLX3M.js";var ue,pe,me,ce,Se,fe=T((()=>{O(),K(),j(),ue={class:"platform-info"},pe=["innerHTML"],me={class:"platform-name"},ce={key:0,class:"platform-card-body"},Se=Q({__name:"PlatformCard",props:{platformKey:{},name:{},icon:{},config:{},credentials:{},exclusive:{type:Boolean}},setup(I){const v=I,_=W(!0),{t:A}=E(),a=Qe(()=>{const C=v.credentials;if(!C)return!1;if(v.platformKey==="matrix"){const x=C.extra||{},y=String(x.homeserver||"").trim(),q=String(C.token||"").trim(),P=String(x.user_id||"").trim(),H=String(x.password||"").trim();return!!(y&&(q||P&&H))}const S=["token","api_key","app_id","client_id","secret","app_secret","client_secret","access_token","bot_id","account_id","enabled"];return[C,C.extra].filter(Boolean).some(x=>S.some(y=>{const q=x[y];return q!=null&&q!==""&&q!==!1}))});return(C,S)=>(g(),b("div",{class:de(["platform-card",{configured:a.value}])},[U("div",{class:"platform-card-header",onClick:S[0]||(S[0]=x=>_.value=!_.value)},[U("div",ue,[U("span",{class:"platform-icon",innerHTML:I.icon},null,8,pe),U("span",me,M(I.name),1),n(e(Ge),{type:a.value?"success":"default",size:"small",round:""},{default:r(()=>[V(M(a.value?e(A)("common.configured"):e(A)("common.notConfigured")),1)]),_:1},8,["type"])]),U("span",{class:de(["expand-icon",{expanded:_.value}])},"▾",2)]),_.value?(g(),b("div",ce,[I.exclusive?(g(),X(e(je),{key:0,type:"warning","show-icon":!0,class:"exclusive-alert"},{default:r(()=>[V(M(e(A)("platform.exclusiveTokenWarning")),1)]),_:1})):k("",!0),Le(C.$slots,"default",{},void 0,!0)])):k("",!0)],2))}})})),ta=T((()=>{})),Me,na=T((()=>{fe(),fe(),ta(),J(),Me=Z(Se,[["__scopeId","data-v-23f12852"]])})),ve,ge,_e,he,be,Te,xe=T((()=>{O(),K(),j(),He(),Oe(),na(),la(),ve={class:"settings-section"},ge={class:"weixin-qr-section"},_e={key:1,class:"weixin-qr-loading"},he={key:2,class:"weixin-qr-hint"},be={class:"platform-actions"},Te=Q({__name:"PlatformSettings",setup(I){const v=Ue(),_=Ke(),A=Fe(),{t:a}=E(),C=R({}),S=R({}),x=R({}),y=R({}),q=R({}),P=R({});function H(i){return JSON.parse(JSON.stringify(i||{}))}function N(i,l){for(const[u,t]of Object.entries(l))t&&typeof t=="object"&&!Array.isArray(t)?i[u]=N({...i[u]||{}},t):i[u]=t;return i}function m(i){return x[i]||(x[i]=H(v[i])),x[i]}function d(i){return y[i]||(y[i]=H(B(i))),y[i]}function f(i,l){x[i]=N({...m(i)},l),q[i]=!0}function c(i,l){y[i]=N({...d(i)},l),P[i]=!0}function Y(i,l){return JSON.stringify(i||{})===JSON.stringify(l||{})}function ee(i){return!!q[i]&&!!x[i]&&!Y(x[i],v[i])}function ae(i){return!!P[i]&&!!y[i]&&!Y(y[i],B(i))}function le(i){return ee(i)||ae(i)}function o(i){return!!C[i]}function te(i){return!!S[i]}function ne(i){return v.platformCredentialStatus[i]===!0}function Ie(i,l){return i==="gateway_restart_failed"?a("platform.clearCredentialsGatewayRestartFailed"):i==="gateway_restart_disabled"?a("platform.clearCredentialsGatewayRestartDisabled"):l}async function Be(i){C[i]=!0;try{const l=ee(i),u=ae(i);l&&await v.saveSection(i,m(i),{restart:!u}),u&&(await Ze(i,d(i)),await v.fetchSettings()),x[i]=H(v[i]),y[i]=H(B(i)),q[i]=!1,P[i]=!1,_.success(a("settings.saved"))}catch(l){_.error(l?.message||a("settings.saveFailed"))}finally{C[i]=!1}}async function Re(i,l){if(le(i)){_.warning(a("platform.clearCredentialsUnsaved"));return}ne(i)&&A.warning({title:a("platform.clearCredentials"),content:a("platform.clearCredentialsConfirm",{name:l}),positiveText:a("platform.clearCredentials"),negativeText:a("common.cancel"),onPositiveClick:async()=>{S[i]=!0;try{const u=await ea(i);await v.fetchSettings(),x[i]=H(v[i]),y[i]=H(B(i)),q[i]=!1,P[i]=!1,u.warning?_.warning(Ie(u.warning.code,u.warning.message)):_.success(a("platform.credentialsCleared"))}catch(u){_.error(u?.message||a("platform.clearCredentialsFailed"))}finally{S[i]=!1}}})}function B(i){return v.platforms[i]||{}}function ie(i){return i===!0||i==="true"}const re=W(""),D=W(""),w=W("idle");let L=null;async function Ve(){w.value="loading",re.value="",D.value="",oe();try{const i=await aa();D.value=i.qrcode,re.value=i.qrcode_url,window.open(i.qrcode_url,"_blank"),w.value="waiting",$()}catch(i){w.value="error",_.error(i.message||a("platform.qrFetching"))}}function $(){D.value&&(L=setTimeout(async()=>{try{const i=await Xe(D.value);i.status==="wait"?$():i.status==="scaned"?(w.value="scaned",$()):i.status==="expired"?w.value="expired":i.status==="confirmed"&&(w.value="confirmed",await Ye({account_id:i.account_id,token:i.token,base_url:i.base_url}),await v.fetchSettings(),_.success(a("settings.saved")))}catch{$()}},3e3))}function oe(){L&&(clearTimeout(L),L=null)}$e(()=>{oe()});const se=[{key:"telegram",name:"Telegram",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.479.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>'},{key:"discord",name:"Discord",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"/></svg>'},{key:"slack",name:"Slack",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 0a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V5.042zm-1.27 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.27a2.527 2.527 0 0 1 2.523-2.52h6.313A2.528 2.528 0 0 1 24 18.956a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/></svg>'},{key:"whatsapp",name:"WhatsApp",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>'},{key:"matrix",name:"Matrix",icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.48.324.448.217.786.619 1.017 1.205.24-.376.558-.702.956-.98.398-.277.872-.414 1.424-.414.41 0 .784.065 1.122.194.34.13.629.325.87.588.241.263.428.59.56.984.132.393.198.85.198 1.368v5.89h-2.49v-4.893c0-.268-.016-.525-.048-.77a1.627 1.627 0 00-.2-.63 1.028 1.028 0 00-.392-.426 1.294 1.294 0 00-.616-.134c-.277 0-.508.05-.693.15a1.043 1.043 0 00-.43.41 1.768 1.768 0 00-.214.616 4.15 4.15 0 00-.06.74v4.937H9.29v-4.937c0-.25-.01-.498-.032-.742a1.84 1.84 0 00-.166-.638.998.998 0 00-.363-.448 1.206 1.206 0 00-.624-.154c-.26 0-.483.048-.67.144a1.055 1.055 0 00-.436.402 1.744 1.744 0 00-.227.616 4.108 4.108 0 00-.063.74v4.937H5.21V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z"/></svg>'},{key:"feishu",name:"Feishu",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6.59 3.41a2.25 2.25 0 0 1 3.182 0L13.5 7.14l-3.182 3.182L6.59 7.59a2.25 2.25 0 0 1 0-3.182zm5.303 5.303L15.075 5.53a2.25 2.25 0 0 1 3.182 3.182L15.075 11.894 11.893 8.713zM3.41 6.59a2.25 2.25 0 0 1 3.182 0l3.182 3.182-3.182 3.182a2.25 2.25 0 0 1-3.182-3.182L3.41 6.59zm5.303 5.303L11.894 15.075a2.25 2.25 0 0 1-3.182 3.182L5.53 15.075 8.713 11.893zm5.303-5.303L17.478 9.778a2.25 2.25 0 0 1-3.182 3.182L10.53 10.075l3.182-3.182 0 .023z"/></svg>'},{key:"dingtalk",name:"DingTalk",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M19.76 7.05c-.23-.52-.7-.9-1.26-1.02L5.35 3.2c-.77-.16-1.51.38-1.58 1.16-.22 2.55.17 5.4 1.13 7.66.97 2.29 2.52 4.11 4.45 4.82l-1.28 3.03c-.17.4.24.79.63.59l9.47-4.83c.34-.17.55-.52.55-.9v-3.12c.73-.4 1.22-1.17 1.22-2.06 0-.87-.08-1.73-.18-2.5zm-3.66 5.95-5.19 2.65.76-1.8c.12-.29-.03-.62-.33-.72-2.1-.73-3.56-3.54-3.95-6.73l9.27 2c.04.38.07.76.07 1.15 0 .45-.36.81-.81.81h-2.79c-.35 0-.63.28-.63.63s.28.63.63.63h2.97V13z"/></svg>'},{key:"qqbot",name:"QQBot",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C7.58 2 4 5.27 4 9.31c0 2.3 1.15 4.34 2.95 5.68-.13.58-.48 1.62-1.26 2.53-.24.28-.05.72.32.73 1.72.05 3.02-.68 3.69-1.15.72.16 1.49.25 2.3.25 4.42 0 8-3.27 8-7.31S16.42 2 12 2zm-3.2 7.63c-.63 0-1.14-.55-1.14-1.23s.51-1.23 1.14-1.23 1.14.55 1.14 1.23-.51 1.23-1.14 1.23zm6.4 0c-.63 0-1.14-.55-1.14-1.23s.51-1.23 1.14-1.23 1.14.55 1.14 1.23-.51 1.23-1.14 1.23zM5.5 20.5a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 0 1H6a.5.5 0 0 1-.5-.5z"/></svg>'},{key:"weixin",name:"Weixin",exclusive:!0,icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178A1.17 1.17 0 014.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178 1.17 1.17 0 01-1.162-1.178c0-.651.52-1.18 1.162-1.18zm3.68 4.025c-3.694 0-6.69 2.462-6.69 5.496 0 3.034 2.996 5.496 6.69 5.496.753 0 1.477-.1 2.158-.28a.66.66 0 01.548.074l1.46.854a.25.25 0 00.127.041.224.224 0 00.221-.225c0-.055-.022-.109-.037-.162l-.298-1.131a.453.453 0 01.163-.509C21.81 18.613 22.77 16.973 22.77 15.512c0-3.034-2.996-5.496-6.69-5.496h.198zm-2.454 3.347c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902zm4.912 0c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902z"/></svg>'},{key:"wecom",name:"WeCom",icon:'<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178A1.17 1.17 0 014.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 01-1.162 1.178 1.17 1.17 0 01-1.162-1.178c0-.651.52-1.18 1.162-1.18zm3.68 4.025c-3.694 0-6.69 2.462-6.69 5.496 0 3.034 2.996 5.496 6.69 5.496.753 0 1.477-.1 2.158-.28a.66.66 0 01.548.074l1.46.854a.25.25 0 00.127.041.224.224 0 00.221-.225c0-.055-.022-.109-.037-.162l-.298-1.131a.453.453 0 01.163-.509C21.81 18.613 22.77 16.973 22.77 15.512c0-3.034-2.996-5.496-6.69-5.496h.198zm-2.454 3.347c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902zm4.912 0c.491 0 .889.404.889.902a.896.896 0 01-.889.903.896.896 0 01-.889-.903c0-.498.398-.902.889-.902z"/></svg>'}];return Ne(()=>se.map(i=>({key:i.key,config:v[i.key],credentials:B(i.key)})),i=>{for(const l of i)q[l.key]||(x[l.key]=H(l.config)),P[l.key]||(y[l.key]=H(l.credentials))},{deep:!0,immediate:!0}),(i,l)=>(g(),b("section",ve,[(g(),b(z,null,We(se,u=>n(Me,{key:u.key,name:u.name,icon:u.icon,"platform-key":u.key,exclusive:u.exclusive,config:e(v)[u.key],credentials:B(u.key)},{default:r(()=>[u.key==="telegram"?(g(),b(z,{key:0},[n(s,{label:e(a)("platform.botToken"),hint:e(a)("platform.botTokenHint")},{default:r(()=>[n(e(p),{value:d("telegram").token||"",loading:o("telegram"),clearable:"",size:"small",class:"input-lg",placeholder:"123456:ABC-DEF...","onUpdate:value":l[0]||(l[0]=t=>c("telegram",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.proxyUrl"),hint:e(a)("platform.proxyUrlHint")},{default:r(()=>[n(e(p),{value:d("telegram").proxy||"",loading:o("telegram"),clearable:"",size:"small",class:"input-lg",placeholder:"socks5://127.0.0.1:7890","onUpdate:value":l[1]||(l[1]=t=>c("telegram",{proxy:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("telegram").require_mention,loading:o("telegram"),"onUpdate:value":l[2]||(l[2]=t=>f("telegram",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.reactions"),hint:e(a)("platform.reactionsHint")},{default:r(()=>[n(e(h),{value:m("telegram").reactions,loading:o("telegram"),"onUpdate:value":l[3]||(l[3]=t=>f("telegram",{reactions:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("telegram").free_response_chats||"",loading:o("telegram"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[4]||(l[4]=t=>f("telegram",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.mentionPatterns"),hint:e(a)("platform.mentionPatternsHint")},{default:r(()=>[n(e(p),{value:(m("telegram").mention_patterns||[]).join(", "),loading:o("telegram"),size:"small",placeholder:"pattern1, pattern2","onUpdate:value":l[5]||(l[5]=t=>f("telegram",{mention_patterns:t?t.split(",").map(F=>F.trim()):[]}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="discord"?(g(),b(z,{key:1},[n(s,{label:e(a)("platform.botToken"),hint:e(a)("platform.botTokenHint")},{default:r(()=>[n(e(p),{value:d("discord").token||"",loading:o("discord"),clearable:"",size:"small",class:"input-lg",placeholder:"Bot token...","onUpdate:value":l[6]||(l[6]=t=>c("discord",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.proxyUrl"),hint:e(a)("platform.proxyUrlHint")},{default:r(()=>[n(e(p),{value:d("discord").proxy||"",loading:o("discord"),clearable:"",size:"small",class:"input-lg",placeholder:"socks5://127.0.0.1:7890","onUpdate:value":l[7]||(l[7]=t=>c("discord",{proxy:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionChannel")},{default:r(()=>[n(e(h),{value:m("discord").require_mention,loading:o("discord"),"onUpdate:value":l[8]||(l[8]=t=>f("discord",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.autoThread"),hint:e(a)("platform.autoThreadHint")},{default:r(()=>[n(e(h),{value:m("discord").auto_thread,loading:o("discord"),"onUpdate:value":l[9]||(l[9]=t=>f("discord",{auto_thread:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.reactions"),hint:e(a)("platform.reactionsHint")},{default:r(()=>[n(e(h),{value:m("discord").reactions,loading:o("discord"),"onUpdate:value":l[10]||(l[10]=t=>f("discord",{reactions:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChannels"),hint:e(a)("platform.freeResponseChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").free_response_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[11]||(l[11]=t=>f("discord",{free_response_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowedChannels"),hint:e(a)("platform.allowedChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").allowed_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[12]||(l[12]=t=>f("discord",{allowed_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.ignoredChannels"),hint:e(a)("platform.ignoredChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").ignored_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[13]||(l[13]=t=>f("discord",{ignored_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.noThreadChannels"),hint:e(a)("platform.noThreadChannelsHint")},{default:r(()=>[n(e(p),{value:m("discord").no_thread_channels||"",loading:o("discord"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[14]||(l[14]=t=>f("discord",{no_thread_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="slack"?(g(),b(z,{key:2},[n(s,{label:e(a)("platform.botToken"),hint:e(a)("platform.botTokenHint")},{default:r(()=>[n(e(p),{value:d("slack").token||"",loading:o("slack"),clearable:"",size:"small",class:"input-lg",placeholder:"xoxb-...","onUpdate:value":l[15]||(l[15]=t=>c("slack",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionChannel")},{default:r(()=>[n(e(h),{value:m("slack").require_mention,loading:o("slack"),"onUpdate:value":l[16]||(l[16]=t=>f("slack",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowBots"),hint:e(a)("platform.allowBotsHint")},{default:r(()=>[n(e(h),{value:m("slack").allow_bots,loading:o("slack"),"onUpdate:value":l[17]||(l[17]=t=>f("slack",{allow_bots:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChannels"),hint:e(a)("platform.freeResponseChannelsHint")},{default:r(()=>[n(e(p),{value:m("slack").free_response_channels||"",loading:o("slack"),size:"small",placeholder:"channel_id1,channel_id2","onUpdate:value":l[18]||(l[18]=t=>f("slack",{free_response_channels:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="whatsapp"?(g(),b(z,{key:3},[n(s,{label:e(a)("platform.waEnabled"),hint:e(a)("platform.waEnabledHint")},{default:r(()=>[n(e(h),{value:d("whatsapp").enabled,loading:o("whatsapp"),"onUpdate:value":l[19]||(l[19]=t=>c("whatsapp",{enabled:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("whatsapp").require_mention,loading:o("whatsapp"),"onUpdate:value":l[20]||(l[20]=t=>f("whatsapp",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("whatsapp").free_response_chats||"",loading:o("whatsapp"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[21]||(l[21]=t=>f("whatsapp",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.mentionPatterns"),hint:e(a)("platform.mentionPatternsHint")},{default:r(()=>[n(e(p),{value:(m("whatsapp").mention_patterns||[]).join(", "),loading:o("whatsapp"),size:"small",placeholder:"pattern1, pattern2","onUpdate:value":l[22]||(l[22]=t=>f("whatsapp",{mention_patterns:t?t.split(",").map(F=>F.trim()):[]}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="matrix"?(g(),b(z,{key:4},[n(s,{label:e(a)("platform.accessToken"),hint:e(a)("platform.accessTokenHint")},{default:r(()=>[n(e(p),{value:d("matrix").token||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"syt_...","onUpdate:value":l[23]||(l[23]=t=>c("matrix",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.matrixUserId"),hint:e(a)("platform.matrixUserIdHint")},{default:r(()=>[n(e(p),{value:d("matrix").extra?.user_id||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"@hermes:example.org","onUpdate:value":l[24]||(l[24]=t=>c("matrix",{extra:{...d("matrix").extra,user_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.matrixPassword"),hint:e(a)("platform.matrixPasswordHint")},{default:r(()=>[n(e(p),{value:d("matrix").extra?.password||"",loading:o("matrix"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"Matrix password","onUpdate:value":l[25]||(l[25]=t=>c("matrix",{extra:{...d("matrix").extra,password:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.homeserver"),hint:e(a)("platform.homeserverHint")},{default:r(()=>[n(e(p),{value:d("matrix").extra?.homeserver||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"https://matrix.org","onUpdate:value":l[26]||(l[26]=t=>c("matrix",{extra:{...d("matrix").extra,homeserver:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.proxyUrl"),hint:e(a)("platform.proxyUrlHint")},{default:r(()=>[n(e(p),{value:d("matrix").proxy||"",loading:o("matrix"),clearable:"",size:"small",class:"input-lg",placeholder:"socks5://127.0.0.1:7890","onUpdate:value":l[27]||(l[27]=t=>c("matrix",{proxy:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionRoom")},{default:r(()=>[n(e(h),{value:m("matrix").require_mention,loading:o("matrix"),"onUpdate:value":l[28]||(l[28]=t=>f("matrix",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.autoThread"),hint:e(a)("platform.autoThreadHintRoom")},{default:r(()=>[n(e(h),{value:m("matrix").auto_thread,loading:o("matrix"),"onUpdate:value":l[29]||(l[29]=t=>f("matrix",{auto_thread:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.dmMentionThreads"),hint:e(a)("platform.dmMentionThreadsHint")},{default:r(()=>[n(e(h),{value:m("matrix").dm_mention_threads,loading:o("matrix"),"onUpdate:value":l[30]||(l[30]=t=>f("matrix",{dm_mention_threads:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseRooms"),hint:e(a)("platform.freeResponseRoomsHint")},{default:r(()=>[n(e(p),{value:m("matrix").free_response_rooms||"",loading:o("matrix"),size:"small",placeholder:"room_id1,room_id2","onUpdate:value":l[31]||(l[31]=t=>f("matrix",{free_response_rooms:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="feishu"?(g(),b(z,{key:5},[n(s,{label:e(a)("platform.appId"),hint:e(a)("platform.appIdHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.app_id||"",loading:o("feishu"),clearable:"",size:"small",class:"input-lg",placeholder:"cli_...","onUpdate:value":l[32]||(l[32]=t=>c("feishu",{extra:{...d("feishu").extra,app_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.appSecret"),hint:e(a)("platform.appSecretHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.app_secret||"",loading:o("feishu"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"App Secret","onUpdate:value":l[33]||(l[33]=t=>c("feishu",{extra:{...d("feishu").extra,app_secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.encryptKey"),hint:e(a)("platform.encryptKeyHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.encrypt_key||"",loading:o("feishu"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"Encrypt Key","onUpdate:value":l[34]||(l[34]=t=>c("feishu",{extra:{...d("feishu").extra,encrypt_key:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.verificationToken"),hint:e(a)("platform.verificationTokenHint")},{default:r(()=>[n(e(p),{value:d("feishu").extra?.verification_token||"",loading:o("feishu"),type:"password","show-password-on":"click",clearable:"",size:"small",class:"input-lg",placeholder:"Verification Token","onUpdate:value":l[35]||(l[35]=t=>c("feishu",{extra:{...d("feishu").extra,verification_token:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("feishu").require_mention,loading:o("feishu"),"onUpdate:value":l[36]||(l[36]=t=>f("feishu",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("feishu").free_response_chats||"",loading:o("feishu"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[37]||(l[37]=t=>f("feishu",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="dingtalk"?(g(),b(z,{key:6},[n(s,{label:e(a)("platform.clientId"),hint:e(a)("platform.clientIdHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").extra?.client_id||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"Client ID","onUpdate:value":l[38]||(l[38]=t=>c("dingtalk",{extra:{...d("dingtalk").extra,client_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.clientSecret"),hint:e(a)("platform.clientSecretHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").extra?.client_secret||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"Client Secret","onUpdate:value":l[39]||(l[39]=t=>c("dingtalk",{extra:{...d("dingtalk").extra,client_secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.cardTemplateId"),hint:e(a)("platform.cardTemplateIdHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").extra?.card_template_id||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"AI Card Template ID","onUpdate:value":l[40]||(l[40]=t=>c("dingtalk",{extra:{...d("dingtalk").extra,card_template_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowAllUsers"),hint:e(a)("platform.allowAllUsersHint")},{default:r(()=>[n(e(h),{value:ie(d("dingtalk").allow_all_users),loading:o("dingtalk"),"onUpdate:value":l[41]||(l[41]=t=>c("dingtalk",{allow_all_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowedUsers"),hint:e(a)("platform.allowedUsersHint")},{default:r(()=>[n(e(p),{value:d("dingtalk").allowed_users||"",loading:o("dingtalk"),clearable:"",size:"small",class:"input-lg",placeholder:"user_id1,user_id2","onUpdate:value":l[42]||(l[42]=t=>c("dingtalk",{allowed_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.requireMention"),hint:e(a)("platform.requireMentionGroup")},{default:r(()=>[n(e(h),{value:m("dingtalk").require_mention,loading:o("dingtalk"),"onUpdate:value":l[43]||(l[43]=t=>f("dingtalk",{require_mention:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.freeResponseChats"),hint:e(a)("platform.freeResponseChatsHint")},{default:r(()=>[n(e(p),{value:m("dingtalk").free_response_chats||"",loading:o("dingtalk"),size:"small",placeholder:"chat_id1,chat_id2","onUpdate:value":l[44]||(l[44]=t=>f("dingtalk",{free_response_chats:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="qqbot"?(g(),b(z,{key:7},[n(s,{label:e(a)("platform.qqAppId"),hint:e(a)("platform.qqAppIdHint")},{default:r(()=>[n(e(p),{value:d("qqbot").extra?.app_id||"",loading:o("qqbot"),clearable:"",size:"small",class:"input-lg",placeholder:"App ID","onUpdate:value":l[45]||(l[45]=t=>c("qqbot",{extra:{...d("qqbot").extra,app_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.qqAppSecret"),hint:e(a)("platform.qqAppSecretHint")},{default:r(()=>[n(e(p),{value:d("qqbot").extra?.client_secret||"",loading:o("qqbot"),clearable:"",size:"small",class:"input-lg",placeholder:"App Secret","onUpdate:value":l[46]||(l[46]=t=>c("qqbot",{extra:{...d("qqbot").extra,client_secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowedUsers"),hint:e(a)("platform.allowedUsersHint")},{default:r(()=>[n(e(p),{value:d("qqbot").allowed_users||"",loading:o("qqbot"),clearable:"",size:"small",class:"input-lg",placeholder:"openid1,openid2","onUpdate:value":l[47]||(l[47]=t=>c("qqbot",{allowed_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.allowAllUsers"),hint:e(a)("platform.allowAllUsersHint")},{default:r(()=>[n(e(h),{value:ie(d("qqbot").allow_all_users),loading:o("qqbot"),"onUpdate:value":l[48]||(l[48]=t=>c("qqbot",{allow_all_users:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.qqMarkdown"),hint:e(a)("platform.qqMarkdownHint")},{default:r(()=>[n(e(h),{value:m("qqbot").extra?.markdown_support??!0,loading:o("qqbot"),"onUpdate:value":l[49]||(l[49]=t=>f("qqbot",{extra:{...m("qqbot").extra,markdown_support:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="weixin"?(g(),b(z,{key:8},[U("div",ge,[w.value==="idle"||w.value==="error"||w.value==="expired"||w.value==="confirmed"?(g(),X(e(G),{key:0,type:"primary",size:"small",onClick:Ve},{default:r(()=>[V(M(w.value==="confirmed"?e(a)("platform.qrRelogin"):e(a)("platform.qrLogin")),1)]),_:1})):k("",!0),w.value==="loading"?(g(),b("div",_e,[n(e(ze),{size:"small"}),U("span",null,M(e(a)("platform.qrFetching")),1)])):k("",!0),w.value==="waiting"||w.value==="scaned"?(g(),b("div",he,M(w.value==="scaned"?e(a)("platform.qrScanedHint"):e(a)("platform.qrScanHint")),1)):k("",!0)]),n(s,{label:e(a)("platform.weixinToken"),hint:e(a)("platform.weixinTokenHint")},{default:r(()=>[n(e(p),{value:d("weixin").token||"",loading:o("weixin"),clearable:"",size:"small",class:"input-lg",placeholder:"Token","onUpdate:value":l[50]||(l[50]=t=>c("weixin",{token:t}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.accountId"),hint:e(a)("platform.accountIdHint")},{default:r(()=>[n(e(p),{value:d("weixin").extra?.account_id||"",loading:o("weixin"),clearable:"",size:"small",class:"input-lg",placeholder:"Account ID","onUpdate:value":l[51]||(l[51]=t=>c("weixin",{extra:{...d("weixin").extra,account_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),u.key==="wecom"?(g(),b(z,{key:9},[n(s,{label:e(a)("platform.botId"),hint:e(a)("platform.botIdHint")},{default:r(()=>[n(e(p),{value:d("wecom").extra?.bot_id||"",loading:o("wecom"),clearable:"",size:"small",class:"input-lg",placeholder:"Bot ID","onUpdate:value":l[52]||(l[52]=t=>c("wecom",{extra:{...d("wecom").extra,bot_id:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"]),n(s,{label:e(a)("platform.appSecret"),hint:e(a)("platform.wecomSecretHint")},{default:r(()=>[n(e(p),{value:d("wecom").extra?.secret||"",loading:o("wecom"),clearable:"",size:"small",class:"input-lg",placeholder:"Secret","onUpdate:value":l[53]||(l[53]=t=>c("wecom",{extra:{...d("wecom").extra,secret:t}}))},null,8,["value","loading"])]),_:1},8,["label","hint"])],64)):k("",!0),U("div",be,[n(e(G),{type:"error",quaternary:"",size:"small",loading:te(u.key),disabled:o(u.key)||te(u.key)||!ne(u.key),onClick:t=>Re(u.key,u.name)},{default:r(()=>[V(M(e(a)("platform.clearCredentials")),1)]),_:1},8,["loading","disabled","onClick"]),n(e(G),{type:"primary",size:"small",loading:o(u.key),disabled:!le(u.key),onClick:t=>Be(u.key)},{default:r(()=>[V(M(e(a)("common.save")),1)]),_:1},8,["loading","disabled","onClick"])])]),_:2},1032,["name","icon","platform-key","exclusive","config","credentials"])),64))]))}})})),ia=T((()=>{})),Ae,ra=T((()=>{xe(),xe(),ia(),J(),Ae=Z(Te,[["__scopeId","data-v-b49d50a2"]])})),ke,we,ye,Ce,Pe,qe=T((()=>{O(),K(),j(),He(),Je(),ra(),ke={class:"channels-view"},we={class:"page-header"},ye={class:"header-title"},Ce={class:"channels-content"},Pe=Q({__name:"ChannelsView",setup(I){const v=Ue(),_=Ee(),{t:A}=E();async function a(){(!_.activeProfileName||_.profiles.length===0)&&await _.fetchProfiles(),await v.fetchSettings()}return De(()=>{a()}),(C,S)=>(g(),b("div",ke,[U("header",we,[U("h2",ye,M(e(A)("sidebar.channels")),1)]),U("div",Ce,[n(e(ze),{show:e(v).loading||e(v).saving,size:"large",description:e(A)("common.loading")},{default:r(()=>[e(v).loading?k("",!0):(g(),X(Ae,{key:0}))]),_:1},8,["show","description"])])]))}})})),oa=T((()=>{})),sa,da=T((()=>{qe(),qe(),oa(),J(),sa=Z(Pe,[["__scopeId","data-v-2a2475d5"]])}));da();export{sa as default};
|