@myagentroam/server 0.13.15 → 0.13.17
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/quick-start/application.js +13 -5
- package/dist/quick-start/node-runtime.js +34 -0
- package/node_modules/@myagentroam/protocol/package.json +1 -1
- package/node_modules/@myagentroam/server-core/dist/marctl-user-credentials.d.ts +1 -0
- package/node_modules/@myagentroam/server-core/dist/run-control-routes.d.ts +2 -1
- package/node_modules/@myagentroam/server-core/dist/session-input-service.d.ts +2 -1
- package/node_modules/@myagentroam/server-core/dist/session-input-service.js +2 -1
- package/node_modules/@myagentroam/server-core/dist/session-run-routes.d.ts +2 -1
- package/node_modules/@myagentroam/server-core/dist/terminal-routes.d.ts +2 -1
- package/node_modules/@myagentroam/server-core/dist/terminal-routes.js +2 -1
- package/node_modules/@myagentroam/server-core/package.json +2 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-application.d.ts +2 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-application.js +10 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/route/node-routes.d.ts +2 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/route/node-routes.js +4 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/route/remote-desktop-discovery-route.js +6 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/mar-agent-model-service.d.ts +1 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/mar-agent-model-service.js +14 -13
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +6 -6
- package/web/assets/AuditManagementPage-CCT1TwDi.css +1 -0
- package/web/assets/AuditManagementPage-DcMACR_Z.js +1 -0
- package/web/assets/BusyIndicator-CwUqt2ZM.js +1 -0
- package/web/assets/{CodeFileEditor-DhYrYu9G.js → CodeFileEditor-B8Dd9aFI.js} +3 -3
- package/web/assets/{ConversationTemplateManagementPage-CkYbUgT1.js → ConversationTemplateManagementPage-0gC6igc2.js} +1 -1
- package/web/assets/ConversationTemplateManagementPage-BtKbvgPg.js +1 -0
- package/web/assets/ConversationTemplateManagementPage-D9ensD8p.css +1 -0
- package/web/assets/EnterpriseUserManagementPage-BDzsezc7.js +1 -0
- package/web/assets/EnterpriseUserManagementPage-Dy-PXUlJ.css +1 -0
- package/web/assets/EnvironmentSecretManager-BG0S-pOr.js +1 -0
- package/web/assets/EnvironmentSecretManager-Kb1U76T9.css +1 -0
- package/web/assets/{FilePreviewLoading-CplWlL4S.js → FilePreviewLoading-CpCC6tJs.js} +2 -2
- package/web/assets/{FilePreviewLoading-BFt-X_61.css → FilePreviewLoading-Cxn0bDjD.css} +1 -1
- package/web/assets/HtmlPreviewFrame-8NeV4D4Z.js +6 -0
- package/web/assets/HtmlPreviewFrame-BQYCrD_N.css +1 -0
- package/web/assets/LicenseManagementPage-DCfUEevh.js +1 -0
- package/web/assets/LicenseManagementPage-DP68cGE8.css +1 -0
- package/web/assets/{ManagementPagination-BWt9HPYQ.css → ManagementPagination-COZoRoYW.css} +1 -1
- package/web/assets/{ManagementPagination-DxTGOxsB.js → ManagementPagination-D8RLG1nf.js} +1 -1
- package/web/assets/MarAgentModelManagementPage-DOfx5Yxv.css +1 -0
- package/web/assets/{MarAgentModelManagementPage-zRxRHCeX.js → MarAgentModelManagementPage-JP3ZeUH5.js} +1 -1
- package/web/assets/MarAgentModelManagementPage-NqnYW_k0.js +1 -0
- package/web/assets/{MarIcon-BJtUW72T.js → MarIcon-D_TD9Vvv.js} +1 -1
- package/web/assets/{MarkdownFilePreview-B2SY1aQW.js → MarkdownFilePreview-B4M2Tm3P.js} +2 -2
- package/web/assets/{McpDetailsDialog-DO5svj2W.js → McpDetailsDialog-BygH0Lnc.js} +1 -1
- package/web/assets/McpSourceManagementPage-5F60rc79.js +1 -0
- package/web/assets/{McpSourceManagementPage-Dt1IRETL.js → McpSourceManagementPage-BmRrdyCi.js} +1 -1
- package/web/assets/McpSourceManagementPage-kctug-Vc.css +1 -0
- package/web/assets/{NodeDetailsDialogs-kFqO1h29.css → NodeDetailsDialogs-m9VTD5fZ.css} +1 -1
- package/web/assets/{NodeDetailsDialogs-B0ROHs0c.js → NodeDetailsDialogs-wQ6FDWCV.js} +2 -2
- package/web/assets/NodeManagementPage-D_dUDK2n.js +1 -0
- package/web/assets/NodeManagementPage-fTQ4EqAX.js +1 -0
- package/web/assets/OAuthManagementPage-CDXPJQd-.js +2 -0
- package/web/assets/OAuthManagementPage-CYlRPS6i.css +1 -0
- package/web/assets/OrganizationManagementPage-C4v6OZS-.css +1 -0
- package/web/assets/OrganizationManagementPage-DF_Yk2Vq.js +1 -0
- package/web/assets/RemoteDesktopPage-CBJ5tTYz.css +1 -0
- package/web/assets/RemoteDesktopPage-CLMIBPBw.js +5 -0
- package/web/assets/ResourceManagementPanel-B4eYC-a7.css +1 -0
- package/web/assets/ResourceManagementPanel-DqwHAt6D.js +2 -0
- package/web/assets/ResourceManagementPanel-pOHW0iLl.css +1 -0
- package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-BNNYGM2e.js +1 -0
- package/web/assets/SecretManagementPage-CRPCqBbs.js +1 -0
- package/web/assets/{SecretManagementPage-ClvsNZ1O.js → SecretManagementPage-D5PX7SgZ.js} +1 -1
- package/web/assets/SecretManagementPage.vue_vue_type_script_setup_true_lang-BG3JrBGh.js +1 -0
- package/web/assets/{SessionSharePage-D-he5uXK.js → SessionSharePage-DpEEyhU3.js} +2 -2
- package/web/assets/SessionSharePage-rAKTzF4n.css +1 -0
- package/web/assets/SettingsContent-B98WZKeX.css +1 -0
- package/web/assets/SettingsContent-BHXF6A3k.js +1 -0
- package/web/assets/SettingsContent-BqFHMWhn.css +1 -0
- package/web/assets/SettingsContent-DkV6hv8S.js +1 -0
- package/web/assets/SkillCenterPage-BQ29uLem.js +1 -0
- package/web/assets/{SkillCenterPage-D9xPQveQ.js → SkillCenterPage-CSosMy6N.js} +1 -1
- package/web/assets/{SkillDetailsDialog-DsxwEkoS.js → SkillDetailsDialog-DEa67w3D.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-CmY8j-dx.js → SkillSourceManagementPage-COtemEgp.js} +1 -1
- package/web/assets/SkillSourceManagementPage-Citxyqsv.js +1 -0
- package/web/assets/SkillSourceManagementPage-bes89wDU.css +1 -0
- package/web/assets/{StandaloneFilePreviewPage-B9hh4ORx.js → StandaloneFilePreviewPage-89jXFRFj.js} +1 -1
- package/web/assets/SystemConfigurationPage-BCB__CRv.js +1 -0
- package/web/assets/SystemConfigurationPage-BmKMkORW.js +1 -0
- package/web/assets/{SystemConfigurationPage-BtwS22rv.css → SystemConfigurationPage-D0WcOARs.css} +1 -1
- package/web/assets/{SystemInformationPage-36jZq1rp.js → SystemInformationPage-Dp-1hXGy.js} +1 -1
- package/web/assets/{TerminalTabView-C4wXdtZy.js → TerminalTabView-bBiBC5z4.js} +1 -1
- package/web/assets/{WorkbenchPage-CnV3Y0E-.js → WorkbenchPage-BCCeoeh-.js} +7 -7
- package/web/assets/WorkbenchPage-BF-eO2Bt.css +1 -0
- package/web/assets/WorkspaceManagementPage-BCCwssJ4.js +1 -0
- package/web/assets/WorkspaceManagementPage-D1cfkgDt.js +1 -0
- package/web/assets/{_baseIteratee-BWEo081-.js → _baseIteratee-B9BBcDq5.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-JBumNgKY.js → abnfDiagram-VCTEODGH-B-jPRhej.js} +1 -1
- package/web/assets/{advancedFormat-DAdanKjg.js → advancedFormat-CbLs2m7-.js} +1 -1
- package/web/assets/{arc-BpvGygpi.js → arc-btIRoF4h.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-DtP0ojgr.js → architectureDiagram-5GKGNRK7-DK0gRBum.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-BGpXmQew.js → blockDiagram-OSKFZWR5-00KVU9j1.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-CcYk64Os.js → c4Diagram-7LVT6UL2-BYgaVDjL.js} +1 -1
- package/web/assets/{catalog-ownership-service-BV8E-_tp.js → catalog-ownership-service-k10sb1J_.js} +1 -1
- package/web/assets/{catalog-page-service-TdH51Dah.js → catalog-page-service-E0QqBiJn.js} +1 -1
- package/web/assets/channel-I05xOeB8.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-DVphzj8k.js → chunk-2Q5K7J3B-C6pCAlK7.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-DmFFDgDv.js → chunk-5VM5RSS4-Bl1i4GU9.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DMz2e1kV.js → chunk-F27PBJKO-CI1NJ1P4.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-BBAk78Ah.js → chunk-HLEWEB6X-SHOVJP7h.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-z6UbHN3G.js → chunk-JWPE2WC7-BnvzL4pt.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-C0GV9iSp.js → chunk-POPQ4Y6H-C7jY3-FJ.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-BZlkN3NQ.js → chunk-SVP7TREG-CqBusxLf.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-CUZFPssQ.js → chunk-XXDRQBXY-BXmyVbhP.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-C748sAfa.js → chunk-ZLD2IHE6-B0u38WqB.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-DwZtOTh5.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-DwZtOTh5.js +1 -0
- package/web/assets/{conversation-history-UrDOgBLc.js → conversation-history-Cayr0MFe.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-Fl4jFsWj.js → cose-bilkent-JH36ORCC-C4X-qkDF.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-tHDLM3D6.js → cynefin-OW5HDTMX-oX7-cPnT.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-Du28oH96.js → cynefinDiagram-5FMLGOSQ-DX5jPMDI.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-DN_W9ALZ.js → dagre-OS7QT2EB-DVtcivBX.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-DT99CHR5.js → diagram-S7CK7UJ4-CIfz8Rne.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-BeOyDvId.js → diagram-UQ7AKVKN-C7Stt5AH.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-B0wWlaHq.js → diagram-VSXAHHWV-BbnBQvSq.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-B0djjfbq.js → diagram-VX7I27RA-DSq6UDNg.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-siqT9AB2.js → diagram-Z3DM3KII-qpEiwQsU.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-CBcWPDDc.js → ebnfDiagram-PWID7BFC-CpA-QeC5.js} +1 -1
- package/web/assets/{el-alert-Cn0AWnUd.js → el-alert-B2wbIWBu.js} +1 -1
- package/web/assets/{el-cascader-Bq9gdq84.js → el-cascader-kz2psvnJ.js} +1 -1
- package/web/assets/{el-checkbox-CRRoWixG.js → el-checkbox-AUzJR-y2.js} +1 -1
- package/web/assets/{el-date-picker-PbEwM38q.js → el-date-picker-BChxItZl.js} +1 -1
- package/web/assets/{el-descriptions-BF9KG5zJ.js → el-descriptions-5vvOl2ah.js} +1 -1
- package/web/assets/{el-form-item-USuILRLw.js → el-form-item-BOmb8aXD.js} +1 -1
- package/web/assets/{el-input-D9BwkQsR.js → el-input-B1RdZbJQ.js} +1 -1
- package/web/assets/{el-input-number-35uaUE0c.js → el-input-number-CDZDkRtY.js} +1 -1
- package/web/assets/{el-radio-BsJXpUlu.js → el-radio-Bu-4wDbV.js} +1 -1
- package/web/assets/{el-scrollbar-CFgE8hiz.js → el-scrollbar-CeOZtG0w.js} +1 -1
- package/web/assets/{el-select-SRr6i6V-.js → el-select-Bo6IO0_h.js} +1 -1
- package/web/assets/{el-switch-0rpdXBjA.js → el-switch-CsqpF718.js} +1 -1
- package/web/assets/{el-tab-pane-B4j6ZEfi.js → el-tab-pane-BDeBfb6H.js} +1 -1
- package/web/assets/{el-table-column-BnSot1-z.js → el-table-column-DpWFB4w9.js} +1 -1
- package/web/assets/{enterprise-management-service-CT0d7tNp.js → enterprise-management-service-BZm3jLDS.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-dhXDxU-z.js → erDiagram-2YWLMYGG-CTHK1pe_.js} +1 -1
- package/web/assets/{error-presentation-DmX7H6jr.js → error-presentation-VXbGfXNh.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-CtwUFguL.js → flowDiagram-T62WH6J4-0FSiE6dH.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-DSSwmawq.js → ganttDiagram-EL5Y4UJY-Bmo-PRWI.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-Cr9DptGz.js → gitGraphDiagram-WWUBYQGX-CWJhdh2i.js} +1 -1
- package/web/assets/{hosted-conversation-template-client-Dlt5t8j-.js → hosted-conversation-template-client-Bl0zkMfl.js} +1 -1
- package/web/assets/{index-BWIlWKS5.js → index-B17Ch5rp.js} +20 -20
- package/web/assets/{index-DuQpefnv.js → index-B5vOFmrp.js} +1 -1
- package/web/assets/{index-Bi0HKaxe.js → index-BlqDd_2L.js} +1 -1
- package/web/assets/{index-CI4ZU86F.js → index-BrJKkPRm.js} +1 -1
- package/web/assets/index-ByagxFuW.css +1 -0
- package/web/assets/{index-DNLsz4m5.js → index-C0EbAenW.js} +1 -1
- package/web/assets/{index-CiHIRtO6.js → index-C0IPYzAA.js} +1 -1
- package/web/assets/{index-mkH7g7u-.js → index-C0ZcBJ1x.js} +1 -1
- package/web/assets/{index-CefpV8fz.js → index-C5gHbSNX.js} +1 -1
- package/web/assets/{index-BHI3_hVq.js → index-C5ySDdLv.js} +1 -1
- package/web/assets/{index-DH-REFme.js → index-C9DmNxdA.js} +1 -1
- package/web/assets/{index-DkG4qHEM.js → index-CBbcMTUE.js} +1 -1
- package/web/assets/{index-CPYfyxCK.js → index-CW5XYX5f.js} +1 -1
- package/web/assets/{index-Dv0gH_QQ.js → index-CZOO5D0X.js} +1 -1
- package/web/assets/{index-DX34DWzz.js → index-Cf0iJXoo.js} +1 -1
- package/web/assets/{index-C3y1zIat.js → index-CfL8EWUl.js} +1 -1
- package/web/assets/{index-C2SvSE7o.js → index-Cfj0V7hz.js} +7 -7
- package/web/assets/{index-BzsddD91.js → index-ClvOul2s.js} +1 -1
- package/web/assets/{index-DK80c6gZ.js → index-CmoWsN11.js} +1 -1
- package/web/assets/{index-C9hkaUoa.js → index-CoFa9OqO.js} +1 -1
- package/web/assets/{index-DQzJ8Rg1.js → index-D1rDPGEr.js} +1 -1
- package/web/assets/{index-DBQDK6L2.js → index-DGHNJYLy.js} +1 -1
- package/web/assets/{index-ByGQ9ou6.js → index-DPtybmBV.js} +1 -1
- package/web/assets/{index-DkGRTWoh.js → index-DTM8ZOaX.js} +1 -1
- package/web/assets/{index-D56cRYg-.js → index-DwR_iI0g.js} +1 -1
- package/web/assets/{index-phg5ieuk.js → index-QMXvbcwT.js} +1 -1
- package/web/assets/{index-B1NdLK2f.js → index-UM0IPa_5.js} +1 -1
- package/web/assets/{index-M1qq5DWZ.js → index-dP-FQoRl.js} +1 -1
- package/web/assets/{index-DT659Mic.js → index-egzaF8Es.js} +1 -1
- package/web/assets/{index-UazQPYxZ.js → index-ySFMOeJ-.js} +1 -1
- package/web/assets/infoDiagram-FKFFQAWI-CD50tjKw.js +2 -0
- package/web/assets/{isArrayLikeObject-m8OxXoHc.js → isArrayLikeObject-FHw_1GeG.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-CP9KNF0Z.js → ishikawaDiagram-5VMMS53U-D5CXsOKl.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-DwldAGwA.js → journeyDiagram-EYS64GPL-BzO3bfgP.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-CoHsm4u7.js → kanban-definition-UXKFOSKX-Bn7ZCPSq.js} +1 -1
- package/web/assets/{layout-DIrhs5HU.js → layout-BHO91o8Z.js} +1 -1
- package/web/assets/{linear-CaJyRbe-.js → linear-DrEiEXwm.js} +1 -1
- package/web/assets/{management-url-service-WMdB2srg.js → management-url-service-D0Pd2Asc.js} +1 -1
- package/web/assets/{mcp-center-service-BBgPpeyn.js → mcp-center-service-gmJEe7J4.js} +1 -1
- package/web/assets/{merge-DgRJxBw2.js → merge-BQV4utEa.js} +1 -1
- package/web/assets/{mermaid.core-B8MKsxJ2.js → mermaid.core-BmUIpx-h.js} +5 -5
- package/web/assets/{message-box-service-BbNoH9tP.js → message-box-service-DBt9ZIgi.js} +1 -1
- package/web/assets/{mindmap-definition-THT77NOG-D6U6VxjL.js → mindmap-definition-THT77NOG-D14_2O1i.js} +1 -1
- package/web/assets/{mobile-dialog-return-service-CqaFAsb3.js → mobile-dialog-return-service-B1HsmHQ5.js} +1 -1
- package/web/assets/{oauth-callback-xAJGqjYm.js → oauth-callback-BfRM_5Tj.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-CNgmFnUn.js → pegDiagram-XKGWAZYB-J9FnfCNA.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-C3aIJTCj.js → pieDiagram-E7YTZNPT-BmNN2U6I.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-BBQF-N2m.js → quadrantDiagram-AXDQQJYC-xGvNtMqf.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-DEvqRu0x.js → railroadDiagram-O6MQD6OU-mDmWjS4j.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-BI1pYFEF.js → requirementDiagram-IS5BZ75X-D7-2e-DE.js} +1 -1
- package/web/assets/{runner-presentation-CkBoRfV1.js → runner-presentation-DowjpkVy.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-Bljw2x_H.js → sankeyDiagram-P5KCCOFB-HAQUzZOU.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Cd6XSR8x.js → sequenceDiagram-WJ2MYXX4-CCcSUK4f.js} +1 -1
- package/web/assets/{session-share-client-service-BmI2q7aD.js → session-share-client-service-ur9FAVao.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-KryiXxCY.js → sizeCapture-INFHLROL-CYaeb0Ed.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-CYzInMfa.js → stateDiagram-XQSTLZYL-B1WSbP6b.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-Cyls4a-L.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-CX0Df3_e.js → swimlanes-V6O3JKXN-C-TdlqaD.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-DkB3J6Tb.js +8 -0
- package/web/assets/{time-presentation-Bnb6ZzAp.js → time-presentation-DpVyhRR8.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-CYmQGDYF.js → timeline-definition-24CTP7MA-2vCI_Vj1.js} +1 -1
- package/web/assets/{union-CzXz5ZcF.js → union-B5YA6cl-.js} +1 -1
- package/web/assets/{use-form-common-props-BpO5s-Fn.js → use-form-common-props-CaA4hjwQ.js} +1 -1
- package/web/assets/{use-wheel-B3YUZzO5.js → use-wheel-Cz1gO4jm.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-DRgluvuA.js → vennDiagram-4TSXK5OY-4ZRgkj89.js} +1 -1
- package/web/assets/{vnode-D6yqEI54.js → vnode-B728-a5V.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-C3Ft4RL6.js → wardleyDiagram-VM6X3IG4-Dob4RsZH.js} +1 -1
- package/web/assets/{workbench-composer-interaction-controller-V7LDts8s.js → workbench-composer-interaction-controller-B9St9OnG.js} +12 -12
- package/web/assets/workbench-composer-interaction-controller-Dkm4GTkB.css +1 -0
- package/web/assets/{workbench-live-service-DTvo8iBf.js → workbench-live-service-Cjt7NIMd.js} +1 -1
- package/web/assets/{workbench-presentation-yiYAJYEW.js → workbench-presentation-BOnQ5ww6.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-0QGI8uDe.js → xychartDiagram-S5SC5T6Z-CziooMD7.js} +1 -1
- package/web/docs/404.html +2 -2
- package/web/docs/administration/account.html +3 -3
- package/web/docs/administration/audit.html +3 -3
- package/web/docs/administration/conversation-templates.html +3 -3
- package/web/docs/administration/email-notifications.html +6 -6
- package/web/docs/administration/license.html +3 -3
- package/web/docs/administration/nodes-workspaces.html +3 -3
- package/web/docs/administration/oauth.html +3 -3
- package/web/docs/administration/secrets.html +3 -3
- package/web/docs/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/administration/users-organizations.html +3 -3
- package/web/docs/assets/{administration_email-notifications.md.CcYZiN4h.js → administration_email-notifications.md.D8YWt3Nt.js} +3 -3
- package/web/docs/assets/{administration_email-notifications.md.CcYZiN4h.lean.js → administration_email-notifications.md.D8YWt3Nt.lean.js} +1 -1
- package/web/docs/assets/{app.dKrOMRPl.js → app.fLdJTVzd.js} +1 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.DnHixIyt.js +1 -0
- package/web/docs/assets/chunks/@localSearchIndexroot.CpNlW6Tb.js +1 -0
- package/web/docs/assets/chunks/{VPLocalSearchBox.D1TZrDO0.js → VPLocalSearchBox.DREG8G6H.js} +1 -1
- package/web/docs/assets/chunks/{theme.nR7qNMj1.js → theme.xMOlLgbi.js} +2 -2
- package/web/docs/assets/{en-US_administration_email-notifications.md.DvyUIBNy.js → en-US_administration_email-notifications.md.CnuA18jF.js} +3 -3
- package/web/docs/assets/{en-US_administration_email-notifications.md.DvyUIBNy.lean.js → en-US_administration_email-notifications.md.CnuA18jF.lean.js} +1 -1
- package/web/docs/assets/en-US_workbench_remote-desktop.md.BAxLTG99.js +1 -0
- package/web/docs/assets/{en-US_workbench_remote-desktop.md.DfKWX_fU.lean.js → en-US_workbench_remote-desktop.md.BAxLTG99.lean.js} +1 -1
- package/web/docs/assets/workbench_remote-desktop.md.BGRwzLZ9.js +1 -0
- package/web/docs/assets/{workbench_remote-desktop.md.CoH2TTMl.lean.js → workbench_remote-desktop.md.BGRwzLZ9.lean.js} +1 -1
- package/web/docs/concepts/architecture.html +3 -3
- package/web/docs/concepts/data-and-security.html +3 -3
- package/web/docs/concepts/files-git-terminal.html +3 -3
- package/web/docs/concepts/node-and-workspace.html +3 -3
- package/web/docs/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/concepts/runner-control.html +3 -3
- package/web/docs/concepts/secrets.html +3 -3
- package/web/docs/concepts/session-run-turn.html +3 -3
- package/web/docs/deployment/backup-restore.html +3 -3
- package/web/docs/deployment/network.html +3 -3
- package/web/docs/deployment/node-installation.html +3 -3
- package/web/docs/deployment/node-linux.html +3 -3
- package/web/docs/deployment/node-macos.html +3 -3
- package/web/docs/deployment/node-windows.html +3 -3
- package/web/docs/deployment/production.html +3 -3
- package/web/docs/deployment/security-checklist.html +3 -3
- package/web/docs/deployment/upgrade.html +3 -3
- package/web/docs/en-US/administration/account.html +3 -3
- package/web/docs/en-US/administration/audit.html +3 -3
- package/web/docs/en-US/administration/conversation-templates.html +3 -3
- package/web/docs/en-US/administration/email-notifications.html +6 -6
- package/web/docs/en-US/administration/license.html +3 -3
- package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
- package/web/docs/en-US/administration/oauth.html +3 -3
- package/web/docs/en-US/administration/secrets.html +3 -3
- package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/en-US/administration/users-organizations.html +3 -3
- package/web/docs/en-US/concepts/architecture.html +3 -3
- package/web/docs/en-US/concepts/data-and-security.html +3 -3
- package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
- package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
- package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/en-US/concepts/runner-control.html +3 -3
- package/web/docs/en-US/concepts/secrets.html +3 -3
- package/web/docs/en-US/concepts/session-run-turn.html +3 -3
- package/web/docs/en-US/deployment/backup-restore.html +3 -3
- package/web/docs/en-US/deployment/network.html +3 -3
- package/web/docs/en-US/deployment/node-installation.html +3 -3
- package/web/docs/en-US/deployment/node-linux.html +3 -3
- package/web/docs/en-US/deployment/node-macos.html +3 -3
- package/web/docs/en-US/deployment/node-windows.html +3 -3
- package/web/docs/en-US/deployment/production.html +3 -3
- package/web/docs/en-US/deployment/security-checklist.html +3 -3
- package/web/docs/en-US/deployment/upgrade.html +3 -3
- package/web/docs/en-US/getting-started/connect-node.html +3 -3
- package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
- package/web/docs/en-US/getting-started/first-login.html +3 -3
- package/web/docs/en-US/getting-started/next-steps.html +3 -3
- package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
- package/web/docs/en-US/getting-started/overview.html +3 -3
- package/web/docs/en-US/getting-started/prerequisites.html +3 -3
- package/web/docs/en-US/getting-started/register-workspace.html +3 -3
- package/web/docs/en-US/getting-started/server-installation.html +3 -3
- package/web/docs/en-US/operations/marctl.html +3 -3
- package/web/docs/en-US/reference/configuration.html +3 -3
- package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/en-US/reference/limits.html +3 -3
- package/web/docs/en-US/reference/ports-paths-data.html +3 -3
- package/web/docs/en-US/reference/status-and-errors.html +3 -3
- package/web/docs/en-US/runners/claude-code.html +3 -3
- package/web/docs/en-US/runners/codex.html +3 -3
- package/web/docs/en-US/runners/mar-agent.html +3 -3
- package/web/docs/en-US/runners/opencode.html +3 -3
- package/web/docs/en-US/runners/overview.html +3 -3
- package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
- package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/en-US/troubleshooting/session-run.html +3 -3
- package/web/docs/en-US/troubleshooting/terminal.html +3 -3
- package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
- package/web/docs/en-US/workbench/composer.html +3 -3
- package/web/docs/en-US/workbench/context-and-plan.html +3 -3
- package/web/docs/en-US/workbench/conversation.html +3 -3
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/en-US/workbench/files.html +3 -3
- package/web/docs/en-US/workbench/git-changes.html +3 -3
- package/web/docs/en-US/workbench/git-history.html +3 -3
- package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
- package/web/docs/en-US/workbench/mobile.html +3 -3
- package/web/docs/en-US/workbench/navigation.html +3 -3
- package/web/docs/en-US/workbench/remote-desktop.html +5 -5
- package/web/docs/en-US/workbench/sessions.html +3 -3
- package/web/docs/en-US/workbench/skills.html +3 -3
- package/web/docs/en-US/workbench/terminal.html +3 -3
- package/web/docs/getting-started/connect-node.html +3 -3
- package/web/docs/getting-started/first-agent-session.html +3 -3
- package/web/docs/getting-started/first-login.html +3 -3
- package/web/docs/getting-started/next-steps.html +3 -3
- package/web/docs/getting-started/npm-quick-start.html +3 -3
- package/web/docs/getting-started/overview.html +3 -3
- package/web/docs/getting-started/prerequisites.html +3 -3
- package/web/docs/getting-started/register-workspace.html +3 -3
- package/web/docs/getting-started/server-installation.html +3 -3
- package/web/docs/hashmap.json +1 -1
- package/web/docs/operations/marctl.html +3 -3
- package/web/docs/reference/configuration.html +3 -3
- package/web/docs/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/reference/limits.html +3 -3
- package/web/docs/reference/ports-paths-data.html +3 -3
- package/web/docs/reference/status-and-errors.html +3 -3
- package/web/docs/runners/claude-code.html +3 -3
- package/web/docs/runners/codex.html +3 -3
- package/web/docs/runners/mar-agent.html +3 -3
- package/web/docs/runners/opencode.html +3 -3
- package/web/docs/runners/overview.html +3 -3
- package/web/docs/runners/runner-troubleshooting.html +3 -3
- package/web/docs/troubleshooting/node-offline.html +3 -3
- package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/troubleshooting/session-run.html +3 -3
- package/web/docs/troubleshooting/terminal.html +3 -3
- package/web/docs/troubleshooting/workspace-files.html +3 -3
- package/web/docs/workbench/composer.html +3 -3
- package/web/docs/workbench/context-and-plan.html +3 -3
- package/web/docs/workbench/conversation.html +3 -3
- package/web/docs/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/workbench/files.html +3 -3
- package/web/docs/workbench/git-changes.html +3 -3
- package/web/docs/workbench/git-history.html +3 -3
- package/web/docs/workbench/hosted-conversations.html +3 -3
- package/web/docs/workbench/mobile.html +3 -3
- package/web/docs/workbench/navigation.html +3 -3
- package/web/docs/workbench/remote-desktop.html +5 -5
- package/web/docs/workbench/sessions.html +3 -3
- package/web/docs/workbench/skills.html +3 -3
- package/web/docs/workbench/terminal.html +3 -3
- package/web/index.html +2 -2
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/AuditManagementPage-Cx5aVc7i.css +0 -1
- package/web/assets/AuditManagementPage-DchOINBV.js +0 -1
- package/web/assets/BusyIndicator-Dh5Sf1lg.js +0 -1
- package/web/assets/ConversationTemplateManagementPage-Blnsf3fd.css +0 -1
- package/web/assets/ConversationTemplateManagementPage-C1v1N7OH.js +0 -1
- package/web/assets/EnterpriseUserManagementPage-CUfJ6NeX.js +0 -1
- package/web/assets/EnterpriseUserManagementPage-DJhyepjN.css +0 -1
- package/web/assets/EnvironmentSecretManager-BvATgybB.js +0 -1
- package/web/assets/EnvironmentSecretManager-C8dOmosG.css +0 -1
- package/web/assets/HtmlPreviewFrame-CCCsRoVg.js +0 -6
- package/web/assets/HtmlPreviewFrame-DpKEVi8j.css +0 -1
- package/web/assets/LicenseManagementPage-D8bvBPkd.css +0 -1
- package/web/assets/LicenseManagementPage-hTkhJWvH.js +0 -1
- package/web/assets/MarAgentModelManagementPage-C48KAE9Q.css +0 -1
- package/web/assets/MarAgentModelManagementPage-DSkSH7RU.js +0 -1
- package/web/assets/McpSourceManagementPage-BmEhS1yM.css +0 -1
- package/web/assets/McpSourceManagementPage-oTCLa0mX.js +0 -1
- package/web/assets/NodeManagementPage-BO3vajxU.js +0 -1
- package/web/assets/NodeManagementPage-Fbz7oMft.js +0 -1
- package/web/assets/OAuthManagementPage-DTafqvMt.css +0 -1
- package/web/assets/OAuthManagementPage-DsFA_dyB.js +0 -2
- package/web/assets/OrganizationManagementPage-Cls_AkDr.js +0 -1
- package/web/assets/OrganizationManagementPage-TdKoey_x.css +0 -1
- package/web/assets/RemoteDesktopPage-B4JPwXCx.js +0 -5
- package/web/assets/RemoteDesktopPage-BY_dAno_.css +0 -1
- package/web/assets/ResourceManagementPanel-BmAJ59B8.css +0 -1
- package/web/assets/ResourceManagementPanel-CNIh1wmp.js +0 -2
- package/web/assets/ResourceManagementPanel-D5U5J6fY.css +0 -1
- package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-C0LyLuky.js +0 -1
- package/web/assets/SecretManagementPage-BnL7dcsG.js +0 -1
- package/web/assets/SecretManagementPage.vue_vue_type_script_setup_true_lang-BBjTNCpt.js +0 -1
- package/web/assets/SessionSharePage-BRwXrdn_.css +0 -1
- package/web/assets/SettingsContent-CbJPqKuG.css +0 -1
- package/web/assets/SettingsContent-Ce6CbGl6.js +0 -1
- package/web/assets/SettingsContent-Dug9HniO.css +0 -1
- package/web/assets/SettingsContent-ZN8RdLyT.js +0 -1
- package/web/assets/SkillCenterPage-EPFdeolc.js +0 -1
- package/web/assets/SkillSourceManagementPage-DI6YGnUe.css +0 -1
- package/web/assets/SkillSourceManagementPage-IU8Zjizr.js +0 -1
- package/web/assets/SystemConfigurationPage-BwbGi747.js +0 -1
- package/web/assets/SystemConfigurationPage-HZGJQ9-n.js +0 -1
- package/web/assets/WorkbenchPage-DPHwBVdu.css +0 -1
- package/web/assets/WorkspaceManagementPage-BvuR0ew-.js +0 -1
- package/web/assets/WorkspaceManagementPage-CLF7c9dP.js +0 -1
- package/web/assets/channel-t0TYpedT.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-C06Zd1Ht.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-C06Zd1Ht.js +0 -1
- package/web/assets/index-DbbfyLAB.css +0 -1
- package/web/assets/infoDiagram-FKFFQAWI-GTx6FgJb.js +0 -2
- package/web/assets/stateDiagram-v2-IH3M54BS-D9nPgfoE.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-COI7eDt7.js +0 -8
- package/web/assets/workbench-composer-interaction-controller-DobrNO67.css +0 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.BXpToszI.js +0 -1
- package/web/docs/assets/chunks/@localSearchIndexroot.C3sfAnoV.js +0 -1
- package/web/docs/assets/en-US_workbench_remote-desktop.md.DfKWX_fU.js +0 -1
- package/web/docs/assets/workbench_remote-desktop.md.CoH2TTMl.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as Re,a as Ue}from"./el-form-item-USuILRLw.js";import{C as ut,a as Pe,E as Me}from"./el-input-D9BwkQsR.js";import{E as Ke,a as Qe}from"./el-select-SRr6i6V-.js";import{E as dt,a as pt}from"./el-descriptions-BF9KG5zJ.js";import{E as Ge,u as Ie,m as Ve}from"./mobile-dialog-return-service-CqaFAsb3.js";import{E as wt}from"./workbench-presentation-yiYAJYEW.js";import{ax as Xe,am as St,m as ye,ap as Tt,o as c,n as g,p as We,a6 as ke,k as Z,au as Ct,dJ as Ae,L as e,as as Be,dK as $t,W as t,X as o,dL as xt,Y as m,_ as Se,a0 as Oe,I as O,U as ue,q as l,M as f,J as R,K as i,a3 as se,N as D,f as V,dM as Pt,$ as W,dN as mt,l as je,dO as Et,Q as It,dP as Vt,T as Ne,ac as Je,Z as Ee,dQ as Fe,ab as Rt,ae as ze,t as a,V as Ut,dR as vt,df as Nt,a2 as ht,dS as He,dT as qt,dU as et,dV as tt,w as qe,d5 as Mt,a8 as Gt,dW as At,aP as Dt,dX as Ft,af as Bt,cq as Ot,dY as ot,dZ as Lt,d_ as Ht}from"./index-BWIlWKS5.js";import"./el-scrollbar-CFgE8hiz.js";/* empty css */import{E as xe}from"./message-box-service-BbNoH9tP.js";import{E as Wt,e as Kt,g as Qt,h as U,j as jt,w as ce,k as pe,l as at,m as Jt,n as st,o as zt,q as nt}from"./FilePreviewLoading-CplWlL4S.js";import{N as Yt,O as Zt}from"./workbench-composer-interaction-controller-V7LDts8s.js";import{p as Xt}from"./HtmlPreviewFrame-CCCsRoVg.js";import{E as eo}from"./el-alert-Cn0AWnUd.js";import{E as Le}from"./index-DK80c6gZ.js";import{M as we}from"./MarIcon-BJtUW72T.js";import{e as $e}from"./error-presentation-DmX7H6jr.js";import{c as to,a as oo,o as ao,p as so}from"./WorkbenchPage-CnV3Y0E-.js";import"./conversation-history-UrDOgBLc.js";import{E as no}from"./el-checkbox-CRRoWixG.js";import{a as gt,E as ft}from"./el-table-column-BnSot1-z.js";import{P as lo}from"./NodeDetailsDialogs-B0ROHs0c.js";import{a as io,b as ro}from"./el-radio-BsJXpUlu.js";import{E as co}from"./el-date-picker-PbEwM38q.js";import{c as uo,w as po,M as mo}from"./ManagementPagination-DxTGOxsB.js";import{f as vo}from"./time-presentation-Bnb6ZzAp.js";import"./use-form-common-props-BpO5s-Fn.js";import"./vnode-D6yqEI54.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BWEo081-.js";import"./BusyIndicator-Dh5Sf1lg.js";import"./uuid-BmNSYLtZ.js";/* empty css */import"./runner-presentation-CkBoRfV1.js";import"./el-switch-0rpdXBjA.js";import"./file-presentation-Cm7tx53N.js";import"./workbench-live-service-DTvo8iBf.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-Dlt5t8j-.js";import"./oauth-callback-xAJGqjYm.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-BBgPpeyn.js";import"./catalog-page-service-TdH51Dah.js";import"./union-CzXz5ZcF.js";import"./isArrayLikeObject-m8OxXoHc.js";import"./advancedFormat-DAdanKjg.js";import"./el-input-number-35uaUE0c.js";import"./index-DkG4qHEM.js";import"./enterprise-management-service-CT0d7tNp.js";import"./last-DXTTfs9a.js";import"./merge-DgRJxBw2.js";import"./EnvironmentSecretManager-BvATgybB.js";import"./management-url-service-WMdB2srg.js";const ho=St({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),go={"update:checked":d=>Xe(d),[ut]:d=>Xe(d)};var fo=ye({name:"ElCheckTag",__name:"check-tag",props:ho,emits:go,setup(d,{emit:s}){const n=d,w=s,y=Tt("check-tag"),p=Z(()=>[y.b(),y.is("checked",n.checked),y.is("disabled",n.disabled),y.m(n.type||"primary")]),P=()=>{if(n.disabled)return;const T=!n.checked;w(ut,T),w("update:checked",T)};return(T,C)=>(c(),g("span",{class:ke(p.value),onClick:P},[We(T.$slots,"default")],2))}}),bo=fo;const yo=Ct(bo),_o=["data-theme","aria-label"],ko={class:"preview-toolbar"},wo={class:"preview-workbench"},So={class:"preview-sidebar"},To={class:"caption"},Co={type:"button",class:"file selected","aria-current":"true"},$o={type:"button",class:"file"},xo={type:"button",class:"file"},Po={class:"preview-content"},Eo={class:"preview-tabs"},Io={class:"tab active"},Vo={class:"tab"},Ro={class:"conversation"},Uo={class:"user-message"},No={class:"assistant-message"},qo={class:"process"},Mo={class:"preview-controls"},Go={class:"statuses"},Ao={class:"status success"},Do={class:"status warning"},Fo={class:"status danger"},Bo={class:"status accent"},Oo={class:"preview-label"},Lo=["placeholder","aria-label"],Ho={class:"control-actions"},Wo={type:"button",class:"preview-button primary"},Ko={type:"button",class:"preview-button secondary"},Qo={type:"button",class:"preview-button",disabled:""},jo={class:"caption"},Jo=ye({__name:"ThemePreview",props:{name:{},colors:{},expanded:{type:Boolean}},setup(d){const{t:s}=Ae();return(n,w)=>(c(),g("div",{class:ke(["theme-preview",{expanded:d.expanded}]),"data-theme":e($t)(d.colors),style:Be(d.colors),role:"group","aria-label":e(s)("customThemes.preview")},[t("div",ko,[w[0]||(w[0]=t("span",{class:"status-dot"},null,-1)),t("strong",null,o(d.name),1)]),t("div",wo,[t("div",So,[t("span",To,o(e(s)("customThemes.previewFiles")),1),t("button",Co,o(e(s)("customThemes.previewItemOne")),1),t("button",$o,o(e(s)("customThemes.previewItemTwo")),1),t("button",xo,o(e(s)("customThemes.previewItemThree")),1)]),t("div",Po,[t("div",Eo,[t("span",Io,o(e(s)("customThemes.previewChat")),1),t("span",Vo,o(e(s)("customThemes.previewChanges")),1)]),t("div",Ro,[t("div",Uo,o(e(s)("customThemes.previewRequest")),1),t("div",No,[t("strong",null,o(e(s)("customThemes.previewHeading")),1),t("p",null,o(e(s)("customThemes.previewText")),1),w[1]||(w[1]=xt('<pre class="code" data-v-9f42f07d><span class="syntax-keyword" data-v-9f42f07d>const</span> value = <span class="syntax-value" data-v-9f42f07d>42</span>;</pre><div class="diff" data-v-9f42f07d><code class="diff-remove" data-v-9f42f07d>- value: 1;</code><code class="diff-add" data-v-9f42f07d>+ value: 2;</code></div>',2))]),t("div",qo,[w[2]||(w[2]=t("span",{class:"status-dot"},null,-1)),m(o(e(s)("customThemes.previewProcess")),1)])])])]),t("div",Mo,[t("div",Go,[t("span",Ao,o(e(s)("customThemes.previewSuccess")),1),t("span",Do,o(e(s)("customThemes.previewWarning")),1),t("span",Fo,o(e(s)("customThemes.previewError")),1),t("span",Bo,o(e(s)("customThemes.previewInfo")),1)]),t("label",Oo,[m(o(e(s)("customThemes.previewInput"))+" ",1),t("input",{type:"text",placeholder:e(s)("customThemes.previewPlaceholder"),"aria-label":e(s)("customThemes.previewInput")},null,8,Lo)]),t("div",Ho,[t("button",Wo,o(e(s)("customThemes.previewAction")),1),t("button",Ko,o(e(s)("customThemes.previewSecondary")),1),t("button",Qo,o(e(s)("customThemes.previewDisabled")),1)]),t("p",jo,o(e(s)("customThemes.previewStateHint")),1)])],14,_o))}}),lt=Se(Jo,[["__scopeId","data-v-9f42f07d"]]),zo=["surfaces","borders","text","conversation","interaction","controls","status","overlays"],it={"--mar-table-header-bg":{group:"surfaces",description:"table-header-bg"},"--mar-table-row-hover-bg":{group:"surfaces",description:"table-row-hover-bg"},"--mar-color-brand-disabled":{group:"interaction",description:"color-brand-disabled"},"--mar-control-link-text":{group:"controls",description:"control-link-text"},"--mar-control-link-hover":{group:"controls",description:"control-link-hover"},"--mar-bg-page":{group:"surfaces",description:"bg-page"},"--mar-bg-panel":{group:"surfaces",description:"bg-panel"},"--mar-bg-chrome":{group:"surfaces",description:"bg-chrome"},"--mar-bg-subtle":{group:"surfaces",description:"bg-subtle"},"--mar-bg-tab-inactive":{group:"surfaces",description:"bg-tab-inactive"},"--mar-fill-subtle":{group:"surfaces",description:"fill-subtle"},"--mar-fill-muted":{group:"surfaces",description:"fill-muted"},"--mar-fill-row-hover":{group:"surfaces",description:"fill-row-hover"},"--mar-fill-selection":{group:"surfaces",description:"fill-selection"},"--mar-fill-soft":{group:"surfaces",description:"fill-soft"},"--mar-fill-hover":{group:"surfaces",description:"fill-hover"},"--mar-border-default":{group:"borders",description:"border-default"},"--mar-border-subtle":{group:"borders",description:"border-subtle"},"--mar-border-medium":{group:"borders",description:"border-medium"},"--mar-border-strong":{group:"borders",description:"border-strong"},"--mar-text-primary":{group:"text",description:"text-primary"},"--mar-text-secondary":{group:"text",description:"text-secondary"},"--mar-text-tertiary":{group:"text",description:"text-tertiary"},"--mar-text-faint":{group:"text",description:"text-faint"},"--mar-text-muted":{group:"text",description:"text-muted"},"--mar-text-neutral-control":{group:"text",description:"text-neutral-control"},"--mar-conversation-canvas":{group:"conversation",description:"conversation-canvas"},"--mar-conversation-surface":{group:"conversation",description:"conversation-surface"},"--mar-conversation-process":{group:"conversation",description:"conversation-process"},"--mar-conversation-border":{group:"conversation",description:"conversation-border"},"--mar-conversation-process-border":{group:"conversation",description:"conversation-process-border"},"--mar-conversation-text":{group:"conversation",description:"conversation-text"},"--mar-conversation-muted":{group:"conversation",description:"conversation-muted"},"--mar-conversation-code":{group:"conversation",description:"conversation-code"},"--mar-scrollbar-thumb":{group:"borders",description:"scrollbar-thumb"},"--mar-scrollbar-thumb-hover":{group:"borders",description:"scrollbar-thumb-hover"},"--mar-color-brand":{group:"interaction",description:"color-brand"},"--mar-control-color-primary-light-3":{group:"controls",description:"control-color-primary-light-3"},"--mar-control-color-primary-light-5":{group:"controls",description:"control-color-primary-light-5"},"--mar-control-color-primary-light-7":{group:"controls",description:"control-color-primary-light-7"},"--mar-control-color-primary-light-8":{group:"controls",description:"control-color-primary-light-8"},"--mar-control-color-primary-light-9":{group:"controls",description:"control-color-primary-light-9"},"--mar-control-color-primary-dark-2":{group:"controls",description:"control-color-primary-dark-2"},"--mar-control-color-success":{group:"controls",description:"control-color-success"},"--mar-control-color-warning":{group:"controls",description:"control-color-warning"},"--mar-control-color-danger":{group:"controls",description:"control-color-danger"},"--mar-control-bg-color-overlay":{group:"controls",description:"control-bg-color-overlay"},"--mar-control-fill-color":{group:"controls",description:"control-fill-color"},"--mar-control-fill-color-light":{group:"controls",description:"control-fill-color-light"},"--mar-control-fill-color-lighter":{group:"controls",description:"control-fill-color-lighter"},"--mar-control-fill-color-extra-light":{group:"controls",description:"control-fill-color-extra-light"},"--mar-control-border-color-lighter":{group:"controls",description:"control-border-color-lighter"},"--mar-control-border-color-extra-light":{group:"controls",description:"control-border-color-extra-light"},"--mar-control-border-color-dark":{group:"controls",description:"control-border-color-dark"},"--mar-control-border-color-darker":{group:"controls",description:"control-border-color-darker"},"--mar-color-brand-text":{group:"interaction",description:"color-brand-text"},"--mar-color-on-accent":{group:"interaction",description:"color-on-accent"},"--mar-color-brand-hover":{group:"interaction",description:"color-brand-hover"},"--mar-color-brand-subtle":{group:"interaction",description:"color-brand-subtle"},"--mar-color-brand-selected":{group:"interaction",description:"color-brand-selected"},"--mar-color-brand-border":{group:"interaction",description:"color-brand-border"},"--mar-color-success-text":{group:"status",description:"color-success-text"},"--mar-color-success-bg":{group:"status",description:"color-success-bg"},"--mar-color-warning-text":{group:"status",description:"color-warning-text"},"--mar-color-warning-accent":{group:"status",description:"color-warning-accent"},"--mar-color-warning-bg":{group:"status",description:"color-warning-bg"},"--mar-color-danger-text":{group:"status",description:"color-danger-text"},"--mar-color-danger-bg":{group:"status",description:"color-danger-bg"},"--mar-color-accent":{group:"interaction",description:"color-accent"},"--mar-color-accent-bg":{group:"interaction",description:"color-accent-bg"},"--mar-color-diff-add-text":{group:"status",description:"color-diff-add-text"},"--mar-color-diff-del-text":{group:"status",description:"color-diff-del-text"},"--mar-shadow-soft":{group:"overlays",description:"shadow-soft"},"--mar-shadow-medium":{group:"overlays",description:"shadow-medium"},"--mar-overlay-scrim":{group:"overlays",description:"overlay-scrim"},"--mar-overlay-border":{group:"overlays",description:"overlay-border"}},Yo={class:"hint"},Zo={class:"reference-body"},Xo={key:0,class:"hint"},ea=ye({__name:"ThemeTokenHelp",props:{colors:{}},setup(d){const{t:s}=Ae(),n=V(!1),w=V(""),y=Z(()=>{const T=w.value.trim().toLocaleLowerCase();return zo.map(C=>({key:C,label:s("customThemes.tokenGroups."+C),tokens:Pt.filter(_=>it[_].group===C).map(_=>({token:_,description:s("customThemes.tokenDescriptions."+it[_].description)})).filter(_=>(_.token+" "+_.description).toLocaleLowerCase().includes(T))})).filter(C=>C.tokens.length)});function p(){w.value="",n.value=!0}async function P(T){try{await navigator.clipboard.writeText(T),W(s("customThemes.tokenCopied"),"info")}catch{W(s("customThemes.tokenCopyFailed"),"error")}}return(T,C)=>{const _=Pe,J=Me,E=Ge,ne=Oe("tooltip");return c(),g(O,null,[ue(l(_,{class:"icon-action",text:"",icon:e(f)("help"),"aria-label":e(s)("customThemes.tokenHelp"),onClick:p},null,8,["icon","aria-label"]),[[ne,e(s)("customThemes.tokenHelp")]]),n.value?(c(),R(E,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ie),modelValue:n.value,"onUpdate:modelValue":C[1]||(C[1]=K=>n.value=K),title:e(s)("customThemes.tokenHelp"),width:"min(720px, calc(100vw - 32px))","append-to-body":"",class:"theme-token-help","close-icon":e(f)("close")},{default:i(()=>[t("p",Yo,o(e(s)("customThemes.tokenHint")),1),l(J,{modelValue:w.value,"onUpdate:modelValue":C[0]||(C[0]=K=>w.value=K),"prefix-icon":e(f)("search"),placeholder:e(s)("customThemes.tokenSearch"),"aria-label":e(s)("customThemes.tokenSearch"),clearable:"","clear-icon":e(f)("clear-input")},null,8,["modelValue","prefix-icon","placeholder","aria-label","clear-icon"]),t("div",Zo,[(c(!0),g(O,null,se(y.value,K=>(c(),g("section",{key:K.key},[t("h3",null,o(K.label),1),t("dl",null,[(c(!0),g(O,null,se(K.tokens,v=>(c(),g("div",{key:v.token,class:"token-row"},[t("dt",null,[t("span",{class:"swatch",style:Be({backgroundColor:d.colors[v.token]}),"aria-hidden":"true"},null,4),t("code",null,o(v.token),1),ue(l(_,{class:"icon-action",text:"",icon:e(f)("copy"),"aria-label":e(s)("customThemes.tokenCopy",{token:v.token}),onClick:ae=>P(v.token)},null,8,["icon","aria-label","onClick"]),[[ne,e(s)("customThemes.tokenCopy",{token:v.token})]])]),t("dd",null,o(v.description),1)]))),128))])]))),128)),y.value.length?D("",!0):(c(),g("p",Xo,o(e(s)("customThemes.tokenEmpty")),1))])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):D("",!0)],64)}}}),ta=Se(ea,[["__scopeId","data-v-507f8af7"]]),oa={class:"theme-settings"},aa={class:"summary"},sa={class:"actions"},na=["aria-label"],la=["aria-label"],ia=["aria-label","aria-pressed","onClick"],ra={class:"theme-swatches","aria-hidden":"true"},ca={class:"theme-name"},ua={key:0,class:"theme-meta"},da={class:"theme-controls"},pa={class:"editor-heading"},ma={class:"editor-layout"},va={class:"actions"},ha={class:"editor-label"},ga=["aria-label"],fa={class:"validation","aria-live":"polite"},ba={key:3,class:"warnings"},ya={class:"preview-heading"},_a={class:"summary"},ka=ye({__name:"ThemeSettings",setup(d){const{t:s}=Ae(),n=mt(),w=Z(()=>[{id:"vscode-dark-2026",name:s("settings.dark"),builtin:!0},{id:"daylight",name:s("settings.light"),builtin:!0},...n.customThemes.value.map(k=>({...k,name:Fe(k.source).name??s("customThemes.untitled"),builtin:!1}))]),y=V(),p=V(),P=V(),T=V("vscode-dark-2026"),C=Z(()=>T.value!==void 0),_=V(!1),J=V(!1),E=je({source:Et(s("settings.dark"))}),ne=V(E.source),K=Z(()=>!C.value&&E.source!==ne.value),v=Z(()=>!C.value&&(!P.value||K.value)),ae=It(Vt,void 0),X=Z(()=>Fe(E.source)),N=Z(()=>_.value?n.resolveColors(E.source):X.value.colors),Q=["--mar-bg-page","--mar-bg-panel","--mar-text-primary","--mar-color-brand","--mar-color-accent"],ee=Z(()=>w.value.map(k=>({...k,colors:_.value?n.resolveColors(B(k)):{}}))),M=Z(()=>({source:[{validator:(k,F,oe)=>oe(Fe(F).validJson?void 0:new Error(s("customThemes.invalidJson"))),trigger:["blur","change"]}]}));async function j(){if(!v.value)return!0;try{return await xe.confirm(s("customThemes.discard"),s("customThemes.title"),{closeIcon:f("close"),icon:f("warning"),type:"warning",confirmButtonText:s("customThemes.discardAction"),cancelButtonText:s("customThemes.cancel")}),!0}catch{return!1}}async function G(k,F,oe){await j()&&(P.value=F,T.value=oe,E.source=k,ne.value=k,y.value?.clearValidate())}function B(k){return k.source??n.builtinSource(k.id,k.name)}async function q(k){try{await G(B(k),k.builtin?void 0:k.id,k.builtin?k.id:void 0)}catch{W(s("customThemes.paletteFailed"),"error")}}async function le(){if(K.value){try{await xe.confirm(s("customThemes.resetConfirm"),s("customThemes.title"),{closeIcon:f("close"),icon:f("warning"),type:"warning",confirmButtonText:s("customThemes.reset"),cancelButtonText:s("customThemes.cancel")})}catch{return}E.source=ne.value,y.value?.clearValidate()}}function re(k){try{n.setTheme(k.id)}catch{W(s("customThemes.storageFailed"),"error")}}function z(k,F){F==="duplicate"?b(k):F==="remove"&&!k.builtin&&me({id:k.id})}async function ge(){if(!C.value&&await y.value?.validate().catch(()=>!1))try{const k=n.saveCustomTheme(E.source,P.value);P.value=k.id,ne.value=E.source,W(s("customThemes.saved"),"success")}catch{W(s("customThemes.storageFailed"),"error")}}async function me(k){try{await xe.confirm(s("customThemes.deleteConfirm"),s("customThemes.title"),{closeIcon:f("close"),icon:f("warning"),type:"warning",confirmButtonText:s("customThemes.remove"),cancelButtonText:s("customThemes.cancel")})}catch{return}try{n.deleteCustomTheme(k.id),P.value===k.id&&(P.value=void 0,ne.value=E.source),W(s("customThemes.deleted"),"success")}catch{W(s("customThemes.storageFailed"),"error")}}function b(k){try{G(n.duplicateSource(B(k),s("customThemes.copyName",{name:k.name})))}catch{W(s("customThemes.paletteFailed"),"error")}}async function $(k){const F=k.target,oe=F.files?.[0];if(F.value="",!!oe)try{await G(await oe.text())}catch{W(s("customThemes.importFailed"),"error")}}async function I(){try{await navigator.clipboard.writeText(E.source),W(s("customThemes.copied"),"info")}catch{W(s("customThemes.copyFailed"),"error")}}async function h(){if(!await y.value?.validate().catch(()=>!1))return;const k=URL.createObjectURL(new Blob([E.source],{type:"application/json"})),F=document.createElement("a");F.href=k,F.download=`${(X.value.name??"theme").replace(/[^\p{L}\p{N}_.-]/gu,"_").slice(0,80)}.json`,F.click(),setTimeout(()=>URL.revokeObjectURL(k),1e3)}function H(){C.value||(X.value.validJson?E.source=JSON.stringify(JSON.parse(E.source),null,2):y.value?.validate().catch(()=>!1))}function te(k){ae?.isReloadingForUpdate()||v.value&&(k.preventDefault(),k.returnValue="")}return Ne(()=>{_.value=!0,q(w.value[0]),window.addEventListener("beforeunload",te)}),Je(()=>window.removeEventListener("beforeunload",te)),(k,F)=>{const oe=Pe,de=Kt,ie=Wt,ve=Qt,he=Le,A=Me,S=Re,u=Ue,Y=eo,fe=Ge,Te=Oe("tooltip");return c(),g("section",oa,[t("h2",null,o(e(s)("customThemes.title")),1),t("p",aa,o(e(s)("customThemes.summary")),1),t("div",sa,[l(oe,{icon:e(f)("upload"),onClick:F[0]||(F[0]=L=>p.value?.click())},{default:i(()=>[m(o(e(s)("customThemes.import")),1)]),_:1},8,["icon"]),t("input",{ref_key:"fileInput",ref:p,class:"file-input",type:"file",accept:".json,application/json","aria-label":e(s)("customThemes.import"),onChange:$},null,40,na)]),t("ul",{class:"theme-options","aria-label":e(s)("customThemes.title")},[(c(!0),g(O,null,se(ee.value,L=>(c(),g("li",{key:L.id,class:ke(["theme-option",{selected:L.id===(T.value??P.value),active:L.id===e(n).theme.value}])},[t("button",{type:"button",class:"theme-choice","aria-label":e(s)("customThemes.inspect",{name:L.name}),"aria-pressed":L.id===(T.value??P.value),onClick:_e=>q(L)},[t("span",ra,[(c(),g(O,null,se(Q,_e=>t("span",{key:_e,style:Be({backgroundColor:L.colors[_e]})},null,4)),64))]),t("span",ca,o(L.name),1),L.builtin?(c(),g("span",ua,o(e(s)("customThemes.builtin")),1)):D("",!0)],8,ia),t("div",da,[l(oe,{link:"",icon:e(f)("check"),disabled:e(n).theme.value===L.id,onClick:_e=>re(L)},{default:i(()=>[m(o(e(s)(e(n).theme.value===L.id?"customThemes.active":"customThemes.apply")),1)]),_:2},1032,["icon","disabled","onClick"]),l(ve,{trigger:"click",onCommand:_e=>z(L,_e)},{dropdown:i(()=>[l(ie,null,{default:i(()=>[l(de,{command:"duplicate",icon:e(f)("copy")},{default:i(()=>[m(o(e(s)("customThemes.duplicate")),1)]),_:1},8,["icon"]),L.builtin?D("",!0):(c(),R(de,{key:0,command:"remove",icon:e(f)("delete"),divided:""},{default:i(()=>[m(o(e(s)("customThemes.remove")),1)]),_:1},8,["icon"]))]),_:2},1024)]),default:i(()=>[ue((c(),R(oe,{class:"icon-action",text:"","aria-label":e(s)("customThemes.moreActions",{name:L.name})},{default:i(()=>[l(we,{name:"more"})]),_:1},8,["aria-label"])),[[Te,e(s)("customThemes.moreActions",{name:L.name})]])]),_:2},1032,["onCommand"])])],2))),128))],8,la),t("div",pa,[t("h3",null,o(C.value?e(s)("customThemes.view"):P.value?e(s)("customThemes.edit"):e(s)("customThemes.newTheme")),1),v.value?(c(),R(he,{key:0,type:"warning"},{default:i(()=>[m(o(e(s)("customThemes.unsaved")),1)]),_:1})):D("",!0)]),t("div",ma,[l(u,{ref_key:"form",ref:y,model:E,rules:M.value,"label-position":"top",onSubmit:Ee(ge,["prevent"])},{default:i(()=>[t("div",va,[C.value?D("",!0):(c(),R(oe,{key:0,icon:e(f)("check"),type:"primary","native-type":"submit"},{default:i(()=>[m(o(e(s)("customThemes.save")),1)]),_:1},8,["icon"])),C.value?D("",!0):(c(),R(oe,{key:1,icon:e(f)("administration"),onClick:H},{default:i(()=>[m(o(e(s)("customThemes.format")),1)]),_:1},8,["icon"])),C.value?D("",!0):(c(),R(oe,{key:2,icon:e(f)("undo"),disabled:!K.value,onClick:le},{default:i(()=>[m(o(e(s)("customThemes.reset")),1)]),_:1},8,["icon","disabled"])),l(oe,{icon:e(f)("copy"),onClick:I},{default:i(()=>[m(o(e(s)("customThemes.copyJson")),1)]),_:1},8,["icon"]),l(oe,{icon:e(f)("download"),onClick:h},{default:i(()=>[m(o(e(s)("customThemes.export")),1)]),_:1},8,["icon"])]),l(S,{label:e(s)("customThemes.json"),prop:"source"},{label:i(()=>[t("span",ha,[m(o(e(s)("customThemes.json")),1),l(ta,{colors:N.value},null,8,["colors"])])]),default:i(()=>[l(A,{modelValue:E.source,"onUpdate:modelValue":F[1]||(F[1]=L=>E.source=L),type:"textarea",rows:20,readonly:C.value,spellcheck:"false","aria-label":e(s)("customThemes.json"),class:"json-editor"},null,8,["modelValue","readonly","aria-label"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),t("aside",{"aria-label":e(s)("customThemes.inspector")},[t("div",fa,[X.value.validJson?X.value.warnings.length?(c(),R(Y,{key:1,type:"warning",closable:!1,"show-icon":"",title:e(s)("customThemes.warningSummary",{count:X.value.warnings.length})},{icon:i(()=>[l(we,{name:"warning"})]),_:1},8,["title"])):(c(),R(Y,{key:2,type:"success",closable:!1,"show-icon":"",title:e(s)("customThemes.valid")},{icon:i(()=>[l(we,{name:"success"})]),_:1},8,["title"])):(c(),R(Y,{key:0,type:"error",closable:!1,"show-icon":"",title:e(s)("customThemes.invalidJson")},{icon:i(()=>[l(we,{name:"error"})]),_:1},8,["title"])),X.value.warnings.length?(c(),g("ul",ba,[(c(!0),g(O,null,se(X.value.warnings,(L,_e)=>(c(),g("li",{key:_e},o(e(s)(`customThemes.warnings.${L.code}`,{field:L.field})),1))),128))])):D("",!0)]),t("div",ya,[t("h3",null,o(e(s)("customThemes.preview")),1),l(oe,{icon:e(f)("zoom-in"),onClick:F[2]||(F[2]=L=>J.value=!0)},{default:i(()=>[m(o(e(s)("customThemes.expandPreview")),1)]),_:1},8,["icon"])]),t("p",_a,o(e(s)("customThemes.previewHint")),1),l(lt,{name:X.value.name??e(s)("customThemes.untitled"),colors:N.value},null,8,["name","colors"])],8,ga)]),J.value?(c(),R(fe,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ie),modelValue:J.value,"onUpdate:modelValue":F[3]||(F[3]=L=>J.value=L),title:e(s)("customThemes.preview"),width:"min(54rem, calc(100vw - 32px))","append-to-body":"","close-icon":e(f)("close")},{default:i(()=>[l(lt,{name:X.value.name??e(s)("customThemes.untitled"),colors:N.value,expanded:""},null,8,["name","colors"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):D("",!0)])}}}),wa=Se(ka,[["__scopeId","data-v-300a858a"]]),Sa={class:"quick-prompts-content"},Ta={class:"prompt-list-toolbar"},Ca={key:0,class:"prompt-state"},$a={key:1,class:"prompt-empty"},xa={key:2,class:"prompt-list"},Pa={class:"prompt-heading"},Ea={class:"prompt-actions"},Ia=ye({__name:"QuickPromptSettings",props:{prompts:{},loading:{type:Boolean},failed:{type:Boolean},request:{type:Function},refresh:{type:Function}},setup(d){const s=d,n=V(),w=V(),y=V(!1),p=V(0),P=V(!1),T=V(!1),C=V({phrase:"",prompt:""}),_=Z(()=>w.value===void 0),J={phrase:[{required:!0,message:()=>a("quickPrompts.phraseRequired"),trigger:"blur"},{validator:(N,Q,ee)=>typeof Q=="string"&&Q.trim().length<=80&&!/[\s#]/u.test(Q)?ee():ee(new Error(a("quickPrompts.phraseInvalid"))),trigger:"blur"}],prompt:[{required:!0,message:()=>a("quickPrompts.promptRequired"),trigger:"blur"}]};Ne(()=>{E()}),Je(v);async function E(){await s.refresh(),await Rt(),s.failed||(T.value=!0)}function ne(){p.value+=1,P.value=!1,w.value=void 0,C.value={phrase:"",prompt:""},y.value=!0}function K(N){p.value+=1,P.value=!1,w.value=N,C.value={phrase:N.phrase,prompt:N.prompt},y.value=!0}function v(){p.value+=1,P.value=!1,y.value=!1,w.value=void 0}async function ae(){if(!y.value||P.value)return;const N=p.value;if(!(!await n.value?.validate().catch(()=>!1)||N!==p.value||P.value)){P.value=!0;try{const ee=JSON.stringify(C.value);if(w.value===void 0?await s.request("/api/quick-prompts",{method:"POST",body:ee}):await s.request(`/api/quick-prompts/${encodeURIComponent(w.value.id)}`,{method:"PATCH",body:ee}),N!==p.value||(await s.refresh(),N!==p.value))return;W(a("quickPrompts.saved"),"success"),v()}catch(ee){N===p.value&&W(a("quickPrompts.saveFailed",{value0:$e(ee)}),"error",ee)}finally{N===p.value&&(P.value=!1)}}}async function X(N){try{await xe.confirm(a("quickPrompts.removeConfirmation",{value0:`#${N.phrase}`}),a("quickPrompts.remove"),{closeIcon:f("close"),icon:f("warning"),type:"warning"}),await s.request(`/api/quick-prompts/${encodeURIComponent(N.id)}`,{method:"DELETE"}),await s.refresh(),W(a("quickPrompts.removed"),"success")}catch(Q){Q!=="cancel"&&W(a("quickPrompts.removeFailed",{value0:$e(Q)}),"error",Q)}}return(N,Q)=>{const ee=Pe,M=Me,j=Re,G=Ue,B=Ge;return c(),R(ze,{loading:d.loading&&!T.value,variant:"page",class:"quick-prompts settings-panel"},{default:i(()=>[t("div",Sa,[t("header",null,[t("div",null,[t("h2",null,o(e(a)("quickPrompts.title")),1),t("p",null,o(e(a)("quickPrompts.summary")),1)])]),t("div",Ta,[l(ee,{icon:e(f)("plus"),type:"primary",disabled:d.loading,onClick:ne},{default:i(()=>[m(o(e(a)("quickPrompts.add")),1)]),_:1},8,["icon","disabled"])]),!d.loading&&d.failed?(c(),g("p",Ca,o(e(a)("quickPrompts.loadFailed")),1)):!d.loading&&d.prompts.length===0?(c(),g("div",$a,[t("p",null,o(e(a)("quickPrompts.empty")),1)])):d.prompts.length>0?(c(),g("div",xa,[(c(!0),g(O,null,se(d.prompts,q=>(c(),g("article",{key:q.id,class:"prompt-item"},[t("div",Pa,[t("code",null,"#"+o(q.phrase),1)]),t("p",null,o(q.prompt),1),t("div",Ea,[l(ee,{icon:e(f)("edit"),link:"",disabled:d.loading,onClick:le=>K(q)},{default:i(()=>[m(o(e(a)("quickPrompts.edit")),1)]),_:1},8,["icon","disabled","onClick"]),l(ee,{icon:e(f)("delete"),link:"",type:"danger",disabled:d.loading,onClick:le=>X(q)},{default:i(()=>[m(o(e(a)("quickPrompts.remove")),1)]),_:1},8,["icon","disabled","onClick"])])]))),128))])):D("",!0)]),y.value?(c(),R(B,{onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ie),key:p.value,"model-value":y.value,title:e(a)(_.value?"quickPrompts.add":"quickPrompts.edit"),width:"min(560px, calc(100vw - 32px))","append-to-body":"","before-close":v,"close-icon":e(f)("close")},{footer:i(()=>[l(ee,{onClick:v},{default:i(()=>[m(o(e(a)("common.cancel")),1)]),_:1}),l(ee,{type:"primary",loading:P.value,onClick:ae,"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("common.save")),1)]),_:1},8,["loading","loading-icon"])]),default:i(()=>[l(G,{ref_key:"form",ref:n,model:C.value,rules:J,"label-position":"top",onSubmit:Ee(ae,["prevent"])},{default:i(()=>[l(j,{label:e(a)("quickPrompts.phrase"),prop:"phrase"},{default:i(()=>[l(M,{modelValue:C.value.phrase,"onUpdate:modelValue":Q[0]||(Q[0]=q=>C.value.phrase=q),maxlength:"80",placeholder:e(a)("quickPrompts.phraseHint")},{prepend:i(()=>[...Q[2]||(Q[2]=[m("#",-1)])]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(j,{label:e(a)("quickPrompts.prompt"),prop:"prompt"},{default:i(()=>[l(M,{modelValue:C.value.prompt,"onUpdate:modelValue":Q[1]||(Q[1]=q=>C.value.prompt=q),maxlength:"10000",rows:7,resize:"vertical",type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","model-value","title","close-icon"])):D("",!0)]),_:1},8,["loading"])}}}),Va=Se(Ia,[["__scopeId","data-v-3aed0fc1"]]),Ra=["aria-busy"],Ua=["aria-label"],Na=["src","data-runner"],qa=["aria-labelledby"],Ma=["aria-label","disabled","placeholder"],Ga={class:"instruction-actions"},Aa=ye({__name:"PersonalInstructionsSettings",props:{request:{type:Function}},setup(d){const s=d,n=V(),w=V("COMMON"),y=V(!0),p=V(!1),P=V(!1),T=V({common:"",codex:"",claudeCode:"",openCode:"",marAgent:""}),C=V({content:""}),_=[{id:"COMMON",label:"personalInstructions.common",property:"common"},{id:"MAR_AGENT",label:"personalInstructions.marAgent",property:"marAgent",logo:vt},{id:"CODEX",label:"personalInstructions.codex",property:"codex",logo:to},{id:"CLAUDE_CODE",label:"personalInstructions.claudeCode",property:"claudeCode",logo:oo},{id:"OPENCODE",label:"personalInstructions.openCode",property:"openCode",logo:ao}],J=Z(()=>_.find(M=>M.id===w.value)),E={content:[{required:!0,message:()=>a("personalInstructions.promptRequired"),trigger:"blur"},{validator:(M,j,G)=>typeof j=="string"&&j.trim().length>0&&j.trim().length<=2e4?G():G(new Error(a("personalInstructions.promptInvalid"))),trigger:"blur"}]};Ne(()=>{X()});function ne(){T.value[J.value.property]=C.value.content}function K(M){w.value!==M&&(ne(),w.value=M,C.value.content=T.value[J.value.property],n.value?.clearValidate())}function v(M,j){let G=j;switch(M.key){case"ArrowRight":G=(j+1)%_.length;break;case"ArrowLeft":G=(j+_.length-1)%_.length;break;case"Home":G=0;break;case"End":G=_.length-1;break;case"Enter":case" ":break;default:return}M.preventDefault(),K(_[G].id),M.currentTarget.parentElement?.querySelectorAll('[role="tab"]')[G]?.focus()}function ae(){n.value?.validateField("content").catch(()=>{})}async function X(){y.value=!0,P.value=!1;try{T.value=(await s.request("/api/personal-instructions")).instructions,C.value.content=T.value[J.value.property]}catch(M){P.value=!0,W(a("personalInstructions.loadFailed"),"error",M)}finally{y.value=!1}}async function N(){if(p.value)return;const M=w.value,j=J.value.property,G=C.value.content;p.value=!0;try{if(!await n.value?.validate().catch(()=>!1))return;const q=await s.request(`/api/personal-instructions/${M}`,{method:"PUT",body:JSON.stringify({content:G})});Q(j,G,q.instructions),W(a("personalInstructions.saved"),"success")}catch(B){W(a("personalInstructions.saveFailed",{value0:$e(B)}),"error",B)}finally{p.value=!1}}function Q(M,j,G){const B=J.value.property===M;(B?C.value.content:T.value[M])===j&&(T.value[M]=G[M],B&&(C.value.content=G[M]))}async function ee(){if(p.value)return;const M=w.value,j=J.value.property,G=C.value.content;p.value=!0;try{await xe.confirm(a("personalInstructions.clearConfirmation"),a("personalInstructions.clear"),{closeIcon:f("close"),icon:f("warning"),type:"warning"});const B=await s.request(`/api/personal-instructions/${M}`,{method:"DELETE"});Q(j,G,B.instructions),w.value===M&&n.value?.clearValidate(),W(a("personalInstructions.cleared"),"success")}catch(B){B!=="cancel"&&W(a("personalInstructions.clearFailed",{value0:$e(B)}),"error",B)}finally{p.value=!1}}return(M,j)=>{const G=yo,B=Re,q=Pe,le=Ue,re=Ut;return ue((c(),g("section",{"element-loading-custom-class":"mar-page-loading",class:"personal-instructions settings-panel","aria-busy":y.value},[t("header",null,[t("h2",null,o(e(a)("personalInstructions.title")),1),t("p",null,o(e(a)("personalInstructions.scopeHelp")),1)]),t("div",{class:"instruction-scopes",role:"tablist","aria-label":e(a)("personalInstructions.title")},[(c(),g(O,null,se(_,(z,ge)=>l(G,{key:z.id,id:`instruction-scope-${z.id}`,checked:w.value===z.id,"aria-selected":w.value===z.id,tabindex:w.value===z.id?0:-1,"aria-controls":"personal-instructions-panel",role:"tab",onChange:me=>K(z.id),onKeydown:me=>v(me,ge)},{default:i(()=>[z.logo===void 0?(c(),R(we,{key:0,name:"document"})):(c(),g("img",{key:1,src:z.logo,"data-runner":z.id==="CODEX"?"codex":void 0,class:"runner-brand-icon","aria-hidden":"true"},null,8,Na)),t("span",null,o(e(a)(z.label)),1)]),_:2},1032,["id","checked","aria-selected","tabindex","onChange","onKeydown"])),64))],8,Ua),!y.value&&P.value?(c(),g("p",{key:0,id:"personal-instructions-panel",role:"tabpanel","aria-labelledby":`instruction-scope-${w.value}`,class:"instruction-state"},o(e(a)("personalInstructions.loadFailed")),9,qa)):(c(),R(le,{key:1,id:"personal-instructions-panel",role:"tabpanel","aria-labelledby":`instruction-scope-${w.value}`,ref_key:"form",ref:n,model:C.value,rules:E,disabled:y.value,"label-position":"top"},{default:i(()=>[l(B,{label:e(a)("personalInstructions.prompt"),prop:"content"},{default:i(()=>[ue(t("textarea",{"onUpdate:modelValue":j[0]||(j[0]=z=>C.value.content=z),"aria-label":e(a)("personalInstructions.prompt"),disabled:y.value,maxlength:2e4,placeholder:e(a)("personalInstructions.placeholder"),onBlur:ae},null,40,Ma),[[Nt,C.value.content]])]),_:1},8,["label"]),t("div",Ga,[l(q,{icon:e(f)("delete"),loading:p.value,onClick:ee,"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("personalInstructions.clear")),1)]),_:1},8,["icon","loading","loading-icon"]),l(q,{icon:e(f)("check"),type:"primary",loading:p.value,onClick:N,"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("common.save")),1)]),_:1},8,["icon","loading","loading-icon"])])]),_:1},8,["aria-labelledby","model","disabled"]))],8,Ra)),[[re,y.value]])}}}),Da=Se(Aa,[["__scopeId","data-v-6d137920"]]),Fa={class:"theme-row completion-preferences"},Ba={for:"appearance-prompt-completion",class:"theme-label"},Oa=ye({__name:"PromptCompletionPreferences",setup(d){const s=so();function n(w){try{s.setEnabled(w)}catch(y){W($e(y),"error",y)}}return(w,y)=>{const p=Qe,P=Ke;return c(),g("div",Fa,[t("label",Ba,o(e(a)("promptCompletion.work")),1),l(P,{id:"appearance-prompt-completion","model-value":e(s).enabled.value,class:"theme-select","aria-label":e(a)("promptCompletion.work"),"onUpdate:modelValue":n,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[l(p,{label:e(a)("promptCompletion.off"),value:!1},null,8,["label"]),l(p,{label:e(a)("promptCompletion.on"),value:!0},null,8,["label"])]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])])}}}),La=Se(Oa,[["__scopeId","data-v-608cb061"]]),Ha={class:"management-page"},Wa={class:"git-page-hint"},Ka={class:"table-actions"},Qa={class:"git-scope"},ja={key:1},Ja={class:"row-actions"},za={class:"git-scope"},Ya={key:1},Za={class:"detail-close"},Xa={class:"git-identity-fields"},es={class:"git-form-group-title"},ts={class:"git-hint"},os={class:"git-field-pair"},as={class:"git-hint"},ss={class:"git-hint"},ns=ye({__name:"PersonalGitSettings",props:{request:{type:Function}},setup(d){const s=d,n=new lo(s.request),w=V({credentials:[]}),y=V(!0),p=V(!1),P=V(!1),T=V(!1),C=V(!1),_=V(),J=V(!1),E=V(),ne=V(),K=()=>({name:"",remoteUrl:"",protocol:"HTTPS",username:"",commitName:"",commitEmail:"",secret:"",passphrase:"",clearPassphrase:!1}),v=V(K());let ae=!0;const X=Z(()=>q()?.protocol??v.value.protocol),N=Z(()=>Object.fromEntries(["name","remoteUrl","username","commitName","commitEmail","secret","passphrase"].map(b=>[b,[{validator:($,I,h)=>h(z(b))}]])));Ne(()=>{ee()}),ht(()=>{ae=!1,v.value=K()});function Q(b){ae&&(w.value=b,p.value=!0)}async function ee(){y.value=!0,P.value=!1;try{Q(await n.read())}catch(b){ae&&(P.value=!0,W($e(b),"error",b))}finally{ae&&(y.value=!1)}}function M(b){B(),v.value=b===void 0?K():{...K(),...b,remoteUrl:He(b),secret:"",passphrase:""},_.value=b,C.value=!0}function j(){C.value=!1,v.value=K(),_.value=void 0}function G(b){T.value||(E.value=b,J.value=!0)}function B(){J.value=!1,E.value=void 0}function q(){try{return qt(v.value.remoteUrl)}catch{return}}function le(){const b=q();b===void 0||b.protocol===v.value.protocol||_.value!==void 0||(v.value.protocol=b.protocol,v.value.secret="",v.value.passphrase="",v.value.clearPassphrase=!1)}function re(){const b=v.value,$=q();return{name:b.name,protocol:$?.protocol??b.protocol,host:$?.host??"",port:$?.port??(b.protocol==="SSH"?22:443),pathPrefix:$?.pathPrefix??"",username:$?.protocol==="SSH"?$.username??"":b.username,commitName:b.commitName,commitEmail:b.commitEmail,..._.value===void 0||b.secret.length>0?{secret:b.secret}:{},...($?.protocol??b.protocol)!=="SSH"?{}:b.clearPassphrase?{passphrase:null}:b.passphrase.length>0?{passphrase:b.passphrase}:{}}}function z(b){const $=q();if(b==="remoteUrl"&&($===void 0||_.value!==void 0&&$.protocol!==_.value.protocol))return new Error(a("personalGit.remoteInvalid"));const I=(_.value===void 0?et:tt).safeParse(re());if(I.success||!I.error.issues.some(te=>{const k=String(te.path[0]);return b==="remoteUrl"?["protocol","host","port","pathPrefix"].includes(k):k===b}))return;const H={name:"nameInvalid",remoteUrl:"remoteInvalid",username:"usernameInvalid",commitName:"identityInvalid",commitEmail:"identityInvalid",secret:"secretInvalid",passphrase:"passphraseInvalid"}[b];return H===void 0?void 0:new Error(a(`personalGit.${H}`))}async function ge(){if(!await ne.value?.validate().catch(()=>!1))return;const b=(_.value===void 0?et:tt).safeParse(re());if(b.success){T.value=!0;try{const $=_.value===void 0?await n.createCredential(b.data):await n.updateCredential(_.value.id,b.data);if(!ae)return;Q($),j(),W(a("personalGit.saved"),"success")}catch($){ae&&W($e($),"error",$)}finally{ae&&(T.value=!1)}}}async function me(b){try{await xe.confirm(a("personalGit.removeConfirm",{name:b.name}),a("personalGit.remove"),{closeIcon:f("close"),icon:f("warning"),type:"warning"})}catch{return}T.value=!0;try{Q(await n.removeCredential(b.id)),E.value?.id===b.id&&B()}catch($){ae&&W($e($),"error",$)}finally{ae&&(T.value=!1)}}return(b,$)=>{const I=Pe,h=ft,H=gt,te=pt,k=Le,F=dt,oe=Ge,de=Me,ie=Re,ve=no,he=Ue;return c(),R(ze,{class:"personal-git-settings",loading:y.value&&!p.value,variant:"page"},{default:i(()=>[t("div",Ha,[t("header",null,[t("div",null,[t("h2",null,o(e(a)("personalGit.title")),1)])]),P.value?(c(),R(I,{key:0,onClick:ee},{default:i(()=>[m(o(e(a)("personalGit.reload")),1)]),_:1})):(c(),g(O,{key:1},[t("p",Wa,o(e(a)("personalGit.summary")),1),t("div",Ka,[l(I,{type:"primary",icon:e(f)("plus"),disabled:y.value||T.value,onClick:$[0]||($[0]=A=>M()),"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("personalGit.add")),1)]),_:1},8,["icon","disabled","loading-icon"])]),l(H,{class:"clickable-rows",data:w.value.credentials,"empty-text":e(a)("personalGit.empty"),"table-layout":"auto",onRowClick:G},{default:i(()=>[l(h,{prop:"name",label:e(a)("personalGit.name"),"min-width":"140"},null,8,["label"]),l(h,{label:e(a)("personalGit.remote"),"min-width":"260"},{default:i(({row:A})=>[t("code",Qa,o(e(He)(A)),1)]),_:1},8,["label"]),l(h,{prop:"username",label:e(a)("personalGit.username"),"min-width":"140"},null,8,["label"]),l(h,{label:e(a)("personalGit.identity"),"min-width":"220"},{default:i(({row:A})=>[A.commitName?(c(),g(O,{key:0},[m(o(A.commitName)+" <"+o(A.commitEmail)+">",1)],64)):(c(),g("span",ja,o(e(a)("personalGit.identityEmpty")),1))]),_:1},8,["label"]),l(h,{label:e(a)("personalGit.actions"),width:"180"},{default:i(({row:A})=>[t("div",Ja,[l(I,{link:"",icon:e(f)("edit"),disabled:T.value,onClick:Ee(S=>M(A),["stop"])},{default:i(()=>[m(o(e(a)("personalGit.edit")),1)]),_:1},8,["icon","disabled","onClick"]),l(I,{link:"",type:"danger",icon:e(f)("delete"),disabled:T.value,onClick:Ee(S=>me(A),["stop"])},{default:i(()=>[m(o(e(a)("personalGit.remove")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","empty-text"])],64))]),J.value&&E.value?(c(),R(oe,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ie),modelValue:J.value,"onUpdate:modelValue":$[1]||($[1]=A=>J.value=A),title:e(a)("personalGit.detail"),width:"min(720px, calc(100vw - 32px))","append-to-body":"",onClosed:B,"close-icon":e(f)("close")},{footer:i(()=>[t("div",Za,[l(I,{disabled:T.value,onClick:B},{default:i(()=>[m(o(e(a)("personalGit.close")),1)]),_:1},8,["disabled"])])]),default:i(()=>[l(F,{column:1,border:""},{default:i(()=>[l(te,{label:e(a)("personalGit.credentialId")},{default:i(()=>[m(o(E.value.id),1)]),_:1},8,["label"]),l(te,{label:e(a)("personalGit.name")},{default:i(()=>[m(o(E.value.name),1)]),_:1},8,["label"]),l(te,{label:e(a)("personalGit.remote")},{default:i(()=>[t("code",za,o(e(He)(E.value)),1)]),_:1},8,["label"]),E.value.protocol==="HTTPS"?(c(),R(te,{key:0,label:e(a)("personalGit.username")},{default:i(()=>[m(o(E.value.username),1)]),_:1},8,["label"])):D("",!0),l(te,{label:e(a)("personalGit.identity")},{default:i(()=>[E.value.commitName?(c(),g(O,{key:0},[m(o(E.value.commitName)+" <"+o(E.value.commitEmail)+">",1)],64)):(c(),g("span",Ya,o(e(a)("personalGit.identityEmpty")),1))]),_:1},8,["label"]),l(te,{label:e(a)("personalGit.secretStatus")},{default:i(()=>[l(k,{type:E.value.hasSecret?"success":"info"},{default:i(()=>[m(o(e(a)(E.value.hasSecret?"personalGit.configured":"personalGit.notConfigured")),1)]),_:1},8,["type"])]),_:1},8,["label"]),E.value.protocol==="SSH"?(c(),R(te,{key:1,label:e(a)("personalGit.passphraseStatus")},{default:i(()=>[l(k,{type:E.value.hasPassphrase?"success":"info"},{default:i(()=>[m(o(e(a)(E.value.hasPassphrase?"personalGit.configured":"personalGit.notConfigured")),1)]),_:1},8,["type"])]),_:1},8,["label"])):D("",!0)]),_:1})]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):D("",!0),C.value?(c(),R(oe,{key:1,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ie),modelValue:C.value,"onUpdate:modelValue":$[10]||($[10]=A=>C.value=A),title:e(a)(_.value?"personalGit.editCredential":"personalGit.add"),width:"min(620px, calc(100vw - 32px))","append-to-body":"","close-on-click-modal":!T.value,"close-on-press-escape":!T.value,"show-close":!T.value,onClosed:j,"close-icon":e(f)("close")},{footer:i(()=>[l(I,{disabled:T.value,onClick:j},{default:i(()=>[m(o(e(a)("personalGit.cancel")),1)]),_:1},8,["disabled"]),l(I,{type:"primary",loading:T.value,onClick:ge,"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("personalGit.save")),1)]),_:1},8,["loading","loading-icon"])]),default:i(()=>[l(he,{ref_key:"credentialForm",ref:ne,model:v.value,rules:N.value,"label-position":"top",disabled:T.value,onSubmit:Ee(ge,["prevent"])},{default:i(()=>[l(ie,{prop:"name",label:e(a)("personalGit.name")},{default:i(()=>[l(de,{modelValue:v.value.name,"onUpdate:modelValue":$[2]||($[2]=A=>v.value.name=A),placeholder:e(a)("personalGit.nameHint"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(ie,{prop:"remoteUrl",label:e(a)("personalGit.remote")},{default:i(()=>[l(de,{modelValue:v.value.remoteUrl,"onUpdate:modelValue":$[3]||($[3]=A=>v.value.remoteUrl=A),placeholder:e(a)("personalGit.remoteHint"),maxlength:2048,onChange:le},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),X.value==="HTTPS"?(c(),R(ie,{key:0,prop:"username",label:e(a)("personalGit.username")},{default:i(()=>[l(de,{modelValue:v.value.username,"onUpdate:modelValue":$[4]||($[4]=A=>v.value.username=A),placeholder:e(a)("personalGit.usernameHint"),maxlength:320,autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):D("",!0),t("section",Xa,[t("p",es,o(e(a)("personalGit.identity")),1),t("p",ts,o(e(a)("personalGit.identityHint")),1),t("div",os,[l(ie,{prop:"commitName",label:e(a)("personalGit.commitName")},{default:i(()=>[l(de,{modelValue:v.value.commitName,"onUpdate:modelValue":$[5]||($[5]=A=>v.value.commitName=A),placeholder:e(a)("personalGit.namePlaceholder"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(ie,{prop:"commitEmail",label:e(a)("personalGit.email")},{default:i(()=>[l(de,{modelValue:v.value.commitEmail,"onUpdate:modelValue":$[6]||($[6]=A=>v.value.commitEmail=A),placeholder:e(a)("personalGit.emailPlaceholder"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"])])]),l(ie,{prop:"secret",label:e(a)(X.value==="SSH"?"personalGit.privateKey":"personalGit.password")},{default:i(()=>[l(de,{modelValue:v.value.secret,"onUpdate:modelValue":$[7]||($[7]=A=>v.value.secret=A),type:X.value==="SSH"?"textarea":"password",rows:5,placeholder:e(a)(_.value?"personalGit.keepSecret":X.value==="SSH"?"personalGit.keyHint":"personalGit.secretHint"),autocomplete:"new-password",maxlength:32768},null,8,["modelValue","type","placeholder"])]),_:1},8,["label"]),X.value==="SSH"?(c(),g(O,{key:1},[l(ie,{prop:"passphrase",label:e(a)("personalGit.passphrase")},{default:i(()=>[l(de,{modelValue:v.value.passphrase,"onUpdate:modelValue":$[8]||($[8]=A=>v.value.passphrase=A),type:"password",disabled:v.value.clearPassphrase,placeholder:e(a)(_.value?.hasPassphrase?"personalGit.keepPassphrase":"personalGit.passphraseHint"),autocomplete:"new-password",maxlength:4096},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),_.value?.hasPassphrase?(c(),R(ve,{key:0,modelValue:v.value.clearPassphrase,"onUpdate:modelValue":$[9]||($[9]=A=>v.value.clearPassphrase=A)},{default:i(()=>[m(o(e(a)("personalGit.clearPassphrase")),1)]),_:1},8,["modelValue"])):D("",!0),t("p",as,o(e(a)("personalGit.sshNotice")),1)],64)):D("",!0),t("p",ss,o(e(a)("personalGit.secretNotice")),1)]),_:1},8,["model","rules","disabled"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close","close-icon"])):D("",!0)]),_:1},8,["loading"])}}}),ls=Se(ns,[["__scopeId","data-v-ec40dd01"]]),rt=6e4;class is{constructor(s,n){this.request=s,this.reportError=n}request;reportError;pagination=uo({context:()=>JSON.stringify(this.recordsQuery??null),key:rs,reloadOnViewportChange:!1,read:async s=>{if(!this.recordsQuery)throw new Error("USAGE_QUERY_INVALID");this.begin();const n=await this.request(this.path("records",this.recordsQuery,s),{signal:this.abort.signal,cache:"no-store"});return ct(n,s)}});state=je({loading:!1,loadingPage:Z(()=>this.pagination.loading.value),refreshing:!1,failed:!1,refreshFailed:!1,lastRefreshedAt:null,recordsStale:!1,page:Z(()=>this.pagination.page.value),total:Z(()=>String(this.pagination.total.value)),overview:void 0,records:Z(()=>this.pagination.items.value),availableModels:[]});generation=0;abort;query;recordsQuery;rollingWindow;interacting=!1;timer;visibility;nextRefreshAt=0;failures=0;async load(s,n={}){this.pagination.invalidate(n.reset!==!1);const w=this.begin();return this.query={...s},this.rollingWindow=n.rolling?s.to-s.from:void 0,this.state.loading=!0,this.state.failed=!1,n.reset!==!1&&(this.interacting=!1,this.state.overview=void 0,this.state.lastRefreshedAt=null,this.state.recordsStale=!1,this.recordsQuery=void 0),await this.readOverview(s,w,!1)}startAutoRefresh(s){this.visibility?.removeEventListener("visibilitychange",this.onVisibilityChange),this.visibility=s,s.addEventListener("visibilitychange",this.onVisibilityChange),this.nextRefreshAt||(this.nextRefreshAt=Date.now()+rt),this.schedule()}setRecordsInteracting(s){this.interacting=s}get preserveRecords(){return this.state.page>1||this.interacting||this.state.recordsStale||this.pagination.failure.value!==void 0}async readOverview(s,n,w){const y=w&&this.preserveRecords;try{const p={signal:this.abort.signal,cache:"no-store"},[P,T]=await Promise.all([this.request(this.path("overview",s),p),y?Promise.resolve(void 0):this.request(this.path("records",s),p)]);if(n!==this.generation)return!1;const C=T&&(!w||!this.preserveRecords)?ct(T,1):void 0;return this.state.overview=P,C?(this.recordsQuery={...s},this.pagination.replace(C),this.state.recordsStale=!1):this.state.recordsStale=!0,(this.state.availableModels.length===0||this.isUnfiltered(s))&&(this.state.availableModels=P.models),this.state.lastRefreshedAt=Date.now(),this.state.failed=!1,this.state.refreshFailed=!1,this.failures=0,!0}catch(p){return n!==this.generation||(this.abort?.abort(),this.state.failed=!0,this.state.refreshFailed=w,this.failures++,w||this.reportError(p)),!1}finally{n===this.generation&&(this.state.loading=!1,this.state.refreshing=!1,this.nextRefreshAt=Date.now()+Math.min(3e5,rt*2**Math.min(this.failures,3)),this.schedule())}}async goToPage(s){!this.recordsQuery||this.state.loading||this.state.loadingPage||s<1||s>Math.ceil(Number(this.state.total)/20)||(await this.pagination.setPage(s),this.schedule())}async loadMore(s=!1){!this.recordsQuery||this.state.loading||(await this.pagination.loadMore(s),this.schedule())}async retryPage(){await this.pagination.retry(),this.schedule()}begin(){return this.clearTimer(),this.abort?.abort(),this.abort=new AbortController,this.state.loading=!1,this.state.refreshing=!1,++this.generation}onVisibilityChange=()=>{this.clearTimer(),this.visibility?.visibilityState!=="visible"&&this.state.refreshing&&(this.generation++,this.abort?.abort(),this.state.refreshing=!1),this.schedule()};clearTimer(){this.timer!==void 0&&clearTimeout(this.timer),this.timer=void 0}schedule(){this.clearTimer(),!(this.visibility?.visibilityState!=="visible"||!this.query||this.state.loading||this.state.loadingPage||this.state.refreshing)&&(this.timer=setTimeout(()=>{const s={...this.query};this.rollingWindow!==void 0&&(s.to=Date.now(),s.from=s.to-this.rollingWindow);const n=this.begin();this.state.refreshing=!0,this.readOverview(s,n,!0)},Math.max(0,this.nextRefreshAt-Date.now())))}dispose(){this.clearTimer(),this.visibility?.removeEventListener("visibilitychange",this.onVisibilityChange),this.visibility=void 0,this.generation++,this.abort?.abort(),this.query=void 0,this.recordsQuery=void 0,this.pagination.dispose(),this.state.loading=!1,this.state.refreshing=!1,this.state.overview=void 0,this.state.availableModels=[]}path(s,n,w=1){const y=new URLSearchParams;for(const[p,P]of Object.entries(n))P!==void 0&&y.set(p,String(P));return s==="records"&&y.set("page",String(w)),`/api/me/usage/${s}?${y}`}isUnfiltered(s){return s.runner===void 0&&s.model===void 0&&s.mode===void 0}}function ct(d,s){if(!/^(0|[1-9]\d*)$/u.test(d.total))throw new Error("USAGE_PAGE_RESPONSE_INVALID");const n=Number(d.total),w=d.page??s;if(!Number.isSafeInteger(n)||!Number.isSafeInteger(w)||w<1)throw new Error("USAGE_PAGE_RESPONSE_INVALID");return{items:d.records,page:w,pageSize:20,total:n,hasMore:BigInt(w)*20n<BigInt(d.total)}}function rs(d){return d.ledgerId??d.recordId}function cs(d,s,n){const w=BigInt(s??"0"),y=w===0n?0n:(BigInt(d??"0")*1000n+w/2n)/w;return new Intl.NumberFormat(n,{style:"percent",maximumFractionDigits:1}).format(Number(y)/1e3)}const us={class:"usage-content"},ds={class:"refresh-actions"},ps={class:"metadata",role:"status"},ms={class:"metadata"},vs=["aria-label"],hs=["aria-pressed","onClick"],gs={key:0,class:"metadata"},fs={key:1,class:"overview"},bs={class:"usage-count",tabindex:"0"},ys=["tabindex"],_s={class:"usage-count",tabindex:"0"},ks={class:"usage-count",tabindex:"0"},ws={class:"metadata"},Ss={class:"section-heading"},Ts={class:"usage-count",tabindex:"0"},Cs={class:"metadata"},$s={key:0,class:"empty"},xs={key:1,class:"trend"},Ps={class:"legend"},Es=["tabindex"],Is=["aria-label"],Vs=["aria-label","transform","onMouseenter"],Rs=["y","width","height"],Us=["y","width","height"],Ns=["y","width","height"],qs=["width"],Ms={class:"axis-labels"},Gs={class:"mar-disclosure-summary"},As=["tabindex"],Ds={class:"section-heading"},Fs={class:"distributions"},Bs={key:0,class:"empty"},Os={key:1},Ls={class:"distribution-cache metadata"},Hs=["tabindex"],Ws={class:"usage-count",tabindex:"0"},Ks={class:"bar-track","aria-hidden":"true"},Qs={class:"section-heading"},js={key:2,class:"records-update"},Js={class:"metadata"},zs={class:"record-detail"},Ys=["tabindex"],Zs=["tabindex"],Xs={key:3},en=ye({__name:"UsageStatisticsSettings",props:{request:{type:Function}},setup(d){const s=d,{t:n,locale:w}=Ae(),y=new is(s.request,S=>W($e(S),"error",S)),p=y.state,P=Z(()=>p.loading&&!p.overview),T=y.pagination;po(T),qe(T.mobileViewport,()=>{q(!0)});const C=V(),_=je({period:"24h",range:null,runner:"",model:"",mode:"",purpose:"conversation"}),J=Intl.DateTimeFormat().resolvedOptions().timeZone,E=["mar-agent","codex","claude-code","opencode"],ne=["conversation","compact","prompt_completion","title","other"];function K(S){q(!0,S)}const v=V("totalTokens"),ae=["inputTokens","cacheReadTokens","outputTokens","totalTokens"],X={running:"primary",succeeded:"info",failed:"danger",cancelled:"info",interrupted:"warning"},N=V(),Q=Bt(),ee=Z(()=>{const S=Q.value;return S?{contextElement:S,getBoundingClientRect:()=>S.getBoundingClientRect()}:void 0});function M(S,u){Q.value=u.currentTarget,N.value=S}const j=Z(()=>p.availableModels.length>0?p.availableModels:p.overview?.models??[]),G=()=>{const S=Date.now();return Ft.parse({from:_.period==="custom"?_.range?.[0]?.getTime():S-(_.period==="24h"?864e5:7*864e5),to:_.period==="custom"?_.range?.[1]?.getTime():S,timeZone:J,..._.runner?{runner:_.runner}:{},..._.model?{model:_.model}:{},..._.mode?{mode:_.mode}:{},..._.purpose?{purpose:_.purpose}:{}})},B=Z(()=>({range:[{validator:(S,u,Y)=>{try{G(),Y()}catch{Y(new Error(n("usageStatistics.invalidRange")))}}}]}));async function q(S=!1,u){if(!await C.value?.validate().catch(()=>!1))return;u!==void 0&&(_.purpose=u),S&&(re=!1),await y.load(G(),{reset:S,rolling:_.period!=="custom"})&&(z.value=[],y.setRecordsInteracting(re))}function le(){C.value?.clearValidate("range"),(_.period!=="custom"||_.range)&&q(!0)}let re=!1;const z=V([]);function ge({order:S}){re=S!==null,y.setRecordsInteracting(re||z.value.length>0)}function me(S,u){z.value=u.map(he),y.setRecordsInteracting(re||z.value.length>0)}qe(()=>p.overview,()=>N.value=void 0),qe(()=>p.records,S=>{const u=new Set(S.map(he));z.value=z.value.filter(Y=>u.has(Y)),y.setRecordsInteracting(re||z.value.length>0)});function b(S,u=!1){return new Intl.NumberFormat(w.value,{notation:u?"compact":"standard",maximumFractionDigits:1}).format(BigInt(S??"0"))}function $(S){return S==null?n("usageStatistics.unknown"):vo(S)}function I(S){const u=b(S,!0),Y=b(S);return u===Y?Y:`${u} (${Y})`}function h(S,u){return BigInt(u)===0n?0:Number(BigInt(S)*10000n/BigInt(u))/1e4}function H(S,u=!1){return n("usageStatistics.cacheWithRate",{tokens:b(S.cacheReadTokens,u),rate:cs(S.cacheReadTokens,S.inputTokens,w.value)})}function te(S){return`${n("usageStatistics.cacheReadTokens")}: ${H(S)} · ${n("usageStatistics.cacheWriteTokens")}: ${b(S.cacheWriteTokens)}`}function k(S){return S.cacheReadTokens!=null||S.cacheWriteTokens!=null}const F=Z(()=>(p.overview?.buckets??[]).reduce((S,u)=>BigInt(u.totalTokens)>BigInt(S)?u.totalTokens:S,"0")),oe=S=>[...S].sort((u,Y)=>BigInt(u[v.value])===BigInt(Y[v.value])?u.key.localeCompare(Y.key):BigInt(u[v.value])>BigInt(Y[v.value])?-1:1),de=Z(()=>[{kind:"runners",groups:oe(p.overview?.runners??[])},{kind:"models",groups:oe(p.overview?.models??[])}]),ie=Z(()=>p.overview?[{label:"last24Hours",value:p.overview.last24Hours},{label:"last7Days",value:p.overview.last7Days}]:[]),ve=S=>n(`usageStatistics.runnerNames.${S}`),he=S=>S.ledgerId??S.recordId;function A(S,u,Y){if(S[Y]==null)return u[Y]==null?0:-1;if(u[Y]==null)return 1;const fe=BigInt(String(S[Y])),Te=BigInt(String(u[Y]));return fe===Te?0:fe>Te?1:-1}return Ne(()=>{T.start(),q(),y.startAutoRefresh(document)}),ht(()=>{y.dispose()}),(S,u)=>{const Y=Pe,fe=Qe,Te=Ke,L=Re,_e=co,bt=Ue,yt=Mt,Ce=ft,Ye=gt,Ze=ro,_t=io,kt=Le,be=Oe("tooltip");return c(),R(ze,{loading:P.value,variant:"page",class:"usage settings-panel","data-testid":"usage-statistics"},{default:i(()=>[t("div",us,[t("header",null,[t("h2",null,o(e(n)("usageStatistics.title")),1),t("div",ds,[t("span",ps,o(e(p).refreshFailed?e(n)("usageStatistics.refreshDelayed"):e(p).lastRefreshedAt?e(n)("usageStatistics.refreshed",{time:$(e(p).lastRefreshedAt)}):""),1),l(Y,{icon:e(f)("refresh"),loading:e(p).loading&&!P.value,disabled:P.value,onClick:u[0]||(u[0]=r=>q()),"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(n)("usageStatistics.refresh")),1)]),_:1},8,["icon","loading","disabled","loading-icon"])])]),t("p",ms,o(e(n)("usageStatistics.accountScope")),1),t("nav",{class:"usage-purposes","aria-label":e(n)("usageStatistics.purpose")},[(c(),g(O,null,se(ne,r=>t("button",{key:r,type:"button","aria-pressed":_.purpose===r,onClick:x=>K(r)},o(e(n)(`usageStatistics.purposes.${r}`)),9,hs)),64))],8,vs),e(p).overview?(c(),g("p",gs,o(e(n)("usageStatistics.overviewScope")),1)):D("",!0),e(p).overview?(c(),g("div",fs,[(c(!0),g(O,null,se(ie.value,r=>(c(),g("section",{key:r.label,class:"overview-cell"},[t("h3",null,o(e(n)(`usageStatistics.${r.label}`)),1),t("p",null,[m(o(e(n)("usageStatistics.input"))+" ",1),ue((c(),g("span",bs,[m(o(b(r.value.inputTokens,!0)),1)])),[[be,{content:b(r.value.inputTokens),touch:!0}]]),m(" · "+o(e(n)("usageStatistics.cache"))+" ",1),ue((c(),g("span",{class:ke({"usage-count":k(r.value)}),tabindex:k(r.value)?0:void 0},[m(o(H(r.value,!0)),1)],10,ys)),[[be,{touch:!0,content:te(r.value),disabled:!k(r.value)}]]),m(" · "+o(e(n)("usageStatistics.output"))+" ",1),ue((c(),g("span",_s,[m(o(b(r.value.outputTokens,!0)),1)])),[[be,{content:b(r.value.outputTokens),touch:!0}]])]),ue((c(),g("strong",ks,[m(o(b(r.value.totalTokens,!0)),1)])),[[be,{content:b(r.value.totalTokens),touch:!0}]]),t("span",null,o(e(n)("usageStatistics.totalTokens")),1),t("span",ws," · "+o(e(n)("usageStatistics.requests"))+" "+o(b(r.value.requests)),1)]))),128))])):D("",!0),l(bt,{ref_key:"form",ref:C,model:_,rules:B.value,class:"filters","label-position":"top",onSubmit:u[7]||(u[7]=Ee(r=>q(),["prevent"]))},{default:i(()=>[l(L,{label:e(n)("usageStatistics.range")},{default:i(()=>[l(Te,{modelValue:_.period,"onUpdate:modelValue":u[1]||(u[1]=r=>_.period=r),"aria-label":e(n)("usageStatistics.range"),onChange:le,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[l(fe,{label:e(n)("usageStatistics.last24Hours"),value:"24h"},null,8,["label"]),l(fe,{label:e(n)("usageStatistics.last7Days"),value:"7d"},null,8,["label"]),l(fe,{label:e(n)("usageStatistics.custom"),value:"custom"},null,8,["label"])]),_:1},8,["modelValue","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),l(L,{label:e(n)("usageStatistics.runner")},{default:i(()=>[l(Te,{modelValue:_.runner,"onUpdate:modelValue":u[2]||(u[2]=r=>_.runner=r),clearable:"",placeholder:e(n)("usageStatistics.all"),"aria-label":e(n)("usageStatistics.runner"),onChange:u[3]||(u[3]=r=>{_.model="",le()}),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[(c(),g(O,null,se(E,r=>l(fe,{key:r,label:ve(r),value:r},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),l(L,{label:e(n)("usageStatistics.model")},{default:i(()=>[l(Te,{modelValue:_.model,"onUpdate:modelValue":u[4]||(u[4]=r=>_.model=r),clearable:"",placeholder:e(n)("usageStatistics.all"),"aria-label":e(n)("usageStatistics.model"),onChange:le,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[(c(!0),g(O,null,se(j.value,r=>(c(),R(fe,{key:r.key,label:r.label||e(n)("usageStatistics.unknown"),value:r.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),l(L,{label:e(n)("usageStatistics.mode")},{default:i(()=>[l(Te,{modelValue:_.mode,"onUpdate:modelValue":u[5]||(u[5]=r=>_.mode=r),clearable:"",placeholder:e(n)("usageStatistics.all"),"aria-label":e(n)("usageStatistics.mode"),onChange:le,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[(c(),g(O,null,se(["work","conversation"],r=>l(fe,{key:r,label:e(n)(`usageStatistics.modes.${r}`),value:r},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),_.period==="custom"?(c(),R(L,{key:0,prop:"range",label:e(n)("usageStatistics.custom"),class:"custom-range"},{default:i(()=>[l(_e,{modelValue:_.range,"onUpdate:modelValue":u[6]||(u[6]=r=>_.range=r),type:"datetimerange","single-panel":"","validate-event":!1,"start-placeholder":e(n)("usageStatistics.from"),"end-placeholder":e(n)("usageStatistics.to"),onChange:le,"prefix-icon":e(f)("calendar"),"clear-icon":e(f)("clear-input")},{"prev-month":i(()=>[l(we,{name:"chevron-left"})]),"next-month":i(()=>[l(we,{name:"chevron-right"})]),"prev-year":i(()=>[l(we,{name:"chevrons-left"})]),"next-year":i(()=>[l(we,{name:"chevrons-right"})]),_:1},8,["modelValue","start-placeholder","end-placeholder","prefix-icon","clear-icon"])]),_:1},8,["label"])):D("",!0)]),_:1},8,["model","rules"]),e(p).overview?(c(),g(O,{key:2},[t("div",Ss,[t("h3",null,o(e(n)("usageStatistics.trend")),1),ue((c(),g("span",Ts,[m(o(e(n)("usageStatistics.selected",{tokens:b(e(p).overview.selected.totalTokens,!0),input:b(e(p).overview.selected.inputTokens,!0),cache:H(e(p).overview.selected,!0),output:b(e(p).overview.selected.outputTokens,!0),requests:b(e(p).overview.selected.requests)})),1)])),[[be,{content:e(n)("usageStatistics.selected",{tokens:b(e(p).overview.selected.totalTokens),input:b(e(p).overview.selected.inputTokens),cache:H(e(p).overview.selected),output:b(e(p).overview.selected.outputTokens),requests:b(e(p).overview.selected.requests)}),touch:!0}]])]),t("p",Cs,o(e(n)("usageStatistics.timeZone",{zone:e(J)})),1),e(p).overview.selected.requests==="0"?(c(),g("p",$s,o(e(n)("usageStatistics.empty")),1)):(c(),g("div",xs,[t("div",Ps,[u[14]||(u[14]=t("span",{class:"input-key"},null,-1)),m(o(e(n)("usageStatistics.input"))+" ",1),u[15]||(u[15]=t("span",{class:"cache-key"},null,-1)),ue((c(),g("span",{class:ke({"usage-count":k(e(p).overview.selected)}),tabindex:k(e(p).overview.selected)?0:void 0},[m(o(e(n)("usageStatistics.cache")),1)],10,Es)),[[be,{touch:!0,content:te(e(p).overview.selected),disabled:!k(e(p).overview.selected)}]]),u[16]||(u[16]=t("span",{class:"output-key"},null,-1)),m(o(e(n)("usageStatistics.output")),1)]),(c(),g("svg",{class:"usage-trend-chart",viewBox:"0 0 800 170",role:"img","aria-label":e(n)("usageStatistics.trend"),preserveAspectRatio:"none"},[u[17]||(u[17]=t("line",{x1:"0",y1:"155",x2:"800",y2:"155",class:"axis"},null,-1)),(c(!0),g(O,null,se(e(p).overview.buckets,(r,x)=>(c(),g("g",{key:r.from,class:"trend-bucket","aria-label":`${$(r.from)} – ${$(r.to)} · ${e(n)("usageStatistics.inputTokens")}: ${I(r.inputTokens)} · ${e(n)("usageStatistics.cache")}: ${H(r,!0)} · ${e(n)("usageStatistics.outputTokens")}: ${I(r.outputTokens)} · ${e(n)("usageStatistics.totalTokens")}: ${I(r.totalTokens)}`,transform:`translate(${x*800/e(p).overview.buckets.length},0)`,onMouseenter:De=>M(r,De),onMouseleave:u[8]||(u[8]=De=>N.value=void 0)},[t("rect",{class:"input-bar",x:2,y:155-h(r.inputTokens,F.value)*140,width:Math.max(1,800/e(p).overview.buckets.length-4),height:h(r.inputTokens,F.value)*140},null,8,Rs),t("rect",{class:"cache-bar",x:2,y:155-h(r.inputTokens,F.value)*140,width:Math.max(1,800/e(p).overview.buckets.length-4),height:Math.min(h(r.cacheReadTokens??"0",F.value),h(r.inputTokens,F.value))*140},null,8,Us),t("rect",{class:"output-bar",x:2,y:155-h(r.totalTokens,F.value)*140,width:Math.max(1,800/e(p).overview.buckets.length-4),height:h(r.outputTokens,F.value)*140},null,8,Ns),t("rect",{class:"bucket-hit-area",width:800/e(p).overview.buckets.length,y:"15",height:"140"},null,8,qs)],40,Vs))),128))],8,Is)),l(yt,Gt(e(At),{"virtual-triggering":"","virtual-ref":ee.value,visible:!!N.value,enterable:!1}),Dt({_:2},[N.value?{name:"content",fn:i(()=>[t("div",null,o($(N.value.from))+" – "+o($(N.value.to)),1),t("div",null,o(e(n)("usageStatistics.inputTokens"))+": "+o(I(N.value.inputTokens)),1),t("div",null,o(e(n)("usageStatistics.cache"))+": "+o(H(N.value,!0)),1),t("div",null,o(te(N.value)),1),t("div",null,o(e(n)("usageStatistics.outputTokens"))+": "+o(I(N.value.outputTokens)),1),t("div",null,o(e(n)("usageStatistics.totalTokens"))+": "+o(I(N.value.totalTokens)),1)]),key:"0"}:void 0]),1040,["virtual-ref","visible"]),t("div",Ms,[t("span",null,o($(e(p).overview.buckets[0]?.from)),1),t("span",null,o($(e(p).overview.buckets.at(-1)?.to)),1)]),t("details",null,[t("summary",Gs,[l(we,{class:"mar-disclosure-icon",name:"chevron-right"}),m(o(e(n)("usageStatistics.chartData")),1)]),l(Ye,{data:e(p).overview.buckets,"empty-text":e(n)("usageStatistics.empty")},{default:i(()=>[l(Ce,{label:e(n)("usageStatistics.time")},{default:i(({row:r})=>[m(o($(r.from))+" – "+o($(r.to)),1)]),_:1},8,["label"]),(c(),g(O,null,se(ae,r=>l(Ce,{key:r,label:r==="cacheReadTokens"?e(n)("usageStatistics.cache"):e(n)(`usageStatistics.${r}`),"min-width":r==="cacheReadTokens"?170:110},{default:i(({row:x})=>[ue((c(),g("span",{class:ke({"usage-count":r==="cacheReadTokens"?k(x):x[r]!=null}),tabindex:(r==="cacheReadTokens"?k(x):x[r]!=null)?0:void 0},[m(o(r==="cacheReadTokens"?H(x,!0):b(x[r],!0)),1)],10,As)),[[be,{touch:!0,content:r==="cacheReadTokens"?te(x):b(x[r]),disabled:r==="cacheReadTokens"?!k(x):x[r]==null}]])]),_:2},1032,["label","min-width"])),64))]),_:1},8,["data","empty-text"])])])),t("div",Ds,[t("h3",null,o(e(n)("usageStatistics.distribution")),1),l(_t,{modelValue:v.value,"onUpdate:modelValue":u[9]||(u[9]=r=>v.value=r),"aria-label":e(n)("usageStatistics.metric")},{default:i(()=>[l(Ze,{value:"totalTokens"},{default:i(()=>[m(o(e(n)("usageStatistics.tokens")),1)]),_:1}),l(Ze,{value:"requests"},{default:i(()=>[m(o(e(n)("usageStatistics.requests")),1)]),_:1})]),_:1},8,["modelValue","aria-label"])]),t("div",Fs,[(c(!0),g(O,null,se(de.value,r=>(c(),g("section",{key:r.kind},[t("h4",null,o(e(n)(`usageStatistics.${r.kind}`)),1),r.groups.length?(c(),g("ol",Os,[(c(!0),g(O,null,se(r.groups,x=>(c(),g("li",{key:x.key},[t("div",null,[t("span",null,o(r.kind==="runners"?ve(x.key):x.label||e(n)("usageStatistics.unknown")),1)]),t("div",Ls,[m(o(e(n)("usageStatistics.cache"))+" ",1),ue((c(),g("span",{class:ke({"usage-count":k(x)}),tabindex:k(x)?0:void 0},[m(o(H(x,!0)),1)],10,Hs)),[[be,{touch:!0,content:te(x),disabled:!k(x)}]]),m(" · "+o(e(n)(v.value==="totalTokens"?"usageStatistics.totalTokens":"usageStatistics.requests"))+" ",1),ue((c(),g("strong",Ws,[m(o(b(x[v.value],!0)),1)])),[[be,{content:b(x[v.value]),touch:!0}]])]),t("div",Ks,[t("span",{style:Be({width:`${h(x[v.value],r.groups[0][v.value])*100}%`})},null,4)])]))),128))])):(c(),g("p",Bs,o(e(n)("usageStatistics.empty")),1))]))),128))]),t("div",Qs,[t("h3",null,o(e(n)("usageStatistics.records")),1),t("span",null,o(e(n)("usageStatistics.recordsHint")),1)]),e(p).recordsStale?(c(),g("div",js,[t("span",Js,o(e(n)("usageStatistics.recordsSnapshot")),1),l(Y,{link:"",disabled:e(p).loading,onClick:u[10]||(u[10]=r=>q())},{default:i(()=>[m(o(e(n)("usageStatistics.updateRecords")),1)]),_:1},8,["disabled"])])):D("",!0),l(Ye,{data:e(p).records,"row-key":he,"expand-row-keys":z.value,"empty-text":e(n)("usageStatistics.empty"),class:"records","aria-busy":e(p).loadingPage,onSortChange:ge,onExpandChange:me},{default:i(()=>[l(Ce,{type:"expand"},{default:i(({row:r})=>[t("dl",zs,[(c(),g(O,null,se(["requestedModel","actualModel","sessionId","runId","requestId","responseId","cacheReadTokens","cacheWriteTokens","reasoningTokens"],x=>(c(),g(O,{key:x},[t("dt",null,o(e(n)(`usageStatistics.${x}`)),1),t("dd",null,[x.endsWith("Tokens")?ue((c(),g("span",{key:0,class:ke({"usage-count":x==="cacheReadTokens"?k(r):r[x]!=null}),tabindex:(x==="cacheReadTokens"?k(r):r[x]!=null)?0:void 0},[m(o(x==="cacheReadTokens"?H(r,!0):b(r[x],!0)),1)],10,Ys)),[[be,{touch:!0,content:x==="cacheReadTokens"?te(r):b(r[x]),disabled:x==="cacheReadTokens"?!k(r):r[x]==null}]]):(c(),g(O,{key:1},[m(o(r[x]??e(n)("usageStatistics.unknown")),1)],64))])],64))),64)),t("dt",null,o(e(n)("usageStatistics.coverageLabel")),1),t("dd",null,o(e(n)(`usageStatistics.coverages.${r.coverage}`))+" · "+o(e(n)(`usageStatistics.roles.${r.agentRole}`)),1)])]),_:1}),l(Ce,{prop:"endedAt",label:e(n)("usageStatistics.time"),sortable:"","min-width":"180"},{default:i(({row:r})=>[m(o($(r.endedAt)),1)]),_:1},8,["label"]),l(Ce,{prop:"runner",label:e(n)("usageStatistics.runner"),sortable:"","min-width":"110"},{default:i(({row:r})=>[m(o(ve(r.runner)),1)]),_:1},8,["label"]),l(Ce,{label:e(n)("usageStatistics.model"),"min-width":"160"},{default:i(({row:r})=>[m(o(r.actualModel??r.requestedModel??e(n)("usageStatistics.unknown")),1)]),_:1},8,["label"]),l(Ce,{label:e(n)("usageStatistics.purpose"),"min-width":"100"},{default:i(({row:r})=>[m(o(e(n)(`usageStatistics.purposes.${r.purpose}`)),1)]),_:1},8,["label"]),(c(),g(O,null,se(ae,r=>l(Ce,{key:r,prop:r,label:r==="cacheReadTokens"?e(n)("usageStatistics.cache"):e(n)(`usageStatistics.${r}`),sortable:"","sort-method":(x,De)=>A(x,De,r),"min-width":r==="cacheReadTokens"?170:110},{default:i(({row:x})=>[ue((c(),g("span",{class:ke({"usage-count":r==="cacheReadTokens"?k(x):x[r]!=null}),tabindex:(r==="cacheReadTokens"?k(x):x[r]!=null)?0:void 0},[m(o(r==="cacheReadTokens"?H(x,!0):b(x[r],!0)),1)],10,Zs)),[[be,{touch:!0,content:r==="cacheReadTokens"?te(x):b(x[r]),disabled:r==="cacheReadTokens"?!k(x):x[r]==null}]])]),_:2},1032,["prop","label","sort-method","min-width"])),64)),l(Ce,{label:e(n)("usageStatistics.state"),"min-width":"105"},{default:i(({row:r})=>[l(kt,{type:X[r.state],effect:"plain",role:"status","aria-label":e(n)(`usageStatistics.states.${r.state}`)},{default:i(()=>[m(o(e(n)(`usageStatistics.states.${r.state}`)),1)]),_:2},1032,["type","aria-label"])]),_:1},8,["label"])]),_:1},8,["data","expand-row-keys","empty-text","aria-busy"]),l(mo,{page:e(p).page,"page-size":20,total:Number(e(p).total),mobile:e(T).mobileViewport.value,"mobile-visible-count":e(p).records.length,"has-more":e(T).hasMore.value,loading:e(p).loading||e(p).loadingPage,"loading-more":e(T).loadingMore.value,failed:e(T).failure.value!==void 0,"incremental-failed":e(T).failure.value?.incremental===!0,error:e(T).failure.value?.error,"context-key":e(T).contextKey.value,"aria-label":e(n)("usageStatistics.pagination"),onPage:u[11]||(u[11]=r=>e(y).goToPage(r)),onLoadMore:u[12]||(u[12]=r=>e(y).loadMore(r)),onRetry:u[13]||(u[13]=r=>e(y).retryPage())},null,8,["page","total","mobile","mobile-visible-count","has-more","loading","loading-more","failed","incremental-failed","error","context-key","aria-label"])],64)):e(p).failed?(c(),g("p",Xs,o(e(n)("usageStatistics.retry")),1)):D("",!0)])]),_:1},8,["loading"])}}}),tn=Se(en,[["__scopeId","data-v-52cb37d8"]]),on={class:"system-notification-control"},an={class:"notification-channel"},sn={class:"notification-channel-info"},nn={role:"status"},ln={key:0,role:"status"},rn={class:"notification-channel-actions"},cn=ye({__name:"SystemNotificationControl",props:{service:{}},setup(d){const s=d,n=Z(()=>!s.service.enabled.value&&(["unsupported","denied"].includes(s.service.status.value)||s.service.mode==="mobile-push"&&!s.service.pushReady()&&s.service.pushStatus.value!=="unavailable"));return(w,y)=>{const p=Le,P=Pe;return c(),g("div",on,[t("div",an,[t("div",sn,[t("h3",null,o(e(a)(d.service.mode==="mobile-push"?"workbenchNotificationCenter.webPush.title":"workbenchNotificationCenter.systemNotifications.onlineTitle")),1),t("p",nn,[d.service.status.value==="enabled"||d.service.status.value==="disabled"?(c(),R(p,{key:0,type:d.service.status.value==="enabled"?"success":"info",effect:"plain"},{default:i(()=>[m(o(e(a)(`workbenchNotificationCenter.systemNotifications.${d.service.status.value}`)),1)]),_:1},8,["type"])):(c(),g(O,{key:1},[m(o(e(a)(`workbenchNotificationCenter.systemNotifications.${d.service.status.value}`)),1)],64))]),d.service.mode==="mobile-push"?(c(),g("p",ln,o(e(a)(`workbenchNotificationCenter.webPush.${d.service.pushStatus.value}`)),1)):D("",!0)]),t("div",rn,[l(P,{class:"text-action",link:"",icon:d.service.enabled.value?e(f)("power"):e(f)("notification"),loading:d.service.requesting.value,disabled:n.value,onClick:y[0]||(y[0]=T=>d.service.setEnabled(!d.service.enabled.value)),"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)(d.service.mode==="mobile-push"?d.service.enabled.value?"workbenchNotificationCenter.webPush.disable":"workbenchNotificationCenter.webPush.enable":d.service.enabled.value?"workbenchNotificationCenter.systemNotifications.disable":"workbenchNotificationCenter.systemNotifications.enable")),1)]),_:1},8,["icon","loading","disabled","loading-icon"]),d.service.mode==="mobile-push"&&d.service.enabled.value&&["actionRequired","unavailable"].includes(d.service.pushStatus.value)?(c(),R(P,{key:0,class:"text-action",link:"",icon:e(f)("notification"),onClick:y[1]||(y[1]=T=>d.service.enablePush())},{default:i(()=>[m(o(e(a)("workbenchNotificationCenter.webPush.enable")),1)]),_:1},8,["icon"])):D("",!0)])])])}}}),un=Se(cn,[["__scopeId","data-v-cdf1fe14"]]),dn={key:2,class:"full settings-panel"},pn={class:"account-summary"},mn=["aria-label"],vn={class:"admin-sessions-heading"},hn={key:0},gn={key:1},fn={class:"account-actions"},bn={key:0,class:"password-form-error",role:"alert"},yn={key:3,class:"full settings-panel"},_n={class:"registration-summary"},kn={key:0,class:"registration-guide"},wn={class:"registration-action"},Sn={key:1,class:"token registration-token"},Tn={key:5,class:"full settings-panel"},Cn={class:"account-summary"},$n={class:"theme-row"},xn={class:"theme-label",for:"appearance-theme"},Pn={class:"theme-row"},En={class:"theme-label",for:"appearance-file-editor"},In={class:"theme-row"},Vn={class:"theme-label",for:"appearance-icon-theme"},Rn={class:"theme-row"},Un={class:"theme-label",for:"appearance-language"},Nn={key:6,class:"full settings-panel"},qn={class:"account-summary"},Mn={key:9,class:"full settings-panel"},Gn={class:"account-summary"},An={class:"account-summary"},Dn={class:"shortcut-group","aria-labelledby":"shortcut-workspace"},Fn={id:"shortcut-workspace"},Bn={class:"shortcut-list"},On={class:"shortcut-group","aria-labelledby":"shortcut-files"},Ln={id:"shortcut-files"},Hn={class:"shortcut-list"},Wn={class:"shortcut-group","aria-labelledby":"shortcut-editing"},Kn={id:"shortcut-editing"},Qn={class:"shortcut-list"},jn={class:"shortcut-group","aria-labelledby":"shortcut-composer"},Jn={id:"shortcut-composer"},zn={class:"shortcut-list"},Yn={key:10,class:"about-settings full settings-panel"},Zn=["aria-label"],Xn=["src"],el={class:"pwa-actions"},tl={class:"third-party-scope"},ol={class:"third-party-groups"},al={class:"third-party-scope"},sl=ye({__name:"SettingsContent",props:{section:{},webVersion:{},pwaState:{},checkingForUpdates:{type:Boolean},sessions:{},newPassword:{},passwordValidationError:{},registrationToken:{},registrationLoading:{type:Boolean},loading:{type:Boolean},changePassword:{type:Function},formatSessionTime:{type:Function},request:{type:Function},quickPrompts:{},quickPromptsLoading:{type:Boolean},quickPromptsFailed:{type:Boolean},refreshQuickPrompts:{type:Function},systemNotifications:{}},emits:["clearPasswordError","refreshSessions","logoutSession","logout","createRegistrationToken","checkForUpdates","applyWebUpdate"],setup(d,{emit:s}){const n=Ot(),w=d,y=s,p=V(!1),P=mt(),T=P.theme,C=Yt(),_=C.theme,J=Xt(),E=J.mode,ne=Ht(),K=ne.locale,{t:v}=Ae(),ae=V(!1);let X;Ne(()=>{if(typeof window>"u")return;const I=window.matchMedia("(display-mode: standalone)"),h=()=>{ae.value=I.matches||navigator.standalone===!0};h(),I.addEventListener("change",h),X=()=>I.removeEventListener("change",h)}),Je(()=>X?.());const N=Z(()=>P.customThemes.value.map(I=>({id:I.id,name:Fe(I.source).name??v("customThemes.untitled")})));function Q(I){try{P.setTheme(I)}catch{W(v("customThemes.storageFailed"),"error")}}function ee(I){try{C.setTheme(I)}catch{W(v("customThemes.storageFailed"),"error")}}const M=w.webVersion,j=["web","server","execution","tools","icons","computerUse"],G=V(""),B=V(""),q=V(""),le=V(!1);let re=0;qe(p,()=>{re+=1,G.value="",B.value="",q.value="",le.value=!1,y("clearPasswordError")},{flush:"sync"}),qe(()=>w.section,I=>{I!=="account"&&me()});async function z(I){const h=K.value;ne.setLocale(I);try{await w.request("/api/auth/preferences/locale",{method:"PUT",body:JSON.stringify({locale:I})})}catch(H){ne.setLocale(h),W(a("common.localeUpdateFailed"),"error",H)}}async function ge(){if(w.loading||le.value)return;const I=re;le.value=!0;try{await w.changePassword({currentPassword:G.value,password:B.value,confirmation:q.value})&&I===re&&me()}finally{I===re&&(le.value=!1)}}function me(){p.value=!1}async function b(I){try{await xe.confirm(a("generated.settingsContent.confirmSignOutSession"),a("generated.settingsContent.signOut"),{closeIcon:f("close"),icon:f("warning"),type:"warning"})}catch{return}y("logoutSession",I)}async function $(){try{await xe.confirm(a("generated.settingsContent.confirmSignOut"),a("generated.settingsContent.signOut2"),{closeIcon:f("close"),icon:f("warning"),type:"warning"})}catch{return}y("logout")}return(I,h)=>{const H=Pe,te=Me,k=Re,F=Ue,oe=Ge,de=wt,ie=Qe,ve=Ke,he=pt,A=dt,S=Oe("tooltip");return c(),g("section",{class:ke(["settings-content",{"personal-instructions-content":d.section==="personal-instructions","page-settings-content":d.section==="usage"||d.section==="git"||d.section==="quick-prompts"}])},[d.section==="usage"?(c(),R(tn,{key:0,request:d.request},null,8,["request"])):d.section==="git"?(c(),R(ls,{key:1,request:d.request},null,8,["request"])):D("",!0),d.section==="account"?(c(),g("section",dn,[t("h2",null,o(e(a)("generated.settingsContent.accountSecurity")),1),t("p",pn,o(e(a)("generated.settingsContent.currentAccountAdminUpTo5Devices")),1),t("section",{class:"admin-sessions","aria-label":e(a)("generated.settingsContent.signInSessions")},[t("div",vn,[t("h3",null,o(e(a)("generated.settingsContent.signInSessions5",{value0:d.sessions.length})),1),ue(l(H,{class:"icon-action",icon:e(f)("refresh"),"aria-label":e(a)("generated.settingsContent.refreshSignInSessions"),text:"",onClick:h[0]||(h[0]=u=>y("refreshSessions"))},null,8,["icon","aria-label"]),[[S,e(a)("generated.settingsContent.refreshSignInSessions")]])]),d.sessions.length===0?(c(),g("p",hn,o(e(a)("generated.settingsContent.noActiveSignInSessions")),1)):(c(),g("ul",gn,[(c(!0),g(O,null,se(d.sessions,u=>(c(),g("li",{key:u.id},[t("strong",null,o(u.current?e(a)("generated.settingsContent.currentDevice"):e(a)("generated.settingsContent.signedInDevice")),1),ue((c(),g("span",null,[m(o(u.userAgent),1)])),[[S,u.userAgent]]),t("small",null,o(u.ipAddress)+" · "+o(e(a)("generated.settingsContent.signedIn"))+" "+o(d.formatSessionTime(u.createdAt))+" · "+o(e(a)("generated.settingsContent.expires"))+" "+o(d.formatSessionTime(u.expiresAt)),1),l(H,{link:"",type:"danger",icon:e(f)("delete"),onClick:Y=>b(u)},{default:i(()=>[m(o(e(a)("generated.settingsContent.signOut")),1)]),_:1},8,["icon","onClick"])]))),128))]))],8,mn),We(I.$slots,"account-identity",{},void 0,!0),t("div",fn,[l(H,{type:"primary",icon:e(f)("key"),onClick:h[1]||(h[1]=u=>p.value=!0)},{default:i(()=>[m(o(e(a)("generated.settingsContent.changePassword")),1)]),_:1},8,["icon"]),l(H,{loading:d.loading,plain:"",icon:e(f)("power"),onClick:$,"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("generated.settingsContent.signOut2")),1)]),_:1},8,["loading","icon","loading-icon"])]),p.value?(c(),R(oe,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ie),modelValue:p.value,"onUpdate:modelValue":h[8]||(h[8]=u=>p.value=u),title:e(a)("generated.settingsContent.changePassword2"),width:"min(420px, calc(100vw - 32px))","close-icon":e(f)("close")},{footer:i(()=>[l(H,{onClick:me},{default:i(()=>[m(o(e(a)("generated.settingsContent.cancel")),1)]),_:1}),l(H,{loading:d.loading||le.value,type:"primary",onClick:ge,"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("generated.settingsContent.confirmChange")),1)]),_:1},8,["loading","loading-icon"])]),default:i(()=>[l(F,{"label-position":"top",onSubmit:Ee(ge,["prevent"])},{default:i(()=>[l(k,{label:e(a)("generated.settingsContent.currentPassword"),required:""},{default:i(()=>[l(te,{modelValue:G.value,"onUpdate:modelValue":h[2]||(h[2]=u=>G.value=u),placeholder:e(a)("generated.settingsContent.enterCurrentPassword"),"aria-label":e(a)("generated.settingsContent.currentPassword2"),type:"password",autocomplete:"current-password",onInput:h[3]||(h[3]=u=>y("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),l(k,{label:e(a)("generated.settingsContent.newPassword"),required:""},{default:i(()=>[l(te,{modelValue:B.value,"onUpdate:modelValue":h[4]||(h[4]=u=>B.value=u),placeholder:e(a)("generated.settingsContent.enterNewPassword"),"aria-label":e(a)("generated.settingsContent.newPassword2"),type:"password",autocomplete:"new-password",onInput:h[5]||(h[5]=u=>y("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),l(k,{label:e(a)("generated.settingsContent.confirmNewPassword"),required:""},{default:i(()=>[l(te,{modelValue:q.value,"onUpdate:modelValue":h[6]||(h[6]=u=>q.value=u),placeholder:e(a)("generated.settingsContent.enterTheNewPasswordAgain"),"aria-label":e(a)("generated.settingsContent.confirmNewPassword2"),type:"password",autocomplete:"new-password",onInput:h[7]||(h[7]=u=>y("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),d.passwordValidationError?(c(),g("p",bn,o(d.passwordValidationError),1)):D("",!0)]),_:1})]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):D("",!0)])):d.section==="registration"?(c(),g("section",yn,[t("h2",null,o(e(a)("generated.settingsContent.nodeRegistration")),1),t("p",_n,o(e(a)("generated.settingsContent.createAOneTimeTokenThenComplete")),1),e(n)?(c(),g("p",kn,[l(de,{type:"primary",icon:e(f)("link"),underline:!1,href:e(ot)(e(K),"deployment/node-installation"),target:"_blank",rel:"noopener noreferrer"},{default:i(()=>[m(o(e(a)("generated.settingsContent.viewNodeDeploymentAndAutoStartGuide")),1)]),_:1},8,["icon","href"])])):D("",!0),t("div",wn,[We(I.$slots,"registration-owner",{},void 0,!0),l(H,{loading:d.registrationLoading,type:"primary",onClick:h[9]||(h[9]=u=>y("createRegistrationToken")),"loading-icon":e(f)("loading-action")},{default:i(()=>[m(o(e(a)("generated.settingsContent.createOneTimeNodeRegistrationToken")),1)]),_:1},8,["loading","loading-icon"])]),d.registrationToken?(c(),g("p",Sn,[t("code",null,o(d.registrationToken),1)])):D("",!0)])):d.section==="custom-themes"?(c(),R(wa,{key:4,class:"full"})):d.section==="appearance"?(c(),g("section",Tn,[t("h2",null,o(e(v)("settings.appearance")),1),t("p",Cn,o(e(v)("settings.appearanceSummary")),1),t("div",$n,[t("label",xn,o(e(v)("settings.theme")),1),l(ve,{id:"appearance-theme","model-value":e(T),class:"theme-select","aria-label":e(v)("settings.theme"),"onUpdate:modelValue":h[10]||(h[10]=u=>Q(u)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[l(ie,{label:e(v)("settings.light"),value:"daylight"},null,8,["label"]),l(ie,{label:e(v)("settings.dark"),value:"vscode-dark-2026"},null,8,["label"]),(c(!0),g(O,null,se(N.value,u=>(c(),R(ie,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),t("div",Pn,[t("label",En,o(e(v)("settings.defaultFileMode")),1),l(ve,{id:"appearance-file-editor","model-value":e(E),class:"theme-select","aria-label":e(v)("settings.defaultFileMode"),"onUpdate:modelValue":h[11]||(h[11]=u=>e(J).setMode(u)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[l(ie,{label:e(v)("settings.fileModeEdit"),value:"edit"},null,8,["label"]),l(ie,{label:e(v)("settings.fileModeReadOnly"),value:"read-only"},null,8,["label"])]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),t("div",In,[t("label",Vn,o(e(v)("settings.iconTheme")),1),l(ve,{id:"appearance-icon-theme","model-value":e(_),class:"theme-select","aria-label":e(v)("settings.iconTheme"),"onUpdate:modelValue":h[12]||(h[12]=u=>ee(u)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[(c(!0),g(O,null,se(e(Zt),u=>(c(),R(ie,{key:u.id,label:e(v)(u.labelKey),value:u.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),t("div",Rn,[t("label",Un,o(e(v)("common.language")),1),l(ve,{id:"appearance-language","model-value":e(K),class:"theme-select","aria-label":e(v)("common.language"),"onUpdate:modelValue":h[13]||(h[13]=u=>z(u)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:i(()=>[(c(!0),g(O,null,se(e(Lt),u=>(c(),R(ie,{key:u.value,label:u.nativeLabel,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),l(La)])):d.section==="notifications"&&d.systemNotifications?(c(),g("section",Nn,[t("h2",null,o(e(v)("workbenchNotificationCenter.systemNotifications.title")),1),t("p",qn,o(e(v)(d.systemNotifications.mode==="mobile-push"?"workbenchNotificationCenter.webPush.summary":"workbenchNotificationCenter.systemNotifications.summary")),1),l(un,{service:d.systemNotifications},null,8,["service"])])):d.section==="quick-prompts"?(c(),R(Va,{key:7,class:"full",prompts:d.quickPrompts,loading:d.quickPromptsLoading,failed:d.quickPromptsFailed,request:d.request,refresh:d.refreshQuickPrompts},null,8,["prompts","loading","failed","request","refresh"])):d.section==="personal-instructions"?(c(),R(Da,{key:8,class:"full",request:d.request},null,8,["request"])):d.section==="shortcuts"?(c(),g("section",Mn,[t("h2",null,o(e(a)("generated.settingsContent.keyboardShortcuts")),1),t("p",Gn,o(e(a)("generated.settingsContent.theFollowingShortcutsAreAvailableInThe")),1),t("p",An,o(e(a)("keyboardShortcuts.platformHint")),1),t("section",Dn,[t("h3",Fn,o(e(a)("shortcutGroups.workspace")),1),t("dl",Bn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(jt)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openRecentSessions")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).cycle[0])),1),h[17]||(h[17]=m(" / ",-1)),t("kbd",null,o(e(U)(e(ce).cycle[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.cycleWorkspaceTabs")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).cycle[2])),1),h[18]||(h[18]=m(" / ",-1)),t("kbd",null,o(e(U)(e(ce).cycle[3])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.cycleWorkspaceTabsWithCtrlTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).numbered[1]))+"…"+o(e(ce).numbered[9].key)+"/"+o(e(ce).numbered[0].key),1)]),t("dd",null,o(e(a)("keyboardShortcuts.selectWorkspaceTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).newSession[0])),1),h[19]||(h[19]=m(" / ",-1)),t("kbd",null,o(e(U)(e(ce).newSession[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openNewSession")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).close[0])),1),h[20]||(h[20]=m(" / ",-1)),t("kbd",null,o(e(U)(e(ce).close[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeWorkspaceTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).close[2])),1),h[21]||(h[21]=m(" / ",-1)),t("kbd",null,o(e(U)(e(ce).close[3])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeAllWorkspaceTabs")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).changes[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openGitChanges")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).terminal[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.focusWorkspaceTerminal")),1)])])]),t("section",On,[t("h3",Ln,o(e(a)("shortcutGroups.files")),1),t("dl",Hn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).quickOpen[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.quickOpenWorkspaceFile")),1)]),t("div",null,[t("dt",null,[h[22]||(h[22]=t("kbd",null,"↑",-1)),h[23]||(h[23]=m("/",-1)),h[24]||(h[24]=t("kbd",null,"↓",-1)),h[25]||(h[25]=m(", ",-1)),t("kbd",null,o(e(U)(e(pe).choose[0])),1),h[26]||(h[26]=m("/",-1)),t("kbd",null,o(e(U)(e(pe).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.quickOpenNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).choose[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.quickOpenSeparatePreview")),1)]),t("div",null,[h[27]||(h[27]=t("dt",null,[t("kbd",null,"Ctrl"),t("span",null,"+"),t("kbd",null,"Click")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.openCompanionPreview")),1)]),t("div",null,[h[28]||(h[28]=t("dt",null,[t("kbd",null,"←"),m("/"),t("kbd",null,"→"),m(", "),t("kbd",null,"Home"),m("/"),t("kbd",null,"End")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.fileTabNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeFileTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).back[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.previousPreviewLocation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).forward[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.nextPreviewLocation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).preview[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openMarkdownPreview")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeStandalonePreview")),1)])])]),t("section",Wn,[t("h3",Kn,o(e(a)("shortcutGroups.editing")),1),t("dl",Qn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(ce).search[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.searchWorkspaceContent")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).find[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.findInPreview")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(at)[0])),1),h[29]||(h[29]=m("/",-1)),t("kbd",null,o(e(U)(e(at)[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.findMatchNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeEmbeddedFind")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).symbols[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openEditorSymbols")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).toggleEdit[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.toggleFileEditing")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).selectAll[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.selectEditorContent")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).replace[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.replaceInEditor")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(pe).save[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.saveEditor")),1)])])]),t("section",jn,[t("h3",Jn,o(e(a)("shortcutGroups.composer")),1),t("dl",zn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(Jt)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openComposerModelMenu")),1)]),t("div",null,[h[30]||(h[30]=t("dt",null,[t("kbd",null,"Tab"),m("/"),t("kbd",null,"Shift"),t("span",null,"+"),t("kbd",null,"Tab")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.modelMenuGroup")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(st)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.sendMessage")),1)]),t("div",null,[h[31]||(h[31]=t("dt",null,[t("kbd",null,"Shift"),m("/"),t("kbd",null,"Alt"),t("span",null,"+"),t("kbd",null,"Enter")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.composerNewline")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(st)[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.replaceRunningMessage")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(zt)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.stopRun")),1)]),t("div",null,[h[32]||(h[32]=t("dt",null,[t("kbd",null,"@")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.openFileReferences")),1)]),t("div",null,[h[33]||(h[33]=t("dt",null,[t("kbd",null,"/")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.openAgentCommands")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(nt).save[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.saveQueuedMessage")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(U)(e(nt).execute[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.runQueuedMessage")),1)])])])])):d.section==="about"?(c(),g("section",Yn,[t("div",{class:"system-brand","aria-label":e(v)("settings.about")},[t("img",{src:e(vt),alt:""},null,8,Xn),t("div",null,[t("strong",null,o(e(a)("common.productName")),1),t("code",null,"v"+o(e(M)),1)])],8,Zn),l(A,{column:1,border:""},{default:i(()=>[l(he,{label:e(v)("webUpdate.displayModeLabel")},{default:i(()=>[m(o(e(v)(`webUpdate.displayMode.${ae.value?"standalone":"browser"}`)),1)]),_:1},8,["label"]),d.pwaState?(c(),R(he,{key:0,label:e(v)("webUpdate.offlineLabel")},{default:i(()=>[t("span",null,o(e(v)(`webUpdate.offline.${d.pwaState.offline}`)),1),t("div",el,[l(H,{loading:d.checkingForUpdates,onClick:h[14]||(h[14]=u=>y("checkForUpdates"))},{default:i(()=>[m(o(e(v)("webUpdate.check")),1)]),_:1},8,["loading"]),d.pwaState.update?(c(),R(H,{key:0,type:"primary",onClick:h[15]||(h[15]=u=>y("applyWebUpdate"))},{default:i(()=>[m(o(e(v)("webUpdate.apply")),1)]),_:1})):d.pwaState.reload?(c(),R(H,{key:1,onClick:h[16]||(h[16]=u=>y("applyWebUpdate"))},{default:i(()=>[m(o(e(v)(d.pwaState.reload.action==="activate"?"webUpdate.usePrepared":"webUpdate.reloadPrepared")),1)]),_:1})):D("",!0)])]),_:1},8,["label"])):D("",!0),e(n)?(c(),R(he,{key:1,label:e(v)("settings.documentation")},{default:i(()=>[l(de,{href:e(ot)(e(K),"getting-started/overview"),target:"_blank",underline:!1},{default:i(()=>[m(o(e(v)("settings.openDocumentation")),1)]),_:1},8,["href"])]),_:1},8,["label"])):D("",!0),l(he,{label:e(v)("settings.thirdPartyOpenSourceSoftware")},{default:i(()=>[t("p",tl,o(e(v)("settings.thirdPartySummary")),1),t("dl",ol,[(c(),g(O,null,se(j,u=>t("div",{key:u},[t("dt",null,o(e(v)("settings.thirdPartyGroups."+u+".title")),1),t("dd",null,o(e(v)("settings.thirdPartyGroups."+u+".components")),1)])),64))]),l(de,{class:"third-party-notices-link",href:"/THIRD_PARTY_NOTICES.txt",target:"_blank",rel:"noopener noreferrer",underline:!1},{default:i(()=>[m(o(e(v)("settings.viewThirdPartyNotices")),1)]),_:1}),t("p",al,o(e(v)("settings.thirdPartyDistributionNotices")),1)]),_:1},8,["label"])]),_:1})])):D("",!0)],2)}}}),si=Se(sl,[["__scopeId","data-v-286ce7a7"]]);export{si as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i from"./SkillCenterPage-D9xPQveQ.js";import{m as p,o as m,J as n,t as e}from"./index-BWIlWKS5.js";import"./el-alert-Cn0AWnUd.js";import"./vnode-D6yqEI54.js";import"./el-input-D9BwkQsR.js";import"./use-form-common-props-BpO5s-Fn.js";import"./index-DK80c6gZ.js";import"./el-select-SRr6i6V-.js";import"./el-scrollbar-CFgE8hiz.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BWEo081-.js";import"./el-table-column-BnSot1-z.js";import"./merge-DgRJxBw2.js";import"./isArrayLikeObject-m8OxXoHc.js";import"./mobile-dialog-return-service-CqaFAsb3.js";import"./el-checkbox-CRRoWixG.js";import"./last-DXTTfs9a.js";import"./el-tab-pane-B4j6ZEfi.js";import"./use-wheel-B3YUZzO5.js";/* empty css */import"./ManagementPagination-DxTGOxsB.js";import"./error-presentation-DmX7H6jr.js";import"./BusyIndicator-Dh5Sf1lg.js";import"./time-presentation-Bnb6ZzAp.js";import"./message-box-service-BbNoH9tP.js";import"./SkillDetailsDialog-DsxwEkoS.js";import"./catalog-page-service-TdH51Dah.js";import"./el-descriptions-BF9KG5zJ.js";import"./mcp-center-service-BBgPpeyn.js";import"./McpDetailsDialog-DO5svj2W.js";import"./conversation-history-UrDOgBLc.js";const j=p({__name:"SkillCenterPage",props:{request:{type:Function},nodes:{}},setup(r){function o(t){return t==="ENTERPRISE"?e("generated.skillCenterPage.enterprise"):t==="ORGANIZATION"?e("generated.skillCenterPage.organization"):e("generated.skillCenterPage.personal")}return(t,a)=>(m(),n(i,{request:r.request,nodes:r.nodes,"scope-label":o},null,8,["request","nodes"]))}});export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.management-page[data-v-b7834c50]>*{flex-shrink:0;min-width:0}.skill-management-tabs[data-v-b7834c50]{min-height:260px;min-width:0}.skill-management-tabs[data-v-b7834c50] .el-tabs__content{min-width:0}.skill-management-tabs[data-v-b7834c50] .el-tab-pane{display:grid;gap:14px;min-width:0}.section-heading h3[data-v-b7834c50]{margin:0;color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.section-heading[data-v-b7834c50]{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--mar-fill-hover);padding-top:14px}.section-heading p[data-v-b7834c50]{margin:2px 0 0;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta)}.source-search-bar[data-v-b7834c50]{display:flex;align-items:center;gap:12px;min-width:0}.source-search-bar[data-v-b7834c50] .el-select{width:min(320px,100%);min-width:200px}.toolbar[data-v-b7834c50]{flex:1 1 420px;min-width:0;max-width:620px}.catalog-filter-bar[data-v-b7834c50]{display:grid;gap:10px}.catalog-filter-bar[data-v-b7834c50] .el-input{width:min(620px,100%)}.skill-category-strip[data-v-b7834c50]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.skill-category-strip button[data-v-b7834c50]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-tertiary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.skill-category-strip button[data-v-b7834c50]:hover{border-color:var(--mar-text-faint);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.skill-category-strip button.selected[data-v-b7834c50]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.skill-category-strip button[data-v-b7834c50]:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.form-hint[data-v-b7834c50]{margin:-8px 0 14px;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta);line-height:1.5}.skill-tags[data-v-b7834c50]{display:flex;flex-wrap:wrap;gap:6px}.skill-table-section[data-v-b7834c50]{min-height:180px;min-width:0}.skill-empty[data-v-b7834c50]{border:1px dashed var(--mar-border-medium);border-radius:8px;background:var(--mar-bg-subtle);padding:20px;color:var(--mar-text-tertiary);font-size:var(--mar-font-size-body);text-align:center}.clickable-rows[data-v-b7834c50] .el-table__row{cursor:pointer}.row-actions[data-v-b7834c50]{display:flex;flex-wrap:wrap;gap:4px 8px}.table-meta[data-v-b7834c50]{display:block;margin-top:2px;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta)}@media(max-width:700px){.source-search-bar[data-v-b7834c50]{align-items:stretch;flex-direction:column}.source-search-bar[data-v-b7834c50] .el-select{width:100%}.toolbar[data-v-b7834c50] .el-button,.section-heading[data-v-b7834c50] .el-button{min-height:36px}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as He,E as Ze}from"./el-form-item-USuILRLw.js";import{a as Ge,E as je}from"./el-input-D9BwkQsR.js";import{E as We}from"./index-DK80c6gZ.js";import{E as Je,a as Qe}from"./el-select-SRr6i6V-.js";import{u as ie,m as re,E as Xe}from"./mobile-dialog-return-service-CqaFAsb3.js";import{E as Ye}from"./el-switch-0rpdXBjA.js";import{E as ea,a as aa}from"./el-table-column-BnSot1-z.js";import{E as la,a as ta}from"./el-tab-pane-B4j6ZEfi.js";import{m as na,T as oa,a2 as ia,$ as I,t as a,U as se,V as ra,o as g,n as M,W as P,q as o,K as i,Y as p,X as u,L as e,M as s,Z as ue,J as k,N as V,I as O,a3 as q,a4 as sa,a5 as ua,a6 as we,p as he,f,l as de,k as Ce,_ as da}from"./index-BWIlWKS5.js";import"./el-scrollbar-CFgE8hiz.js";/* empty css */import"./el-checkbox-CRRoWixG.js";import{w as ca,M as ga}from"./ManagementPagination-DxTGOxsB.js";import{f as ma}from"./time-presentation-Bnb6ZzAp.js";import{E as ce}from"./message-box-service-BbNoH9tP.js";import{c as pa,s as Z,S as fa}from"./SkillDetailsDialog-DsxwEkoS.js";import"./use-form-common-props-BpO5s-Fn.js";import"./vnode-D6yqEI54.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BWEo081-.js";import"./merge-DgRJxBw2.js";import"./isArrayLikeObject-m8OxXoHc.js";import"./use-wheel-B3YUZzO5.js";import"./last-DXTTfs9a.js";import"./error-presentation-DmX7H6jr.js";import"./BusyIndicator-Dh5Sf1lg.js";import"./catalog-page-service-TdH51Dah.js";import"./el-descriptions-BF9KG5zJ.js";const va={"element-loading-custom-class":"mar-page-loading",class:"management-page"},ka={class:"table-actions"},Sa={class:"source-search-bar"},ba={class:"toolbar"},Ma={class:"skill-table-section"},Pa={key:1,class:"skill-empty"},ya={class:"catalog-filter-bar"},wa=["aria-label"],ha=["onClick"],Ca={class:"skill-table-section"},_a={class:"table-meta"},Va={key:0,class:"skill-tags"},Ea={key:1,class:"skill-empty"},Ta={class:"form-hint"},Da=na({__name:"SkillSourceManagementPage",props:{request:{type:Function},writable:{type:Boolean},scopeLabel:{type:Function},loadExtension:{type:Function},sourceContext:{},catalogContext:{},ownershipRules:{},submitSource:{type:Function},submitFavorite:{type:Function}},emits:["openSource","openCatalog"],setup(v,{emit:_e}){const E=v,ge=_e,r=pa(E.request,{...E.submitSource===void 0?{}:{submitSource:E.submitSource},...E.submitFavorite===void 0?{}:{submitFavorite:E.submitFavorite}}),Ve=r.sources,c=r.catalogPage;ca(c);const T=f(!1),D=f(!1),A=f(!1),F=f(!1),R=f(!0),L=f(!1),B=f(new Set),G=f(),me=f(),pe=f(),fe=f(),j=f(),W=f(),z=f(),x=f({}),J=c.keyword,K=c.category,ve=f("source"),h=de({name:"",locator:""}),C=de({featured:!1,tags:[]}),w=de({featured:!1,tags:[]}),Q=Ce(()=>({name:[{required:!0,message:a("generated.skillSourceManagementPage.enterASourceName"),trigger:"blur"}],locator:[{required:!0,message:a("generated.skillSourceManagementPage.enterARepositoryURL"),trigger:"blur"},{validator:(n,t,d)=>{const m=typeof t=="string"?t.trim():"";/^https:\/\//u.test(m)||/^git@[A-Za-z0-9.-]+:[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)+(?:\.git)?$/u.test(m)?d():d(new Error(a("generated.skillSourceManagementPage.enterAnHTTPSOrGitSSHRepository")))},trigger:"blur"}],tags:[{validator:(n,t,d)=>{const m=Array.isArray(t)?t.map(y=>String(y).trim()):[];m.some(y=>y.length===0||y.length>32)?d(new Error(a("generated.skillSourceManagementPage.eachTagMustContain132Characters"))):new Set(m.map(y=>y.toLocaleLowerCase())).size!==m.length?d(new Error(a("generated.skillSourceManagementPage.duplicateTagsAreNotAllowed"))):d()},trigger:"change"}]})),X=Ce(()=>r.sources.value.find(n=>n.id===r.selectedSourceId.value)),Y=c.tags,ke=r.favorites;oa(()=>{c.start(),Ee()}),ia(()=>c.dispose());async function Ee(){R.value=!0;try{await S(async()=>{await Promise.all([r.loadSources(),r.loadCatalog()]),r.selectedSourceId.value!==""&&await ee(),await E.loadExtension?.()})}finally{R.value=!1}}async function S(n,t){try{await n(),t!==void 0&&I(t,"success")}catch(d){if(d===c.error.value)return;I(Z(d,a("generated.skillSourceManagementPage.theSkillSourceOperationDidNotComplete")),"error",d)}}function Te(){Object.assign(h,{name:"",locator:""}),ge("openSource"),T.value=!0}async function De(){await me.value?.validate().catch(()=>!1)&&await S(async()=>{await r.addSource({name:h.name.trim(),locator:h.locator.trim()}),T.value=!1},a("generated.skillSourceManagementPage.skillSourceAdded"))}function Ae(n){j.value=n,Object.assign(C,{featured:!1,tags:[]}),ge("openCatalog"),D.value=!0}function xe(n){z.value={name:n.name,description:n.description,source:n.source,...n.skillPath===null?{}:{path:n.skillPath},...n.installs===null?{}:{installs:n.installs}},F.value=!0}function Ue(n){z.value={name:n.name,description:"",source:n.locator,scope:U(n.scope),status:n.enabled?a("generated.skillSourceManagementPage.enabled"):a("generated.skillSourceManagementPage.disabled")},F.value=!0}function Ie(n){z.value={name:n.normalizedName,description:n.description,source:n.repositoryIdentity,scope:U(n.scope),path:n.skillPath,version:n.commitSha.slice(0,8),updatedAt:Me(n.updatedAt),featured:n.featured,tags:n.tags},F.value=!0}function Fe(n){W.value=n,w.featured=n.featured,w.tags=[...n.tags],A.value=!0}async function Re(){if(!await fe.value?.validate().catch(()=>!1)||W.value===void 0)return;const n=w.tags.map(t=>t.trim());await S(async()=>{await r.updatePresentation(W.value.id,{featured:w.featured,tags:n}),A.value=!1},a("generated.skillSourceManagementPage.skillInformationUpdated"))}async function Le(n){r.selectedSourceId.value=n,r.candidates.value=[],r.query.value="",await S(ee)}async function ee(){L.value=!0;try{await r.loadCandidates()}finally{L.value=!1}}async function Se(){L.value=!0;try{await r.search()}finally{L.value=!1}}async function be(n){const t=r.selectedSourceId.value;await n(),r.selectedSourceId.value!==""&&r.selectedSourceId.value!==t&&await ee()}async function Be(n){try{await ce.confirm(n.enabled?a("generated.skillSourceManagementPage.confirmDisableSkillSource",{value0:n.name}):a("generated.skillSourceManagementPage.confirmEnableSkillSource",{value0:n.name}),a("generated.skillSourceManagementPage.updateSkillSourceStatus"),{closeIcon:s("close"),icon:s("warning"),type:"warning",confirmButtonText:n.enabled?a("generated.skillSourceManagementPage.disable"):a("generated.skillSourceManagementPage.enable"),cancelButtonText:a("generated.skillSourceManagementPage.cancel2")})}catch(t){if(ae(t))return;I(Z(t,a("generated.skillSourceManagementPage.unableToConfirmSourceStatusChange")),"error",t);return}await S(()=>be(()=>r.setSourceEnabled(n.id,!n.enabled)),a("generated.skillSourceManagementPage.skillSourceStatusUpdated"))}async function Ne(){if(!await pe.value?.validate().catch(()=>!1)||j.value===void 0)return;const n=C.tags.map(t=>t.trim());await S(async()=>{await r.favorite(j.value,{featured:C.featured,tags:n}),D.value=!1},a("generated.skillSourceManagementPage.skillAddedToTheCatalog"))}async function $e(n){B.value=new Set([...B.value,n.id]);try{await S(async()=>{const t=await r.checkUpdate(n.id);x.value={...x.value,[n.id]:t},I(t.updateAvailable?a("generated.skillSourceManagementPage.updateAvailable"):a("generated.skillSourceManagementPage.alreadyUpToDate"),"info")})}finally{const t=new Set(B.value);t.delete(n.id),B.value=t}}async function Oe(n){G.value=n.id;try{await S(async()=>{await r.upgrade(n.id);const t={...x.value};delete t[n.id],x.value=t},a("generated.skillSourceManagementPage.catalogSkillUpdated"))}finally{G.value=void 0}}function Me(n){return ma(n)}async function qe(n){try{await ce.confirm(a("generated.skillSourceManagementPage.deleteSkillSource",{value0:n.name}),a("generated.skillSourceManagementPage.deleteSkillSource2"),{closeIcon:s("close"),icon:s("warning"),type:"warning",confirmButtonText:a("generated.skillSourceManagementPage.delete"),cancelButtonText:a("generated.skillSourceManagementPage.cancel")})}catch(t){if(ae(t))return;I(Z(t,a("generated.skillSourceManagementPage.unableToConfirmDeletionTryAgainLater")),"error",t);return}await S(()=>be(()=>r.removeSource(n.id)),a("generated.skillSourceManagementPage.skillSourceDeleted"))}async function ze(n,t){try{await ce.confirm(a("generated.skillSourceManagementPage.removeFromTheSkillCatalogInstalledCopies",{value0:t}),a("generated.skillSourceManagementPage.removeSkill"),{closeIcon:s("close"),icon:s("warning"),type:"warning",confirmButtonText:a("generated.skillSourceManagementPage.remove"),cancelButtonText:a("generated.skillSourceManagementPage.cancel2")})}catch(d){if(ae(d))return;I(Z(d,a("generated.skillSourceManagementPage.unableToConfirmRemovalTryAgainLater")),"error",d);return}await S(()=>r.remove(n),a("generated.skillSourceManagementPage.skillRemoved"))}function ae(n){return n==="cancel"||n==="close"}function U(n){return E.scopeLabel?.(n)??a("generated.skillSourceManagementPage.personal")}return(n,t)=>{const d=Ge,m=ea,y=We,le=aa,N=Qe,$=Je,H=je,Pe=la,Ke=ta,_=Ze,te=He,ne=Xe,ye=Ye,oe=ra;return se((g(),M("section",va,[P("div",ka,[o(d,{type:"primary",icon:e(s)("plus"),disabled:!v.writable||e(r).loading.value,onClick:Te},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.addSkillSource")),1)]),_:1},8,["icon","disabled"])]),o(le,{class:"clickable-rows skill-source-table",data:e(Ve),"row-key":"id",onRowClick:Ue},{default:i(()=>[o(m,{prop:"name",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(m,{label:e(a)("generated.skillSourceManagementPage.scope"),width:"100",sortable:"","sort-method":(l,b)=>U(l.scope).localeCompare(U(b.scope))},{default:i(({row:l})=>[p(u(U(l.scope)),1)]),_:1},8,["label","sort-method"]),o(m,{prop:"locator",label:e(a)("generated.skillSourceManagementPage.uRL"),"min-width":"280","show-overflow-tooltip":""},null,8,["label"]),o(m,{label:e(a)("generated.skillSourceManagementPage.status"),width:"110"},{default:i(({row:l})=>[o(y,{type:l.enabled?"success":"info",effect:"plain"},{default:i(()=>[p(u(l.enabled?e(a)("generated.skillSourceManagementPage.enabled"):e(a)("generated.skillSourceManagementPage.disabled")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),o(m,{label:e(a)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:l})=>[P("div",{class:"row-actions",onClick:t[0]||(t[0]=ue(()=>{},["stop"]))},[o(d,{link:"",icon:e(s)("power"),disabled:!v.writable||!l.manageable||e(r).loading.value,onClick:b=>Be(l)},{default:i(()=>[p(u(l.enabled?e(a)("generated.skillSourceManagementPage.disable"):e(a)("generated.skillSourceManagementPage.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),l.builtIn?V("",!0):(g(),k(d,{key:0,link:"",type:"danger",icon:e(s)("delete"),disabled:!v.writable||!l.manageable||e(r).loading.value,onClick:b=>qe(l)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.delete2")),1)]),_:1},8,["icon","disabled","onClick"]))])]),_:1},8,["label"])]),_:1},8,["data"]),o(Ke,{modelValue:ve.value,"onUpdate:modelValue":t[8]||(t[8]=l=>ve.value=l),class:"skill-management-tabs"},{default:i(()=>[o(Pe,{label:e(a)("generated.skillSourceManagementPage.sourceSkills"),name:"source"},{default:i(()=>[P("div",Sa,[o($,{"model-value":e(r).selectedSourceId.value,"aria-label":e(a)("generated.skillSourceManagementPage.selectASkillSource"),placeholder:e(a)("generated.skillSourceManagementPage.selectAnEnabledSkillSource"),disabled:e(r).loading.value,onChange:Le,"clear-icon":e(s)("clear-input"),"suffix-icon":e(s)("chevron-down")},{default:i(()=>[(g(!0),M(O,null,q(e(r).sources.value.filter(l=>l.enabled),l=>(g(),k(N,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","placeholder","disabled","clear-icon","suffix-icon"]),P("div",ba,[o(H,{modelValue:e(r).query.value,"onUpdate:modelValue":t[2]||(t[2]=l=>e(r).query.value=l),clearable:"",placeholder:e(a)("generated.skillSourceManagementPage.enterASkillNameOrDescription"),onKeyup:t[3]||(t[3]=sa(l=>S(Se),["enter"])),"clear-icon":e(s)("clear-input")},{append:i(()=>[o(d,{icon:e(s)("search"),disabled:!X.value?.enabled||e(r).loading.value,onClick:t[1]||(t[1]=l=>S(Se))},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.search")),1)]),_:1},8,["icon","disabled"])]),_:1},8,["modelValue","placeholder","clear-icon"])])]),se((g(),M("div",Ma,[e(r).candidates.value.length>0?(g(),k(le,{key:0,class:"clickable-rows source-skill-table",data:e(r).candidates.value,"row-key":"id",onRowClick:xe},{default:i(()=>[o(m,{prop:"name",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(m,{prop:"source",label:e(a)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(m,{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:i(({row:l})=>[p(u(l.description||e(a)("generated.skillSourceManagementPage.noDescriptionWasProvidedByThisSource")),1)]),_:1},8,["label"]),o(m,{label:e(a)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:l})=>[P("div",{class:"row-actions",onClick:t[4]||(t[4]=ue(()=>{},["stop"]))},[o(d,{link:"",icon:e(s)("plus"),disabled:!v.writable||e(r).loading.value,onClick:b=>Ae(l)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.addToCatalog")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["data"])):e(r).loading.value?V("",!0):(g(),M("div",Pa,u(X.value?.kind==="SKILLS_SH"?e(a)("generated.skillSourceManagementPage.noPopularSkillsAreAvailableEnterA"):X.value?e(a)("generated.skillSourceManagementPage.thisSourceHasNoAvailableSkills"):e(a)("generated.skillSourceManagementPage.selectAnEnabledSkillSource2")),1))])),[[oe,L.value&&!R.value]])]),_:1},8,["label"]),o(Pe,{label:e(a)("generated.skillSourceManagementPage.catalogSkills"),name:"catalog"},{default:i(()=>[P("div",ya,[o(H,{modelValue:e(J),"onUpdate:modelValue":t[5]||(t[5]=l=>ua(J)?J.value=l:null),clearable:"",placeholder:e(a)("generated.skillSourceManagementPage.searchSkillNamesOrDescriptions"),"clear-icon":e(s)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),P("div",{class:"skill-category-strip","aria-label":e(a)("generated.skillSourceManagementPage.catalogSkillCategories")},[P("button",{class:we({selected:e(K)===""}),onClick:t[6]||(t[6]=l=>K.value="")},u(e(a)("generated.skillSourceManagementPage.all")),3),(g(!0),M(O,null,q(e(Y),l=>(g(),M("button",{key:l,class:we({selected:e(K)===l}),onClick:b=>K.value=l},u(l),11,ha))),128))],8,wa)]),se((g(),M("div",Ca,[e(ke).length>0?(g(),k(le,{key:0,class:"clickable-rows catalog-skill-table",onSortChange:e(c).sort,data:e(ke),"row-key":"id",onRowClick:Ie},{default:i(()=>[o(m,{prop:"normalizedName",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"170"},null,8,["label"]),o(m,{prop:"repositoryIdentity",label:e(a)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(m,{label:e(a)("generated.skillSourceManagementPage.scope"),width:"100"},{default:i(({row:l})=>[p(u(U(l.scope)),1)]),_:1},8,["label"]),o(m,{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:i(({row:l})=>[p(u(l.description||e(a)("generated.skillSourceManagementPage.noDescriptionIsAvailableForThisSkill")),1)]),_:1},8,["label"]),o(m,{label:e(a)("generated.skillDetailsDialog.version"),"min-width":"170"},{default:i(({row:l})=>[P("span",null,u(l.commitSha.slice(0,8)),1),P("span",_a,u(e(a)("generated.skillSourceManagementPage.updated"))+" "+u(Me(l.updatedAt)),1)]),_:1},8,["label"]),o(m,{label:e(a)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:i(({row:l})=>[l.featured||l.tags.length>0?(g(),M("div",Va,[l.featured?(g(),k(y,{key:0,type:"warning",effect:"plain"},{default:i(()=>[p("★ "+u(e(a)("generated.skillSourceManagementPage.featured")),1)]),_:1})):V("",!0),(g(!0),M(O,null,q(l.tags,b=>(g(),k(y,{key:b,type:"info",effect:"plain"},{default:i(()=>[p(u(b),1)]),_:2},1024))),128))])):V("",!0)]),_:1},8,["label"]),o(m,{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"360"},{default:i(({row:l})=>[P("div",{class:"row-actions",onClick:t[7]||(t[7]=ue(()=>{},["stop"]))},[o(d,{link:"",icon:e(s)("edit"),disabled:!v.writable||!l.manageable||e(r).loading.value,onClick:b=>Fe(l)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.edit")),1)]),_:1},8,["icon","disabled","onClick"]),x.value[l.id]?.updateAvailable?(g(),k(d,{key:1,link:"",icon:e(s)("retry"),loading:G.value===l.id,disabled:!v.writable||!l.manageable||e(r).loading.value,onClick:b=>Oe(l),"loading-icon":e(s)("loading-action")},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.updateTo"))+" "+u(x.value[l.id].latestCommitSha.slice(0,8)),1)]),_:2},1032,["icon","loading","disabled","onClick","loading-icon"])):(g(),k(d,{key:0,link:"",icon:e(s)("refresh"),loading:B.value.has(l.id),disabled:!v.writable||!l.manageable||e(r).loading.value,onClick:b=>$e(l),"loading-icon":e(s)("loading-action")},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.checkForUpdates")),1)]),_:1},8,["icon","loading","disabled","onClick","loading-icon"])),o(d,{link:"",type:"danger",icon:e(s)("delete"),disabled:!v.writable||!l.manageable||e(r).loading.value,onClick:b=>ze(l.id,l.normalizedName)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.remove2")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["onSortChange","data"])):e(r).loading.value?V("",!0):(g(),M("div",Ea,u(e(r).favorites.value.length===0?e(a)("generated.skillSourceManagementPage.noCatalogSkills"):e(a)("generated.skillSourceManagementPage.noMatchingSkills")),1)),o(ga,{total:e(c).total.value,page:e(c).page.value,mobile:e(c).mobileViewport.value,"mobile-visible-count":e(c).mobileVisibleCount.value,loading:e(c).loading.value,"loading-more":e(c).loadingMore.value,"has-more":e(c).hasMore.value,onPage:e(c).setPage,failed:e(c).failure.value!==void 0,"incremental-failed":e(c).failure.value?.incremental===!0,error:e(c).failure.value?.error,"context-key":e(c).contextKey.value,onRetry:e(c).retry,onLoadMore:e(c).loadMore},null,8,["total","page","mobile","mobile-visible-count","loading","loading-more","has-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])])),[[oe,e(c).loading.value&&!R.value&&!e(c).loadingMore.value&&!e(c).failure.value]])]),_:1},8,["label"])]),_:1},8,["modelValue"]),T.value?(g(),k(ne,{key:0,onVnodeMounted:e(re),onVnodeBeforeUnmount:e(ie),modelValue:T.value,"onUpdate:modelValue":t[12]||(t[12]=l=>T.value=l),title:e(a)("generated.skillSourceManagementPage.addSkillSource2"),width:"min(520px, calc(100vw - 32px))","close-icon":e(s)("close")},{footer:i(()=>[o(d,{onClick:t[11]||(t[11]=l=>T.value=!1)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.cancel3")),1)]),_:1}),o(d,{type:"primary",loading:e(r).loading.value,onClick:De,"loading-icon":e(s)("loading-action")},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.add")),1)]),_:1},8,["loading","loading-icon"])]),default:i(()=>[o(te,{ref_key:"sourceForm",ref:me,model:{...v.sourceContext,...h},rules:{...v.ownershipRules,...Q.value},"label-position":"top"},{default:i(()=>[o(_,{label:e(a)("generated.skillSourceManagementPage.name2"),prop:"name"},{default:i(()=>[o(H,{modelValue:h.name,"onUpdate:modelValue":t[9]||(t[9]=l=>h.name=l),maxlength:"128"},null,8,["modelValue"])]),_:1},8,["label"]),o(_,{label:e(a)("generated.skillSourceManagementPage.repositoryURL"),prop:"locator"},{default:i(()=>[o(H,{modelValue:h.locator,"onUpdate:modelValue":t[10]||(t[10]=l=>h.locator=l),placeholder:e(a)("generated.skillSourceManagementPage.httpsGithubComOrgRepoOrGit")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),P("p",Ta,u(e(a)("generated.skillSourceManagementPage.gitRepositoriesUseTheServerProcessUser")),1),he(n.$slots,"source-ownership",{},()=>[o(_,{label:e(a)("generated.skillSourceManagementPage.scope2")},{default:i(()=>[o($,{"model-value":"PERSONAL","clear-icon":e(s)("clear-input"),"suffix-icon":e(s)("chevron-down")},{default:i(()=>[o(N,{value:"PERSONAL",label:e(a)("generated.skillSourceManagementPage.personal2")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0)]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):V("",!0),D.value?(g(),k(ne,{key:1,onVnodeMounted:e(re),onVnodeBeforeUnmount:e(ie),modelValue:D.value,"onUpdate:modelValue":t[16]||(t[16]=l=>D.value=l),title:e(a)("generated.skillSourceManagementPage.addToCatalog2"),width:"min(460px, calc(100vw - 32px))","close-icon":e(s)("close")},{footer:i(()=>[o(d,{onClick:t[15]||(t[15]=l=>D.value=!1)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.cancel4")),1)]),_:1}),o(d,{type:"primary",loading:e(r).loading.value,onClick:Ne,"loading-icon":e(s)("loading-action")},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.add2")),1)]),_:1},8,["loading","loading-icon"])]),default:i(()=>[o(te,{ref_key:"catalogForm",ref:pe,model:{...v.catalogContext,...C},rules:{...v.ownershipRules,...Q.value},"label-position":"top"},{default:i(()=>[he(n.$slots,"catalog-ownership",{},()=>[o(_,{label:e(a)("generated.skillSourceManagementPage.availability")},{default:i(()=>[o($,{"model-value":"PERSONAL","clear-icon":e(s)("clear-input"),"suffix-icon":e(s)("chevron-down")},{default:i(()=>[o(N,{value:"PERSONAL",label:e(a)("generated.skillSourceManagementPage.personal3")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0),o(_,{label:e(a)("generated.skillSourceManagementPage.featured2")},{default:i(()=>[o(ye,{modelValue:C.featured,"onUpdate:modelValue":t[13]||(t[13]=l=>C.featured=l)},null,8,["modelValue"])]),_:1},8,["label"]),o(_,{label:e(a)("generated.skillSourceManagementPage.tags"),prop:"tags"},{default:i(()=>[o($,{modelValue:C.tags,"onUpdate:modelValue":t[14]||(t[14]=l=>C.tags=l),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(a)("generated.skillSourceManagementPage.enterATagAndPressEnterUp"),"clear-icon":e(s)("clear-input"),"suffix-icon":e(s)("chevron-down")},{default:i(()=>[(g(!0),M(O,null,q(e(Y),l=>(g(),k(N,{key:l,label:l,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):V("",!0),A.value?(g(),k(ne,{key:2,onVnodeMounted:e(re),onVnodeBeforeUnmount:e(ie),modelValue:A.value,"onUpdate:modelValue":t[20]||(t[20]=l=>A.value=l),title:e(a)("generated.skillSourceManagementPage.editSkillInformation"),width:"min(460px, calc(100vw - 32px))","destroy-on-close":"","close-icon":e(s)("close")},{footer:i(()=>[o(d,{onClick:t[19]||(t[19]=l=>A.value=!1)},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.cancel5")),1)]),_:1}),o(d,{type:"primary",loading:e(r).loading.value,onClick:Re,"loading-icon":e(s)("loading-action")},{default:i(()=>[p(u(e(a)("generated.skillSourceManagementPage.save")),1)]),_:1},8,["loading","loading-icon"])]),default:i(()=>[o(te,{ref_key:"editForm",ref:fe,model:w,rules:Q.value,"label-position":"top"},{default:i(()=>[o(_,{label:e(a)("generated.skillSourceManagementPage.featured3")},{default:i(()=>[o(ye,{modelValue:w.featured,"onUpdate:modelValue":t[17]||(t[17]=l=>w.featured=l)},null,8,["modelValue"])]),_:1},8,["label"]),o(_,{label:e(a)("generated.skillSourceManagementPage.tags2"),prop:"tags"},{default:i(()=>[o($,{modelValue:w.tags,"onUpdate:modelValue":t[18]||(t[18]=l=>w.tags=l),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(a)("generated.skillSourceManagementPage.enterATagAndPressEnterUp2"),"clear-icon":e(s)("clear-input"),"suffix-icon":e(s)("chevron-down")},{default:i(()=>[(g(!0),M(O,null,q(e(Y),l=>(g(),k(N,{key:l,label:l,value:l},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):V("",!0),o(fa,{modelValue:F.value,"onUpdate:modelValue":t[21]||(t[21]=l=>F.value=l),details:z.value},null,8,["modelValue","details"])])),[[oe,R.value]])}}}),ol=da(Da,[["__scopeId","data-v-b7834c50"]]);export{ol as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as Ve}from"./el-alert-Cn0AWnUd.js";import{E as de,a as me}from"./el-form-item-USuILRLw.js";import{a as ce,E as pe}from"./el-input-D9BwkQsR.js";import{E as ge,a as fe}from"./el-select-SRr6i6V-.js";import{E as ye,u as te,m as ae}from"./mobile-dialog-return-service-CqaFAsb3.js";import{E as ke}from"./el-input-number-35uaUE0c.js";import{E as Te}from"./el-switch-0rpdXBjA.js";import{E as Se,a as Ee}from"./el-table-column-BnSot1-z.js";import{f as _,m as ve,t,o as g,n as S,I as G,q as o,K as r,Y as U,X as p,L as e,M as k,J as M,U as ne,W as h,a3 as re,a6 as Ue,V as be,N as j,k as H,$ as R,_ as _e,w as xe,T as Ie,l as Me}from"./index-BWIlWKS5.js";import"./el-scrollbar-CFgE8hiz.js";/* empty css */import"./el-checkbox-CRRoWixG.js";import{M as ue}from"./MarIcon-BJtUW72T.js";import{E as De}from"./message-box-service-BbNoH9tP.js";import"./conversation-history-UrDOgBLc.js";import{e as X}from"./error-presentation-DmX7H6jr.js";import"./vnode-D6yqEI54.js";import"./use-form-common-props-BpO5s-Fn.js";import"./index-DK80c6gZ.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BWEo081-.js";import"./index-DkG4qHEM.js";import"./merge-DgRJxBw2.js";import"./isArrayLikeObject-m8OxXoHc.js";import"./last-DXTTfs9a.js";const Ke={key:"skill-tls",field:"skillTlsVerificationDisabled",payloadField:"verificationDisabled",nameKey:"generated.systemConfigurationPage.disableSkillSourceTLSVerification",descriptionKey:"generated.systemConfigurationPage.keepThisOffByDefaultUseIt",type:"boolean",initialValue:!1},Ne={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},$e={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},Oe={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Fe(T,x=[]){const u=[...x,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},$e,Oe,Ne,Ke],P=new Map(u.map(i=>[i.key,i]));if(P.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=_(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),f=_({...w.value}),m=_(null),V=_(null),y=_(!1);function d(i){w.value=i,f.value={...i}}async function D(){if(!(y.value||V.value!==null)){y.value=!0;try{d(await T("/api/system-settings")),m.value=null}finally{y.value=!1}}}function K(i){!P.has(i)||y.value||V.value!==null||m.value!==null||(f.value={...w.value},m.value=i)}function N(i){m.value!==i||V.value!==null||(f.value={...w.value},m.value=null)}function $(i,l){if(i.type==="json"){if(typeof l!="string"||l.length>4096)return!1;try{const v=JSON.parse(l);return v!==null&&typeof v=="object"&&!Array.isArray(v)}catch{return!1}}if(i.type==="origin"){if(l==="")return!0;if(typeof l!="string"||l.length>253)return!1;try{const v=new URL(l);return v.origin===l&&(v.protocol==="https:"||v.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof l=="boolean":typeof l=="number"&&Number.isFinite(l)&&l>=i.min&&l<=i.max}function O(i,l){const v=P.get(i);v===void 0||m.value!==i||V.value!==null||!(v.type==="origin"||v.type==="json"?typeof l=="string"&&l.length<=(v.type==="json"?4096:253):$(v,l))||(f.value[v.field]=l)}async function F(i){const l=P.get(i);if(l===void 0||m.value!==i||V.value!==null||y.value)return!1;const v=f.value[l.field];if(!$(l,v))return!1;V.value=i;try{return d(await T(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[l.payloadField]:v})})),m.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:f,editingKey:m,savingKey:V,loading:y,load:D,beginEdit:K,cancelEdit:N,validValue:$,setDraft:O,save:F}}function Be(T){const x=_([]),u=_(!1),P=_(!1);async function w(){if(!u.value){u.value=!0;try{x.value=await T("/api/mail/templates")}finally{u.value=!1}}}async function f(V,y){return T("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:y})})}async function m(V,y){P.value=!0;try{await T("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:y})})}finally{P.value=!1}}return{templates:x,loading:u,busy:P,load:w,preview:f,test:m}}const Ae={class:"template-viewer"},je={class:"template-description"},Re={key:0,class:"template-layout"},Le=["aria-label"],qe=["aria-pressed","onClick"],Je={class:"template-choice__meta"},ze={class:"template-choice__name"},He={class:"template-choice__subject"},Ze={key:0,class:"template-preview"},We={class:"template-preview__header"},Ye={class:"template-preview__locale"},Ge=["srcdoc","title"],Xe={key:1,class:"template-preview__fallback"},Qe={key:1,class:"template-empty"},et=ve({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(T){const x=T,u=Be(x.request),P=_(!1),w=_(""),f=H(()=>u.templates.value.find(b=>b.id===w.value)),m=_(),V=_(!1);let y=0;const d=_(!1),D=_(),K=_(""),N=_(""),$=H(()=>u.templates.value.filter(b=>b.kind==="TEST")),O=H(()=>({email:K.value,templateId:N.value})),F={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:t("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?X(b):t("generated.systemConfigurationPage.mailOperationFailed")}async function l(){P.value=!0,y+=1,w.value="",m.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await q()}catch(b){R(i(b),"error",b)}}function v(b){w.value=b.id,m.value=void 0,q()}async function q(){const b=f.value;if(b===void 0||!P.value)return;const C=++y;V.value=!0;try{const I=await u.preview(b,t("generated.systemConfigurationPage.mailPreviewMessage"));P.value&&C===y&&w.value===b.id&&(m.value=I)}catch(I){C===y&&R(i(I),"error",I)}finally{C===y&&(V.value=!1)}}function Z(){K.value="",N.value=(f.value?.kind==="TEST"?f.value.id:$.value[0]?.id)??"",d.value=!0}async function J(){if(x.writable)try{await D.value?.validate(),await u.test(K.value,N.value),d.value=!1,R(t("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&R(i(b),"error",b)}}return(b,C)=>{const I=ce,W=ye,Q=pe,z=de,Y=fe,s=ge,a=me,E=be;return g(),S(G,null,[o(I,{icon:e(k)("mail"),onClick:l},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),P.value?(g(),M(W,{key:0,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:P.value,"onUpdate:modelValue":C[1]||(C[1]=c=>P.value=c),"append-to-body":"",title:e(t)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))","close-icon":e(k)("close")},{footer:r(()=>[o(I,{disabled:!T.writable||$.value.length===0||e(u).busy.value,onClick:Z},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(I,{onClick:C[0]||(C[0]=c=>P.value=!1)},{default:r(()=>[U(p(e(t)("common.close")),1)]),_:1})]),default:r(()=>[ne((g(),S("div",Ae,[h("p",je,p(e(t)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(g(),S("div",Re,[h("div",{class:"template-choices",role:"group","aria-label":e(t)("generated.systemConfigurationPage.mailTemplates")},[(g(!0),S(G,null,re(e(u).templates.value,c=>(g(),S("button",{key:c.id,type:"button",class:Ue(["template-choice",{"is-selected":w.value===c.id}]),"aria-pressed":w.value===c.id,onClick:ee=>v(c)},[h("span",Je,[U(p(e(t)(c.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),C[6]||(C[6]=h("span",{"aria-hidden":"true"},"·",-1)),U(" "+p(c.locale),1)]),h("span",ze,p(c.name),1),h("span",He,p(c.subject),1)],10,qe))),128))],8,Le),f.value?ne((g(),S("div",Ze,[h("div",We,[h("span",null,p(e(t)("generated.systemConfigurationPage.mailPreviewSample")),1),h("span",Ye,p(f.value.locale),1)]),m.value?.html?(g(),S("iframe",{key:0,class:"template-preview__document",srcdoc:m.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(t)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Ge)):(g(),S("div",Xe,[h("span",null,p(e(t)("generated.systemConfigurationPage.mailSubject")),1),h("strong",null,p(m.value?.subject??f.value.subject),1),h("span",null,p(e(t)("generated.systemConfigurationPage.mailBody")),1),h("p",null,p(m.value?.text??f.value.body),1)]))])),[[E,V.value]]):j("",!0)])):e(u).loading.value?j("",!0):(g(),S("p",Qe,p(e(t)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[E,e(u).loading.value]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):j("",!0),d.value?(g(),M(W,{key:1,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:d.value,"onUpdate:modelValue":C[5]||(C[5]=c=>d.value=c),"append-to-body":"",title:e(t)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))","close-icon":e(k)("close")},{footer:r(()=>[o(I,{onClick:C[4]||(C[4]=c=>d.value=!1)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1}),o(I,{type:"primary",loading:e(u).busy.value,onClick:J,"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading","loading-icon"])]),default:r(()=>[o(a,{ref_key:"testForm",ref:D,model:O.value,rules:F,"label-position":"top"},{default:r(()=>[o(z,{label:e(t)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:r(()=>[o(Q,{modelValue:K.value,"onUpdate:modelValue":C[2]||(C[2]=c=>K.value=c),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(z,{label:e(t)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:r(()=>[o(s,{modelValue:N.value,"onUpdate:modelValue":C[3]||(C[3]=c=>N.value=c),class:"template-test-select","clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:r(()=>[(g(!0),S(G,null,re($.value,c=>(g(),M(Y,{key:c.id,value:c.id,label:c.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):j("",!0)],64)}}}),tt=_e(et,[["__scopeId","data-v-62b5baac"]]),at={"element-loading-custom-class":"mar-page-loading",class:"management-page"},nt={class:"table-actions"},lt={key:1},ot={key:3},it={key:4},st={class:"smtp-toggle"},rt={class:"smtp-form__pair"},ut={class:"smtp-template-row"},dt={class:"smtp-dialog-hint"},mt={class:"smtp-dialog-footer"},ct=ve({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(T){const x=T,u=Fe(x.request,x.settings),P=_(),w=_(),f=_(""),m=_(!1),V=u.settings.find(s=>s.key==="mail-smtp"),y=_(!1),d=Me({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let D="";const K={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:t("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:t("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:t("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:t("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:t("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(s,a,E)=>E(typeof a=="string"&&a.length<=1024&&(d.username===""?a==="":a!==""||d.username===D)?void 0:new Error(t("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},N=u.settings.find(s=>s.key==="html-preview-origin"),$={origin:[{validator:(s,a,E)=>E(u.validValue(N,a)?void 0:new Error(t("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:O,drafts:F,editingKey:i,savingKey:l,loading:v,beginEdit:q,cancelEdit:Z}=u,J=_(!1),b=H(()=>({origin:F.value.htmlPreviewOrigin})),C=H(()=>u.settings.map(s=>({...s,name:t(s.nameKey),description:t(s.descriptionKey)})));xe(m,s=>{f.value="",s||(d.password="",D="",Z("mail-smtp"))});function I(s){const a=F.value[s];return typeof a=="number"?a:void 0}function W(s){const a=F.value[s];return typeof a=="string"?a:""}function Q(){if(!x.writable||(q("mail-smtp"),i.value!=="mail-smtp"))return;const s=JSON.parse(String(O.value.smtpConfiguration));y.value=Object.keys(s).length>0,Object.assign(d,{host:s.host??"",port:s.port??587,tls:s.tls??"STARTTLS",from:s.from??"",fromName:s.fromName??"",username:s.username??"",password:""}),D=s.username??"",m.value=i.value==="mail-smtp"}async function z(){try{await u.load(),J.value=!0}catch(s){R(s instanceof Error?X(s):t("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",s)}}async function Y(s){if(x.writable){if(f.value="",s==="html-preview-origin")try{await P.value?.validate()}catch{return}if(s==="mail-smtp")if(y.value){try{await w.value?.validate()}catch{return}const a=JSON.stringify({...d});if(!u.validValue(V,a)){f.value=t("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(s,a)}else{if(O.value.smtpConfiguration!=="{}")try{await De.confirm(t("generated.systemConfigurationPage.smtpDisableConfirmation"),t("generated.systemConfigurationPage.smtpDisableTitle"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:t("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:t("common.cancel")})}catch(a){if(a==="cancel"||a==="close")return;R(a instanceof Error?X(a):t("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",a);return}if(!m.value||i.value!==s)return;u.setDraft(s,"{}")}try{await u.save(s)&&(s==="mail-smtp"&&(m.value=!1),R(t("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(a){R(a instanceof Error?X(a):t("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",a)}}}return Ie(()=>{z()}),(s,a)=>{const E=ce,c=Se,ee=ke,L=pe,B=de,le=me,oe=Te,Ce=Ee,ie=Ve,se=fe,he=ge,Pe=ye,we=be;return ne((g(),S("section",at,[h("div",nt,[o(E,{icon:e(k)("refresh"),loading:e(v)&&J.value,onClick:z,"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","loading","loading-icon"])]),o(Ce,{data:C.value,"row-key":"key"},{default:r(()=>[o(c,{prop:"name",label:e(t)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(c,{prop:"description",label:e(t)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(c,{label:e(t)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:r(({row:n})=>[n.type==="number"&&e(i)===n.key?(g(),M(ee,{key:0,"model-value":I(n.field),placeholder:n.placeholderKey===void 0?void 0:e(t)(n.placeholderKey),min:n.min,max:n.max,disabled:e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},{"decrease-icon":r(()=>[o(ue,{name:"subtract"})]),"increase-icon":r(()=>[o(ue,{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):n.type==="number"?(g(),S("span",lt,p(e(O)[n.field]),1)):n.type==="origin"&&e(i)===n.key?(g(),M(le,{key:2,ref_key:"originForm",ref:P,model:b.value,rules:$},{default:r(()=>[o(B,{prop:"origin",class:"origin-setting-form"},{default:r(()=>[o(L,{"model-value":W(n.field),placeholder:e(t)(n.placeholderKey),disabled:e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):n.type==="origin"?(g(),S("span",ot,p(e(O)[n.field]||e(t)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):n.type==="json"?(g(),S("span",it,"-")):(g(),M(oe,{key:5,"model-value":e(F)[n.field]===!0,disabled:e(i)!==n.key||!T.writable||e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(c,{label:e(t)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:r(({row:n})=>[e(i)!==n.key||n.type==="json"?(g(),M(E,{key:0,link:"",icon:e(k)("edit"),disabled:!T.writable||e(i)!==null,onClick:A=>n.type==="json"?Q():e(q)(n.key)},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(g(),S(G,{key:1},[o(E,{link:"",type:"primary",icon:e(k)("check"),loading:e(l)===n.key,disabled:!T.writable||e(l)!==null,onClick:A=>Y(n.key),"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick","loading-icon"]),o(E,{link:"",icon:e(k)("close"),disabled:e(l)!==null,onClick:A=>e(Z)(n.key)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:1},8,["data"]),m.value?(g(),M(Pe,{key:0,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:m.value,"onUpdate:modelValue":a[10]||(a[10]=n=>m.value=n),title:e(t)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(l)===null,"close-on-press-escape":e(l)===null,"show-close":e(l)===null,"append-to-body":"","close-icon":e(k)("close")},{footer:r(()=>[h("div",mt,[o(E,{disabled:e(l)!==null,onClick:a[8]||(a[8]=n=>m.value=!1)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1},8,["disabled"]),o(E,{type:"primary",loading:e(l)==="mail-smtp",onClick:a[9]||(a[9]=n=>Y("mail-smtp")),"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading","loading-icon"])])]),default:r(()=>[h("div",st,[h("span",null,p(e(t)("generated.systemConfigurationPage.smtpEnable")),1),o(oe,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=n=>y.value=n),disabled:e(l)!==null,"aria-label":e(t)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),y.value?(g(),M(le,{key:0,ref_key:"smtpForm",ref:w,model:d,rules:K,"label-position":"top",class:"smtp-form"},{default:r(()=>[f.value?(g(),M(ie,{key:0,title:f.value,type:"error",closable:!1},null,8,["title"])):j("",!0),o(B,{label:e(t)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:r(()=>[o(L,{modelValue:d.host,"onUpdate:modelValue":a[1]||(a[1]=n=>d.host=n),maxlength:"253",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),h("div",rt,[o(B,{label:e(t)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:r(()=>[o(ee,{modelValue:d.port,"onUpdate:modelValue":a[2]||(a[2]=n=>d.port=n),min:1,max:65535,controls:!1,disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:r(()=>[o(he,{modelValue:d.tls,"onUpdate:modelValue":a[3]||(a[3]=n=>d.tls=n),disabled:e(l)!==null,"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:r(()=>[o(se,{label:"STARTTLS",value:"STARTTLS"}),o(se,{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:r(()=>[o(L,{modelValue:d.from,"onUpdate:modelValue":a[4]||(a[4]=n=>d.from=n),maxlength:"320",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:r(()=>[o(L,{modelValue:d.fromName,"onUpdate:modelValue":a[5]||(a[5]=n=>d.fromName=n),maxlength:"128",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:r(()=>[o(L,{modelValue:d.username,"onUpdate:modelValue":a[6]||(a[6]=n=>d.username=n),maxlength:"320",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:r(()=>[o(L,{modelValue:d.password,"onUpdate:modelValue":a[7]||(a[7]=n=>d.password=n),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(D)===d.username&&e(D)?e(t)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(l)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):j("",!0),h("div",ut,[o(tt,{request:T.request,writable:T.writable},null,8,["request","writable"])]),h("p",dt,p(e(t)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close","close-icon"])):j("",!0),e(O).skillTlsVerificationDisabled?(g(),M(ie,{key:1,class:"skill-tls-warning",type:"error",closable:!1,title:e(t)("generated.systemConfigurationPage.skillSourceTLSCertificateVerificationIsDisabled")},null,8,["title"])):j("",!0)])),[[we,e(v)&&!J.value]])}}}),Ft=_e(ct,[["__scopeId","data-v-015a943a"]]);export{Ft as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i from"./SystemConfigurationPage-BwbGi747.js";import{m as r,o,J as n}from"./index-BWIlWKS5.js";import"./el-alert-Cn0AWnUd.js";import"./vnode-D6yqEI54.js";import"./el-form-item-USuILRLw.js";import"./use-form-common-props-BpO5s-Fn.js";import"./el-scrollbar-CFgE8hiz.js";import"./el-input-D9BwkQsR.js";import"./mobile-dialog-return-service-CqaFAsb3.js";import"./el-select-SRr6i6V-.js";import"./index-DK80c6gZ.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BWEo081-.js";import"./el-input-number-35uaUE0c.js";import"./index-DkG4qHEM.js";import"./el-switch-0rpdXBjA.js";import"./message-box-service-BbNoH9tP.js";import"./el-table-column-BnSot1-z.js";import"./merge-DgRJxBw2.js";import"./isArrayLikeObject-m8OxXoHc.js";import"./el-checkbox-CRRoWixG.js";import"./last-DXTTfs9a.js";/* empty css */import"./MarIcon-BJtUW72T.js";import"./conversation-history-UrDOgBLc.js";import"./error-presentation-DmX7H6jr.js";const I=r({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean}},setup(e){const t=[{key:"audit-retention",field:"auditRetentionDays",payloadField:"days",initialValue:180,nameKey:"generated.systemConfigurationPage.auditRetentionDays",descriptionKey:"generated.systemConfigurationPage.theServerRemovesExpiredEventsInBatches",type:"number",min:1,max:3650,placeholderKey:"generated.systemConfigurationPage.enterRetentionDays"}];return(a,m)=>(o(),n(i,{request:e.request,writable:e.writable,settings:t},null,8,["request","writable"]))}});export{I as default};
|