@myagentroam/server 0.13.42 → 0.13.43

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.
Files changed (330) hide show
  1. package/node_modules/@myagentroam/protocol/package.json +1 -1
  2. package/node_modules/@myagentroam/server-core/package.json +2 -2
  3. package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
  4. package/package.json +5 -5
  5. package/web/assets/{AuditManagementPage-BYzw06Au.js → AuditManagementPage-CKSOWZCn.js} +1 -1
  6. package/web/assets/{BusyIndicator-BSxmme_C.js → BusyIndicator-xe3P4gjH.js} +1 -1
  7. package/web/assets/{CodeFileEditor-BzlBgLRK.js → CodeFileEditor-Ba6Zmomw.js} +3 -3
  8. package/web/assets/{ConversationTemplateManagementPage-Ciyf9SKk.js → ConversationTemplateManagementPage-BCGKYECC.js} +1 -1
  9. package/web/assets/{ConversationTemplateManagementPage-C4qZYrfD.js → ConversationTemplateManagementPage-CxhtEWAn.js} +1 -1
  10. package/web/assets/{EnterpriseUserManagementPage-D6HfDFlW.js → EnterpriseUserManagementPage-DSQMhmtq.js} +1 -1
  11. package/web/assets/{EnvironmentSecretManager-D0RSuzOg.js → EnvironmentSecretManager-CrcEHtvm.js} +1 -1
  12. package/web/assets/{FilePreviewLoading-CkXYZr2D.js → FilePreviewLoading-DRnSA8fU.js} +1 -1
  13. package/web/assets/{HtmlPreviewFrame-Odxfdit6.js → HtmlPreviewFrame-CgH5nr6g.js} +3 -3
  14. package/web/assets/{LicenseManagementPage-GawhNvtK.js → LicenseManagementPage-CsZ8FzUP.js} +1 -1
  15. package/web/assets/{ManagementPagination-BVSV9Ych.js → ManagementPagination-Y85Jq9j9.js} +1 -1
  16. package/web/assets/{MarAgentModelManagementPage-BK8JhVIo.js → MarAgentModelManagementPage-mr8IR7WR.js} +1 -1
  17. package/web/assets/{MarAgentModelManagementPage-_bv36Cld.js → MarAgentModelManagementPage-rr_fJy9z.js} +1 -1
  18. package/web/assets/{MarIcon-CzWeIUMs.js → MarIcon-ICq2p8Ot.js} +1 -1
  19. package/web/assets/{MarkdownFilePreview-CTOXs-y9.js → MarkdownFilePreview-BPRRhQsA.js} +2 -2
  20. package/web/assets/{McpDetailsDialog-7htYvchv.js → McpDetailsDialog-CI5BUxyf.js} +1 -1
  21. package/web/assets/{McpSourceManagementPage-DhXwVG3s.js → McpSourceManagementPage-DexBqgYS.js} +1 -1
  22. package/web/assets/{McpSourceManagementPage-VO0nKThP.js → McpSourceManagementPage-kGljQSNy.js} +1 -1
  23. package/web/assets/{NodeDetailsDialogs-BXTPUZF3.js → NodeDetailsDialogs-BrWPvSnj.js} +1 -1
  24. package/web/assets/NodeManagementPage-F2aeLFvj.js +1 -0
  25. package/web/assets/NodeManagementPage-ncc9WrkH.js +1 -0
  26. package/web/assets/{OAuthManagementPage-D6HY7up7.js → OAuthManagementPage-CTZJnXAV.js} +1 -1
  27. package/web/assets/{OrganizationManagementPage-Dfch7gnp.js → OrganizationManagementPage-BrQ_JgZA.js} +1 -1
  28. package/web/assets/{RemoteDesktopPage-DS1jc-WC.js → RemoteDesktopPage-Dt-j73R1.js} +1 -1
  29. package/web/assets/{ResourceManagementPanel-H2IGfzmS.js → ResourceManagementPanel-4VDYSeEv.js} +1 -1
  30. package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-CGTNiqbg.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-rPUQXM-6.js} +1 -1
  31. package/web/assets/SecretManagementPage-By-GuAwI.js +1 -0
  32. package/web/assets/{SecretManagementPage-Cze4kbLP.js → SecretManagementPage-Ckol2sas.js} +1 -1
  33. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-DdhSA1gx.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-6i3qtE3d.js} +1 -1
  34. package/web/assets/{SessionSharePage-BgQOqH2g.js → SessionSharePage-DUqndycX.js} +2 -2
  35. package/web/assets/{SettingsContent-ChScVOYi.js → SettingsContent-DcWw-Zxz.js} +1 -1
  36. package/web/assets/{SettingsContent-Bv9587ZN.js → SettingsContent-Dvnnpld5.js} +1 -1
  37. package/web/assets/{SkillCenterPage-KOVm_sCY.js → SkillCenterPage-Ehaoj-PG.js} +1 -1
  38. package/web/assets/SkillCenterPage-NkrCR65_.js +1 -0
  39. package/web/assets/{SkillDetailsDialog-Dkwhe8V1.js → SkillDetailsDialog-C1QYwMcL.js} +1 -1
  40. package/web/assets/{SkillSourceManagementPage-CyhHH6IF.js → SkillSourceManagementPage-CjyY_LL5.js} +1 -1
  41. package/web/assets/{SkillSourceManagementPage-DyOvjIxl.js → SkillSourceManagementPage-KMojyBho.js} +1 -1
  42. package/web/assets/{StandaloneFilePreviewPage-DS11w8tw.js → StandaloneFilePreviewPage-DfgFGNfI.js} +1 -1
  43. package/web/assets/{SystemConfigurationPage-DajswjDJ.js → SystemConfigurationPage-CglpERvB.js} +1 -1
  44. package/web/assets/SystemConfigurationPage-Ey6Tt5l8.js +1 -0
  45. package/web/assets/{SystemInformationPage-oWmPiMCK.js → SystemInformationPage-DjtcSVec.js} +1 -1
  46. package/web/assets/{TerminalTabView-BvlZoeHm.js → TerminalTabView-SHGbgb9v.js} +1 -1
  47. package/web/assets/{WorkbenchPage-BKpxRHUd.js → WorkbenchPage-DiD3CbLd.js} +4 -4
  48. package/web/assets/WorkspaceManagementPage-ChPvFtbO.js +1 -0
  49. package/web/assets/WorkspaceManagementPage-DOkN2EK7.js +1 -0
  50. package/web/assets/{_baseIteratee-D8zr5J8j.js → _baseIteratee-BLtWZfy-.js} +1 -1
  51. package/web/assets/{abnfDiagram-VCTEODGH-DYU0oVkk.js → abnfDiagram-VCTEODGH-C7CpX9ZM.js} +1 -1
  52. package/web/assets/{advancedFormat-BKm3qsIp.js → advancedFormat-C1fRaiNU.js} +1 -1
  53. package/web/assets/{arc-DOZIY8aD.js → arc-BWHkRU26.js} +1 -1
  54. package/web/assets/{architectureDiagram-5GKGNRK7-rbIVTI1a.js → architectureDiagram-5GKGNRK7-Ccazxv5J.js} +1 -1
  55. package/web/assets/{blockDiagram-OSKFZWR5-DKVJ52Oc.js → blockDiagram-OSKFZWR5-Domwe9cC.js} +1 -1
  56. package/web/assets/{c4Diagram-7LVT6UL2-D3DQpa2R.js → c4Diagram-7LVT6UL2-DX50WO-c.js} +1 -1
  57. package/web/assets/{catalog-ownership-service-2PFHr7cy.js → catalog-ownership-service-BPqMExyq.js} +1 -1
  58. package/web/assets/{catalog-page-service-i8hATwsi.js → catalog-page-service-Co_SnlgM.js} +1 -1
  59. package/web/assets/channel-B8R8HF7T.js +1 -0
  60. package/web/assets/{chunk-2Q5K7J3B-C9c91ukP.js → chunk-2Q5K7J3B-C7QpUixC.js} +1 -1
  61. package/web/assets/{chunk-5VM5RSS4-DxuTco1j.js → chunk-5VM5RSS4-C-F34jM4.js} +1 -1
  62. package/web/assets/{chunk-F27PBJKO-Bx7gFAXD.js → chunk-F27PBJKO-Cq8SN72l.js} +1 -1
  63. package/web/assets/{chunk-HLEWEB6X-DZz7LUnw.js → chunk-HLEWEB6X-CG_d_8X6.js} +1 -1
  64. package/web/assets/{chunk-JWPE2WC7-CpoI4ivS.js → chunk-JWPE2WC7-BtDtrNTW.js} +1 -1
  65. package/web/assets/{chunk-POPQ4Y6H-CXr6_kt3.js → chunk-POPQ4Y6H-C6sLG4ju.js} +1 -1
  66. package/web/assets/{chunk-SVP7TREG-UWmsNxKy.js → chunk-SVP7TREG-Bvnl4Nu0.js} +1 -1
  67. package/web/assets/{chunk-XXDRQBXY-CKEYCNET.js → chunk-XXDRQBXY-D0J5SDrL.js} +1 -1
  68. package/web/assets/{chunk-ZLD2IHE6-BMy13ymU.js → chunk-ZLD2IHE6-tIobpxdi.js} +1 -1
  69. package/web/assets/classDiagram-CYGNFDIV-DibIbZoP.js +1 -0
  70. package/web/assets/classDiagram-v2-TLXNO2FR-DibIbZoP.js +1 -0
  71. package/web/assets/{conversation-history-BRCu6PtW.js → conversation-history-oJGFEIsi.js} +1 -1
  72. package/web/assets/{cose-bilkent-JH36ORCC-BtgVLwpt.js → cose-bilkent-JH36ORCC-BP1KR2ae.js} +1 -1
  73. package/web/assets/{cynefin-OW5HDTMX-CfEWO-Nn.js → cynefin-OW5HDTMX-BNNnytL_.js} +1 -1
  74. package/web/assets/{cynefinDiagram-5FMLGOSQ-Bv0DzRZp.js → cynefinDiagram-5FMLGOSQ-DuNt4vpR.js} +1 -1
  75. package/web/assets/{dagre-OS7QT2EB-CAkiO0or.js → dagre-OS7QT2EB-BW7N-fT2.js} +1 -1
  76. package/web/assets/{diagram-S7CK7UJ4-DKuP0ZcM.js → diagram-S7CK7UJ4-Do8_np1C.js} +1 -1
  77. package/web/assets/{diagram-UQ7AKVKN-B7PXTtZW.js → diagram-UQ7AKVKN-BUvmerUh.js} +1 -1
  78. package/web/assets/{diagram-VSXAHHWV-BnR0S5It.js → diagram-VSXAHHWV-DC6rQtH9.js} +1 -1
  79. package/web/assets/{diagram-VX7I27RA-1ns4b_Ly.js → diagram-VX7I27RA-DHvadcJN.js} +1 -1
  80. package/web/assets/{diagram-Z3DM3KII-b6dkT3D7.js → diagram-Z3DM3KII-DarOKcBs.js} +1 -1
  81. package/web/assets/{ebnfDiagram-PWID7BFC-D6A8AQlZ.js → ebnfDiagram-PWID7BFC-D52Kfjzc.js} +1 -1
  82. package/web/assets/{el-alert-CxrwoFMm.js → el-alert-CYdaPIFw.js} +1 -1
  83. package/web/assets/{el-cascader-CUsS5sQC.js → el-cascader-BWdsB4rG.js} +1 -1
  84. package/web/assets/{el-checkbox-BEuU-IAG.js → el-checkbox-p37rd1QD.js} +1 -1
  85. package/web/assets/{el-date-picker-C2lmvLfz.js → el-date-picker-BTtxJHNN.js} +1 -1
  86. package/web/assets/{el-descriptions-DqEkudu8.js → el-descriptions-Dm7xFX_I.js} +1 -1
  87. package/web/assets/{el-form-item-BhdvtBoj.js → el-form-item-LbkuEpcF.js} +1 -1
  88. package/web/assets/{el-input-number-BHe_RF5E.js → el-input-number-DoBt11o0.js} +1 -1
  89. package/web/assets/{el-input-D2mXGScU.js → el-input-sXkJlh-g.js} +1 -1
  90. package/web/assets/{el-radio-CCg-CVNI.js → el-radio-se_8_kay.js} +1 -1
  91. package/web/assets/{el-scrollbar-DEuLh689.js → el-scrollbar-D-InNODH.js} +1 -1
  92. package/web/assets/{el-select-DpvzF6za.js → el-select-Ij7BldOR.js} +1 -1
  93. package/web/assets/{el-switch-CG3fA43f.js → el-switch-DjKORw6c.js} +1 -1
  94. package/web/assets/{el-tab-pane-Da_Qe98x.js → el-tab-pane-lGrszWbr.js} +1 -1
  95. package/web/assets/{el-table-column-BuHeqmjf.js → el-table-column-s3GZz9dF.js} +1 -1
  96. package/web/assets/{enterprise-management-service-Dq8hjOQO.js → enterprise-management-service-BgLU9ku4.js} +1 -1
  97. package/web/assets/{erDiagram-2YWLMYGG-BhUFTXg1.js → erDiagram-2YWLMYGG-CwaXII9A.js} +1 -1
  98. package/web/assets/{error-presentation-DcEn2OhQ.js → error-presentation-DTfe137d.js} +1 -1
  99. package/web/assets/{flowDiagram-T62WH6J4-apNT2Grp.js → flowDiagram-T62WH6J4-C9nbN4rn.js} +1 -1
  100. package/web/assets/{ganttDiagram-EL5Y4UJY-B9GXN1na.js → ganttDiagram-EL5Y4UJY-ZWcl02qK.js} +1 -1
  101. package/web/assets/{gitGraphDiagram-WWUBYQGX-wSTPdk0P.js → gitGraphDiagram-WWUBYQGX-EqrWLazR.js} +1 -1
  102. package/web/assets/{hosted-conversation-template-client-zjTbBHeH.js → hosted-conversation-template-client-CSWTot4J.js} +1 -1
  103. package/web/assets/{index-CPhahzD2.js → index-B-SnYEp0.js} +1 -1
  104. package/web/assets/{index-BOvaB0C-.js → index-BDfU2iiv.js} +1 -1
  105. package/web/assets/{index-pmVe4zB-.js → index-BHmAyuaC.js} +1 -1
  106. package/web/assets/{index-c2dfB1bI.js → index-BL3XZg4A.js} +1 -1
  107. package/web/assets/{index-BGmp6-3j.js → index-BQl91EUk.js} +3 -3
  108. package/web/assets/{index-D63MCAbl.js → index-BTyYD5rc.js} +1 -1
  109. package/web/assets/{index-BDq_pbKu.js → index-BY6eM-n3.js} +1 -1
  110. package/web/assets/{index-CANfEI7O.js → index-BZuMtnt-.js} +1 -1
  111. package/web/assets/{index-BdNxGQUO.js → index-B_nNb_5x.js} +1 -1
  112. package/web/assets/{index-DQVv2C1C.js → index-BhQP83Sf.js} +1 -1
  113. package/web/assets/{index-B-X5u8cI.js → index-BlCUXcGl.js} +1 -1
  114. package/web/assets/{index-Uo6Tsm01.js → index-Bmp1JWdR.js} +1 -1
  115. package/web/assets/{index-1NvwgnKS.js → index-BriGTVMr.js} +1 -1
  116. package/web/assets/{index-DzsrXSGW.js → index-CVMAFcxJ.js} +1 -1
  117. package/web/assets/{index-dFtUFiQL.js → index-CYFFCuEz.js} +1 -1
  118. package/web/assets/{index-CNjxcC1r.js → index-CZGL8KN8.js} +1 -1
  119. package/web/assets/{index-D0SA9962.js → index-CcoM36R9.js} +1 -1
  120. package/web/assets/{index-_AwytY44.js → index-Ccy0FSb7.js} +1 -1
  121. package/web/assets/{index-BmWtKtLc.js → index-CtdnVn_R.js} +1 -1
  122. package/web/assets/{index-B-XXHvKc.js → index-D8_bMlL7.js} +1 -1
  123. package/web/assets/{index-CQeS2za-.js → index-DSbtzgRR.js} +1 -1
  124. package/web/assets/{index-CsGvE9BH.js → index-DeV80pxs.js} +1 -1
  125. package/web/assets/{index-D6fig5_R.js → index-DqNuUqfp.js} +1 -1
  126. package/web/assets/{index-C1nRANxM.js → index-_0TpEBwB.js} +1 -1
  127. package/web/assets/{index-BMheCXoB.js → index-b1qpa5Ec.js} +1 -1
  128. package/web/assets/{index-Ba6iK4d8.js → index-e0ZMpJq3.js} +1 -1
  129. package/web/assets/{index-DnXI5HAq.js → index-m7vIiBHI.js} +1 -1
  130. package/web/assets/{index-u9HkIAxq.js → index-naTDKVAc.js} +1 -1
  131. package/web/assets/{index-_7mAA2sQ.js → index-oscsnh0g.js} +1 -1
  132. package/web/assets/infoDiagram-FKFFQAWI-CB82xvaH.js +2 -0
  133. package/web/assets/{isArrayLikeObject-CXncc20u.js → isArrayLikeObject-CxfHIq3H.js} +1 -1
  134. package/web/assets/{ishikawaDiagram-5VMMS53U-z8pIpqd8.js → ishikawaDiagram-5VMMS53U-n-fxvmGE.js} +1 -1
  135. package/web/assets/{journeyDiagram-EYS64GPL-CMVTVfyi.js → journeyDiagram-EYS64GPL-CvOR6PkI.js} +1 -1
  136. package/web/assets/{kanban-definition-UXKFOSKX-Q677mqlK.js → kanban-definition-UXKFOSKX-Pd-RWd8v.js} +1 -1
  137. package/web/assets/{layout-XEvgbYbU.js → layout-Bafn6KyT.js} +1 -1
  138. package/web/assets/{linear-CLp5kAj1.js → linear-DKxcsNMP.js} +1 -1
  139. package/web/assets/{management-url-service-DXxizFTs.js → management-url-service-CKGsmd3N.js} +1 -1
  140. package/web/assets/{mcp-center-service-LqlQKtfu.js → mcp-center-service-xBXLOfeq.js} +1 -1
  141. package/web/assets/{merge-R2FU6J9H.js → merge-CtOMpGAk.js} +1 -1
  142. package/web/assets/{mermaid.core-CZhNX8Zt.js → mermaid.core-BefpKbQ_.js} +5 -5
  143. package/web/assets/{message-box-service-jajIaNSh.js → message-box-service-qfhQeAS6.js} +1 -1
  144. package/web/assets/{mindmap-definition-THT77NOG--j8u9wCj.js → mindmap-definition-THT77NOG-BAMLKZLT.js} +1 -1
  145. package/web/assets/{mobile-dialog-return-service-C1r4xnjj.js → mobile-dialog-return-service-Bg2LBZi3.js} +1 -1
  146. package/web/assets/{oauth-callback-CGryxaWm.js → oauth-callback-BlsSCm82.js} +1 -1
  147. package/web/assets/{pegDiagram-XKGWAZYB--yOZBFXv.js → pegDiagram-XKGWAZYB-B3oWqFzM.js} +1 -1
  148. package/web/assets/{pieDiagram-E7YTZNPT-FFY5btUN.js → pieDiagram-E7YTZNPT-CwWqQx9I.js} +1 -1
  149. package/web/assets/{quadrantDiagram-AXDQQJYC-DyVGryxX.js → quadrantDiagram-AXDQQJYC-CelsJHeG.js} +1 -1
  150. package/web/assets/{railroadDiagram-O6MQD6OU-B1PGTNY0.js → railroadDiagram-O6MQD6OU-UIPzBB5a.js} +1 -1
  151. package/web/assets/{requirementDiagram-IS5BZ75X-CNwUXsGi.js → requirementDiagram-IS5BZ75X-jr6lrR3F.js} +1 -1
  152. package/web/assets/{runner-presentation-2CguWXC3.js → runner-presentation-CN2oRuIk.js} +1 -1
  153. package/web/assets/{sankeyDiagram-P5KCCOFB-C6tk5X0R.js → sankeyDiagram-P5KCCOFB-B8peWUvI.js} +1 -1
  154. package/web/assets/{sequenceDiagram-WJ2MYXX4-ByeyRijR.js → sequenceDiagram-WJ2MYXX4-DzEdkB8P.js} +1 -1
  155. package/web/assets/{session-share-client-service-4fewpE0b.js → session-share-client-service-89bWy-Z3.js} +1 -1
  156. package/web/assets/{sizeCapture-INFHLROL-C7mc8LN4.js → sizeCapture-INFHLROL-DTsu8xwQ.js} +1 -1
  157. package/web/assets/{stateDiagram-XQSTLZYL-BKAuWGmK.js → stateDiagram-XQSTLZYL-ifmCtpCl.js} +1 -1
  158. package/web/assets/stateDiagram-v2-IH3M54BS-Boh3Sy_H.js +1 -0
  159. package/web/assets/{swimlanes-V6O3JKXN-BTi_Dsij.js → swimlanes-V6O3JKXN-D-Lj7VPx.js} +1 -1
  160. package/web/assets/swimlanesDiagram-JKAHXJPX-O_ZowJ6N.js +8 -0
  161. package/web/assets/{time-presentation-DzhQEVDq.js → time-presentation-e-lZt0sB.js} +1 -1
  162. package/web/assets/{timeline-definition-24CTP7MA-CaiTysV3.js → timeline-definition-24CTP7MA-BvNH9HMF.js} +1 -1
  163. package/web/assets/{union-Ba2wuAOp.js → union-Cyh-UcHd.js} +1 -1
  164. package/web/assets/{use-form-common-props-CBVJDsZ-.js → use-form-common-props-BToB4iwu.js} +1 -1
  165. package/web/assets/{use-wheel-BU33IvZU.js → use-wheel-CT3KKFiS.js} +1 -1
  166. package/web/assets/{vennDiagram-4TSXK5OY-IRRNFBfM.js → vennDiagram-4TSXK5OY-dz7nk5_k.js} +1 -1
  167. package/web/assets/{vnode-CmxSxPMu.js → vnode-DHbRwWcQ.js} +1 -1
  168. package/web/assets/{wardleyDiagram-VM6X3IG4-kEp9N5Z3.js → wardleyDiagram-VM6X3IG4-THdXfVte.js} +1 -1
  169. package/web/assets/{workbench-composer-interaction-controller-BHX6zPoh.js → workbench-composer-interaction-controller-Cm7ikzLX.js} +1 -1
  170. package/web/assets/workbench-composer-interaction-controller-CrEB_LMi.css +1 -0
  171. package/web/assets/{workbench-live-service-Ceu3yprJ.js → workbench-live-service-BicQ4etU.js} +1 -1
  172. package/web/assets/{workbench-presentation-DPIhtkeQ.js → workbench-presentation-CpYlSOG0.js} +1 -1
  173. package/web/assets/{xychartDiagram-S5SC5T6Z-CniVZj2V.js → xychartDiagram-S5SC5T6Z-CogLHjcq.js} +1 -1
  174. package/web/docs/404.html +1 -1
  175. package/web/docs/administration/account.html +2 -2
  176. package/web/docs/administration/audit.html +2 -2
  177. package/web/docs/administration/conversation-templates.html +2 -2
  178. package/web/docs/administration/email-notifications.html +2 -2
  179. package/web/docs/administration/license.html +2 -2
  180. package/web/docs/administration/nodes-workspaces.html +2 -2
  181. package/web/docs/administration/oauth.html +2 -2
  182. package/web/docs/administration/secrets.html +2 -2
  183. package/web/docs/administration/template-workspace-maintenance.html +2 -2
  184. package/web/docs/administration/users-organizations.html +2 -2
  185. package/web/docs/assets/{app.B993MtJ_.js → app.BKw4zuIJ.js} +1 -1
  186. package/web/docs/assets/chunks/{@localSearchIndexen-US.BIiFcGep.js → @localSearchIndexen-US.CynoUCxx.js} +1 -1
  187. package/web/docs/assets/chunks/{@localSearchIndexroot.DQmKT7cZ.js → @localSearchIndexroot.DAjpeuRJ.js} +1 -1
  188. package/web/docs/assets/chunks/{VPLocalSearchBox.Gazpu9OX.js → VPLocalSearchBox.LsO1DQNW.js} +1 -1
  189. package/web/docs/assets/chunks/{theme.Cw6gE-RS.js → theme.D9KvW40v.js} +2 -2
  190. package/web/docs/concepts/architecture.html +2 -2
  191. package/web/docs/concepts/data-and-security.html +2 -2
  192. package/web/docs/concepts/files-git-terminal.html +2 -2
  193. package/web/docs/concepts/node-and-workspace.html +2 -2
  194. package/web/docs/concepts/permissions-and-sharing.html +2 -2
  195. package/web/docs/concepts/runner-control.html +2 -2
  196. package/web/docs/concepts/secrets.html +2 -2
  197. package/web/docs/concepts/session-run-turn.html +2 -2
  198. package/web/docs/deployment/backup-restore.html +2 -2
  199. package/web/docs/deployment/network.html +2 -2
  200. package/web/docs/deployment/node-installation.html +2 -2
  201. package/web/docs/deployment/node-linux.html +2 -2
  202. package/web/docs/deployment/node-macos.html +2 -2
  203. package/web/docs/deployment/node-windows.html +2 -2
  204. package/web/docs/deployment/production.html +2 -2
  205. package/web/docs/deployment/security-checklist.html +2 -2
  206. package/web/docs/deployment/upgrade.html +2 -2
  207. package/web/docs/en-US/administration/account.html +2 -2
  208. package/web/docs/en-US/administration/audit.html +2 -2
  209. package/web/docs/en-US/administration/conversation-templates.html +2 -2
  210. package/web/docs/en-US/administration/email-notifications.html +2 -2
  211. package/web/docs/en-US/administration/license.html +2 -2
  212. package/web/docs/en-US/administration/nodes-workspaces.html +2 -2
  213. package/web/docs/en-US/administration/oauth.html +2 -2
  214. package/web/docs/en-US/administration/secrets.html +2 -2
  215. package/web/docs/en-US/administration/template-workspace-maintenance.html +2 -2
  216. package/web/docs/en-US/administration/users-organizations.html +2 -2
  217. package/web/docs/en-US/concepts/architecture.html +2 -2
  218. package/web/docs/en-US/concepts/data-and-security.html +2 -2
  219. package/web/docs/en-US/concepts/files-git-terminal.html +2 -2
  220. package/web/docs/en-US/concepts/node-and-workspace.html +2 -2
  221. package/web/docs/en-US/concepts/permissions-and-sharing.html +2 -2
  222. package/web/docs/en-US/concepts/runner-control.html +2 -2
  223. package/web/docs/en-US/concepts/secrets.html +2 -2
  224. package/web/docs/en-US/concepts/session-run-turn.html +2 -2
  225. package/web/docs/en-US/deployment/backup-restore.html +2 -2
  226. package/web/docs/en-US/deployment/network.html +2 -2
  227. package/web/docs/en-US/deployment/node-installation.html +2 -2
  228. package/web/docs/en-US/deployment/node-linux.html +2 -2
  229. package/web/docs/en-US/deployment/node-macos.html +2 -2
  230. package/web/docs/en-US/deployment/node-windows.html +2 -2
  231. package/web/docs/en-US/deployment/production.html +2 -2
  232. package/web/docs/en-US/deployment/security-checklist.html +2 -2
  233. package/web/docs/en-US/deployment/upgrade.html +2 -2
  234. package/web/docs/en-US/getting-started/connect-node.html +2 -2
  235. package/web/docs/en-US/getting-started/first-agent-session.html +2 -2
  236. package/web/docs/en-US/getting-started/first-login.html +2 -2
  237. package/web/docs/en-US/getting-started/next-steps.html +2 -2
  238. package/web/docs/en-US/getting-started/npm-quick-start.html +2 -2
  239. package/web/docs/en-US/getting-started/overview.html +2 -2
  240. package/web/docs/en-US/getting-started/prerequisites.html +2 -2
  241. package/web/docs/en-US/getting-started/register-workspace.html +2 -2
  242. package/web/docs/en-US/getting-started/server-installation.html +2 -2
  243. package/web/docs/en-US/operations/marctl.html +2 -2
  244. package/web/docs/en-US/reference/configuration.html +2 -2
  245. package/web/docs/en-US/reference/keyboard-shortcuts.html +2 -2
  246. package/web/docs/en-US/reference/limits.html +2 -2
  247. package/web/docs/en-US/reference/ports-paths-data.html +2 -2
  248. package/web/docs/en-US/reference/status-and-errors.html +2 -2
  249. package/web/docs/en-US/runners/claude-code.html +2 -2
  250. package/web/docs/en-US/runners/codex.html +2 -2
  251. package/web/docs/en-US/runners/mar-agent.html +2 -2
  252. package/web/docs/en-US/runners/opencode.html +2 -2
  253. package/web/docs/en-US/runners/overview.html +2 -2
  254. package/web/docs/en-US/runners/runner-troubleshooting.html +2 -2
  255. package/web/docs/en-US/troubleshooting/node-offline.html +2 -2
  256. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +2 -2
  257. package/web/docs/en-US/troubleshooting/session-run.html +2 -2
  258. package/web/docs/en-US/troubleshooting/terminal.html +2 -2
  259. package/web/docs/en-US/troubleshooting/workspace-files.html +2 -2
  260. package/web/docs/en-US/workbench/composer.html +2 -2
  261. package/web/docs/en-US/workbench/context-and-plan.html +2 -2
  262. package/web/docs/en-US/workbench/conversation.html +2 -2
  263. package/web/docs/en-US/workbench/file-reference-and-attachment.html +2 -2
  264. package/web/docs/en-US/workbench/files.html +2 -2
  265. package/web/docs/en-US/workbench/git-changes.html +2 -2
  266. package/web/docs/en-US/workbench/git-history.html +2 -2
  267. package/web/docs/en-US/workbench/hosted-conversations.html +2 -2
  268. package/web/docs/en-US/workbench/mobile.html +2 -2
  269. package/web/docs/en-US/workbench/navigation.html +2 -2
  270. package/web/docs/en-US/workbench/remote-desktop.html +2 -2
  271. package/web/docs/en-US/workbench/sessions.html +2 -2
  272. package/web/docs/en-US/workbench/skills.html +2 -2
  273. package/web/docs/en-US/workbench/terminal.html +2 -2
  274. package/web/docs/getting-started/connect-node.html +2 -2
  275. package/web/docs/getting-started/first-agent-session.html +2 -2
  276. package/web/docs/getting-started/first-login.html +2 -2
  277. package/web/docs/getting-started/next-steps.html +2 -2
  278. package/web/docs/getting-started/npm-quick-start.html +2 -2
  279. package/web/docs/getting-started/overview.html +2 -2
  280. package/web/docs/getting-started/prerequisites.html +2 -2
  281. package/web/docs/getting-started/register-workspace.html +2 -2
  282. package/web/docs/getting-started/server-installation.html +2 -2
  283. package/web/docs/operations/marctl.html +2 -2
  284. package/web/docs/reference/configuration.html +2 -2
  285. package/web/docs/reference/keyboard-shortcuts.html +2 -2
  286. package/web/docs/reference/limits.html +2 -2
  287. package/web/docs/reference/ports-paths-data.html +2 -2
  288. package/web/docs/reference/status-and-errors.html +2 -2
  289. package/web/docs/runners/claude-code.html +2 -2
  290. package/web/docs/runners/codex.html +2 -2
  291. package/web/docs/runners/mar-agent.html +2 -2
  292. package/web/docs/runners/opencode.html +2 -2
  293. package/web/docs/runners/overview.html +2 -2
  294. package/web/docs/runners/runner-troubleshooting.html +2 -2
  295. package/web/docs/troubleshooting/node-offline.html +2 -2
  296. package/web/docs/troubleshooting/quick-diagnosis.html +2 -2
  297. package/web/docs/troubleshooting/session-run.html +2 -2
  298. package/web/docs/troubleshooting/terminal.html +2 -2
  299. package/web/docs/troubleshooting/workspace-files.html +2 -2
  300. package/web/docs/workbench/composer.html +2 -2
  301. package/web/docs/workbench/context-and-plan.html +2 -2
  302. package/web/docs/workbench/conversation.html +2 -2
  303. package/web/docs/workbench/file-reference-and-attachment.html +2 -2
  304. package/web/docs/workbench/files.html +2 -2
  305. package/web/docs/workbench/git-changes.html +2 -2
  306. package/web/docs/workbench/git-history.html +2 -2
  307. package/web/docs/workbench/hosted-conversations.html +2 -2
  308. package/web/docs/workbench/mobile.html +2 -2
  309. package/web/docs/workbench/navigation.html +2 -2
  310. package/web/docs/workbench/remote-desktop.html +2 -2
  311. package/web/docs/workbench/sessions.html +2 -2
  312. package/web/docs/workbench/skills.html +2 -2
  313. package/web/docs/workbench/terminal.html +2 -2
  314. package/web/index.html +1 -1
  315. package/web/service-worker.js +1 -1
  316. package/web/web-version.json +1 -1
  317. package/web/assets/NodeManagementPage-CG9wifft.js +0 -1
  318. package/web/assets/NodeManagementPage-FtX60Aco.js +0 -1
  319. package/web/assets/SecretManagementPage-DK80RNK2.js +0 -1
  320. package/web/assets/SkillCenterPage-DTcPaK20.js +0 -1
  321. package/web/assets/SystemConfigurationPage-94kJT211.js +0 -1
  322. package/web/assets/WorkspaceManagementPage-DieHQi7e.js +0 -1
  323. package/web/assets/WorkspaceManagementPage-ycvE-bSi.js +0 -1
  324. package/web/assets/channel-C2ah8GX3.js +0 -1
  325. package/web/assets/classDiagram-CYGNFDIV-aJDqHns3.js +0 -1
  326. package/web/assets/classDiagram-v2-TLXNO2FR-aJDqHns3.js +0 -1
  327. package/web/assets/infoDiagram-FKFFQAWI-BCHQ3DDu.js +0 -2
  328. package/web/assets/stateDiagram-v2-IH3M54BS-Cy3e8MsO.js +0 -1
  329. package/web/assets/swimlanesDiagram-JKAHXJPX-D9R8ihoa.js +0 -8
  330. package/web/assets/workbench-composer-interaction-controller-ST0YI3Nr.css +0 -1
