@myagentroam/server 0.15.38 → 0.15.39
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/node_modules/@myagentroam/protocol/package.json +1 -1
- package/node_modules/@myagentroam/server-core/package.json +2 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +5 -5
- package/web/assets/{AuditManagementPage-DqMDF5fM.js → AuditManagementPage-BWZnBeN4.js} +1 -1
- package/web/assets/{AuthEntryPanel-C7oZYaVB.js → AuthEntryPanel-Ce8AyHUI.js} +1 -1
- package/web/assets/{CodeFileEditor-DWNAnVY_.js → CodeFileEditor-C9lFV4U5.js} +3 -3
- package/web/assets/{ConversationTemplateManagementPage-CyYfdv9v.js → ConversationTemplateManagementPage--miD1Sck.js} +1 -1
- package/web/assets/{ConversationTemplateManagementPage-D2l3ag1J.js → ConversationTemplateManagementPage-YXKHr5jk.js} +1 -1
- package/web/assets/{EnterpriseUserManagementPage-qHEKpZlU.js → EnterpriseUserManagementPage-DPQlrtdE.js} +1 -1
- package/web/assets/{EnvironmentSecretManager-DwnaUrO4.js → EnvironmentSecretManager-BGcpcdMV.js} +1 -1
- package/web/assets/{FilePreviewState-CQWcF1c-.js → FilePreviewState-BRTU_mxV.js} +1 -1
- package/web/assets/{LicenseManagementPage-CGMVl6ow.js → LicenseManagementPage-Jnf5ehZs.js} +1 -1
- package/web/assets/{ManagementPagination-DpttvPI1.js → ManagementPagination-DZMc85RP.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-BJbwLXje.js → MarAgentModelManagementPage-C9WkkpE2.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-ifx_Ux4t.js → MarAgentModelManagementPage-DbDgoAVg.js} +1 -1
- package/web/assets/{MarAlert-Cgewf2zL.js → MarAlert-ByiL0aQ-.js} +1 -1
- package/web/assets/{MarCascader-CsR4yA7z.js → MarCascader-DcB-m9qm.js} +1 -1
- package/web/assets/{MarCheckTag-ooaMWMCq.js → MarCheckTag-C-1QVf6B.js} +1 -1
- package/web/assets/{MarCheckboxGroup-BSWH4b7G.js → MarCheckboxGroup-Dbw2wueP.js} +1 -1
- package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-Cn5hR7k6.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-RFH8mm40.js} +1 -1
- package/web/assets/{MarDatePicker-CN2ULYaN.js → MarDatePicker-DPKPR-yf.js} +1 -1
- package/web/assets/{MarDescriptionsItem-BlA7vrH0.js → MarDescriptionsItem-bqLvHkpk.js} +1 -1
- package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-BvPy7LIP.js → MarFormItem.vue_vue_type_script_setup_true_lang-BGZ5IFwn.js} +1 -1
- package/web/assets/{MarInputNumber-Pevkz79V.js → MarInputNumber-DWHXzNcC.js} +1 -1
- package/web/assets/{MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-B4HSk0q_.js → MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-D9q8IvDj.js} +1 -1
- package/web/assets/{MarSwitch-DofXtqYq.js → MarSwitch-CCvcHo25.js} +1 -1
- package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-ioIxWmOB.js → MarTableColumn.vue_vue_type_script_setup_true_lang-9WPlhHLM.js} +1 -1
- package/web/assets/{MarTabs-B3veUlI5.js → MarTabs-FeKKbjgE.js} +1 -1
- package/web/assets/{MarTag-k9OwqKVH.js → MarTag-CcctIVZG.js} +1 -1
- package/web/assets/{MarkdownFilePreview-DuMP1n3Z.js → MarkdownFilePreview-DGktFiiV.js} +2 -2
- package/web/assets/{McpDetailsDialog-g6NBwVN9.js → McpDetailsDialog-CZadCZQH.js} +1 -1
- package/web/assets/{McpSourceManagementPage-rteSkqg_.js → McpSourceManagementPage-B4jM82LQ.js} +1 -1
- package/web/assets/{McpSourceManagementPage-5jAuMwwm.js → McpSourceManagementPage-BI3TFDjy.js} +1 -1
- package/web/assets/{NodeDetailsDialogs-CY5cVWFc.js → NodeDetailsDialogs-ZlU2ovV1.js} +1 -1
- package/web/assets/NodeManagementPage-B3l_z8gC.js +1 -0
- package/web/assets/NodeManagementPage-VJcTGHbO.js +1 -0
- package/web/assets/{OAuthManagementPage-BF7n7jsf.js → OAuthManagementPage-D30YGbJl.js} +1 -1
- package/web/assets/{OrganizationManagementPage-B_IvL5AT.js → OrganizationManagementPage-CL-Dt35S.js} +1 -1
- package/web/assets/{RemoteDesktopPage-MNB1jJzK.js → RemoteDesktopPage-CvjvDUNC.js} +1 -1
- package/web/assets/{ResourceManagementPanel-B1c6dYBZ.js → ResourceManagementPanel-B9i-nSZZ.js} +1 -1
- package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-4IDwXfAb.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-9rkcvXJI.js} +1 -1
- package/web/assets/SecretManagementPage-BeUEb8ad.js +1 -0
- package/web/assets/{SecretManagementPage-CI_HCFsL.js → SecretManagementPage-lw0ODUG2.js} +1 -1
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-CjGENssr.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-DWFhIjec.js} +1 -1
- package/web/assets/{SessionSharePage-CPEzBO6A.js → SessionSharePage-CZ5fNdrH.js} +2 -2
- package/web/assets/{SettingsContent-BzNyrEMi.js → SettingsContent-CXoHGV6X.js} +1 -1
- package/web/assets/{SettingsContent-0XoB4aUw.js → SettingsContent-D7I8XNVd.js} +1 -1
- package/web/assets/{SkillCenterPage-B45-XMu0.js → SkillCenterPage-4eBbSPsc.js} +1 -1
- package/web/assets/SkillCenterPage-DdWBpn2E.js +1 -0
- package/web/assets/{SkillDetailsDialog-Dzp803jo.js → SkillDetailsDialog-BFQK3IfC.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-Cooddt7j.js → SkillSourceManagementPage-CtFbflxr.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-CB3iHHoa.js → SkillSourceManagementPage-Ryp0xz2H.js} +1 -1
- package/web/assets/{StandaloneFilePreviewPage-FW2hI84g.js → StandaloneFilePreviewPage-plMGsKp4.js} +1 -1
- package/web/assets/{SystemConfigurationPage-EJyToYSe.js → SystemConfigurationPage-D4rrRYos.js} +1 -1
- package/web/assets/{SystemConfigurationPage-DraZ7Hhr.js → SystemConfigurationPage-D7CN440o.js} +1 -1
- package/web/assets/{SystemInformationPage-CsNZwsGn.js → SystemInformationPage-BGCllt87.js} +1 -1
- package/web/assets/{TerminalTabView-CDhuon7y.js → TerminalTabView-CN0dzls0.js} +2 -2
- package/web/assets/{TerminalTabView-xTHeL-a0.css → TerminalTabView-CZtfBgzE.css} +1 -1
- package/web/assets/{WorkbenchPage-DhWMzh99.js → WorkbenchPage-D0uzy2sP.js} +4 -4
- package/web/assets/WorkspaceManagementPage-nCmPU7LE.js +1 -0
- package/web/assets/WorkspaceManagementPage-upY39AoI.js +1 -0
- package/web/assets/{abnfDiagram-VCTEODGH-2MJ4Ip2W.js → abnfDiagram-VCTEODGH-DFe1T_ur.js} +1 -1
- package/web/assets/{arc-BXICuuJ1.js → arc-DnzJrDgD.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-CnDMxxI-.js → architectureDiagram-5GKGNRK7-BBwDMhM3.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-Cv-Uf4CG.js → blockDiagram-OSKFZWR5-RAJ7GooY.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-axqU0Ekj.js → c4Diagram-7LVT6UL2-Bzc2-fx8.js} +1 -1
- package/web/assets/{catalog-ownership-service-B_Qxr6l9.js → catalog-ownership-service-x1Rfms8F.js} +1 -1
- package/web/assets/{catalog-page-service-Dbac8khF.js → catalog-page-service-CJLeYQK5.js} +1 -1
- package/web/assets/channel-DIBKzKe-.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-k-jVZqvU.js → chunk-2Q5K7J3B-4RHR3o0r.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-Cf6uFaOh.js → chunk-5VM5RSS4-DXDwGTu0.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-COy5-ZVy.js → chunk-F27PBJKO-Dbm8IoEI.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-yvws2dFv.js → chunk-HLEWEB6X-AiyvjfdV.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-CA9o3_xd.js → chunk-JWPE2WC7-CF8yzEkD.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-DCzpJwJA.js → chunk-POPQ4Y6H-K-e0Z8H2.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-DHDbWJh0.js → chunk-SVP7TREG-DNjuSBaS.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-Cd6ms7v1.js → chunk-XXDRQBXY-CXmQ5-CW.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-ClNU4dwF.js → chunk-ZLD2IHE6-D7k1SwvZ.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-CcbAWGWd.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-CcbAWGWd.js +1 -0
- package/web/assets/{conversation-history-CSWv_vi2.js → conversation-history-bnHQMSGD.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-CfeZTYR9.js → cose-bilkent-JH36ORCC-BGh91OJW.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-CFBj-HPW.js → cynefin-OW5HDTMX-D3ziyBfi.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-C6tfmCdH.js → cynefinDiagram-5FMLGOSQ-suDhr9iT.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-CXptrNMV.js → dagre-OS7QT2EB-D_WdoYU2.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-BXKm3WTU.js → diagram-S7CK7UJ4-DvmusyLE.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-Ny8UUYLV.js → diagram-UQ7AKVKN-DCfpSMUJ.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-CrHvitkW.js → diagram-VSXAHHWV-Dyv6kR4D.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-CzU7kDJA.js → diagram-VX7I27RA-B8_2uiFj.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-Ck_1GJze.js → diagram-Z3DM3KII-CiywJY_B.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-DllRunUs.js → ebnfDiagram-PWID7BFC-BAvJ-BpE.js} +1 -1
- package/web/assets/{enterprise-management-service-Do8g6Oxt.js → enterprise-management-service-B4nAmDj8.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-DU8UZdZG.js → erDiagram-2YWLMYGG-ECqTXt6J.js} +1 -1
- package/web/assets/{error-presentation-C9VINKZ3.js → error-presentation-BMeYX7eg.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-BJAUgb16.js → flowDiagram-T62WH6J4-D6IEoNzw.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-EOdog-Hq.js → ganttDiagram-EL5Y4UJY-CYj6QNxi.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-BrP78CBc.js → gitGraphDiagram-WWUBYQGX-8KEJF0Ms.js} +1 -1
- package/web/assets/{hosted-conversation-template-client-j930RD6-.js → hosted-conversation-template-client-DYFisxhg.js} +1 -1
- package/web/assets/{index-Dg-lOHXo.js → index-8txRfPdF.js} +1 -1
- package/web/assets/{index-BoEmwskY.js → index-B6MXGu2V.js} +1 -1
- package/web/assets/{index-Cu38VHwh.js → index-B8xs5UcV.js} +1 -1
- package/web/assets/{index-DeGl8RGR.js → index-BEPUCj_i.js} +1 -1
- package/web/assets/{index-odq-4iaW.js → index-BJcmtUK2.js} +1 -1
- package/web/assets/{index-DhuchUHx.js → index-BM_vsrwL.js} +1 -1
- package/web/assets/{index-VUibeb33.js → index-BPzO_5uT.js} +1 -1
- package/web/assets/{index-D443KzZp.js → index-BbSTjaxt.js} +1 -1
- package/web/assets/{index-DplbQVH-.js → index-BqBvvNTQ.js} +1 -1
- package/web/assets/{index-BAhIYVFR.js → index-C64ZTFs9.js} +1 -1
- package/web/assets/{index-CRBbHL92.js → index-C9_Xuk2B.js} +1 -1
- package/web/assets/{index-mjJ_43zw.js → index-CA2ZUOwP.js} +3 -3
- package/web/assets/{index-BYzuSmph.js → index-CLOAmX2S.js} +1 -1
- package/web/assets/{index-CPXkFHEg.js → index-CM4dqmEv.js} +1 -1
- package/web/assets/{index-Bnwo-9DH.js → index-CWHpk5my.js} +1 -1
- package/web/assets/{index-DxdrNkkQ.js → index-CxuScb4A.js} +1 -1
- package/web/assets/{index-B5Sc4j_R.js → index-D0mpUqZk.js} +1 -1
- package/web/assets/{index-D5J-KW6Q.js → index-D2pCBbco.js} +1 -1
- package/web/assets/{index-CIfIyfp7.js → index-DHyiO0Oi.js} +1 -1
- package/web/assets/{index-B2qsFEDJ.js → index-DOln4rl2.js} +1 -1
- package/web/assets/{index-DtUhuNwa.js → index-DvfyECwB.js} +1 -1
- package/web/assets/{index-CjhUX0zF.js → index-DyN-SXMP.js} +1 -1
- package/web/assets/{index-w7tDUqKj.js → index-LBBZX7za.js} +1 -1
- package/web/assets/{index-laaHRnO5.js → index-TMQKBavI.js} +1 -1
- package/web/assets/{index-BjZqydjd.js → index-fWrYdVub.js} +1 -1
- package/web/assets/{index-Tl5b3IzU.js → index-u1TGuGw_.js} +1 -1
- package/web/assets/{index-CecFHLL3.js → index-yCrLkEIZ.js} +1 -1
- package/web/assets/{infoDiagram-FKFFQAWI-C3D7996R.js → infoDiagram-FKFFQAWI-WqlvokC1.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-TtKxKuR0.js → ishikawaDiagram-5VMMS53U-DjlHK7HB.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-D4cizUT_.js → journeyDiagram-EYS64GPL-DLq4QPcL.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-C_8jGzsm.js → kanban-definition-UXKFOSKX-DnFY8gYz.js} +1 -1
- package/web/assets/{layout-BGVcc6i2.js → layout-BF2IMQuj.js} +1 -1
- package/web/assets/{linear-aqU30cat.js → linear-CttxtKtY.js} +1 -1
- package/web/assets/{management-url-service-vH1PePoo.js → management-url-service-DXDvpPuF.js} +1 -1
- package/web/assets/{mar-agent-reasoning-effort-Bo_a1epR.js → mar-agent-reasoning-effort-Bnl6GPl0.js} +1 -1
- package/web/assets/{mcp-center-service-BvG4c5on.js → mcp-center-service-Cb9MR6h0.js} +1 -1
- package/web/assets/{mermaid.core-BLgpNmDP.js → mermaid.core-DJ9ahE2y.js} +5 -5
- package/web/assets/{mindmap-definition-THT77NOG-DdS-Qd7h.js → mindmap-definition-THT77NOG-B_cA2fk1.js} +1 -1
- package/web/assets/{mobile-dialog-return-service-TKk1iEdJ.js → mobile-dialog-return-service-C5hGQdKK.js} +1 -1
- package/web/assets/{oauth-callback-CoM4IlSQ.js → oauth-callback-CGVxWi9i.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-C57PjGe5.js → pegDiagram-XKGWAZYB-A1niEnjE.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-y1r53a0j.js → pieDiagram-E7YTZNPT-DfsI3Ak1.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-DiEbzS4z.js → quadrantDiagram-AXDQQJYC-GWuRgx8v.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-CvVxxmCH.js → railroadDiagram-O6MQD6OU-CJrOgBlb.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-DcjlNmJR.js → requirementDiagram-IS5BZ75X-DY_bIZa0.js} +1 -1
- package/web/assets/{runner-presentation-B0o1YT3R.js → runner-presentation-C90CMFtP.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-6CmId6pG.js → sankeyDiagram-P5KCCOFB-DXrQXz2G.js} +1 -1
- package/web/assets/{scoped-http-service-D5THUhbR.js → scoped-http-service-CUp3DZeQ.js} +3 -3
- package/web/assets/{sequenceDiagram-WJ2MYXX4-GZhgSka6.js → sequenceDiagram-WJ2MYXX4-Dl4Ye9hO.js} +1 -1
- package/web/assets/{session-share-client-service-Csy7oOfG.js → session-share-client-service-B_e5eIzB.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-C51fkJaD.js → sizeCapture-INFHLROL-C7yIrfYy.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-urLYbFwM.js → stateDiagram-XQSTLZYL-DNInRfxr.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-ocrqJd3I.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-CkxEg7SG.js → swimlanes-V6O3JKXN-DKZFU3H3.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-RVhi7HNW.js +8 -0
- package/web/assets/{time-presentation-6jrEch9v.js → time-presentation-D8e9iq-x.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-DUkkF0MJ.js → timeline-definition-24CTP7MA-3YpVlm3Y.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-B6OLP_AD.js → vennDiagram-4TSXK5OY-BcC-TUVU.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-CR0il9FM.js → wardleyDiagram-VM6X3IG4-CwkWDdpW.js} +1 -1
- package/web/assets/{workbench-live-service-B-Qb7OSy.js → workbench-live-service-Daam7q0x.js} +1 -1
- package/web/assets/{workbench-presentation-DyIwA0DW.js → workbench-presentation-8dxKALya.js} +1 -1
- package/web/assets/{workspace-direct-transfer-service-CtnHDRpY.js → workspace-direct-transfer-service-DVur2GQc.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-KKrc7uFb.js → xychartDiagram-S5SC5T6Z-BrpqNBke.js} +1 -1
- package/web/docs/404.html +1 -1
- package/web/docs/administration/account.html +2 -2
- package/web/docs/administration/audit.html +2 -2
- package/web/docs/administration/conversation-templates.html +2 -2
- package/web/docs/administration/email-notifications.html +2 -2
- package/web/docs/administration/license.html +2 -2
- package/web/docs/administration/nodes-workspaces.html +2 -2
- package/web/docs/administration/oauth.html +2 -2
- package/web/docs/administration/secrets.html +2 -2
- package/web/docs/administration/template-workspace-maintenance.html +2 -2
- package/web/docs/administration/users-organizations.html +2 -2
- package/web/docs/assets/{app.C0AUmYR5.js → app.COaRLFgW.js} +1 -1
- package/web/docs/assets/chunks/{@localSearchIndexen-US.CJYByt59.js → @localSearchIndexen-US.BsjJuC_k.js} +1 -1
- package/web/docs/assets/chunks/{@localSearchIndexroot.D3vJwMU8.js → @localSearchIndexroot.CfRndrf2.js} +1 -1
- package/web/docs/assets/chunks/{VPLocalSearchBox.DKBM6pzV.js → VPLocalSearchBox.DwDbOgPJ.js} +1 -1
- package/web/docs/assets/chunks/{theme.BD1SKYnm.js → theme.DUWAVzeb.js} +2 -2
- package/web/docs/concepts/architecture.html +2 -2
- package/web/docs/concepts/data-and-security.html +2 -2
- package/web/docs/concepts/files-git-terminal.html +2 -2
- package/web/docs/concepts/node-and-workspace.html +2 -2
- package/web/docs/concepts/permissions-and-sharing.html +2 -2
- package/web/docs/concepts/runner-control.html +2 -2
- package/web/docs/concepts/secrets.html +2 -2
- package/web/docs/concepts/session-run-turn.html +2 -2
- package/web/docs/deployment/backup-restore.html +2 -2
- package/web/docs/deployment/network.html +2 -2
- package/web/docs/deployment/node-installation.html +2 -2
- package/web/docs/deployment/node-linux.html +2 -2
- package/web/docs/deployment/node-macos.html +2 -2
- package/web/docs/deployment/node-windows.html +2 -2
- package/web/docs/deployment/production.html +2 -2
- package/web/docs/deployment/security-checklist.html +2 -2
- package/web/docs/deployment/upgrade.html +2 -2
- package/web/docs/en-US/administration/account.html +2 -2
- package/web/docs/en-US/administration/audit.html +2 -2
- package/web/docs/en-US/administration/conversation-templates.html +2 -2
- package/web/docs/en-US/administration/email-notifications.html +2 -2
- package/web/docs/en-US/administration/license.html +2 -2
- package/web/docs/en-US/administration/nodes-workspaces.html +2 -2
- package/web/docs/en-US/administration/oauth.html +2 -2
- package/web/docs/en-US/administration/secrets.html +2 -2
- package/web/docs/en-US/administration/template-workspace-maintenance.html +2 -2
- package/web/docs/en-US/administration/users-organizations.html +2 -2
- package/web/docs/en-US/concepts/architecture.html +2 -2
- package/web/docs/en-US/concepts/data-and-security.html +2 -2
- package/web/docs/en-US/concepts/files-git-terminal.html +2 -2
- package/web/docs/en-US/concepts/node-and-workspace.html +2 -2
- package/web/docs/en-US/concepts/permissions-and-sharing.html +2 -2
- package/web/docs/en-US/concepts/runner-control.html +2 -2
- package/web/docs/en-US/concepts/secrets.html +2 -2
- package/web/docs/en-US/concepts/session-run-turn.html +2 -2
- package/web/docs/en-US/deployment/backup-restore.html +2 -2
- package/web/docs/en-US/deployment/network.html +2 -2
- package/web/docs/en-US/deployment/node-installation.html +2 -2
- package/web/docs/en-US/deployment/node-linux.html +2 -2
- package/web/docs/en-US/deployment/node-macos.html +2 -2
- package/web/docs/en-US/deployment/node-windows.html +2 -2
- package/web/docs/en-US/deployment/production.html +2 -2
- package/web/docs/en-US/deployment/security-checklist.html +2 -2
- package/web/docs/en-US/deployment/upgrade.html +2 -2
- package/web/docs/en-US/getting-started/connect-node.html +2 -2
- package/web/docs/en-US/getting-started/first-agent-session.html +2 -2
- package/web/docs/en-US/getting-started/first-login.html +2 -2
- package/web/docs/en-US/getting-started/next-steps.html +2 -2
- package/web/docs/en-US/getting-started/npm-quick-start.html +2 -2
- package/web/docs/en-US/getting-started/overview.html +2 -2
- package/web/docs/en-US/getting-started/prerequisites.html +2 -2
- package/web/docs/en-US/getting-started/register-workspace.html +2 -2
- package/web/docs/en-US/getting-started/server-installation.html +2 -2
- package/web/docs/en-US/operations/marctl.html +2 -2
- package/web/docs/en-US/reference/configuration.html +2 -2
- package/web/docs/en-US/reference/keyboard-shortcuts.html +2 -2
- package/web/docs/en-US/reference/limits.html +2 -2
- package/web/docs/en-US/reference/ports-paths-data.html +2 -2
- package/web/docs/en-US/reference/status-and-errors.html +2 -2
- package/web/docs/en-US/runners/claude-code.html +2 -2
- package/web/docs/en-US/runners/codex.html +2 -2
- package/web/docs/en-US/runners/mar-agent.html +2 -2
- package/web/docs/en-US/runners/opencode.html +2 -2
- package/web/docs/en-US/runners/overview.html +2 -2
- package/web/docs/en-US/runners/runner-troubleshooting.html +2 -2
- package/web/docs/en-US/troubleshooting/node-offline.html +2 -2
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +2 -2
- package/web/docs/en-US/troubleshooting/session-run.html +2 -2
- package/web/docs/en-US/troubleshooting/terminal.html +2 -2
- package/web/docs/en-US/troubleshooting/workspace-files.html +2 -2
- package/web/docs/en-US/workbench/browser.html +2 -2
- package/web/docs/en-US/workbench/composer.html +2 -2
- package/web/docs/en-US/workbench/context-and-plan.html +2 -2
- package/web/docs/en-US/workbench/conversation.html +2 -2
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +2 -2
- package/web/docs/en-US/workbench/files.html +2 -2
- package/web/docs/en-US/workbench/git-changes.html +2 -2
- package/web/docs/en-US/workbench/git-history.html +2 -2
- package/web/docs/en-US/workbench/hosted-conversations.html +2 -2
- package/web/docs/en-US/workbench/mobile.html +2 -2
- package/web/docs/en-US/workbench/navigation.html +2 -2
- package/web/docs/en-US/workbench/remote-desktop.html +2 -2
- package/web/docs/en-US/workbench/sessions.html +2 -2
- package/web/docs/en-US/workbench/skills.html +2 -2
- package/web/docs/en-US/workbench/terminal.html +2 -2
- package/web/docs/getting-started/connect-node.html +2 -2
- package/web/docs/getting-started/first-agent-session.html +2 -2
- package/web/docs/getting-started/first-login.html +2 -2
- package/web/docs/getting-started/next-steps.html +2 -2
- package/web/docs/getting-started/npm-quick-start.html +2 -2
- package/web/docs/getting-started/overview.html +2 -2
- package/web/docs/getting-started/prerequisites.html +2 -2
- package/web/docs/getting-started/register-workspace.html +2 -2
- package/web/docs/getting-started/server-installation.html +2 -2
- package/web/docs/operations/marctl.html +2 -2
- package/web/docs/reference/configuration.html +2 -2
- package/web/docs/reference/keyboard-shortcuts.html +2 -2
- package/web/docs/reference/limits.html +2 -2
- package/web/docs/reference/ports-paths-data.html +2 -2
- package/web/docs/reference/status-and-errors.html +2 -2
- package/web/docs/runners/claude-code.html +2 -2
- package/web/docs/runners/codex.html +2 -2
- package/web/docs/runners/mar-agent.html +2 -2
- package/web/docs/runners/opencode.html +2 -2
- package/web/docs/runners/overview.html +2 -2
- package/web/docs/runners/runner-troubleshooting.html +2 -2
- package/web/docs/troubleshooting/node-offline.html +2 -2
- package/web/docs/troubleshooting/quick-diagnosis.html +2 -2
- package/web/docs/troubleshooting/session-run.html +2 -2
- package/web/docs/troubleshooting/terminal.html +2 -2
- package/web/docs/troubleshooting/workspace-files.html +2 -2
- package/web/docs/workbench/browser.html +2 -2
- package/web/docs/workbench/composer.html +2 -2
- package/web/docs/workbench/context-and-plan.html +2 -2
- package/web/docs/workbench/conversation.html +2 -2
- package/web/docs/workbench/file-reference-and-attachment.html +2 -2
- package/web/docs/workbench/files.html +2 -2
- package/web/docs/workbench/git-changes.html +2 -2
- package/web/docs/workbench/git-history.html +2 -2
- package/web/docs/workbench/hosted-conversations.html +2 -2
- package/web/docs/workbench/mobile.html +2 -2
- package/web/docs/workbench/navigation.html +2 -2
- package/web/docs/workbench/remote-desktop.html +2 -2
- package/web/docs/workbench/sessions.html +2 -2
- package/web/docs/workbench/skills.html +2 -2
- package/web/docs/workbench/terminal.html +2 -2
- package/web/index.html +2 -2
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/NodeManagementPage-C9whb5L4.js +0 -1
- package/web/assets/NodeManagementPage-Cz-e5P9P.js +0 -1
- package/web/assets/SecretManagementPage-CBtdh_gj.js +0 -1
- package/web/assets/SkillCenterPage-CCCiSeRl.js +0 -1
- package/web/assets/WorkspaceManagementPage-DSy6tvKb.js +0 -1
- package/web/assets/WorkspaceManagementPage-DZ05gtk7.js +0 -1
- package/web/assets/channel-COFArLfZ.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-CS8ETghZ.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-CS8ETghZ.js +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-DizAVr1O.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-_Q8Sg3BM.js +0 -8
package/web/assets/{SystemConfigurationPage-EJyToYSe.js → SystemConfigurationPage-D4rrRYos.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as W,m as Q,M as ce}from"./mobile-dialog-return-service-TKk1iEdJ.js";import{a as C,d as de,t as a,o as c,b as T,$ as Z,g as o,q as s,G as S,E as p,u as e,s as E,H as U,p as I,K as Y,Q as ne,R as oe,D as P,a0 as ie,W as fe,v as R,F as j,c as z,L as A,_ as me,w as ye,B as ve,I as be,Z as se,r as Ce,N as he}from"./index-mjJ_43zw.js";import{M as Pe}from"./MarAlert-Cgewf2zL.js";import{M as re}from"./MarInputNumber-Pevkz79V.js";import{_ as H,M as _e}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-ioIxWmOB.js";import{_ as $,a as X}from"./MarFormItem.vue_vue_type_script_setup_true_lang-BvPy7LIP.js";import{M as ge,a as ee}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-B4HSk0q_.js";import{M as ue}from"./MarSwitch-DofXtqYq.js";import"./conversation-history-CSWv_vi2.js";import{e as G}from"./error-presentation-C9VINKZ3.js";const we={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},Ve={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},ke={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Te(k,M=[]){const u=[...M,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},Ve,ke,we],_=new Map(u.map(i=>[i.key,i]));if(_.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=C(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),y=C({...w.value}),g=C(null),V=C(null),v=C(!1);function d(i){w.value=i,y.value={...i}}async function x(){if(!(v.value||V.value!==null)){v.value=!0;try{d(await k("/api/system-settings")),g.value=null}finally{v.value=!1}}}function N(i){!_.has(i)||v.value||V.value!==null||g.value!==null||(y.value={...w.value},g.value=i)}function D(i){g.value!==i||V.value!==null||(y.value={...w.value},g.value=null)}function K(i,n){if(i.type==="json"){if(typeof n!="string"||n.length>4096)return!1;try{const f=JSON.parse(n);return f!==null&&typeof f=="object"&&!Array.isArray(f)}catch{return!1}}if(i.type==="origin"){if(n==="")return!0;if(typeof n!="string"||n.length>253)return!1;try{const f=new URL(n);return f.origin===n&&(f.protocol==="https:"||f.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof n=="boolean":typeof n=="number"&&Number.isFinite(n)&&n>=i.min&&n<=i.max}function O(i,n){const f=_.get(i);f===void 0||g.value!==i||V.value!==null||!(f.type==="origin"||f.type==="json"?typeof n=="string"&&n.length<=(f.type==="json"?4096:253):K(f,n))||(y.value[f.field]=n)}async function B(i){const n=_.get(i);if(n===void 0||g.value!==i||V.value!==null||v.value)return!1;const f=y.value[n.field];if(!K(n,f))return!1;V.value=i;try{return d(await k(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[n.payloadField]:f})})),g.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:y,editingKey:g,savingKey:V,loading:v,load:x,beginEdit:N,cancelEdit:D,validValue:K,setDraft:O,save:B}}function Se(k){const M=C([]),u=C(!1),_=C(!1);async function w(){if(!u.value){u.value=!0;try{M.value=await k("/api/mail/templates")}finally{u.value=!1}}}async function y(V,v){return k("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:v})})}async function g(V,v){_.value=!0;try{await k("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:v})})}finally{_.value=!1}}return{templates:M,loading:u,busy:_,load:w,preview:y,test:g}}const Me={class:"template-viewer"},Ue={class:"template-description"},xe={key:0,class:"template-layout"},$e=["aria-label"],Ee=["aria-pressed","onClick"],Ie={class:"template-choice__meta"},Ne={class:"template-choice__name"},De={class:"template-choice__subject"},Ke={key:0,class:"template-preview"},Oe={class:"template-preview__header"},Be={class:"template-preview__locale"},Fe=["srcdoc","title"],Ae={key:1,class:"template-preview__fallback"},je={key:1,class:"template-empty"},Re=de({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(k){const M=k,u=Se(M.request),_=C(!1),w=C(""),y=z(()=>u.templates.value.find(b=>b.id===w.value)),g=C(),V=C(!1);let v=0;const d=C(!1),x=C(),N=C(""),D=C(""),K=z(()=>u.templates.value.filter(b=>b.kind==="TEST")),O=z(()=>({email:N.value,templateId:D.value})),B={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?G(b):a("generated.systemConfigurationPage.mailOperationFailed")}async function n(){_.value=!0,v+=1,w.value="",g.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await q()}catch(b){A(i(b),"error",b)}}function f(b){w.value=b.id,g.value=void 0,q()}async function q(){const b=y.value;if(b===void 0||!_.value)return;const h=++v;V.value=!0;try{const m=await u.preview(b,a("generated.systemConfigurationPage.mailPreviewMessage"));_.value&&h===v&&w.value===b.id&&(g.value=m)}catch(m){h===v&&A(i(m),"error",m)}finally{h===v&&(V.value=!1)}}function J(){N.value="",D.value=(y.value?.kind==="TEST"?y.value.id:K.value[0]?.id)??"",d.value=!0}async function L(){if(M.writable)try{await x.value?.validate(),await u.test(N.value,D.value),d.value=!1,A(a("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&A(i(b),"error",b)}}return(b,h)=>(c(),T(Z,null,[o(e(U),{icon:e(E)("mail"),onClick:n},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),_.value?(c(),I(e(Y),{key:0,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(W),modelValue:_.value,"onUpdate:modelValue":h[1]||(h[1]=m=>_.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{disabled:!k.writable||K.value.length===0||e(u).busy.value,onClick:J},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(e(U),{onClick:h[0]||(h[0]=m=>_.value=!1)},{default:s(()=>[S(p(e(a)("common.close")),1)]),_:1})]),default:s(()=>[ne((c(),T("div",Me,[P("p",Ue,p(e(a)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(c(),T("div",xe,[P("div",{class:"template-choices",role:"group","aria-label":e(a)("generated.systemConfigurationPage.mailTemplates")},[(c(!0),T(Z,null,ie(e(u).templates.value,m=>(c(),T("button",{key:m.id,type:"button",class:fe(["template-choice",{"is-selected":w.value===m.id}]),"aria-pressed":w.value===m.id,onClick:ae=>f(m)},[P("span",Ie,[S(p(e(a)(m.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),h[6]||(h[6]=P("span",{"aria-hidden":"true"},"·",-1)),S(" "+p(m.locale),1)]),P("span",Ne,p(m.name),1),P("span",De,p(m.subject),1)],10,Ee))),128))],8,$e),y.value?ne((c(),T("div",Ke,[P("div",Oe,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailPreviewSample")),1),P("span",Be,p(y.value.locale),1)]),g.value?.html?(c(),T("iframe",{key:0,class:"template-preview__document",srcdoc:g.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(a)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Fe)):(c(),T("div",Ae,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailSubject")),1),P("strong",null,p(g.value?.subject??y.value.subject),1),P("span",null,p(e(a)("generated.systemConfigurationPage.mailBody")),1),P("p",null,p(g.value?.text??y.value.body),1)]))])),[[e(oe),V.value,"region"]]):R("",!0)])):e(u).loading.value?R("",!0):(c(),T("p",je,p(e(a)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[e(oe),e(u).loading.value,"region"]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0),d.value?(c(),I(e(Y),{key:1,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(W),modelValue:d.value,"onUpdate:modelValue":h[5]||(h[5]=m=>d.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{onClick:h[4]||(h[4]=m=>d.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1}),o(e(U),{type:"primary",loading:e(u).busy.value,onClick:L},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading"])]),default:s(()=>[o(e(X),{ref_key:"testForm",ref:x,model:O.value,rules:B,"label-position":"top"},{default:s(()=>[o(e($),{label:e(a)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:s(()=>[o(e(j),{modelValue:N.value,"onUpdate:modelValue":h[2]||(h[2]=m=>N.value=m),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:s(()=>[o(e(ge),{modelValue:D.value,"onUpdate:modelValue":h[3]||(h[3]=m=>D.value=m),class:"template-test-select","clear-icon":e(E)("clear-input"),"suffix-icon":e(E)("chevron-down")},{default:s(()=>[(c(!0),T(Z,null,ie(K.value,m=>(c(),I(e(ee),{key:m.id,value:m.id,label:m.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"])):R("",!0)],64))}}),qe=me(Re,[["__scopeId","data-v-5494f73e"]]),Le={class:"mar-management-page"},ze={class:"mar-table-actions"},Je=["aria-label"],He={key:1},Ze={key:3},Ge={key:4},We={class:"smtp-toggle"},Qe={class:"smtp-form__pair"},Ye={class:"smtp-template-row"},Xe={class:"smtp-dialog-hint"},ea=de({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(k){const M=k,u=Te(M.request,M.settings),_=C(),w=C(),y=C(""),g=C(!1),V=u.settings.find(r=>r.key==="mail-smtp"),v=C(!1),d=Ce({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let x="";const N={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:a("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:a("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(r,l,t)=>t(typeof l=="string"&&l.length<=1024&&(d.username===""?l==="":l!==""||d.username===x)?void 0:new Error(a("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},D=u.settings.find(r=>r.key==="html-preview-origin"),K={origin:[{validator:(r,l,t)=>t(u.validValue(D,l)?void 0:new Error(a("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:O,drafts:B,editingKey:i,savingKey:n,loading:f,beginEdit:q,cancelEdit:J}=u,L=C(!1),b=z(()=>({origin:B.value.htmlPreviewOrigin})),h=z(()=>u.settings.map(r=>({...r,name:a(r.nameKey),description:a(r.descriptionKey)})));ye(g,r=>{y.value="",r||(d.password="",x="",J("mail-smtp"))});function m(r){const l=B.value[r];return typeof l=="number"?l:void 0}function ae(r){const l=B.value[r];return typeof l=="string"?l:""}function pe(){if(!M.writable||(q("mail-smtp"),i.value!=="mail-smtp"))return;const r=JSON.parse(String(O.value.smtpConfiguration));v.value=Object.keys(r).length>0,Object.assign(d,{host:r.host??"",port:r.port??587,tls:r.tls??"STARTTLS",from:r.from??"",fromName:r.fromName??"",username:r.username??"",password:""}),x=r.username??"",g.value=i.value==="mail-smtp"}async function te(){try{await u.load(),L.value=!0}catch(r){L.value=!1,A(r instanceof Error?G(r):a("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",r)}}async function le(r){if(M.writable){if(y.value="",r==="html-preview-origin")try{await _.value?.validate()}catch{return}if(r==="mail-smtp")if(v.value){try{await w.value?.validate()}catch{return}const l=JSON.stringify({...d});if(!u.validValue(V,l)){y.value=a("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(r,l)}else{if(O.value.smtpConfiguration!=="{}")try{await he.confirm(a("generated.systemConfigurationPage.smtpDisableConfirmation"),a("generated.systemConfigurationPage.smtpDisableTitle"),{icon:E("warning"),type:"warning",confirmButtonText:a("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:a("common.cancel")})}catch(l){if(l==="cancel"||l==="close")return;A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l);return}if(!g.value||i.value!==r)return;u.setDraft(r,"{}")}try{await u.save(r)&&(r==="mail-smtp"&&(g.value=!1),A(a("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(l){A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l)}}}return ve(()=>{te()}),(r,l)=>(c(),T("section",Le,[P("div",ze,[o(e(U),{icon:e(E)("refresh"),disabled:e(f)||e(n)!==null,onClick:te},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","disabled"])]),o(e(_e),{data:L.value?h.value:[],"row-key":"key","aria-busy":e(f)},be({default:s(()=>[o(e(H),{prop:"name",label:e(a)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(e(H),{prop:"description",label:e(a)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:s(({row:t})=>[t.type==="number"&&e(i)===t.key?(c(),I(e(re),{key:0,"model-value":m(t.field),placeholder:t.placeholderKey===void 0?void 0:e(a)(t.placeholderKey),min:t.min,max:t.max,disabled:e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},{"decrease-icon":s(()=>[o(e(se),{name:"subtract"})]),"increase-icon":s(()=>[o(e(se),{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):t.type==="number"?(c(),T("span",He,p(e(O)[t.field]),1)):t.type==="origin"&&e(i)===t.key?(c(),I(e(X),{key:2,ref_key:"originForm",ref:_,model:b.value,rules:K},{default:s(()=>[o(e($),{prop:"origin",class:"origin-setting-form"},{default:s(()=>[o(e(j),{"model-value":ae(t.field),placeholder:e(a)(t.placeholderKey),disabled:e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):t.type==="origin"?(c(),T("span",Ze,p(e(O)[t.field]||e(a)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):t.type==="json"?(c(),T("span",Ge,"-")):(c(),I(e(ue),{key:5,"model-value":e(B)[t.field]===!0,disabled:e(i)!==t.key||!k.writable||e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:s(({row:t})=>[e(i)!==t.key||t.type==="json"?(c(),I(e(U),{key:0,link:"",icon:e(E)("edit"),disabled:!k.writable||e(i)!==null,onClick:F=>t.type==="json"?pe():e(q)(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(c(),T(Z,{key:1},[o(e(U),{link:"",type:"primary",icon:e(E)("check"),loading:e(n)===t.key,disabled:!k.writable||e(n)!==null,onClick:F=>le(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick"]),o(e(U),{link:"",icon:e(E)("close"),disabled:e(n)!==null,onClick:F=>e(J)(t.key)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:2},[e(f)?{name:"loading",fn:s(()=>[P("span",{role:"progressbar","aria-label":e(a)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,Je)]),key:"0"}:void 0]),1032,["data","aria-busy"]),g.value?(c(),I(e(Y),{key:0,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(W),modelValue:g.value,"onUpdate:modelValue":l[10]||(l[10]=t=>g.value=t),title:e(a)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(n)===null,"close-on-press-escape":e(n)===null,"show-close":e(n)===null,"append-to-body":""},{footer:s(()=>[o(e(U),{disabled:e(n)!==null,onClick:l[8]||(l[8]=t=>g.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["disabled"]),o(e(U),{type:"primary",loading:e(n)==="mail-smtp",onClick:l[9]||(l[9]=t=>le("mail-smtp"))},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading"])]),default:s(()=>[P("div",We,[P("span",null,p(e(a)("generated.systemConfigurationPage.smtpEnable")),1),o(e(ue),{modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=t=>v.value=t),disabled:e(n)!==null,"aria-label":e(a)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),v.value?(c(),I(e(X),{key:0,ref_key:"smtpForm",ref:w,model:d,rules:N,"label-position":"top",class:"smtp-form"},{default:s(()=>[y.value?(c(),I(e(Pe),{key:0,title:y.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:s(()=>[o(e(j),{modelValue:d.host,"onUpdate:modelValue":l[1]||(l[1]=t=>d.host=t),maxlength:"253",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),P("div",Qe,[o(e($),{label:e(a)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:s(()=>[o(e(re),{modelValue:d.port,"onUpdate:modelValue":l[2]||(l[2]=t=>d.port=t),"aria-label":e(a)("generated.systemConfigurationPage.smtpPort"),min:1,max:65535,controls:!1,disabled:e(n)!==null},null,8,["modelValue","aria-label","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:s(()=>[o(e(ge),{modelValue:d.tls,"onUpdate:modelValue":l[3]||(l[3]=t=>d.tls=t),disabled:e(n)!==null,"clear-icon":e(E)("clear-input"),"suffix-icon":e(E)("chevron-down")},{default:s(()=>[o(e(ee),{label:"STARTTLS",value:"STARTTLS"}),o(e(ee),{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:s(()=>[o(e(j),{modelValue:d.from,"onUpdate:modelValue":l[4]||(l[4]=t=>d.from=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:s(()=>[o(e(j),{modelValue:d.fromName,"onUpdate:modelValue":l[5]||(l[5]=t=>d.fromName=t),maxlength:"128",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:s(()=>[o(e(j),{modelValue:d.username,"onUpdate:modelValue":l[6]||(l[6]=t=>d.username=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:s(()=>[o(e(j),{modelValue:d.password,"onUpdate:modelValue":l[7]||(l[7]=t=>d.password=t),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(x)===d.username&&e(x)?e(a)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(n)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),P("div",Ye,[o(qe,{request:k.request,writable:k.writable},null,8,["request","writable"])]),P("p",Xe,p(e(a)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close"])):R("",!0)]))}}),ma=me(ea,[["__scopeId","data-v-296e0178"]]);export{ma as default};
|
|
1
|
+
import{u as W,m as Q,M as ce}from"./mobile-dialog-return-service-C5hGQdKK.js";import{a as C,d as de,t as a,o as c,b as T,$ as Z,g as o,q as s,G as S,E as p,u as e,s as E,H as U,p as I,K as Y,Q as ne,R as oe,D as P,a0 as ie,W as fe,v as R,F as j,c as z,L as A,_ as me,w as ye,B as ve,I as be,Z as se,r as Ce,N as he}from"./index-CA2ZUOwP.js";import{M as Pe}from"./MarAlert-ByiL0aQ-.js";import{M as re}from"./MarInputNumber-DWHXzNcC.js";import{_ as H,M as _e}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WPlhHLM.js";import{_ as $,a as X}from"./MarFormItem.vue_vue_type_script_setup_true_lang-BGZ5IFwn.js";import{M as ge,a as ee}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-D9q8IvDj.js";import{M as ue}from"./MarSwitch-CCvcHo25.js";import"./conversation-history-bnHQMSGD.js";import{e as G}from"./error-presentation-BMeYX7eg.js";const we={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},Ve={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},ke={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Te(k,M=[]){const u=[...M,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},Ve,ke,we],_=new Map(u.map(i=>[i.key,i]));if(_.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=C(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),y=C({...w.value}),g=C(null),V=C(null),v=C(!1);function d(i){w.value=i,y.value={...i}}async function x(){if(!(v.value||V.value!==null)){v.value=!0;try{d(await k("/api/system-settings")),g.value=null}finally{v.value=!1}}}function N(i){!_.has(i)||v.value||V.value!==null||g.value!==null||(y.value={...w.value},g.value=i)}function D(i){g.value!==i||V.value!==null||(y.value={...w.value},g.value=null)}function K(i,n){if(i.type==="json"){if(typeof n!="string"||n.length>4096)return!1;try{const f=JSON.parse(n);return f!==null&&typeof f=="object"&&!Array.isArray(f)}catch{return!1}}if(i.type==="origin"){if(n==="")return!0;if(typeof n!="string"||n.length>253)return!1;try{const f=new URL(n);return f.origin===n&&(f.protocol==="https:"||f.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof n=="boolean":typeof n=="number"&&Number.isFinite(n)&&n>=i.min&&n<=i.max}function O(i,n){const f=_.get(i);f===void 0||g.value!==i||V.value!==null||!(f.type==="origin"||f.type==="json"?typeof n=="string"&&n.length<=(f.type==="json"?4096:253):K(f,n))||(y.value[f.field]=n)}async function B(i){const n=_.get(i);if(n===void 0||g.value!==i||V.value!==null||v.value)return!1;const f=y.value[n.field];if(!K(n,f))return!1;V.value=i;try{return d(await k(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[n.payloadField]:f})})),g.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:y,editingKey:g,savingKey:V,loading:v,load:x,beginEdit:N,cancelEdit:D,validValue:K,setDraft:O,save:B}}function Se(k){const M=C([]),u=C(!1),_=C(!1);async function w(){if(!u.value){u.value=!0;try{M.value=await k("/api/mail/templates")}finally{u.value=!1}}}async function y(V,v){return k("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:v})})}async function g(V,v){_.value=!0;try{await k("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:v})})}finally{_.value=!1}}return{templates:M,loading:u,busy:_,load:w,preview:y,test:g}}const Me={class:"template-viewer"},Ue={class:"template-description"},xe={key:0,class:"template-layout"},$e=["aria-label"],Ee=["aria-pressed","onClick"],Ie={class:"template-choice__meta"},Ne={class:"template-choice__name"},De={class:"template-choice__subject"},Ke={key:0,class:"template-preview"},Oe={class:"template-preview__header"},Be={class:"template-preview__locale"},Fe=["srcdoc","title"],Ae={key:1,class:"template-preview__fallback"},je={key:1,class:"template-empty"},Re=de({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(k){const M=k,u=Se(M.request),_=C(!1),w=C(""),y=z(()=>u.templates.value.find(b=>b.id===w.value)),g=C(),V=C(!1);let v=0;const d=C(!1),x=C(),N=C(""),D=C(""),K=z(()=>u.templates.value.filter(b=>b.kind==="TEST")),O=z(()=>({email:N.value,templateId:D.value})),B={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?G(b):a("generated.systemConfigurationPage.mailOperationFailed")}async function n(){_.value=!0,v+=1,w.value="",g.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await q()}catch(b){A(i(b),"error",b)}}function f(b){w.value=b.id,g.value=void 0,q()}async function q(){const b=y.value;if(b===void 0||!_.value)return;const h=++v;V.value=!0;try{const m=await u.preview(b,a("generated.systemConfigurationPage.mailPreviewMessage"));_.value&&h===v&&w.value===b.id&&(g.value=m)}catch(m){h===v&&A(i(m),"error",m)}finally{h===v&&(V.value=!1)}}function J(){N.value="",D.value=(y.value?.kind==="TEST"?y.value.id:K.value[0]?.id)??"",d.value=!0}async function L(){if(M.writable)try{await x.value?.validate(),await u.test(N.value,D.value),d.value=!1,A(a("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&A(i(b),"error",b)}}return(b,h)=>(c(),T(Z,null,[o(e(U),{icon:e(E)("mail"),onClick:n},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),_.value?(c(),I(e(Y),{key:0,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(W),modelValue:_.value,"onUpdate:modelValue":h[1]||(h[1]=m=>_.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{disabled:!k.writable||K.value.length===0||e(u).busy.value,onClick:J},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(e(U),{onClick:h[0]||(h[0]=m=>_.value=!1)},{default:s(()=>[S(p(e(a)("common.close")),1)]),_:1})]),default:s(()=>[ne((c(),T("div",Me,[P("p",Ue,p(e(a)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(c(),T("div",xe,[P("div",{class:"template-choices",role:"group","aria-label":e(a)("generated.systemConfigurationPage.mailTemplates")},[(c(!0),T(Z,null,ie(e(u).templates.value,m=>(c(),T("button",{key:m.id,type:"button",class:fe(["template-choice",{"is-selected":w.value===m.id}]),"aria-pressed":w.value===m.id,onClick:ae=>f(m)},[P("span",Ie,[S(p(e(a)(m.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),h[6]||(h[6]=P("span",{"aria-hidden":"true"},"·",-1)),S(" "+p(m.locale),1)]),P("span",Ne,p(m.name),1),P("span",De,p(m.subject),1)],10,Ee))),128))],8,$e),y.value?ne((c(),T("div",Ke,[P("div",Oe,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailPreviewSample")),1),P("span",Be,p(y.value.locale),1)]),g.value?.html?(c(),T("iframe",{key:0,class:"template-preview__document",srcdoc:g.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(a)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Fe)):(c(),T("div",Ae,[P("span",null,p(e(a)("generated.systemConfigurationPage.mailSubject")),1),P("strong",null,p(g.value?.subject??y.value.subject),1),P("span",null,p(e(a)("generated.systemConfigurationPage.mailBody")),1),P("p",null,p(g.value?.text??y.value.body),1)]))])),[[e(oe),V.value,"region"]]):R("",!0)])):e(u).loading.value?R("",!0):(c(),T("p",je,p(e(a)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[e(oe),e(u).loading.value,"region"]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):R("",!0),d.value?(c(),I(e(Y),{key:1,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(W),modelValue:d.value,"onUpdate:modelValue":h[5]||(h[5]=m=>d.value=m),"append-to-body":"",title:e(a)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))"},{footer:s(()=>[o(e(U),{onClick:h[4]||(h[4]=m=>d.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1}),o(e(U),{type:"primary",loading:e(u).busy.value,onClick:L},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading"])]),default:s(()=>[o(e(X),{ref_key:"testForm",ref:x,model:O.value,rules:B,"label-position":"top"},{default:s(()=>[o(e($),{label:e(a)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:s(()=>[o(e(j),{modelValue:N.value,"onUpdate:modelValue":h[2]||(h[2]=m=>N.value=m),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:s(()=>[o(e(ge),{modelValue:D.value,"onUpdate:modelValue":h[3]||(h[3]=m=>D.value=m),class:"template-test-select","clear-icon":e(E)("clear-input"),"suffix-icon":e(E)("chevron-down")},{default:s(()=>[(c(!0),T(Z,null,ie(K.value,m=>(c(),I(e(ee),{key:m.id,value:m.id,label:m.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"])):R("",!0)],64))}}),qe=me(Re,[["__scopeId","data-v-5494f73e"]]),Le={class:"mar-management-page"},ze={class:"mar-table-actions"},Je=["aria-label"],He={key:1},Ze={key:3},Ge={key:4},We={class:"smtp-toggle"},Qe={class:"smtp-form__pair"},Ye={class:"smtp-template-row"},Xe={class:"smtp-dialog-hint"},ea=de({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(k){const M=k,u=Te(M.request,M.settings),_=C(),w=C(),y=C(""),g=C(!1),V=u.settings.find(r=>r.key==="mail-smtp"),v=C(!1),d=Ce({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let x="";const N={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:a("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:a("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:a("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:a("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(r,l,t)=>t(typeof l=="string"&&l.length<=1024&&(d.username===""?l==="":l!==""||d.username===x)?void 0:new Error(a("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},D=u.settings.find(r=>r.key==="html-preview-origin"),K={origin:[{validator:(r,l,t)=>t(u.validValue(D,l)?void 0:new Error(a("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:O,drafts:B,editingKey:i,savingKey:n,loading:f,beginEdit:q,cancelEdit:J}=u,L=C(!1),b=z(()=>({origin:B.value.htmlPreviewOrigin})),h=z(()=>u.settings.map(r=>({...r,name:a(r.nameKey),description:a(r.descriptionKey)})));ye(g,r=>{y.value="",r||(d.password="",x="",J("mail-smtp"))});function m(r){const l=B.value[r];return typeof l=="number"?l:void 0}function ae(r){const l=B.value[r];return typeof l=="string"?l:""}function pe(){if(!M.writable||(q("mail-smtp"),i.value!=="mail-smtp"))return;const r=JSON.parse(String(O.value.smtpConfiguration));v.value=Object.keys(r).length>0,Object.assign(d,{host:r.host??"",port:r.port??587,tls:r.tls??"STARTTLS",from:r.from??"",fromName:r.fromName??"",username:r.username??"",password:""}),x=r.username??"",g.value=i.value==="mail-smtp"}async function te(){try{await u.load(),L.value=!0}catch(r){L.value=!1,A(r instanceof Error?G(r):a("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",r)}}async function le(r){if(M.writable){if(y.value="",r==="html-preview-origin")try{await _.value?.validate()}catch{return}if(r==="mail-smtp")if(v.value){try{await w.value?.validate()}catch{return}const l=JSON.stringify({...d});if(!u.validValue(V,l)){y.value=a("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(r,l)}else{if(O.value.smtpConfiguration!=="{}")try{await he.confirm(a("generated.systemConfigurationPage.smtpDisableConfirmation"),a("generated.systemConfigurationPage.smtpDisableTitle"),{icon:E("warning"),type:"warning",confirmButtonText:a("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:a("common.cancel")})}catch(l){if(l==="cancel"||l==="close")return;A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l);return}if(!g.value||i.value!==r)return;u.setDraft(r,"{}")}try{await u.save(r)&&(r==="mail-smtp"&&(g.value=!1),A(a("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(l){A(l instanceof Error?G(l):a("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",l)}}}return ve(()=>{te()}),(r,l)=>(c(),T("section",Le,[P("div",ze,[o(e(U),{icon:e(E)("refresh"),disabled:e(f)||e(n)!==null,onClick:te},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","disabled"])]),o(e(_e),{data:L.value?h.value:[],"row-key":"key","aria-busy":e(f)},be({default:s(()=>[o(e(H),{prop:"name",label:e(a)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(e(H),{prop:"description",label:e(a)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:s(({row:t})=>[t.type==="number"&&e(i)===t.key?(c(),I(e(re),{key:0,"model-value":m(t.field),placeholder:t.placeholderKey===void 0?void 0:e(a)(t.placeholderKey),min:t.min,max:t.max,disabled:e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},{"decrease-icon":s(()=>[o(e(se),{name:"subtract"})]),"increase-icon":s(()=>[o(e(se),{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):t.type==="number"?(c(),T("span",He,p(e(O)[t.field]),1)):t.type==="origin"&&e(i)===t.key?(c(),I(e(X),{key:2,ref_key:"originForm",ref:_,model:b.value,rules:K},{default:s(()=>[o(e($),{prop:"origin",class:"origin-setting-form"},{default:s(()=>[o(e(j),{"model-value":ae(t.field),placeholder:e(a)(t.placeholderKey),disabled:e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):t.type==="origin"?(c(),T("span",Ze,p(e(O)[t.field]||e(a)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):t.type==="json"?(c(),T("span",Ge,"-")):(c(),I(e(ue),{key:5,"model-value":e(B)[t.field]===!0,disabled:e(i)!==t.key||!k.writable||e(n)!==null,"onUpdate:modelValue":F=>e(u).setDraft(t.key,F)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(e(H),{label:e(a)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:s(({row:t})=>[e(i)!==t.key||t.type==="json"?(c(),I(e(U),{key:0,link:"",icon:e(E)("edit"),disabled:!k.writable||e(i)!==null,onClick:F=>t.type==="json"?pe():e(q)(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(c(),T(Z,{key:1},[o(e(U),{link:"",type:"primary",icon:e(E)("check"),loading:e(n)===t.key,disabled:!k.writable||e(n)!==null,onClick:F=>le(t.key)},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick"]),o(e(U),{link:"",icon:e(E)("close"),disabled:e(n)!==null,onClick:F=>e(J)(t.key)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:2},[e(f)?{name:"loading",fn:s(()=>[P("span",{role:"progressbar","aria-label":e(a)("common.loading")},[o(e(ce),{class:"mar-read-loading-indicator"})],8,Je)]),key:"0"}:void 0]),1032,["data","aria-busy"]),g.value?(c(),I(e(Y),{key:0,onVnodeMounted:e(Q),onVnodeBeforeUnmount:e(W),modelValue:g.value,"onUpdate:modelValue":l[10]||(l[10]=t=>g.value=t),title:e(a)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(n)===null,"close-on-press-escape":e(n)===null,"show-close":e(n)===null,"append-to-body":""},{footer:s(()=>[o(e(U),{disabled:e(n)!==null,onClick:l[8]||(l[8]=t=>g.value=!1)},{default:s(()=>[S(p(e(a)("common.cancel")),1)]),_:1},8,["disabled"]),o(e(U),{type:"primary",loading:e(n)==="mail-smtp",onClick:l[9]||(l[9]=t=>le("mail-smtp"))},{default:s(()=>[S(p(e(a)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading"])]),default:s(()=>[P("div",We,[P("span",null,p(e(a)("generated.systemConfigurationPage.smtpEnable")),1),o(e(ue),{modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=t=>v.value=t),disabled:e(n)!==null,"aria-label":e(a)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),v.value?(c(),I(e(X),{key:0,ref_key:"smtpForm",ref:w,model:d,rules:N,"label-position":"top",class:"smtp-form"},{default:s(()=>[y.value?(c(),I(e(Pe),{key:0,title:y.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:s(()=>[o(e(j),{modelValue:d.host,"onUpdate:modelValue":l[1]||(l[1]=t=>d.host=t),maxlength:"253",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),P("div",Qe,[o(e($),{label:e(a)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:s(()=>[o(e(re),{modelValue:d.port,"onUpdate:modelValue":l[2]||(l[2]=t=>d.port=t),"aria-label":e(a)("generated.systemConfigurationPage.smtpPort"),min:1,max:65535,controls:!1,disabled:e(n)!==null},null,8,["modelValue","aria-label","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:s(()=>[o(e(ge),{modelValue:d.tls,"onUpdate:modelValue":l[3]||(l[3]=t=>d.tls=t),disabled:e(n)!==null,"clear-icon":e(E)("clear-input"),"suffix-icon":e(E)("chevron-down")},{default:s(()=>[o(e(ee),{label:"STARTTLS",value:"STARTTLS"}),o(e(ee),{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:s(()=>[o(e(j),{modelValue:d.from,"onUpdate:modelValue":l[4]||(l[4]=t=>d.from=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:s(()=>[o(e(j),{modelValue:d.fromName,"onUpdate:modelValue":l[5]||(l[5]=t=>d.fromName=t),maxlength:"128",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:s(()=>[o(e(j),{modelValue:d.username,"onUpdate:modelValue":l[6]||(l[6]=t=>d.username=t),maxlength:"320",autocomplete:"off",disabled:e(n)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(e($),{label:e(a)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:s(()=>[o(e(j),{modelValue:d.password,"onUpdate:modelValue":l[7]||(l[7]=t=>d.password=t),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(x)===d.username&&e(x)?e(a)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(n)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),P("div",Ye,[o(qe,{request:k.request,writable:k.writable},null,8,["request","writable"])]),P("p",Xe,p(e(a)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close"])):R("",!0)]))}}),ma=me(ea,[["__scopeId","data-v-296e0178"]]);export{ma as default};
|
package/web/assets/{SystemConfigurationPage-DraZ7Hhr.js → SystemConfigurationPage-D7CN440o.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"./SystemConfigurationPage-
|
|
1
|
+
import i from"./SystemConfigurationPage-D4rrRYos.js";import{d as r,o as n,p as o}from"./index-CA2ZUOwP.js";import"./mobile-dialog-return-service-C5hGQdKK.js";import"./MarAlert-ByiL0aQ-.js";import"./MarInputNumber-DWHXzNcC.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WPlhHLM.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-BGZ5IFwn.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-D9q8IvDj.js";import"./MarSwitch-CCvcHo25.js";import"./conversation-history-bnHQMSGD.js";import"./error-presentation-BMeYX7eg.js";const P=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,s)=>(n(),o(i,{request:e.request,writable:e.writable,settings:t},null,8,["request","writable"]))}});export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as a}from"./MarTag-
|
|
1
|
+
import{M as a}from"./MarTag-CcctIVZG.js";import{d as g,o as c,b as C,D as e,E as o,u as t,t as s,g as l,q as i,G as d,p as f,Y as y,v as h,_ as v}from"./index-CA2ZUOwP.js";const x={class:"system-information"},b=["aria-label"],N=["src"],V=["aria-label"],B=g({__name:"SystemInformationPage",props:{authenticated:{type:Boolean},logoUrl:{},onlineNodeCount:{},nodeCount:{},request:{type:Function},isAdmin:{type:Boolean},serverVersion:{},extension:{}},emits:["extensionChanged"],setup(n,{emit:u}){const m=u;return(k,r)=>(c(),C("section",x,[e("div",{class:"system-brand","aria-label":t(s)("generated.settingsContent.myAgentRoamVersion")},[e("img",{src:n.logoUrl,alt:""},null,8,N),e("div",null,[e("strong",null,o(t(s)("common.productName")),1),e("code",null,o(n.serverVersion??t(s)("generated.settingsContent.unknown")),1)])],8,b),e("section",{class:"system-status","aria-label":t(s)("generated.settingsContent.systemStatus")},[e("h2",null,o(t(s)("generated.settingsContent.systemStatus2")),1),e("dl",null,[e("div",null,[e("dt",null,o(t(s)("common.webConsole")),1),e("dd",null,[l(t(a),{effect:"light",type:"success"},{default:i(()=>[d(o(t(s)("generated.settingsContent.running")),1)]),_:1})])]),e("div",null,[e("dt",null,o(t(s)("generated.settingsContent.serverConnection")),1),e("dd",null,[l(t(a),{type:n.authenticated?"success":"info",effect:"light"},{default:i(()=>[d(o(n.authenticated?t(s)("generated.settingsContent.connected"):t(s)("generated.settingsContent.disconnected")),1)]),_:1},8,["type"])])]),e("div",null,[e("dt",null,o(t(s)("generated.settingsContent.nodeConnections")),1),e("dd",null,[l(t(a),{type:n.onlineNodeCount>0?"success":"info",effect:"light"},{default:i(()=>[d(o(n.onlineNodeCount)+"/"+o(n.nodeCount),1)]),_:1},8,["type"])])])])],8,V),n.isAdmin&&n.extension?(c(),f(y(n.extension),{key:0,embedded:"",request:n.request,onImported:r[0]||(r[0]=q=>m("extensionChanged"))},null,40,["request"])):h("",!0)]))}}),p=v(B,[["__scopeId","data-v-a082d68d"]]);export{p as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b1 as Mr,b2 as Tn,b3 as Pn,b4 as An,A as On,t as Be,d as In,b5 as Nn,w as Ms,B as Hn,a4 as di,O as Wn,Q as zn,b6 as Fn,o as ui,b as Ts,D as $n,u as Re,E as At,v as Ps,p as Kn,q as _t,g as Ot,G as _i,W as Un,a as It,aV as qn,b7 as Vn,b8 as Yn,_ as Xn}from"./index-
|
|
1
|
+
import{b1 as Mr,b2 as Tn,b3 as Pn,b4 as An,A as On,t as Be,d as In,b5 as Nn,w as Ms,B as Hn,a4 as di,O as Wn,Q as zn,b6 as Fn,o as ui,b as Ts,D as $n,u as Re,E as At,v as Ps,p as Kn,q as _t,g as Ot,G as _i,W as Un,a as It,aV as qn,b7 as Vn,b8 as Yn,_ as Xn}from"./index-CA2ZUOwP.js";import{l as jn,m as fi,q as Gn}from"./FilePreviewState-BRTU_mxV.js";import{d as Jn}from"./workbench-live-service-Daam7q0x.js";import{w as Zn,r as Qn}from"./WorkbenchPage-D0uzy2sP.js";import"./mobile-dialog-return-service-C5hGQdKK.js";import"./uuid-BmNSYLtZ.js";import"./time-presentation-D8e9iq-x.js";import"./conversation-history-bnHQMSGD.js";import"./workbench-presentation-8dxKALya.js";import"./runner-presentation-C90CMFtP.js";import"./AuthEntryPanel-Ce8AyHUI.js";import"./error-presentation-BMeYX7eg.js";import"./MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-RFH8mm40.js";import"./MarCheckboxGroup-Dbw2wueP.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-D9q8IvDj.js";import"./scoped-http-service-CUp3DZeQ.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-BGZ5IFwn.js";import"./MarSwitch-CCvcHo25.js";import"./file-presentation-Cm7tx53N.js";import"./MarTabs-FeKKbjgE.js";import"./rfb-ByKEQGJ8.js";import"./workspace-direct-transfer-service-DVur2GQc.js";import"./mar-agent-reasoning-effort-Bnl6GPl0.js";import"./hosted-conversation-template-client-DYFisxhg.js";import"./oauth-callback-CGVxWi9i.js";import"./MarAlert-ByiL0aQ-.js";import"./code-navigation-target-BlnRe0-a.js";import"./NodeDetailsDialogs-ZlU2ovV1.js";/* empty css */import"./MarDescriptionsItem-bqLvHkpk.js";import"./MarTag-CcctIVZG.js";import"./EnvironmentSecretManager-BGcpcdMV.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WPlhHLM.js";import"./ManagementPagination-DZMc85RP.js";import"./management-url-service-DXDvpPuF.js";import"./MarInputNumber-DWHXzNcC.js";import"./MarDatePicker-DPKPR-yf.js";import"./mcp-center-service-Cb9MR6h0.js";import"./catalog-page-service-CJLeYQK5.js";import"./MarCascader-DcB-m9qm.js";import"./enterprise-management-service-B4nAmDj8.js";var eo=2,to=1,io=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue("height")),r=Math.max(0,parseInt(i.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),o={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},l=o.top+o.bottom,h=o.right+o.left,a=s-l,u=r-h-t;return{cols:Math.max(eo,Math.floor(u/e.css.cell.width)),rows:Math.max(to,Math.floor(a/e.css.cell.height))}}};var pi=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],so=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],te;function ro(e,t){let i=0,s=t.length-1,r;if(e<t[0][0]||e>t[s][1])return!1;for(;s>=i;)if(r=i+s>>1,e>t[r][1])i=r+1;else if(e<t[r][0])s=r-1;else return!0;return!1}var no=class{constructor(){if(this.version="6",!te){te=new Uint8Array(65536),te.fill(1),te[0]=0,te.fill(0,1,32),te.fill(0,127,160),te.fill(2,4352,4448),te[9001]=2,te[9002]=2,te.fill(2,11904,42192),te[12351]=1,te.fill(2,44032,55204),te.fill(2,63744,64256),te.fill(2,65040,65050),te.fill(2,65072,65136),te.fill(2,65280,65377),te.fill(2,65504,65511);for(let t=0;t<pi.length;++t)te.fill(0,pi[t][0],pi[t][1]+1)}}wcwidth(t){return t<32?0:t<127?1:t<65536?te[t]:ro(t,so)?0:t>=131072&&t<=196605||t>=196608&&t<=262141?2:1}charProperties(t,i){let s=this.wcwidth(t),r=s===0&&i!==0;if(r){let n=Zt.extractWidth(i);n===0?r=!1:n>s&&(s=n)}return Zt.createPropertyValue(0,s,r)}},oo=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?As.isErrorNoTelemetry(t)?new As(t.message+`
|
|
2
2
|
|
|
3
3
|
`+t.stack):new Error(t.message+`
|
|
4
4
|
|
|
@@ -20,4 +20,4 @@ WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){t
|
|
|
20
20
|
`))),this._register(this._terminal.onA11yTab(n=>this._handleTab(n))),this._register(this._terminal.onKey(n=>this._handleKey(n.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(A(r,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(V(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<Br+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
21
21
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===Br+1&&(this._liveRegion.textContent+=Hi.get())))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let i=this._terminal.buffer,s=i.lines.length.toString();for(let r=e;r<=t;r++){let n=i.lines.get(i.ydisp+r),o=[],l=n?.translateToString(!0,void 0,void 0,o)||"",h=(i.ydisp+r+1).toString(),a=this._rowElements[r];a&&(l.length===0?(a.textContent=" ",this._rowColumns.set(a,[0,1])):(a.textContent=l,this._rowColumns.set(a,o)),a.setAttribute("aria-posinset",h),a.setAttribute("aria-setsize",s),this._alignRowWidth(a))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let i=e.target,s=this._rowElements[t===0?1:this._rowElements.length-2],r=i.getAttribute("aria-posinset"),n=t===0?"1":`${this._terminal.buffer.lines.length}`;if(r===n||e.relatedTarget!==s)return;let o,l;if(t===0?(o=i,l=this._rowElements.pop(),this._rowContainer.removeChild(l)):(o=this._rowElements.shift(),l=i,this._rowContainer.removeChild(o)),o.removeEventListener("focus",this._topBoundaryFocusListener),l.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let h=this._createAccessibilityTreeNode();this._rowElements.unshift(h),this._rowContainer.insertAdjacentElement("afterbegin",h)}else{let h=this._createAccessibilityTreeNode();this._rowElements.push(h),this._rowContainer.appendChild(h)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error("anchorNode and/or focusNode are null");return}let t={node:e.anchorNode,offset:e.anchorOffset},i={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(i.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===i.node&&t.offset>i.offset)&&([t,i]=[i,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let s=this._rowElements.slice(-1)[0];if(i.node.compareDocumentPosition(s)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(i={node:s,offset:s.textContent?.length??0}),!this._rowContainer.contains(i.node))return;let r=({node:l,offset:h})=>{let a=l instanceof Text?l.parentNode:l,u=parseInt(a?.getAttribute("aria-posinset"),10)-1;if(isNaN(u))return console.warn("row is invalid. Race condition?"),null;let c=this._rowColumns.get(a);if(!c)return console.warn("columns is null. Race condition?"),null;let p=h<c.length?c[h]:c.slice(-1)[0]+1;return p>=this._terminal.cols&&(++u,p=0),{row:u,column:p}},n=r(t),o=r(i);if(!(!n||!o)){if(n.row>o.row||n.row===o.row&&n.column>=o.column)throw new Error("invalid range");this._terminal.select(n.column,n.row,(o.row-n.row)*this._terminal.cols-n.column+o.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){e.style.transform="";let t=e.getBoundingClientRect().width,i=this._rowColumns.get(e)?.slice(-1)?.[0];if(!i)return;let s=i*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${s/t})`}};ri=J([B(1,bs),B(2,Fe),B(3,$e)],ri);var Ss=class extends H{constructor(e,t,i,s,r){super(),this._element=e,this._mouseService=t,this._renderService=i,this._bufferService=s,this._linkProviderService=r,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new x),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new x),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(V(()=>{st(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(A(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(A(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(A(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(A(this._element,"mouseup",this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let i=e.composedPath();for(let s=0;s<i.length;s++){let r=i[s];if(r.classList.contains("xterm"))break;if(r.classList.contains("xterm-hover"))return}(!this._lastBufferCell||t.x!==this._lastBufferCell.x||t.y!==this._lastBufferCell.y)&&(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized){this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1;return}this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){(!this._activeProviderReplies||!t)&&(this._activeProviderReplies?.forEach(s=>{s?.forEach(r=>{r.link.dispose&&r.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let i=!1;for(let[s,r]of this._linkProviderService.linkProviders.entries())t?this._activeProviderReplies?.get(s)&&(i=this._checkLinkProviderResult(s,e,i)):r.provideLinks(e.y,n=>{if(this._isMouseOut)return;let o=n?.map(l=>({link:l}));this._activeProviderReplies?.set(s,o),i=this._checkLinkProviderResult(s,e,i),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let i=new Set;for(let s=0;s<t.size;s++){let r=t.get(s);if(r)for(let n=0;n<r.length;n++){let o=r[n],l=o.link.range.start.y<e?0:o.link.range.start.x,h=o.link.range.end.y>e?this._bufferService.cols:o.link.range.end.x;for(let a=l;a<=h;a++){if(i.has(a)){r.splice(n--,1);break}i.add(a)}}}}_checkLinkProviderResult(e,t,i){if(!this._activeProviderReplies)return i;let s=this._activeProviderReplies.get(e),r=!1;for(let n=0;n<e;n++)(!this._activeProviderReplies.has(n)||this._activeProviderReplies.get(n))&&(r=!0);if(!r&&s){let n=s.find(o=>this._linkAtPosition(o.link,t));n&&(i=!0,this._handleNewLink(n))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!i)for(let n=0;n<this._activeProviderReplies.size;n++){let o=this._activeProviderReplies.get(n)?.find(l=>this._linkAtPosition(l.link,t));if(o){i=!0,this._handleNewLink(o);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&Ih(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,st(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:i=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",i))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:i=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,i))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;let s=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=s&&this._currentLink.link.range.end.y<=r&&(this._clearCurrentLink(s,r),this._lastMouseEvent)){let n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._askForLink(n,!1)}})))}_linkHover(e,t,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){let i=e.range,s=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-s-1,i.end.x,i.end.y-s-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){let i=e.range.start.y*this._bufferService.cols+e.range.start.x,s=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=s}_positionFromMouseEvent(e,t,i){let s=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}};Ss=J([B(1,ys),B(2,$e),B(3,ve),B(4,Zr)],Ss);function Ih(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var Nh=class extends Bh{constructor(e={}){super(e),this._linkifier=this._register(new ht),this.browser=mn,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new ht),this._onCursorMove=this._register(new x),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new x),this.onKey=this._onKey.event,this._onRender=this._register(new x),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new x),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new x),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new x),this.onBell=this._onBell.event,this._onFocus=this._register(new x),this._onBlur=this._register(new x),this._onA11yCharEmitter=this._register(new x),this._onA11yTabEmitter=this._register(new x),this._onWillOpen=this._register(new x),this._setup(),this._decorationService=this._instantiationService.createInstance(Th),this._instantiationService.setService(Lt,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(El),this._instantiationService.setService(Zr,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(zi)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh(t?.start??0,t?.end??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(t=>this._reportWindowsOptions(t))),this._register(this._inputHandler.onColor(t=>this._handleColorEvent(t))),this._register(ce.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(ce.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(ce.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(ce.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(V(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let i,s="";switch(t.index){case 256:i="foreground",s="10";break;case 257:i="background",s="11";break;case 258:i="cursor",s="12";break;default:i="ansi",s="4;"+t.index}switch(t.type){case 0:let r=q.toColorRGB(i==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[i]);this.coreService.triggerDataEvent(`${C.ESC}]${s};${yh(r)}${gn.ST}`);break;case 1:if(i==="ansi")this._themeService.modifyColors(n=>n.ansi[t.index]=ee.toColor(...t.color));else{let n=i;this._themeService.modifyColors(o=>o[n]=ee.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(ri,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(C.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(C.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let i=Math.min(this.buffer.x,this.cols-1),s=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*r,o=this.buffer.y*this._renderService.dimensions.css.cell.height,l=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=l+"px",this.textarea.style.top=o+"px",this.textarea.style.width=n+"px",this.textarea.style.height=s+"px",this.textarea.style.lineHeight=s+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(A(this.element,"copy",t=>{this.hasSelection()&&Fo(t,this._selectionService)}));let e=t=>$o(t,this.textarea,this.coreService,this.optionsService);this._register(A(this.textarea,"paste",e)),this._register(A(this.element,"paste",e)),Sn?this._register(A(this.element,"mousedown",t=>{t.button===2&&Hs(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(A(this.element,"contextmenu",t=>{Hs(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),Ls&&this._register(A(this.element,"auxclick",t=>{t.button===1&&Kr(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(A(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(A(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(A(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(A(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(A(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(A(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(A(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this.element?.ownerDocument.defaultView&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._register(A(this.screenElement,"mousemove",r=>this.updateCursorStyle(r))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let i=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",Ni.get()),yn||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange("disableStdin",()=>i.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(kl,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(Fe,this._coreBrowserService),this._register(A(this.textarea,"focus",r=>this._handleTextAreaFocus(r))),this._register(A(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(as,this._document,this._helperContainer),this._instantiationService.setService(oi,this._charSizeService),this._themeService=this._instantiationService.createInstance(ds),this._instantiationService.setService(ct,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(ti),this._instantiationService.setService(Jr,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(hs,this.rows,this.screenElement)),this._instantiationService.setService($e,this._renderService),this._register(this._renderService.onRenderedViewportChange(r=>this._onRender.fire(r))),this.onResize(r=>this._renderService.resize(r.cols,r.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(rs,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(ls),this._instantiationService.setService(ys,this._mouseService);let s=this._linkifier.value=this._register(this._instantiationService.createInstance(Ss,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(is,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(r=>{super.scrollLines(r,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(cs,this.element,this.screenElement,s)),this._instantiationService.setService(Go,this._selectionService),this._register(this._selectionService.onRequestScrollLines(r=>this.scrollLines(r.amount,r.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(r=>this._renderService.handleSelectionChanged(r.start,r.end,r.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(r=>{this.textarea.value=r,this.textarea.focus(),this.textarea.select()})),this._register(ce.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{this._selectionService.refresh(),this._viewport?.queueSync()})),this._register(this._instantiationService.createInstance(ss,this.screenElement)),this._register(A(this.element,"mousedown",r=>this._selectionService.handleMouseDown(r))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(ri,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",r=>this._handleScreenReaderModeOptionChange(r))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(ei,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",r=>{!this._overviewRulerRenderer&&r&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(ei,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(os,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function i(n){let o=e._mouseService.getMouseReportCoords(n,e.screenElement);if(!o)return!1;let l,h;switch(n.overrideType||n.type){case"mousemove":h=32,n.buttons===void 0?(l=3,n.button!==void 0&&(l=n.button<3?n.button:3)):l=n.buttons&1?0:n.buttons&4?1:n.buttons&2?2:3;break;case"mouseup":h=0,l=n.button<3?n.button:3;break;case"mousedown":h=1,l=n.button<3?n.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(n)===!1)return!1;let a=n.deltaY;if(a===0||e.coreMouseService.consumeWheelEvent(n,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return!1;h=a<0?0:1,l=4;break;default:return!1}return h===void 0||l===void 0||l>4?!1:e.coreMouseService.triggerMouseEvent({col:o.col,row:o.row,x:o.x,y:o.y,button:l,action:h,ctrl:n.ctrlKey,alt:n.altKey,shift:n.shiftKey})}let s={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r={mouseup:n=>(i(n),n.buttons||(this._document.removeEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.removeEventListener("mousemove",s.mousedrag)),this.cancel(n)),wheel:n=>(i(n),this.cancel(n,!0)),mousedrag:n=>{n.buttons&&i(n)},mousemove:n=>{n.buttons||i(n)}};this._register(this.coreMouseService.onProtocolChange(n=>{n?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(n)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),n&8?s.mousemove||(t.addEventListener("mousemove",r.mousemove),s.mousemove=r.mousemove):(t.removeEventListener("mousemove",s.mousemove),s.mousemove=null),n&16?s.wheel||(t.addEventListener("wheel",r.wheel,{passive:!1}),s.wheel=r.wheel):(t.removeEventListener("wheel",s.wheel),s.wheel=null),n&2?s.mouseup||(s.mouseup=r.mouseup):(this._document.removeEventListener("mouseup",s.mouseup),s.mouseup=null),n&4?s.mousedrag||(s.mousedrag=r.mousedrag):(this._document.removeEventListener("mousemove",s.mousedrag),s.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(A(t,"mousedown",n=>{if(n.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(n)))return i(n),s.mouseup&&this._document.addEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.addEventListener("mousemove",s.mousedrag),this.cancel(n)})),this._register(A(t,"wheel",n=>{if(!s.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(n)===!1)return!1;if(!this.buffer.hasScrollback){if(n.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(n,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return this.cancel(n,!0);let o=C.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(n.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(o,!0),this.cancel(n,!0)}}},{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){$r(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key==="Dead"||e.key==="AltGraph")&&(this._unprocessedDeadKey=!0);let i=Lh(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),i.type===3||i.type===2){let s=this.rows-1;return this.scrollLines(i.type===2?-s:s),this.cancel(e,!0)}if(i.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((i.key===C.ETX||i.key===C.CR)&&(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return t.type==="keypress"?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(Hh(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType==="insertText"&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){this._charSizeService?.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(Q));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),this._selectionService?.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){this._renderService?.clearTextureAtlas()}_reportFocus(){this.element?.classList.contains("focus")?this.coreService.triggerDataEvent(C.ESC+"[I"):this.coreService.triggerDataEvent(C.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),i=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${C.ESC}[4;${i};${t}t`);break;case 1:let s=this._renderService.dimensions.css.cell.width.toFixed(0),r=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${C.ESC}[6;${r};${s}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function Hh(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var Wh=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i<this._addons.length;i++)if(this._addons[i]===e){t=i;break}if(t===-1)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},zh=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new De)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}},Rr=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new zh(t)}getNullCell(){return new De}},Fh=class extends H{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new x),this.onBufferChange=this._onBufferChange.event,this._normal=new Rr(this._core.buffers.normal,"normal"),this._alternate=new Rr(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},$h=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,i=>t(i.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(i,s)=>t(i,s.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},Kh=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},Uh=["cols","rows"],Me=0,qh=class extends H{constructor(e){super(),this._core=this._register(new Nh(e)),this._addonManager=this._register(new Wh),this._publicOptions={...this._core.options};let t=s=>this._core.options[s],i=(s,r)=>{this._checkReadonlyOptions(s),this._core.options[s]=r};for(let s in this._core.options){let r={get:t.bind(this,s),set:i.bind(this,s)};Object.defineProperty(this._publicOptions,s,r)}}_checkReadonlyOptions(e){if(Uh.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new $h(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new Kh(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this._register(new Fh(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any";break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
|
|
22
22
|
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return Ni.get()},set promptLabel(e){Ni.set(e)},get tooMuchOutput(){return Hi.get()},set tooMuchOutput(e){Hi.set(e)}}}_verifyIntegers(...e){for(Me of e)if(Me===1/0||isNaN(Me)||Me%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(Me of e)if(Me&&(Me===1/0||isNaN(Me)||Me%1!==0||Me<0))throw new Error("This API only accepts positive integers")}};function Vh(e){return Zn(e,Mr,"TERMINAL_RECORD_INVALID")}function Yh(e){return Qn(e,Mr,"TERMINAL_RECORD_INVALID","TERMINAL_RECORD_TRUNCATED")}const Xh=new Set(["TERMINAL_CLOSED","TERMINAL_NOT_FOUND"]),Lr=32*1024,jh=2e4,Gh=2*1024*1024,Jh=new Set(["RESOURCE_DENIED","TERMINAL_NOT_AUTHORIZED","TERMINAL_OWNER_REQUIRED","RESOURCE_ACCESS_DENIED","WORKSPACE_ACCESS_DENIED","SESSION_UNAUTHENTICATED","USER_AUTHORIZATION_REQUIRED","TERMINAL_WORKSPACE_MISMATCH","TERMINAL_GIT_OWNER_REQUIRED","NODE_ACCESS_DENIED"]);function Zh(e){let t,i,s,r,n,o=0,l=1e3,h=0,a=!1,u=!1,c=!1,p=0;function _(){r!==void 0&&clearTimeout(r),n!==void 0&&clearInterval(n),r=void 0,n=void 0}function f(){u=!1,i=void 0,s?.abort(),s=void 0,t?.dispose(),t=void 0}function w(T){return T==="TERMINAL_ATTACH_CONFLICT"?(p+=1,h+=1,f(),E(),!0):Xh.has(T)?(c=!0,_(),f(),e.onTerminalUnavailable(T),!0):Jh.has(T)?(c=!0,_(),f(),e.onReconnectStatus(void 0),e.onErrorFrame(T),!0):!1}function E(){if(a||c||r!==void 0)return;const T=Date.now()+l,$=()=>e.onReconnectStatus(p>=3?Be("generated.terminalRelayService.terminalOccupiedRetrying"):Be("generated.terminalRelayService.terminalConnectionLostReconnectingInSeconds",{value0:Math.max(1,Math.ceil((T-Date.now())/1e3))}));$(),n=setInterval($,250),r=setTimeout(()=>{_(),e.onReconnectStatus(p>=3?Be("generated.terminalRelayService.terminalOccupiedRetrying"):Be("generated.terminalRelayService.reconnectingTerminal")),D()},l),l=Math.min(l*2,1e4)}function R(){u=!0,p=0,l=1e3,_(),e.onReconnectStatus(void 0),e.onAttached()}function W(T,$){if($!==void 0){if($<=o)return;o=$}e.onOutput(T)}function P(T,$){T!==h||a||c||($ instanceof Jn||$ instanceof On)&&w($.code)||(h+=1,f(),E())}async function k(){if(a||c)return;const T=++h;f(),s=new AbortController;const $=s.signal;let z;const m=new AbortController,d=setTimeout(()=>m.abort(),jh),S=AbortSignal.any([$,m.signal]),v=()=>P(T);m.signal.addEventListener("abort",v,{once:!0});const y=()=>{clearTimeout(d),m.signal.removeEventListener("abort",v)};$.addEventListener("abort",y,{once:!0});try{z=await e.openStream(e.nodeId,{kind:"terminal",terminalId:e.terminalId,...e.workspaceId===void 0?{}:{workspaceId:e.workspaceId},afterSequence:o},S),S.throwIfAborted();const g=z;let b=0,M=Promise.resolve();t={send(O){const F=Vh(Tn(O));if(b+=F.byteLength,b>Gh){P(T);return}M=M.then(async()=>{$.aborted||await g.write(F),b-=F.byteLength}).catch(fe=>P(T,fe))},dispose:()=>g.close()},(async()=>{try{for await(const O of Yh(g)){if($.aborted)return;const F=Pn.parse(An(O));if(F.terminalId!==e.terminalId)throw new Error("TERMINAL_FRAME_INVALID");if(F.type==="attach")u||(y(),R());else if(F.type==="output")W(F.data,F.sequence);else if(F.type==="exit"){c=!0,f(),e.onExited();return}else F.type==="error"&&!w(F.code)&&e.onErrorFrame(F.code)}P(T)}catch(O){P(T,O)}})()}catch(g){y(),z?.close(),P(T,g)}}function D(){if(i!==void 0)return i;const T=k().finally(()=>{i===T&&(i=void 0)});return i=T,T}function L(T){if(!u||a)return;const $=t;if($===void 0)return;if(!("type"in T&&T.type==="input"&&"data"in T&&typeof T.data=="string")){$.send(T);return}const z=new TextEncoder().encode(T.data),m=h;for(let d=0;d<z.length&&u&&m===h;d+=Lr)$.send({...T,data:z.subarray(d,d+Lr)})}function I(){a||c||(i=void 0,D())}function Y(){a=!0,h+=1,_(),f(),e.onReconnectStatus(void 0)}return{attach:()=>u?Promise.resolve():D(),send:L,reconnect:I,dispose:Y}}const Qh=["aria-label"],ec={key:0,class:"admin-terminal-status",role:"status"},tc=In({__name:"TerminalTabView",props:{terminalId:{},openUrl:{type:Function},nodeId:{},openStream:{type:Function},workspaceId:{},windowsConPty:{type:Boolean},windowsBuildNumber:{},active:{type:Boolean},visible:{type:Boolean},fillAvailable:{type:Boolean}},emits:["exited","notice"],setup(e,{expose:t,emit:i}){const s=e,r=i,n=It(),{theme:o,customThemes:l}=Nn(),h=It(),a=It(),u=It(),c={getBoundingClientRect:()=>new DOMRect(a.value?.x,a.value?.y)};let p,_,f,w,E,R=!1,W=!1,P;const k=Zh({terminalId:s.terminalId,nodeId:s.nodeId,...s.workspaceId===void 0?{}:{workspaceId:s.workspaceId},openStream:s.openStream,onAttached:()=>I(!0),onOutput:g=>_?.write(g),onExited:()=>r("exited",s.terminalId),onTerminalUnavailable:()=>r("exited",s.terminalId),onErrorFrame:g=>{g==="TERMINAL_FRAME_REJECTED"?P?.():_?.writeln(`\r
|
|
23
|
-
[MyAgentRoam] ${g}`)},onReconnectStatus:g=>h.value=g});P=k.reconnect;function D(g){k.send(g)}function L(){const g=_,b=f;if(!s.active||!s.visible||g===void 0||b===void 0)return;const M={cols:g.cols,rows:g.rows};b.fit();const O={cols:g.cols,rows:g.rows};!W&&M.cols===O.cols&&M.rows===O.rows||(D({type:"resize",terminalId:s.terminalId,...O}),W=!1)}function I(g=!1){g&&(W=!0),E===void 0&&(E=window.requestAnimationFrame(()=>{E=void 0,L()}))}function Y(){R=!0,di(()=>{_===void 0||!s.active||!s.visible||(_.focus(),R=!1)})}function T(){a.value=void 0,p?.(),p=void 0}function $(g){g.button===2&&g.stopPropagation()}function z(g){const b=g.pointerType;g.button!==2||b!==void 0&&b!=="mouse"||(g.preventDefault(),g.stopPropagation(),_!==void 0&&(T(),a.value={x:g.clientX,y:g.clientY,selection:_.getSelection()},di(()=>{u.value&&(_?.focus(),u.value.handleOpen())}),p=qn.register({command:"terminal.dismissMenu",priority:150,scope:"terminal",keys:[{key:"Escape"}],when:()=>a.value!==void 0,execute:()=>(T(),_?.focus(),"HANDLED")})))}async function m(){const g=a.value?.selection;if(T(),_?.focus(),!!g)try{await navigator.clipboard.writeText(g)}catch{r("notice",Be("generated.terminalTabView.terminalCopyFailedCheckBrowserClipboardPermissions"),"error")}}async function d(){T();const g=_;if(g!==void 0){g.focus();try{const b=await navigator.clipboard.readText();_===g&&b!==""&&g.paste(b)}catch{r("notice",Be("generated.terminalTabView.terminalPasteFailedCheckClipboardPermissions"),"error")}}}function S(){T(),_?.clear(),_?.focus()}function v(){const g=Number(getComputedStyle(document.documentElement).getPropertyValue("--mar-terminal-font-size").trim());return Number.isFinite(g)&&g>0?g:12}function y(){const g=getComputedStyle(document.documentElement),b={};for(const M of Vn)b[Yn[M]]=g.getPropertyValue(M).trim();return b}return Ms([o,()=>l.value.find(({id:g})=>g===o.value)?.source],()=>{_&&(_.options.theme=y())},{flush:"post"}),Hn(()=>{n.value!==void 0&&(_=new qh({allowProposedApi:!0,cursorBlink:!0,macOptionClickForcesSelection:!0,fontFamily:"SFMono-Regular, Consolas, monospace",fontSize:v(),cols:100,rows:18,...s.windowsConPty?{windowsPty:{backend:"conpty",...s.windowsBuildNumber===void 0?{}:{buildNumber:s.windowsBuildNumber}}}:{},theme:y()}),_.loadAddon(new Lo),_.unicode.activeVersion="11",_.loadAddon(new Io((g,b)=>{if(g.button!==0||_?.hasSelection()||_?.modes.mouseTrackingMode!=="none")return;const M=g.ctrlKey||g.metaKey;s.openUrl?.(b,M)||M&&window.open(b,"_blank","noopener,noreferrer")})),f=new io,_.loadAddon(f),_.open(n.value),R&&s.active&&s.visible&&(_.focus(),R=!1),_.onData(g=>D({type:"input",terminalId:s.terminalId,data:g})),n.value.addEventListener("mousedown",$,!0),n.value.addEventListener("contextmenu",z,!0),w=new ResizeObserver(()=>I()),w.observe(n.value),L(),I(),k.attach())}),Ms(()=>[s.active,s.visible],([g,b])=>{(!g||!b)&&T(),g&&b&&di().then(()=>{I(),R&&Y()})}),t({focus:Y}),Wn(()=>{T(),k.dispose(),w?.disconnect(),E!==void 0&&window.cancelAnimationFrame(E),n.value!==void 0&&(n.value.removeEventListener("mousedown",$,!0),n.value.removeEventListener("contextmenu",z,!0));const g=_;_=void 0,f=void 0,g?.dispose()}),(g,b)=>zn((ui(),Ts("div",{class:Un(["admin-terminal-body",{"fills-available":e.fillAvailable}])},[$n("div",{ref_key:"host",ref:n,class:"xterm-host","aria-label":Re(Be)("generated.terminalTabView.terminalOutput"),tabindex:"0"},null,8,Qh),h.value?(ui(),Ts("div",ec,At(h.value),1)):Ps("",!0),a.value!==void 0?(ui(),Kn(Re(Gn),{key:1,ref_key:"menu",ref:u,"virtual-triggering":"","virtual-ref":c,trigger:"contextmenu",placement:"bottom-start",onVisibleChange:b[0]||(b[0]=M=>!M&&T())},{dropdown:_t(()=>[Ot(Re(jn),{"aria-label":Re(Be)("generated.terminalTabView.terminalOutput")},{default:_t(()=>[Ot(Re(fi),{disabled:!a.value.selection,icon:"copy",onClick:m},{default:_t(()=>[_i(At(Re(Be)("generated.terminalTabView.copy")),1)]),_:1},8,["disabled"]),Ot(Re(fi),{icon:"paste",onClick:d},{default:_t(()=>[_i(At(Re(Be)("generated.terminalTabView.paste")),1)]),_:1}),Ot(Re(fi),{divided:"",icon:"clear",onClick:S},{default:_t(()=>[_i(At(Re(Be)("generated.terminalTabView.clear")),1)]),_:1})]),_:1},8,["aria-label"])]),_:1},512)):Ps("",!0)],2)),[[Fn,e.active]])}}),id=Xn(tc,[["__scopeId","data-v-
|
|
23
|
+
[MyAgentRoam] ${g}`)},onReconnectStatus:g=>h.value=g});P=k.reconnect;function D(g){k.send(g)}function L(){const g=_,b=f;if(!s.active||!s.visible||g===void 0||b===void 0)return;const M={cols:g.cols,rows:g.rows};b.fit();const O={cols:g.cols,rows:g.rows};!W&&M.cols===O.cols&&M.rows===O.rows||(D({type:"resize",terminalId:s.terminalId,...O}),W=!1)}function I(g=!1){g&&(W=!0),E===void 0&&(E=window.requestAnimationFrame(()=>{E=void 0,L()}))}function Y(){R=!0,di(()=>{_===void 0||!s.active||!s.visible||(_.focus(),R=!1)})}function T(){a.value=void 0,p?.(),p=void 0}function $(g){g.button===2&&g.stopPropagation()}function z(g){const b=g.pointerType;g.button!==2||b!==void 0&&b!=="mouse"||(g.preventDefault(),g.stopPropagation(),_!==void 0&&(T(),a.value={x:g.clientX,y:g.clientY,selection:_.getSelection()},di(()=>{u.value&&(_?.focus(),u.value.handleOpen())}),p=qn.register({command:"terminal.dismissMenu",priority:150,scope:"terminal",keys:[{key:"Escape"}],when:()=>a.value!==void 0,execute:()=>(T(),_?.focus(),"HANDLED")})))}async function m(){const g=a.value?.selection;if(T(),_?.focus(),!!g)try{await navigator.clipboard.writeText(g)}catch{r("notice",Be("generated.terminalTabView.terminalCopyFailedCheckBrowserClipboardPermissions"),"error")}}async function d(){T();const g=_;if(g!==void 0){g.focus();try{const b=await navigator.clipboard.readText();_===g&&b!==""&&g.paste(b)}catch{r("notice",Be("generated.terminalTabView.terminalPasteFailedCheckClipboardPermissions"),"error")}}}function S(){T(),_?.clear(),_?.focus()}function v(){const g=Number(getComputedStyle(document.documentElement).getPropertyValue("--mar-terminal-font-size").trim());return Number.isFinite(g)&&g>0?g:12}function y(){const g=getComputedStyle(document.documentElement),b={};for(const M of Vn)b[Yn[M]]=g.getPropertyValue(M).trim();return b}return Ms([o,()=>l.value.find(({id:g})=>g===o.value)?.source],()=>{_&&(_.options.theme=y())},{flush:"post"}),Hn(()=>{n.value!==void 0&&(_=new qh({allowProposedApi:!0,cursorBlink:!0,macOptionClickForcesSelection:!0,fontFamily:"SFMono-Regular, Consolas, monospace",fontSize:v(),cols:100,rows:18,...s.windowsConPty?{windowsPty:{backend:"conpty",...s.windowsBuildNumber===void 0?{}:{buildNumber:s.windowsBuildNumber}}}:{},theme:y()}),_.loadAddon(new Lo),_.unicode.activeVersion="11",_.loadAddon(new Io((g,b)=>{if(g.button!==0||_?.hasSelection()||_?.modes.mouseTrackingMode!=="none")return;const M=g.ctrlKey||g.metaKey;s.openUrl?.(b,M)||M&&window.open(b,"_blank","noopener,noreferrer")})),f=new io,_.loadAddon(f),_.open(n.value),R&&s.active&&s.visible&&(_.focus(),R=!1),_.onData(g=>D({type:"input",terminalId:s.terminalId,data:g})),n.value.addEventListener("mousedown",$,!0),n.value.addEventListener("contextmenu",z,!0),w=new ResizeObserver(()=>I()),w.observe(n.value),L(),I(),k.attach())}),Ms(()=>[s.active,s.visible],([g,b])=>{(!g||!b)&&T(),g&&b&&di().then(()=>{I(),R&&Y()})}),t({focus:Y}),Wn(()=>{T(),k.dispose(),w?.disconnect(),E!==void 0&&window.cancelAnimationFrame(E),n.value!==void 0&&(n.value.removeEventListener("mousedown",$,!0),n.value.removeEventListener("contextmenu",z,!0));const g=_;_=void 0,f=void 0,g?.dispose()}),(g,b)=>zn((ui(),Ts("div",{class:Un(["admin-terminal-body",{"fills-available":e.fillAvailable}])},[$n("div",{ref_key:"host",ref:n,class:"xterm-host","aria-label":Re(Be)("generated.terminalTabView.terminalOutput"),tabindex:"0"},null,8,Qh),h.value?(ui(),Ts("div",ec,At(h.value),1)):Ps("",!0),a.value!==void 0?(ui(),Kn(Re(Gn),{key:1,ref_key:"menu",ref:u,"virtual-triggering":"","virtual-ref":c,trigger:"contextmenu",placement:"bottom-start",onVisibleChange:b[0]||(b[0]=M=>!M&&T())},{dropdown:_t(()=>[Ot(Re(jn),{"aria-label":Re(Be)("generated.terminalTabView.terminalOutput")},{default:_t(()=>[Ot(Re(fi),{disabled:!a.value.selection,icon:"copy",onClick:m},{default:_t(()=>[_i(At(Re(Be)("generated.terminalTabView.copy")),1)]),_:1},8,["disabled"]),Ot(Re(fi),{icon:"paste",onClick:d},{default:_t(()=>[_i(At(Re(Be)("generated.terminalTabView.paste")),1)]),_:1}),Ot(Re(fi),{divided:"",icon:"clear",onClick:S},{default:_t(()=>[_i(At(Re(Be)("generated.terminalTabView.clear")),1)]),_:1})]),_:1},8,["aria-label"])]),_:1},512)):Ps("",!0)],2)),[[Fn,e.active]])}}),id=Xn(tc,[["__scopeId","data-v-22d9fc40"]]);export{id as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.admin-terminal-body[data-v-
|
|
1
|
+
.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.admin-terminal-body[data-v-22d9fc40]{--terminal-gutter: 4px;box-sizing:border-box;block-size:229px;border-top:1px solid var(--mar-border-subtle);box-shadow:inset 0 0 0 var(--terminal-gutter) var(--mar-terminal-background);overflow:hidden;padding:var(--terminal-gutter);position:relative}.admin-terminal-body.fills-available[data-v-22d9fc40]{block-size:100%;min-height:0;flex:1 1 auto;overscroll-behavior:contain}.admin-terminal-status[data-v-22d9fc40]{position:absolute;inset-inline-start:50%;inset-block-start:12px;z-index:2;transform:translate(-50%);border:1px solid var(--mar-overlay-border);border-radius:6px;background:var(--mar-overlay-surface);color:var(--mar-text-primary);padding:5px 10px;font-size:var(--mar-font-size-meta);pointer-events:none}.xterm-host[data-v-22d9fc40]{display:block;width:100%;height:100%}.xterm-host[data-v-22d9fc40] .xterm{block-size:100%}.xterm-host[data-v-22d9fc40] .xterm-scrollable-element{min-block-size:100%}.xterm-host[data-v-22d9fc40] .xterm-viewport{background-color:transparent}
|