@myagentroam/server 0.13.39 → 0.13.40
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-BXZSvt98.js → AuditManagementPage-D1EB0Rmy.js} +1 -1
- package/web/assets/{BusyIndicator-CFtV2OdC.js → BusyIndicator-C6r16yaq.js} +1 -1
- package/web/assets/{CodeFileEditor-BCxqrMBN.js → CodeFileEditor-ClSv4bXD.js} +3 -3
- package/web/assets/{ConversationTemplateManagementPage-CdkeEip0.js → ConversationTemplateManagementPage-DjXCJxxB.js} +1 -1
- package/web/assets/{ConversationTemplateManagementPage-DMTCJ7_o.js → ConversationTemplateManagementPage-kPy9Q7Nj.js} +1 -1
- package/web/assets/{EnterpriseUserManagementPage-DcD9CjAP.js → EnterpriseUserManagementPage-U0x4u4uu.js} +1 -1
- package/web/assets/{EnvironmentSecretManager-DwJTJ80M.js → EnvironmentSecretManager-Gj1X-Z7C.js} +1 -1
- package/web/assets/{FilePreviewLoading-lZf_rGVp.js → FilePreviewLoading-BjTq_2_N.js} +1 -1
- package/web/assets/{HtmlPreviewFrame-C0Z3SbiZ.js → HtmlPreviewFrame-mY307Dbd.js} +3 -3
- package/web/assets/{LicenseManagementPage-or-oLLdW.js → LicenseManagementPage-CIFp7Uxi.js} +1 -1
- package/web/assets/{ManagementPagination-R_9CP3Iy.js → ManagementPagination-Drcpb4iN.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-BQWNV6iz.js → MarAgentModelManagementPage-C6ZoxfPe.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-jfMNfJTB.js → MarAgentModelManagementPage-UOVM-cEq.js} +1 -1
- package/web/assets/{MarIcon-voqnhtIF.js → MarIcon-Dd8tXkD_.js} +1 -1
- package/web/assets/{MarkdownFilePreview-CFVYcJ50.js → MarkdownFilePreview-UegajMzF.js} +2 -2
- package/web/assets/{McpDetailsDialog-BRE4KFOg.js → McpDetailsDialog-BI3Tikag.js} +1 -1
- package/web/assets/{McpSourceManagementPage-BZigfmmn.js → McpSourceManagementPage-D8ZFY9e3.js} +1 -1
- package/web/assets/{McpSourceManagementPage-B4hS4k80.js → McpSourceManagementPage-kasbWxqO.js} +1 -1
- package/web/assets/{NodeDetailsDialogs-3WpN2pi4.js → NodeDetailsDialogs-BKKAFZNh.js} +1 -1
- package/web/assets/NodeManagementPage-BKjDf-CP.js +1 -0
- package/web/assets/NodeManagementPage-DZ2NcHXE.js +1 -0
- package/web/assets/{OAuthManagementPage-B9Io9DjJ.js → OAuthManagementPage-BjHnQFf-.js} +1 -1
- package/web/assets/{OrganizationManagementPage-BBkcaHLS.js → OrganizationManagementPage-D6SLoYmV.js} +1 -1
- package/web/assets/{RemoteDesktopPage-WvU47TBS.js → RemoteDesktopPage-CrygdCyB.js} +1 -1
- package/web/assets/{ResourceManagementPanel-CYA-SLzp.js → ResourceManagementPanel-DBTCb58R.js} +1 -1
- package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-RcT3Nlfx.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-BK8M6PtK.js} +1 -1
- package/web/assets/SecretManagementPage-CG5ibrEn.js +1 -0
- package/web/assets/{SecretManagementPage-DUoqjV0x.js → SecretManagementPage-iUtOmPR8.js} +1 -1
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-DnO1TqhW.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-CNm9jYMh.js} +1 -1
- package/web/assets/{SessionSharePage-DyZk_pFz.js → SessionSharePage-cLgZ7qfj.js} +2 -2
- package/web/assets/{SettingsContent-CWyv_ujI.js → SettingsContent-CjOXsTRB.js} +1 -1
- package/web/assets/{SettingsContent-wK2OsCVg.js → SettingsContent-UcWcY6Ru.js} +1 -1
- package/web/assets/SkillCenterPage-C41CWqy3.js +1 -0
- package/web/assets/{SkillCenterPage-BT6G-5aY.js → SkillCenterPage-I_3XIkPr.js} +1 -1
- package/web/assets/{SkillDetailsDialog-eHidSh3V.js → SkillDetailsDialog-e8dpZ8Uu.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-OgvHXxCb.js → SkillSourceManagementPage-Ca9z5lBL.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-CqFKhhv6.js → SkillSourceManagementPage-Mt5BFTqb.js} +1 -1
- package/web/assets/{StandaloneFilePreviewPage-DhJTYDMb.js → StandaloneFilePreviewPage-Bb1ci44U.js} +1 -1
- package/web/assets/SystemConfigurationPage-CxPxATcD.js +1 -0
- package/web/assets/{SystemConfigurationPage-BK7G8vmn.js → SystemConfigurationPage-DE3cgB4E.js} +1 -1
- package/web/assets/{SystemInformationPage-D85OoD9S.js → SystemInformationPage-S1_3IJ57.js} +1 -1
- package/web/assets/{TerminalTabView-BaNllQWk.js → TerminalTabView-DXI_297G.js} +1 -1
- package/web/assets/{WorkbenchPage-SsAoouiC.css → WorkbenchPage-C2FVnrpe.css} +1 -1
- package/web/assets/WorkbenchPage-C83XJx9F.js +22 -0
- package/web/assets/WorkspaceManagementPage-CMhmQWb1.js +1 -0
- package/web/assets/WorkspaceManagementPage-DuOI27su.js +1 -0
- package/web/assets/{_baseIteratee-PriW3Q7h.js → _baseIteratee-BaZQhZyx.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-CZjamoU4.js → abnfDiagram-VCTEODGH-DAWIlk5u.js} +1 -1
- package/web/assets/{advancedFormat-B17DJzi5.js → advancedFormat-aUniOYgq.js} +1 -1
- package/web/assets/{arc-MH3jcyed.js → arc-DHJj1sqj.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-BPY6x6Zu.js → architectureDiagram-5GKGNRK7-DPvVfGnW.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-1n7PJK6p.js → blockDiagram-OSKFZWR5-CmNEdp4-.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-cPfREWh8.js → c4Diagram-7LVT6UL2-CLabCirw.js} +1 -1
- package/web/assets/{catalog-ownership-service-C7Cap0K5.js → catalog-ownership-service-I7711sU9.js} +1 -1
- package/web/assets/{catalog-page-service-Cjkrtj0C.js → catalog-page-service-CrvIMHp_.js} +1 -1
- package/web/assets/channel-DZUE-8ay.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-Cbqjamna.js → chunk-2Q5K7J3B-Cs609t5Y.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-BMUdJITf.js → chunk-5VM5RSS4-vFgwj9i4.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-MxRZL_d4.js → chunk-F27PBJKO-DdpjR4bI.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-C36Qc4bF.js → chunk-HLEWEB6X-y_FtjlUY.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-qF7hMg-R.js → chunk-JWPE2WC7-D6JK8d29.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-TabWTF8k.js → chunk-POPQ4Y6H-DSG6wM4A.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-DQDynYRL.js → chunk-SVP7TREG-CZWdUR8q.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-RP6bhAOB.js → chunk-XXDRQBXY-DNIPT1e5.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-C9LOY45O.js → chunk-ZLD2IHE6-dLjcOoC2.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-aTCwqJOH.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-aTCwqJOH.js +1 -0
- package/web/assets/{conversation-history-C16mWPkT.js → conversation-history-Dw0OeuDj.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-DLCKu73B.js → cose-bilkent-JH36ORCC-Co_wYq4t.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-Shs_WEvi.js → cynefin-OW5HDTMX-ALxsvR4U.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-Dlfo9_4p.js → cynefinDiagram-5FMLGOSQ-BCOxWiYn.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-BZB2yFQK.js → dagre-OS7QT2EB-BqvD6n75.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-C77azV5r.js → diagram-S7CK7UJ4-BlymX99t.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-C6q9v1A4.js → diagram-UQ7AKVKN-o2Zn3lmh.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-2eR51lrb.js → diagram-VSXAHHWV-LvxlSJ3y.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-Dzwrd5Ct.js → diagram-VX7I27RA-5OzgskFN.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-CEsQ-pKu.js → diagram-Z3DM3KII-DJfYlTyb.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-D0Js5Lhq.js → ebnfDiagram-PWID7BFC-CaDW9bPH.js} +1 -1
- package/web/assets/{el-alert-CEHApIIB.js → el-alert-DmchhQax.js} +1 -1
- package/web/assets/{el-cascader-DJ6DCD_A.js → el-cascader-H-Yeolyv.js} +1 -1
- package/web/assets/{el-checkbox-DxMGl-vw.js → el-checkbox-C4UiMIuI.js} +1 -1
- package/web/assets/{el-date-picker-CjZ3atar.js → el-date-picker-B7VBZfx-.js} +1 -1
- package/web/assets/{el-descriptions-CJBg2osk.js → el-descriptions-Bpv9MSpN.js} +1 -1
- package/web/assets/{el-form-item-C8oLarT4.js → el-form-item-AGycjXtk.js} +1 -1
- package/web/assets/{el-input-DxeOieW7.js → el-input-mQZYBrBd.js} +1 -1
- package/web/assets/{el-input-number-BIbki6BY.js → el-input-number-Dpw9CJQ1.js} +1 -1
- package/web/assets/{el-radio-B1X7_YUX.js → el-radio-DNKBZo6a.js} +1 -1
- package/web/assets/{el-scrollbar-DUmLsJ6L.js → el-scrollbar-8NwBVSDB.js} +1 -1
- package/web/assets/{el-select-DW0LI87X.js → el-select-DmxIIQ48.js} +1 -1
- package/web/assets/{el-switch-C00HF0UW.js → el-switch-DULOibHs.js} +1 -1
- package/web/assets/{el-tab-pane-BFqv6Q0T.js → el-tab-pane-B4VHARjC.js} +1 -1
- package/web/assets/{el-table-column-D73waEv7.js → el-table-column-BaC9TraJ.js} +1 -1
- package/web/assets/{enterprise-management-service-SUdnptzR.js → enterprise-management-service-ByETEgFZ.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-2bJql-O7.js → erDiagram-2YWLMYGG-2zMqmYv0.js} +1 -1
- package/web/assets/{error-presentation-CMLogAUA.js → error-presentation-p-88bGPc.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-UATc3rcj.js → flowDiagram-T62WH6J4-wa-_dpiY.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-CwclaCKx.js → ganttDiagram-EL5Y4UJY-D612DnDq.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-CmBWFOTv.js → gitGraphDiagram-WWUBYQGX-CbcV1o-A.js} +1 -1
- package/web/assets/{hosted-conversation-template-client-_2tC9a50.js → hosted-conversation-template-client-DUAL5oy-.js} +1 -1
- package/web/assets/{index-EazssBhS.js → index-09mouiQJ.js} +1 -1
- package/web/assets/{index-CBdVQE8L.js → index-B-7zlHeM.js} +1 -1
- package/web/assets/{index-wUFQCx6Z.js → index-B0vCt07Z.js} +1 -1
- package/web/assets/{index-Bz_sLMXV.js → index-BDKTJRz4.js} +1 -1
- package/web/assets/{index-D4Kj0PEQ.js → index-BRLJFcfW.js} +1 -1
- package/web/assets/{index-ywDIhufi.js → index-BUChenZd.js} +1 -1
- package/web/assets/{index-BTwnnEJc.js → index-BkUiRx3-.js} +1 -1
- package/web/assets/{index-Cv80aLcr.js → index-C7gKD9JU.js} +1 -1
- package/web/assets/{index-CdeMn6YK.js → index-CHFvlPXy.js} +1 -1
- package/web/assets/{index-CtycWWod.js → index-CNUoaheD.js} +1 -1
- package/web/assets/{index-BNV88bZz.js → index-CWqXCSc7.js} +1 -1
- package/web/assets/{index-D6KKKFQk.js → index-CdIw03RW.js} +1 -1
- package/web/assets/{index-BzQ1uzrA.js → index-ChUf_mKd.js} +1 -1
- package/web/assets/{index-BFNZUqxd.js → index-Cs5IUlii.js} +1 -1
- package/web/assets/{index-Bqq8gYzT.js → index-CsSCLcpK.js} +1 -1
- package/web/assets/{index-BdG-nPnH.js → index-Cuq6wm_m.js} +1 -1
- package/web/assets/{index-DK1HJR-x.js → index-D7beQ3QT.js} +1 -1
- package/web/assets/{index-DTjSmtG7.js → index-DHPeeVhE.js} +1 -1
- package/web/assets/{index-B27lSjmm.js → index-DKhpC_1Q.js} +1 -1
- package/web/assets/{index-hxZOJhUa.js → index-DQA2hZJP.js} +1 -1
- package/web/assets/{index-B2Pgty5d.js → index-DVVq_7vA.js} +1 -1
- package/web/assets/{index-JaGwS1m3.js → index-Dvj-p2eB.js} +1 -1
- package/web/assets/{index-CgmsFumG.js → index-DyI9r3Bt.js} +1 -1
- package/web/assets/{index-Bo7IesV4.js → index-GcEKdw8F.js} +1 -1
- package/web/assets/{index-DYGanjIM.js → index-Hobh03AC.js} +1 -1
- package/web/assets/{index-C8Dz9olG.js → index-dF4etShk.js} +1 -1
- package/web/assets/{index-CjpIuYFd.js → index-iLLnA8-L.js} +1 -1
- package/web/assets/{index-DYzca8nP.js → index-kuB4dmyI.js} +1 -1
- package/web/assets/{index-JO-_HF_g.js → index-nTDMEpry.js} +3 -3
- package/web/assets/infoDiagram-FKFFQAWI-J7R5xPFr.js +2 -0
- package/web/assets/{isArrayLikeObject-BiSV3vfv.js → isArrayLikeObject-B10d2_nL.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-BD0H4kU-.js → ishikawaDiagram-5VMMS53U-BLh4brI3.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-DstfSfFY.js → journeyDiagram-EYS64GPL-CtR4U2Ow.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-BjSVKFfL.js → kanban-definition-UXKFOSKX-D_X1w7OD.js} +1 -1
- package/web/assets/{layout-yqTVT7mz.js → layout-cG64wF2A.js} +1 -1
- package/web/assets/{linear-TMA2k5EA.js → linear-CW7Ty6z1.js} +1 -1
- package/web/assets/{management-url-service-LoYfPSvd.js → management-url-service-Cj3pOACA.js} +1 -1
- package/web/assets/{mcp-center-service-DYV-nXsH.js → mcp-center-service-HXeiDVQu.js} +1 -1
- package/web/assets/{merge-ef1ltRhC.js → merge-KnF4FXAE.js} +1 -1
- package/web/assets/{mermaid.core-DCusbDH5.js → mermaid.core-CIwpUIkX.js} +5 -5
- package/web/assets/{message-box-service-D8CfKUOn.js → message-box-service-C8q7blg8.js} +1 -1
- package/web/assets/{mindmap-definition-THT77NOG-rKHGrIaN.js → mindmap-definition-THT77NOG-BMfbIM-R.js} +1 -1
- package/web/assets/{mobile-dialog-return-service-DLHdI4x8.js → mobile-dialog-return-service-CIBrJ7zu.js} +1 -1
- package/web/assets/{oauth-callback-DY06QORP.js → oauth-callback-C9RxE_FL.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-Dlie8egR.js → pegDiagram-XKGWAZYB-7Oshee2x.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-C154GKwM.js → pieDiagram-E7YTZNPT-CMH6Y3NW.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-BSa72tiq.js → quadrantDiagram-AXDQQJYC-Dj_KiLbP.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-DswJpvOe.js → railroadDiagram-O6MQD6OU-DTqXQtJL.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-Dw1UY9-l.js → requirementDiagram-IS5BZ75X-CkFQh0p2.js} +1 -1
- package/web/assets/{runner-presentation-CtRLDRur.js → runner-presentation-B_WL-hOq.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-BqRm9sph.js → sankeyDiagram-P5KCCOFB-CoLlYYtV.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-COkB3y2A.js → sequenceDiagram-WJ2MYXX4-DQozvzEw.js} +1 -1
- package/web/assets/{session-share-client-service-BvAdOi9T.js → session-share-client-service-F20nFnhi.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-B6E0Z8sW.js → sizeCapture-INFHLROL-DQOWxNEY.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-CZSuTa6G.js → stateDiagram-XQSTLZYL-BW487v8g.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-BacWQbgB.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-BwFUW9sm.js → swimlanes-V6O3JKXN-Cp1wtlcP.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-CUQ_78ZY.js +8 -0
- package/web/assets/{time-presentation-GREQSSD3.js → time-presentation-BTxYwtG_.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-BPIF0ByU.js → timeline-definition-24CTP7MA-BpZvP7ey.js} +1 -1
- package/web/assets/{union--7HetIuj.js → union-BA_h4K9S.js} +1 -1
- package/web/assets/{use-form-common-props-DXqp-92e.js → use-form-common-props-14CxDqe1.js} +1 -1
- package/web/assets/{use-wheel-CENtMMlW.js → use-wheel-CRHoSHkq.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-B8zgVib9.js → vennDiagram-4TSXK5OY-CKNNRSuq.js} +1 -1
- package/web/assets/{vnode-BCxIHs5H.js → vnode-OkN1IbUg.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-CV_lah6b.js → wardleyDiagram-VM6X3IG4-CvPPZTh0.js} +1 -1
- package/web/assets/{workbench-composer-interaction-controller-l95M0955.js → workbench-composer-interaction-controller-CN4P4zHb.js} +1 -1
- package/web/assets/{workbench-live-service-D9YcLAU4.js → workbench-live-service-CRqfYcR6.js} +1 -1
- package/web/assets/{workbench-presentation-vXSbE6Bt.js → workbench-presentation-DugF7jav.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-Dcwxsazo.js → xychartDiagram-S5SC5T6Z-CQQMaWXP.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.CmTCNIfO.js → app.DV9BTjvB.js} +1 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.DgRWIc_v.js +1 -0
- package/web/docs/assets/chunks/{@localSearchIndexroot.btyWXBff.js → @localSearchIndexroot.CevKLJdQ.js} +1 -1
- package/web/docs/assets/chunks/{VPLocalSearchBox.Cjcq9TDM.js → VPLocalSearchBox.dJOIKrxL.js} +1 -1
- package/web/docs/assets/chunks/{theme.DrFruxPq.js → theme.BX3DGCJT.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/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/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 +1 -1
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/NodeManagementPage-Chdeokm1.js +0 -1
- package/web/assets/NodeManagementPage-zET6yWtP.js +0 -1
- package/web/assets/SecretManagementPage-DTsY0A4B.js +0 -1
- package/web/assets/SkillCenterPage-CGSXe9Sp.js +0 -1
- package/web/assets/SystemConfigurationPage-Cd_FWFX6.js +0 -1
- package/web/assets/WorkbenchPage-CBubO0mw.js +0 -22
- package/web/assets/WorkspaceManagementPage-C_MomZbw.js +0 -1
- package/web/assets/WorkspaceManagementPage-Cev64BTD.js +0 -1
- package/web/assets/channel-BXkBgdk4.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-32LMPqSY.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-32LMPqSY.js +0 -1
- package/web/assets/infoDiagram-FKFFQAWI-BkGd4O7i.js +0 -2
- package/web/assets/stateDiagram-v2-IH3M54BS-m1QQUT2S.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-BUuof96M.js +0 -8
- package/web/docs/assets/chunks/@localSearchIndexen-US.Db0aXQ78.js +0 -1
package/web/assets/{StandaloneFilePreviewPage-DhJTYDMb.js → StandaloneFilePreviewPage-Bb1ci44U.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as Ze,m as et,aZ as tt,f as P,T as nt,ac as at,a0 as ot,o as g,n as E,L as u,J as B,W as G,a_ as rt,N as x,X as j,H as ue,U as Te,Y as Re,t as Z,q as _e,as as it,K as st,k as ee,M as Ne,_ as lt}from"./index-JO-_HF_g.js";import{E as dt}from"./message-box-service-D8CfKUOn.js";import{d as ct,r as ut,a as ft,b as vt,m as wt,c as fe,e as Fe,f as De,g as mt,h as gt,i as pt,H as ht,W as yt,j as It,k as kt,l as bt,w as Pt,n as Et,t as St,o as Tt}from"./HtmlPreviewFrame-C0Z3SbiZ.js";import{c as Rt}from"./session-share-client-service-BvAdOi9T.js";import{c as _t,i as Le,s as ve,u as Nt,f as Ce,d as Oe,F as Ft,a as we}from"./FilePreviewLoading-lZf_rGVp.js";import{f as Dt}from"./error-presentation-CMLogAUA.js";import Lt from"./MarkdownFilePreview-CFVYcJ50.js";import{c as Ct}from"./workbench-live-service-D9YcLAU4.js";import{c as Ot}from"./workspace-direct-transfer-service-H0f55kLn.js";import{f as Ut}from"./file-presentation-Cm7tx53N.js";import"./mobile-dialog-return-service-DLHdI4x8.js";import"./el-input-DxeOieW7.js";import"./use-form-common-props-DXqp-92e.js";import"./el-scrollbar-DUmLsJ6L.js";import"./uuid-BmNSYLtZ.js";import"./el-form-item-C8oLarT4.js";import"./el-switch-C00HF0UW.js";import"./MarIcon-voqnhtIF.js";import"./BusyIndicator-CFtV2OdC.js";const At="/assets/github-markdown-light-DWnTz46N.css",xt=800;function Wt(p){function te(){return{...p.repositoryPath===void 0?{}:{repositoryPath:p.repositoryPath},...p.worktreePath===void 0?{}:{worktreePath:p.worktreePath}}}let _=!0,I,C=0,a;const w=new Promise(l=>{a=l}),D=setTimeout(()=>a?.(!1),xt),y=Ot({send:l=>W.sendDirect(l),shouldRetryProbe:(l,v)=>_&&l===p.nodeId&&v===I}),W=Ct({canConnect:()=>_,onEvent:()=>{},onResyncRequired:()=>{},onNodeConnection:(l,v)=>{l===p.nodeId&&!v&&y.invalidateNode(l)},onNodeReplaced:l=>y.invalidateNode(l),onReconnect:()=>{},onDisconnected:()=>y.invalidateControlConnection(),onReady:(l,v)=>{v||y.invalidateNetwork(),V()},onDirectMessage:l=>y.handle(l),onUnauthenticated:()=>F(!1),onInvalidMessage:()=>{}});async function V(){const l=++C;try{const v=await fetch(`/api/nodes/${encodeURIComponent(p.nodeId)}/workbench-capabilities`,{credentials:"same-origin"});if(!v.ok)throw new Error("DIRECT_UNAVAILABLE");const o=(await v.json()).manifest;if(!_||l!==C)return;if(o?.directTransfer?.apiVersion!==3||o.directTransfer.transport!==!0||o.directTransfer.download!==!0||typeof o.nodeGeneration!="string"){F(!1);return}I=o.nodeGeneration;const L=await y.ensureTransport(p.nodeId,I);_&&l===C&&F(L==="DIRECT_AVAILABLE")}catch{_&&l===C&&F(!1)}}function F(l){clearTimeout(D),a?.(l),a=void 0}async function N(l,v=!0){if(Ze(l)||v&&!await w)return;const h=I;if(!_||h===void 0||!y.isConnected(p.nodeId,h))return;const o={kind:"WORKSPACE_FILE",workspaceId:p.workspaceId,path:l,...te()};return{direct:y,nodeId:p.nodeId,nodeGeneration:h,resource:o,metadata:async()=>{const L=await vt({nodeId:p.nodeId,resource:o,request:async S=>{const T=await fetch(S,{credentials:"same-origin"});return T.ok?T.json():{}}});return _?L:void 0}}}async function $(l,v,h,o){const L=await N(l);if(L!==void 0)return ut({...L,fileName:l.split("/").at(-1)??"file",offset:v,length:h,...o===void 0?{}:{identity:o}}).catch(()=>{})}async function K(l){const v=await N(l);return v===void 0?void 0:ft(v)}async function q(l){const v=await N(l,!1);return v===void 0||p.activeDownloadWorker===void 0?"UNAVAILABLE":ct({...v,activeWorker:p.activeDownloadWorker})}function z(){y.invalidateNetwork()}function k(){_=!1,C+=1,F(!1),y.invalidateNetwork(),W.close()}return W.connect(),{objectUrl:K,readRange:$,download:q,networkChanged:z,close:k}}const $t=["href"],zt={key:0,class:"standalone-error"},Mt={class:"standalone-markdown-header html-preview-header"},jt={key:0},Vt={class:"standalone-markdown-header"},Bt={key:0},Kt={class:"standalone-preview-body"},qt={key:1,class:"markdown-preview-page"},Ht={key:0,class:"standalone-error"},Jt=et({__name:"StandaloneFilePreviewPage",props:{quoteTarget:{},share:{}},emits:["close"],setup(p,{emit:te}){const _=tt(),I=p,C=te,a=new URLSearchParams(I.share?.intent??location.search),w=I.share?.access;if(w!==void 0){const n=w.session.value.share;a.set("nodeId",n.nodeId),a.set("workspaceId",n.workspaceId),a.delete("write"),a.delete("source"),a.delete("worktreePath"),a.delete("repositoryPath")}const D={...a.has("repositoryPath")?{repositoryPath:a.get("repositoryPath")}:{},...a.has("worktreePath")?{worktreePath:a.get("worktreePath")}:{}},y=w===void 0?void 0:Rt(w,w.session.value.share),W=_t(void 0,w===void 0?"workbench":`share:${w.session.value.share.id}`),V=!a.has("repositoryPath")&&a.get("markdownPreview")==="1",F=!a.has("repositoryPath")&&a.get("htmlPreview")==="1",N=V||F,$=a.get("source")==="hosted",K=w===void 0?"":`:share:${w.session.value.share.id}`,q="mar.standalone-file-tabs.v1"+K,z="mar.standalone-file-drafts.v1"+K,k=P([]),l=P(),v=P(),h=P(Me()),o=P(),L=P(),S=P(""),T=P(),b=P(),R=P(!0),H=P(!1),me=P(w===void 0?sessionStorage.getItem("mar.user.csrf-token")??"":""),Ue=w===void 0&&a.get("write")==="1"&&Object.keys(D).length===0,ge=y??Tt({csrfToken:()=>me.value,renewCsrfToken:Je}),ne=bt(ge),O=ne.state,J=ee(()=>O.value.error!==void 0?Dt(O.value.error,a.get("path")??""):S.value===""?"":Z(S.value)),Ae=ee(()=>O.value.url!==void 0&&new URL(O.value.url).hostname===location.hostname),ae=wt().preference,xe=ee(()=>({backgroundImage:`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="360" height="240"><defs><pattern id="watermark" width="360" height="240" patternUnits="userSpaceOnUse" patternTransform="rotate(-30)"><text x="0" y="120" fill="#000" fill-opacity=".12" font-family="serif" font-size="22">${Ye(ae.value.watermarkText)}</text></pattern></defs><rect width="100%" height="100%" fill="url(#watermark)"/></svg>`)}")`})),We=Number(a.get("line"))||void 0,$e=Number(a.get("column"))||void 0,oe=ee(()=>o.value===void 0?"unsupported":Ce(o.value.path,o.value.encoding));let U,re,Q=!1;function ze(){if(N)return;const n=a.get("nodeId"),e=a.get("workspaceId"),t=a.get("path");if(n===null||e===null||t===null)return;let r=[];try{const c=I.share?.embedded?[]:JSON.parse(sessionStorage.getItem(q)??"[]");Array.isArray(c)&&(r=c.filter(je))}catch{r=[]}const i={kind:ve(t,a.get("mimeType")??"")?"WORKTREE_TEXT":"WORKTREE_PREVIEW",nodeId:n,workspaceId:e,path:t,repositoryPath:a.get("repositoryPath")??"",worktreePath:a.get("worktreePath")??"",...a.has("repositoryPath")?{gitFile:!0}:{},...Number(a.get("line"))>0?{targetLine:Number(a.get("line"))}:{},...Number(a.get("column"))>0?{targetColumn:Number(a.get("column"))}:{}},s=Pt(i),m=r.find(c=>c.identity===s),f=m===void 0?{...i,id:Math.max(0,...r.map(c=>c.id))+1,identity:s,fileName:Et(t),url:location.href}:{...m,...i,url:location.href};k.value=[...r.filter(c=>c.identity!==s),f].slice(-20),l.value=f.id,ie()}function Me(){try{const n=JSON.parse(sessionStorage.getItem(z)??"[]");return Array.isArray(n)?n.filter(pe):[]}catch{return[]}}function je(n){if(typeof n!="object"||n===null)return!1;const e=n;if(!Number.isSafeInteger(e.id)||e.kind!=="WORKTREE_TEXT"&&e.kind!=="WORKTREE_PREVIEW"||typeof e.identity!="string"||typeof e.nodeId!="string"||typeof e.workspaceId!="string"||typeof e.path!="string"||typeof e.fileName!="string"||typeof e.url!="string")return!1;try{const t=new URL(e.url,location.href);return t.origin===location.origin&&t.pathname===location.pathname&&t.searchParams.get("standaloneFile")==="1"&&t.searchParams.get("markdownPreview")!=="1"}catch{return!1}}function pe(n){if(typeof n!="object"||n===null)return!1;const e=n;return typeof e.tabIdentity=="string"&&typeof e.path=="string"&&typeof e.content=="string"&&typeof e.expectedRevision=="string"}function ie(){!N&&!I.share?.embedded&&sessionStorage.setItem(q,JSON.stringify(k.value))}function Ve(n){const e=k.value.find(t=>t.id===n);e===void 0||n===l.value||(se(),location.replace(e.url))}function Be(n){const e=k.value.findIndex(i=>i.id===n);if(e<0)return;const t=k.value.filter(i=>i.id!==n),r=k.value[e];if(k.value=t,he(r.identity),ie(),t.length===0){le();return}if(n!==l.value)return;const d=t[Math.min(e,t.length-1)];d!==void 0&&location.replace(d.url)}function se(){const n=v.value?.captureDirtyDrafts().filter(pe)??[];if(n.length===0)return;const e=new Set(n.map(t=>t.tabIdentity));h.value=[...h.value.filter(t=>!e.has(t.tabIdentity)),...n],sessionStorage.setItem(z,JSON.stringify(h.value))}async function Ke(n){const e=k.value.find(t=>t.id===n);if(e===void 0||!h.value.some(t=>t.tabIdentity===e.identity))return!0;try{return await dt.confirm(Z("fileEditor.unsavedMessage"),Z("fileEditor.unsavedTitle"),{closeIcon:Ne("close"),icon:Ne("warning"),type:"warning"}),!0}catch{return!1}}function qe(){k.value=[],h.value=[],ie(),sessionStorage.removeItem(z),le()}function he(n){h.value=h.value.filter(e=>e.tabIdentity!==n),sessionStorage.setItem(z,JSON.stringify(h.value))}ze(),nt(async()=>{N?de.mount():window.addEventListener("mar-before-standalone-navigation",se),window.addEventListener("online",Y),window.addEventListener("offline",Y);const n=a.get("nodeId"),e=a.get("workspaceId"),t=a.get("path");if(n===null||e===null||t===null){S.value="generated.standaloneFilePreviewPage.theFilePreviewURLIsInvalid";return}if(!$&&w===void 0&&(U=Wt({nodeId:n,workspaceId:e,activeDownloadWorker:_.activeWorker,...D})),document.title=`${t.split("/").at(-1)??t} · MyAgentRoam`,F){R.value=!0,!$&&Le(t)&&Object.keys(D).length===0?await ne.open({nodeId:n,workspaceId:e,path:t}):S.value="htmlPreview.unavailable",R.value=!1;return}await ye()});async function ye(n=!1){const e=a.get("nodeId"),t=a.get("workspaceId"),r=a.get("path");if(e===null||t===null||r===null)return;R.value=!0,S.value="",re=void 0,Q=!1,b.value!==void 0&&fe(b.value),b.value=void 0;const d=ve(r);if(o.value={path:r,encoding:d?"utf-8":"base64",content:"",truncated:!1,nextOffset:null},T.value=void 0,$){await He(e,r);return}try{if(Nt(r)&&a.get("rawContent")==="1"){const s=n?void 0:await Fe(r,async()=>U?.objectUrl(r));if(s!==void 0){b.value=s.url,o.value={path:r,size:s.size,encoding:"base64",content:"",truncated:!1,nextOffset:null,revision:s.revision},T.value=s.url;return}const m=await ke(e,t,r,0,!1,1);o.value={path:r,...m.size===void 0?{}:{size:m.size},encoding:"base64",content:"",truncated:!1,nextOffset:null},T.value=X(e,t,r);return}const i=await De(s=>ke(e,t,r,0,!n,s));if(i.encoding==="base64"){if(b.value!==void 0&&fe(b.value),o.value={...i,content:"",truncated:!1,nextOffset:null},Ce(r,"base64")==="unsupported")return;const s=n?void 0:await Fe(r,async()=>U?.objectUrl(r));if(b.value=s?.url,s!==void 0){T.value=b.value;return}T.value=X(e,t,r)}else o.value={...i,truncated:i.nextOffset!==null,nextOffset:i.nextOffset}}catch{if(!n&&Q){await ye(!0);return}S.value="generated.standaloneFilePreviewPage.unableToReadTheFileCheckYour"}finally{R.value=!1}}async function He(n,e){const t=a.get("conversationId"),r=a.get("fileId"),d=a.get("mimeType")??"";let i=Number(a.get("size"));if(t===null||a.get("workspaceId")!==t||r===null||!Number.isSafeInteger(i)||i<0){S.value="generated.standaloneFilePreviewPage.theFilePreviewURLIsInvalid",R.value=!1;return}const s=`/api/nodes/${encodeURIComponent(n)}/hosted-conversations/${encodeURIComponent(t)}/files/${encodeURIComponent(r)}/content`,m=ve(e,d);if(o.value={path:e,size:i,encoding:m?"utf-8":"base64",content:"",truncated:!1,nextOffset:null},!m){T.value=s,R.value=!1;return}try{if(i===0){const f=await fetch(s,{credentials:"same-origin",method:"HEAD"});if(!f.ok)throw new Error(`REQUEST_FAILED_${f.status}`);const c=f.headers.get("content-length");if(c===null||!Number.isSafeInteger(Number(c))||Number(c)<0)throw new Error("NODE_RESPONSE_INVALID");if(i=Number(c),i===0){o.value={path:e,size:i,encoding:"utf-8",content:"",truncated:!1,nextOffset:null};return}}o.value=await De(async f=>{const c=await fetch(s,{credentials:"same-origin",headers:{Range:`bytes=0-${f-1}`}});if(!c.ok)throw new Error(`REQUEST_FAILED_${c.status}`);const A=new Uint8Array(await c.arrayBuffer()),Se=c.headers.get("content-range")?.match(/\/(\d+)$/u)?.[1],M=Se===void 0?i:Number(Se);if(!Number.isSafeInteger(M)||M<0)throw new Error("NODE_RESPONSE_INVALID");const ce=Oe(A,e,A.byteLength>=M,d);return{path:e,size:M,...ce,truncated:ce.encoding==="utf-8"&&A.byteLength<M,nextOffset:ce.encoding==="utf-8"&&A.byteLength<M?A.byteLength:null}}),o.value.encoding==="base64"&&(T.value=s)}catch{S.value="generated.standaloneFilePreviewPage.unableToReadTheFileCheckYour"}finally{R.value=!1}}async function Je(){const n=await fetch("/api/auth/csrf",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:"{}"});if(!n.ok)throw new Error("CSRF_INVALID");const e=await n.json();if(typeof e.csrfToken!="string")throw new Error("CSRF_TOKEN_INVALID");return me.value=e.csrfToken,sessionStorage.setItem("mar.user.csrf-token",e.csrfToken),e.csrfToken}async function Qe(n,e){const t=a.get("nodeId"),r=a.get("workspaceId"),d=a.get("path");if(t===null||r===null||d===null||o.value?.previewEncoding!==void 0)throw new Error("FILE_WRITE_INVALID");const i=await ge.request(`/api/workspaces/${encodeURIComponent(r)}/files/write`,{method:"PUT",body:JSON.stringify({nodeId:t,path:d,content:n,expectedRevision:e})});if(typeof i.file?.revision!="string"||typeof i.file.size!="number"||!Number.isSafeInteger(i.file.size)||i.file.size<0)throw new Error("NODE_RESPONSE_INVALID");return o.value!==void 0&&(o.value={...o.value,content:n,revision:i.file.revision,size:i.file.size}),i.file.revision}at(()=>{ne.release(),N?de.dispose():window.removeEventListener("mar-before-standalone-navigation",se),window.removeEventListener("online",Y),window.removeEventListener("offline",Y),U?.close(),b.value!==void 0&&fe(b.value)});async function Ie(){if(o.value!==void 0){H.value=!0;try{const n=a.get("nodeId"),e=a.get("workspaceId"),t=a.get("path");if(n===null||e===null||t===null)return;if($){const i=a.get("conversationId"),s=a.get("fileId");if(i===null||s===null)return;const m=document.createElement("a");m.href=`/api/nodes/${encodeURIComponent(n)}/hosted-conversations/${encodeURIComponent(i)}/files/${encodeURIComponent(s)}/content?download=1`,m.download=t.split("/").at(-1)??"download",m.click();return}if(b.value?.startsWith("blob:")){St(b.value,t.split("/").at(-1)??"download");return}const r=await U?.download(t);if(r!==void 0&&r!=="UNAVAILABLE")return;const d=document.createElement("a");d.href=X(n,e,t,!0),d.download=o.value.path.split("/").at(-1)??"download",d.click()}finally{H.value=!1}}}function Y(){U?.networkChanged()}async function ke(n,e,t,r,d=!0,i=512*1024){const s=d?await U?.readRange(t,r,i,re):void 0;if(s!==void 0){Q=!0,re={revision:s.revision,size:s.size};const c=await mt(s),A=Oe(s.bytes,t,s.nextOffset===null);return{path:t,size:s.size,...A,truncated:s.nextOffset!==null,nextOffset:s.nextOffset,...c===void 0?{}:{revision:c}}}if(d&&Q)throw new Error("DIRECT_FILE_READ_FAILED");const m=new URLSearchParams({nodeId:n,path:t,offset:String(r),limit:String(i),...D});let f;if(y!==void 0)f=await y.request(`/api/workspaces/${encodeURIComponent(e)}/files/read?${m.toString()}`);else{const c=await fetch(`/api/workspaces/${encodeURIComponent(e)}/files/read?${m.toString()}`,{credentials:"same-origin"});if(!c.ok)throw new Error(`REQUEST_FAILED_${c.status}`);f=await c.json()}if(f.file===void 0||f.file.encoding!=="utf-8"&&f.file.encoding!=="base64"||f.file.nextOffset!==null&&!Number.isSafeInteger(f.file.nextOffset))throw new Error("NODE_RESPONSE_INVALID");return gt(f.file,t)}function Ye(n){return n.replace(/[&<>]/g,e=>e==="&"?"&":e==="<"?"<":">")}function le(){if(I.share?.embedded){C("close");return}window.close()}function be(){return le(),!0}const de=pt({isOpen:()=>N,closeWindow:be,closeTab:be});function Xe(n){de.bindFrame(n)}function Pe(n){const e=a.get("nodeId"),t=a.get("workspaceId");return e===null||t===null?"":X(e,t,n)}function Ee(n){const e=a.get("nodeId"),t=a.get("workspaceId");if(e===null||t===null)return;const r=new URLSearchParams({standaloneFile:"1",...we(n)?{markdownPreview:"1"}:{rawContent:"1"},nodeId:e,workspaceId:t,path:n}),d=`${w===void 0?"/console":"/share/"+encodeURIComponent(w.session.value.share.id)}?${r.toString()}`;w!==void 0?W.open(d):location.assign(d)}function Ge(n){const e=a.get("nodeId"),t=a.get("workspaceId");if(e===null||t===null)return;const r=new URLSearchParams({standaloneFile:"1",htmlPreview:"1",nodeId:e,workspaceId:t,path:n});W.open(`${w===void 0?"/console":"/share/"+encodeURIComponent(w.session.value.share.id)}?${r.toString()}`)===void 0&&(S.value="htmlPreview.unavailable")}function X(n,e,t,r=!1){const d=new URLSearchParams({nodeId:n,path:t,...r?{download:"1"}:{},...D}),i=`/api/workspaces/${encodeURIComponent(e)}/files/content?${d.toString()}`;return y?.resourceUrl(i)??i}return(n,e)=>{const t=ot("tooltip");return g(),E(ue,null,[u(V)?(g(),B(rt,{key:0,to:"head"},[G("link",{rel:"stylesheet",href:u(At)},null,8,$t)])):x("",!0),u(N)?(g(),E("main",{key:1,ref_key:"standaloneRoot",ref:L,class:"standalone-file-preview"},[J.value?(g(),E("p",zt,j(J.value),1)):u(F)?(g(),E(ue,{key:1},[G("header",Mt,[Te((g(),E("code",null,[Re(j(u(a).get("path")),1)])),[[t,u(a).get("path")??""]]),u(O).url?(g(),E("small",jt,j(u(Z)(Ae.value?"htmlPreview.trustedWarning":"htmlPreview.isolatedWarning")),1)):x("",!0)]),_e(ht,{url:u(O).url,loading:R.value||u(O).loading,title:u(a).get("path")??"",onLoad:Xe},null,8,["url","loading","title"])],64)):u(V)?(g(),E(ue,{key:2},[G("header",Vt,[Te((g(),E("code",null,[Re(j(u(a).get("path")??o.value?.path),1)])),[[t,u(a).get("path")??o.value?.path??""]]),o.value?.size!==void 0?(g(),E("small",Bt,j(u(Ut)(o.value.size??0)),1)):x("",!0)]),G("div",Kt,[R.value?(g(),B(Ft,{key:0,variant:"page",overlay:""})):o.value&&u(we)(o.value.path)?(g(),E("main",qt,[_e(Lt,{content:o.value.content,path:o.value.path,"resource-url":Pe,"standard-style":"",onOpenFile:Ee},null,8,["content","path"]),u(ae).watermarkEnabled&&u(ae).watermarkText?(g(),E("div",{key:0,class:"markdown-watermark",style:it(xe.value),"aria-hidden":"true"},null,4)):x("",!0)])):x("",!0)])],64)):x("",!0)],512)):(g(),B(kt,{key:2,ref_key:"standaloneFileTabs",ref:v,presentation:I.share?.embedded?"overlay":"window",tabs:k.value,"active-tab-id":l.value,"can-close-unmounted-tab":Ke,onActivate:Ve,onClose:Be,onCloseAll:qe},{default:st(({tab:r,active:d,registerPageHandle:i,requestClose:s,requestCloseAll:m})=>[d&&J.value?(g(),E("p",Ht,j(J.value),1)):d&&o.value&&oe.value==="text"?(g(),B(yt,{key:1,"quote-target":I.quoteTarget,ref:i,active:d,file:o.value,kind:oe.value,loading:R.value,downloading:H.value,"target-line":u(We),"target-column":u($e),"write-enabled":u(Ue),html:u(Le)(o.value.path)&&Object.keys(D).length===0,markdown:!u(a).has("repositoryPath")&&u(we)(o.value.path),"markdown-resource-url":Pe,"save-file":Qe,"tab-identity":r.identity,"initial-dirty-draft":h.value.find(f=>f.tabIdentity===r.identity&&f.path===r.path),onClose:s,onQuoted:m,onDownload:Ie,onOpenHtmlPreview:e[0]||(e[0]=f=>Ge(o.value.path)),onOpenMarkdownPreview:e[1]||(e[1]=f=>Ee(o.value.path)),onDirtyDraftApplied:he},null,8,["quote-target","active","file","kind","loading","downloading","target-line","target-column","write-enabled","html","markdown","tab-identity","initial-dirty-draft","onClose","onQuoted"])):d&&o.value?(g(),B(It,{key:2,ref:i,active:d,file:o.value,"content-url":T.value,kind:oe.value,loading:R.value,downloading:H.value,onClose:s,onDownload:Ie},null,8,["active","file","content-url","kind","loading","downloading","onClose"])):x("",!0)]),_:1},8,["presentation","tabs","active-tab-id"]))],64)}}}),mn=lt(Jt,[["__scopeId","data-v-e5ebddfb"]]);export{mn as default};
|
|
1
|
+
import{I as Ze,m as et,aZ as tt,f as P,T as nt,ac as at,a0 as ot,o as g,n as E,L as u,J as B,W as G,a_ as rt,N as x,X as j,H as ue,U as Te,Y as Re,t as Z,q as _e,as as it,K as st,k as ee,M as Ne,_ as lt}from"./index-nTDMEpry.js";import{E as dt}from"./message-box-service-C8q7blg8.js";import{d as ct,r as ut,a as ft,b as vt,m as wt,c as fe,e as Fe,f as De,g as mt,h as gt,i as pt,H as ht,W as yt,j as It,k as kt,l as bt,w as Pt,n as Et,t as St,o as Tt}from"./HtmlPreviewFrame-mY307Dbd.js";import{c as Rt}from"./session-share-client-service-F20nFnhi.js";import{c as _t,i as Le,s as ve,u as Nt,f as Ce,d as Oe,F as Ft,a as we}from"./FilePreviewLoading-BjTq_2_N.js";import{f as Dt}from"./error-presentation-p-88bGPc.js";import Lt from"./MarkdownFilePreview-UegajMzF.js";import{c as Ct}from"./workbench-live-service-CRqfYcR6.js";import{c as Ot}from"./workspace-direct-transfer-service-H0f55kLn.js";import{f as Ut}from"./file-presentation-Cm7tx53N.js";import"./mobile-dialog-return-service-CIBrJ7zu.js";import"./el-input-mQZYBrBd.js";import"./use-form-common-props-14CxDqe1.js";import"./el-scrollbar-8NwBVSDB.js";import"./uuid-BmNSYLtZ.js";import"./el-form-item-AGycjXtk.js";import"./el-switch-DULOibHs.js";import"./MarIcon-Dd8tXkD_.js";import"./BusyIndicator-C6r16yaq.js";const At="/assets/github-markdown-light-DWnTz46N.css",xt=800;function Wt(p){function te(){return{...p.repositoryPath===void 0?{}:{repositoryPath:p.repositoryPath},...p.worktreePath===void 0?{}:{worktreePath:p.worktreePath}}}let _=!0,I,C=0,a;const w=new Promise(l=>{a=l}),D=setTimeout(()=>a?.(!1),xt),y=Ot({send:l=>W.sendDirect(l),shouldRetryProbe:(l,v)=>_&&l===p.nodeId&&v===I}),W=Ct({canConnect:()=>_,onEvent:()=>{},onResyncRequired:()=>{},onNodeConnection:(l,v)=>{l===p.nodeId&&!v&&y.invalidateNode(l)},onNodeReplaced:l=>y.invalidateNode(l),onReconnect:()=>{},onDisconnected:()=>y.invalidateControlConnection(),onReady:(l,v)=>{v||y.invalidateNetwork(),V()},onDirectMessage:l=>y.handle(l),onUnauthenticated:()=>F(!1),onInvalidMessage:()=>{}});async function V(){const l=++C;try{const v=await fetch(`/api/nodes/${encodeURIComponent(p.nodeId)}/workbench-capabilities`,{credentials:"same-origin"});if(!v.ok)throw new Error("DIRECT_UNAVAILABLE");const o=(await v.json()).manifest;if(!_||l!==C)return;if(o?.directTransfer?.apiVersion!==3||o.directTransfer.transport!==!0||o.directTransfer.download!==!0||typeof o.nodeGeneration!="string"){F(!1);return}I=o.nodeGeneration;const L=await y.ensureTransport(p.nodeId,I);_&&l===C&&F(L==="DIRECT_AVAILABLE")}catch{_&&l===C&&F(!1)}}function F(l){clearTimeout(D),a?.(l),a=void 0}async function N(l,v=!0){if(Ze(l)||v&&!await w)return;const h=I;if(!_||h===void 0||!y.isConnected(p.nodeId,h))return;const o={kind:"WORKSPACE_FILE",workspaceId:p.workspaceId,path:l,...te()};return{direct:y,nodeId:p.nodeId,nodeGeneration:h,resource:o,metadata:async()=>{const L=await vt({nodeId:p.nodeId,resource:o,request:async S=>{const T=await fetch(S,{credentials:"same-origin"});return T.ok?T.json():{}}});return _?L:void 0}}}async function $(l,v,h,o){const L=await N(l);if(L!==void 0)return ut({...L,fileName:l.split("/").at(-1)??"file",offset:v,length:h,...o===void 0?{}:{identity:o}}).catch(()=>{})}async function K(l){const v=await N(l);return v===void 0?void 0:ft(v)}async function q(l){const v=await N(l,!1);return v===void 0||p.activeDownloadWorker===void 0?"UNAVAILABLE":ct({...v,activeWorker:p.activeDownloadWorker})}function z(){y.invalidateNetwork()}function k(){_=!1,C+=1,F(!1),y.invalidateNetwork(),W.close()}return W.connect(),{objectUrl:K,readRange:$,download:q,networkChanged:z,close:k}}const $t=["href"],zt={key:0,class:"standalone-error"},Mt={class:"standalone-markdown-header html-preview-header"},jt={key:0},Vt={class:"standalone-markdown-header"},Bt={key:0},Kt={class:"standalone-preview-body"},qt={key:1,class:"markdown-preview-page"},Ht={key:0,class:"standalone-error"},Jt=et({__name:"StandaloneFilePreviewPage",props:{quoteTarget:{},share:{}},emits:["close"],setup(p,{emit:te}){const _=tt(),I=p,C=te,a=new URLSearchParams(I.share?.intent??location.search),w=I.share?.access;if(w!==void 0){const n=w.session.value.share;a.set("nodeId",n.nodeId),a.set("workspaceId",n.workspaceId),a.delete("write"),a.delete("source"),a.delete("worktreePath"),a.delete("repositoryPath")}const D={...a.has("repositoryPath")?{repositoryPath:a.get("repositoryPath")}:{},...a.has("worktreePath")?{worktreePath:a.get("worktreePath")}:{}},y=w===void 0?void 0:Rt(w,w.session.value.share),W=_t(void 0,w===void 0?"workbench":`share:${w.session.value.share.id}`),V=!a.has("repositoryPath")&&a.get("markdownPreview")==="1",F=!a.has("repositoryPath")&&a.get("htmlPreview")==="1",N=V||F,$=a.get("source")==="hosted",K=w===void 0?"":`:share:${w.session.value.share.id}`,q="mar.standalone-file-tabs.v1"+K,z="mar.standalone-file-drafts.v1"+K,k=P([]),l=P(),v=P(),h=P(Me()),o=P(),L=P(),S=P(""),T=P(),b=P(),R=P(!0),H=P(!1),me=P(w===void 0?sessionStorage.getItem("mar.user.csrf-token")??"":""),Ue=w===void 0&&a.get("write")==="1"&&Object.keys(D).length===0,ge=y??Tt({csrfToken:()=>me.value,renewCsrfToken:Je}),ne=bt(ge),O=ne.state,J=ee(()=>O.value.error!==void 0?Dt(O.value.error,a.get("path")??""):S.value===""?"":Z(S.value)),Ae=ee(()=>O.value.url!==void 0&&new URL(O.value.url).hostname===location.hostname),ae=wt().preference,xe=ee(()=>({backgroundImage:`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="360" height="240"><defs><pattern id="watermark" width="360" height="240" patternUnits="userSpaceOnUse" patternTransform="rotate(-30)"><text x="0" y="120" fill="#000" fill-opacity=".12" font-family="serif" font-size="22">${Ye(ae.value.watermarkText)}</text></pattern></defs><rect width="100%" height="100%" fill="url(#watermark)"/></svg>`)}")`})),We=Number(a.get("line"))||void 0,$e=Number(a.get("column"))||void 0,oe=ee(()=>o.value===void 0?"unsupported":Ce(o.value.path,o.value.encoding));let U,re,Q=!1;function ze(){if(N)return;const n=a.get("nodeId"),e=a.get("workspaceId"),t=a.get("path");if(n===null||e===null||t===null)return;let r=[];try{const c=I.share?.embedded?[]:JSON.parse(sessionStorage.getItem(q)??"[]");Array.isArray(c)&&(r=c.filter(je))}catch{r=[]}const i={kind:ve(t,a.get("mimeType")??"")?"WORKTREE_TEXT":"WORKTREE_PREVIEW",nodeId:n,workspaceId:e,path:t,repositoryPath:a.get("repositoryPath")??"",worktreePath:a.get("worktreePath")??"",...a.has("repositoryPath")?{gitFile:!0}:{},...Number(a.get("line"))>0?{targetLine:Number(a.get("line"))}:{},...Number(a.get("column"))>0?{targetColumn:Number(a.get("column"))}:{}},s=Pt(i),m=r.find(c=>c.identity===s),f=m===void 0?{...i,id:Math.max(0,...r.map(c=>c.id))+1,identity:s,fileName:Et(t),url:location.href}:{...m,...i,url:location.href};k.value=[...r.filter(c=>c.identity!==s),f].slice(-20),l.value=f.id,ie()}function Me(){try{const n=JSON.parse(sessionStorage.getItem(z)??"[]");return Array.isArray(n)?n.filter(pe):[]}catch{return[]}}function je(n){if(typeof n!="object"||n===null)return!1;const e=n;if(!Number.isSafeInteger(e.id)||e.kind!=="WORKTREE_TEXT"&&e.kind!=="WORKTREE_PREVIEW"||typeof e.identity!="string"||typeof e.nodeId!="string"||typeof e.workspaceId!="string"||typeof e.path!="string"||typeof e.fileName!="string"||typeof e.url!="string")return!1;try{const t=new URL(e.url,location.href);return t.origin===location.origin&&t.pathname===location.pathname&&t.searchParams.get("standaloneFile")==="1"&&t.searchParams.get("markdownPreview")!=="1"}catch{return!1}}function pe(n){if(typeof n!="object"||n===null)return!1;const e=n;return typeof e.tabIdentity=="string"&&typeof e.path=="string"&&typeof e.content=="string"&&typeof e.expectedRevision=="string"}function ie(){!N&&!I.share?.embedded&&sessionStorage.setItem(q,JSON.stringify(k.value))}function Ve(n){const e=k.value.find(t=>t.id===n);e===void 0||n===l.value||(se(),location.replace(e.url))}function Be(n){const e=k.value.findIndex(i=>i.id===n);if(e<0)return;const t=k.value.filter(i=>i.id!==n),r=k.value[e];if(k.value=t,he(r.identity),ie(),t.length===0){le();return}if(n!==l.value)return;const d=t[Math.min(e,t.length-1)];d!==void 0&&location.replace(d.url)}function se(){const n=v.value?.captureDirtyDrafts().filter(pe)??[];if(n.length===0)return;const e=new Set(n.map(t=>t.tabIdentity));h.value=[...h.value.filter(t=>!e.has(t.tabIdentity)),...n],sessionStorage.setItem(z,JSON.stringify(h.value))}async function Ke(n){const e=k.value.find(t=>t.id===n);if(e===void 0||!h.value.some(t=>t.tabIdentity===e.identity))return!0;try{return await dt.confirm(Z("fileEditor.unsavedMessage"),Z("fileEditor.unsavedTitle"),{closeIcon:Ne("close"),icon:Ne("warning"),type:"warning"}),!0}catch{return!1}}function qe(){k.value=[],h.value=[],ie(),sessionStorage.removeItem(z),le()}function he(n){h.value=h.value.filter(e=>e.tabIdentity!==n),sessionStorage.setItem(z,JSON.stringify(h.value))}ze(),nt(async()=>{N?de.mount():window.addEventListener("mar-before-standalone-navigation",se),window.addEventListener("online",Y),window.addEventListener("offline",Y);const n=a.get("nodeId"),e=a.get("workspaceId"),t=a.get("path");if(n===null||e===null||t===null){S.value="generated.standaloneFilePreviewPage.theFilePreviewURLIsInvalid";return}if(!$&&w===void 0&&(U=Wt({nodeId:n,workspaceId:e,activeDownloadWorker:_.activeWorker,...D})),document.title=`${t.split("/").at(-1)??t} · MyAgentRoam`,F){R.value=!0,!$&&Le(t)&&Object.keys(D).length===0?await ne.open({nodeId:n,workspaceId:e,path:t}):S.value="htmlPreview.unavailable",R.value=!1;return}await ye()});async function ye(n=!1){const e=a.get("nodeId"),t=a.get("workspaceId"),r=a.get("path");if(e===null||t===null||r===null)return;R.value=!0,S.value="",re=void 0,Q=!1,b.value!==void 0&&fe(b.value),b.value=void 0;const d=ve(r);if(o.value={path:r,encoding:d?"utf-8":"base64",content:"",truncated:!1,nextOffset:null},T.value=void 0,$){await He(e,r);return}try{if(Nt(r)&&a.get("rawContent")==="1"){const s=n?void 0:await Fe(r,async()=>U?.objectUrl(r));if(s!==void 0){b.value=s.url,o.value={path:r,size:s.size,encoding:"base64",content:"",truncated:!1,nextOffset:null,revision:s.revision},T.value=s.url;return}const m=await ke(e,t,r,0,!1,1);o.value={path:r,...m.size===void 0?{}:{size:m.size},encoding:"base64",content:"",truncated:!1,nextOffset:null},T.value=X(e,t,r);return}const i=await De(s=>ke(e,t,r,0,!n,s));if(i.encoding==="base64"){if(b.value!==void 0&&fe(b.value),o.value={...i,content:"",truncated:!1,nextOffset:null},Ce(r,"base64")==="unsupported")return;const s=n?void 0:await Fe(r,async()=>U?.objectUrl(r));if(b.value=s?.url,s!==void 0){T.value=b.value;return}T.value=X(e,t,r)}else o.value={...i,truncated:i.nextOffset!==null,nextOffset:i.nextOffset}}catch{if(!n&&Q){await ye(!0);return}S.value="generated.standaloneFilePreviewPage.unableToReadTheFileCheckYour"}finally{R.value=!1}}async function He(n,e){const t=a.get("conversationId"),r=a.get("fileId"),d=a.get("mimeType")??"";let i=Number(a.get("size"));if(t===null||a.get("workspaceId")!==t||r===null||!Number.isSafeInteger(i)||i<0){S.value="generated.standaloneFilePreviewPage.theFilePreviewURLIsInvalid",R.value=!1;return}const s=`/api/nodes/${encodeURIComponent(n)}/hosted-conversations/${encodeURIComponent(t)}/files/${encodeURIComponent(r)}/content`,m=ve(e,d);if(o.value={path:e,size:i,encoding:m?"utf-8":"base64",content:"",truncated:!1,nextOffset:null},!m){T.value=s,R.value=!1;return}try{if(i===0){const f=await fetch(s,{credentials:"same-origin",method:"HEAD"});if(!f.ok)throw new Error(`REQUEST_FAILED_${f.status}`);const c=f.headers.get("content-length");if(c===null||!Number.isSafeInteger(Number(c))||Number(c)<0)throw new Error("NODE_RESPONSE_INVALID");if(i=Number(c),i===0){o.value={path:e,size:i,encoding:"utf-8",content:"",truncated:!1,nextOffset:null};return}}o.value=await De(async f=>{const c=await fetch(s,{credentials:"same-origin",headers:{Range:`bytes=0-${f-1}`}});if(!c.ok)throw new Error(`REQUEST_FAILED_${c.status}`);const A=new Uint8Array(await c.arrayBuffer()),Se=c.headers.get("content-range")?.match(/\/(\d+)$/u)?.[1],M=Se===void 0?i:Number(Se);if(!Number.isSafeInteger(M)||M<0)throw new Error("NODE_RESPONSE_INVALID");const ce=Oe(A,e,A.byteLength>=M,d);return{path:e,size:M,...ce,truncated:ce.encoding==="utf-8"&&A.byteLength<M,nextOffset:ce.encoding==="utf-8"&&A.byteLength<M?A.byteLength:null}}),o.value.encoding==="base64"&&(T.value=s)}catch{S.value="generated.standaloneFilePreviewPage.unableToReadTheFileCheckYour"}finally{R.value=!1}}async function Je(){const n=await fetch("/api/auth/csrf",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:"{}"});if(!n.ok)throw new Error("CSRF_INVALID");const e=await n.json();if(typeof e.csrfToken!="string")throw new Error("CSRF_TOKEN_INVALID");return me.value=e.csrfToken,sessionStorage.setItem("mar.user.csrf-token",e.csrfToken),e.csrfToken}async function Qe(n,e){const t=a.get("nodeId"),r=a.get("workspaceId"),d=a.get("path");if(t===null||r===null||d===null||o.value?.previewEncoding!==void 0)throw new Error("FILE_WRITE_INVALID");const i=await ge.request(`/api/workspaces/${encodeURIComponent(r)}/files/write`,{method:"PUT",body:JSON.stringify({nodeId:t,path:d,content:n,expectedRevision:e})});if(typeof i.file?.revision!="string"||typeof i.file.size!="number"||!Number.isSafeInteger(i.file.size)||i.file.size<0)throw new Error("NODE_RESPONSE_INVALID");return o.value!==void 0&&(o.value={...o.value,content:n,revision:i.file.revision,size:i.file.size}),i.file.revision}at(()=>{ne.release(),N?de.dispose():window.removeEventListener("mar-before-standalone-navigation",se),window.removeEventListener("online",Y),window.removeEventListener("offline",Y),U?.close(),b.value!==void 0&&fe(b.value)});async function Ie(){if(o.value!==void 0){H.value=!0;try{const n=a.get("nodeId"),e=a.get("workspaceId"),t=a.get("path");if(n===null||e===null||t===null)return;if($){const i=a.get("conversationId"),s=a.get("fileId");if(i===null||s===null)return;const m=document.createElement("a");m.href=`/api/nodes/${encodeURIComponent(n)}/hosted-conversations/${encodeURIComponent(i)}/files/${encodeURIComponent(s)}/content?download=1`,m.download=t.split("/").at(-1)??"download",m.click();return}if(b.value?.startsWith("blob:")){St(b.value,t.split("/").at(-1)??"download");return}const r=await U?.download(t);if(r!==void 0&&r!=="UNAVAILABLE")return;const d=document.createElement("a");d.href=X(n,e,t,!0),d.download=o.value.path.split("/").at(-1)??"download",d.click()}finally{H.value=!1}}}function Y(){U?.networkChanged()}async function ke(n,e,t,r,d=!0,i=512*1024){const s=d?await U?.readRange(t,r,i,re):void 0;if(s!==void 0){Q=!0,re={revision:s.revision,size:s.size};const c=await mt(s),A=Oe(s.bytes,t,s.nextOffset===null);return{path:t,size:s.size,...A,truncated:s.nextOffset!==null,nextOffset:s.nextOffset,...c===void 0?{}:{revision:c}}}if(d&&Q)throw new Error("DIRECT_FILE_READ_FAILED");const m=new URLSearchParams({nodeId:n,path:t,offset:String(r),limit:String(i),...D});let f;if(y!==void 0)f=await y.request(`/api/workspaces/${encodeURIComponent(e)}/files/read?${m.toString()}`);else{const c=await fetch(`/api/workspaces/${encodeURIComponent(e)}/files/read?${m.toString()}`,{credentials:"same-origin"});if(!c.ok)throw new Error(`REQUEST_FAILED_${c.status}`);f=await c.json()}if(f.file===void 0||f.file.encoding!=="utf-8"&&f.file.encoding!=="base64"||f.file.nextOffset!==null&&!Number.isSafeInteger(f.file.nextOffset))throw new Error("NODE_RESPONSE_INVALID");return gt(f.file,t)}function Ye(n){return n.replace(/[&<>]/g,e=>e==="&"?"&":e==="<"?"<":">")}function le(){if(I.share?.embedded){C("close");return}window.close()}function be(){return le(),!0}const de=pt({isOpen:()=>N,closeWindow:be,closeTab:be});function Xe(n){de.bindFrame(n)}function Pe(n){const e=a.get("nodeId"),t=a.get("workspaceId");return e===null||t===null?"":X(e,t,n)}function Ee(n){const e=a.get("nodeId"),t=a.get("workspaceId");if(e===null||t===null)return;const r=new URLSearchParams({standaloneFile:"1",...we(n)?{markdownPreview:"1"}:{rawContent:"1"},nodeId:e,workspaceId:t,path:n}),d=`${w===void 0?"/console":"/share/"+encodeURIComponent(w.session.value.share.id)}?${r.toString()}`;w!==void 0?W.open(d):location.assign(d)}function Ge(n){const e=a.get("nodeId"),t=a.get("workspaceId");if(e===null||t===null)return;const r=new URLSearchParams({standaloneFile:"1",htmlPreview:"1",nodeId:e,workspaceId:t,path:n});W.open(`${w===void 0?"/console":"/share/"+encodeURIComponent(w.session.value.share.id)}?${r.toString()}`)===void 0&&(S.value="htmlPreview.unavailable")}function X(n,e,t,r=!1){const d=new URLSearchParams({nodeId:n,path:t,...r?{download:"1"}:{},...D}),i=`/api/workspaces/${encodeURIComponent(e)}/files/content?${d.toString()}`;return y?.resourceUrl(i)??i}return(n,e)=>{const t=ot("tooltip");return g(),E(ue,null,[u(V)?(g(),B(rt,{key:0,to:"head"},[G("link",{rel:"stylesheet",href:u(At)},null,8,$t)])):x("",!0),u(N)?(g(),E("main",{key:1,ref_key:"standaloneRoot",ref:L,class:"standalone-file-preview"},[J.value?(g(),E("p",zt,j(J.value),1)):u(F)?(g(),E(ue,{key:1},[G("header",Mt,[Te((g(),E("code",null,[Re(j(u(a).get("path")),1)])),[[t,u(a).get("path")??""]]),u(O).url?(g(),E("small",jt,j(u(Z)(Ae.value?"htmlPreview.trustedWarning":"htmlPreview.isolatedWarning")),1)):x("",!0)]),_e(ht,{url:u(O).url,loading:R.value||u(O).loading,title:u(a).get("path")??"",onLoad:Xe},null,8,["url","loading","title"])],64)):u(V)?(g(),E(ue,{key:2},[G("header",Vt,[Te((g(),E("code",null,[Re(j(u(a).get("path")??o.value?.path),1)])),[[t,u(a).get("path")??o.value?.path??""]]),o.value?.size!==void 0?(g(),E("small",Bt,j(u(Ut)(o.value.size??0)),1)):x("",!0)]),G("div",Kt,[R.value?(g(),B(Ft,{key:0,variant:"page",overlay:""})):o.value&&u(we)(o.value.path)?(g(),E("main",qt,[_e(Lt,{content:o.value.content,path:o.value.path,"resource-url":Pe,"standard-style":"",onOpenFile:Ee},null,8,["content","path"]),u(ae).watermarkEnabled&&u(ae).watermarkText?(g(),E("div",{key:0,class:"markdown-watermark",style:it(xe.value),"aria-hidden":"true"},null,4)):x("",!0)])):x("",!0)])],64)):x("",!0)],512)):(g(),B(kt,{key:2,ref_key:"standaloneFileTabs",ref:v,presentation:I.share?.embedded?"overlay":"window",tabs:k.value,"active-tab-id":l.value,"can-close-unmounted-tab":Ke,onActivate:Ve,onClose:Be,onCloseAll:qe},{default:st(({tab:r,active:d,registerPageHandle:i,requestClose:s,requestCloseAll:m})=>[d&&J.value?(g(),E("p",Ht,j(J.value),1)):d&&o.value&&oe.value==="text"?(g(),B(yt,{key:1,"quote-target":I.quoteTarget,ref:i,active:d,file:o.value,kind:oe.value,loading:R.value,downloading:H.value,"target-line":u(We),"target-column":u($e),"write-enabled":u(Ue),html:u(Le)(o.value.path)&&Object.keys(D).length===0,markdown:!u(a).has("repositoryPath")&&u(we)(o.value.path),"markdown-resource-url":Pe,"save-file":Qe,"tab-identity":r.identity,"initial-dirty-draft":h.value.find(f=>f.tabIdentity===r.identity&&f.path===r.path),onClose:s,onQuoted:m,onDownload:Ie,onOpenHtmlPreview:e[0]||(e[0]=f=>Ge(o.value.path)),onOpenMarkdownPreview:e[1]||(e[1]=f=>Ee(o.value.path)),onDirtyDraftApplied:he},null,8,["quote-target","active","file","kind","loading","downloading","target-line","target-column","write-enabled","html","markdown","tab-identity","initial-dirty-draft","onClose","onQuoted"])):d&&o.value?(g(),B(It,{key:2,ref:i,active:d,file:o.value,"content-url":T.value,kind:oe.value,loading:R.value,downloading:H.value,onClose:s,onDownload:Ie},null,8,["active","file","content-url","kind","loading","downloading","onClose"])):x("",!0)]),_:1},8,["presentation","tabs","active-tab-id"]))],64)}}}),mn=lt(Jt,[["__scopeId","data-v-e5ebddfb"]]);export{mn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import i from"./SystemConfigurationPage-DE3cgB4E.js";import{m as r,o,J as n}from"./index-nTDMEpry.js";import"./el-alert-DmchhQax.js";import"./vnode-OkN1IbUg.js";import"./el-form-item-AGycjXtk.js";import"./use-form-common-props-14CxDqe1.js";import"./el-scrollbar-8NwBVSDB.js";import"./el-input-mQZYBrBd.js";import"./mobile-dialog-return-service-CIBrJ7zu.js";import"./el-select-DmxIIQ48.js";import"./index-BUChenZd.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BaZQhZyx.js";import"./el-input-number-Dpw9CJQ1.js";import"./index-CNUoaheD.js";import"./el-switch-DULOibHs.js";import"./message-box-service-C8q7blg8.js";import"./el-table-column-BaC9TraJ.js";import"./merge-KnF4FXAE.js";import"./isArrayLikeObject-B10d2_nL.js";import"./el-checkbox-C4UiMIuI.js";import"./last-DXTTfs9a.js";/* empty css */import"./MarIcon-Dd8tXkD_.js";import"./conversation-history-Dw0OeuDj.js";import"./error-presentation-p-88bGPc.js";const I=r({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean}},setup(e){const t=[{key:"audit-retention",field:"auditRetentionDays",payloadField:"days",initialValue:180,nameKey:"generated.systemConfigurationPage.auditRetentionDays",descriptionKey:"generated.systemConfigurationPage.theServerRemovesExpiredEventsInBatches",type:"number",min:1,max:3650,placeholderKey:"generated.systemConfigurationPage.enterRetentionDays"}];return(a,m)=>(o(),n(i,{request:e.request,writable:e.writable,settings:t},null,8,["request","writable"]))}});export{I as default};
|
package/web/assets/{SystemConfigurationPage-BK7G8vmn.js → SystemConfigurationPage-DE3cgB4E.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as Ve}from"./el-alert-CEHApIIB.js";import{E as ue,a as de}from"./el-form-item-C8oLarT4.js";import{a as me,E as ce}from"./el-input-DxeOieW7.js";import{E as pe,a as ge}from"./el-select-DW0LI87X.js";import{E as fe,u as te,m as ae}from"./mobile-dialog-return-service-DLHdI4x8.js";import{E as ke}from"./el-input-number-BIbki6BY.js";import{E as Te}from"./el-switch-C00HF0UW.js";import{E as Se,a as Ee}from"./el-table-column-D73waEv7.js";import{f as _,m as ye,t,o as g,n as S,H as G,q as o,K as r,Y as U,X as p,L as e,M as k,J as D,U as ne,W as h,a3 as se,a6 as Ue,V as ve,N as R,k as H,$ as j,_ as be,w as xe,T as Me,l as Ie}from"./index-JO-_HF_g.js";import"./el-scrollbar-DUmLsJ6L.js";/* empty css */import"./el-checkbox-DxMGl-vw.js";import{M as re}from"./MarIcon-voqnhtIF.js";import{E as De}from"./message-box-service-D8CfKUOn.js";import"./conversation-history-C16mWPkT.js";import{e as X}from"./error-presentation-CMLogAUA.js";import"./vnode-BCxIHs5H.js";import"./use-form-common-props-DXqp-92e.js";import"./index-ywDIhufi.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-PriW3Q7h.js";import"./index-CtycWWod.js";import"./merge-ef1ltRhC.js";import"./isArrayLikeObject-BiSV3vfv.js";import"./last-DXTTfs9a.js";const Ke={key:"skill-tls",field:"skillTlsVerificationDisabled",payloadField:"verificationDisabled",nameKey:"generated.systemConfigurationPage.disableSkillSourceTLSVerification",descriptionKey:"generated.systemConfigurationPage.keepThisOffByDefaultUseIt",type:"boolean",initialValue:!1},Ne={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},$e={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},Oe={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Fe(T,x=[]){const u=[...x,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},$e,Oe,Ne,Ke],P=new Map(u.map(i=>[i.key,i]));if(P.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=_(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),f=_({...w.value}),m=_(null),V=_(null),y=_(!1);function d(i){w.value=i,f.value={...i}}async function I(){if(!(y.value||V.value!==null)){y.value=!0;try{d(await T("/api/system-settings")),m.value=null}finally{y.value=!1}}}function K(i){!P.has(i)||y.value||V.value!==null||m.value!==null||(f.value={...w.value},m.value=i)}function N(i){m.value!==i||V.value!==null||(f.value={...w.value},m.value=null)}function $(i,l){if(i.type==="json"){if(typeof l!="string"||l.length>4096)return!1;try{const v=JSON.parse(l);return v!==null&&typeof v=="object"&&!Array.isArray(v)}catch{return!1}}if(i.type==="origin"){if(l==="")return!0;if(typeof l!="string"||l.length>253)return!1;try{const v=new URL(l);return v.origin===l&&(v.protocol==="https:"||v.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof l=="boolean":typeof l=="number"&&Number.isFinite(l)&&l>=i.min&&l<=i.max}function O(i,l){const v=P.get(i);v===void 0||m.value!==i||V.value!==null||!(v.type==="origin"||v.type==="json"?typeof l=="string"&&l.length<=(v.type==="json"?4096:253):$(v,l))||(f.value[v.field]=l)}async function F(i){const l=P.get(i);if(l===void 0||m.value!==i||V.value!==null||y.value)return!1;const v=f.value[l.field];if(!$(l,v))return!1;V.value=i;try{return d(await T(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[l.payloadField]:v})})),m.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:f,editingKey:m,savingKey:V,loading:y,load:I,beginEdit:K,cancelEdit:N,validValue:$,setDraft:O,save:F}}function Be(T){const x=_([]),u=_(!1),P=_(!1);async function w(){if(!u.value){u.value=!0;try{x.value=await T("/api/mail/templates")}finally{u.value=!1}}}async function f(V,y){return T("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:y})})}async function m(V,y){P.value=!0;try{await T("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:y})})}finally{P.value=!1}}return{templates:x,loading:u,busy:P,load:w,preview:f,test:m}}const Ae={class:"template-viewer"},je={class:"template-description"},Re={key:0,class:"template-layout"},qe=["aria-label"],Le=["aria-pressed","onClick"],Je={class:"template-choice__meta"},ze={class:"template-choice__name"},He={class:"template-choice__subject"},Ze={key:0,class:"template-preview"},We={class:"template-preview__header"},Ye={class:"template-preview__locale"},Ge=["srcdoc","title"],Xe={key:1,class:"template-preview__fallback"},Qe={key:1,class:"template-empty"},et=ye({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(T){const x=T,u=Be(x.request),P=_(!1),w=_(""),f=H(()=>u.templates.value.find(b=>b.id===w.value)),m=_(),V=_(!1);let y=0;const d=_(!1),I=_(),K=_(""),N=_(""),$=H(()=>u.templates.value.filter(b=>b.kind==="TEST")),O=H(()=>({email:K.value,templateId:N.value})),F={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:t("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?X(b):t("generated.systemConfigurationPage.mailOperationFailed")}async function l(){P.value=!0,y+=1,w.value="",m.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await L()}catch(b){j(i(b),"error",b)}}function v(b){w.value=b.id,m.value=void 0,L()}async function L(){const b=f.value;if(b===void 0||!P.value)return;const C=++y;V.value=!0;try{const M=await u.preview(b,t("generated.systemConfigurationPage.mailPreviewMessage"));P.value&&C===y&&w.value===b.id&&(m.value=M)}catch(M){C===y&&j(i(M),"error",M)}finally{C===y&&(V.value=!1)}}function Z(){K.value="",N.value=(f.value?.kind==="TEST"?f.value.id:$.value[0]?.id)??"",d.value=!0}async function J(){if(x.writable)try{await I.value?.validate(),await u.test(K.value,N.value),d.value=!1,j(t("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&j(i(b),"error",b)}}return(b,C)=>{const M=me,W=fe,Q=ce,z=ue,Y=ge,s=pe,a=de,E=ve;return g(),S(G,null,[o(M,{icon:e(k)("mail"),onClick:l},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),P.value?(g(),D(W,{key:0,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:P.value,"onUpdate:modelValue":C[1]||(C[1]=c=>P.value=c),"append-to-body":"",title:e(t)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))","close-icon":e(k)("close")},{footer:r(()=>[o(M,{disabled:!T.writable||$.value.length===0||e(u).busy.value,onClick:Z},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(M,{onClick:C[0]||(C[0]=c=>P.value=!1)},{default:r(()=>[U(p(e(t)("common.close")),1)]),_:1})]),default:r(()=>[ne((g(),S("div",Ae,[h("p",je,p(e(t)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(g(),S("div",Re,[h("div",{class:"template-choices",role:"group","aria-label":e(t)("generated.systemConfigurationPage.mailTemplates")},[(g(!0),S(G,null,se(e(u).templates.value,c=>(g(),S("button",{key:c.id,type:"button",class:Ue(["template-choice",{"is-selected":w.value===c.id}]),"aria-pressed":w.value===c.id,onClick:ee=>v(c)},[h("span",Je,[U(p(e(t)(c.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),C[6]||(C[6]=h("span",{"aria-hidden":"true"},"·",-1)),U(" "+p(c.locale),1)]),h("span",ze,p(c.name),1),h("span",He,p(c.subject),1)],10,Le))),128))],8,qe),f.value?ne((g(),S("div",Ze,[h("div",We,[h("span",null,p(e(t)("generated.systemConfigurationPage.mailPreviewSample")),1),h("span",Ye,p(f.value.locale),1)]),m.value?.html?(g(),S("iframe",{key:0,class:"template-preview__document",srcdoc:m.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(t)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Ge)):(g(),S("div",Xe,[h("span",null,p(e(t)("generated.systemConfigurationPage.mailSubject")),1),h("strong",null,p(m.value?.subject??f.value.subject),1),h("span",null,p(e(t)("generated.systemConfigurationPage.mailBody")),1),h("p",null,p(m.value?.text??f.value.body),1)]))])),[[E,V.value]]):R("",!0)])):e(u).loading.value?R("",!0):(g(),S("p",Qe,p(e(t)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[E,e(u).loading.value]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):R("",!0),d.value?(g(),D(W,{key:1,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:d.value,"onUpdate:modelValue":C[5]||(C[5]=c=>d.value=c),"append-to-body":"",title:e(t)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))","close-icon":e(k)("close")},{footer:r(()=>[o(M,{onClick:C[4]||(C[4]=c=>d.value=!1)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1}),o(M,{type:"primary",loading:e(u).busy.value,onClick:J,"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading","loading-icon"])]),default:r(()=>[o(a,{ref_key:"testForm",ref:I,model:O.value,rules:F,"label-position":"top"},{default:r(()=>[o(z,{label:e(t)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:r(()=>[o(Q,{modelValue:K.value,"onUpdate:modelValue":C[2]||(C[2]=c=>K.value=c),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(z,{label:e(t)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:r(()=>[o(s,{modelValue:N.value,"onUpdate:modelValue":C[3]||(C[3]=c=>N.value=c),class:"template-test-select","clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:r(()=>[(g(!0),S(G,null,se($.value,c=>(g(),D(Y,{key:c.id,value:c.id,label:c.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):R("",!0)],64)}}}),tt=be(et,[["__scopeId","data-v-62b5baac"]]),at={"element-loading-custom-class":"mar-page-loading",class:"mar-management-page"},nt={class:"mar-table-actions"},lt={key:1},ot={key:3},it={key:4},st={class:"smtp-toggle"},rt={class:"smtp-form__pair"},ut={class:"smtp-template-row"},dt={class:"smtp-dialog-hint"},mt={class:"smtp-dialog-footer"},ct=ye({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(T){const x=T,u=Fe(x.request,x.settings),P=_(),w=_(),f=_(""),m=_(!1),V=u.settings.find(s=>s.key==="mail-smtp"),y=_(!1),d=Ie({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let I="";const K={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:t("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:t("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:t("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:t("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:t("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(s,a,E)=>E(typeof a=="string"&&a.length<=1024&&(d.username===""?a==="":a!==""||d.username===I)?void 0:new Error(t("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},N=u.settings.find(s=>s.key==="html-preview-origin"),$={origin:[{validator:(s,a,E)=>E(u.validValue(N,a)?void 0:new Error(t("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:O,drafts:F,editingKey:i,savingKey:l,loading:v,beginEdit:L,cancelEdit:Z}=u,J=_(!1),b=H(()=>({origin:F.value.htmlPreviewOrigin})),C=H(()=>u.settings.map(s=>({...s,name:t(s.nameKey),description:t(s.descriptionKey)})));xe(m,s=>{f.value="",s||(d.password="",I="",Z("mail-smtp"))});function M(s){const a=F.value[s];return typeof a=="number"?a:void 0}function W(s){const a=F.value[s];return typeof a=="string"?a:""}function Q(){if(!x.writable||(L("mail-smtp"),i.value!=="mail-smtp"))return;const s=JSON.parse(String(O.value.smtpConfiguration));y.value=Object.keys(s).length>0,Object.assign(d,{host:s.host??"",port:s.port??587,tls:s.tls??"STARTTLS",from:s.from??"",fromName:s.fromName??"",username:s.username??"",password:""}),I=s.username??"",m.value=i.value==="mail-smtp"}async function z(){try{await u.load(),J.value=!0}catch(s){j(s instanceof Error?X(s):t("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",s)}}async function Y(s){if(x.writable){if(f.value="",s==="html-preview-origin")try{await P.value?.validate()}catch{return}if(s==="mail-smtp")if(y.value){try{await w.value?.validate()}catch{return}const a=JSON.stringify({...d});if(!u.validValue(V,a)){f.value=t("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(s,a)}else{if(O.value.smtpConfiguration!=="{}")try{await De.confirm(t("generated.systemConfigurationPage.smtpDisableConfirmation"),t("generated.systemConfigurationPage.smtpDisableTitle"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:t("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:t("common.cancel")})}catch(a){if(a==="cancel"||a==="close")return;j(a instanceof Error?X(a):t("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",a);return}if(!m.value||i.value!==s)return;u.setDraft(s,"{}")}try{await u.save(s)&&(s==="mail-smtp"&&(m.value=!1),j(t("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(a){j(a instanceof Error?X(a):t("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",a)}}}return Me(()=>{z()}),(s,a)=>{const E=me,c=Se,ee=ke,q=ce,B=ue,le=de,oe=Te,_e=Ee,Ce=Ve,ie=ge,he=pe,Pe=fe,we=ve;return ne((g(),S("section",at,[h("div",nt,[o(E,{icon:e(k)("refresh"),loading:e(v)&&J.value,onClick:z,"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","loading","loading-icon"])]),o(_e,{data:C.value,"row-key":"key"},{default:r(()=>[o(c,{prop:"name",label:e(t)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(c,{prop:"description",label:e(t)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(c,{label:e(t)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:r(({row:n})=>[n.type==="number"&&e(i)===n.key?(g(),D(ee,{key:0,"model-value":M(n.field),placeholder:n.placeholderKey===void 0?void 0:e(t)(n.placeholderKey),min:n.min,max:n.max,disabled:e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},{"decrease-icon":r(()=>[o(re,{name:"subtract"})]),"increase-icon":r(()=>[o(re,{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):n.type==="number"?(g(),S("span",lt,p(e(O)[n.field]),1)):n.type==="origin"&&e(i)===n.key?(g(),D(le,{key:2,ref_key:"originForm",ref:P,model:b.value,rules:$},{default:r(()=>[o(B,{prop:"origin",class:"origin-setting-form"},{default:r(()=>[o(q,{"model-value":W(n.field),placeholder:e(t)(n.placeholderKey),disabled:e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):n.type==="origin"?(g(),S("span",ot,p(e(O)[n.field]||e(t)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):n.type==="json"?(g(),S("span",it,"-")):(g(),D(oe,{key:5,"model-value":e(F)[n.field]===!0,disabled:e(i)!==n.key||!T.writable||e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(c,{label:e(t)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:r(({row:n})=>[e(i)!==n.key||n.type==="json"?(g(),D(E,{key:0,link:"",icon:e(k)("edit"),disabled:!T.writable||e(i)!==null,onClick:A=>n.type==="json"?Q():e(L)(n.key)},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(g(),S(G,{key:1},[o(E,{link:"",type:"primary",icon:e(k)("check"),loading:e(l)===n.key,disabled:!T.writable||e(l)!==null,onClick:A=>Y(n.key),"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick","loading-icon"]),o(E,{link:"",icon:e(k)("close"),disabled:e(l)!==null,onClick:A=>e(Z)(n.key)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:1},8,["data"]),m.value?(g(),D(Pe,{key:0,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:m.value,"onUpdate:modelValue":a[10]||(a[10]=n=>m.value=n),title:e(t)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(l)===null,"close-on-press-escape":e(l)===null,"show-close":e(l)===null,"append-to-body":"","close-icon":e(k)("close")},{footer:r(()=>[h("div",mt,[o(E,{disabled:e(l)!==null,onClick:a[8]||(a[8]=n=>m.value=!1)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1},8,["disabled"]),o(E,{type:"primary",loading:e(l)==="mail-smtp",onClick:a[9]||(a[9]=n=>Y("mail-smtp")),"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading","loading-icon"])])]),default:r(()=>[h("div",st,[h("span",null,p(e(t)("generated.systemConfigurationPage.smtpEnable")),1),o(oe,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=n=>y.value=n),disabled:e(l)!==null,"aria-label":e(t)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),y.value?(g(),D(le,{key:0,ref_key:"smtpForm",ref:w,model:d,rules:K,"label-position":"top",class:"smtp-form"},{default:r(()=>[f.value?(g(),D(Ce,{key:0,title:f.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(B,{label:e(t)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:r(()=>[o(q,{modelValue:d.host,"onUpdate:modelValue":a[1]||(a[1]=n=>d.host=n),maxlength:"253",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),h("div",rt,[o(B,{label:e(t)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:r(()=>[o(ee,{modelValue:d.port,"onUpdate:modelValue":a[2]||(a[2]=n=>d.port=n),min:1,max:65535,controls:!1,disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:r(()=>[o(he,{modelValue:d.tls,"onUpdate:modelValue":a[3]||(a[3]=n=>d.tls=n),disabled:e(l)!==null,"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:r(()=>[o(ie,{label:"STARTTLS",value:"STARTTLS"}),o(ie,{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:r(()=>[o(q,{modelValue:d.from,"onUpdate:modelValue":a[4]||(a[4]=n=>d.from=n),maxlength:"320",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:r(()=>[o(q,{modelValue:d.fromName,"onUpdate:modelValue":a[5]||(a[5]=n=>d.fromName=n),maxlength:"128",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:r(()=>[o(q,{modelValue:d.username,"onUpdate:modelValue":a[6]||(a[6]=n=>d.username=n),maxlength:"320",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:r(()=>[o(q,{modelValue:d.password,"onUpdate:modelValue":a[7]||(a[7]=n=>d.password=n),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(I)===d.username&&e(I)?e(t)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(l)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),h("div",ut,[o(tt,{request:T.request,writable:T.writable},null,8,["request","writable"])]),h("p",dt,p(e(t)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close","close-icon"])):R("",!0)])),[[we,e(v)&&!J.value]])}}}),Ft=be(ct,[["__scopeId","data-v-2486cd93"]]);export{Ft as default};
|
|
1
|
+
import{E as Ve}from"./el-alert-DmchhQax.js";import{E as ue,a as de}from"./el-form-item-AGycjXtk.js";import{a as me,E as ce}from"./el-input-mQZYBrBd.js";import{E as pe,a as ge}from"./el-select-DmxIIQ48.js";import{E as fe,u as te,m as ae}from"./mobile-dialog-return-service-CIBrJ7zu.js";import{E as ke}from"./el-input-number-Dpw9CJQ1.js";import{E as Te}from"./el-switch-DULOibHs.js";import{E as Se,a as Ee}from"./el-table-column-BaC9TraJ.js";import{f as _,m as ye,t,o as g,n as S,H as G,q as o,K as r,Y as U,X as p,L as e,M as k,J as D,U as ne,W as h,a3 as se,a6 as Ue,V as ve,N as R,k as H,$ as j,_ as be,w as xe,T as Me,l as Ie}from"./index-nTDMEpry.js";import"./el-scrollbar-8NwBVSDB.js";/* empty css */import"./el-checkbox-C4UiMIuI.js";import{M as re}from"./MarIcon-Dd8tXkD_.js";import{E as De}from"./message-box-service-C8q7blg8.js";import"./conversation-history-Dw0OeuDj.js";import{e as X}from"./error-presentation-p-88bGPc.js";import"./vnode-OkN1IbUg.js";import"./use-form-common-props-14CxDqe1.js";import"./index-BUChenZd.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BaZQhZyx.js";import"./index-CNUoaheD.js";import"./merge-KnF4FXAE.js";import"./isArrayLikeObject-B10d2_nL.js";import"./last-DXTTfs9a.js";const Ke={key:"skill-tls",field:"skillTlsVerificationDisabled",payloadField:"verificationDisabled",nameKey:"generated.systemConfigurationPage.disableSkillSourceTLSVerification",descriptionKey:"generated.systemConfigurationPage.keepThisOffByDefaultUseIt",type:"boolean",initialValue:!1},Ne={key:"html-preview-origin",field:"htmlPreviewOrigin",payloadField:"origin",nameKey:"generated.systemConfigurationPage.htmlPreviewOrigin",descriptionKey:"generated.systemConfigurationPage.htmlPreviewOriginDescription",placeholderKey:"generated.systemConfigurationPage.htmlPreviewOriginPlaceholder",type:"origin",initialValue:""},$e={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},Oe={key:"web-push",field:"webPushEnabled",payloadField:"enabled",nameKey:"workbenchNotificationCenter.webPushConfiguration.title",descriptionKey:"workbenchNotificationCenter.webPushConfiguration.description",type:"boolean",initialValue:!1};function Fe(T,x=[]){const u=[...x,{key:"mar-agent-resource-input",field:"useResourceUrl",payloadField:"useResourceUrl",nameKey:"marAgentModels.useResourceUrl",descriptionKey:"marAgentModels.globalResourceUrlDescription",type:"boolean",initialValue:!0},$e,Oe,Ne,Ke],P=new Map(u.map(i=>[i.key,i]));if(P.size!==u.length)throw new Error("WEB_SYSTEM_SETTING_DUPLICATE");const w=_(Object.fromEntries(u.map(i=>[i.field,i.initialValue]))),f=_({...w.value}),m=_(null),V=_(null),y=_(!1);function d(i){w.value=i,f.value={...i}}async function I(){if(!(y.value||V.value!==null)){y.value=!0;try{d(await T("/api/system-settings")),m.value=null}finally{y.value=!1}}}function K(i){!P.has(i)||y.value||V.value!==null||m.value!==null||(f.value={...w.value},m.value=i)}function N(i){m.value!==i||V.value!==null||(f.value={...w.value},m.value=null)}function $(i,l){if(i.type==="json"){if(typeof l!="string"||l.length>4096)return!1;try{const v=JSON.parse(l);return v!==null&&typeof v=="object"&&!Array.isArray(v)}catch{return!1}}if(i.type==="origin"){if(l==="")return!0;if(typeof l!="string"||l.length>253)return!1;try{const v=new URL(l);return v.origin===l&&(v.protocol==="https:"||v.protocol==="http:")}catch{return!1}}return i.type==="boolean"?typeof l=="boolean":typeof l=="number"&&Number.isFinite(l)&&l>=i.min&&l<=i.max}function O(i,l){const v=P.get(i);v===void 0||m.value!==i||V.value!==null||!(v.type==="origin"||v.type==="json"?typeof l=="string"&&l.length<=(v.type==="json"?4096:253):$(v,l))||(f.value[v.field]=l)}async function F(i){const l=P.get(i);if(l===void 0||m.value!==i||V.value!==null||y.value)return!1;const v=f.value[l.field];if(!$(l,v))return!1;V.value=i;try{return d(await T(`/api/system-settings/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify({[l.payloadField]:v})})),m.value=null,!0}finally{V.value=null}}return{settings:u,snapshot:w,drafts:f,editingKey:m,savingKey:V,loading:y,load:I,beginEdit:K,cancelEdit:N,validValue:$,setDraft:O,save:F}}function Be(T){const x=_([]),u=_(!1),P=_(!1);async function w(){if(!u.value){u.value=!0;try{x.value=await T("/api/mail/templates")}finally{u.value=!1}}}async function f(V,y){return T("/api/mail/templates/preview",{method:"POST",body:JSON.stringify({templateId:V.id,message:y})})}async function m(V,y){P.value=!0;try{await T("/api/mail/test",{method:"POST",body:JSON.stringify({email:V,templateId:y})})}finally{P.value=!1}}return{templates:x,loading:u,busy:P,load:w,preview:f,test:m}}const Ae={class:"template-viewer"},je={class:"template-description"},Re={key:0,class:"template-layout"},qe=["aria-label"],Le=["aria-pressed","onClick"],Je={class:"template-choice__meta"},ze={class:"template-choice__name"},He={class:"template-choice__subject"},Ze={key:0,class:"template-preview"},We={class:"template-preview__header"},Ye={class:"template-preview__locale"},Ge=["srcdoc","title"],Xe={key:1,class:"template-preview__fallback"},Qe={key:1,class:"template-empty"},et=ye({__name:"MailTemplateManagement",props:{request:{type:Function},writable:{type:Boolean}},setup(T){const x=T,u=Be(x.request),P=_(!1),w=_(""),f=H(()=>u.templates.value.find(b=>b.id===w.value)),m=_(),V=_(!1);let y=0;const d=_(!1),I=_(),K=_(""),N=_(""),$=H(()=>u.templates.value.filter(b=>b.kind==="TEST")),O=H(()=>({email:K.value,templateId:N.value})),F={email:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:t("generated.systemConfigurationPage.mailAddressInvalid"),trigger:"blur"}],templateId:[{required:!0,trigger:"change"}]};function i(b){return b instanceof Error?X(b):t("generated.systemConfigurationPage.mailOperationFailed")}async function l(){P.value=!0,y+=1,w.value="",m.value=void 0;try{await u.load(),w.value=u.templates.value[0]?.id??"",w.value!==""&&await L()}catch(b){j(i(b),"error",b)}}function v(b){w.value=b.id,m.value=void 0,L()}async function L(){const b=f.value;if(b===void 0||!P.value)return;const C=++y;V.value=!0;try{const M=await u.preview(b,t("generated.systemConfigurationPage.mailPreviewMessage"));P.value&&C===y&&w.value===b.id&&(m.value=M)}catch(M){C===y&&j(i(M),"error",M)}finally{C===y&&(V.value=!1)}}function Z(){K.value="",N.value=(f.value?.kind==="TEST"?f.value.id:$.value[0]?.id)??"",d.value=!0}async function J(){if(x.writable)try{await I.value?.validate(),await u.test(K.value,N.value),d.value=!1,j(t("generated.systemConfigurationPage.mailTestAccepted"),"success")}catch(b){b instanceof Error&&j(i(b),"error",b)}}return(b,C)=>{const M=me,W=fe,Q=ce,z=ue,Y=ge,s=pe,a=de,E=ve;return g(),S(G,null,[o(M,{icon:e(k)("mail"),onClick:l},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTemplateView")),1)]),_:1},8,["icon"]),P.value?(g(),D(W,{key:0,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:P.value,"onUpdate:modelValue":C[1]||(C[1]=c=>P.value=c),"append-to-body":"",title:e(t)("generated.systemConfigurationPage.mailTemplates"),width:"min(780px, calc(100vw - 32px))","close-icon":e(k)("close")},{footer:r(()=>[o(M,{disabled:!T.writable||$.value.length===0||e(u).busy.value,onClick:Z},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTest")),1)]),_:1},8,["disabled"]),o(M,{onClick:C[0]||(C[0]=c=>P.value=!1)},{default:r(()=>[U(p(e(t)("common.close")),1)]),_:1})]),default:r(()=>[ne((g(),S("div",Ae,[h("p",je,p(e(t)("generated.systemConfigurationPage.mailTemplateBuiltIn")),1),e(u).templates.value.length>0?(g(),S("div",Re,[h("div",{class:"template-choices",role:"group","aria-label":e(t)("generated.systemConfigurationPage.mailTemplates")},[(g(!0),S(G,null,se(e(u).templates.value,c=>(g(),S("button",{key:c.id,type:"button",class:Ue(["template-choice",{"is-selected":w.value===c.id}]),"aria-pressed":w.value===c.id,onClick:ee=>v(c)},[h("span",Je,[U(p(e(t)(c.kind==="TEST"?"generated.systemConfigurationPage.mailKindTest":"generated.systemConfigurationPage.mailKindNotification"))+" ",1),C[6]||(C[6]=h("span",{"aria-hidden":"true"},"·",-1)),U(" "+p(c.locale),1)]),h("span",ze,p(c.name),1),h("span",He,p(c.subject),1)],10,Le))),128))],8,qe),f.value?ne((g(),S("div",Ze,[h("div",We,[h("span",null,p(e(t)("generated.systemConfigurationPage.mailPreviewSample")),1),h("span",Ye,p(f.value.locale),1)]),m.value?.html?(g(),S("iframe",{key:0,class:"template-preview__document",srcdoc:m.value.html,sandbox:"",referrerpolicy:"no-referrer",title:e(t)("generated.systemConfigurationPage.mailPreviewSample")},null,8,Ge)):(g(),S("div",Xe,[h("span",null,p(e(t)("generated.systemConfigurationPage.mailSubject")),1),h("strong",null,p(m.value?.subject??f.value.subject),1),h("span",null,p(e(t)("generated.systemConfigurationPage.mailBody")),1),h("p",null,p(m.value?.text??f.value.body),1)]))])),[[E,V.value]]):R("",!0)])):e(u).loading.value?R("",!0):(g(),S("p",Qe,p(e(t)("generated.systemConfigurationPage.mailTemplateEmpty")),1))])),[[E,e(u).loading.value]])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):R("",!0),d.value?(g(),D(W,{key:1,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:d.value,"onUpdate:modelValue":C[5]||(C[5]=c=>d.value=c),"append-to-body":"",title:e(t)("generated.systemConfigurationPage.mailTest"),width:"min(480px, calc(100vw - 32px))","close-icon":e(k)("close")},{footer:r(()=>[o(M,{onClick:C[4]||(C[4]=c=>d.value=!1)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1}),o(M,{type:"primary",loading:e(u).busy.value,onClick:J,"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.mailTestSend")),1)]),_:1},8,["loading","loading-icon"])]),default:r(()=>[o(a,{ref_key:"testForm",ref:I,model:O.value,rules:F,"label-position":"top"},{default:r(()=>[o(z,{label:e(t)("generated.systemConfigurationPage.mailAddress"),prop:"email"},{default:r(()=>[o(Q,{modelValue:K.value,"onUpdate:modelValue":C[2]||(C[2]=c=>K.value=c),type:"email"},null,8,["modelValue"])]),_:1},8,["label"]),o(z,{label:e(t)("generated.systemConfigurationPage.mailTemplate"),prop:"templateId"},{default:r(()=>[o(s,{modelValue:N.value,"onUpdate:modelValue":C[3]||(C[3]=c=>N.value=c),class:"template-test-select","clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:r(()=>[(g(!0),S(G,null,se($.value,c=>(g(),D(Y,{key:c.id,value:c.id,label:c.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):R("",!0)],64)}}}),tt=be(et,[["__scopeId","data-v-62b5baac"]]),at={"element-loading-custom-class":"mar-page-loading",class:"mar-management-page"},nt={class:"mar-table-actions"},lt={key:1},ot={key:3},it={key:4},st={class:"smtp-toggle"},rt={class:"smtp-form__pair"},ut={class:"smtp-template-row"},dt={class:"smtp-dialog-hint"},mt={class:"smtp-dialog-footer"},ct=ye({__name:"SystemConfigurationPage",props:{request:{type:Function},writable:{type:Boolean},settings:{}},setup(T){const x=T,u=Fe(x.request,x.settings),P=_(),w=_(),f=_(""),m=_(!1),V=u.settings.find(s=>s.key==="mail-smtp"),y=_(!1),d=Ie({host:"",port:587,tls:"STARTTLS",from:"",fromName:"",username:"",password:""});let I="";const K={host:[{required:!0,pattern:/^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$/u,message:t("generated.systemConfigurationPage.smtpHostInvalid"),trigger:"blur"}],port:[{type:"integer",min:1,max:65535,required:!0,message:t("generated.systemConfigurationPage.smtpPortInvalid"),trigger:"change"}],tls:[{required:!0,trigger:"change"}],from:[{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/u,message:t("generated.systemConfigurationPage.smtpFromInvalid"),trigger:"blur"}],fromName:[{max:128,pattern:/^[^\r\n]*$/u,message:t("generated.systemConfigurationPage.smtpFromNameInvalid"),trigger:"blur"}],username:[{max:320,pattern:/^[^\r\n]*$/u,message:t("generated.systemConfigurationPage.smtpUsernameInvalid"),trigger:"blur"}],password:[{validator:(s,a,E)=>E(typeof a=="string"&&a.length<=1024&&(d.username===""?a==="":a!==""||d.username===I)?void 0:new Error(t("generated.systemConfigurationPage.smtpPasswordInvalid"))),trigger:"blur"}]},N=u.settings.find(s=>s.key==="html-preview-origin"),$={origin:[{validator:(s,a,E)=>E(u.validValue(N,a)?void 0:new Error(t("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:O,drafts:F,editingKey:i,savingKey:l,loading:v,beginEdit:L,cancelEdit:Z}=u,J=_(!1),b=H(()=>({origin:F.value.htmlPreviewOrigin})),C=H(()=>u.settings.map(s=>({...s,name:t(s.nameKey),description:t(s.descriptionKey)})));xe(m,s=>{f.value="",s||(d.password="",I="",Z("mail-smtp"))});function M(s){const a=F.value[s];return typeof a=="number"?a:void 0}function W(s){const a=F.value[s];return typeof a=="string"?a:""}function Q(){if(!x.writable||(L("mail-smtp"),i.value!=="mail-smtp"))return;const s=JSON.parse(String(O.value.smtpConfiguration));y.value=Object.keys(s).length>0,Object.assign(d,{host:s.host??"",port:s.port??587,tls:s.tls??"STARTTLS",from:s.from??"",fromName:s.fromName??"",username:s.username??"",password:""}),I=s.username??"",m.value=i.value==="mail-smtp"}async function z(){try{await u.load(),J.value=!0}catch(s){j(s instanceof Error?X(s):t("generated.systemConfigurationPage.unableToLoadSystemConfiguration"),"error",s)}}async function Y(s){if(x.writable){if(f.value="",s==="html-preview-origin")try{await P.value?.validate()}catch{return}if(s==="mail-smtp")if(y.value){try{await w.value?.validate()}catch{return}const a=JSON.stringify({...d});if(!u.validValue(V,a)){f.value=t("generated.systemConfigurationPage.smtpInvalid");return}u.setDraft(s,a)}else{if(O.value.smtpConfiguration!=="{}")try{await De.confirm(t("generated.systemConfigurationPage.smtpDisableConfirmation"),t("generated.systemConfigurationPage.smtpDisableTitle"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:t("generated.systemConfigurationPage.smtpDisableTitle"),cancelButtonText:t("common.cancel")})}catch(a){if(a==="cancel"||a==="close")return;j(a instanceof Error?X(a):t("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",a);return}if(!m.value||i.value!==s)return;u.setDraft(s,"{}")}try{await u.save(s)&&(s==="mail-smtp"&&(m.value=!1),j(t("generated.systemConfigurationPage.systemConfigurationSaved"),"success"))}catch(a){j(a instanceof Error?X(a):t("generated.systemConfigurationPage.unableToSaveSystemConfiguration"),"error",a)}}}return Me(()=>{z()}),(s,a)=>{const E=me,c=Se,ee=ke,q=ce,B=ue,le=de,oe=Te,_e=Ee,Ce=Ve,ie=ge,he=pe,Pe=fe,we=ve;return ne((g(),S("section",at,[h("div",nt,[o(E,{icon:e(k)("refresh"),loading:e(v)&&J.value,onClick:z,"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.refresh")),1)]),_:1},8,["icon","loading","loading-icon"])]),o(_e,{data:C.value,"row-key":"key"},{default:r(()=>[o(c,{prop:"name",label:e(t)("generated.systemConfigurationPage.setting"),"min-width":"180"},null,8,["label"]),o(c,{prop:"description",label:e(t)("generated.systemConfigurationPage.description"),"min-width":"320"},null,8,["label"]),o(c,{label:e(t)("generated.systemConfigurationPage.value"),"min-width":"180"},{default:r(({row:n})=>[n.type==="number"&&e(i)===n.key?(g(),D(ee,{key:0,"model-value":M(n.field),placeholder:n.placeholderKey===void 0?void 0:e(t)(n.placeholderKey),min:n.min,max:n.max,disabled:e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},{"decrease-icon":r(()=>[o(re,{name:"subtract"})]),"increase-icon":r(()=>[o(re,{name:"plus"})]),_:1},8,["model-value","placeholder","min","max","disabled","onUpdate:modelValue"])):n.type==="number"?(g(),S("span",lt,p(e(O)[n.field]),1)):n.type==="origin"&&e(i)===n.key?(g(),D(le,{key:2,ref_key:"originForm",ref:P,model:b.value,rules:$},{default:r(()=>[o(B,{prop:"origin",class:"origin-setting-form"},{default:r(()=>[o(q,{"model-value":W(n.field),placeholder:e(t)(n.placeholderKey),disabled:e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},null,8,["model-value","placeholder","disabled","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])):n.type==="origin"?(g(),S("span",ot,p(e(O)[n.field]||e(t)("generated.systemConfigurationPage.htmlPreviewCurrentOrigin")),1)):n.type==="json"?(g(),S("span",it,"-")):(g(),D(oe,{key:5,"model-value":e(F)[n.field]===!0,disabled:e(i)!==n.key||!T.writable||e(l)!==null,"onUpdate:modelValue":A=>e(u).setDraft(n.key,A)},null,8,["model-value","disabled","onUpdate:modelValue"]))]),_:1},8,["label"]),o(c,{label:e(t)("generated.systemConfigurationPage.actions"),"min-width":"220"},{default:r(({row:n})=>[e(i)!==n.key||n.type==="json"?(g(),D(E,{key:0,link:"",icon:e(k)("edit"),disabled:!T.writable||e(i)!==null,onClick:A=>n.type==="json"?Q():e(L)(n.key)},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.edit")),1)]),_:1},8,["icon","disabled","onClick"])):(g(),S(G,{key:1},[o(E,{link:"",type:"primary",icon:e(k)("check"),loading:e(l)===n.key,disabled:!T.writable||e(l)!==null,onClick:A=>Y(n.key),"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.save")),1)]),_:1},8,["icon","loading","disabled","onClick","loading-icon"]),o(E,{link:"",icon:e(k)("close"),disabled:e(l)!==null,onClick:A=>e(Z)(n.key)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1},8,["icon","disabled","onClick"])],64))]),_:1},8,["label"])]),_:1},8,["data"]),m.value?(g(),D(Pe,{key:0,onVnodeMounted:e(ae),onVnodeBeforeUnmount:e(te),modelValue:m.value,"onUpdate:modelValue":a[10]||(a[10]=n=>m.value=n),title:e(t)("generated.systemConfigurationPage.smtp"),width:"min(620px, calc(100vw - 32px))","close-on-click-modal":e(l)===null,"close-on-press-escape":e(l)===null,"show-close":e(l)===null,"append-to-body":"","close-icon":e(k)("close")},{footer:r(()=>[h("div",mt,[o(E,{disabled:e(l)!==null,onClick:a[8]||(a[8]=n=>m.value=!1)},{default:r(()=>[U(p(e(t)("common.cancel")),1)]),_:1},8,["disabled"]),o(E,{type:"primary",loading:e(l)==="mail-smtp",onClick:a[9]||(a[9]=n=>Y("mail-smtp")),"loading-icon":e(k)("loading-action")},{default:r(()=>[U(p(e(t)("generated.systemConfigurationPage.save")),1)]),_:1},8,["loading","loading-icon"])])]),default:r(()=>[h("div",st,[h("span",null,p(e(t)("generated.systemConfigurationPage.smtpEnable")),1),o(oe,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=n=>y.value=n),disabled:e(l)!==null,"aria-label":e(t)("generated.systemConfigurationPage.smtpEnable")},null,8,["modelValue","disabled","aria-label"])]),y.value?(g(),D(le,{key:0,ref_key:"smtpForm",ref:w,model:d,rules:K,"label-position":"top",class:"smtp-form"},{default:r(()=>[f.value?(g(),D(Ce,{key:0,title:f.value,type:"error",closable:!1},null,8,["title"])):R("",!0),o(B,{label:e(t)("generated.systemConfigurationPage.smtpHost"),prop:"host"},{default:r(()=>[o(q,{modelValue:d.host,"onUpdate:modelValue":a[1]||(a[1]=n=>d.host=n),maxlength:"253",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),h("div",rt,[o(B,{label:e(t)("generated.systemConfigurationPage.smtpPort"),prop:"port"},{default:r(()=>[o(ee,{modelValue:d.port,"onUpdate:modelValue":a[2]||(a[2]=n=>d.port=n),min:1,max:65535,controls:!1,disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpTls"),prop:"tls"},{default:r(()=>[o(he,{modelValue:d.tls,"onUpdate:modelValue":a[3]||(a[3]=n=>d.tls=n),disabled:e(l)!==null,"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:r(()=>[o(ie,{label:"STARTTLS",value:"STARTTLS"}),o(ie,{label:"TLS",value:"TLS"})]),_:1},8,["modelValue","disabled","clear-icon","suffix-icon"])]),_:1},8,["label"])]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpFrom"),prop:"from"},{default:r(()=>[o(q,{modelValue:d.from,"onUpdate:modelValue":a[4]||(a[4]=n=>d.from=n),maxlength:"320",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpFromName"),prop:"fromName"},{default:r(()=>[o(q,{modelValue:d.fromName,"onUpdate:modelValue":a[5]||(a[5]=n=>d.fromName=n),maxlength:"128",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpUsername"),prop:"username"},{default:r(()=>[o(q,{modelValue:d.username,"onUpdate:modelValue":a[6]||(a[6]=n=>d.username=n),maxlength:"320",autocomplete:"off",disabled:e(l)!==null},null,8,["modelValue","disabled"])]),_:1},8,["label"]),o(B,{label:e(t)("generated.systemConfigurationPage.smtpPassword"),prop:"password"},{default:r(()=>[o(q,{modelValue:d.password,"onUpdate:modelValue":a[7]||(a[7]=n=>d.password=n),type:"password",maxlength:"1024",autocomplete:"new-password",placeholder:e(I)===d.username&&e(I)?e(t)("generated.systemConfigurationPage.smtpPasswordKeep"):void 0,disabled:e(l)!==null},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])):R("",!0),h("div",ut,[o(tt,{request:T.request,writable:T.writable},null,8,["request","writable"])]),h("p",dt,p(e(t)("generated.systemConfigurationPage.smtpDialogHint")),1)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close","close-icon"])):R("",!0)])),[[we,e(v)&&!J.value]])}}}),Ft=be(ct,[["__scopeId","data-v-2486cd93"]]);export{Ft as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as a}from"./index-
|
|
1
|
+
import{E as a}from"./index-BUChenZd.js";import{m as g,o as c,n as f,W as e,X as o,L as t,t as s,q as i,K as l,Y as d,J as C,a1 as y,N as h,_ as v}from"./index-nTDMEpry.js";/* empty css */import"./use-form-common-props-14CxDqe1.js";const x={class:"system-information"},N=["aria-label"],b=["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(),f("section",x,[e("div",{class:"system-brand","aria-label":t(s)("generated.settingsContent.myAgentRoamVersion")},[e("img",{src:n.logoUrl,alt:""},null,8,b),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,N),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,[i(t(a),{effect:"light",type:"success"},{default:l(()=>[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,[i(t(a),{type:n.authenticated?"success":"info",effect:"light"},{default:l(()=>[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,[i(t(a),{type:n.onlineNodeCount>0?"success":"info",effect:"light"},{default:l(()=>[d(o(n.onlineNodeCount)+"/"+o(n.nodeCount),1)]),_:1},8,["type"])])])])],8,V),n.isAdmin&&n.extension?(c(),C(y(n.extension),{key:0,embedded:"",request:n.request,onImported:r[0]||(r[0]=q=>m("extensionChanged"))},null,40,["request"])):h("",!0)]))}}),A=v(B,[["__scopeId","data-v-0ef02bfd"]]);export{A as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as De,m as Tn,Q as Pn,bw as An,T as On,w as In,ab as Ms,ac as Nn,U as Hn,aY as Wn,o as Pt,n as ci,W as ut,L as At,X as Ot,N as Ts,J as zn,as as Fn,a6 as Ps,q as di,Y as ui,a_ as $n,f as _i,bx as Un,_ as Kn}from"./index-
|
|
1
|
+
import{t as De,m as Tn,Q as Pn,bw as An,T as On,w as In,ab as Ms,ac as Nn,U as Hn,aY as Wn,o as Pt,n as ci,W as ut,L as At,X as Ot,N as Ts,J as zn,as as Fn,a6 as Ps,q as di,Y as ui,a_ as $n,f as _i,bx as Un,_ as Kn}from"./index-nTDMEpry.js";import{M as fi}from"./MarIcon-Dd8tXkD_.js";import{o as qn}from"./HtmlPreviewFrame-mY307Dbd.js";import{T as Vn}from"./WorkbenchPage-C83XJx9F.js";import"./FilePreviewLoading-BjTq_2_N.js";import"./use-form-common-props-14CxDqe1.js";import"./el-scrollbar-8NwBVSDB.js";import"./el-input-mQZYBrBd.js";import"./mobile-dialog-return-service-CIBrJ7zu.js";import"./BusyIndicator-C6r16yaq.js";import"./uuid-BmNSYLtZ.js";import"./el-form-item-AGycjXtk.js";import"./el-switch-DULOibHs.js";import"./message-box-service-C8q7blg8.js";import"./error-presentation-p-88bGPc.js";import"./file-presentation-Cm7tx53N.js";import"./time-presentation-BTxYwtG_.js";import"./conversation-history-Dw0OeuDj.js";import"./workbench-presentation-DugF7jav.js";import"./workbench-composer-interaction-controller-CN4P4zHb.js";import"./el-checkbox-C4UiMIuI.js";import"./last-DXTTfs9a.js";import"./el-radio-DNKBZo6a.js";/* empty css *//* empty css */import"./el-select-DmxIIQ48.js";import"./vnode-OkN1IbUg.js";import"./index-BUChenZd.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BaZQhZyx.js";/* empty css */import"./runner-presentation-B_WL-hOq.js";import"./workbench-live-service-CRqfYcR6.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-DUAL5oy-.js";import"./oauth-callback-C9RxE_FL.js";import"./el-alert-DmchhQax.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-HXeiDVQu.js";import"./catalog-page-service-CrvIMHp_.js";import"./ManagementPagination-Drcpb4iN.js";import"./el-date-picker-B7VBZfx-.js";import"./index-CNUoaheD.js";import"./el-table-column-BaC9TraJ.js";import"./merge-KnF4FXAE.js";import"./isArrayLikeObject-B10d2_nL.js";import"./advancedFormat-aUniOYgq.js";import"./union-BA_h4K9S.js";import"./el-input-number-Dpw9CJQ1.js";import"./enterprise-management-service-ByETEgFZ.js";import"./NodeDetailsDialogs-BKKAFZNh.js";import"./el-descriptions-Bpv9MSpN.js";import"./EnvironmentSecretManager-Gj1X-Z7C.js";import"./management-url-service-Cj3pOACA.js";var Yn=2,Xn=1,jn=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(Yn,Math.floor(u/e.css.cell.width)),rows:Math.max(Xn,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]],Gn=[[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]],Q;function Jn(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 Zn=class{constructor(){if(this.version="6",!Q){Q=new Uint8Array(65536),Q.fill(1),Q[0]=0,Q.fill(0,1,32),Q.fill(0,127,160),Q.fill(2,4352,4448),Q[9001]=2,Q[9002]=2,Q.fill(2,11904,42192),Q[12351]=1,Q.fill(2,44032,55204),Q.fill(2,63744,64256),Q.fill(2,65040,65050),Q.fill(2,65072,65136),Q.fill(2,65280,65377),Q.fill(2,65504,65511);for(let t=0;t<pi.length;++t)Q.fill(0,pi[t][0],pi[t][1]+1)}}wcwidth(t){return t<32?0:t<127?1:t<65536?Q[t]:Jn(t,Gn)?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=Jt.extractWidth(i);n===0?r=!1:n>s&&(s=n)}return Jt.createPropertyValue(0,s,r)}},Qn=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
|
|