@@ -1 +1 @@
1
- import{E as Ve}from"./el-alert-CxrwoFMm.js";import{E as ue,a as de}from"./el-form-item-BhdvtBoj.js";import{a as me,E as ce}from"./el-input-D2mXGScU.js";import{E as pe,a as ge}from"./el-select-DpvzF6za.js";import{E as fe,u as te,m as ae}from"./mobile-dialog-return-service-C1r4xnjj.js";import{E as ke}from"./el-input-number-BHe_RF5E.js";import{E as Te}from"./el-switch-CG3fA43f.js";import{E as Se,a as Ee}from"./el-table-column-BuHeqmjf.js";import{f as _,m as ye,t,o as g,n as S,H as G,q as o,K as r,Z as U,Y as p,L as e,M as k,J as D,V as ne,X as h,a3 as se,a6 as Ue,W as ve,N as R,k as H,a0 as j,_ as be,w as xe,T as Me,l as Ie}from"./index-BGmp6-3j.js";import"./el-scrollbar-DEuLh689.js";/* empty css */import"./el-checkbox-BEuU-IAG.js";import{M as re}from"./MarIcon-CzWeIUMs.js";import{E as De}from"./message-box-service-jajIaNSh.js";import"./conversation-history-BRCu6PtW.js";import{e as X}from"./error-presentation-DcEn2OhQ.js";import"./vnode-CmxSxPMu.js";import"./use-form-common-props-CBVJDsZ-.js";import"./index-BmWtKtLc.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-D8zr5J8j.js";import"./index-B-X5u8cI.js";import"./merge-R2FU6J9H.js";import"./isArrayLikeObject-CXncc20u.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:""},Oe={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},$e={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},Oe,$e,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 O(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 $(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):O(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(!O(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:O,setDraft:$,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=_(""),O=H(()=>u.templates.value.filter(b=>b.kind==="TEST")),$=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:O.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||O.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:$.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(O.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"),O={origin:[{validator:(s,a,E)=>E(u.validValue(N,a)?void 0:new Error(t("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:$,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($.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($.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($)[n.field]),1)):n.type==="origin"&&e(i)===n.key?(g(),D(le,{key:2,ref_key:"originForm",ref:P,model:b.value,rules:O},{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($)[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-CYdaPIFw.js";import{E as ue,a as de}from"./el-form-item-LbkuEpcF.js";import{a as me,E as ce}from"./el-input-sXkJlh-g.js";import{E as pe,a as ge}from"./el-select-Ij7BldOR.js";import{E as fe,u as te,m as ae}from"./mobile-dialog-return-service-Bg2LBZi3.js";import{E as ke}from"./el-input-number-DoBt11o0.js";import{E as Te}from"./el-switch-DjKORw6c.js";import{E as Se,a as Ee}from"./el-table-column-s3GZz9dF.js";import{f as _,m as ye,t,o as g,n as S,H as G,q as o,K as r,Z as U,Y as p,L as e,M as k,J as D,V as ne,X as h,a3 as se,a6 as Ue,W as ve,N as R,k as H,a0 as j,_ as be,w as xe,T as Me,l as Ie}from"./index-BQl91EUk.js";import"./el-scrollbar-D-InNODH.js";/* empty css */import"./el-checkbox-p37rd1QD.js";import{M as re}from"./MarIcon-ICq2p8Ot.js";import{E as De}from"./message-box-service-qfhQeAS6.js";import"./conversation-history-oJGFEIsi.js";import{e as X}from"./error-presentation-DTfe137d.js";import"./vnode-DHbRwWcQ.js";import"./use-form-common-props-BToB4iwu.js";import"./index-CtdnVn_R.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BLtWZfy-.js";import"./index-BlCUXcGl.js";import"./merge-CtOMpGAk.js";import"./isArrayLikeObject-CxfHIq3H.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:""},Oe={key:"mail-smtp",field:"smtpConfiguration",payloadField:"config",nameKey:"generated.systemConfigurationPage.smtp",descriptionKey:"generated.systemConfigurationPage.smtpDescription",placeholderKey:"generated.systemConfigurationPage.smtpPlaceholder",type:"json",initialValue:"{}"},$e={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},Oe,$e,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 O(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 $(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):O(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(!O(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:O,setDraft:$,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=_(""),O=H(()=>u.templates.value.filter(b=>b.kind==="TEST")),$=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:O.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||O.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:$.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(O.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"),O={origin:[{validator:(s,a,E)=>E(u.validValue(N,a)?void 0:new Error(t("generated.systemConfigurationPage.htmlPreviewOriginInvalid"))),trigger:"change"}]},{snapshot:$,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($.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($.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($)[n.field]),1)):n.type==="origin"&&e(i)===n.key?(g(),D(le,{key:2,ref_key:"originForm",ref:P,model:b.value,rules:O},{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($)[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};
@@ -0,0 +1 @@
1
+ import i from"./SystemConfigurationPage-CglpERvB.js";import{m as r,o,J as n}from"./index-BQl91EUk.js";import"./el-alert-CYdaPIFw.js";import"./vnode-DHbRwWcQ.js";import"./el-form-item-LbkuEpcF.js";import"./use-form-common-props-BToB4iwu.js";import"./el-scrollbar-D-InNODH.js";import"./el-input-sXkJlh-g.js";import"./mobile-dialog-return-service-Bg2LBZi3.js";import"./el-select-Ij7BldOR.js";import"./index-CtdnVn_R.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BLtWZfy-.js";import"./el-input-number-DoBt11o0.js";import"./index-BlCUXcGl.js";import"./el-switch-DjKORw6c.js";import"./message-box-service-qfhQeAS6.js";import"./el-table-column-s3GZz9dF.js";import"./merge-CtOMpGAk.js";import"./isArrayLikeObject-CxfHIq3H.js";import"./el-checkbox-p37rd1QD.js";import"./last-DXTTfs9a.js";/* empty css */import"./MarIcon-ICq2p8Ot.js";import"./conversation-history-oJGFEIsi.js";import"./error-presentation-DTfe137d.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};
@@ -1 +1 @@
1
- import{E as a}from"./index-BmWtKtLc.js";import{m as g,o as c,n as f,X as e,Y as o,L as t,t as s,q as i,K as l,Z as d,J as C,a2 as y,N as h,_ as v}from"./index-BGmp6-3j.js";/* empty css */import"./use-form-common-props-CBVJDsZ-.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
+ import{E as a}from"./index-CtdnVn_R.js";import{m as g,o as c,n as f,X as e,Y as o,L as t,t as s,q as i,K as l,Z as d,J as C,a2 as y,N as h,_ as v}from"./index-BQl91EUk.js";/* empty css */import"./use-form-common-props-BToB4iwu.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,V as Hn,aY as Wn,o as Pt,n as ci,X as ut,L as At,Y as Ot,N as Ts,J as zn,as as Fn,a6 as Ps,q as di,Z as ui,a_ as $n,f as _i,bx as Kn,_ as Un}from"./index-BGmp6-3j.js";import{M as fi}from"./MarIcon-CzWeIUMs.js";import{o as qn}from"./HtmlPreviewFrame-Odxfdit6.js";import{T as Vn}from"./WorkbenchPage-BKpxRHUd.js";import"./FilePreviewLoading-CkXYZr2D.js";import"./use-form-common-props-CBVJDsZ-.js";import"./el-scrollbar-DEuLh689.js";import"./el-input-D2mXGScU.js";import"./mobile-dialog-return-service-C1r4xnjj.js";import"./BusyIndicator-BSxmme_C.js";import"./uuid-BmNSYLtZ.js";import"./el-form-item-BhdvtBoj.js";import"./el-switch-CG3fA43f.js";import"./message-box-service-jajIaNSh.js";import"./error-presentation-DcEn2OhQ.js";import"./file-presentation-Cm7tx53N.js";import"./time-presentation-DzhQEVDq.js";import"./conversation-history-BRCu6PtW.js";import"./workbench-presentation-DPIhtkeQ.js";import"./workbench-composer-interaction-controller-BHX6zPoh.js";import"./el-checkbox-BEuU-IAG.js";import"./last-DXTTfs9a.js";import"./el-radio-CCg-CVNI.js";/* empty css *//* empty css */import"./el-select-DpvzF6za.js";import"./vnode-CmxSxPMu.js";import"./index-BmWtKtLc.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-D8zr5J8j.js";/* empty css */import"./runner-presentation-2CguWXC3.js";import"./workbench-live-service-Ceu3yprJ.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-zjTbBHeH.js";import"./oauth-callback-CGryxaWm.js";import"./el-alert-CxrwoFMm.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-LqlQKtfu.js";import"./catalog-page-service-i8hATwsi.js";import"./ManagementPagination-BVSV9Ych.js";import"./el-date-picker-C2lmvLfz.js";import"./index-B-X5u8cI.js";import"./el-table-column-BuHeqmjf.js";import"./merge-R2FU6J9H.js";import"./isArrayLikeObject-CXncc20u.js";import"./advancedFormat-BKm3qsIp.js";import"./union-Ba2wuAOp.js";import"./el-input-number-BHe_RF5E.js";import"./enterprise-management-service-Dq8hjOQO.js";import"./NodeDetailsDialogs-BXTPUZF3.js";import"./el-descriptions-DqEkudu8.js";import"./EnvironmentSecretManager-D0RSuzOg.js";import"./management-url-service-DXxizFTs.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+`
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,V as Hn,aY as Wn,o as Pt,n as ci,X as ut,L as At,Y as Ot,N as Ts,J as zn,as as Fn,a6 as Ps,q as di,Z as ui,a_ as $n,f as _i,bx as Kn,_ as Un}from"./index-BQl91EUk.js";import{M as fi}from"./MarIcon-ICq2p8Ot.js";import{o as qn}from"./HtmlPreviewFrame-CgH5nr6g.js";import{T as Vn}from"./WorkbenchPage-DiD3CbLd.js";import"./FilePreviewLoading-DRnSA8fU.js";import"./use-form-common-props-BToB4iwu.js";import"./el-scrollbar-D-InNODH.js";import"./el-input-sXkJlh-g.js";import"./mobile-dialog-return-service-Bg2LBZi3.js";import"./BusyIndicator-xe3P4gjH.js";import"./uuid-BmNSYLtZ.js";import"./el-form-item-LbkuEpcF.js";import"./el-switch-DjKORw6c.js";import"./message-box-service-qfhQeAS6.js";import"./error-presentation-DTfe137d.js";import"./file-presentation-Cm7tx53N.js";import"./time-presentation-e-lZt0sB.js";import"./conversation-history-oJGFEIsi.js";import"./workbench-presentation-CpYlSOG0.js";import"./workbench-composer-interaction-controller-Cm7ikzLX.js";import"./el-checkbox-p37rd1QD.js";import"./last-DXTTfs9a.js";import"./el-radio-se_8_kay.js";/* empty css *//* empty css */import"./el-select-Ij7BldOR.js";import"./vnode-DHbRwWcQ.js";import"./index-CtdnVn_R.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-BLtWZfy-.js";/* empty css */import"./runner-presentation-CN2oRuIk.js";import"./workbench-live-service-BicQ4etU.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-CSWTot4J.js";import"./oauth-callback-BlsSCm82.js";import"./el-alert-CYdaPIFw.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-xBXLOfeq.js";import"./catalog-page-service-Co_SnlgM.js";import"./ManagementPagination-Y85Jq9j9.js";import"./el-date-picker-BTtxJHNN.js";import"./index-BlCUXcGl.js";import"./el-table-column-s3GZz9dF.js";import"./merge-CtOMpGAk.js";import"./isArrayLikeObject-CxfHIq3H.js";import"./advancedFormat-C1fRaiNU.js";import"./union-Cyh-UcHd.js";import"./el-input-number-DoBt11o0.js";import"./enterprise-management-service-BgLU9ku4.js";import"./NodeDetailsDialogs-BrWPvSnj.js";import"./el-descriptions-Dm7xFX_I.js";import"./EnvironmentSecretManager-CrcEHtvm.js";import"./management-url-service-CKGsmd3N.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